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

Fixes Heap-buffer-overflow in std::__1::basic_string<char, std::__1::… #4645

Merged
merged 2 commits into from Jul 24, 2022

Conversation

sashashura
Copy link
Contributor

Fixes Heap-buffer-overflow in std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator<ch revealed by fuzzing:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41582

The root cause is that it fails to parse the version of an arbitrary file without extension but the header nendo ****garbage*** in NDOImporter::InternReadFile. Then it tries to log the non null terminated garbage string in ASSIMP_LOG_WARN( "Unrecognized nendo file format version, continuing happily ... :", (head+6));. It leads to out of bounds read access.

@sashashura
Copy link
Contributor Author

Let me know if you have any questions.

Copy link
Member

@kimkulling kimkulling left a comment

Choose a reason for hiding this comment

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

Looks fine.

@kimkulling kimkulling merged commit 9bd2b4d into assimp:master Jul 24, 2022
@kimkulling
Copy link
Member

Merged, thanks a lot for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants