commit b564426ffd894b839684662d85b62fe2c6c497ff
parent 4336a0ca888c2d5ad131ee961864b96500e8dbcf
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 12 Jun 2010 19:33:42 +0000
fixing possible use of uninit memory
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/plugins/elf_extractor.c b/src/plugins/elf_extractor.c
@@ -360,8 +360,8 @@ getDynTag (const char *data,
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;
}
diff --git a/src/plugins/flv_extractor.c b/src/plugins/flv_extractor.c
@@ -793,8 +793,8 @@ static void handleASEnd(unsigned char type, void * value, void * userdata)
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;
}
}