Commit Graph

7 Commits

Author SHA1 Message Date
schwarze
25d26710b1 Format groff manuals with groff before installing them
because mandoc(1) doesn't like them, with the exception
of groff_mdoc(7), which is derived from the traditional
mdoc.samples(7) and which is just fine with mandoc(1).
Problem reported and fix tested by <Pascal dot Stumpf at cubes dot de>.
naddy@ and deraadt@ agree with the general direction
2011-10-12 22:00:07 +00:00
schwarze
a3bd54ca5a Represent bullets (for example in .Bl -bullet) by "o\bo" instead of "+\bo"
to agree with mandoc(1) and reduce noise in automatic output comparisons.
ok ajacoutot@
2011-07-07 05:27:15 +00:00
schwarze
2ad97ee4b1 Following http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=538330,
Solar Designer did an audit of temp file handling in groff-1.20.
He found and fixed *lots* of ugliness, but most does not look
exploitable and some was already improved in groff-1.21.

This is my own fix for the only one that, with a huge amount of extra
paranoia, might be worth patching.  To mount an exploit, the attacker
would need to trick root into setting an unusable TMPDIR (or similar)
variable in the environment such that mktemp -d fails, then convince
root to run pdfroff (*you* don't run that as root, do you?), then
handle a race condition to find the PID and predict the temp file
name to mount a symlink attack.

"I think we should still go for the fix" jasper@
2011-06-23 12:14:51 +00:00
schwarze
c72e745e6b First major OpenBSD groff update since 2000.
Lots of new functionality, lots of bug fixes, and bringing in
significant maintenance efforts from upstream.
To name just one specific example, the number of arguments mdoc(7)
macros can take is no longer limited.
Two of the more tricky patches contributed by naddy@, thanks!
Tested in bulk builds by landry@.
Tested on sparc (GCC 2) by phessler@ and on alpha (GCC 3) by naddy@.
ok naddy@, landry@

Before using this to build ports, make sure you install
the src/usr.sbin/pkg_add/OpenBSD/PackingElement.pm patch
i'm going to commit right afterwards as well, or you will end up
with ports manuals containing ANSI escape sequences.
2011-03-19 16:48:53 +00:00
schwarze
f8b61892f7 Increase the -man -Tascii text width from 65 to 78 characters.
Patch by millert@, see OpenBSD tmac.an rev. 1.2.
Bump.
Requested by naddy@; ok espie@.
2010-10-28 14:41:55 +00:00
jasper
4cbdf54235 - sync after nicm's commit to base.
ok nicm@
2010-05-25 18:56:07 +00:00
espie
085056043c synch with -current, fixes build for gcc4 2010-05-22 10:39:24 +00:00