[evolution-data-server] 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] Bug 629714 - endless loop in imapx_parse_status()
- Date: Tue, 14 Sep 2010 21:58:18 +0000 (UTC)
commit 0198ef7893d694ea54e671c5d5623e502d6ebc29
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 e852393..8605856 100644
--- a/camel/providers/imapx/camel-imapx-utils.c
+++ b/camel/providers/imapx/camel-imapx-utils.c
@@ -1742,7 +1742,7 @@ imapx_parse_status (CamelIMAPXStream *is, GError **error)
/* ignore anything we dont know about */
do {
tok = camel_imapx_stream_token (is, &token, &len, NULL);
- if (tok == '\n') {
+ if (tok == '\n' || tok < 0) {
g_set_error (error, CAMEL_IMAPX_ERROR, 1, "server response truncated");
imapx_free_status (sinfo);
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]