diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-02-26 19:59:01 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-02-26 20:10:47 +0000 |
commit | 3ca1b80226ab3a45e9173e15ff3b84e8cb855e9c (patch) | |
tree | e932eedef80099908af90bab35288ff1c2cc0e60 /user/fastjar/null-terminate.patch | |
parent | fd520b97b23fa444aa97e028b64fce70cd75023c (diff) | |
download | packages-3ca1b80226ab3a45e9173e15ff3b84e8cb855e9c.tar.gz packages-3ca1b80226ab3a45e9173e15ff3b84e8cb855e9c.tar.bz2 packages-3ca1b80226ab3a45e9173e15ff3b84e8cb855e9c.tar.xz packages-3ca1b80226ab3a45e9173e15ff3b84e8cb855e9c.zip |
user/fastjar: new package
Diffstat (limited to 'user/fastjar/null-terminate.patch')
-rw-r--r-- | user/fastjar/null-terminate.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/user/fastjar/null-terminate.patch b/user/fastjar/null-terminate.patch new file mode 100644 index 000000000..d9aad6ca2 --- /dev/null +++ b/user/fastjar/null-terminate.patch @@ -0,0 +1,14 @@ +From: Richard Guenther <rguenther@suse.de> +Date: Mon, 01 Mar 2010 15:38:43 +0000 +Subject: [PATCH] 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) |