summaryrefslogtreecommitdiffstats
path: root/development/gcc5/fastjar-patches/1002-fastjar-0.97-filename0.patch
diff options
context:
space:
mode:
author Matteo Bernardini2019-01-05 11:02:35 +0100
committer Matteo Bernardini2019-01-05 11:02:35 +0100
commit1f83bd4e081733c3e61db79691b35b4d7520c707 (patch)
tree7e6516d59eced4b190499cc443b3c32695aa5dd0 /development/gcc5/fastjar-patches/1002-fastjar-0.97-filename0.patch
parent5b0cf5e3225e0ef439d733f5095f2f797601d752 (diff)
downloadslackbuilds-913991b2f613967d68fe395f286d5e32e9683a86.tar.gz
20190105.1 global branch merge.current-20190105.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/gcc5/fastjar-patches/1002-fastjar-0.97-filename0.patch')
-rw-r--r--development/gcc5/fastjar-patches/1002-fastjar-0.97-filename0.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/development/gcc5/fastjar-patches/1002-fastjar-0.97-filename0.patch b/development/gcc5/fastjar-patches/1002-fastjar-0.97-filename0.patch
new file mode 100644
index 0000000000..34a02a74f3
--- /dev/null
+++ b/development/gcc5/fastjar-patches/1002-fastjar-0.97-filename0.patch
@@ -0,0 +1,14 @@
+2010-03-01 Richard Guenther <rguenther@suse.de>
+
+ * jartool.c (read_entries): Properly zero-terminate filename.
+
+--- fastjar-0.97/jartool.c 6 Sep 2009 22:16:00 -0000 1.59
++++ fastjar-0.97/jartool.c 1 Mar 2010 15:38:43 -0000 1.60
+@@ -790,6 +790,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)