[pulseaudio-discuss] [PATCH] module-coreaudio-device: do not corrupt the heap/stack for devices with more channels than supported.

Mihai Moldovan ionic at ionic.de
Sun Apr 19 00:07:18 PDT 2015


Instead, clamp the channel number to PA_CHANNELS_MAX. That's better than
overwriting random data, crashing and burning, and arguably better than
skipping the device completely.

Signed-off-by: Mihai Moldovan <ionic at ionic.de>
---
 src/modules/macosx/module-coreaudio-device.c | 34
++++++++++++++++++++--------
 1 file changed, 24 insertions(+), 10 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-module-coreaudio-device-do-not-corrupt-the-heap-stac.patch
Type: text/x-patch
Size: 3421 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20150419/a48490a1/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20150419/a48490a1/attachment.sig>


More information about the pulseaudio-discuss mailing list