Add additional protection on the write size in QAudioOuput(pulseaudio)
authorLing Hu <ling.hu@nokia.com>
Mon, 14 Nov 2011 04:37:40 +0000 (14:37 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 14 Nov 2011 09:44:04 +0000 (10:44 +0100)
commitd6c5d9faa6010f74bf23abbf404d395e01e077ac
tree2b14a963d1d63a24950244325b3efad846c44600
parent956526a9fb769acc66b376be0b051c0108a06f21
Add additional protection on the write size in QAudioOuput(pulseaudio)

Check and cap the write size in pull mode to handle the case
where user returned an invalid write size through QIODevice

Change-Id: Ie0610a63f1d5400fba87f32a99bdc38479e0e7e8
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
src/plugins/pulseaudio/qaudiooutput_pulse.cpp