From 1c4007bcd197f97f7ed67ba12af3019214256a24 Mon Sep 17 00:00:00 2001 From: Mast Date: Mon, 7 Oct 2024 16:16:07 -0700 Subject: [PATCH] fix OverflowError when System.DateTime has DateTimeKind bits set --- src/dnfile/resource.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/dnfile/resource.py b/src/dnfile/resource.py index 267d32c..375fea5 100644 --- a/src/dnfile/resource.py +++ b/src/dnfile/resource.py @@ -225,11 +225,18 @@ def type_str_to_type(self, type_name: str, data: bytes, offset: int) -> Tuple[Op tsize = 8 final_bytes = data[offset:offset + tsize] x = struct.unpack("