URL: <https://savannah.gnu.org/bugs/?68375>
Summary: [troff] have callers of `read_{h,v}units()` check
for garbage after numeric expression
Group: GNU roff
Submitter: gbranden
Submitted: Wed 20 May 2026 02:50:23 PM UTC
Category: Core
Severity: 1 - Wish
Item Group: Warning/Suspicious behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Unlocked
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 20 May 2026 02:50:23 PM UTC By: G. Branden Robinson <gbranden>
Presently, they don't.
`read_{h,v}units()` themselves cannot reliably do this because sometimes they
are called where the input stream is in a delimited context and sometimes when
it is not. A input character is that is garbage immediately after a numeric
expression is not garbage, but expected, if it is a delimiter-eligible
character matching an opening delimiter.
The callers have the appropriate context, so the callers must check.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68375>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
