You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2014/11/17 13:57:05 UTC

[Bug 57230] New: apr_escape_path wrongly calculates output length and does not set found flag

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


[Bug 57230] apr_escape_path wrongly calculates output length and does not set found flag

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57230

Ruediger Pluem <rp...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |FixedInTrunk

--- Comment #1 from Ruediger Pluem <rp...@apache.org> ---
Thanks for the report. Fixed in trunk in r1642159.

-- 
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