Skip to content

Comments

fix(value): use-after-free in object merge#1539

Open
jpnurmi wants to merge 2 commits intomasterfrom
jpnurmi/fix/sentry-value-merge-objects
Open

fix(value): use-after-free in object merge#1539
jpnurmi wants to merge 2 commits intomasterfrom
jpnurmi/fix/sentry-value-merge-objects

Conversation

@jpnurmi
Copy link
Collaborator

@jpnurmi jpnurmi commented Feb 23, 2026

Incref before set_by_key to match the pattern in sentry__value_clone. On OOM, set_by_key decrefs the value, which may free a value still referenced by the source object.

Fixes: #1538

jpnurmi and others added 2 commits February 23, 2026 16:18
Incref before set_by_key to match the pattern in sentry__value_clone.
On OOM, set_by_key decrefs the value, which may free a value still
referenced by the source object.

Fixes: #1538

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

Use-after-free in sentry__value_merge_objects on allocation failure

1 participant