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>
Sat, 29 Jul 2017 02:49:45 +0000 (04:49 +0200)
commit0d2b67d17c9b5faec1ca223c91128b8de9eb299c
tree40510194832414ecc81515a5921d47047719ec7a
parentd40bb6f5e93423c460f3ef079fae08633ed9df6b
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