summaryrefslogtreecommitdiff
path: root/app-arch/rzip/files/rzip-2.1-CVE-2017-8364.patch
diff options
context:
space:
mode:
Diffstat (limited to 'app-arch/rzip/files/rzip-2.1-CVE-2017-8364.patch')
-rw-r--r--app-arch/rzip/files/rzip-2.1-CVE-2017-8364.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/app-arch/rzip/files/rzip-2.1-CVE-2017-8364.patch b/app-arch/rzip/files/rzip-2.1-CVE-2017-8364.patch
deleted file mode 100644
index 3c65e6f1939d..000000000000
--- a/app-arch/rzip/files/rzip-2.1-CVE-2017-8364.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-Index: rzip-2.1/stream.c
-===================================================================
---- rzip-2.1.orig/stream.c
-+++ rzip-2.1/stream.c
-@@ -147,16 +147,16 @@ static int write_u32(int f, u32 v)
- return 0;
- }
-
--static int read_buf(int f, uchar *p, int len)
-+static int read_buf(int f, uchar *p, unsigned int len)
- {
- int ret;
- ret = read(f, p, len);
- if (ret == -1) {
-- err_msg("Read of length %d failed - %s\n", len, strerror(errno));
-+ err_msg("Read of length %u failed - %s\n", len, strerror(errno));
- return -1;
- }
- if (ret != len) {
-- err_msg("Partial read!? asked for %d bytes but got %d\n", len, ret);
-+ err_msg("Partial read!? asked for %u bytes but got %d\n", len, ret);
- return -1;
- }
- return 0;
-@@ -399,7 +399,7 @@ static int fill_buffer(struct stream_inf
- if (sinfo->s[stream].buf) {
- free(sinfo->s[stream].buf);
- }
-- sinfo->s[stream].buf = malloc(u_len);
-+ sinfo->s[stream].buf = malloc(c_len > u_len ? c_len : u_len);
- if (!sinfo->s[stream].buf) {
- return -1;
- }