[vlc-commits] voc: Reject blocks with a 0 samplerate
Hugo Beauzée-Luyssen
git at videolan.org
Tue Mar 6 16:39:48 CET 2018
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Mar 6 16:32:16 2018 +0100| [74b68b0f3b64096bc4b48a4eacf5204b85b508e8] | committer: Hugo Beauzée-Luyssen
voc: Reject blocks with a 0 samplerate
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=74b68b0f3b64096bc4b48a4eacf5204b85b508e8
---
modules/demux/voc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/demux/voc.c b/modules/demux/voc.c
index f5bcd52e02..33e6ecf958 100644
--- a/modules/demux/voc.c
+++ b/modules/demux/voc.c
@@ -352,6 +352,8 @@ static int ReadBlockHeader( demux_t *p_demux )
goto corrupt;
new_fmt.audio.i_rate = GetDWLE( buf );
+ if( !new_fmt.audio.i_rate )
+ goto corrupt;
new_fmt.audio.i_bitspersample = buf[4];
new_fmt.audio.i_channels = buf[5];
More information about the vlc-commits
mailing list