Bug 39518 - Change some "apr_palloc / memcpy" to apr_pmemdup
Summary: Change some "apr_palloc / memcpy" to apr_pmemdup
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.5-HEAD
Hardware: Other other
: P2 trivial (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2006-05-08 20:41 UTC by Christophe JAILLET
Modified: 2010-07-31 16:03 UTC (History)
0 users



Attachments
Patch for the proposed clean-up (9.19 KB, patch)
2006-05-08 20:41 UTC, Christophe JAILLET
Details | Diff
Another similar bug discovered in mod_mime.c (825 bytes, patch)
2009-08-27 11:04 UTC, Boya Sun
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe JAILLET 2006-05-08 20:41:01 UTC
Patchlet to clean up some code.

It change some "apr_palloc / memcpy" construction into a single apr_pmemdup 
which is more easy to read.
Comment 1 Christophe JAILLET 2006-05-08 20:41:57 UTC
Created attachment 18247 [details]
Patch for the proposed clean-up
Comment 3 Boya Sun 2009-08-27 11:03:49 UTC
Hi All,

I have found another place in modules/http/mod_mime.c where this code clean-up is applicable.

The patch is against revision 806655. 

Boya
Comment 4 Boya Sun 2009-08-27 11:04:55 UTC
Created attachment 24180 [details]
Another similar bug discovered in mod_mime.c
Comment 5 Christophe JAILLET 2009-08-27 14:02:48 UTC
Reopened due to last comment about another same clean up which is applicable.
Comment 6 Stefan Fritsch 2010-07-31 16:03:39 UTC
commited in r981085