ddnet/src/tools
Robert Müller 751343c846 Fix client crash on maps with invalid image and sound indices
Limit number of sounds being loaded in the client to 64, instead of writing sample indices out of bounds.

Check if sound indices are out of bounds. It was only checked whether the sound index is -1 but no other bounds checking was performed.

Check if image indices are out of bounds. It was not checked for all negative image indices, only -1 was considered.

Add popup message in the editor when trying to add more than 64 sounds, same as for images.

Limit number of images in `map_convert_07` tool, instead of writing out of bounds.
2023-10-29 17:55:20 +01:00
..
config_common.h Add templated str_append function for arrays with fixed size 2023-06-14 00:04:01 +02:00
config_retrieve.cpp Move/rename variable declarations in config_retrieve 2022-06-04 17:21:26 +02:00
config_store.cpp Move/rename variable declarations in config_store 2022-06-04 17:21:26 +02:00
crapnet.cpp Remove redundant variable assignments 2022-11-29 23:32:26 +01:00
demo_extract_chat.cpp fix requested changes 2023-10-25 21:35:26 +02:00
dilate.cpp Remove redundant argument of Dilate function 2023-10-03 13:52:37 +02:00
dummy_map.cpp Fix sv_vanilla_antispoof for vanilla 0.6.5 clients 2023-01-18 20:21:12 +01:00
map_convert_07.cpp Fix client crash on maps with invalid image and sound indices 2023-10-29 17:55:20 +01:00
map_create_pixelart.cpp Add CImageInfo::PixelSize function, use enum EImageFormat 2023-09-03 20:40:28 +02:00
map_diff.cpp Fix map version checks in map_diff and map_extract tools 2023-10-14 17:03:48 +02:00
map_extract.cpp Fix map version checks in map_diff and map_extract tools 2023-10-14 17:03:48 +02:00
map_find_env.cpp Add default argument to CDataFileReader/IMap::GetItem 2023-05-14 16:39:46 +02:00
map_optimize.cpp Fix client crash on maps with invalid image and sound indices 2023-10-29 17:55:20 +01:00
map_replace_area.cpp Fix clang-tidy readability-static-accessed-through-instance 2023-10-06 14:07:02 +02:00
map_replace_image.cpp Add functions for reading/writing strings from/to datafile 2023-10-03 16:07:15 +02:00
map_resave.cpp CDataFileWriter: Make it clear that Add methods do not modify the data 2023-07-08 02:44:53 +03:00
packetgen.cpp Remove namespace tw 2022-06-13 18:07:29 +02:00
stun.cpp Remove namespace tw 2022-06-13 18:07:29 +02:00
twping.cpp Show twping timeout if no ping response is received, add exit code 2023-03-23 23:26:07 +01:00
unicode_confusables.cpp Remove namespace tw 2022-06-13 18:07:29 +02:00
uuid.cpp Remove namespace tw 2022-06-13 18:07:29 +02:00