diff options
| author | Dan Winship <danw@helixcode.com> | 2000-10-23 20:59:56 +0000 |
|---|---|---|
| committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-10-23 20:59:56 +0000 |
| commit | d4eb568d55f31f3c06d910a619f889a1fb66d47a (patch) | |
| tree | 2c771bf5a91fddf0456bfd0ae15a44e79dd81800 /camel | |
| parent | c866bcdeb2154e969e22c25547c6758ae2b4550a (diff) | |
| download | evolution-data-server-d4eb568d55f31f3c06d910a619f889a1fb66d47a.tar.gz | |
Pulling up Dan's patch from HEAD.
2000-10-23 Dan Winship <danw@helixcode.com>
* providers/imap/camel-imap-command.c (imap_read_untagged): Fix a
"how could this have been working before" memory overrun bug
found by Vlad.
Diffstat (limited to 'camel')
| -rw-r--r-- | camel/ChangeLog | 6 | ||||
| -rw-r--r-- | camel/providers/imap/camel-imap-command.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index d5b15a003..5ff0dc33c 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2000-10-23 Dan Winship <danw@helixcode.com> + + * providers/imap/camel-imap-command.c (imap_read_untagged): Fix a + "how could this have been working before" memory overrun bug + found by Vlad. + 2000-10-20 Chris Toshok <toshok@helixcode.com> * providers/Makefile.am (SUBDIRS): re-enable the nntp provider. diff --git a/camel/providers/imap/camel-imap-command.c b/camel/providers/imap/camel-imap-command.c index 4310bd90d..932bccfde 100644 --- a/camel/providers/imap/camel-imap-command.c +++ b/camel/providers/imap/camel-imap-command.c @@ -281,6 +281,9 @@ imap_read_untagged (CamelImapStore *store, char *line, CamelException *ex) length--; } + /* Add the length of the post-literal line. */ + fulllen += strlen (line); + /* p points to the "{" in the line that starts the literal. * The length of the CR-less response must be less than or * equal to the length of the response with CRs, therefore |
