From 5f5b9f164822a5c2b21073ff1cc7b5d7debdf441 Mon Sep 17 00:00:00 2001 From: Miro <200482516+Mirochill@users.noreply.github.com> Date: Sat, 10 Oct 2026 23:36:27 +0200 Subject: [PATCH] Validate compressed A2S responses with unsigned CRC32 Assisted-by: OpenAI Codex --- steam/game_servers.py | 7 +-- tests/test_game_servers_compressed.py | 67 +++++++++++++++++++++++++++ 2 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 tests/test_game_servers_compressed.py diff --git a/steam/game_servers.py b/steam/game_servers.py index 80bf1083..92d5f20b 100644 --- a/steam/game_servers.py +++ b/steam/game_servers.py @@ -286,13 +286,14 @@ def _handle_a2s_multi_packet_response(sock, packet): # decompress response if needed if compressed: - size, checksum = _unpack_from('