avformat/rtmppkt: Convert ff_amf_get_field_value() to bytestream2
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 28 Jul 2017 12:37:26 +0000 (14:37 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 29 Jul 2017 12:17:57 +0000 (14:17 +0200)
commit6de5ec8ef818774c58a1c4cd9548534be0e54ecc
tree481d3dcd76871ddb4626a4a9ad2affd482649919
parent0d2b67d17c9b5faec1ca223c91128b8de9eb299c
avformat/rtmppkt: Convert ff_amf_get_field_value() to bytestream2

Fixes: out of array accesses

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