mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-04 15:19:57 +00:00
ext/speex/gstspeexdec.c: Fix bounds checking of mode in Speex header, which may produce negative numbers in speex < 1...
Original commit message from CVS: * ext/speex/gstspeexdec.c: (speex_dec_chain_parse_header): Fix bounds checking of mode in Speex header, which may produce negative numbers in speex < 1.1.12
This commit is contained in:
parent
3392728608
commit
a578ebb964
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-04-11 Jan Schmidt <Jan.Schmidt@sun.com>
|
||||
|
||||
* ext/speex/gstspeexdec.c: (speex_dec_chain_parse_header):
|
||||
Fix bounds checking of mode in Speex header, which may
|
||||
produce negative numbers in speex < 1.1.12
|
||||
|
||||
2008-04-09 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/goom/Makefile.am:
|
||||
|
|
|
@ -507,7 +507,7 @@ speex_dec_chain_parse_header (GstSpeexDec * dec, GstBuffer * buf)
|
|||
if (!dec->header)
|
||||
goto no_header;
|
||||
|
||||
if (dec->header->mode >= SPEEX_NB_MODES)
|
||||
if (dec->header->mode >= SPEEX_NB_MODES || dec->header->mode < 0)
|
||||
goto mode_too_old;
|
||||
|
||||
dec->mode = (SpeexMode *) speex_mode_list[dec->header->mode];
|
||||
|
|
Loading…
Reference in a new issue