summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2019-04-22 14:56:31 (GMT)
committerdgp <dgp@users.sourceforge.net>2019-04-22 14:56:31 (GMT)
commite240d7269b3b361572433bfb7a49a78eb14f2ac8 (patch)
tree35406cb9835ab64c916bc7e9ab14c2dded43737d
parente85c55bb57371a522421c9d7e1c1a76e3bbea8b9 (diff)
downloadtcl-e240d7269b3b361572433bfb7a49a78eb14f2ac8.zip
tcl-e240d7269b3b361572433bfb7a49a78eb14f2ac8.tar.gz
tcl-e240d7269b3b361572433bfb7a49a78eb14f2ac8.tar.bz2
Prevent reads of uninitalized memory.
-rw-r--r--generic/tclZipfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tclZipfs.c b/generic/tclZipfs.c
index ec38c48..b5cf69f 100644
--- a/generic/tclZipfs.c
+++ b/generic/tclZipfs.c
@@ -1768,6 +1768,7 @@ TclZipfs_MountBuffer(
zf->data = data;
zf->ptrToFree = NULL;
}
+ zf->passBuf[0] = 0; /* stop valgrind cries */
if (ZipFSFindTOC(interp, 0, zf) != TCL_OK) {
return TCL_ERROR;
}