Skip to content

HTTP: Prevent use-after-free in HTTPRequest callback during shutdown - #104

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-http-callback-shutdown
Open

HTTP: Prevent use-after-free in HTTPRequest callback during shutdown#104
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-http-callback-shutdown

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-PP. The issue was that: HTTPManager::Shutdown invokes callbacks capturing deleted objects, causing access violation in std::function::operator().

  • Added a flag m_bSkipCallback to HTTPRequest to skip the completion callback invocation.
  • Set m_bSkipCallback to true when a request is completed during HTTPManager shutdown.
  • Check m_bSkipCallback in HTTPRequest::Threaded_SetComplete before invoking the callback.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 2314476

Not quite right? Click here to continue debugging with Seer.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants