Files
wasmtime/crates
Alex Crichton 0aa94652a9 wasmtime-c-api: Don't create slices with null pointers (#1492)
It's a common idiom to pass in `NULL` for slices of zero-length in the C
API, but it's not safe to create a Rust `&[T]` slice with this `NULL`
pointer. Special-case this in the `as_slice()` method of incoming
vectors to return an empty slice so we don't violate Rust's invariants.
2020-04-09 15:33:32 -05:00
..
2020-04-03 13:13:37 -07:00
2020-04-03 13:13:37 -07:00
2020-04-03 13:13:37 -07:00
2020-04-03 13:13:37 -07:00