bpmdetect: Pass at most 2048 samples to SoundTouch's BPMDetect
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 10 Feb 2009 09:17:43 +0000 (10:17 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 10 Feb 2009 09:20:14 +0000 (10:20 +0100)
commit9a1d1cb91fa557f766485c430e9f4732a78f7365
treef2dc157be0101cc097519b5dc41145a926ba3ed2
parent325c0d5d1092f0de9611dcec03da3a0986427bdf
bpmdetect: Pass at most 2048 samples to SoundTouch's BPMDetect

Internally BPMDetect assumes that at most 2048 samples are passed
to it at once and stores those in a stack allocated static sized
array. If we pass too many samples this will result in a buffer overflow
resulting in heavy stack corruption and a crash. Fixes bug #570996.
ext/soundtouch/gstbpmdetect.cc