CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2026/08/08 08:15:44

Modified files:
        usr.bin/mandoc : roff_escape.c 

Log message:
When an escape sequence that requires an argument occurs at the end of an
input line and the argument is missing, abort parsing the line and report
an "incomplete escape sequence" error.

This fixes a read buffer overrun that Josiah Frentsos <[email protected]>
sent a different patch for.  Instead of always entering the argument
parsing code and detecting that there is no argument at two places in
the middle of that code, as Josiah proposed, i chose to instead check
up front that there is anything that can be parsed to begin with.
Also reminded by deraadt@, thanks!

Reply via email to