Skip to content

Commit

Permalink
EOF decode: Header, Body, surplus. EOF tests coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mrLSD committed Oct 24, 2024
1 parent 348f583 commit 36235d1
Show file tree
Hide file tree
Showing 2 changed files with 450 additions and 29 deletions.
6 changes: 6 additions & 0 deletions core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ pub enum EofDecodeError {
InvalidNumberContainerSections,
/// Invalid initcode size.
InvalidEOFInitcodeSize,
/// Short body while processing EOF.
MissingBodyWithoutData,
/// Body size is more than specified in the header.
DanglingData,
/// Invalid types section data.
InvalidTypesSection,
}

impl From<EofDecodeError> for ExitError {
Expand Down
Loading

0 comments on commit 36235d1

Please sign in to comment.