Commit 0de0ae5a authored by Michael Niedermayer's avatar Michael Niedermayer

tag_tree_decode: check node being non null

Fixes CID717843
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a6cac64f
......@@ -167,6 +167,9 @@ static int tag_tree_decode(J2kDecoderContext *s, J2kTgtNode *node, int threshold
J2kTgtNode *stack[30];
int sp = -1, curval = 0;
if(!node)
return AVERROR(EINVAL);
while(node && !node->vis){
stack[++sp] = node;
node = node->parent;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment