avformat/rtmppkt: Check for packet size mismatches
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Dec 2016 10:14:51 +0000 (11:14 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Dec 2016 20:37:48 +0000 (21:37 +0100)
commitb0ebef0578fd88fe3efd66086c43a5b43fbc9f6a
treeed59f37db3b7bd2f797475b3243dc6a30f6da653
parent540a4433bd35fda61562e04a2a2aa3fa358c5a24
avformat/rtmppkt: Check for packet size mismatches

Fixes out of array access

Found-by: Paul Cher <paulcher@icloud.com>
Reviewed-by: Paul Cher <paulcher@icloud.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 7d57ca4d9a75562fa32e40766211de150f8b3ee7)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/rtmppkt.c