Wanne 2cbc52e265 - Fixed "out of memory" crash when loading a savegame with NIV and the wrong "Items.xml" files
o In my case the ja2 process took ALL the memory (up to 2GB) and then crashed
o The problem is, that the "objectStack.resize(size);" consumes ALL the memory when passing in invalid huge size to the resize method
o The wrong "size" is calculated from the temporary files because of wrong items. Now I added a safety check on the size variable and if out of range ( > 1000) we simply fail loading the savegame instead of letting the ja2 process consume all the memory and then let it crash after a few minutes.


git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4532 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2011-06-25 09:53:40 +00:00
2011-06-17 10:56:48 +00:00
2011-06-22 21:20:38 +00:00
2011-06-22 05:27:21 +00:00
2007-06-09 09:01:04 +00:00
2011-05-30 02:31:51 +00:00
2007-06-09 09:01:04 +00:00
2011-06-22 21:20:38 +00:00
2007-10-20 06:56:34 +00:00
2007-10-20 06:56:34 +00:00
2007-10-20 06:56:34 +00:00
2007-10-20 06:56:34 +00:00
S
Description
No description provided
57 MiB
Languages
C++ 90.4%
C 9.3%
HTML 0.2%
CMake 0.1%