Chasing a segfault, part II

2021-10-25 Thread miim
My thanks to everyone for their input on this problem. While I was unable to get the backtrace and whatkilledus modules to report on failure, I isolated the cause to the following code in the handler. The code itself does not segfault and indeed it appears to execute properly, retrieving the

Re: Chasing a segfault, part II

2021-10-25 Thread Sorin Manolache
On 26/10/2021 08.18, miim wrote: ua_pointer = apr_table_get(r->headers_in, "User-Agent"); /* Find out how long the Apache-supplied string is */ ualength = strlen(ua_pointer); If the request does not contain any user-agent then ua_pointer will be NULL. strlen of NULL will segfault.