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

Check that type and length are not out of range #1491

Conversation

DemiMarie
Copy link
Contributor

This avoids a potential out-of-bounds read in dataLength().

This avoids a potential out-of-bounds read in dataLength().
@lgtm-com
Copy link

lgtm-com bot commented Jan 13, 2021

This pull request introduces 1 alert when merging 9e7b746 into 5ce2b5e - view on LGTM.com

new alerts:

  • 1 for Dead code due to goto or break statement

@pmatilai
Copy link
Member

The type is already checked with hdrchkType() on all paths where the data comes from external sources, so that check is redundant. The length issue is deal with differently in #1492, closing this.

@pmatilai pmatilai closed this Feb 17, 2021
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.

None yet

2 participants