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 01:54:39 +0000 (03:54 +0200)
commit08c073434e25cba8c43aae5ed9554fdd594adfb0
treeb9b33ff8ba1ff1b58c96b5690fdb7de52ae8500d
parent36ea41de37367e5a959881488b5006d77437757d
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>
libavformat/rtmppkt.c