core dump in 2.0b2

From: <ukrainec_at_infoukes.com_at_hypermail-project.org>
Date: Thu, 25 Jun 1998 01:48:57 -0400 (EDT)
Message-ID: <19980625054857.20551.qmail_at_infoukes.com>


Hi,

I decided to upgrade to the 2.0b2 version of hypermail, and thus re-lived a bug that I used to have in 1.0b2 version. I can't remember how I got around it then.

When processing a mailbox larger than some certain size (actually, its a mailing list) I get a core dump during loadheader() function (parse.c). There are several strings defined at the top of this function, some with length MAXLINE, ... so on a whim I decided to bump these values in hypermail.h. Here is the diff with the original:

70,71c70,71
< #define MAXLINE 4096
< #define MAXFILELEN 4096

---

> #define MAXLINE 1024
> #define MAXFILELEN 256
75,79c75,79 < #define MSGDSTRLEN 1024 < #define REPYSTRLEN 1024 < #define SUBJSTRLEN 1024 < #define URLSTRLEN 1024 < #define HOSTSTRLEN 1024 ---
> #define MSGDSTRLEN 256
> #define REPYSTRLEN 256
> #define SUBJSTRLEN 256
> #define URLSTRLEN 256
> #define HOSTSTRLEN 256
This seems to have solved the problem (for now). A memory leak? Any ideas? Cheers, Andy P.S. Great job on the hypermail upgrades. Much better than 1.0b2. -- Andrew Ukrainec e-mail: ukrainec_at_InfoUkes.com web: http://www.InfoUkes.com InfoUkes Inc. phone: (416) 236-4865 fax: (416) 766-5704
Received on Thu 25 Jun 1998 05:55:45 PM GMT

This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:11 AM GMT GMT