mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-09 03:05:33 +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
|
||||
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
|
||||
|
|
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue