-
Notifications
You must be signed in to change notification settings - Fork 34
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 functions' arity #433
Conversation
test/unittests/validation_test.cpp
Outdated
@@ -13,6 +13,15 @@ | |||
using namespace fizzy; | |||
using namespace fizzy::test; | |||
|
|||
TEST(validation, imported_function_type_invalid_arity) | |||
{ | |||
/* wat2wasm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wabt doesn't throw an error unless function with this type is defined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add this to our list of "to reach out"? Or just ask the question on the wabt repo? It may be we are using an old wabt and it was fixed since, or perhaps they are more committed to the multi-return-value change (I believe that is implemented by wabt).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried it with recent wabt 1.0.19, and it appears to be fixed: multi-value is enabled by default there, but with --disable-multi-value
this correctly throws an error.
I think I'll add --no-check
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.0.14 is the last one that has multi-value disabled by default, and it has this issue fixed also.
Codecov Report
@@ Coverage Diff @@
## master #433 +/- ##
=======================================
Coverage 99.32% 99.32%
=======================================
Files 50 50
Lines 13978 13989 +11
=======================================
+ Hits 13883 13894 +11
Misses 95 95 |
test/unittests/validation_test.cpp
Outdated
@@ -13,6 +13,15 @@ | |||
using namespace fizzy; | |||
using namespace fizzy::test; | |||
|
|||
TEST(validation, imported_function_type_invalid_arity) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not imported, just function_type_invalid_arity
cee3935
to
8896019
Compare
8896019
to
10fa4d5
Compare
No description provided.