avformat/rtmppkt: Convert ff_amf_tag_size() to bytestream2
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 28 Jul 2017 11:41:59 +0000 (13:41 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 23 Aug 2017 11:15:18 +0000 (13:15 +0200)
commitb7fed5da525a3a63d39ca63ce230562fcd8983a4
tree8b6e7037b0a7f27bf8ddea1b02fed8d51de2bf32
parentdbf29313ca0cb4f82805e2d0ddaf3737bec5b480
avformat/rtmppkt: Convert ff_amf_tag_size() to bytestream2

Fixes: out of array accesses
Fixes: crash-9238fa9e8d4fde3beda1f279626f53812cb001cb-SEGV

Found-by: JunDong Xie of Ant-financial Light-Year Security Lab
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 08c073434e25cba8c43aae5ed9554fdd594adfb0)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/rtmppkt.c