From owner-freebsd-hackers Sun Feb 2 02:32:15 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA11908 for hackers-outgoing; Sun, 2 Feb 1997 02:32:15 -0800 (PST) Received: from math.uni-muenster.de (ESCHER.UNI-MUENSTER.DE [128.176.182.85]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id CAA11903 for ; Sun, 2 Feb 1997 02:32:11 -0800 (PST) Received: from charlie.uni-muenster.de by math.uni-muenster.de (SMI-8.6/SMI-SVR4/OBjP1.13-s) id LAA03184; Sun, 2 Feb 1997 11:32:05 +0100 Received: (from pundtt@localhost) by charlie.uni-muenster.de (8.7.5/8.6.9) id LAA01310; Sun, 2 Feb 1997 11:30:06 +0100 Message-ID: X-Mailer: XFMail 1.1-alpha [p0] on Linux MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_=XFMail.1.1-alpha.p0.Linux:970202113006:1277=_" In-Reply-To: Date: Sun, 02 Feb 1997 11:20:51 +0100 (MET) X-Face: Qbvq0<-<,#/(6w/v\n|F0m?INEfHo]x.v|I1QkVq$LI}bLdhveQBab.a? I%*PBhG5L;J}v2{]T=0AN}6=8IA~)@JexMU To: Simon Shapiro Subject: RE: Very Strange Mail Problem Cc: djb-qmail@koobera.math.uic.edu, xfmail@Burka.NetVision.net.il, hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk This message is in MIME format --_=XFMail.1.1-alpha.p0.Linux:970202113006:1277=_ Content-Type: text/plain; charset=iso-8859-1 On 02-Feb-97 Simon Shapiro wrote: | Attached are two pieces of email. If I feed either one of them to xfmail | 1.0 (or later, did not try older) all is well. | | If I concatenate them, xfmail dumps core on sig 11. [...] | I have no clue why this happens, except that the Subject: line appears | long. So, if any of you can help, I will appreciate it very much. it's an XFMail bug, indeed caused by the long "Subject:" line; attached is a patch that fixes the problem. Thomas Thomas Pundt ------------------------ http://wwwmath.uni-muenster.de/~pundtt/ Westfaelische Wilhelms-Universitaet | pundtt@math.uni-muenster.de Einsteinstr. 62, D-48149 Muenster | Edith-Stein-Str. 9, D-48149 Muenster (+49) 251 - 83 33747 | privat: (+49) 251 - 273305 --_=XFMail.1.1-alpha.p0.Linux:970202113006:1277=_ Content-Disposition: attachment; filename="diff" Content-Transfer-Encoding: 7bit Content-Description: diff Content-Type: text/plain; charset=us-ascii; name=diff; SizeOnDisk=343 diff -urN xfmail/ui/xfmail.c xfmail~/ui/xfmail.c --- xfmail/ui/xfmail.c Mon Dec 30 17:40:13 1996 +++ xfmail~/ui/xfmail.c Sun Feb 2 11:18:47 1997 @@ -178,7 +178,7 @@ va_start(ap); #endif - vsprintf(buf, fmt, ap); + vsnprintf(buf, 255, fmt, ap); if ((flags == MSG_FATAL) || (flags == MSG_WARN)) { #if defined(_AIX) || defined(SunOS) --_=XFMail.1.1-alpha.p0.Linux:970202113006:1277=_-- End of MIME message