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)
committerSean McGovern <gseanmcg@gmail.com>
Sat, 11 Nov 2017 01:41:32 +0000 (20:41 -0500)
commit0ccddbad200c1d9439c5a836501917d515cddf76
treeb7648507159d3ce334c783d00e5c98a2c1122213
parentcd4663dc80323ba64989d0c103d51ad3ee0e9c2f
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>
Signed-off-by: Sean McGovern <gseanmcg@gmail.com>
libavcodec/smacker.c