aboutsummaryrefslogtreecommitdiffstats
path: root/community/fastjar/0001-Properly-zero-terminate-filename.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-11-28 13:00:49 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-11-28 15:36:20 +0000
commitbee941037412f7cad59a6cbe9965568dc5052040 (patch)
tree4552e3b84fe87c877ed3592b7fe653c4f001895b /community/fastjar/0001-Properly-zero-terminate-filename.patch
parentf4c84a04891095dc4a9c45a7f717bbcefdc43716 (diff)
community/fastjar: move from main
Diffstat (limited to 'community/fastjar/0001-Properly-zero-terminate-filename.patch')
-rw-r--r--community/fastjar/0001-Properly-zero-terminate-filename.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/community/fastjar/0001-Properly-zero-terminate-filename.patch b/community/fastjar/0001-Properly-zero-terminate-filename.patch
new file mode 100644
index 00000000000..ed510b09df5
--- /dev/null
+++ b/community/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)