ddnet/src
Robert Müller 92e2e17f0f Validate ticks when reading demo chunk headers
Add checks to ensure that the ticks read from demo chunk headers are in the valid range (cf. `MIN_TICK` and `MAX_TICK` constants). Playing demos with invalid ticks is prevented entirely, as the invalid ticks would cause issues in other places. The server never uses ticks outside the valid range, so invalid ticks should never occur in correctly recorded demos.

Additionally, checks are added to detect if a tickmarker chunk with a tick delta occurs before a tickmarker chunk defining an initial tick. The tick delta is only meaningful when an initial tick has already been defined, so if this is not the case the demo is also considered invalid.
2023-10-19 21:41:20 +02:00
..
android Add tests for overloaded hash operators, use operator instead 2022-11-12 20:36:38 +01:00
antibot Allow antibot to record data into teehistorian 2023-08-25 14:26:09 +02:00
base Fix io_skip return type and documentation 2023-10-19 21:40:35 +02:00
engine Validate ticks when reading demo chunk headers 2023-10-19 21:41:20 +02:00
game Add title to engine warnings and make auto-hiding optional 2023-10-19 21:40:55 +02:00
macos Huge variable naming format 2022-07-08 18:01:29 +02:00
masterping Add tool to manually ping the mastersrv 2022-12-29 12:50:24 +01:00
mastersrv mastersrv: Go to RawValue directly 2023-09-08 11:03:07 +02:00
rust-bridge Fix being run from rust-analyzer with a clean environment 2022-11-09 15:09:42 +01:00
steam Replace all usages of C standard headers with C++ headers 2023-03-01 19:26:51 +01:00
test Add tests and documentation for swap_endian function 2023-10-14 13:29:24 +02:00
tools Fix map version checks in map_diff and map_extract tools 2023-10-14 17:03:48 +02:00