ports/64397: [patch] fix a core dump in NMH (sortm)

Joseph Koshy jkoshy at FreeBSD.org
Thu Mar 18 02:00:40 UTC 2004


>Number:         64397
>Category:       ports
>Synopsis:       [patch] fix a core dump in NMH (sortm)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 17 18:00:39 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Joseph Koshy
>Release:        5.2.1 / 4.9
>Organization:
FreeBSD
>Environment:
FreeBSD orthanc 4.9-STABLE FreeBSD 4.9-STABLE #0: Sat Feb 21 11:46:55 IST 2004     koshy at orthanc:/home/obj-stable/usr/src/sys/ORTHANC  i386

>Description:
`sortm' dumps core when sorting mailboxes.
>How-To-Repeat:
You need a mail with a 'Subject' line that lacks white space between
the header and the content of the subject line.  Like so:
"Subject:my MSN account".  Place this in a mailbox and run `sortm 
-subj'.

>Fix:
--- uip/sortm.c--       Thu Mar 18 00:12:19 2004
+++ uip/sortm.c Thu Mar 18 00:26:50 2004
@@ -439,8 +439,6 @@
                        if(uprf(cp, "re:"))
                            cp += 2;
                        else {
-                           if (isalnum(c))
-                               *cp2++ = isupper(c) ? tolower(c) : c;
                            break;
                        }
                    }

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list