I did this
Recently, we got into a situation where curl is calling our CURLMOPT_TIMERFUNCTION callback in loop and then in crashes possible due to stack buffer overflow. The stack trace looks something like this:
(Moderator's note: Content removed. August 9, 2024)
and it goes forever until it crashes. Our timer callback is very similar to multi_timer_cb callback of asiohiper. The callback is being called in loop with timeout_ms = 0. We are unable to replicate the issue, but it already happened 3 times in a week and it is always in iOS.
curl/libcurl version
7.63.0 release
operating system
iOS only, iPhone 7, iOS 12, 64-bit
additional information
it is not reproducible with libcurl 7.58.0
I did this
Recently, we got into a situation where curl is calling our CURLMOPT_TIMERFUNCTION callback in loop and then in crashes possible due to stack buffer overflow. The stack trace looks something like this:
and it goes forever until it crashes. Our timer callback is very similar to multi_timer_cb callback of asiohiper. The callback is being called in loop with
timeout_ms = 0. We are unable to replicate the issue, but it already happened 3 times in a week and it is always in iOS.curl/libcurl version
7.63.0 release
operating system
iOS only, iPhone 7, iOS 12, 64-bit
additional information
it is not reproducible with libcurl 7.58.0