From b114c82f4c4e1cb01b0207e61b92d7933c7781b0 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Sun, 14 Jul 2019 11:21:58 +0100 Subject: [PATCH] fix buggy lzma decompressor producing shorter output --- steam/client/cdn.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/steam/client/cdn.py b/steam/client/cdn.py index e5a91a7..d56db44 100644 --- a/steam/client/cdn.py +++ b/steam/client/cdn.py @@ -470,7 +470,7 @@ class CDNClient(object): packages = [17906] else: if not self.steam.licenses: - self._LOG.debug("No steam licenses available. Is SteamClient instances connected?") + self._LOG.debug("No steam licenses found on SteamClient instance") return packages = list(self.steam.licenses.keys()) @@ -590,8 +590,10 @@ class CDNClient(object): vzfilter = lzma._decode_filter_properties(lzma.FILTER_LZMA1, data[7:12]) vzdec = lzma.LZMADecompressor(lzma.FORMAT_RAW, filters=[vzfilter]) checksum, decompressed_size = struct.unpack('