commit | 9c320c295746716f87f84a6af78d0863a7a93b9d | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Mon Aug 03 15:44:45 2015 -0700 |
committer | The Android Automerger <android-build@android.com> | Wed Sep 02 18:13:01 2015 -0700 |
tree | 30bbfa16d1c1f733243126f5f3249bc4dfdc894e | |
parent | 8da2d0375a1e4d5ad610b2ca1e2507c6a739604b [diff] |
MPEG4Extractor.cpp: Add check for size == SIZE_MAX If size == SIZE_MAX, the line: uint8_t *buffer = new (std::nothrow) uint8_t[size + 1]; ends up allocating zero bytes, which is obviously incorrect. (cherry picked from commit b2d33aee5122c91a59c2a676c0b89ad340232450) Bug: 23031033 Change-Id: I8027247a4e24d2c8a8b4eac88c3643eccda108b9