commit | 2b50b7aa7d16014ccf35db7a7b4b5e84f7b4027c | [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 08:42:20 2015 -0700 |
tree | b7c14e40bf928460c7459921bbd86ee33a44f111 | |
parent | 70fb7a5dbbb112b13298a74547eb0bf0be9bcb6b [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. (cherrypicked from commit b2d33aee5122c91a59c2a676c0b89ad340232450) Change-Id: I7d44a66b67c590041572e25d1fbd1de94401a77f