Merge pull request from GHSA-h84q-m8rr-3v9q
The Rust definition was previously performing a 4-byte write when the C API was declared as taking an 1-byte buffer.
This commit is contained in:
@@ -116,7 +116,7 @@ pub(crate) fn error_trace<'a>(error: &'a Error, out: &mut wasm_frame_vec_t<'a>)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn wasmtime_trap_code(raw: &wasm_trap_t, code: &mut i32) -> bool {
|
||||
pub extern "C" fn wasmtime_trap_code(raw: &wasm_trap_t, code: &mut u8) -> bool {
|
||||
let trap = match raw.error.downcast_ref::<Trap>() {
|
||||
Some(trap) => trap,
|
||||
None => return false,
|
||||
|
||||
Reference in New Issue
Block a user