
cherokee at cherokee-project
Oct 7, 2011, 2:01 PM
Post #1 of 1
(85 views)
Permalink
|
|
[6889] cherokee/trunk/cherokee/header_op.c: Fixes a very unlikely ( but yet feasible) memory issue while removing
|
|
Revision: 6889 http://svn.cherokee-project.com/changeset/6889 Author: alo Date: 2011-10-07 23:01:33 +0200 (Fri, 07 Oct 2011) Log Message: ----------- Fixes a very unlikely (but yet feasible) memory issue while removing header entries. Modified Paths: -------------- cherokee/trunk/cherokee/header_op.c Modified: cherokee/trunk/cherokee/header_op.c =================================================================== --- cherokee/trunk/cherokee/header_op.c 2011-10-07 21:01:29 UTC (rev 6888) +++ cherokee/trunk/cherokee/header_op.c 2011-10-07 21:01:33 UTC (rev 6889) @@ -24,6 +24,7 @@ #include "common-internal.h" #include "header_op.h" +#include "util.h" ret_t cherokee_header_op_new (cherokee_header_op_t **op) @@ -105,7 +106,8 @@ { char *p, *s; - p = strcasestr (buffer->buf, header->buf); + p = strncasestrn (buffer->buf, buffer->len, + header->buf, header->len); if (p == NULL) return ret_not_found;
|