commit | bbc843f0b84aac9f02d56ddfb2b28ba0edbf9bbe | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Tue Jul 08 18:18:38 2014 +0200 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Tue Jul 08 18:29:06 2014 +0200 |
tree | 7c7f5f462ed8cabecb158a2c6084aba60895914e | |
parent | ff9e1a4aa41a8a08feb4d0815ca17ea07d9c5cfc [diff] [blame] |
Fix base64_decode() to return and check length correctly
diff --git a/library/base64.c b/library/base64.c index 06305bb..1364713 100644 --- a/library/base64.c +++ b/library/base64.c
@@ -162,6 +162,7 @@ return( 0 ); n = ((n * 6) + 7) >> 3; + n -= j; if( *dlen < n ) {