-
- Downloads
coreaudio: fix buffer overflow on silence writing
The count argument passed to std::fill_n was in bytes instead of
element's count (which are of Float32 type) so zeroes were written
outside the scope of the audio buffer.
This was causing crashes not on this instruction but anywhere in the
application when a malloc call was checking for memory sanity (which
isn't done on every allocation).
Change-Id: Iec6fa9d3b00b828c6bf798c77419b8bad970d6e1
Reviewed-by:
Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
Please register or sign in to comment