GNOME Bugzilla – Bug 700259
audio: fix buffer overflow for channels > 64
Last modified: 2013-05-15 07:27:53 UTC
Created attachment 244106 [details] [review] patch When using more than 64 channels, gst_audio_info_set_format overflows the GstAudioInfo position field. This patch ensures the copy is bounded to the buffer's maximum size.
Slightly different patch, you should just not pass positions if using more than 64 channels. commit b401f447d27be921b2ecb3b6c10a14e831018e7c Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Tue May 14 09:34:21 2013 +0200 audio-info: For more than 64 channels don't allow a channel layout More than 64 channels have all channels unpositioned. https://bugzilla.gnome.org/show_bug.cgi?id=700259
Makes sense but this means gst_audio_info_from_caps is broken as it will never pass a NULL position array.
Thanks :) commit be154ee9d6a8064f99f1ad403558738048af7d07 Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Wed May 15 09:26:56 2013 +0200 audio-info: Always pass NULL as position parameter to gst_audio_info_set_format() https://bugzilla.gnome.org/show_bug.cgi?id=700259