Brian Anderson

Results 400 comments of Brian Anderson

I found the source of the error converting from `(&str, RawVal)` to `ScVec`, emitted by the `contractimport!` macro: ```rust #[cfg(any(test, feature = "testutils"))] impl TryFrom for soroban_sdk::xdr::ScVec { type Error...

For my purposes I think I can make a workaround that just passes `u64`s across the VM boundary. I'm not sure if this is worth resolving or not, whether there...

I looked at this yesterday and was able to reproduce the original problem on Rust 1.66.1. I couldn't come up with any new hacks to fix the problem, but did...

> > It puts `_` in the "globals" section and results in a bigger binary than the current hack though. > > Is that because it writes the data twice,...

I have reproduced the first error, `(index < orderedInitOffsetAtoms.size())`. There is a workaround at the bottom of this message. I reproduced the error on MacOS Ventura, ARM, and I think...

Also this issue does not present itself for trivial fuzz tests, which makes sense as seemingly nobody else has reported this error. I tried to reduce a test case but...

> As I'm very new to fuzzing I don't know if this is the expected output but I'm doubtful. This does look correct to me, though ugly because the stack...

Also, both of the fuzzer examples are expected to find a bug - the example contains an intentional bug.

> I _believe_ this is #1011 which is, coincidentally, the next thing on my list. We should coordinate :) They are tantalizingly similar. I'll test the fuzzer on linux-aarch64 and...

https://github.com/rust-fuzz/sancov interoperates with llvms sanitizercoverage/libfuzzer. wasmi can use it to e.g. insert instrumentation on branches.