Forwarding this from the NetBSD PR 59513: https://gnats.netbsd.org/59513
formail (which is built as part of pkgsrc/mail/procmail)
includes a single use of iscntrl() which it uses as
iscntrl(*p)
where p is a char *. Once upon a time that simply
returned a random result when *p < 0, now it SEGV's (in HEAD anyway).
Suggested patch:
--- formail.c.orig 2025-07-07 09:27:24.898676824 +0700
+++ formail.c 2025-07-07 09:14:55.802502352 +0700
@@ -897,7 +897,7 @@
while(len)
{ switch(*p)
{ default:len--;
- if(iscntrl(*p)) /* no control characters allowed */
+ if(iscntrl(*(unsigned char *)p)) /* no control characters allowed */
break;
p++;
continue;
Forwarding this from the NetBSD PR 59513: https://gnats.netbsd.org/59513
Suggested patch: