[evolution-data-server/gnome-2-30] Bug 629714 - endless loop in imapx_parse_status()
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-2-30] Bug 629714 - endless loop in imapx_parse_status()
- Date: Tue, 14 Sep 2010 21:59:54 +0000 (UTC)
commit 5e04a3462d5266b5a651562ab32fd572b348fc7a
Author: David Woodhouse <David Woodhouse intel com>
Date: Tue Sep 14 22:57:18 2010 +0100
Bug 629714 - endless loop in imapx_parse_status()
camel/providers/imapx/camel-imapx-utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-utils.c b/camel/providers/imapx/camel-imapx-utils.c
index f77ed3a..359891e 100644
--- a/camel/providers/imapx/camel-imapx-utils.c
+++ b/camel/providers/imapx/camel-imapx-utils.c
@@ -1731,7 +1731,7 @@ imapx_parse_status(CamelIMAPXStream *is, CamelException *ex)
/* ignore anything we dont know about */
do {
tok = camel_imapx_stream_token(is, &token, &len, ex);
- if (tok == '\n') {
+ if (tok == '\n' || tok < 0) {
camel_exception_set (ex, 1, "server response truncated");
imapx_free_status(sinfo);
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]