Bug 52705 - testmemcache crashes due to uninitialized variable [PATCH]
Summary: testmemcache crashes due to uninitialized variable [PATCH]
Status: RESOLVED FIXED
Alias: None
Product: APR
Classification: Unclassified
Component: APR-util (show other bugs)
Version: 1.4.2
Hardware: All Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-18 15:42 UTC by Peter Poeml
Modified: 2012-09-07 19:05 UTC (History)
0 users



Attachments
patch for 1.4.1 fixing uninitialized variable in testmemcache.c (500 bytes, application/octet-stream)
2012-02-18 15:42 UTC, Peter Poeml
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Poeml 2012-02-18 15:42:10 UTC
Created attachment 28352 [details]
patch for 1.4.1 fixing uninitialized variable in testmemcache.c

Hi,

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

Thanks!
Peter
Comment 1 Stefan Fritsch 2012-09-07 19:05:12 UTC
committed to 1.5.x in r1382129
AFAICS this only affected 1.4/1.5, not trunk.