From 70c52ecdc4230a7c3a1051234f786d988997b622 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 23 Feb 2005 14:07:52 +0000 Subject: [PATCH] fix Debian bug #202667: crash when a message's filename overflows an int when converted --- ChangeLog | 3 +++ sbr/folder_read.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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. -- 1.7.10.4