From 4331a252d3133c06abc088be1fc93bae27eb93eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Fri, 9 Aug 2024 10:11:00 +0200 Subject: [PATCH] restore coverage --- .../eip3540_eof_v1/test_migrated_valid_invalid.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_migrated_valid_invalid.py b/tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_migrated_valid_invalid.py index 539f091404..23656ff61d 100644 --- a/tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_migrated_valid_invalid.py +++ b/tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_migrated_valid_invalid.py @@ -145,6 +145,12 @@ EOFException.INVALID_SECTION_BODIES_SIZE, id="EOF1I3540_0027", ), + pytest.param( + # Trailing bytes after code section with wrong first section type + bytes.fromhex("ef0001 010004 0200010001 040000 00 00000000 fe aabbcc"), + EOFException.INVALID_FIRST_SECTION_TYPE, + id="EOF1I3540_0027_orig", + ), pytest.param( # Empty code section bytes.fromhex("ef000101000402000100000400000000000000"), @@ -187,6 +193,12 @@ EOFException.INVALID_SECTION_BODIES_SIZE, id="EOF1I3540_0035", ), + pytest.param( + # Trailing bytes after data section with wrong first section type + bytes.fromhex("ef0001 010004 0200010001 040002 00 00000000 fe aabbccdd"), + EOFException.INVALID_FIRST_SECTION_TYPE, + id="EOF1I3540_0035_orig", + ), pytest.param( # Multiple data sections bytes.fromhex("ef000101000402000100010400020400020000000000feaabbaabb"),