Commit ee2ff0f7 authored by conrad's avatar conrad
Browse files

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


git-svn-id: http://svn.annodex.net/libfishsound/branches/1.0-stable@3535 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent bb551020
......@@ -136,7 +136,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