A mail that causes Balsa to crash



Hi,

I've received a mail message from a mailing list that causes Balsa
to display "Cannot create temporary file", and then crash with a segfault.
I don't know if the mail is legal.  I've added a cut-up version of the mail
message.  Append this to an mbox, and Balsa will crash.

----[ cut here ]----
- From user@domain.com  Wed Aug 30 19:55:59 2000
- Return-Path: <user@domain.com>
- Received: from localhost (root@localhost)
-         by a.b.c (8.8.6 (PHNE_17135)/8.8.6) with ESMTP id MAA19302;
-         Wed, 30 Aug 2000 12:01:34 -0500 (CDT)
- X-OpenMail-Hops: 1
- Date: Wed, 30 Aug 2000 12:01:34 -0500
- Message-Id: <H000067923c109e7.0967654894.a.b.c@MHS>
- Subject:
- MIME-Version: 1.0
- TO: bds@jhb.ucs.co.za
- Content-Type: text/plain; charset=US-ASCII
- Content-Disposition: inline; filename="BDY.TXT"
-         ;Creation-Date="Wed, 30 Aug 2000 12:01:34 -0500"
- Content-Transfer-Encoding: 7bit
- Sender: user@domain.com
- Precedence: bulk
- Status: RO
- X-Status:
- X-Keywords:
- X-UID: 77300
-
- You crashed.
-----[ cut here ]------

Here is the strace:
-----[ cut here ]------
open("/tmp/mutt-bds.ucs.co.za-23156-0", O_RDWR|O_CREAT|O_EXCL, 0600) = 13
open("/etc/localtime", O_RDONLY)        = 13
open("/usr/share/locale/en_US/LC_MESSAGES/gtk+.mo", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/gtk+.mo", O_RDONLY) = -1 ENOENT (No
such
file or directory)
open("/tmp/mutt-bds.ucs.co.za-23156-1", O_RDWR|O_CREAT|O_EXCL, 0600) = 13
open("BDY.TXT", O_RDONLY)               = -1 ENOENT (No such file or
directory)
open("/tmp/mutt-bds.ucs.co.za-23156-2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/share/pixmaps/gnome-warning.png", O_RDONLY) = 13
open("/home/bds/.gnome//Gnome", O_RDONLY) = 13
----[ cut here ]----

Balsa (or libmutt) tries to open BDY.TXT - which comes from the 
Content-Disposition header in the mail.  No, the original mail did
NOT have that file attached anywhere.  If you remove that header, Balsa
interprets the mail fine.  It shouldn't segfault if the mail is missing.

-- 
Kind regards,				  
Berend                                  
                                        
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Berend De Schouwer, +27-11-712-1435, UCS








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]