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: Dec 23 2024 at 12:05 UTC