diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-12-04 07:26:55 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-12-04 07:40:37 -0500 |
commit | ef9608f307205a312891d1afaf90a003548e4ff0 (patch) | |
tree | eec8f15222e14693f9d77adf20dbdf22e2af8cdc /src/configfile-glue.c | |
parent | d6debd43ffb2edd11901c476fc78e22911880eb3 (diff) | |
download | lighttpd-git-ef9608f307205a312891d1afaf90a003548e4ff0.tar.gz |
[core] fix reqpool mem corruption in 1.4.62 (fixes #3118)
x-ref:
"Segfault after updating to version 1.4.62"
https://redmine.lighttpd.net/issues/3118
"Segfault on closing connections"
https://redmine.lighttpd.net/issues/3119
Diffstat (limited to 'src/configfile-glue.c')
-rw-r--r-- | src/configfile-glue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configfile-glue.c b/src/configfile-glue.c index e5403626..3486c06c 100644 --- a/src/configfile-glue.c +++ b/src/configfile-glue.c @@ -692,7 +692,7 @@ static int config_pcre_match(request_st * const r, const data_config * const dc, r->cond_match[capture_offset] = r->cond_match_data + capture_offset; if (__builtin_expect( (NULL == cond_match->matches), 0)) { /*(allocate on demand)*/ - cond_match->matches = malloc(dc->ovec_nelts * sizeof(int *)); + cond_match->matches = malloc(dc->ovec_nelts * sizeof(int)); force_assert(cond_match->matches); } cond_match->comp_value = b; /*holds pointer to b (!) for pattern subst*/ |