changeset 17530:a6594c34635b

Bail out to avoid an infinite loop in an extreme corner case.
author Richard Laager <rlaager@wiktel.com>
date Thu, 07 Jun 2007 05:27:08 +0000
parents c529c95e7733
children 21773944db4b
files libpurple/plugins/log_reader.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugins/log_reader.c	Thu Jun 07 05:25:20 2007 +0000
+++ b/libpurple/plugins/log_reader.c	Thu Jun 07 05:27:08 2007 +0000
@@ -1536,6 +1536,11 @@
 				}
 				line = space;
 			}
+			else
+			{
+				/* Something is not as we expect.  Bail out. */
+				break;
+			}
 		}
 
 		if (line) {