[glib: 1/6] tests: Add another GMarkup test from oss-fuzz



commit d6f2462ee09c0386caf6eb840378dc1dcfe0738c
Author: Philip Withnall <withnall endlessm com>
Date:   Thu Aug 2 10:53:51 2018 +0100

    tests: Add another GMarkup test from oss-fuzz
    
    This doesn’t trigger any new failures, but is distinct from other tests
    we have, so would be good to retain.
    
    Related to commit cec71705406f0b2790422f0c1aa0ff3b4b464b1b.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 glib/tests/Makefile.am              | 2 +-
 glib/tests/markups/fail-52.expected | 1 +
 glib/tests/markups/fail-52.gmarkup  | 1 +
 glib/tests/markups/fail-53.expected | 2 ++
 glib/tests/markups/fail-53.gmarkup  | 1 +
 5 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/glib/tests/Makefile.am b/glib/tests/Makefile.am
index b29b68431..a4f0b27cd 100644
--- a/glib/tests/Makefile.am
+++ b/glib/tests/Makefile.am
@@ -184,7 +184,7 @@ markup_tests = \
        fail-36 fail-37 fail-38 fail-39 fail-40 \
        fail-41 fail-42 fail-43 fail-44 fail-45 \
        fail-46 fail-47 fail-48 fail-49 fail-50 \
-       fail-51 \
+       fail-51 fail-52 fail-53 \
        valid-1 valid-2 valid-3 valid-4 valid-5 \
        valid-6 valid-7 valid-8 valid-9 valid-10 \
        valid-11 valid-12 valid-13 valid-14 valid-15 \
diff --git a/glib/tests/markups/fail-52.expected b/glib/tests/markups/fail-52.expected
new file mode 100644
index 000000000..e152fd62b
--- /dev/null
+++ b/glib/tests/markups/fail-52.expected
@@ -0,0 +1 @@
+ERROR Error on line 1 char 5: Odd character “\xfc”, expected a “=” after attribute name “r” of element “”
diff --git a/glib/tests/markups/fail-52.gmarkup b/glib/tests/markups/fail-52.gmarkup
new file mode 100644
index 000000000..ceb41c378
--- /dev/null
+++ b/glib/tests/markups/fail-52.gmarkup
@@ -0,0 +1 @@
+<      r �
\ No newline at end of file
diff --git a/glib/tests/markups/fail-53.expected b/glib/tests/markups/fail-53.expected
new file mode 100644
index 000000000..fbaaad656
--- /dev/null
+++ b/glib/tests/markups/fail-53.expected
@@ -0,0 +1,2 @@
+ELEMENT 'r'
+ERROR Error on line 1 char 4: Odd character “\xfc”, expected a “>” character to end the empty-element tag “r”
diff --git a/glib/tests/markups/fail-53.gmarkup b/glib/tests/markups/fail-53.gmarkup
new file mode 100644
index 000000000..432435554
--- /dev/null
+++ b/glib/tests/markups/fail-53.gmarkup
@@ -0,0 +1 @@
+<r/�
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]