Commit 9dcfa76d authored by conrad's avatar conrad
Browse files

Fix bounds checking of mode in Speex header (backported from speexdec)

git-svn-id: 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent df7e1dcc
......@@ -178,7 +178,7 @@ process_header(unsigned char * buf, long bytes, int enh_enabled,
return NULL;
if (header->mode >= SPEEX_NB_MODES) {
if (header->mode >= SPEEX_NB_MODES || header->mode < 0) {
info_dialog_new ("Speex error", NULL,
"Mode number %d does not (any longer) exist in this version\n",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment