-
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
panicked at 'singlepass can't emit SUB S64 GPR(X6) GPR(X6) Imm32(4)' #2959
Comments
That's a good point. |
2966: Singlepass nopanic r=ptitSeb a=ptitSeb # Description Removed all panic from singlepass compiler, and implemented Result for error handling. The compiler will now return a CompileError instead of a panic when an opcode is missing or more generalt when something goes wrong in the compiler. This partly address ticket #2959 Also, tested the compiler performances with the method expalined here: https://wasmer.io/posts/wasmer-2.2 and found no speed change (good job rustc compiler) Co-authored-by: ptitSeb <[email protected]>
2967: Fix singlepass on arm64 that was trying to emit a sub opcode with a constant as destination (for #2959) r=epilys a=ptitSeb # Description Fix singlepass/machine_arm64 that was trying to emit a sub opcode with a constant as destination (for #2959) Co-authored-by: ptitSeb <[email protected]>
So, wasmer should not panic anymore when something goes wrong with singlepass compiler, and also, the bug should be fixed. |
Great work. Thanks a lot. I'll try it soon. |
It works now. Thanks very much! |
Wasmer panics while loading my module under an M1 MacBook.
It seems like wasmer would panic if the given wasm byte codes were not well-formed or some instructions were not supported.
This should return
CompileError
rather than panic. Otherwise, the untrusted wasm code could DoS attack the host Application.The text was updated successfully, but these errors were encountered: