From 05111ffa1c648a1542e1b65a426efb12b875f28a Mon Sep 17 00:00:00 2001 From: Vahagn Date: Tue, 6 Aug 2024 16:37:23 -0400 Subject: [PATCH] Fix SAPCAR --- pysap/SAPCAR.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysap/SAPCAR.py b/pysap/SAPCAR.py index 68ea5d7..8a2074f 100644 --- a/pysap/SAPCAR.py +++ b/pysap/SAPCAR.py @@ -60,7 +60,7 @@ class SAPCARCompressedBlobFormat(PacketNoPadded): StrFixedLenField("magic_bytes", b"\x1f\x9d", 2), ByteField("special", 2), ConditionalField(StrField("blob", None, remain=4), lambda x: x.compressed_length <= 8), - ConditionalField(StrFixedLenField("blob", None, length_from=lambda x: x.compressed_length - 8), + ConditionalField(StrFixedLenField("blob2", None, length_from=lambda x: x.compressed_length - 8), lambda x: x.compressed_length > 8), ]