From: Oliver Kiddle Date: Wed, 23 Feb 2005 14:07:52 +0000 (+0000) Subject: fix Debian bug #202667: crash when a message's filename overflows an int X-Git-Tag: RELEASE_1_2~45 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=70c52ecdc4230a7c3a1051234f786d988997b622;ds=sidebyside fix Debian bug #202667: crash when a message's filename overflows an int when converted --- diff --git a/ChangeLog b/ChangeLog index a42dd83..9a6c974 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-02-23 Oliver Kiddle + * sbr/folder_read.c fix Debian bug #202667: crash when a + message's filename overflows an int when converted + * Updated config.guess and config.sub to the most recent versions (from automake 1.9.5) diff --git a/sbr/folder_read.c b/sbr/folder_read.c index b5b3f9d..2e67917 100644 --- a/sbr/folder_read.c +++ b/sbr/folder_read.c @@ -70,7 +70,7 @@ folder_read (char *name) adios (NULL, "unable to allocate storage"); while ((dp = readdir (dd))) { - if ((msgnum = m_atoi (dp->d_name))) { + if ((msgnum = m_atoi (dp->d_name)) && msgnum > 0) { /* * Check if we need to allocate more * temporary elements for message names.