mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-03-21 18:21:08 +00:00
On FreeBSD, the game used to crash when loading the last level of RoE (d3xp), while loading models/david/hell_h7.ma. The problem could be reproduced on Linux whith #define USE_LIBC_MALLOC 1 and clang's AddressSanitizer. Turns out that this file specifies a vertex transform for a non-existent vertex (index 31, while we only have 0-30) and thus the bounds of pMesh->vertexes[] are violated. I added a check to ensure the index is within the bounds and a Warning if it isn't. It should work now. If however it turns out that more files have this problem, maybe .ma is parsed incorrectly and we need a differently fix. (Should) fix #138 |
||
---|---|---|
.. | ||
cm | ||
d3xp | ||
framework | ||
game | ||
idlib | ||
MayaImport | ||
renderer | ||
sound | ||
sys | ||
tools | ||
TypeInfo | ||
ui | ||
CMakeLists.txt | ||
config.h.in |