2010-03-01 Richard Guenther <rguenther@suse.de> * jartool.c (read_entries): Properly zero-terminate filename. --- fastjar/jartool.c.jj 2010-10-06 18:38:35.000000000 +0200 +++ fastjar/jartool.c 2010-10-06 18:47:56.810567000 +0200 @@ -894,6 +894,7 @@ int read_entries (int fd) progname, jarfile); return 1; } + ze->filename[len] = '\0'; len = UNPACK_UB4(header, CEN_EFLEN); len += UNPACK_UB4(header, CEN_COMLEN); if (lseek (fd, len, SEEK_CUR) == -1)