Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Oct 2022 07:51:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 266882] mandoc(1) crashes with a core dump if it cannot parse a manual page
Message-ID:  <bug-266882-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 266882
           Summary: mandoc(1) crashes with a core dump if it cannot parse
                    a manual page
           Product: Base System
           Version: 13.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: wosch@FreeBSD.org

mandoc(1) crashes with a core dump if it cannot parse a manual page.

How to repeat:

# FreeBSD  14.0-CURRENT
curl -sSf
https://people.freebsd.org/~wosch/tmp/mandoc/core-dumped/krb5_openlog.3 |
mandoc >/dev/null
Assertion failed: (*sz =3D=3D 2 && (*start)[0] =3D=3D '.' && (*start)[1] =
=3D=3D 'T'),
function mandoc_escape, file /usr/src/contrib/mandoc/mandoc.c, line 467.
Abort trap (core dumped)


# FreeBSD 13.1-STABLE
curl -sSf
https://people.freebsd.org/~wosch/tmp/mandoc/core-dumped/krb5_openlog.3 |
mandoc >/dev/null
Abort trap (core dumped)

--=20
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-266882-227>