curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: crash while trying to log.

From: Daniel Stenberg <daniel_at_haxx.se>
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!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2018-04-11