CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2014/12/19 19:26:42
Modified files:
usr.bin/mandoc : mdoc_macro.c
regress/usr.bin/mandoc/mdoc/Bl: Makefile
Added files:
regress/usr.bin/mandoc/mdoc/Bl: breakingIt.in
breakingIt.out_ascii
breakingIt.out_lint
Log message:
Fix two issues causing a class of assertion failures found by jsg@ with afl.
1) rew_sub(): Make sure REWIND_MORE is acted upon even when followed by
REWIND_NONE. This prevents .It from ending up inside other children of .Bl.
2) blk_exp_close(): Only allow extension of .Bl when it has at least
one .It. Otherwise, a broken child block could be moved in front of
the .Bl, effectively resulting in a .Bl that ended before it began.