avformat/wavdec: Check chunk_size
author李赞 <lizan@ruc.edu.cn>
Wed, 10 May 2017 12:55:34 +0000 (14:55 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 May 2017 01:41:33 +0000 (03:41 +0200)
commit37f59340bb5616bc7e5abc2fec45f1b8af453b79
tree4906c9069ce76d9ab30fb4fa69d0477aeda4a72e
parent7bbd92f69d12c8d1f06ae9ae251a9c7734f165c9
avformat/wavdec: Check chunk_size

Fixes integer overflow and out of array access

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3d232196372f309a75ed074c4cef30578eec1782)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/wavdec.c