From 96240ed47b76de5201a3b3c4094c899ee0da40ab Mon Sep 17 00:00:00 2001 From: Romain Thomas Date: Sun, 28 Apr 2024 17:11:39 +0200 Subject: [PATCH] Add testcase for #1049 Close #1049 --- tests/pe/test_parser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/pe/test_parser.py b/tests/pe/test_parser.py index 895385c82..f3f10fb16 100644 --- a/tests/pe/test_parser.py +++ b/tests/pe/test_parser.py @@ -542,3 +542,7 @@ def test_overlay(): def test_path_like(): assert lief.PE.parse(Path(get_sample('PE/PE32_x86-64_binary_avast-free-antivirus-setup-online.exe'))) is not None + +def test_issue_1049(): + pe = lief.PE.parse(get_sample("PE/issue_1049.exe")) + assert pe is not None