diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2021-04-12 19:12:29 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2021-04-12 19:12:29 (GMT) |
commit | a3968430065fe4b5aae4a5fb402502d1bcf416c3 (patch) | |
tree | 29eafac682c8bdb23cca96fc82bfe01f2adce086 /generic | |
parent | c6149208196b41038495d5a81caeb58a235c0225 (diff) | |
download | tcl-a3968430065fe4b5aae4a5fb402502d1bcf416c3.zip tcl-a3968430065fe4b5aae4a5fb402502d1bcf416c3.tar.gz tcl-a3968430065fe4b5aae4a5fb402502d1bcf416c3.tar.bz2 |
Zero out memory allocated on stack
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclZipfs.c | 1 |
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) { /* |