# HG changeset patch # User Richard Laager # Date 1181194028 0 # Node ID a6594c34635b466c69e20f80b6cc6b33ee9b243e # Parent c529c95e7733adcebd114e0b3d77482b06140e9f Bail out to avoid an infinite loop in an extreme corner case. diff -r c529c95e7733 -r a6594c34635b libpurple/plugins/log_reader.c --- 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) {