Skip to content

Commit fec170a

Browse files
author
cameronrich
committed
fixed issue with buffer limit 1 less than it should have been
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@225 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
1 parent c0074b3 commit fec170a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

crypto/crypto_misc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,15 +350,14 @@ EXP_FUNC int STDCALL base64_decode(const char *in, int len,
350350
}
351351

352352
/* check that we don't go past the output buffer */
353-
if (z >= *outlen)
353+
if (z > *outlen)
354354
goto error;
355355
}
356356

357357
if (y != 0)
358358
goto error;
359359

360360
*outlen = z;
361-
362361
ret = 0;
363362

364363
error:

0 commit comments

Comments
 (0)