summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-12-20 02:26:42 +0000
committerschwarze <schwarze@openbsd.org>2014-12-20 02:26:42 +0000
commit42c9ede6f67e9ee0627823d05205159b281d7546 (patch)
treea3b98e2909edb1e3b876f4e7cb9cc4e6bc3e352b /sys/kern/subr_disk.c
parentresolve some code duplication; no functional change (diff)
downloadwireguard-openbsd-42c9ede6f67e9ee0627823d05205159b281d7546.tar.xz
wireguard-openbsd-42c9ede6f67e9ee0627823d05205159b281d7546.zip
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.
Diffstat (limited to 'sys/kern/subr_disk.c')
0 files changed, 0 insertions, 0 deletions