[gtk/wip/otte/json: 85/85] testsuite: Add JSON tests fuzzers complained about
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/json: 85/85] testsuite: Add JSON tests fuzzers complained about
- Date: Thu, 9 Dec 2021 14:53:32 +0000 (UTC)
commit 80c1402d98a527e3be7715aa30e3f72f48a76091
Author: Benjamin Otte <otte redhat com>
Date: Thu Dec 9 15:52:18 2021 +0100
testsuite: Add JSON tests fuzzers complained about
testsuite/json/fuzzing/number-starting-with-dot.error | 1 +
testsuite/json/fuzzing/number-starting-with-dot.json | 1 +
testsuite/json/fuzzing/number-starting-with-plus.error | 1 +
testsuite/json/fuzzing/number-starting-with-plus.json | 1 +
testsuite/json/meson.build | 4 ++++
5 files changed, 8 insertions(+)
---
diff --git a/testsuite/json/fuzzing/number-starting-with-dot.error
b/testsuite/json/fuzzing/number-starting-with-dot.error
new file mode 100644
index 0000000000..4b8961a7c8
--- /dev/null
+++ b/testsuite/json/fuzzing/number-starting-with-dot.error
@@ -0,0 +1 @@
+1:1-3: syntax error: Numbers may not start with '.'
diff --git a/testsuite/json/fuzzing/number-starting-with-dot.json
b/testsuite/json/fuzzing/number-starting-with-dot.json
new file mode 100644
index 0000000000..7b9d05c745
--- /dev/null
+++ b/testsuite/json/fuzzing/number-starting-with-dot.json
@@ -0,0 +1 @@
+.0
\ No newline at end of file
diff --git a/testsuite/json/fuzzing/number-starting-with-plus.error
b/testsuite/json/fuzzing/number-starting-with-plus.error
new file mode 100644
index 0000000000..728a787300
--- /dev/null
+++ b/testsuite/json/fuzzing/number-starting-with-plus.error
@@ -0,0 +1 @@
+1:1-3: syntax error: Numbers may not start with '+'
diff --git a/testsuite/json/fuzzing/number-starting-with-plus.json
b/testsuite/json/fuzzing/number-starting-with-plus.json
new file mode 100644
index 0000000000..8eeccfcff4
--- /dev/null
+++ b/testsuite/json/fuzzing/number-starting-with-plus.json
@@ -0,0 +1 @@
++3
\ No newline at end of file
diff --git a/testsuite/json/meson.build b/testsuite/json/meson.build
index 47d450bbfb..cc405181d3 100644
--- a/testsuite/json/meson.build
+++ b/testsuite/json/meson.build
@@ -541,6 +541,10 @@ test_data = [
'JSONTestSuite/y_structure_trailing_newline.json',
'JSONTestSuite/y_structure_true_in_array.json',
'JSONTestSuite/y_structure_whitespace_array.json',
+ 'fuzzing/number-starting-with-dot.error',
+ 'fuzzing/number-starting-with-dot.json',
+ 'fuzzing/number-starting-with-plus.error',
+ 'fuzzing/number-starting-with-plus.json',
]
test_files = []
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]