From cfc06a2b40329a0f06880309617abb6fb49ea190 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 18 Nov 2021 23:22:02 +0000 Subject: generate fuzzer inputs --- fuzz/in/absolute_movement | 1 + fuzz/in/alternate_buffer | 47 ++++++++++++++++++++++++++++++++++++++++++ fuzz/in/ascii | 1 + fuzz/in/attrs | 1 + fuzz/in/bs | 2 ++ fuzz/in/colors | 1 + fuzz/in/combining | 2 ++ fuzz/in/cr | 1 + fuzz/in/deckpam | 1 + fuzz/in/decsc | 4 ++++ fuzz/in/ed | 1 + fuzz/in/el | 1 + fuzz/in/ff | 1 + fuzz/in/ich_dch_ech | 1 + fuzz/in/icon_name | 1 + fuzz/in/il_dl | 2 ++ fuzz/in/intermediate_control | 2 ++ fuzz/in/lf | 3 +++ fuzz/in/modes | 1 + fuzz/in/newlines | 3 +++ fuzz/in/relative_movement | 1 + fuzz/in/ri | 25 ++++++++++++++++++++++ fuzz/in/ris | 1 + fuzz/in/scroll | 24 +++++++++++++++++++++ fuzz/in/split_escape_sequences | 1 + fuzz/in/split_utf8 | 1 + fuzz/in/tab | 1 + fuzz/in/title | 1 + fuzz/in/title_icon_name | 1 + fuzz/in/unknown_osc | 1 + fuzz/in/utf8 | 1 + fuzz/in/vt | 1 + fuzz/in/wide | 1 + fuzz/in/wrap | 4 ++++ fuzz/in/wrap_weird | 24 +++++++++++++++++++++ 35 files changed, 165 insertions(+) create mode 100644 fuzz/in/absolute_movement create mode 100644 fuzz/in/alternate_buffer create mode 100644 fuzz/in/ascii create mode 100644 fuzz/in/attrs create mode 100644 fuzz/in/bs create mode 100644 fuzz/in/colors create mode 100644 fuzz/in/combining create mode 100644 fuzz/in/cr create mode 100644 fuzz/in/deckpam create mode 100644 fuzz/in/decsc create mode 100644 fuzz/in/ed create mode 100644 fuzz/in/el create mode 100644 fuzz/in/ff create mode 100644 fuzz/in/ich_dch_ech create mode 100644 fuzz/in/icon_name create mode 100644 fuzz/in/il_dl create mode 100644 fuzz/in/intermediate_control create mode 100644 fuzz/in/lf create mode 100644 fuzz/in/modes create mode 100644 fuzz/in/newlines create mode 100644 fuzz/in/relative_movement create mode 100644 fuzz/in/ri create mode 100644 fuzz/in/ris create mode 100644 fuzz/in/scroll create mode 100644 fuzz/in/split_escape_sequences create mode 100644 fuzz/in/split_utf8 create mode 100644 fuzz/in/tab create mode 100644 fuzz/in/title create mode 100644 fuzz/in/title_icon_name create mode 100644 fuzz/in/unknown_osc create mode 100644 fuzz/in/utf8 create mode 100644 fuzz/in/vt create mode 100644 fuzz/in/wide create mode 100644 fuzz/in/wrap create mode 100644 fuzz/in/wrap_weird 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 -- cgit v1.2.3-54-g00ecf