ASF Bugzilla – Attachment 28393 Details for
Bug 52780
Some memory buglets in AddOutputFilterByType in 2.4.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
httpd-241-mod_filter-fixes.diff (text/plain), 1.04 KB, created by
Maksim Orlovich
on 2012-02-27 15:15:41 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Maksim Orlovich
Created:
2012-02-27 15:15:41 UTC
Size:
1.04 KB
patch
obsolete
>Index: modules/filters/mod_filter.c >=================================================================== >--- modules/filters/mod_filter.c (revision 1293395) >+++ modules/filters/mod_filter.c (working copy) >@@ -452,7 +452,7 @@ static const char *add_filter(cmd_parms *cmd, void > if (!provider_frec) { > return apr_psprintf(cmd->pool, "Unknown filter provider %s", pname); > } >- provider = apr_palloc(cmd->pool, sizeof(ap_filter_provider_t)); >+ provider = apr_pcalloc(cmd->pool, sizeof(ap_filter_provider_t)); > if (expr) { > node = ap_expr_parse_cmd(cmd, expr, 0, &err, NULL); > if (err) { >@@ -594,7 +594,7 @@ static const char *filter_bytype(cmd_parms *cmd, v > name = apr_pstrdup(cmd->temp_pool, argv[0]); > types = apr_palloc(cmd->pool, argc * sizeof(char *)); > memcpy(types, &argv[1], (argc - 1) * sizeof(char *)); >- types[argc] = NULL; >+ types[argc - 1] = NULL; > for (pname = apr_strtok(name, ";", &strtok_state); > pname != NULL && rv == NULL; > pname = apr_strtok(NULL, ";", &strtok_state)) {
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 52780
: 28393