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 casting TNEntry type code to Type directly #4138

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

randombit
Copy link
Owner

With invalid data this causes a cast to outside of the enumerations range, which is undefined behavior.

While there, convert the switch to an if/else sequence

Found by OSS-Fuzz

With invalid data this causes a cast to outside of the enumerations
range, which is undefined behavior.

While there, convert the switch to an if/else sequence

OSS-Fuzz 69746
@randombit randombit force-pushed the jack/fix-tn-oss-fuzz branch from 9896808 to ae3b835 Compare June 19, 2024 13:42
@coveralls
Copy link

Coverage Status

coverage: 91.775% (+0.004%) from 91.771%
when pulling 9896808 on jack/fix-tn-oss-fuzz
into a902bba on master.

@coveralls
Copy link

Coverage Status

coverage: 91.768% (-0.003%) from 91.771%
when pulling ae3b835 on jack/fix-tn-oss-fuzz
into a902bba on master.

@randombit randombit merged commit a55851c into master Jun 21, 2024
42 checks passed
@randombit randombit deleted the jack/fix-tn-oss-fuzz branch June 21, 2024 07:29
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