## $Id: seeds_session.txt,v 1.1 2026/10/26 19:36:55 rec Exp $
##
## Seeds for fuzz_session.c.  Entries are separated by `%%'; see replay.c
## for the escapes.  The first three bytes of each entry choose the
## session's shape (fuzz_session.c's Purpose): \x01 interactive, \x02 no
## pager, \x04 small limits, \x08 admin; then rows and columns.
##
## Each entry reaches a different part of the editor or the session, so the
## fuzzer starts from all of them.  An input that once crashed the library
## belongs here too, with a comment naming the fix.
##
\x01\x00\x00show status\r
%%
\x01\x00\x00se\tki\t\e21\r?\r??\rshow ?\r
%%
\x09\x00\x00show status\rhistory 3\r\x12sho\rset kit\x12zz\x07\r
%%
\x09\x00\x00set fan auto\x17\x19\x15\x19\x19\x0b\rremember fan \x19\r
%%
\x01\x00\x00set z\xc3\xb6ne \xe4\xb8\xad\x02\x02\x7f\x04\xf0\x9f\x98\x80\r
%%
\x01\x05\x14history 30\r q\rshow log 64\r\r\r\x03
%%
\x09\x00\x00reboot\ry\rreboot\r\x03reboot\rn\r
%%
\x09\x00\x00configure\rset password\rabc\rabc\rset password\rx\ry\rshow configuration\rexit\r
%%
\x00\x00\x00show status\nset kitchen to 999\nset password\nreboot\nquit\n
%%
\x05\x00\x00show status show status show status show status\rhistory 5\rhistory 6\rhistory 7\rhistory 8\r
%%
\x01\x00\x00shw\e[D\e[3~o\e[A\e[B\e[H\e[F\e[15~\eOA\r
%%
\x09\x18\x28configure\rset name "front \\"room\\""\rset server 10.0.0.1\r\x10\x10\x0e\rexit\rfanauto\rset fan\r
%%
\x01\x00\x00\x80\xc3\xc0\x80\xed\xa0\x80\xf4\x90\x80\x80\xff\x7f\x7f\x7f\r
%%
\x09\x03\x05history 64\r                \r
%%
## Found by fuzz_session, 2026-10-26, within seconds of the first run:
## deleting and inserting single bytes merged malformed bytes into a valid
## four-byte character with the cursor inside it, and the redisplay's
## backspace count underflowed -- the editor hung writing backspaces.
## Fixed in cx_priv_redisplay(), src/cx_edit.c, which now snaps the cursor
## to a character boundary before measuring.
\x01\x00\x00s\xff\x02\x02\x7f\x04\xf0\x9f\x98\x7fG
