projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix Debian bug #202667: crash when a message's filename overflows an int
[mmh]
/
sbr
/
folder_read.c
diff --git
a/sbr/folder_read.c
b/sbr/folder_read.c
index
b5b3f9d
..
2e67917
100644
(file)
--- 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.