ASF Bugzilla – Attachment 24180 Details for
Bug 39518
Change some "apr_palloc / memcpy" to apr_pmemdup
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Another similar bug discovered in mod_mime.c
patch_39518.diff (text/plain), 825 bytes, created by
Boya Sun
on 2009-08-27 11:04:55 UTC
(
hide
)
Description:
Another similar bug discovered in mod_mime.c
Filename:
MIME Type:
Creator:
Boya Sun
Created:
2009-08-27 11:04:55 UTC
Size:
825 bytes
patch
obsolete
>Index: modules/http/mod_mime.c >=================================================================== >--- modules/http/mod_mime.c (revision 806655) >+++ modules/http/mod_mime.c (working copy) >@@ -182,10 +182,10 @@ > APR_HASH_KEY_STRING); > if (exinfo && *(const char**)((char *)exinfo + suffix[i].offset)) { > extension_info *copyinfo = exinfo; >- exinfo = (extension_info*)apr_palloc(p, sizeof(*exinfo)); >+ exinfo = (extension_info*)apr_pmemdup(p,copyinfo, sizeof(*exinfo)); > apr_hash_set(mappings, suffix[i].name, > APR_HASH_KEY_STRING, exinfo); >- memcpy(exinfo, copyinfo, sizeof(*exinfo)); >+ > *(const char**)((char *)exinfo + suffix[i].offset) = NULL; > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 39518
:
18247
| 24180