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

Avoid crash on too large padbyte values #55

Merged
merged 1 commit into from
Mar 4, 2019
Merged

Conversation

jokva
Copy link

@jokva jokva commented Mar 4, 2019

Some files have rather non-sensical padbyte field following a segment,
with it being as large as the full segment, including the header. When
chopping padbytes off actual record information, this needs to be taken
into account in order to avoid overflow, or realloc-to-negative.

@jokva jokva added the review label Mar 4, 2019
Some files have rather non-sensical padbyte field following a segment,
with it being as large as the full segment, including the header. When
chopping padbytes off actual record information, this needs to be taken
into account in order to avoid overflow, or realloc-to-negative.
@jokva jokva force-pushed the too-large-padbytes branch from c011c31 to 39deb33 Compare March 4, 2019 14:32
@jokva jokva merged commit fa6d203 into master Mar 4, 2019
@jokva jokva deleted the too-large-padbytes branch March 4, 2019 14:33
@jokva jokva removed the review label Mar 4, 2019
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