summaryrefslogtreecommitdiff
path: root/regress
AgeCommit message (Collapse)Author
2015-02-10Be more careful to not generate empty .In, .St, and .Xr nodes.Ingo Schwarze
That could happen when their first argument was another called macro, causing a NULL pointer access in .St validation found by jsg@ with afl. Make in_line_argn() easier to understand by using one state variable rather than two.
2015-02-10Do not read past the end of the buffer if an "f" layout font modifierIngo Schwarze
is followed by the end of the input line instead of a font specifier. Found by jsg@ with afl, test case #591. While here, improve functionality as well: * There is no "r" font modifier. * Font specifiers (as opposed to font modifiers) are case sensitive. * One-character font specifiers require trailing whitespace. * Ignore parenthised and two-letter font specifiers.
2015-01-29reorg tbl(7) test suiteIngo Schwarze
2015-02-10Add bind regress testClaudio Jeker
2015-02-10Test that bind works the way it should. This fails at the moment becauseClaudio Jeker
of the garbage in sin_zero.
2015-02-09Error messages form libtls have changed, adapt syslogd tests.Alexander Bluhm
2015-02-09sort includes correctlyTheo de Raadt
2015-02-08Change syslog tests from transparent framing to octet counting.Alexander Bluhm
Add tests for truncated buffer handling.
2015-02-07Closing a block validates it, which may end up deleting it,Ingo Schwarze
so if we are in a loop over blocks, cleanly restart the loop rather than risking use after free; found by jsg@ with afl.
2015-02-07Add regress tests for SSL_CIPHER_get_by_value() and SSL_CIPHER_get_by_id().Joel Sing
2015-02-06SIZE_MAX is standard, we should be using it in preference to theTodd C. Miller
obsolete SIZE_T_MAX. OK miod@ beck@
2015-02-06KNF bytestring files.Doug Hogan
I checked that this doesn't change anything. Compiled with clang using -Wno-pointer-sign -g0 to reduce the differences. Only difference in the asm is due to assert(0) line number changes in bs_cbs.c and bs_cbb.c. miod is ok with the general process.
2015-02-06replace the last legacy generic message type, "argument count wrong",Ingo Schwarze
by more specific messages, improving diagnostics for .cc .tr .Bl -column
2015-02-06better error reporting regarding .OP .RS .UR .TH argumentsIngo Schwarze
2015-02-06better diagnostics about excess arguments to .PD .ft .spIngo Schwarze
2015-02-06Import BoringSSL's crypto bytestring and crypto bytebuilder APIs.Doug Hogan
This is imported with as few changes as possible for the initial commit. I removed OPENSSL_EXPORT, replaced OPENSSL_malloc() etc with malloc() and changed a few header includes. BoringSSL has this as part of their public API. We're leaving it internal to libssl for now. Based on BoringSSL's CBB/CBS API as of commit c5cc15b4f5b1d6e9b9112cb8d30205a638aa2c54. input + ok jsing@, miod@
2015-02-06Add libssl ciphers regress, which currently only coversJoel Sing
get_cipher_by_char/put_cipher_by_char.
2015-02-06better error reporting for .br .fi .nf with argumentsIngo Schwarze
2015-02-06Delete the legacy generic warning type MANDOCERR_ARGCWARN,Ingo Schwarze
replacing the last instances by more specific warnings. Improved functionality, minus 50 lines of code.
2015-02-06better handle .Fo and .Fd without argumentIngo Schwarze
better handle .Fo with more than one argument
2015-02-06better handle empty .Bd .Bl .D1 .Dl blocksIngo Schwarze
2015-02-06better handle .In .Sh .Ss .St .Xr without argumentsIngo Schwarze
2015-02-06Add syslogd tests for dropped messages.Alexander Bluhm
2015-02-05fix handling of empty .An macrosIngo Schwarze
2015-02-04Discard excess head arguments for .Bd .Bl .Bk and delete hwarn_eq0().Ingo Schwarze
Discard empty .Bk blocks. Improve related diagnostics.
2015-02-04improve diagnostics regarding arguments of .An .Pp .Lp .br .spIngo Schwarze
in particular, get rid of check_count(..., CHECK_EQ, 0)
2015-02-04fix column numbers of macro arguments in messagesIngo Schwarze
2015-02-04discard .Rs head arguments and improve .Rs diagnosticsIngo Schwarze
2015-02-04more specific .Nd diagnostics, allowing to get rid of enum check_lvlIngo Schwarze
and the respective argument of check_count()
2015-02-03Make the mandoc test suite completely silent.Ingo Schwarze
Not even i looked at the 966 mandoc command lines and the 787 diff command lines it was spewing, and it was almost unusable without REGRESS_FAIL_EARLY because any errors got lost among all the noise. If you want to debug the Makefiles, use "make -dl". If you want to see the -Tman TODOs, use "grep -RF SKIP_TMAN".
2015-02-03Avoid closing out an explicit block twice when broken by .ItIngo Schwarze
(assertion failure); regression found in jsg@'s afl test case 847.
2015-01-01eqn(7) testsIngo Schwarze
2015-02-03Finally delete the kitchensink functions rew_sub() and rew_dohalt().Ingo Schwarze
They were a maintenance and auditing nightmare because if you changed one bit in there, stuff tended to break at seemingly unrelated places. No functional change except getting rid of one bogus error message, but minus 80 lines of code.
2015-02-03Bring .Pp/.Lp handling inside .Nm blocks closer to groff;Ingo Schwarze
as a bonus, get rid of another call to rew_sub().
2015-02-02Simplify and reindent make_pending(). No functional changeIngo Schwarze
except that some error messages become less confusing. Now the function is almost readable (but still requires nineteen lines of comments for fourteen lines of code).
2015-02-02Simplify: Do not call rew_dohalt() from make_pending(),Ingo Schwarze
the calling macro handler already found the breaking block. No functional change except tiny variations in error messages.
2015-02-02Test that long syslog messages are truncated correctly.Alexander Bluhm
2015-02-02Get rid of all calls to rew_sub() in blk_exp_close(); only ten callsIngo Schwarze
remain in other functions. As a bonus, this fixes an assertion failure jsg@ found some time ago with afl (test case 982) and improves minor details in error reporting.
2015-02-02When a full block macro gets closed out by a mismatchingIngo Schwarze
block closure macro it calls, do not attempt to open its body. This can for example happen for (nonsensical) constructions like .Fo .Nm Fc in the SYNOPSIS. Fixing an assertion failure jsg@ found with afl some time ago (test case number 731).
2015-02-01fix .Eo/.Ec spacingIngo Schwarze
2015-01-30starting a tbl(7) breaks man(7) next-line scope;Ingo Schwarze
triggered by a bug report from jsg@
2015-01-30TLS connect error message has changed, adapt tests.Alexander Bluhm
2015-01-30regression test for 'wildcard CA' serial/key ID revocationsDamien Miller
2015-01-30Make sure every layout line contains at least one cell;Ingo Schwarze
fixing a NULL pointer access in term_tbl() that jsg@ found with afl.
2015-01-29reorg tbl(7) test suiteIngo Schwarze
2015-01-29reorg tbl(7) test suiteIngo Schwarze
2015-01-29reorg tbl(7) test suiteIngo Schwarze
2015-01-28Add a test where the TLS handshake fails because of null ciphers.Alexander Bluhm
2015-01-28Clean up eqn(7) error handling:Ingo Schwarze
* When "define" fails, do not drop the whole equation. * Free memory after "undef". * Use standard mandoc error types instead of rolling our own. * Delete obfuscating EQN_MSG() macro. * Add function prototypes while here.
2015-01-28Test the x509 certificate validation of syslog over TLS.Alexander Bluhm