You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by yl...@apache.org on 2020/11/27 20:44:12 UTC

svn commit: r1883879 - in /apr/apr/branches/1.7.x: ./ encoding/apr_encode.c

Author: ylavic
Date: Fri Nov 27 20:44:12 2020
New Revision: 1883879

URL: http://svn.apache.org/viewvc?rev=1883879&view=rev
Log:
Merge r1883868 from trunk:

apr_encode_base32: fix estimated output *len (when called with src == NULL).

Modified:
    apr/apr/branches/1.7.x/   (props changed)
    apr/apr/branches/1.7.x/encoding/apr_encode.c

Propchange: apr/apr/branches/1.7.x/
------------------------------------------------------------------------------
  Merged /apr/apr/trunk:r1883868

Modified: apr/apr/branches/1.7.x/encoding/apr_encode.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.7.x/encoding/apr_encode.c?rev=1883879&r1=1883878&r2=1883879&view=diff
==============================================================================
--- apr/apr/branches/1.7.x/encoding/apr_encode.c (original)
+++ apr/apr/branches/1.7.x/encoding/apr_encode.c Fri Nov 27 20:44:12 2020
@@ -665,7 +665,7 @@ APR_DECLARE(apr_status_t) apr_encode_bas
     }
 
     if (len) {
-        *len = ((slen + 2) / 3 * 4) + 1;
+        *len = ((slen + 4) / 5 * 8) + 1;
     }
 
     return APR_SUCCESS;