blob: 89113bf6d6fc8f57c774acf146279b66b1d2f73e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-ac,v 1.4 2008/04/20 15:31:03 tonnerre Exp $
Fix wrong boundary check in Speex decoder (CVE-2008-1686).
--- modules/codec/speex.c.orig 2008-03-23 22:41:48.000000000 +0000
+++ modules/codec/speex.c
@@ -332,7 +332,7 @@ static int ProcessInitialHeader( decoder
msg_Err( p_dec, "cannot read Speex header" );
return VLC_EGENERIC;
}
- if( p_header->mode >= SPEEX_NB_MODES )
+ if( p_header->mode >= SPEEX_NB_MODES || p_header->mode < 0 )
{
msg_Err( p_dec, "mode number %d does not (yet/any longer) exist in "
"this version of libspeex.", p_header->mode );
|