mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
Some fixes after going through the test harness
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@222 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
@ -349,14 +349,19 @@ EXP_FUNC int STDCALL base64_decode(const char *in, int len,
|
||||
y = t = 0;
|
||||
}
|
||||
|
||||
if (z >= *outlen) /* check that we don't go past the output buffer */
|
||||
/* check that we don't go past the output buffer */
|
||||
if (outlen && z >= *outlen)
|
||||
{
|
||||
printf("Stuff %d, %d\n", z, *outlen);
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
||||
if (y != 0)
|
||||
goto error;
|
||||
|
||||
*outlen = z;
|
||||
|
||||
ret = 0;
|
||||
|
||||
error:
|
||||
|
Reference in New Issue
Block a user