php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch 64452.patch for Zip Related Bug #64452Patch version 2013-03-19 18:03 UTC Return to Bug #64452 | Download this patchThis patch is obsolete Obsoleted by patches: This patch renders other patches obsolete Obsolete patches: Patch Revisions: 2013-03-19 18:15 UTC | 2013-03-19 18:03 UTC | 2013-03-19 15:12 UTCDeveloper: ab@php.netif (zip_get_archive_flag(za, ZIP_AFL_TORRENT, 0)) _zip_dirent_torrent_normalize(&de); diff --git a/ext/zip/lib/zip_dirent.c b/ext/zip/lib/zip_dirent.c index b5b9d27..01bcb91 100644 index b5b9d27..b9dac5c 100644 --- a/ext/zip/lib/zip_dirent.c +++ b/ext/zip/lib/zip_dirent.c @@ -157,11 +157,17 @@ _zip_cdir_write(struct zip_cdir *cd, FILE *fp, struct zip_error *error) void + free(zde->extrafield); + } zde->extrafield = NULL; - free(zde->comment); + if (zde->comment) { + if (zde->comment_len > 0) { + free(zde->comment); + } zde->comment = NULL; } |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Fri Mar 29 09:01:28 2024 UTC |