alexcrichton opened PR #1492 from sound-c-api-ptrs
to master
:
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 thisNULL
pointer. Special-case this in theas_slice()
method of incoming
vectors to return an empty slice so we don't violate Rust's invariants.
yurydelendik submitted PR Review.
sunfishcode submitted PR Review.
alexcrichton merged PR #1492.
Last updated: Nov 22 2024 at 16:03 UTC