Skip to content

Avoid YAML parse segfault on bad transactions#347

Merged
bneradt merged 1 commit intoyahoo:masterfrom
bneradt:fix-yaml-segfault-291
Mar 12, 2026
Merged

Avoid YAML parse segfault on bad transactions#347
bneradt merged 1 commit intoyahoo:masterfrom
bneradt:fix-yaml-segfault-291

Conversation

@bneradt
Copy link
Copy Markdown
Collaborator

@bneradt bneradt commented Mar 12, 2026

Stop replay parsing from running transaction callbacks after txn_open
fails. That keeps malformed replay files from reaching txn_close with
invalid transaction state.

Also validate server transactions before taking the load mutex and add
a unit test that covers the failed-open path.

Fixes: #291

Stop replay parsing from running transaction callbacks after txn_open
fails. That keeps malformed replay files from reaching txn_close with
invalid transaction state.

Also validate server transactions before taking the load mutex and add
a unit test that covers the failed-open path.

Fixes: yahoo#291
@bneradt bneradt self-assigned this Mar 12, 2026
@bneradt bneradt merged commit 7ef2a56 into yahoo:master Mar 12, 2026
@bneradt bneradt deleted the fix-yaml-segfault-291 branch March 12, 2026 20:08
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.

Segmentation Fault when processing yaml file

1 participant