Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 848c587d authored by Gilad Broner's avatar Gilad Broner
Browse files

media: dvb: Add meta-data buffer size check for decoder pull mode



Decoder filter notifies PES / frame via mpq_streambuffer by
adding a new meta-data packet to the meta-data buffer.
Pull mode logic verifies there is enough space in the data buffer of
the mpq_streambuffer but there is no check of the meta-data buffer.
Consequently, for large data buffers meta-data buffer size might be
too small and overflow can occur.
This change adds a check of the meta-data buffer fullness in pull
mode to prevent overflow.

Change-Id: Icd344df14daaf9f8cfb083b02051fa32af8553e4
Signed-off-by: default avatarGilad Broner <gbroner@codeaurora.org>
parent 5c3d71da
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment