Skip to content

Conversation

@kdt3rd
Copy link
Contributor

@kdt3rd kdt3rd commented Feb 13, 2025

If we know the file size, we should truncate the header parse to only read the file at most. Otherwise, if the file size is unknown (stream) then be conservative (and slower) and read 1 byte at a time for the header parse. Once we know the file, that should be free to read chunks.

Addresses issue found in #1984

If we know the file size, we should truncate the header parse to only
read the file at most. Otherwise, if the file size is unknown (stream)
then be conservative (and slower) and read 1 byte at a time for the
header parse. Once we know the file, that should be free to read chunks

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
Copy link
Contributor

@meshula meshula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, esp. given OPs confirmation of bug fix

@kdt3rd kdt3rd merged commit 97f8571 into AcademySoftwareFoundation:main Feb 14, 2025
36 checks passed
@kdt3rd kdt3rd deleted the fix_1984 branch February 14, 2025 20: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.

2 participants