Simplified base64 conversion
Werner Koch
wk at gnupg.org
Wed Jun 16 03:26:42 PDT 2004
On Fri, 11 Jun 2004 14:23:18 -0400, An Metet said:
> int /* outlen */
> enc64 (char *out, unsigned char *in, int inlen)
Please add an argument for the available size of the buffer OUT and
check this length while encoding. Over short or long someone will for
sure use your function and forget that he has to allocate at least
(((inlen+3)/3)*4+1) for OUT.
Shalom-Salam,
Werner
More information about the cypherpunks-legacy
mailing list