Repository navigation
fix(workers): add ThreadSafeRefCount to WebWorker to prevent use-after-free #28305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 15 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
16cf9b3
fix(workers): add WebWorkerLifecycleHandle to prevent use-after-free
robobun fc1066d
[autofix.ci] apply automated fixes
autofix-ci[bot] b60ac7e
fix: detach handle.worker before destroying WebWorker
robobun 1fb6692
[autofix.ci] apply automated fixes
autofix-ci[bot] 979d855
fix: null handle.worker in destroy() and use unrefConcurrently
robobun 403354b
simplify: drop WebWorkerLifecycleHandle — put ThreadSafeRefCount dire…
alii 18069fd
Merge branch 'main' into farm/8b799671/worker-lifecycle-handle
alii e5af6fa
fix: spawn failure parent ref leak, name buffer leak, updatePtr ref leak
robobun f47a946
fix: release Zig WebWorker ref in updatePtr failure, add double-unref…
robobun 3cb9b1b
fix: move parent_poll_ref unref after dispatchExit, fix spawn failure…
robobun df4b3b7
fix: restore unref in notifyNeedTermination to prevent parent hang
robobun 2859dc0
fix: release heap resources synchronously in exitAndDeinit
alii 3cd267d
fix: guard releaseResources frees with length checks
robobun ed28231
fix: remove flaky double-terminate test
robobun 8d7f8e7
test: add back double-terminate test (sequential, not racy)
robobun 47161c9
test: add concurrent terminate test (fire-and-forget, no await)
robobun 42ed136
fix(workers): keep parent keep-alive ref'd until exitAndDeinit
alii 9c30d51
fix: explicit unrefConcurrently in spawn failure path
robobun d133a93
Revert "fix(workers): keep parent keep-alive ref'd until exitAndDeinit"
robobun d254d52
ci: retrigger build
robobun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.