mozilla / cubeb

Cross platform audio library
ISC License
434 stars 123 forks source link

auto_array: protect from various calls when length_ is 0 #770

Closed Pehrsons closed 7 months ago

Pehrsons commented 7 months ago

cubeb-coreaudio-rs has hit a case when running its tests on MacOS 12 where it fails the assert(destination && source); in PodCopy because it tried to push 0 samples to an auto_array of length 0, as the internal auto_array buffer had not been allocated yet.