Bug: MD2 importer heap-buffer-overflow
Describe the bug My name is Ravshan. I'd like to describe the bug/vulnerability: Heap Overflow Memory-safety vulnerability. A heap-buffer-overflow occurs in Assimp’s MD2 importer when processing a malformed input file. The crash happens due to an out-of-bounds read in strlen(), called from Assimp::MD2Importer::InternReadFile().
strlen scans memory until it finds '\0'. If pcSkins->name points to bytes that do not contain a '\0' within the allocated region, strlen reads out-of-bounds. Code:
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Platform (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.
Source: assimp/assimp