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 02:41:08 +0000 (21:41 -0500)
commita4eba5d151997cef81b4fd2dbc3c0ff5d88b491b
tree68ac8bc4a865406fae62e38b05c9db641a013c24
parentc7e5554393d5b423a51d0f0512234c9aadd90d11
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