From f1c76724c29529657d70fc80295abf1cd82884a6 Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Sat, 18 Mar 2006 09:59:11 +0000 Subject: [coverity] CID: 121 Checker: OVERRUN_STATIC (help) File: xine-lib/src/libreal/audio_decoder.c Function: load_syms_linux Description: Possible overrun of static array "path" of size 1024 by using an index that can possibly be too large CVS patchset: 7940 CVS date: 2006/03/18 09:59:11 --- src/libreal/audio_decoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libreal/audio_decoder.c b/src/libreal/audio_decoder.c index be6d0b762..b7069cf80 100644 --- a/src/libreal/audio_decoder.c +++ b/src/libreal/audio_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_decoder.c,v 1.44 2005/10/22 22:09:47 miguelfreitas Exp $ + * $Id: audio_decoder.c,v 1.45 2006/03/18 09:59:11 tmattern Exp $ * * thin layer to use real binary-only codecs in xine * @@ -212,7 +212,7 @@ static int load_syms_linux (realdec_decoder_t *this, char *codec_name) { char path[1024]; - snprintf(path, sizeof(path) - 1, "DT_Codecs=%s", entry->str_value); + snprintf(path, sizeof(path) - 2, "DT_Codecs=%s", entry->str_value); if (path[strlen(path)-1]!='/'){ path[strlen(path)+1]=0; path[strlen(path)]='/'; -- cgit v1.2.3