1
0
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:
cameronrich
2012-02-11 11:30:45 +00:00
parent ffa4da45ee
commit af155d91d9
3 changed files with 29 additions and 24 deletions

View File

@ -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: