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:46 +0000 (04:49 +0200)
commitf2a6f41dd7b962e0dd24fe695b002532a42e2230
treee50e6d2af84757cb0bb9ee7d55c9fb05c438b210
parent8c7b477b97fb8e9f10886f35dc578a2257567758
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