Skip to content

curl infinite loop calling CURLMOPT_TIMERFUNCTION callback #3537

Description

@rgoomes

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions