smacker: limit recursion depth of smacker_decode_bigtree
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 19 Nov 2016 13:21:11 +0000 (14:21 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 22 Nov 2016 23:57:10 +0000 (00:57 +0100)
commit946ecd19ea752399bccc751c9339ff74b815587e
tree0e211eb72684ab8356d5491ec49b0c9186e9f49a
parent4e5049a2303ae7fe74216a83206239e4de42c965
smacker: limit recursion depth of smacker_decode_bigtree

This fixes segmentation faults due to stack-overflow caused by too deep
recursion.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/smacker.c