[vlc-commits] Wav: Reject invalid files leading to FPE
Jean-Baptiste Kempf
git at videolan.org
Sun Oct 13 00:10:13 CEST 2013
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Oct 13 00:09:50 2013 +0200| [ee24078f6ca8b7df8f14a83977f588a6e00d8f2b] | committer: Jean-Baptiste Kempf
Wav: Reject invalid files leading to FPE
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ee24078f6ca8b7df8f14a83977f588a6e00d8f2b
---
modules/demux/wav.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/demux/wav.c b/modules/demux/wav.c
index 03364b9..258ba7a 100644
--- a/modules/demux/wav.c
+++ b/modules/demux/wav.c
@@ -349,6 +349,10 @@ static int Open( vlc_object_t * p_this )
p_sys->fmt.i_codec =
vlc_fourcc_GetCodecAudio( p_sys->fmt.i_codec,
p_sys->fmt.audio.i_bitspersample );
+ if( p_sys->fmt.i_codec == 0 ) {
+ msg_Err( p_demux, "Unrecognized codec" );
+ goto error;
+ }
break;
case VLC_CODEC_ADPCM_MS:
/* FIXME not sure at all FIXME */
More information about the vlc-commits
mailing list