Re: To bust or not to bust: the C/C++ code freeze for a (poor man's) fuzzer-provoked SEGV
"G. Branden Robinson" <[email protected]>
| Newsgroups | gmane.comp.printing.groff.general |
|---|---|
| Message-ID | <20260129002343.4gtop2odlh5wb5xv@illithid> |
At 2026-01-28T23:03:28+0000, Deri wrote:
> I only discovered it when doing the research for the pdf attached to
> <https:// savannah.gnu.org/bugs/?67544#comment8>. I wanted to attach a
> .png at the top of the page:-
>
> .LP
> \X'pdf: pdfpic ne-pic.png -L \n[LL]z'
> .sp 1.4c
> .NH 1 ghostscript
> Ghostscript
>
> It only avoided the SIGSEGV if I added a .LP before it.
Insofar as you had to issue an `LP` call before populating your ms(7)
document with content, then it's not a bug that you got an undesirable
outcome when you omitted it.
groff_ms(7):
Document structure
The ms macro package expects a certain amount of structure: a well‐
formed document contains at least one paragraphing or heading macro
call. To compose a simple document from scratch, begin it by
calling LP or PP. ...
$ eqn -Tutf8 ./build/doc/ms.ms | nroff -rLL=80n -pt -ms | sed -n '43,46p'
1.1. Basic information
Prepare an ms document with your preferred text editor. Call an ms macro early
in the document to initialize the package. A macro is a formatting instruction
...
"Typing Documents on the Unix System: Using the -ms macros with Troff
and Nroff", M.E. Lesk, 13 November 1978:
Warning: You can't just begin a document with a line of text. Some
-ms command must precede any text input.
However, a core dump should not be GNU troff's means of informing you
that you erred.
I'll test my excessively advanced input stream pointer hypothesis
presently.
Regards,
Branden
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAml6qIgACgkQ0Z6cfXEm bc4/FBAAgEkeDZJ2x8lB9JfVRr/ortxqsdeKQf/PXE+78ccqbMCyrxLkpSAoV8cd PbCbaezXXXFrtTRAKTiln26tbKkv9HjvtkLNmeD71oe1phLE/K5ZluWHhlxrX6Tw MvzUhGy9+H9hk9z9AhUxIrsonZheJ8XzDOQ2tm1aWC9wk0/Wzv/TxW6GE71Xkv5I dHQKQjqDu1s1DK4BapNG2qCgDU4uXBKklF5neSXjft2lqxZzBl85We2JeXsvK+ZF km18r3YqU6rB0/SPh8bPc/yMgM+oCJQt5t+3ORKm5cpzfwTBbDuXNhowLhDLpVWF E8YjZeGZQvE8xkx4xX30xWUyDUrkePBTls3F/wAhqMFMBfgiYKWph7ax3AA03HEd DGiq7YM8U/v21l5Z90aDqdnp0rhfT8Ya2angtXZogl+b6iIyBqIJER4OMJFeWICv OyDmihcOWOaYnELNrhiZ0AuEcHcPBq8wb27fW6HIoss0wiR1GBmYb7FWOw947ht/ OaoW18EcPpyvjx/dzXkXOTIupm6RKfVQYPVJhj3RBc0YU7JTzs+9UKSzD5UldrbD +hjKu1cNrWaQnqgJMWpVuOmJdEWIBztSETszAYgOPxcBD0Ptvht/vd2adiIsywM0 nzgq6td4SICJJCwa2qeT9eE1Z5je3VPq7fUODmRtfskvPCAwiTU= =7L6w -----END PGP SIGNATURE-----