diff options
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-mime-parser.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 65aef6ccc4..67ca228842 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2000-04-28 Dan Winship <danw@helixcode.com> + + * camel-mime-parser.c (folder_scan_header): fix a bug that would + cause corruption with very long headers. + 2000-04-27 Ettore Perazzoli <ettore@helixcode.com> * providers/pop3/Makefile.am (INCLUDES): Add `-I$(srcdir)/../../..' diff --git a/camel/camel-mime-parser.c b/camel/camel-mime-parser.c index decd43207c..6039c10d78 100644 --- a/camel/camel-mime-parser.c +++ b/camel/camel-mime-parser.c @@ -620,7 +620,7 @@ retry: register int len = (s->outend - s->outbuf); char *outnew; - if (headerlen >= len) { + if (headerlen >= s->outend - s->outptr) { len = (len+headerlen)*2+1; outnew = g_realloc(s->outbuf, len); s->outptr = s->outptr - s->outbuf + outnew; |