diff options
author | Max Kellermann <max.kellermann@gmail.com> | 2017-12-03 23:18:11 +0100 |
---|---|---|
committer | Max Kellermann <max.kellermann@gmail.com> | 2017-12-04 08:30:26 +0100 |
commit | bcc7211c793413adcd551c1e5369aeb0b43be54e (patch) | |
tree | 6066ce07ea71b3b36c21caaf15db564d3ceb068c | |
parent | 4f36a5c918231254209374788c873dfcbe4002d1 (diff) | |
download | pesconvert-bcc7211c793413adcd551c1e5369aeb0b43be54e.tar.gz |
pes: add missing new_block() error check
Signed-off-by: Max Kellermann <max.kellermann@gmail.com>
-rw-r--r-- | pes.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -212,6 +212,8 @@ static int parse_pes_stitches(struct region *region, unsigned int pec, struct pe oldx = oldy = 0; block = new_block(pes); + if (!block) + return -1; while (p < end) { int val1 = p[0], val2 = p[1], jumpstitch = 0; |