Re: [PATCH] httpd initialize kv structs on stack

2022-03-02 Thread Claudio Jeker
On Wed, Mar 02, 2022 at 10:15:07AM +0100, Florian Obser wrote: > On 2022-03-01 10:22 -08, j...@bitminer.ca wrote: > > Looking at the gz option, I noticed some kv structs allocated on > > stack but not fully initialized. > > Nice catch. > > > > > This patches initializes the kv struct to avoid

Re: [PATCH] httpd initialize kv structs on stack

2022-03-02 Thread Florian Obser
On 2022-03-01 10:22 -08, j...@bitminer.ca wrote: > Looking at the gz option, I noticed some kv structs allocated on > stack but not fully initialized. Nice catch. > > This patches initializes the kv struct to avoid randomly getting > KV_GLAG_GLOBBING in kv_find depending on stack contents,