diff options
author | Philip Withnall <withnall@endlessm.com> | 2018-07-30 19:10:11 +0100 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2018-07-30 21:59:26 +0100 |
commit | 376234f9b25b220ff58dafbc4ba6bfcfc37b6f34 (patch) | |
tree | f89fd45b389fa7399f477b6dd8811ffd02bd3371 /glib/tests/bookmarks/fail-19.xbel | |
parent | 4127c84c3a8461dc456cbf4c60dc98934823cec2 (diff) | |
download | glib-376234f9b25b220ff58dafbc4ba6bfcfc37b6f34.tar.gz |
gbookmarkfile: Fix error reporting with unexpected nesting of elements
The parser state machine for bookmark files did not handle unexpected
nesting of elements, such as a <bookmark> element inside a <title>
element — it would print a critical warning rather than returning a
GError.
Fix that, and add various unit tests for it. The set of tests includes
various other general markup tests as provided by Jussi Judin.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://gitlab.gnome.org/GNOME/glib/issues/1035
Diffstat (limited to 'glib/tests/bookmarks/fail-19.xbel')
-rw-r--r-- | glib/tests/bookmarks/fail-19.xbel | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/glib/tests/bookmarks/fail-19.xbel b/glib/tests/bookmarks/fail-19.xbel new file mode 100644 index 000000000..ab4edbb8d --- /dev/null +++ b/glib/tests/bookmarks/fail-19.xbel @@ -0,0 +1 @@ +<?><!DOCTYPE><xbel version="1.0"xmlns:mime="http://www.freedesktop.org/standards/shared-mime-info"xmlns:bookmark="http://www.freedesktop.org/standards/desktop-bookmarks"><title><mime:mime-type></mime:mime-type><bookmark:applications><bookmark:application name=""exec=""/
\ No newline at end of file |