Original patch: https://trac.xiph.org/attachment/ticket/1347/vorbis-tools-1.2.0-sec.patch --- vorbis-tools-1.1.1/ogg123/speex_format.c.orig 2008-04-28 16:04:33.000000000 -0400 +++ vorbis-tools-1.1.1/ogg123/speex_format.c 2008-04-28 16:05:20.000000000 -0400 @@ -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);