Skip to content

Conversation

@l0rinc
Copy link

@l0rinc l0rinc commented Sep 1, 2025

The bytes_written field from CompactionStats was reading uninitialized memory, causing undefined behavior detected by UBSana, as reported in bitcoin/bitcoin#28359 (comment)

This would simplify the Bitcoin Core CI in https://github.com/l0rinc/bitcoin/blob/7cc9a087069bfcdb79a08ce77eb3a60adf9483af/ci/test/03_test_script.sh#L36-L56

Can be tested with (corruption_test covers the modified line):

cmake -B build && cmake --build build -j$(nproc) && ctest --test-dir build -j$(nproc)

l0rinc and others added 2 commits September 1, 2025 13:26
The `bytes_written` field from `CompactionStats` was reading uninitialized memory, causing undefined behavior detected by UBSana, as reported in bitcoin/bitcoin#28359 (comment)

Co-authored-by: MarcoFalke <[email protected]>
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.

1 participant