From ef37784408b32f7191ebb376877ea8392aa69de1 Mon Sep 17 00:00:00 2001 From: msutovsky-r7 Date: Thu, 13 Aug 2026 17:18:56 +0200 Subject: [PATCH] Updates contain_offset? function to address sections with SizeOfRawData=0 --- lib/rex/peparsey/section.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rex/peparsey/section.rb b/lib/rex/peparsey/section.rb index ddf3968..a9dfa29 100644 --- a/lib/rex/peparsey/section.rb +++ b/lib/rex/peparsey/section.rb @@ -112,7 +112,7 @@ def rva_to_file_offset(rva) end def contains_offset?(offset) - offset >= 0 && offset < size + offset >= 0 && offset <= size end def contains_file_offset?(foffset)