diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-09-19 07:34:06 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-09-19 07:34:06 (GMT) |
commit | b442be5c576a5eae90b7600652bc95c1bc3c3d14 (patch) | |
tree | 512063bd8115d41e8995df2bb94fb6a40db90e7c | |
parent | dfaa1a63ba0dfe659e53ae283d39e22f6e78728a (diff) | |
parent | 990d47f74d002d7498576c6552192560cb92734e (diff) | |
download | tcl-b442be5c576a5eae90b7600652bc95c1bc3c3d14.zip tcl-b442be5c576a5eae90b7600652bc95c1bc3c3d14.tar.gz tcl-b442be5c576a5eae90b7600652bc95c1bc3c3d14.tar.bz2 |
Merge 8.7
-rw-r--r-- | generic/tclZipfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclZipfs.c b/generic/tclZipfs.c index a9d263d..facc968 100644 --- a/generic/tclZipfs.c +++ b/generic/tclZipfs.c @@ -1262,7 +1262,7 @@ ZipFSFindTOC( * (2) cdirZipOffset + cdirSize <= eocdDataOffset. Else the CD will be overlapping * the EOCD. Note this automatically means cdirZipOffset+cdirSize < zf->length. */ - if (!(cdirZipOffset <= eocdDataOffset && + if (!(cdirZipOffset <= (size_t)eocdDataOffset && cdirSize <= eocdDataOffset - cdirZipOffset)) { if (!needZip) { /* Simply point to end od data */ @@ -1544,7 +1544,7 @@ ZipMapArchive( */ zf->length = lseek(fd, 0, SEEK_END); - if ((off_t)zf->length == (off_t)-1) { + if (zf->length == (size_t)-1) { ZIPFS_POSIX_ERROR(interp, "failed to retrieve file size"); return TCL_ERROR; } |