Skip to content

HTTPManager: Clear completion callback to prevent use-after-free during shutdown - #110

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/clearhttprequestcallback
Open

HTTPManager: Clear completion callback to prevent use-after-free during shutdown#110
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/clearhttprequestcallback

Conversation

@seer-by-sentry

@seer-by-sentry seer-by-sentry Bot commented Nov 4, 2025

Copy link
Copy Markdown

Fixes CLIENT-R7. The issue was that: HTTP request completion callback invoked during shutdown accessed destroyed captured variables, causing use-after-free crash.

  • Added ClearCompletionCallback to HTTPRequest to nullify the completion callback.
  • In HTTPManager::Threaded_PerformRequests, before deleting a completed request, the completion callback is cleared to prevent potential use-after-free issues during shutdown.

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

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