Add a test with a long entity name.
authorMatthias Clasen <mclasen@redhat.com>
Mon, 24 Jan 2005 17:25:37 +0000 (17:25 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 24 Jan 2005 17:25:37 +0000 (17:25 +0000)
commit39a681995c8e70d9483e51b2b3f16e8f76fa36e8
tree4d861628db98e335985199a255adff7a83b637a3
parent76d763485bdf98142b4ebff300f59ad8534d044e
Add a test with a long entity name.

2005-01-24  Matthias Clasen  <mclasen@redhat.com>

* tests/markups/fail-40.gmarkup: Add a test with a long entity
name.

* glib/gmarkup.c (unescape_text_state_inside_entity_name): Don't
copy the entity name into a short buffer of fixed length. Instead,
compare it in place with strncmp(), and do a full strdup() in the
error path.  (#165100, Simon Budig)
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-8
glib/gmarkup.c
tests/markups/fail-40.gmarkup [new file with mode: 0644]