Bug 39518

Summary: Change some "apr_palloc / memcpy" to apr_pmemdup
Product: Apache httpd-2 Reporter: Christophe JAILLET <christophe.jaillet>
Component: CoreAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED FIXED    
Severity: trivial Keywords: PatchAvailable
Priority: P2    
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: Other   
OS: other   
Attachments: Patch for the proposed clean-up
Another similar bug discovered in mod_mime.c

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