smacker: limit recursion depth of smacker_decode_bigtree github/release/11 videolan/release/11
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 03:43:40 +0000 (22:43 -0500)
commit1f3229527e71d0b9946565e9e8e4eefd69464273
treeec0f8c4ac728c2b89dc3008f5b8a727796a51fc2
parentf24056c8f0dece9af0f9743dfb97c171af41b2dc
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>
(cherry picked from commit 0ccddbad200c1d9439c5a836501917d515cddf76)
Signed-off-by: Sean McGovern <gseanmcg@gmail.com>
libavcodec/smacker.c