scummvm/engines/hdb
D G Turner ec677b3fe9 HDB: Fix Crash on Invalid Sound String Pointers
This was causing a crash with buffer overflow on Windows builds, but
diagnosing with Valgrind showed invalid strings being accessed in the
sound code. Some analysis showed that these were mainly the reference
to c_str() buffers from a local heap Common::String which was out of
scope and thus destructed, giving an invalid pointer.

The fix here also simplifies the code as well as avoiding this issue.
2019-09-13 20:14:22 +01:00
..
ai-bots.cpp HDB: Janitorial - Fix some code formatting 2019-09-03 17:17:35 +02:00
ai-cinematic.cpp HDB: Fix some array compared to nullptr, reduce some variable scopes 2019-09-07 19:47:36 +02:00
ai-funcs.cpp HDB: Fix empty string test 2019-09-10 16:20:19 -07:00
ai-init.cpp HDB: Fix more uninitialized variables in ai-init 2019-09-09 22:47:27 +02:00
ai-inventory.cpp HDB: Remove useless existence checks on entityName 2019-09-07 01:25:32 +02:00
ai-lists.cpp HDB: Fix GCC Compiler Warnings for Set-But-Unused Variables 2019-09-05 18:10:31 +01:00
ai-player.cpp HDB: Janitorial - Fix some code formatting 2019-09-03 17:17:35 +02:00
ai-player.h HDB: Reduce header dependency 2019-09-03 17:17:27 +02:00
ai-use.cpp HDB: Reduce header dependency 2019-09-03 17:17:28 +02:00
ai-waypoint.cpp HDB: Make Platform specific constants into variables 2019-09-03 17:17:30 +02:00
ai.h HDB: Change init functions to handle errors 2019-09-03 17:17:34 +02:00
configure.engine HDB: Build engine by default 2019-09-06 00:00:40 +02:00
detection.cpp HDB: Set engine to testing 2019-09-04 23:35:01 +02:00
file-manager.cpp HDB: Initialize some more uninitialized variables. 2019-09-06 08:16:04 +02:00
file-manager.h HDB: Added optional length parameter for querying from FindFirstData 2019-09-03 17:17:34 +02:00
gfx.cpp HDB: Fix more uninitialized variables in Gfx and Window 2019-09-09 23:16:26 +02:00
gfx.h HDB: Change init functions to handle errors 2019-09-03 17:17:34 +02:00
hdb.cpp HDB: Fix a pointer to local variable outside of scope 2019-09-09 22:30:17 +02:00
hdb.h HDB: Initialize some more uninitialized variables. 2019-09-06 08:16:04 +02:00
input.cpp HDB: Remove unused static in setButtons 2019-09-08 22:15:15 +02:00
input.h HDB: Change init functions to handle errors 2019-09-03 17:17:34 +02:00
lua-script.cpp HDB: More missing initializations 2019-09-06 08:16:04 +02:00
lua-script.h HDB: Change init functions to handle errors 2019-09-03 17:17:34 +02:00
map.cpp HDB: Initialize some more uninitialized variables. 2019-09-06 08:16:04 +02:00
map.h HDB: Fix some unintended sign extensions 2019-09-05 21:13:20 +02:00
menu.cpp HDB: Turn _voicesOn into a boolean 2019-09-06 22:14:12 +02:00
menu.h HDB: Remove unused variables in menu 2019-09-06 21:51:55 +02:00
module.mk HDB: Remove unused console.cpp 2019-09-03 17:17:27 +02:00
mpc.h HDB: Add Handango GFX and Demo Title Screen 2019-09-03 17:17:32 +02:00
POTFILES HDB: Implement cheating as GUI option 2019-09-03 17:17:34 +02:00
saveload.cpp HDB: Replace some unsafe strcpy by strncpy 2019-09-07 00:40:01 +02:00
sound.cpp HDB: Fix Crash on Invalid Sound String Pointers 2019-09-13 20:14:22 +01:00
sound.h HDB: Turn _voicesOn into a boolean 2019-09-06 22:14:12 +02:00
window.cpp HDB: Fix more uninitialized variables in Gfx and Window 2019-09-09 23:16:26 +02:00
window.h HDB: Change init functions to handle errors 2019-09-03 17:17:34 +02:00