1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/usr.bin/mandoc
schwarze 18b6272148 When the last line of the input is empty and the previous line reduced
the line input buffer to a length of one byte, do not write one byte
past the end of the line input buffer.  Minimal code to show the bug:
printf ".ds X\n.X\n\n" | MALLOC_OPTIONS=C mandoc
Bug found by bentley@ in the sysutils/rancid par(1) manual page.
2019-03-19 16:25:38 +00:00
..
apropos.1 Correct and shorten the description of the sort order of apropos(1) 2018-11-22 12:32:10 +00:00
arch.c When the -S option is given to man(1) and the requested manual page 2019-03-04 13:01:52 +00:00
att.c Cleanup, no functional change: 2018-12-13 11:55:14 +00:00
cgi.c drop redundant '0' flag from "%02.2X" format string; 2019-03-06 12:32:10 +00:00
cgi.h.example Simplify: write HTTP 303 redirects with relative locations. 2017-03-18 16:48:07 +00:00
chars.c Several improvements to escape sequence handling. 2018-12-15 19:30:19 +00:00
dba_array.c
dba_array.h
dba_read.c
dba_write.c
dba_write.h
dba.c Improve clarity of some casts; 2017-02-09 18:26:17 +00:00
dba.h
dbm_map.c Improve clarity of some casts; 2017-02-09 18:26:17 +00:00
dbm_map.h
dbm.c lstmatch() expects a list of strings separated by \0 and terminated 2018-11-04 05:32:42 +00:00
dbm.h
eqn_html.c The header file "html.h" uses enum roff_tok, 2019-03-17 18:20:07 +00:00
eqn_parse.h Cleanup, no functional change: 2018-12-14 06:33:03 +00:00
eqn_term.c Cleanup, no functional change: 2018-12-13 05:13:15 +00:00
eqn.c Cleanup, no functional change: 2018-12-14 06:33:03 +00:00
eqn.h Cleanup, no functional change: 2018-12-13 05:13:15 +00:00
html.c Reset HTML formatter state, in particular the id_unique hash, 2019-03-03 13:01:47 +00:00
html.h Wrap .Sh/.SH sections and .Ss/.SS subsections in HTML <section> elements 2019-03-01 10:48:58 +00:00
libman.h Cleanup, no functional change: 2018-12-31 10:03:38 +00:00
libmandoc.h Rename mandoc_getarg() to roff_getarg() and pass it the roff parser 2018-12-21 16:58:49 +00:00
libmdoc.h Cleanup, minus 15 LOC, no functional change: 2018-12-31 04:55:42 +00:00
main.c For TIOCGWINSZ, #include <termios.h> rather than <sys/termios.h> 2019-03-04 18:14:27 +00:00
main.h Reset HTML formatter state, in particular the id_unique hash, 2019-03-03 13:01:47 +00:00
Makefile man.cgi also needs to link arch.o; forgotten in rev. 1.116 2019-03-06 12:26:30 +00:00
makewhatis.8 Never create empty databases. 2017-05-17 22:26:52 +00:00
man_html.c Represent multiple subsequent .IP blocks having a consistent 2019-03-02 16:29:49 +00:00
man_macro.c In HTML output, man(7) .RS blocks get formatted as <div class="Bd-indent">, 2019-01-05 18:59:37 +00:00
man_term.c In groff, when the .SY block macro occurs in no-fill mode, 2019-01-05 21:13:55 +00:00
man_validate.c Contrary to what the NetBSD attribute(3) manual page suggests, 2019-03-13 18:29:26 +00:00
man.1 Mention mandoc.db(5), makewhatis(8), and weekly(8). 2019-03-09 15:54:46 +00:00
man.c Some high-level block macros have an effect similar to temporarily 2019-01-05 00:36:46 +00:00
man.cgi.8 various minor improvements 2018-05-20 21:48:23 +00:00
man.conf.5 Add an option -T html -O toc to add a brief table of contents near 2018-10-02 14:56:36 +00:00
man.h The upcoming .while request will have to re-execute roff(7) lines 2018-08-23 19:32:03 +00:00
manconf.h In -T locale (the default), -T ascii, and -T utf8 mode, provide a new 2018-11-22 11:30:15 +00:00
mandoc_aux.c Fix the mandoc_strndup() utility function. All existing callers seem 2018-02-07 20:04:33 +00:00
mandoc_aux.h Implement automatic line breaking 2017-06-12 18:55:42 +00:00
mandoc_msg.c Initializers for file-scope static variables should be compile-time 2019-01-10 06:27:23 +00:00
mandoc_ohash.c
mandoc_ohash.h
mandoc_parse.h Cleanup, no functional change: 2018-12-30 00:48:47 +00:00
mandoc_xr.c If a single page references the same non-existent manual more than 2017-07-02 21:17:12 +00:00
mandoc_xr.h If a single page references the same non-existent manual more than 2017-07-02 21:17:12 +00:00
mandoc.1 Explain the ASCII rendering of single quotes because that repeatedly 2019-02-23 18:52:45 +00:00
mandoc.c Cleanup, no functional change: 2018-12-30 00:48:47 +00:00
mandoc.css Wrap .Sh/.SH sections and .Ss/.SS subsections in HTML <section> elements 2019-03-01 10:48:58 +00:00
mandoc.h Yet another round of improvements to manual font selection. 2018-12-15 23:33:20 +00:00
mandocdb.c Cleanup, no functional change: 2018-12-30 00:48:47 +00:00
manpath.c In -T locale (the default), -T ascii, and -T utf8 mode, provide a new 2018-11-22 11:30:15 +00:00
mansearch.c Cleanup, no functional change: 2018-12-13 11:55:14 +00:00
mansearch.h In apropos(1) output, stop sorting .Nm search results by name 2018-11-22 12:01:42 +00:00
mdoc_argv.c Rename mandoc_getarg() to roff_getarg() and pass it the roff parser 2018-12-21 16:58:49 +00:00
mdoc_html.c Wrap .Sh/.SH sections and .Ss/.SS subsections in HTML <section> elements 2019-03-01 10:48:58 +00:00
mdoc_macro.c Represent mdoc(7) .Pp (and .sp, and some SYNOPSIS and .Rs features) 2019-01-07 06:51:37 +00:00
mdoc_man.c Oops, i forgot to adjust this file to the changes in roff.h rev. 1.49. 2019-01-04 03:17:38 +00:00
mdoc_markdown.c Cleanup, no functional change: 2018-12-30 00:48:47 +00:00
mdoc_state.c Correctly set the ROFF_NOFILL parser flag for .Bd .Ed .Sh, such 2019-01-01 07:41:22 +00:00
mdoc_term.c Two functional improvements to filling in terminal output. 2019-01-04 03:37:42 +00:00
mdoc_validate.c Contrary to what the NetBSD attribute(3) manual page suggests, 2019-03-13 18:29:26 +00:00
mdoc.c Cleanup, no functional change: 2018-12-31 07:45:42 +00:00
mdoc.h Cleanup, no functional change: 2018-12-30 00:48:47 +00:00
msec.c Major cleanup; may imply minor changes in edge cases of error reporting. 2018-12-14 01:17:46 +00:00
msec.in delete old, undocumented, obsolete section names that nobody uses 2017-06-24 17:36:50 +00:00
out.c Cleanup, no functional change: 2018-12-13 11:55:14 +00:00
out.h If a tbl(7) column contains both text cells and numeric cells, 2018-08-18 20:17:58 +00:00
preconv.c Cleanup, no functional change: 2018-12-13 11:55:14 +00:00
predefs.in
read.c When the last line of the input is empty and the previous line reduced 2019-03-19 16:25:38 +00:00
roff_html.c Represent mdoc(7) .Pp (and .sp, and some SYNOPSIS and .Rs features) 2019-01-07 06:51:37 +00:00
roff_int.h Some high-level block macros have an effect similar to temporarily 2019-01-05 00:36:46 +00:00
roff_term.c Simplify the roff(7) .ce and .rj terminal formatter by using the 2019-01-04 03:24:30 +00:00
roff_validate.c oops, one change ROFF_NOFILL -> NODE_NOFILL was forgotten in rev. 1.17 2018-12-31 09:02:30 +00:00
roff.c Let roff_getname() end the roff identifier at a tab character 2019-02-06 20:54:28 +00:00
roff.h When the -S option is given to man(1) and the requested manual page 2019-03-04 13:01:52 +00:00
st.c Major cleanup; may imply minor changes in edge cases of error reporting. 2018-12-14 01:17:46 +00:00
tag.c In -T locale (the default), -T ascii, and -T utf8 mode, provide a new 2018-11-22 11:30:15 +00:00
tag.h In -T locale (the default), -T ascii, and -T utf8 mode, provide a new 2018-11-22 11:30:15 +00:00
tbl_data.c ignore empty request lines in the table data reader; 2019-02-09 16:00:06 +00:00
tbl_html.c The header file "html.h" uses enum roff_tok, 2019-03-17 18:20:07 +00:00
tbl_int.h Cleanup, no functional change: 2018-12-14 06:33:03 +00:00
tbl_layout.c Almost mechanical diff to remove the "struct mparse *" argument 2018-12-14 05:17:45 +00:00
tbl_opts.c Almost mechanical diff to remove the "struct mparse *" argument 2018-12-14 05:17:45 +00:00
tbl_parse.h Cleanup, no functional change: 2018-12-14 06:33:03 +00:00
tbl_term.c fix a NULL pointer access on empty tbl(7) data cells 2019-03-18 08:00:26 +00:00
tbl.c Cleanup, no functional change: 2018-12-14 06:33:03 +00:00
tbl.h Cleanup, no functional change: 2018-12-12 21:54:30 +00:00
term_ascii.c Bugfix: never set termp->enc to the ambiguous value TERMENC_LOCALE, 2018-11-28 14:23:02 +00:00
term_ps.c streamline termp allocation. this will allow the init function to 2017-11-10 14:16:28 +00:00
term_tab.c tables leak tab settings to subsequent text 2017-06-17 14:55:02 +00:00
term.c In PostScript and PDF output, one AFM unit is not nearly enough 2019-01-15 12:15:52 +00:00
term.h Implement centering and adjustment to the right margin directly in 2019-01-04 03:20:44 +00:00
tree.c display the NODE_NOFILL flag indicating no-fill mode 2019-01-01 05:56:26 +00:00