1 |
commit: c73a9d408e58333cee20dfa301aa599a42928cb2 |
2 |
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at> |
3 |
AuthorDate: Fri Aug 27 07:21:52 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 27 23:35:27 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c73a9d40 |
7 |
|
8 |
mail-filter/opendmarc: remove unused patches |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/22125 |
11 |
Package-Manager: Portage-3.0.22, Repoman-3.0.3 |
12 |
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at> |
13 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
14 |
|
15 |
.../files/opendmarc-1.3.2-multiple-From.patch | 35 ------------------ |
16 |
.../files/opendmarc-1.3.3-CVE-2020-12460.patch | 41 ---------------------- |
17 |
2 files changed, 76 deletions(-) |
18 |
|
19 |
diff --git a/mail-filter/opendmarc/files/opendmarc-1.3.2-multiple-From.patch b/mail-filter/opendmarc/files/opendmarc-1.3.2-multiple-From.patch |
20 |
deleted file mode 100644 |
21 |
index 28b2f852f39..00000000000 |
22 |
--- a/mail-filter/opendmarc/files/opendmarc-1.3.2-multiple-From.patch |
23 |
+++ /dev/null |
24 |
@@ -1,35 +0,0 @@ |
25 |
-From f6b615e345037408b88b2ffd1acd03239af8a858 Mon Sep 17 00:00:00 2001 |
26 |
-From: Marcin Seremak <panpilkarz@××××××××××.com> |
27 |
-Date: Tue, 30 Jul 2019 08:05:28 +0200 |
28 |
-Subject: [PATCH] Fix multiple addresses in From vulnerability |
29 |
- |
30 |
---- |
31 |
- libopendmarc/tests/test_finddomain.c | 1 + |
32 |
- opendmarc/opendmarc.c | 2 +- |
33 |
- 2 files changed, 2 insertions(+), 1 deletion(-) |
34 |
- |
35 |
-diff --git a/libopendmarc/tests/test_finddomain.c b/libopendmarc/tests/test_finddomain.c |
36 |
-index 50cf405..8447463 100644 |
37 |
---- a/libopendmarc/tests/test_finddomain.c |
38 |
-+++ b/libopendmarc/tests/test_finddomain.c |
39 |
-@@ -23,6 +23,7 @@ main(int argc, char **argv) |
40 |
- /* 11 */ {"(,) joe@×××.com", "joe.com"}, |
41 |
- /* 12 */ {"\"( bob@×××.com)\" joe@×××.com", "joe.com"}, |
42 |
- /* 12 */ {"From: Davide D'Marco <user@××××.com>", "blah.com"}, |
43 |
-+ /* 13 */ {"blah.com", "blah.com"}, |
44 |
- {NULL, NULL}, |
45 |
- }; |
46 |
- u_char dbuf[256]; |
47 |
-diff --git a/opendmarc/opendmarc.c b/opendmarc/opendmarc.c |
48 |
-index 419c15a..9b7fe3a 100644 |
49 |
---- a/opendmarc/opendmarc.c |
50 |
-+++ b/opendmarc/opendmarc.c |
51 |
-@@ -2193,7 +2193,7 @@ mlfi_eom(SMFICTX *ctx) |
52 |
- strncpy(dfc->mctx_fromdomain, domain, sizeof dfc->mctx_fromdomain - 1); |
53 |
- |
54 |
- ostatus = opendmarc_policy_store_from_domain(cc->cctx_dmarc, |
55 |
-- from->hdr_value); |
56 |
-+ dfc->mctx_fromdomain); |
57 |
- if (ostatus != DMARC_PARSE_OKAY) |
58 |
- { |
59 |
- if (conf->conf_dolog) |
60 |
|
61 |
diff --git a/mail-filter/opendmarc/files/opendmarc-1.3.3-CVE-2020-12460.patch b/mail-filter/opendmarc/files/opendmarc-1.3.3-CVE-2020-12460.patch |
62 |
deleted file mode 100644 |
63 |
index 334c11d5302..00000000000 |
64 |
--- a/mail-filter/opendmarc/files/opendmarc-1.3.3-CVE-2020-12460.patch |
65 |
+++ /dev/null |
66 |
@@ -1,41 +0,0 @@ |
67 |
-From 50d28af25d8735504b6103537228ce7f76ad765f Mon Sep 17 00:00:00 2001 |
68 |
-From: "Murray S. Kucherawy" <msk@××××××××.org> |
69 |
-Date: Wed, 5 Aug 2020 21:56:01 +0000 |
70 |
-Subject: [PATCH] In opendmarc_xml_parse(), ensure NULL-termination of the |
71 |
- buffer passed to opendmarc_xml(). |
72 |
- |
73 |
---- |
74 |
- libopendmarc/opendmarc_xml.c | 6 +++--- |
75 |
- 1 file changed, 3 insertions(+), 3 deletions(-) |
76 |
- |
77 |
-diff --git a/libopendmarc/opendmarc_xml.c b/libopendmarc/opendmarc_xml.c |
78 |
-index 26bb9dc..b3ac55a 100644 |
79 |
---- a/libopendmarc/opendmarc_xml.c |
80 |
-+++ b/libopendmarc/opendmarc_xml.c |
81 |
-@@ -158,7 +158,7 @@ opendmarc_xml(char *b, size_t blen, char *e, size_t elen) |
82 |
- if (*cp != '<') |
83 |
- continue; |
84 |
- ++cp; |
85 |
-- for(sp = cp; *sp != '\0'; ++sp) |
86 |
-+ for (sp = cp; *sp != '\0'; ++sp) |
87 |
- { |
88 |
- if (*sp == '?') |
89 |
- break; |
90 |
-@@ -546,7 +546,7 @@ opendmarc_xml_parse(char *fname, char *err_buf, size_t err_len) |
91 |
- if (fname == NULL) |
92 |
- { |
93 |
- xerror = errno; |
94 |
-- (void) snprintf(err_buf, err_len, "%s: %s", fname, "File name was NULL"); |
95 |
-+ (void) snprintf(err_buf, err_len, "%s", "File name was NULL"); |
96 |
- errno = EINVAL; |
97 |
- return NULL; |
98 |
- } |
99 |
-@@ -572,7 +572,7 @@ opendmarc_xml_parse(char *fname, char *err_buf, size_t err_len) |
100 |
- return NULL; |
101 |
- } |
102 |
- |
103 |
-- bufp = calloc(statb.st_size, 1); |
104 |
-+ bufp = calloc(statb.st_size + 1, 1); |
105 |
- if (bufp == NULL) |
106 |
- { |
107 |
- xerror = errno; |