summaryrefslogtreecommitdiffstats
path: root/generic/tclZipfs.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2021-04-12 19:12:29 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2021-04-12 19:12:29 (GMT)
commita3968430065fe4b5aae4a5fb402502d1bcf416c3 (patch)
tree29eafac682c8bdb23cca96fc82bfe01f2adce086 /generic/tclZipfs.c
parentc6149208196b41038495d5a81caeb58a235c0225 (diff)
downloadtcl-a3968430065fe4b5aae4a5fb402502d1bcf416c3.zip
tcl-a3968430065fe4b5aae4a5fb402502d1bcf416c3.tar.gz
tcl-a3968430065fe4b5aae4a5fb402502d1bcf416c3.tar.bz2
Zero out memory allocated on stack
Diffstat (limited to 'generic/tclZipfs.c')
-rw-r--r--generic/tclZipfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tclZipfs.c b/generic/tclZipfs.c
index 4ecce48..3083f1d 100644
--- a/generic/tclZipfs.c
+++ b/generic/tclZipfs.c
@@ -3101,6 +3101,7 @@ ZipFSMkZipOrImg(
if (!isMounted) {
zf = &zf0;
+ memset(&zf0, 0, sizeof(ZipFile));
}
if (isMounted || ZipFSOpenArchive(interp, imgName, 0, zf) == TCL_OK) {
/*