[xiph-commits] r12847 - branches/rel-1-0-branch/speex/libspeex
jm at svn.xiph.org
jm at svn.xiph.org
Tue Apr 10 17:01:46 PDT 2007
Author: jm
Date: 2007-04-10 17:01:44 -0700 (Tue, 10 Apr 2007)
New Revision: 12847
Modified:
branches/rel-1-0-branch/speex/libspeex/modes.c
Log:
Coverity found that minor bug (crash on invalid programmer input).
Modified: branches/rel-1-0-branch/speex/libspeex/modes.c
===================================================================
--- branches/rel-1-0-branch/speex/libspeex/modes.c 2007-04-10 14:39:28 UTC (rev 12846)
+++ branches/rel-1-0-branch/speex/libspeex/modes.c 2007-04-11 00:01:44 UTC (rev 12847)
@@ -721,7 +721,7 @@
SpeexMode *speex_lib_get_mode (int mode)
{
- if (mode < 0 || mode > SPEEX_NB_MODES) return NULL;
+ if (mode < 0 || mode >= SPEEX_NB_MODES) return NULL;
return speex_mode_list[mode];
}
More information about the commits
mailing list