Skip to content

Commit cc75ae6

Browse files
committed
mail/openarc: Do not fail validation of emails from Microsoft email services
* Do not fail when t= is not available. * Bump PKGREVISION.
1 parent 63498f3 commit cc75ae6

3 files changed

Lines changed: 19 additions & 13 deletions

File tree

mail/openarc/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# $NetBSD: Makefile,v 1.4 2023/10/24 22:09:47 wiz Exp $
1+
# $NetBSD: Makefile,v 1.5 2025/06/16 16:17:05 ryoon Exp $
22

33
DISTNAME= openarc-20180921
4-
PKGREVISION= 2
4+
PKGREVISION= 3
55
CATEGORIES= mail
66
MASTER_SITES= ${MASTER_SITE_GITHUB:=trusteddomainproject/}
77
GITHUB_PROJECT= OpenARC

mail/openarc/distinfo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
$NetBSD: distinfo,v 1.2 2023/04/26 15:01:22 wiz Exp $
1+
$NetBSD: distinfo,v 1.3 2025/06/16 16:17:05 ryoon Exp $
22

33
BLAKE2s (openarc-20180921-355ee2a1ca85acccce494478991983b54f794f4e.tar.gz) = bea742cd9cab422b17296d3d90e5fcf025a6d59e6d02b60c2c3fbda7caa72d11
44
SHA512 (openarc-20180921-355ee2a1ca85acccce494478991983b54f794f4e.tar.gz) = edf006b4c8312ea93f478a228a498cd00394c9ec9682cd918e15629ef77974c530033a2de466d7e3d30eefa5d0ad12514f18a914fb69ccfc4b8306ee147c917c
55
Size (openarc-20180921-355ee2a1ca85acccce494478991983b54f794f4e.tar.gz) = 150982 bytes
6-
SHA1 (patch-libopenarc_arc.c) = 70a7a061f9a6dd5e9b63c3681d6b3f9233b5e97a
6+
SHA1 (patch-libopenarc_arc.c) = 2dc1206ce9cf0ba9f85710ce3342c05efbf89dc1

mail/openarc/patches/patch-libopenarc_arc.c

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
1-
$NetBSD: patch-libopenarc_arc.c,v 1.1 2023/04/21 00:49:56 manu Exp $
1+
$NetBSD: patch-libopenarc_arc.c,v 1.2 2025/06/16 16:17:05 ryoon Exp $
22

33
Fix buffer overrun
44

55
From upstream
66
https://github.com/trusteddomainproject/OpenARC/pull/117
77

8-
--- libopenarc/arc.c.orig 2021-03-30 15:33:39.683325974 +0200
9-
+++ libopenarc/arc.c 2021-03-30 15:34:50.693955186 +0200
10-
@@ -2329,8 +2329,12 @@
11-
8+
--- libopenarc/arc.c.orig 2018-09-21 15:51:23.000000000 +0000
9+
+++ libopenarc/arc.c
10+
@@ -1664,8 +1664,7 @@ arc_process_set(ARC_MESSAGE *msg, arc_kv
11+
arc_param_get(set, (u_char *) "b") == NULL ||
12+
arc_param_get(set, (u_char *) "s") == NULL ||
13+
arc_param_get(set, (u_char *) "d") == NULL ||
14+
- arc_param_get(set, (u_char *) "a") == NULL ||
15+
- arc_param_get(set, (u_char *) "t") == NULL)
16+
+ arc_param_get(set, (u_char *) "a") == NULL)
17+
{
18+
arc_error(msg, "missing parameter(s) in %s data",
19+
settype);
20+
@@ -2330,6 +2329,10 @@ arc_parse_header_field(ARC_MESSAGE *msg,
1221
while (end > hdr && isascii(*(end - 1)) && isspace(*(end - 1)))
1322
end--;
1423

@@ -19,14 +28,11 @@ From upstream
1928
/* don't allow a field name containing a semicolon */
2029
semicolon = memchr(hdr, ';', hlen);
2130
if (semicolon != NULL && colon != NULL && semicolon < colon)
22-
return ARC_STAT_SYNTAX;
23-
@@ -2676,8 +2680,9 @@
24-
31+
@@ -2677,6 +2680,7 @@ arc_eoh(ARC_MESSAGE *msg)
2532
for (h = msg->arc_hhead; h != NULL; h = h->hdr_next)
2633
{
2734
char hnbuf[ARC_MAXHEADER + 1];
2835
+ assert(h->hdr_namelen <= ARC_MAXHEADER);
2936

3037
memset(hnbuf, '\0', sizeof hnbuf);
3138
strncpy(hnbuf, h->hdr_text, h->hdr_namelen);
32-
if (strcasecmp(hnbuf, ARC_AR_HDRNAME) == 0 ||

0 commit comments

Comments
 (0)