File vorbis-tools-1.1.1-bounds-check-fix.diff of Package vorbis-tools
--- ogg123/speex_format.c-dist 2008-04-14 15:57:14.000000000 +0200
+++ ogg123/speex_format.c 2008-04-14 15:58:54.000000000 +0200
@@ -471,7 +471,7 @@ void *process_header(ogg_packet *op, int
cb->printf_error(callback_arg, ERROR, _("Cannot read header"));
return NULL;
}
- if ((*header)->mode >= SPEEX_NB_MODES) {
+ if ((*header)->mode >= SPEEX_NB_MODES || (*header)->mode < 0) {
cb->printf_error(callback_arg, ERROR,
_("Mode number %d does not (any longer) exist in this version"),
(*header)->mode);