]> git.cameronkatri.com Git - mandoc.git/commit
Be more careful to not generate empty .In, .St, and .Xr nodes.
authorIngo Schwarze <schwarze@openbsd.org>
Tue, 10 Feb 2015 17:47:45 +0000 (17:47 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Tue, 10 Feb 2015 17:47:45 +0000 (17:47 +0000)
commitc353c55f27ec1d4e26535ef6c0c80284d2a3b47b
tree733ae6aca018509d91cdafd77b16d32debaf2595
parent25662a4940503ffb064a92f60db8cd83050b1878
Be more careful to not generate empty .In, .St, and .Xr nodes.
That could happen when their first argument was another called macro,
causing a NULL pointer access in .St validation found by jsg@ with afl.

Make in_line_argn() easier to understand by using one state
variable rather than two.
mdoc_macro.c