summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaut Mattern <tmattern@users.sourceforge.net>2006-03-18 09:59:11 +0000
committerThibaut Mattern <tmattern@users.sourceforge.net>2006-03-18 09:59:11 +0000
commitf1c76724c29529657d70fc80295abf1cd82884a6 (patch)
tree87788bebb79ddaccb3e3e806a49407cd41e0b413
parent441d99cbf311a126779d33bf4b09119456c988a2 (diff)
downloadxine-lib-f1c76724c29529657d70fc80295abf1cd82884a6.tar.gz
xine-lib-f1c76724c29529657d70fc80295abf1cd82884a6.tar.bz2
[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
-rw-r--r--src/libreal/audio_decoder.c4
1 files 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)]='/';