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

reader: fix handling of when growing a reader #43

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

Gottox
Copy link
Owner

@Gottox Gottox commented Aug 18, 2023

When growing a reader that is in buffered mode, the offset was not updated correctly. This caused the reader to append overlapping data twice and therefore corrupting the data.

This commit contains the fix as well as a test case for the metablock reader. Generalizing the test for the generic reader is left for later.

When growing a reader that is in buffered mode, the offset was not
updated correctly. This caused the reader to append overlapping data
twice and therefore corrupting the data.

This commit contains the fix as well as a test case for the metablock
reader. Generalizing the test for the generic reader is left for later.
@Gottox Gottox merged commit 5a5b51f into main Aug 18, 2023
9 checks passed
@Gottox Gottox deleted the fix/metablock-data-corruption branch August 21, 2023 19:59
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