+2000-11-11 Havoc Pennington <hp@pobox.com>
+
+ * gmarkup.c (g_markup_parse_context_parse): Handle a long stream
+ of bytes containing no UTF-8 character starts
+
2000-11-11 Tor Lillqvist <tml@iki.fi>
* glib.def: Add missing entry points.
+2000-11-11 Havoc Pennington <hp@pobox.com>
+
+ * gmarkup.c (g_markup_parse_context_parse): Handle a long stream
+ of bytes containing no UTF-8 character starts
+
2000-11-11 Tor Lillqvist <tml@iki.fi>
* glib.def: Add missing entry points.
+2000-11-11 Havoc Pennington <hp@pobox.com>
+
+ * gmarkup.c (g_markup_parse_context_parse): Handle a long stream
+ of bytes containing no UTF-8 character starts
+
2000-11-11 Tor Lillqvist <tml@iki.fi>
* glib.def: Add missing entry points.
+2000-11-11 Havoc Pennington <hp@pobox.com>
+
+ * gmarkup.c (g_markup_parse_context_parse): Handle a long stream
+ of bytes containing no UTF-8 character starts
+
2000-11-11 Tor Lillqvist <tml@iki.fi>
* glib.def: Add missing entry points.
+2000-11-11 Havoc Pennington <hp@pobox.com>
+
+ * gmarkup.c (g_markup_parse_context_parse): Handle a long stream
+ of bytes containing no UTF-8 character starts
+
2000-11-11 Tor Lillqvist <tml@iki.fi>
* glib.def: Add missing entry points.
+2000-11-11 Havoc Pennington <hp@pobox.com>
+
+ * gmarkup.c (g_markup_parse_context_parse): Handle a long stream
+ of bytes containing no UTF-8 character starts
+
2000-11-11 Tor Lillqvist <tml@iki.fi>
* glib.def: Add missing entry points.
+2000-11-11 Havoc Pennington <hp@pobox.com>
+
+ * gmarkup.c (g_markup_parse_context_parse): Handle a long stream
+ of bytes containing no UTF-8 character starts
+
2000-11-11 Tor Lillqvist <tml@iki.fi>
* glib.def: Add missing entry points.
+2000-11-11 Havoc Pennington <hp@pobox.com>
+
+ * gmarkup.c (g_markup_parse_context_parse): Handle a long stream
+ of bytes containing no UTF-8 character starts
+
2000-11-11 Tor Lillqvist <tml@iki.fi>
* glib.def: Add missing entry points.
g_string_append_len (context->leftover_char_portion,
text, text_len);
+ if (context->leftover_char_portion->len > 7)
+ {
+ /* The leftover char portion is too big to be
+ * a UTF-8 character
+ */
+ set_error (context,
+ error,
+ G_MARKUP_ERROR_BAD_UTF8,
+ _("Invalid UTF-8 encoded text"));
+ }
+
goto finished;
}
}
g_string_append_len (context->leftover_char_portion,
text, text_len);
+ if (context->leftover_char_portion->len > 7)
+ {
+ /* The leftover char portion is too big to be
+ * a UTF-8 character
+ */
+ set_error (context,
+ error,
+ G_MARKUP_ERROR_BAD_UTF8,
+ _("Invalid UTF-8 encoded text"));
+ }
+
goto finished;
}
}