apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 57230] New: apr_escape_path wrongly calculates output length and does not set found flag
Date Mon, 17 Nov 2014 12:57:05 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=57230

            Bug ID: 57230
           Summary: apr_escape_path wrongly calculates output length and
                    does not set found flag
           Product: APR
           Version: HEAD
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR
          Assignee: bugs@apr.apache.org
          Reporter: aduryagin@gmail.com

in following code from encoding/apr_escape.c:

435     if (d) {
436         while ((c = *s) && slen) {
437             if (TEST_CHAR(c, T_OS_ESCAPE_PATH)) {
438                 d = c2x(c, '%', d);
439         }

size variable (output length) is not incremented by 2 and found flag is not set
like it is done in similar functions (for example, apr_escape_urlencoded). it
results in wrongly calculated length of escaped string and return is always
APR_NOTFOUND when partial argument set.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message