svn commit: r1936838 - in apr/apr-util/branches/1.7.x: . xlate

[email protected] Mon, 03 Aug 2026 14:50:10 -0000
Newsgroups gmane.comp.apache.apr.cvs
Message-ID <178576861008.1886938.4874946109360051017@svn03-he-fi>
Author: covener
Date: Mon Aug  3 14:50:09 2026
New Revision: 1936838

Log:
Merge r1936837 from apr trunk:

avoid NULL inbytesleft directly to system iconv

long ignored AIX testxlate failure

Modified:
   apr/apr-util/branches/1.7.x/   (props changed)
   apr/apr-util/branches/1.7.x/xlate/xlate.c

Modified: apr/apr-util/branches/1.7.x/xlate/xlate.c
==============================================================================
--- apr/apr-util/branches/1.7.x/xlate/xlate.c	Mon Aug  3 14:46:36 2026	(r1936837)
+++ apr/apr-util/branches/1.7.x/xlate/xlate.c	Mon Aug  3 14:50:09 2026	(r1936838)
@@ -340,8 +340,10 @@ APU_DECLARE(apr_status_t) apr_xlate_conv
         const char *inbufptr = inbuf;
         char *outbufptr = outbuf;
         apr_size_t translated;
+        apr_size_t zero = 0;
+        apr_size_t *inbytes_ptr = inbytes_left ? inbytes_left : &zero;
         translated = iconv(convset->ich, (ICONV_INBUF_TYPE)&inbufptr,
-                           inbytes_left, &outbufptr, outbytes_left);
+                           inbytes_ptr, &outbufptr, outbytes_left);
 
         /* If everything went fine but we ran out of buffer, don't
          * report it as an error.  Caller needs to look at the two