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

A fuzzed stride could cause the max count to become negative and henc… #5414

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FlorianBorn71
Copy link
Contributor

A fuzzed stride could cause the max count to become negative and hence wrap around uint

We have fuzzing tests that artificially break files. We want assimp to crash in a controlled way.
One case we now came across is that the fuzzer changed the stride of one buffer view:
"byteStride": 32769,
This caused the division maxSize / stride to become 0 and with the -1 wrap around to 0xffffffff for the uint.

@FlorianBorn71
Copy link
Contributor Author

Not a big deal in reality, but it's always good to harden the code

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

1 participant