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 21:05:37 +0000 (22:05 +0100)
commita5513ae7bc7cb131e7b7edba57e4cf93121d6c8e
tree1786d6b7e89c9b3a2fe5f9c72882e1b844b260c2
parent9c0b2b9d5b5515d85b6cd2e4e580617fe780e0ae
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