commit | c570778430a22b5488cae72982cf9fb8033dbda3 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Mon Aug 03 15:44:45 2015 -0700 |
committer | Nick Kralevich <nnk@google.com> | Fri Aug 07 09:23:04 2015 -0700 |
tree | 4c849a3d50faeedaaf929ba26e95d3b6607a14d1 | |
parent | 171b5fadb9d304f5e06686e4f3d060ef335d7250 [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