-
Notifications
You must be signed in to change notification settings - Fork 59
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
Update dependencies, wasmtime-19, remove wasmtime-wasi #101
Conversation
I guess I'll bump to 19.0.1 ;) |
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.
Thanks! One thing to fix before we merge this.
ValType::ExternRef => Val::ExternRef(None), | ||
ValType::FuncRef => Val::FuncRef(None), | ||
ValType::Ref(ref_type) => { | ||
if ref_type.matches(&RefType::EXTERNREF) { |
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 check whether ref_type.is_nullable()
and return an error here ("cannot create a dummy value for a non-nullable reference type") if so? This will require making a few of these dummy_foo
functions return Result<Foo>
s.
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.
was this the intended change?
src/dummy.rs
Outdated
} | ||
|
||
/// Construct a sequence of dummy values for the given types. | ||
#[cfg(fuzzing)] | ||
pub fn dummy_values(val_tys: impl IntoIterator<Item = ValType>) -> Vec<Val> { | ||
val_tys.into_iter().map(dummy_value).collect() | ||
val_tys |
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 the only place where dummy_value is called
I run the fuzzer with otherwise I hope I got the dummy values part right this time :) |
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.
Looks great! Thanks!
wasmtime-wasi is no longer used since the preview1 host has moved to wasi-common
I'm not sure if my changes to dummy.rs are correct, I read your notes on the RefType changes, is it fine to treat NULLFUNCREF the same as FUNCREF?
the fuzzer ran out of memory at some point once, I think I just let it run for too long and couldn't reproduce the error a second time