alexcrichton opened PR #1492 from sound-c-api-ptrs to master:
It's a common idiom to pass in
NULLfor 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 13 2025 at 19:03 UTC