-
Notifications
You must be signed in to change notification settings - Fork 824
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
Wasmer cache can throw panic if cache file has been corrupted #2955
Comments
Hello, thanks for your ticket! This function is |
If you mean - check |
I meant a |
Yep, if you will use |
Propagating the option makes sense to me. We're redesigning the API for the next major release, 3.0, at the moment. So we will take this into consideration, thanks for writing the ticket! |
If we strive to follow the API guidelines, I think it makes sense to rather expose a |
Tracked in #2925 |
Actually keeping this open because it might get lost in #2925. But it depends on it. |
We need to make sure that |
wasmer/lib/engine-universal/src/artifact.rs
Lines 85 to 103 in 66c1c00
Hello guys, as I can see in code above, you work with
string slice
without any checks before. As a result this may cause problems in some cases. For example: if we would corrupt file in compiled wasm cache, then this part of code may throw panic, which is not suitable behaviour. I think the best way is to return error in the case.The text was updated successfully, but these errors were encountered: