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

Validate constant expressions for elem offset initialization #397

Merged
merged 4 commits into from
Jun 26, 2020

Conversation

gumb0
Copy link
Collaborator

@gumb0 gumb0 commented Jun 26, 2020

Third part of #372

@gumb0 gumb0 requested review from chfast and axic June 26, 2020 15:18
@codecov
Copy link

codecov bot commented Jun 26, 2020

Codecov Report

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

@@           Coverage Diff           @@
##           master     #397   +/-   ##
=======================================
  Coverage   99.16%   99.16%           
=======================================
  Files          43       43           
  Lines       13027    13045   +18     
=======================================
+ Hits        12918    12936   +18     
  Misses        109      109           

Global{{ValType::i32, true}, {ConstantExpression::Kind::Constant, {42}}});
// Table contents: 0, 0xaa, 0xff, 0, ...
module.elementsec.emplace_back(
Element{{ConstantExpression::Kind::GlobalGet, {0}}, {0xaa, 0xff}});
Copy link
Member

Choose a reason for hiding this comment

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

Oh, these contents were quite off :)

@axic
Copy link
Member

axic commented Jun 26, 2020

@gumb0 it seems these aren't covered by the spectests? If so, can you leave a note in our list?

@axic axic merged commit 1d44474 into master Jun 26, 2020
@axic axic deleted the validate-elem-offset-init branch June 26, 2020 16:42
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.

2 participants