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>
Sun, 14 May 2017 10:20:16 +0000 (12:20 +0200)
commita4fb44723dcaa56416173bc3d0ff41e9cda25067
treecb070c7e1f7f493ef6f2d386121e576db5980cf6
parent25a592e5d45672bdfdac35bf0119907cdcddd1b7
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