curl / Mailing Lists / curl-library / Single Mail


Re: crash while trying to log.

From: Daniel Stenberg <>
Date: Wed, 11 Apr 2018 08:16:57 +0200 (CEST)

On Wed, 11 Apr 2018, surya chandrika wrote:

> In debug build (when compiled with -g option) our application worked fine.
> When we released the application in released mode (without -g option),
> application crashes while trying to wrtie socket logs.
> res = curl_easy_setopt( curl_handle, CURLOPT_DEBUGFUNCTION, log_function )

My guess: you assume the data is zero terminated when in fact it isn't!

Received on 2018-04-11