commit | b2d33aee5122c91a59c2a676c0b89ad340232450 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Mon Aug 03 15:44:45 2015 -0700 |
committer | Nick Kralevich <nnk@google.com> | Mon Aug 03 15:48:42 2015 -0700 |
tree | 16bf3bd1efd92cfe3ac9d4432de1694d550af6d0 | |
parent | ff8673803c8cb36e1fc8ac9d63db0d04ba425526 [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. Change-Id: I7d44a66b67c590041572e25d1fbd1de94401a77f