scummvm/engines/touche
Willem Jan Palenstijn f94153f07a TOUCHE: Fix semi-intentional array overrun
op_getInventoryItem/op_setInventoryItem could operate on
inventoryItems[4] while inventoryItems has only 4 elements. This
effectively accesses the 'money' field right behind this array.
Due to a broken assert, this was never detected.

This commit fixes it by redirecting accesses to inventoryItems[4] to
money, and also fixes the assert.

An alternative solution would have been enlarging the array, and
removing the money field, but that would require more changes in the
engine.
2016-02-01 20:21:27 +01:00
..
configure.engine BUILD: Split configure.engines down to a single file per engine. 2013-11-24 00:45:38 +00:00
console.cpp ALL: Rename Debugger::DCmd_Register to Debugger::registerCmd. 2014-05-27 02:04:08 +02:00
console.h TOUCHE: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
detection.cpp TOUCHE: Update list of files that contain translatable strings 2014-10-04 01:08:28 +01:00
graphics.cpp TOUCHE: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
graphics.h TOUCHE: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
menu.cpp TOUCHE: Move some enums and struct definition to header file, get rid of some void* parameters 2014-05-25 23:30:22 +02:00
midi.cpp TOUCHE: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
midi.h TOUCHE: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
module.mk
opcodes.cpp TOUCHE: Fix semi-intentional array overrun 2016-02-01 20:21:27 +01:00
resource.cpp TOUCHE: Initialize some uninitialized variables, fix a lot of pointers and booleans default values 2014-05-25 22:04:03 +02:00
saveload.cpp TOUCHE: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
staticres.cpp TOUCHE: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
touche.cpp TOUCHE: Reduce the scope of a variable 2014-05-25 23:29:03 +02:00
touche.h Revert "TOUCHE: Fix buffer overrun. CID 1003934" 2016-02-01 20:17:09 +01:00