aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-11-18 23:22:02 +0000
committerJesse Luehrs <doy@tozt.net>2021-11-18 23:45:31 +0000
commitcfc06a2b40329a0f06880309617abb6fb49ea190 (patch)
treef22d22a931510f0570f75184417233cfec8e44fb
parent2d7e929a51a614e8d5ccef4db63d37057e54785c (diff)
downloadvt100-rust-cfc06a2b40329a0f06880309617abb6fb49ea190.tar.gz
vt100-rust-cfc06a2b40329a0f06880309617abb6fb49ea190.zip
generate fuzzer inputs
-rw-r--r--fuzz/in/absolute_movement1
-rw-r--r--fuzz/in/alternate_buffer47
-rw-r--r--fuzz/in/ascii1
-rw-r--r--fuzz/in/attrs1
-rw-r--r--fuzz/in/bs2
-rw-r--r--fuzz/in/colors1
-rw-r--r--fuzz/in/combining2
-rw-r--r--fuzz/in/cr1
-rw-r--r--fuzz/in/deckpam1
-rw-r--r--fuzz/in/decsc4
-rw-r--r--fuzz/in/ed1
-rw-r--r--fuzz/in/el1
-rw-r--r--fuzz/in/ff1
-rw-r--r--fuzz/in/ich_dch_ech1
-rw-r--r--fuzz/in/icon_name1
-rw-r--r--fuzz/in/il_dl2
-rw-r--r--fuzz/in/intermediate_control2
-rw-r--r--fuzz/in/lf3
-rw-r--r--fuzz/in/modes1
-rw-r--r--fuzz/in/newlines3
-rw-r--r--fuzz/in/relative_movement1
-rw-r--r--fuzz/in/ri25
-rw-r--r--fuzz/in/ris1
-rw-r--r--fuzz/in/scroll24
-rw-r--r--fuzz/in/split_escape_sequences1
-rw-r--r--fuzz/in/split_utf81
-rw-r--r--fuzz/in/tab1
-rw-r--r--fuzz/in/title1
-rw-r--r--fuzz/in/title_icon_name1
-rw-r--r--fuzz/in/unknown_osc1
-rw-r--r--fuzz/in/utf81
-rw-r--r--fuzz/in/vt1
-rw-r--r--fuzz/in/wide1
-rw-r--r--fuzz/in/wrap4
-rw-r--r--fuzz/in/wrap_weird24
35 files changed, 165 insertions, 0 deletions
diff --git a/fuzz/in/absolute_movement b/fuzz/in/absolute_movement
new file mode 100644
index 0000000..2a972aa
--- /dev/null
+++ b/fuzz/in/absolute_movement
@@ -0,0 +1 @@
+ \ No newline at end of file
diff --git a/fuzz/in/alternate_buffer b/fuzz/in/alternate_buffer
new file mode 100644
index 0000000..db9af5c
--- /dev/null
+++ b/fuzz/in/alternate_buffer
@@ -0,0 +1,47 @@
+c1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24[?47hfoobar[?47l[?47h[?47lc1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24[?1049hfoobar[?1049l[?1049h[?1049l \ No newline at end of file
diff --git a/fuzz/in/ascii b/fuzz/in/ascii
new file mode 100644
index 0000000..1910281
--- /dev/null
+++ b/fuzz/in/ascii
@@ -0,0 +1 @@
+foo \ No newline at end of file
diff --git a/fuzz/in/attrs b/fuzz/in/attrs
new file mode 100644
index 0000000..ae52af7
--- /dev/null
+++ b/fuzz/in/attrs
@@ -0,0 +1 @@
+foooofooocfooo \ No newline at end of file
diff --git a/fuzz/in/bs b/fuzz/in/bs
new file mode 100644
index 0000000..8d8ffd1
--- /dev/null
+++ b/fuzz/in/bs
@@ -0,0 +1,2 @@
+fooaa
+quuxbar \ No newline at end of file
diff --git a/fuzz/in/colors b/fuzz/in/colors
new file mode 100644
index 0000000..b48bf33
--- /dev/null
+++ b/fuzz/in/colors
@@ -0,0 +1 @@
+foobarabfoobarababcdefoofoofoofoocfoooa[38:5:123mb[48:5:158mc[38:2:50:75:100md[48:2:125:150:175me \ No newline at end of file
diff --git a/fuzz/in/combining b/fuzz/in/combining
new file mode 100644
index 0000000..b0300da
--- /dev/null
+++ b/fuzz/in/combining
@@ -0,0 +1,2 @@
+ácabcdefǵaaa
+́cabcdefǵbcabcdefgcaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaáá́á \ No newline at end of file
diff --git a/fuzz/in/cr b/fuzz/in/cr
new file mode 100644
index 0000000..4cb9fe1
--- /dev/null
+++ b/fuzz/in/cr
@@ -0,0 +1 @@
+fooo bar \ No newline at end of file
diff --git a/fuzz/in/deckpam b/fuzz/in/deckpam
new file mode 100644
index 0000000..8348a1c
--- /dev/null
+++ b/fuzz/in/deckpam
@@ -0,0 +1 @@
+=> \ No newline at end of file
diff --git a/fuzz/in/decsc b/fuzz/in/decsc
new file mode 100644
index 0000000..ed83856
--- /dev/null
+++ b/fuzz/in/decsc
@@ -0,0 +1,4 @@
+foo7
+
+
+ bar8baz[?47h8[?47l8c[?6hfoo7[?6lbar8z \ No newline at end of file
diff --git a/fuzz/in/ed b/fuzz/in/ed
new file mode 100644
index 0000000..c2b8106
--- /dev/null
+++ b/fuzz/in/ed
@@ -0,0 +1 @@
+foobarbazquuxfoobarbazquuxfoobarbazquux[?0J[?1J[?2Jfoobarbazquux[?Jccc \ No newline at end of file
diff --git a/fuzz/in/el b/fuzz/in/el
new file mode 100644
index 0000000..5da1f7f
--- /dev/null
+++ b/fuzz/in/el
@@ -0,0 +1 @@
+foobarbarbazbazquuxfoobarbarbazbazquux[?0K[?1K[?2K[?K1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890ccc \ No newline at end of file
diff --git a/fuzz/in/ff b/fuzz/in/ff
new file mode 100644
index 0000000..050e67d
--- /dev/null
+++ b/fuzz/in/ff
@@ -0,0 +1 @@
+foo bara b \ No newline at end of file
diff --git a/fuzz/in/ich_dch_ech b/fuzz/in/ich_dch_ech
new file mode 100644
index 0000000..afe51cd
--- /dev/null
+++ b/fuzz/in/ich_dch_ech
@@ -0,0 +1 @@
+foobar[3@[100@obarobar [@  \ No newline at end of file
diff --git a/fuzz/in/icon_name b/fuzz/in/icon_name
new file mode 100644
index 0000000..142c68a
--- /dev/null
+++ b/fuzz/in/icon_name
@@ -0,0 +1 @@
+]1;it's an icon name]1; \ No newline at end of file
diff --git a/fuzz/in/il_dl b/fuzz/in/il_dl
new file mode 100644
index 0000000..7e44811
--- /dev/null
+++ b/fuzz/in/il_dl
@@ -0,0 +1,2 @@
+foobarfoobarcabccabcdc
+ab \ No newline at end of file
diff --git a/fuzz/in/intermediate_control b/fuzz/in/intermediate_control
new file mode 100644
index 0000000..c3e8584
--- /dev/null
+++ b/fuzz/in/intermediate_control
@@ -0,0 +1,2 @@
+[
+C \ No newline at end of file
diff --git a/fuzz/in/lf b/fuzz/in/lf
new file mode 100644
index 0000000..0b410fc
--- /dev/null
+++ b/fuzz/in/lf
@@ -0,0 +1,3 @@
+foo
+bara
+b \ No newline at end of file
diff --git a/fuzz/in/modes b/fuzz/in/modes
new file mode 100644
index 0000000..9de7f09
--- /dev/null
+++ b/fuzz/in/modes
@@ -0,0 +1 @@
+[?1h[?9h[?25l[?1000h[?1002h[?1003h[?1005h[?1006h[?2004h=[?1l[?9l[?25h[?1000l[?1002l[?1003l[?1005l[?1006l[?2004l> \ No newline at end of file
diff --git a/fuzz/in/newlines b/fuzz/in/newlines
new file mode 100644
index 0000000..418aff0
--- /dev/null
+++ b/fuzz/in/newlines
@@ -0,0 +1,3 @@
+f
+oo
+ood \ No newline at end of file
diff --git a/fuzz/in/relative_movement b/fuzz/in/relative_movement
new file mode 100644
index 0000000..8c6ad94
--- /dev/null
+++ b/fuzz/in/relative_movement
@@ -0,0 +1 @@
+ \ No newline at end of file
diff --git a/fuzz/in/ri b/fuzz/in/ri
new file mode 100644
index 0000000..cefee47
--- /dev/null
+++ b/fuzz/in/ri
@@ -0,0 +1,25 @@
+foo
+barMbazc1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24M \ No newline at end of file
diff --git a/fuzz/in/ris b/fuzz/in/ris
new file mode 100644
index 0000000..acadf51
--- /dev/null
+++ b/fuzz/in/ris
@@ -0,0 +1 @@
+foo]2;window title]1;window icon name[?25l[?1h=[?9h[?1000h[?1006h[?2004hgc \ No newline at end of file
diff --git a/fuzz/in/scroll b/fuzz/in/scroll
new file mode 100644
index 0000000..9d43e4c
--- /dev/null
+++ b/fuzz/in/scroll
@@ -0,0 +1,24 @@
+1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24 \ No newline at end of file
diff --git a/fuzz/in/split_escape_sequences b/fuzz/in/split_escape_sequences
new file mode 100644
index 0000000..1349624
--- /dev/null
+++ b/fuzz/in/split_escape_sequences
@@ -0,0 +1 @@
+abcabcdef[?1000h]0;a '[]_ \ No newline at end of file
diff --git a/fuzz/in/split_utf8 b/fuzz/in/split_utf8
new file mode 100644
index 0000000..f311f07
--- /dev/null
+++ b/fuzz/in/split_utf8
@@ -0,0 +1 @@
+aáキ💩 \ No newline at end of file
diff --git a/fuzz/in/tab b/fuzz/in/tab
new file mode 100644
index 0000000..3710c4c
--- /dev/null
+++ b/fuzz/in/tab
@@ -0,0 +1 @@
+foo bar \ No newline at end of file
diff --git a/fuzz/in/title b/fuzz/in/title
new file mode 100644
index 0000000..c98da0b
--- /dev/null
+++ b/fuzz/in/title
@@ -0,0 +1 @@
+]2;it's a title]2; \ No newline at end of file
diff --git a/fuzz/in/title_icon_name b/fuzz/in/title_icon_name
new file mode 100644
index 0000000..6610fac
--- /dev/null
+++ b/fuzz/in/title_icon_name
@@ -0,0 +1 @@
+]0;it's both]0;]2;it's a title]1;it's an icon name]1;it's a title]1;it's an icon name \ No newline at end of file
diff --git a/fuzz/in/unknown_osc b/fuzz/in/unknown_osc
new file mode 100644
index 0000000..b6dae42
--- /dev/null
+++ b/fuzz/in/unknown_osc
@@ -0,0 +1 @@
+]499;some long, long string? \ No newline at end of file
diff --git a/fuzz/in/utf8 b/fuzz/in/utf8
new file mode 100644
index 0000000..5eb9167
--- /dev/null
+++ b/fuzz/in/utf8
@@ -0,0 +1 @@
+caféc𝆺𝅥𝅯ᜒ \ No newline at end of file
diff --git a/fuzz/in/vt b/fuzz/in/vt
new file mode 100644
index 0000000..387bf10
--- /dev/null
+++ b/fuzz/in/vt
@@ -0,0 +1 @@
+foo bara b \ No newline at end of file
diff --git a/fuzz/in/wide b/fuzz/in/wide
new file mode 100644
index 0000000..e0958cb
--- /dev/null
+++ b/fuzz/in/wide
@@ -0,0 +1 @@
+aデbネcfoobarデcネfoobaraデcネfoobarデcネfoobarcデacデネcデ[@cデcaデcデcaデcデcデcaデcデネcデネcデネacデネacデcデcaデ b́cデネcデ [@ \ No newline at end of file
diff --git a/fuzz/in/wrap b/fuzz/in/wrap
new file mode 100644
index 0000000..d519bdf
--- /dev/null
+++ b/fuzz/in/wrap
@@ -0,0 +1,4 @@
+0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789ab012345678901234567890123456789012345678901234567890123456789012345678901234567ネa0123456789012345678901234567890123456789012345678901234567890123456789012345678ネa
+
+ ネabcdcabcdcabcd[@caa[@c
+aデ
diff --git a/fuzz/in/wrap_weird b/fuzz/in/wrap_weird
new file mode 100644
index 0000000..5f585dd
--- /dev/null
+++ b/fuzz/in/wrap_weird
@@ -0,0 +1,24 @@
+foo
+foo
+foo
+foo
+foo
+foo
+foo
+foo
+foo
+foo
+foo
+foo
+foo
+foo
+foo
+foo
+foo
+foo
+foo
+foo
+foo
+foo
+foo
+foo \ No newline at end of file