LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libopensync-vformat-infinite-loop.diff of Package libopensync (Project mobile:synchronization:FACTORY)

Index: formats/vformats-xml/vformat.c
===================================================================
--- formats/vformats-xml/vformat.c	(Revision 3563)
+++ formats/vformats-xml/vformat.c	(Arbeitskopie)
@@ -571,6 +571,11 @@
 			osync_trace(TRACE_INTERNAL, "invalid character found in parameter spec: \"%i\" String so far: %s", lp[0], str->str);
 			g_string_assign (str, "");
 			_skip_until (&lp, ":;");
+			if (*lp == '\r') {
+				osync_trace(TRACE_INTERNAL, "string ended unexpectedly with \\r, skipping it");
+				break;
+			}
+
 		}
 	}