diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-01-03 23:05:07 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-01-03 23:06:19 +0200 |
commit | 73cbccee55adadf6260a3a71484d518984035b1f (patch) | |
tree | eef22773ff0684d546aed970ec7b9ec3f3eb49c0 /main/fastjar/0001-Properly-zero-terminate-filename.patch | |
parent | 0ba7d2a347fdad136d046b1057958050a91075e2 (diff) | |
download | aports-73cbccee55adadf6260a3a71484d518984035b1f.tar.bz2 aports-73cbccee55adadf6260a3a71484d518984035b1f.tar.xz |
main/fastjar: fix gcc-java bootstrap
cherry-pick upstream commits, most importantly the one from:
http://lists.gnu.org/archive/html/fastjar-dev/2010-03/msg00000.html
Diffstat (limited to 'main/fastjar/0001-Properly-zero-terminate-filename.patch')
-rw-r--r-- | main/fastjar/0001-Properly-zero-terminate-filename.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/main/fastjar/0001-Properly-zero-terminate-filename.patch b/main/fastjar/0001-Properly-zero-terminate-filename.patch new file mode 100644 index 0000000000..ed510b09df --- /dev/null +++ b/main/fastjar/0001-Properly-zero-terminate-filename.patch @@ -0,0 +1,16 @@ +http://cvs.savannah.gnu.org/viewvc/fastjar/jartool.c?root=fastjar&r1=1.59&r2=1.60&view=patch + +2010-03-01 Richard Guenther <rguenther@suse.de> + + * jartool.c (read_entries): Properly zero-terminate filename. + +--- a/jartool.c 2009/09/06 22:16:00 1.59 ++++ b/jartool.c 2010/03/01 15:38:43 1.60 +@@ -790,6 +790,7 @@ + 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) |