URL:
  <https://savannah.gnu.org/bugs/?68982>

                 Summary: [troff] input `\c\e` causes assertion failure since
groff 1.24.0
                   Group: GNU roff
               Submitter: gbranden
               Submitted: Tue 01 Dec 2026 08:16:41 AM UTC
                Category: Formatter
                Severity: 4 - Important
              Item Group: Crash/Unresponsive
                  Status: Confirmed
                 Privacy: Public
             Assigned to: gbranden
             Open/Closed: Open
         Discussion Lock: Unlocked
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Tue 01 Dec 2026 08:16:41 AM UTC By: G. Branden Robinson <gbranden>
...and still today.


$ printf '\\c\\e\n' | ~/groff-1.24.0/bin/groff -z
troff: ../src/roff/troff/env.cpp:347: void environment::add_char(charinfo*):
Assertion `!was_line_interrupted' failed.
/home/branden/groff-1.24.0/bin/groff: error: troff: Aborted (core dumped)


My hypothesis is that I don't handle `\e` like other escape sequences that
directly format glyphs.  We should be warning about encountering this sequence
and not attempt to add the character `\e` to which that escape sequence
resolves to the pending output line, because that's what `\c` means.

Discovered while investigating
[https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301285 FreeBSD #301285],
which was kind of a shotgun of a fuzzing report.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68982>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to