dhewm3/neo
Daniel Gibson 9950a5721f Fix heap corruption when loading (broken?) .ma models
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
2015-12-17 18:07:35 +01:00
..
cm more fixes for Visual Studio 14 2015-10-11 23:27:42 +02:00
d3xp Fix crash by assert in last RoE level (and maybe elsewhere) 2015-12-13 03:30:03 +01:00
framework Win32: Don't access FILE::_file, use _fileno() instead 2015-10-11 23:32:31 +02:00
game Fix crash by assert in last RoE level (and maybe elsewhere) 2015-12-13 03:30:03 +01:00
idlib Unix: On failed assertion, break gracefully into debugger 2015-12-13 03:30:03 +01:00
MayaImport s/LittleLong/LittleInt/ to match the return type 2012-06-28 13:02:47 +02:00
renderer Fix heap corruption when loading (broken?) .ma models 2015-12-17 18:07:35 +01:00
sound Change default values for some video and sound (EAX) CVars 2015-09-29 21:14:45 +02:00
sys small improvement for handling up to 8 mouse buttons 2015-12-13 03:49:29 +01:00
tools more fixes for Visual Studio 14 2015-10-11 23:27:42 +02:00
TypeInfo Get rid of Sys_FPU_StackIsEmpty() 2012-07-06 01:06:53 +02:00
ui Release Candiate 1 preparations, other small fixes 2015-10-03 19:14:22 +02:00
CMakeLists.txt Win32: Add an icon to the dhewm3 executable 2015-10-03 09:17:30 +02:00
config.h.in Introduce CMAKE_INSTALL_PREFIX relative paths 2012-07-04 02:18:42 +02:00