Skip to content

HTTP: Prevent use-after-free in HTTP request callbacks during shutdown - #101

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

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

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-P4. The issue was that: HTTP request completion callback executes during shutdown, dereferencing a dangling pointer to a destroyed service interface.

  • Added ClearCallbacks method to HTTPRequest to nullify completion and progress callbacks.
  • During HTTPManager shutdown, iterate through in-flight requests and call ClearCallbacks to prevent callbacks from being invoked with dangling pointers after the HTTPManager has been destroyed.

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

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