avformat/mms: Add missing chunksize check
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 3 Jul 2018 18:33:04 +0000 (20:33 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 8 Jul 2018 17:45:47 +0000 (19:45 +0200)
commitf65d6ff9ab06e2f4036a7e0f71072a216e66d239
tree35e43e8e338b3d8411508fe78cb43b79964b3625
parente82a06d2bef568124860090e2ec0b0de887c40a1
avformat/mms: Add missing chunksize check

Fixes: out of array read
Fixes: mms-crash-01b6c5d85f9d9f40f4e879896103e9f5b222816a

Found-by: Paul Ch <paulcher@icloud.com>
1st hunk by Paul Ch <paulcher@icloud.com>
Tested-by: Paul Ch <paulcher@icloud.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit cced03dd667a5df6df8fd40d8de0bff477ee02e8)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mms.c