SimpleDecodingSource:Prevent OOB write in heap mem
doRead() doesn't handle situations when received byte do not fit into
input buffer in case of vorbis audio compression. It results in OOB
write in heap memory right after the allocated input buffer. Added
code to copy kKeyValidSamples only if there was enough space.
Otherwise, print a warning log.
Test: post-submit media cts tests
(cherry picked from commit 3f3fdc20c97b0eb978bbaf6686e771157251f840)
1 file changed