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: harsher hex string parsing to avoid more dire parsing errors #195

Merged
merged 1 commit into from
Feb 18, 2023

Conversation

galkahana
Copy link
Owner

running fuzz tests on my mac for the text extraction project was failing erratically for one of the files (526).

also recreating a decompressed version didn't work.

traced the first problem to a too permissive hex string parsing which caused over-reads.

and the second problem to a too restrictive zip decoding issue where end of stream error canceled the whole stream reading. which is a shame cause it could parse something worthwhile till then, like in this case.

running fuzztests on my mac was failing erraticaly for one of the files.

also recreating a decompressed version didnt work.

traced the first problem to a too permissive hex string parsing which caused overreads.

and the second problem to a too restrictive zip decoding issue where end of stream error canceled the whole stream reading. which is a shame cause it could parse something worthwhile till then, like in this case.
@galkahana galkahana merged commit 1cd3842 into master Feb 18, 2023
@galkahana galkahana deleted the fixing-fuzztest-error branch February 18, 2023 19:32
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