mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
Report unfinished entity references as errors rather than running into an
* glib/gmarkup.c (unescape_text): Report unfinished entity references as errors rather than running into an assert. (#80441)
This commit is contained in:
parent
2038143ae7
commit
6853c2b880
@ -1,3 +1,8 @@
|
||||
2002-05-07 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* glib/gmarkup.c (unescape_text): Report unfinished entity
|
||||
references as errors rather than running into an assert. (#80441)
|
||||
|
||||
2002-05-07 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* configure.in: added a new conditional CROSS_COMPILING which
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-05-07 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* glib/gmarkup.c (unescape_text): Report unfinished entity
|
||||
references as errors rather than running into an assert. (#80441)
|
||||
|
||||
2002-05-07 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* configure.in: added a new conditional CROSS_COMPILING which
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-05-07 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* glib/gmarkup.c (unescape_text): Report unfinished entity
|
||||
references as errors rather than running into an assert. (#80441)
|
||||
|
||||
2002-05-07 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* configure.in: added a new conditional CROSS_COMPILING which
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-05-07 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* glib/gmarkup.c (unescape_text): Report unfinished entity
|
||||
references as errors rather than running into an assert. (#80441)
|
||||
|
||||
2002-05-07 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* configure.in: added a new conditional CROSS_COMPILING which
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-05-07 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* glib/gmarkup.c (unescape_text): Report unfinished entity
|
||||
references as errors rather than running into an assert. (#80441)
|
||||
|
||||
2002-05-07 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* configure.in: added a new conditional CROSS_COMPILING which
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-05-07 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* glib/gmarkup.c (unescape_text): Report unfinished entity
|
||||
references as errors rather than running into an assert. (#80441)
|
||||
|
||||
2002-05-07 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* configure.in: added a new conditional CROSS_COMPILING which
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-05-07 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* glib/gmarkup.c (unescape_text): Report unfinished entity
|
||||
references as errors rather than running into an assert. (#80441)
|
||||
|
||||
2002-05-07 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* configure.in: added a new conditional CROSS_COMPILING which
|
||||
|
@ -592,9 +592,27 @@ unescape_text (GMarkupParseContext *context,
|
||||
}
|
||||
}
|
||||
|
||||
/* If no errors, we should have returned to USTATE_INSIDE_TEXT */
|
||||
g_assert (context->state == STATE_ERROR ||
|
||||
state == USTATE_INSIDE_TEXT);
|
||||
if (context->state != STATE_ERROR)
|
||||
{
|
||||
switch (state)
|
||||
{
|
||||
case USTATE_INSIDE_TEXT:
|
||||
break;
|
||||
case USTATE_AFTER_AMPERSAND:
|
||||
case USTATE_INSIDE_ENTITY_NAME:
|
||||
set_unescape_error (context, error,
|
||||
NULL, NULL,
|
||||
G_MARKUP_ERROR_PARSE,
|
||||
_("Unfinished entity reference"));
|
||||
break;
|
||||
case USTATE_AFTER_CHARREF_HASH:
|
||||
set_unescape_error (context, error,
|
||||
NULL, NULL,
|
||||
G_MARKUP_ERROR_PARSE,
|
||||
_("Unfinished character reference"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (context->state == STATE_ERROR)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user