apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52705] New: testmemcache crashes due to uninitialized variable [PATCH]
Date Sat, 18 Feb 2012 15:42:10 GMT

             Bug #: 52705
           Summary: testmemcache crashes due to uninitialized variable
           Product: APR
           Version: 1.4.2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR-util
        AssignedTo: bugs@apr.apache.org
        ReportedBy: peter@poeml.de
    Classification: Unclassified

Created attachment 28352
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28352
patch for 1.4.1 fixing uninitialized variable in testmemcache.c


testmemcache.c can crash because a variable is not initialized, used for
storage of the values in the multiget testcase.

The bug seems to be present in 1.4.1 (where I found it), but also in trunk. 

The bug surfaces when the uninitialized variable is used in
memcache/apr_memcache.c apr_memcache_add_multget_key(). If the value is not
NULL, the corresponding hash will not be initialized there.

The attached patch fixes this problem. I suppose it could apply to trunk as


Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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

View raw message