From 2b19a41ce288b5faff17b51de65ca39a8f565578 Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Thu, 2 Jan 2025 11:50:10 +0000 Subject: [PATCH] Remove unnecessary assignment --- pefile.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/pefile.py b/pefile.py index f804678..ff1bd26 100644 --- a/pefile.py +++ b/pefile.py @@ -1003,15 +1003,12 @@ def sizeof(self): return self.__format_length__ def __unpack__(self, data): - data = data - if len(data) > self.__format_length__: data = data[: self.__format_length__] # Some malware have incorrect header lengths. # Fail gracefully if this occurs # Buggy malware: a29b0118af8b7408444df81701ad5a7f - # elif len(data) < self.__format_length__: raise PEFormatError("Data length less than expected header length.")