Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f5024f6a authored by Nick Kralevich's avatar Nick Kralevich Committed by Steve Kondik
Browse files

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 b2d33aee)

Change-Id: I7d44a66b67c590041572e25d1fbd1de94401a77f
parent 8da57d78
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment