1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 10:14:06 +02:00

Fix saturating overflow in ExtraData parsing

- Fix overflow in ExtraData by casting byte_len to usize before
multiplication. This was previously multiplying a u16 with
saturating_mul and would overflow when the extra data in string
tables reaches a certain size.
- Add test case for parsing large string table to verify correct
stream position after read.
This commit is contained in:
glyphpoch 2025-06-02 21:24:00 +01:00
commit 624efb6427
4 changed files with 26 additions and 2 deletions

Binary file not shown.

View file

@ -0,0 +1,4 @@
{
"name": "ServerMapCycle",
"marker": 4039822362
}