summaryrefslogtreecommitdiffstats
path: root/src/plugins/winrt
diff options
context:
space:
mode:
authorJames McDonnell <jmcdonnell@blackberry.com>2017-02-21 15:32:08 -0500
committerJames McDonnell <jmcdonnell@blackberry.com>2017-03-07 14:17:36 +0000
commita25d3a245b802f8fa2da7f381fabd887bfa985dd (patch)
tree7cbbb0adcc2bbca2da869b807d5862939f740104 /src/plugins/winrt
parented8f90d0e47bd4ade7be3852627395ac66ba32ea (diff)
Limit the size of the QnxAudioOutput stack buffer
QnxAudioOutput allocates a buffer on the stack based on the free value from snd_pcm_plugin_status, but the way that QnxAudioOutput configures the stream, how QnxAudioOutput currently pauses playback, and a bug in io-audio combine to cause io-audio to produce very large free values when resuming playback after a long pause. As a result, QnxAudioOutput allocates a stack buffer that causes a stack overflow. Allocating a buffer on the stack with a size that isn't restrained in any way isn't a good idea. Put some constraints on the size. Change-Id: I2b72e72504041f0caeb591912662fb9bed931b21 Reviewed-by: Dan Cape <dcape@qnx.com> Reviewed-by: Yoann Lopes <yoann.lopes@qt.io>
Diffstat (limited to 'src/plugins/winrt')
0 files changed, 0 insertions, 0 deletions