Stream: git-wasmtime

Topic: wasmtime / issue #5005 Panic in `write_plt_entry_bytes` :278


view this post on Zulip Wasmtime GitHub notifications bot (Oct 04 2022 at 10:45):

mokhaled2992 opened issue #5005:

I'm getting a panic and the stacktrace points at the following line. This happens at the very early stages when I initialize my JIT and try to declare some functions. Any hints on how to solve this?

    unsafe fn write_plt_entry_bytes(plt_ptr: *mut [u8; 16], got_ptr: NonNull<AtomicPtr<u8>>) {
        ...................
        plt_val[2..6].copy_from_slice(&i32::to_ne_bytes(i32::try_from(what - at).unwrap()));
        ...................
    }

Last updated: Nov 22 2024 at 17:03 UTC