mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-08 05:28:40 +00:00
tag_tree_decode: check node being non null
Fixes CID717843 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a6cac64f69
commit
0de0ae5a20
@ -167,6 +167,9 @@ static int tag_tree_decode(J2kDecoderContext *s, J2kTgtNode *node, int threshold
|
|||||||
J2kTgtNode *stack[30];
|
J2kTgtNode *stack[30];
|
||||||
int sp = -1, curval = 0;
|
int sp = -1, curval = 0;
|
||||||
|
|
||||||
|
if(!node)
|
||||||
|
return AVERROR(EINVAL);
|
||||||
|
|
||||||
while(node && !node->vis){
|
while(node && !node->vis){
|
||||||
stack[++sp] = node;
|
stack[++sp] = node;
|
||||||
node = node->parent;
|
node = node->parent;
|
||||||
|
Loading…
Reference in New Issue
Block a user