ddnet/src/engine/shared
Robert Müller 7069d74beb Check for errors when reading and decompressing datafile data
Check if datafile data cannot be read entirely (according to the data size specified in the header) and check for decompression errors. In case of errors, let `GetData` return `nullptr` and `GetDataSize` return `0` for the respective index.

Internally the decompressed size is set to `-1` for data which failed to load, so loading of those data will not be attempted again because it would only fail again and can cause additional log messages.
2023-07-28 13:19:40 +02:00
..
assertion_logger.cpp Add the DDNet git hash and "is steam" to the crash file 2023-04-29 10:26:30 +02:00
assertion_logger.h Unify logging infrastructure between IConsole and dbg_msg 2022-04-29 15:21:26 +02:00
build.rs Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
Cargo.toml Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
compression.cpp Consistently use static const instead of const static 2022-11-29 23:32:32 +01:00
compression.h Add size checks to CVariableInt::Pack and ::Unpack 2022-03-05 20:49:55 +01:00
config.cpp Simplify io_write_newline error handling 2023-02-18 14:13:55 +01:00
config.h Minimal changes to default to Vulkan 2022-12-13 19:37:03 +01:00
config.rs Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
config_variables.h Split emoticon sending into nearby and global players 2023-06-11 13:31:50 +02:00
console.cpp Fix crash in ResetServerGameSettings 2023-07-27 13:26:11 -05:00
console.h Fix crash in ResetServerGameSettings 2023-07-27 13:26:11 -05:00
csv.cpp Add a simple CSV writer for Python's "excel" csv dialect 2020-06-23 09:11:59 +02:00
csv.h Fix some variable name's style 2020-11-08 17:15:48 +01:00
datafile.cpp Check for errors when reading and decompressing datafile data 2023-07-28 13:19:40 +02:00
datafile.h Check for errors when reading and decompressing datafile data 2023-07-28 13:19:40 +02:00
demo.cpp IDemoPlayer: Make SetSpeedIndex() actually set index 2023-07-08 04:09:46 +03:00
demo.h IDemoPlayer: Make SetSpeedIndex() actually set index 2023-07-08 04:09:46 +03:00
econ.cpp Quit when configured bindaddr cannot be resolved 2023-03-23 21:34:07 +01:00
econ.h Organize engine-shared includes 2022-06-17 17:39:24 +02:00
engine.cpp Fix logging (fixes #6611) 2023-05-18 21:54:30 +02:00
fifo.cpp Add templated str_append function for arrays with fixed size 2023-06-14 00:04:01 +02:00
fifo.h Implement FIFO on Windows using Named Pipes 2023-01-21 11:13:02 +01:00
filecollection.cpp Use IO_MAX_PATH_LENGTH in CFileCollection 2023-06-25 10:49:57 +02:00
filecollection.h Replace all usages of C standard headers with C++ headers 2023-03-01 19:26:51 +01:00
global_uuid_manager.cpp Move teehistorian UUIDs into engine 2018-01-11 16:01:13 +01:00
http.cpp Check if HTTP request task is aborted in completion callback 2023-03-25 12:43:19 +01:00
http.h Stop server if started with old curl and incompatible sv_register 2022-09-22 00:09:02 +02:00
huffman.cpp Remove redundant variable assignments 2022-11-29 23:32:26 +01:00
huffman.h Mark CHuffman::Compress and ::Decompress as const 2022-04-02 13:35:24 +02:00
jobs.cpp Add CLockScope 2022-06-03 12:21:23 +02:00
jobs.h Organize engine-shared includes 2022-06-17 17:39:24 +02:00
json.cpp Run clang-format 2020-09-26 21:50:15 +02:00
json.h Run clang-format 2020-09-26 21:50:15 +02:00
jsonwriter.cpp Port JSON writer from upstream 2023-07-25 15:05:25 +02:00
jsonwriter.h Port JSON writer from upstream 2023-07-25 15:05:25 +02:00
kernel.cpp Let CKernel clean-up. Use unused CSound::Shutdown 2022-09-16 16:50:19 +02:00
lib.rs Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
linereader.cpp Add modernize-use-bool-literals 2022-02-15 00:12:52 +01:00
linereader.h Fix announcement feature, don't depend on buffer staying consistent 2023-01-13 16:22:22 +01:00
localization.h Add Localizable hint 2022-12-13 17:53:32 +01:00
map.cpp Report actual data sizes in CDataFileReader::GetDataSize 2023-07-16 12:46:33 +02:00
map.h Support bezier envelope curves in maps and editor 2023-07-16 12:46:34 +02:00
masterserver.cpp Add HTTP masterserver registering and HTTP masterserver 2022-05-20 08:58:32 +02:00
masterserver.h Add HTTP masterserver registering and HTTP masterserver 2022-05-20 08:58:32 +02:00
memheap.cpp Organize base includes 2022-06-17 17:39:25 +02:00
memheap.h Add CHeap::StoreString method 2022-05-06 23:21:26 +02:00
netban.cpp Reduce duplicate code by extracting CNetBan::CBanPool::InsertUsed 2022-12-06 20:18:08 +01:00
netban.h Reduce duplicate code by extracting CNetBan::CBanPool::InsertUsed 2022-12-06 20:18:08 +01:00
network.cpp Remove check for pResponseToken, which isn't used on this code path 2022-12-06 20:37:59 +01:00
network.h Fix NET_MAX_CHUNKHEADERSIZE 5 -> 3 2023-04-23 11:51:34 +02:00
network_client.cpp Allow multiple connect addresses 2022-07-10 16:57:10 +02:00
network_conn.cpp Mark parameters as const when possible 2022-11-29 23:32:31 +01:00
network_console.cpp Port some code to str_copy() template 2022-07-09 19:40:58 +03:00
network_console_conn.cpp Port some code to str_copy() template 2022-07-09 19:40:58 +03:00
network_server.cpp Use sizeof(int32_t) instead of 4 2023-02-11 13:59:08 +01:00
network_stun.cpp Only compare with old STUN server address if we have any 2022-07-10 16:53:15 +02:00
packer.cpp Fix off-by-one error when adding raw data to buffer 2023-05-03 19:13:39 +02:00
packer.h Add default parameter for CPacker::AddString 2023-05-03 18:17:27 +02:00
protocol.h Add net netobjs for projectile and pickup, extend ddnetlaser, remove EntityEx server-side 2023-05-04 23:43:05 +02:00
protocol7.h Add 0.7 system message constants 2023-02-14 11:40:55 +01:00
protocol_ex.cpp Organize engine-shared includes 2022-06-17 17:39:24 +02:00
protocol_ex.h Organize engine-shared includes 2022-06-17 17:39:24 +02:00
protocol_ex_msgs.h Revert "Allow server to redirect clients" 2023-07-24 22:51:27 +02:00
ringbuffer.cpp Add modernize-use-bool-literals 2022-02-15 00:12:52 +01:00
ringbuffer.h Fix some variable name's style 2020-11-08 17:15:48 +01:00
rust_version.rs Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
serverinfo.cpp fix conflicts 2023-05-14 11:22:06 +02:00
serverinfo.h fix conflicts 2023-05-14 11:22:06 +02:00
snapshot.cpp Fix undefined behavior in CSnapshotDelta::DiffItem 2023-05-27 20:57:05 +02:00
snapshot.h Replace all usages of C standard headers with C++ headers 2023-03-01 19:26:51 +01:00
storage.cpp Ensure ListDirectory/Info entries are unique 2023-07-03 20:06:40 +02:00
stun.cpp Use STUN to determine UDP connectivity and show diagnostics 2022-05-18 09:21:31 +02:00
stun.h Add bare-bones STUN protocol support 2022-05-18 09:20:54 +02:00
teehistorian_ex.cpp Run clang-format 2020-09-26 21:50:15 +02:00
teehistorian_ex.h Run clang-format 2020-09-26 21:50:15 +02:00
teehistorian_ex_chunks.h Record player switch in teehistorian 2022-05-21 21:37:17 +02:00
uuid_manager.cpp Add comments explaining UUID generation 2023-02-20 20:05:26 +01:00
uuid_manager.h Use std::vector<CName> instead of array, adjust variable name 2022-05-27 16:31:18 +02:00
video.cpp Organize engine-shared includes 2022-05-29 20:02:22 +02:00
video.h Use existing typedef instead of duplicating arguments 2022-06-17 17:39:26 +02:00
websockets.cpp Use mem_copy instead of memcpy for websockets 2023-03-09 13:16:49 +01:00
websockets.h Replace all usages of C standard headers with C++ headers 2023-03-01 19:26:51 +01:00