commit | 7cf2914796c6a2c5419b3113508c1a8b7748ed61 | [log] [tgz] |
---|---|---|
author | Dongwon Kang <dwkang@google.com> | Fri Jan 11 14:27:51 2019 -0800 |
committer | Dongwon Kang <dwkang@google.com> | Wed Jan 16 10:59:04 2019 -0800 |
tree | 2b3a1abada5384a2e3406d8b794f519d717f32e7 | |
parent | 9b248b8791dbfbd9a4ee80ddad9edc94c32e072e [diff] |
Fix potential integer overflow in MPEG4Extractor Test: build Bug: 111792351 Change-Id: Ib21ce33fb6c473c217f1f2a35e2ce1c81256f22f
diff --git a/media/extractors/mp4/MPEG4Extractor.cpp b/media/extractors/mp4/MPEG4Extractor.cpp index 0441359..262852f 100644 --- a/media/extractors/mp4/MPEG4Extractor.cpp +++ b/media/extractors/mp4/MPEG4Extractor.cpp
@@ -5142,7 +5142,7 @@ sampleCtsOffset = 0; } - if (size < (off64_t)(sampleCount * bytesPerSample)) { + if (size < (off64_t)sampleCount * bytesPerSample) { return -EINVAL; }