aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* release 1.14.1VERSION_1_14_1Ingo Schwarze2017-02-212-15/+23
|
* resolve trivial differences with OpenBSD:Ingo Schwarze2017-02-181-4/+2
| | | | | * we include <sys/types.h> for size_t, so we don't need <stdint.h> * sort declarations in read_whole_file()
* add some regress targetsIngo Schwarze2017-02-181-1/+29
|
* preconv_encode() can take a const input buffer;Ingo Schwarze2017-02-182-9/+9
| | | | diff from <christos at NetBSD>
* Provide an uninstall target, to help cleaning up after installingIngo Schwarze2017-02-181-8/+51
| | | | with the wrong DESTDIR. Use with care.
* proper test for O_DIRECTORYIngo Schwarze2017-02-186-15/+17
|
* double quotes were fixed, finallyIngo Schwarze2017-02-181-5/+2
|
* Use typographic quotes rather than '"' for .Rs %T (no change for -TasciiIngo Schwarze2017-02-177-8/+72
| | | | | output, of course). Patch from bentley@ in November 2014. This can be committed now because groff merged Anthony's patch yesterday.
* Many people have been complaining for a long time that ``...'' looksIngo Schwarze2017-02-1711-18/+17
| | | | | | | | | | | ugly in -Tascii output. For that reason, bentley@ submitted patches to render "..." instead to groff in November 2014 (yes, more than two years ago). Carsten Kunze yesterday merged them for the upcoming groff-1.22.4 release. Yay! Consequently, do the same in mandoc: Render \(Lq and \(Rq (which are used for .Do, .Dq, .Lb, and .St) as '"' in -Tascii output. All other output modes including -Tutf8 remain unchanged.
* more tests for .IP/.nf interaction that i forgot to commitIngo Schwarze2017-02-172-2/+69
|
* No need to cast NULL when assigning it to a variable;Ingo Schwarze2017-02-171-2/+2
| | | | from Christos Zoulas <christos at NetBSD>.
* Improve clarity of some casts;Ingo Schwarze2017-02-172-9/+9
| | | | from Christos Zoulas <christos at NetBSD>.
* Make the directory explicit where source files are located.Ingo Schwarze2017-02-171-2/+5
| | | | | This is simple and seems to help the NetBSD build infrastructure. From Christos Zoulas <christos at NetBSD>.
* Be consistent in protecting __attribute__ attributes with __;Ingo Schwarze2017-02-178-17/+17
| | | | from Christos Zoulas <christos @ NetBSD>.
* Fix a read buffer overrun that copied random data from memory intoIngo Schwarze2017-02-171-4/+12
| | | | | | | | | | | text nodes when a string passed to deroff() ended in a backslash and the byte after the terminating NUL was non-NUL, found by tb@ with afl(1). Invalid bytes so copied with the high bit set could later sometimes trigger another out of bounds read access to static memory in roff_strdup(), so add an assertion there to abort safely in case of similar data corruption.
* add $(LN) configuration variable; requested by Michael <Stapelberg@debian.org>Ingo Schwarze2017-02-163-10/+21
|
* fix previous: stupid typoIngo Schwarze2017-02-161-3/+3
|
* Provide a variable BINM_CATMAN.Ingo Schwarze2017-02-164-9/+19
| | | | Suggested by Michael <Stapelberg@debian.org>.
* Surprisingly, groff does not support scaling units in .Bl -columnIngo Schwarze2017-02-164-13/+19
| | | | | | column width specifiers, so stop supporting them, too. As a side effect, this fixes an assertion failure that tb@ found with afl(1), triggered by: .Bl -column -4n
* Fix rev. 1.280: -O syntax is different in default apropos(1) outputIngo Schwarze2017-02-161-18/+23
| | | | | mode and in other output modes, so do not error out prematurely. Also sort local variables in main() while here.
* Fix block scoping error if an explicit block is broken by twoIngo Schwarze2017-02-164-13/+32
| | | | | | | | | implicit blocks (.Aq Bq Po .Pc) that left the outer breaker open and could in exceptional cases, like between .Bl and .It, cause tree corruption leading to NULL dereference. Found by tb@ with afl(1). While here, do not mark intermediate ENDBODY markers as broken.
* Remove the ENDBODY_NOSPACE flag, simplifying the code.Ingo Schwarze2017-02-167-28/+14
| | | | | | | | Comparing to groff output, it appears that all cases where it was used and made a difference actually require the opposite, ENDBODY_SPACE. I have no idea why i added it back in 2010; maybe to compensate for some other bug that has long been fixed.
* Style improvement, no functional change.Ingo Schwarze2017-02-151-8/+7
| | | | | | | | | | As reported by Yuri Pankov, some versions of GCC whine that "tmp" might be used uninitialized in fts_open(3). Clearly, that cannot actually happen, but explicitly setting it to NULL is safer anyway. While here, rename the badly named variable "tmp" and make the inner "if" easier to understand. Feedback and OK guenther@
* Fix previous: I forgot that i had to change the convention howIngo Schwarze2017-02-151-2/+2
| | | | | a node is marked as "not a macro" when unifying the parsers. Confirmed to work by Sevan Janiyan.
* Do not access a NULL pointer if a matrix or square root are empty.Ingo Schwarze2017-02-129-13/+45
| | | | Crashes found by tb@ with afl(1).
* Do not read one element past the end of the static const termacts array.Ingo Schwarze2017-02-111-2/+3
| | | | | | | Bug found by Sevan Janiyan <venture37 at geeklan dot co dot uk> who ran the OpenBSD mandoc test suite on Ubuntu on POWER8 (sic!) and reported that mdoc/Sh/before.in failed in -Tman mode. If that isn't power testing, i don't know...
* new regression tests for mdoc_macro.c revs. 1.211-1.215Ingo Schwarze2017-02-1113-12/+85
|
* Disable three UTF-8 tests that expose bugs in wcwidth(3) in theIngo Schwarze2017-02-111-1/+1
| | | | | | | | | | | | native C libraries of illumos, Oracle Solaris 11, and SunOS 5.10. While it is useful to catch wcwidth(3) regressions on OpenBSD, the purpose of the *portable* mandoc regression suite is not to check the C library of the host system; that would just hide genuine mandoc portability issues in the noise. The remaining UTF-8 tests are still sufficient to establish that mandoc does the right thing. Issues reported by Sevan Janiyan <venture37 at geeklan dot co dot uk> after testing on OmniOS.
* Never look for broken blocks inside blocks that are already closed.Ingo Schwarze2017-02-112-5/+8
| | | | | Fixes the last the of tree corruptions sometimes causing NULL dereference reported by tb@; this one triggered in cases like: .Bl -column .It Pq Ta
* Do not prematurely close .Nd containing a broken child.Ingo Schwarze2017-02-112-5/+13
| | | | | | Fixes tree corruption leading to NULL dereference in insane cases like .Oo Oo .Nd .Pq Oc .Oc Oc found by tb@ with afl(1).
* Do not prematurely mark intermediate blocks as broken while scanningIngo Schwarze2017-02-111-10/+17
| | | | | backwards. Only do so when a block is found that is actually broken. Logic error found while investigating crashes reported by tb@.
* For child macros of block-end macros, only scan backwards for pendingIngo Schwarze2017-02-101-7/+8
| | | | | | | | breakers unless the parent of the block is already closed. While the scanning is needed in cases like ".Ac Bo" for broken Ao, it is useless and crashy in cases like ".Ac Bc" for non-broken Ao. This fixes a NULL pointer dereference that tb@ found with afl(1).
* In the SYNOPSIS, .Nm blocks can get broken if one of their childrenIngo Schwarze2017-02-102-8/+18
| | | | | | | | | | | | gets broken. In that case, mark them as BROKEN and ENDED and make sure they get closed out together with the child. Fixes tree corruption leeding to a NULL dereference found by tb@ with afl(1) in: .Sh SYNOPSIS .Bl .Oo .Nm .Bk .Oc .It (where .Bk is the child and .Oo is the breaker). A simpler form of the same corruption (without crash) is visible in: .Sh SYNOPSIS .Ao .Nm .Bo .Ac .Bc text where the text ended up inside the .Nm (child .Bo, breaker .Ao).
* In -Ttree output mode, show the BROKEN node flag andIngo Schwarze2017-02-106-13/+35
| | | | provide a -Onoval output option to show the unvalidated tree.
* same as mandocdb.c rev. 1.196:Ingo Schwarze2017-02-091-3/+4
| | | | | for portability, use (char *)NULL in execlp(3) as discussed on tech@ OpenBSD (didn't blow up anywhere yet, but better safe than sorry)
* Illumos doesn't have O_DIRECTORY. Work around that for now, mayIngo Schwarze2017-02-091-1/+5
| | | | | fix it better after the 1.14.1 release. Portability issue reported by Sevan Janiyan <venture37 at geeklan dot co dot uk>.
* Escape literal braces in a regular expression.Ingo Schwarze2017-02-091-2/+2
| | | | Deprecated perlre(1) syntax reported by Thomas Klausner and Sevan Janiyan.
* On some systems (e.g. Solaris 11) diff(1) does not support -a.Ingo Schwarze2017-02-081-6/+10
| | | | Make it easier to get rid of it.
* mention that BUILD_CATMAN doesn't work on SunOS 5.9 and 5.10Ingo Schwarze2017-02-081-1/+3
|
* config glue for recvmsg(2) and CMSG_FIRSTHDR(3);Ingo Schwarze2017-02-087-6/+78
| | | | needed for Solaris 11
* sendmsg(3) may block, so retryIngo Schwarze2017-02-081-2/+19
|
* even catman needs libmandoc on systems not having ftsIngo Schwarze2017-02-081-3/+3
|
* protect <err.h> inclusionIngo Schwarze2017-02-081-1/+3
|
* more 1.14.1 release preparationsIngo Schwarze2017-02-085-26/+46
|
* reference a relevant mail for one TODO itemIngo Schwarze2017-02-081-2/+2
|
* remove some instances of MdocdateIngo Schwarze2017-02-083-3/+3
|
* disable some tests that expose wcwidth(3) differences among systemsIngo Schwarze2017-02-081-1/+4
|
* Finally port the OpenBSD regression suite.Ingo Schwarze2017-02-081244-0/+23823
| | | | | Both kristaps@ and wiz@ repeated asked for this, literally for years.
* first draft of NEWS for 1.14.1Ingo Schwarze2017-02-071-1/+108
|
* new manual pages for catman(8) and mandocd(8)Ingo Schwarze2017-02-063-2/+392
|