summaryrefslogtreecommitdiff
path: root/regress
AgeCommit message (Collapse)Author
2015-01-08adjust for sshkey_load_file() API changeDamien Miller
2015-01-07Bugfix: When the invocation of a user-defined macro follows a roffIngo Schwarze
conditional request on the same input line, don't skip the first few bytes of its content.
2015-01-05Fix relayd http regression tests. If http response is not ok, theAlexander Bluhm
response's content length may be an unexpected value as an error page is shown.
2015-01-05Add SORTPROG environment variable to test a different sort program.Todd C. Miller
Replace -y with -S (supported by GNU and FreeBSD sorts).
2015-01-05Make syslogd TCP tests more reliable. Increase timeouts, shutdownAlexander Bluhm
write to trigger connection close, allow errors EPIPE or ECONNRESET.
2015-01-01Test that syslogd sending over TCP does not leak a file descriptorAlexander Bluhm
when it receives a SIGHUP.
2015-01-01Fix a read buffer overrun triggered by trailing \s- or trailing \s+Ingo Schwarze
without the required subsequent argument; found by jsg@ with afl.
2015-01-01Don't dereference NULL pointers when formatting missing denominators,Ingo Schwarze
subscripts, superscripts, or "from" or "to" arguments. Found by jsg@ with afl.
2015-01-01activate eqn(7) testsIngo Schwarze
2015-01-01eqn(7) testsIngo Schwarze
2015-01-01The roff(7) language is Turing-complete, even the part implementedIngo Schwarze
in mandoc(1). So practice some recursive programming to make sure it doesn't get broken.
2014-12-31Adapt and add regression tests for sending syslog messages over TCP.Alexander Bluhm
2014-12-31Create CA and certificates for TLS tests consistently. BetterAlexander Bluhm
logging of SSL errors. Do not import unneeded Socket constants.
2014-12-30Test the weird construct of a user-defined macro starting (but notIngo Schwarze
ending!) the definition of another user defined macro. Mandoc already handles this correctly, make sure it won't get broken.
2014-12-30let the "make groff" maintainer target show groff warningsIngo Schwarze
2014-12-28Add regress tests for default option handling.Joel Sing
2014-12-28Add regress tests for multiple argument callback functions.Joel Sing
2014-12-28Add option parsing regress tests with end of options handling.Joel Sing
2014-12-28Add regress tests for option parsing with multiple unnamed arguments.Joel Sing
2014-12-28Update regress to match change in unnamed argument handling.Joel Sing
2014-12-28Update options regress to match option function pointer change.Joel Sing
2014-12-28Add regression tests where OpenBSD syslogd is sending messages toAlexander Bluhm
rsyslogd from ports. If the rsyslog package is installed, rsyslogd is used as drain to test interoperability. This will be especially useful for syslog via TCP and TLS.
2014-12-28Provide initial regress tests for the complex option parsing that is neededJoel Sing
for openssl(1), which is also variable in behaviour between applications (and currently inconsistent).
2014-12-24Support negative indentations for mdoc(7) displays and lists.Ingo Schwarze
Not exactly recommended for use, rather for groff compatibility. While here, introduce similar SHRT_MAX limits as in man(7), fixing a few cases of infinite output found by jsg@ with afl.
2014-12-24For .RS, we need to save the information how much we actually indentedIngo Schwarze
because negative indents can get truncated, in which case we no longer know how to restore the original indent at the end of the block. This also solves another case of effectively infinite output found by jsg@ with afl, triggered by very large negative indents.
2014-12-24Prevent unsigned integer underflow when a number is too wideIngo Schwarze
for a table cell with an "nz" layout specification, causing essentially infinite output as found by jsg@ with afl.
2014-12-23support negative horizontal widths in man(7);Ingo Schwarze
minus twenty lines of code in spite of enhanced functionality
2014-12-23some scaling unit fixes:Ingo Schwarze
- .sp with an invalid argument is .sp 1v, not .sp 0v - in man(1), trailing garbage doesn't make scaling units invalid
2014-12-23even if the second argument to .IP is invalid, don't print itIngo Schwarze
2014-12-23Fix vertical scaling. Obviously, nobody ever had a serious look at this.Ingo Schwarze
Basic units, centimeters, points, ens, ems, and the rounding algorithm were all wrong, only inches, pica, and the default vertical span worked.
2014-12-23correctly handle scaling units after .PDIngo Schwarze
2014-12-22The code already pays attention not to close the same block twice.Ingo Schwarze
Similarly, avoid having the same block break two other blocks. In some situations, this could lead to an endless loop in rew_sub() found by jsg@ with afl. Minimal example: .Po Ao Pc Bo Pc Ac Bc
2014-12-22regression test for multiple required pubkey authentication;Damien Miller
ok markus@
2014-12-22make this slightly easier to diff against portableDamien Miller
2014-12-22adjust for new SHA256 key fingerprints and slightly-different MD5 hexDamien Miller
fingerprint format
2014-12-22poll changes to netcat (usr.bin/netcat.c r1.125) broke this test;Damien Miller
fix it by ensuring more stdio fds are sent to devnull
2014-12-20Fix two issues causing a class of assertion failures found by jsg@ with afl.Ingo Schwarze
1) rew_sub(): Make sure REWIND_MORE is acted upon even when followed by REWIND_NONE. This prevents .It from ending up inside other children of .Bl. 2) blk_exp_close(): Only allow extension of .Bl when it has at least one .It. Otherwise, a broken child block could be moved in front of the .Bl, effectively resulting in a .Bl that ended before it began.
2014-12-19Use a simpler expression to check the ether type in scapy. ThisAlexander Bluhm
makes the fragment tests work on FreeBSD. From Ilya Bakulin.
2014-12-19Rewrite the low-level UTF-8 parser from scratch.Ingo Schwarze
It accepted invalid byte sequences like 0xc080-c1bf, 0xe08080-e09fbf, 0xeda080-edbfbf, and 0xf0808080-f08fbfbf, produced valid roff Unicode escape sequences from them, and the algorithm contained strong defenses against any attempt to fix it. This cures an assertion failure in the terminal formatter caused by sneaking in ASCII 0x08 (backspace) by "encoding" it as an (invalid) multibyte UTF-8 sequence, found by jsg@ with afl. As a bonus, the new algorithm also reduces the code in the function by about 20%.
2014-12-18Update test - the hashkey log message disappeared.Reyk Floeter
2014-12-18Don't let .Ta creep into an already-closed list; same as for .It.Ingo Schwarze
Fixes an assertion found by jsg@ with afl.
2014-12-18Only keep leading .Sm inside a list when it immediately precedesIngo Schwarze
the first .It. Otherwise, move it out together with whatever follows. Fixing an assertion failure found by jsg@ with afl.
2014-12-18When the head of a list item is extended with a partial explicitIngo Schwarze
macro (for example .Xo) and never closed again, the item ends up without a body block. This can even happen for list types that usually don't have heads in the first place. So even in this case, check for the existence of the body before accessing it. NULL pointer access found by jsg@ with afl.
2014-12-18Don't let the modulo operator divide by zero.Ingo Schwarze
Found by jsg@ with afl.
2014-12-18The code is already careful to not add items to lists that wereIngo Schwarze
already closed. In this respect, also consider lists closed that have broken another block, their closure pending until the end of the broken block. This avoids syntax tree corruption leading to a NULL pointer access found by jsg@ with afl.
2014-12-17increase to 2048 to prevent failure. ok deraadt@Daniel Dickman
2014-12-16Ignore mdoc(7) and man(7) macros inside tbl(7) code because theyIngo Schwarze
would abort the table in an unclean way, causing assertion failures found by jsg@.
2014-12-16correct -Tutf8 and -Thtml rendering of \(~=Ingo Schwarze
and change the name of \(-~ to \(|= to agree with groff; difference found by Carsten dot Kunze at arcor dot de
2014-12-16Explicit block closure macros clobber next-line block head scope,Ingo Schwarze
just like explicit block macros themselves. Fixing an assertion failure jsg@ found with afl.
2014-12-16When a numerical condition errors out after consuming at least oneIngo Schwarze
character of input, treat it as false, do not retry it as a string comparison condition. This also fixes a read buffer overrun that happened when the numerical condition advanced to the end of the input line before erroring out, found by jsg@ with afl.