mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-09 15:25:27 +00:00
Fix base64_decode() to return and check length correctly
This commit is contained in:
parent
ff9e1a4aa4
commit
bbc843f0b8
|
@ -67,6 +67,8 @@ Bugfix
|
||||||
* Use \n\t rather than semicolons for bn_mul asm, since some assemblers
|
* Use \n\t rather than semicolons for bn_mul asm, since some assemblers
|
||||||
interpret semicolons as comment delimiters (found by Barry K. Nathan).
|
interpret semicolons as comment delimiters (found by Barry K. Nathan).
|
||||||
* Disable broken Sparc64 bn_mul assembly (found by Florian Obser).
|
* 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
|
= Version 1.2.10 released 2013-10-07
|
||||||
Changes
|
Changes
|
||||||
|
|
|
@ -162,6 +162,7 @@ int base64_decode( unsigned char *dst, size_t *dlen,
|
||||||
return( 0 );
|
return( 0 );
|
||||||
|
|
||||||
n = ((n * 6) + 7) >> 3;
|
n = ((n * 6) + 7) >> 3;
|
||||||
|
n -= j;
|
||||||
|
|
||||||
if( *dlen < n )
|
if( *dlen < n )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue