On 27 Nov 2020, at 18:54, [email protected] wrote: > URL: http://svn.apache.org/viewvc?rev=1883868&view=rev > Log: > apr_encode_base32: fix estimated output *len (when called with src == NULL).
A small detail - the API returns exact lengths across all apr_encode calls,
none of these are estimates.
> if (len) {
> - *len = ((slen + 2) / 3 * 4) + 1;
> + *len = ((slen + 4) / 5 * 8) + 1;
> }
Good catch.
Regards,
Graham
—
