sound-file-stream: Fix pulseaudio crash when invalid samples are pushed 21/234121/5 accepted/tizen/unified/20200601.051750 submit/tizen/20200529.085112
authorJaechul Lee <jcsing.lee@samsung.com>
Fri, 22 May 2020 04:39:10 +0000 (13:39 +0900)
committerJaechul Lee <jcsing.lee@samsung.com>
Mon, 25 May 2020 02:51:43 +0000 (11:51 +0900)
commitfb6e3bd8342721bf43e35adc6a73155d242ecff7
tree24ac4c19bf58273ac8c5e0056bab026517e3cb37
parent0083d9d17f42ba7498bef1bccf980ee20ddc8449
sound-file-stream: Fix pulseaudio crash when invalid samples are pushed

memblockq only allows to push aligned data but a invalid file that has
not aligned samples was played though wav-player.

pulseaudio was crashed in pa_memblockq_push function.
pa_assert(uchunk->length % bq->base == 0);

[Version] 13.0-8
[Issue Type] Bugs (TFDF-10411)

Change-Id: I9f117bb3402ef94b46e4b77e7d188f1722f23114
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
packaging/pulseaudio.spec
src/pulsecore/sound-file-stream.c