Skip to content
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

Fix malformed QMDL manifest writes #225

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

untitaker
Copy link

@untitaker untitaker commented Mar 30, 2025

Fix #199
Fix #151

rayhunter updates manifest files using write without truncation.
This means that if the new manifest is shorter than the old one,
trailing bytes of the old data will persist in the new file.

Switch over to atomic file writes so that this bug is fixed + rayhunter
behaves correctly if it is killed mid-write.

The changes in RecordingStore::create are just to ensure that all
writing of the manifest goes through write_manifest.

#182 could be reverted as it
seems to mostly be a workaround.

Fix EFForg#199
Fix EFForg#151

rayhunter updates manifest files using write **without truncation**.
This means that if the new manifest is shorter than the old one,
trailing bytes of the old data will persist in the new file.

Switch over to atomic file writes so that this bug is fixed + rayhunter
behaves correctly if it is killed mid-write.

EFForg#182 could be reverted as it
seems to mostly be a workaround.
@untitaker untitaker changed the title Fix malformed QMDL store writes Fix malformed QMDL manifest writes Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant