Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise validation error on invalid start function index #353

Merged
merged 4 commits into from
May 30, 2020

Conversation

axic
Copy link
Member

@axic axic commented May 27, 2020

No description provided.

@@ -781,15 +781,15 @@ TEST(parser, start_invalid_index)
make_section(3, func_section) + make_section(8, start_section) +
make_section(10, code_section);

EXPECT_THROW_MESSAGE(parse(bin), parser_error, "invalid start function index");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these tests should better be moved to validation_test.cpp now

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I did that quite a few times. Perhaps we should merge these small changes as is and then do a sweep of moving things across?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's coordinate with moving bigger code pieces.

@axic axic marked this pull request as ready for review May 29, 2020 10:55
@axic axic requested review from gumb0 and chfast May 29, 2020 10:56
@axic
Copy link
Member Author

axic commented May 29, 2020

Also fixed stat function type checking -- should that be in a new PR or extend this one?

@codecov
Copy link

codecov bot commented May 29, 2020

Codecov Report

Merging #353 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #353   +/-   ##
=======================================
  Coverage   98.84%   98.84%           
=======================================
  Files          38       38           
  Lines       11575    11608   +33     
=======================================
+ Hits        11441    11474   +33     
  Misses        134      134           

@axic axic merged commit 3c54d94 into master May 30, 2020
@axic axic deleted the validate-startfunc branch May 30, 2020 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants