ASF Bugzilla – Attachment 20708 Details for
Bug 43213
mod_expires.c segfaults when parsing configuration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Adds an error message when ExpiresByType is supplied with an invalid mimetype, avoids a segfault
mod_expires.c.patch (text/plain), 500 bytes, created by
Julien Perez
on 2007-08-24 20:02:56 UTC
(
hide
)
Description:
Adds an error message when ExpiresByType is supplied with an invalid mimetype, avoids a segfault
Filename:
MIME Type:
Creator:
Julien Perez
Created:
2007-08-24 20:02:56 UTC
Size:
500 bytes
patch
obsolete
>--- ./modules/metadata/mod_expires.c.orig 2007-08-25 05:00:58.000000000 +0200 >+++ ./modules/metadata/mod_expires.c 2007-08-25 04:46:46.000000000 +0200 >@@ -321,6 +321,10 @@ > const char *check; > > check = ap_strrchr_c(mime, '/'); >+ /* If check == NULL, we have to return an error to avoid a segfault */ >+ if (check == NULL) { >+ return "Invalid mimetype: should contain a slash"; >+ } > if ((strlen(++check) == 1) && (*check == '*')) { > dir_config->wildcards = 1; > }
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 43213
: 20708