mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
jpeg2000: Do not crash on NULL node in tag_tree_decode
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
aa16bbaf9b
commit
09d5929f37
@ -119,6 +119,9 @@ static int tag_tree_decode(Jpeg2000DecoderContext *s, Jpeg2000TgtNode *node,
|
||||
Jpeg2000TgtNode *stack[30];
|
||||
int sp = -1, curval = 0;
|
||||
|
||||
if (!node)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
while (node && !node->vis) {
|
||||
stack[++sp] = node;
|
||||
node = node->parent;
|
||||
|
Loading…
Reference in New Issue
Block a user