summaryrefslogtreecommitdiffstats
path: root/regress/man/RS
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-03-09 15:29:35 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-03-09 15:29:35 +0000
commitbc5f2993f31191748ab9fed5f476079463af8f5e (patch)
treef382a5038d7a94624736f25009b30a03c36b50e2 /regress/man/RS
parenteb74e0f0e616a89f769432b7f4c31856c1a37f49 (diff)
downloadmandoc-bc5f2993f31191748ab9fed5f476079463af8f5e.tar.gz
Fix blunder in previous: we must keep the line parse buffer
consistent even when aborting the parsing of the line. That buffer is not our own, but owned and reused by mparse_buf_r(), read.c. Returning without cleanup leaked memory and caused write overruns of the old, typically much smaller buffer in mparse_buf_r(). Promptly noticed by tb@ with afl(1), using MALLOC_OPTIONS=C.
Diffstat (limited to 'regress/man/RS')
0 files changed, 0 insertions, 0 deletions