null-source: avoid crash by limiting push size of memblock when it exceeds allocated... 83/193783/5
authorSeungbae Shin <seungbae.shin@samsung.com>
Mon, 26 Nov 2018 10:33:27 +0000 (19:33 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Tue, 27 Nov 2018 10:50:51 +0000 (19:50 +0900)
commitc4906ef9cf0204460375affab31b29eccad8768c
treee280b5054c41905c7f47f70b846186bcb031661e
parentd49dfee6efa49b0df070e22c0e3d1f7ea0c94dd7
null-source: avoid crash by limiting push size of memblock when it exceeds allocated size.

This is workaround solution for avoiding crash due to pushing unexpected size from dedicated chunk allocation.
It seems that sometimes rtpoll returns later than what we expected, which cause unexpected length request.
As of now, the root cause of that situation is not found (maybe lack of process scheuduling, etc.),
we need to limit the size of pushing data to allocated memblock size when it exceeds.

[Version] 11.1-53
[Issue Type] Fix crash

Change-Id: Ia7481244802ad85e4fc2fd7ab653dd35c54360b6
packaging/pulseaudio.spec
src/modules/module-null-source.c