Update of bug #66547 (group groff):
Status: In Progress => Fixed
Open/Closed: Open => Closed
Planned Release: None => 1.25.0
_______________________________________________________
Follow-up Comment #5:
commit 129605355239f448ba517a807e0f3bf46fdeb52e
Author: G. Branden Robinson <[email protected]>
Date: Thu Mar 19 11:34:34 2026 -0500
[troff]: Fix Savannah #66547.
* src/roff/troff/input.cpp (transparent_throughput_file_request):
Disallow all grout-invalid characters in "safer" transparent file
throughput (implemented by the `trf` request), including all C0
control code points except the line feed (Unix newline), and all C1
controls and Latin-1 extension code points. Revise warning diagnostic
message.
* doc/groff.texi.in (Host System Service Access, Warnings):
* man/groff.7.man (Request short reference):
* man/groff_diff.7.man (New requests):
* src/roff/troff/troff.1.man (Warnings):
* NEWS: Document it.
Fixes <https://savannah.gnu.org/bugs/?66547>.
Illustration:
$ printf '# foo\0\001\002\003\004\005\006\007\241bar\n# baz\n' >|
ATTIC/bad-trf
$ printf '.trf ATTIC/bad-trf\n' | ./build/test-groff -ww -Z
x T ps
x res 72000 1 1
x init
p1
troff:<standard input>:1: warning: character code 0 is invalid in
transparent file throughput; ignoring [-w input]
troff:<standard input>:1: warning: character code 1 is invalid in
transparent file throughput; ignoring [-w input]
troff:<standard input>:1: warning: character code 2 is invalid in
transparent file throughput; ignoring [-w input]
troff:<standard input>:1: warning: character code 3 is invalid in
transparent file throughput; ignoring [-w input]
troff:<standard input>:1: warning: character code 4 is invalid in
transparent file throughput; ignoring [-w input]
troff:<standard input>:1: warning: character code 5 is invalid in
transparent file throughput; ignoring [-w input]
troff:<standard input>:1: warning: character code 6 is invalid in
transparent file throughput; ignoring [-w input]
troff:<standard input>:1: warning: character code 7 is invalid in
transparent file throughput; ignoring [-w input]
troff:<standard input>:1: warning: character code 161 is invalid in
transparent file throughput; ignoring [-w input]
\# foobar
\# baz
x trailer
V792000
x stop
(Comment characters are backslash-prefixed when leading a line to keep
Git from discarding them from this commit log message.)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66547>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
