Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Aug 2015 05:20:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 202540] libteken assert() fail on teken.c line 231
Message-ID:  <bug-202540-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202540

            Bug ID: 202540
           Summary: libteken assert() fail on teken.c line 231
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: kcwu@csie.org

Because syscons (a kernel driver) uses libteken, an assertion failure in
libteken would result in kernel panic.

How to reproduce:
To reproduce the assertion reliably, I modified
src/sys/teken/stress/teken_stress.c to take input from stdin.
$ echo -e '\e[?6h\e[5r\e[65533H' | ./teken_stress 
Assertion failed: (t->t_cursor.tp_row >= t->t_originreg.ts_begin), function
teken_input_char, file /usr/src/sys/teken/teken.c, line 231.
Abort trap (core dumped)

This issue is found by afl-fuzz
This is similar but different case to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202326 . Please let me know
if you want me report in the same tracking bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-202540-8>