diff options
author | Dan Winship <danw@src.gnome.org> | 2000-04-29 05:42:32 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-04-29 05:42:32 +0800 |
commit | 8283ee1835f02d738dbc7336e36dcb0a75ce052c (patch) | |
tree | 8cd382f05df00d681a9e1bb8cffcb0c2906e1580 /camel/camel-mime-parser.c | |
parent | 9bc896ddb9f78727b6d736f1da2a7d7ea9dbf06f (diff) | |
download | gsoc2013-evolution-8283ee1835f02d738dbc7336e36dcb0a75ce052c.tar gsoc2013-evolution-8283ee1835f02d738dbc7336e36dcb0a75ce052c.tar.gz gsoc2013-evolution-8283ee1835f02d738dbc7336e36dcb0a75ce052c.tar.bz2 gsoc2013-evolution-8283ee1835f02d738dbc7336e36dcb0a75ce052c.tar.lz gsoc2013-evolution-8283ee1835f02d738dbc7336e36dcb0a75ce052c.tar.xz gsoc2013-evolution-8283ee1835f02d738dbc7336e36dcb0a75ce052c.tar.zst gsoc2013-evolution-8283ee1835f02d738dbc7336e36dcb0a75ce052c.zip |
fix a bug that would cause corruption with very long headers.
* camel-mime-parser.c (folder_scan_header): fix a bug that would
cause corruption with very long headers.
svn path=/trunk/; revision=2675
Diffstat (limited to 'camel/camel-mime-parser.c')
-rw-r--r-- | camel/camel-mime-parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |