Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email firstname.lastname@example.org
From: Ingo Schwarze (schwarzecvs.openbsd.org)
Date: Sat Nov 27 2010 - 14:52:34 CST
Module name: src
Changes by: schwarzecvs.openbsd.org 2010/11/27 13:52:34
usr.bin/mandoc : roff.c
Two related bugfixes:
1) When using a user-defined string of length 0 as a macro,
do not access memory before the start of the string (segfault).
2) When beginning to define a user-defined macro, initialize
the string representing the macro to the empty string,
not to the NULL pointer, such that, in case the macro turns
out to not have any content, like in
the macro will be defined and empty instead of undefined.
This avoids large numbers of bogus mandoc ERROR messages about
undefined macros (which are actually defined and empty), in
particular in man(7) code generated from pod2man(1), for example
in Perl and OpenSSL.