[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11694 - Extractor/src/plugins
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11694 - Extractor/src/plugins |
Date: |
Sat, 12 Jun 2010 21:33:42 +0200 |
Author: grothoff
Date: 2010-06-12 21:33:42 +0200 (Sat, 12 Jun 2010)
New Revision: 11694
Modified:
Extractor/src/plugins/elf_extractor.c
Extractor/src/plugins/flv_extractor.c
Log:
fixing possible use of uninit memory
Modified: Extractor/src/plugins/elf_extractor.c
===================================================================
--- Extractor/src/plugins/elf_extractor.c 2010-06-12 16:07:21 UTC (rev
11693)
+++ Extractor/src/plugins/elf_extractor.c 2010-06-12 19:33:42 UTC (rev
11694)
@@ -360,8 +360,8 @@
if ((off + osize > size) || ((idx + 1) * ELF_DYN_SIZE > osize))
return -1;
EXTRACTOR_common_cat_unpack (&data[off + idx * ELF_DYN_SIZE],
- ELF_DYN_SPECS[getByteorder (data[EI_CLASS])],
- ELF_DYN_FIELDS (ret));
+ ELF_DYN_SPECS[getByteorder (data[EI_CLASS])],
+ ELF_DYN_FIELDS (ret));
return 0;
}
Modified: Extractor/src/plugins/flv_extractor.c
===================================================================
--- Extractor/src/plugins/flv_extractor.c 2010-06-12 16:07:21 UTC (rev
11693)
+++ Extractor/src/plugins/flv_extractor.c 2010-06-12 19:33:42 UTC (rev
11694)
@@ -793,8 +793,8 @@
short *tz;
millis = (double *)tmp[0];
tz = (short *)tmp[1];
- s = tmpstr;
- flv_to_iso_date(*millis, *tz, tmpstr, sizeof(tmpstr));
+ if (0 == flv_to_iso_date(*millis, *tz, tmpstr, sizeof(tmpstr)))
+ s = tmpstr;
break;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11694 - Extractor/src/plugins,
gnunet <=