summaryrefslogtreecommitdiff
path: root/regress
AgeCommit message (Collapse)Author
2015-02-16enable hostkeys unit testsDamien Miller
2015-02-16check string/memory compare arguments aren't NULLDamien Miller
2015-02-16unit tests for hostfile.c code, just hostkeys_foreach so farDamien Miller
2015-02-16clean up post_dt() validation function;Ingo Schwarze
improved diagnostics, minus six lines of code
2015-02-16The wrong test was marked SKIP_GROFF.Ingo Schwarze
2015-02-16Add more error checking and free resources in bytestringtest.Doug Hogan
2015-02-15Fix various memory leaks by not exiting so abruptly from failed tests.Miod Vallat
2015-02-15Remove ancient gcc workaround on mips.Miod Vallat
2015-02-15Memory leak. Coverity CID 78865Miod Vallat
2015-02-15Wrong logic; Coverity CID 78894Miod Vallat
2015-02-14test server rekey limitMarkus Friedl
2015-02-14Tests that syslogd uses the expected TLS version.Alexander Bluhm
2015-02-13Adapt the maxunix test, the syslogd -a error semantic has changed.Alexander Bluhm
Increase timeouts and remove races, so that the syslogd tests pass on my sparc64 machine.
2015-02-12Make syslogd tests more reliable. Increase the allowed range ofAlexander Bluhm
lost log messages. Improve the synchronisation of client and server.
2015-02-12After almost five years and 92 revisions, mdoc_macro.c rev. 1.139Ingo Schwarze
finally fixed the four issues explained in the mdoc_macro.c rev. 1.47 commit message.
2015-02-12Do not confuse .Bl -column lists that just broken another blockIngo Schwarze
with newly opened .Bl -column lists; fixing an assertion failure jsg@ found with afl: test case #481, Bl It Bl -column It Bd El text text El
2015-02-12Delete the mdoc_node.pending pointer and the function calculatingIngo Schwarze
it, make_pending(), which was the most difficult function of the whole mdoc(7) parser. After almost five years of maintaining this hellhole, i just noticed the pointer isn't needed after all. Blocks are always rewound in the reverse order they were opened; that even holds for broken blocks. Consequently, it is sufficient to just mark broken blogs with the flag MDOC_BROKEN and breaking blocks with the flag MDOC_ENDED. When rewinding, instead of iterating the pending pointers, just iterate from each broken block to its parents, rewinding all that are MDOC_ENDED and stopping after processing the first ancestor that it not MDOC_BROKEN. For ENDBODY markers, use the mdoc_node.body pointer in place of the former mdoc_node.pending. This also fixes an assertion failure found by jsg@ with afl, test case #467 (Bo Bl It Bd Bc It), where (surprise surprise) the pending pointer got corrupted. Improved functionality, minus one function, minus one struct field, minus 50 lines of code.
2015-02-11Make syslogd tests more reliable. Allow a range of certain logAlexander Bluhm
messages, in case some got lost. Slow down client when sending multiple log messages. Sort patterns when checking log files. TLS error messages have changed, adapt tests.
2015-02-11Make syslogd test more reliable. Use Time::HiRes to sleep .01Alexander Bluhm
seconds in the write_lines() loop. This slows down the client, so all messages reach syslogd and flood its buffers. Increase the timeout to wait until all buffers are full. Use this code in all TCP/TLS buffer and memory overflow tests.
2015-02-11do not access a NULL pointer if an .Eo block lacks a tail;Ingo Schwarze
found by jsg@ with afl, test case #16
2015-02-11explicit blocks close out .Nd; fixing data structure corruptionIngo Schwarze
eventually leading to NULL pointer access; found by jsg@ with afl, text case #455.
2015-02-11Do not rely upon malloc(0) not returning NULL. Not all malloc implementationsMiod Vallat
have this property. Instead, skip the malloc and memcmp if their size is zero. Per bcook@ request in order to run on AIX
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