Fix base64_decode() to return and check length correctly

This commit is contained in:
Paul Bakker 2014-07-08 18:18:38 +02:00
parent ff9e1a4aa4
commit bbc843f0b8
2 changed files with 3 additions and 0 deletions

View file

@ -67,6 +67,8 @@ Bugfix
* Use \n\t rather than semicolons for bn_mul asm, since some assemblers
interpret semicolons as comment delimiters (found by Barry K. Nathan).
* Disable broken Sparc64 bn_mul assembly (found by Florian Obser).
* Fix base64_decode() to return and check length correctly (in case of
tight buffers)
= Version 1.2.10 released 2013-10-07
Changes

View file

@ -162,6 +162,7 @@ int base64_decode( unsigned char *dst, size_t *dlen,
return( 0 );
n = ((n * 6) + 7) >> 3;
n -= j;
if( *dlen < n )
{