Skip to content

Commit

Permalink
restore coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Aug 9, 2024
1 parent 8ef8d3e commit 4331a25
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit 4331a25

Please sign in to comment.