commit | a625b40e1c210f1e8ed57962eee9f70cef06fb1b | [log] [tgz] |
---|---|---|
author | Gopalakrishnan Nallasamy <gokrishnan@google.com> | Wed Sep 29 08:24:26 2021 -0700 |
committer | Gopalakrishnan Nallasamy <gokrishnan@google.com> | Fri Oct 29 00:21:34 2021 +0000 |
tree | e1c8642bd8911bcba93c462b450887bcdf7e7ec6 | |
parent | b001f288aaf4535e75c0c62ba8dca855995c03df [diff] |
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. Bug: 194105348 Test: post-submit media cts tests Change-Id: I2b27580deff9ad937b68703a1e7c3ff2a6dccc60