summaryrefslogtreecommitdiff
path: root/regress
AgeCommit message (Collapse)Author
2022-04-29Cleanup makefile so that tests are similar. Link pair to build.Alexander Bluhm
2022-04-29Link pf_opts to the tree.Alexander Bluhm
2022-04-29Check that IGMP and ICMP6 MLD packets with router alert option pass.Alexander Bluhm
Other combinations with IP options are still blocked.
2022-04-28Use $(( )) arithmetic expansion instead of `expr something`Jeremie Courreges-Anglas
No need to use an external tool when the shell can handle this basic task.
2022-04-28Add tests that decode sequences into ASN.1 strings.Joel Sing
Test decoding of sequences with length and indefinite length into an ASN.1 string - in this case the ASN.1 is not decoded, rather the octets are stored directly as the content of the string. This exercises a specific path through the ASN.1 decoder. (you know asn1complex is living up to its name when you have to import openssl/asn1t.h directly...)
2022-04-28The syntax of the roff(7) .mc request is quite specialIngo Schwarze
and the roff_onearg() parsing function is too generic, so provide a dedicated parsing function instead. This fixes an assertion failure when an \o escape sequence is passed as the argument; the bug was found by tb@ using afl(1). It also makes mandoc output more similar to groff in various cases.
2022-04-28Environment variables must be passed through env(1) while using sudo.Anton Lindqvist
ok bluhm@
2022-04-28oops, fix wrong .TH nameIngo Schwarze
2022-04-27Send packets with IPv4 option or IPv6 extension header over loopbackAlexander Bluhm
interface and check which of the packets are dropped by pf. The bad packets appear in pflog0 tcpdump. This regress is testing rules with and without allow-opts.
2022-04-28Element next-line scopes may nest, so man_breakscope() may have toIngo Schwarze
break multiple element next-line scopes at the same time, similar to what man_descope() already does for unconditional rewinding. This fixes an assertion failure that tb@ found with afl(1), caused by .SH .I .I .BI and similar sequences of macros without arguments.
2022-04-28Get rid of set but not used compiler warning.Anton Lindqvist
2022-04-27The timeout in ospf6d regress seems to be too short. Increase itAlexander Bluhm
to make the test more stable. debugged by Anton Borowka
2022-04-27Send packets with IPv4 option or IPv6 extension header over loopbackAlexander Bluhm
interface and check which of the packets are dropped by pf. The bad packets appear in pflog0 tcpdump. This regress is testing rules with and without allow-opts.
2022-04-27Add test case capable of triggering the recently fixed use after free,Anton Lindqvist
based on the syzkaller reproducer.
2022-04-27Ensure we clear the error stack before running tests that print errors.Joel Sing
2022-04-27Enable ASN.1 INTEGER tests with invalid lengths/encodings.Joel Sing
2022-04-27The .AT, .DT, and .UC macros are allowed inside next-line scopeIngo Schwarze
and never produce output at the place of their invocation. Minibugs found while investigating unrelated afl(1) reports from tb@.
2022-04-27add a test case for the Imath update, along with notes about what'sMarc Espie
exactly going on, if one day we trust wantlib enough to be accurate (hello libsets)
2022-04-27Fix three bugs regarding the interaction of \z and \h:Ingo Schwarze
1. The combination \z\h is a no-op whatever the argument may be. In the past, the \z only affected the first space character generated by the \h, which was wrong. 2. For the conbination \zX\h with a positive argument, the first space resulting from the \h is not printed but consumed by the \z. 3. For the combination \zX\h with a negative argument, application of the \z needs to be completed before the \h can be started. In the past, if this combination occurred at the beginning of an output line, the \h backed up to the beginning of the line and after that, the \z attempted to back up even further, triggering an assertion. Bugs found during an audit of assignments to termp->col that i started after the bugfix tbl_term.c rev. 1.65. The assertion triggered by bug 3 was *not* yet found by afl(1).
2022-04-26typo in example text: unsused -> unused; noticed by tb@Ingo Schwarze
2022-04-26At the end of every tbl(7) cell, clear the \z state.Ingo Schwarze
This is needed because the TERMP_MULTICOL mode is designed such that term_tbl() buffers all the cells of the table row before the normal reset logic near the end of term_flushln() can be reached. This fixes an assertion failure triggered by \z near the end of a table cell, found by tb@ using afl(1).
2022-04-26If a node is tagged explicitly, skip implicit tagging for that node.Ingo Schwarze
Apart from making sense in the first place, this fixes an assertion failure that happened when the calculated implicit tag did not match the string value of the first child of the node, Bug found by tb@ using afl(1).
2022-04-24If a .shift request has a negative argument, do not use a negative arrayIngo Schwarze
index but use 0 instead of the argument, just like groff. Warn about the invalid argument. While here, fix the column number in another warning message. Segfault reported by tb@, found with afl(1).
2022-04-23Add ASN1_INTEGER test coverage.Joel Sing
2022-04-23Fix compilation on octeon, arm64, and riscv64.mbuhl
2022-04-23Verify sizes before arithmetic operationsTobias Stoeckmann
Unsigned overflows are not a bug in C but we have to make sure that requested buffer sizes will be actually available. If not, set errno to ERANGE and return an error value. ok deraadt, millert
2022-04-22Remove some of the workarounds for the tests by inputing the right numbersOtto Moerbeek
(without impliciit conversion from int to long double). The previous commit message talked about reading numbers, but the issue (loss of precision due to too little digits) actually occurred when printing the input to be read by bc.
2022-04-22arm64 has real IEEE quads, it needs more digits when reading theOtto Moerbeek
bc results otherwise truncation and loss of precision occurs, making the test fail. Test failure on arm64 noted by anton@ and bluhmn@
2022-04-22Only run agent-ptrace.sh if gdb is available as all architectures do notAnton Lindqvist
ship with gdb.
2022-04-21In vmm regress skip all corner cases that do not support vmm. LinkAlexander Bluhm
dump_tables and vmm to the build. Adopt all makefiles to skip tests on non amd64 machines. OK dv@
2022-04-21Add missing self. From antonTheo Buehler
2022-04-21-current recognizes that a symlink was deleted and just keep going withMarc Espie
a warning and no fuss.
2022-04-21It looks like we can't completely avoid waiting for processes toDarren Tucker
exit so retrieve the pid via controlmaster and use that.
2022-04-20While I'm here, prepare regress for claudio's upcoming diffTheo Buehler
2022-04-20Fix rpki-client regress after -j -f changeTheo Buehler
2022-04-20Use ssh -f and ControlPersist to start up test forwards and ssh -O stopDarren Tucker
to shut them down intead of sleep loops. This speeds up the test by an order of magnitude.
2022-04-20Add vmm(4) regress, disabled for now. ok rob@Dave Voutila
2022-04-20register new tests, they don't pass yetMarc Espie
2022-04-20it also breaks somewhat differently when files vanish, we still needMarc Espie
a few checks
2022-04-20add a symlink test that currently fails, I want to fix it soonishMarc Espie
2022-04-20reinstate temp-error3: do an update that will force temp files to beMarc Espie
created since the contents changed
2022-04-20better error report when I botch some test writingMarc Espie
2022-04-20Simplify forward-control test. Since we no longer need to support SSH1Darren Tucker
we don't need to run shell commands on the other end of the connection and can use ssh -N instead. This also makes the test less racy.
2022-04-19Add dummy implementation for rt_timer_init(). Kernel sources areAlexander Bluhm
build for regress and need that function now.
2022-04-13To prevent infinite recursion while expanding eqn(7) definitions,Ingo Schwarze
we must not reset the recursion counter when moving beyond the end of the *previous* expansion, but we may only do so when moving beyond the rightmost position reached by *any* expansion in the current equation. This matters because definitions can nest; consider: .EQ define inner "content" define outer "inner outer" outer .EN This endless loop was found by tb@ using afl(1). Incidentally, GNU eqn(1) also performs an infinite loop in this situation and then crashes when memory runs out, but that's not an excuse for nasty behaviour of mandoc(1). While here, consistently print the expanded content even when the expansion is finally truncated. While that is not likely to help end-users, it may help authors of eqn(7) code to understand what's going on. Besides, it sends a very clear signal that something is amiss, which was easy to miss in the past unless people enabled -W error or used -T lint.
2022-04-13Do not die on an assertion if an input file contains no sectionIngo Schwarze
whatsoever and ends with a broken next-line scope. Obviously, this cannot happen in a real manual page, but mandoc(1) should not die even when fed absurd input. This bug was independently reported by both jsg@ and tb@ who both found it with afl(1).
2022-04-13Surprisingly, groff supports multiple copy mode escapes at theIngo Schwarze
beginning of an escape sequence: \, \E, \EE, \EEE, and so on all do the same outside copy mode, so let them do the same in mandoc(1), too. This fixes an assertion failure triggered by \EE*X that tb@ found with afl(1). The first E was consumed by roff_expand(), but that function failed to recognize the escape sequence as the expansion of a user-defined string and handed it over to mandoc_escape(), which consumed the second E and then died on an assertion because it is not prepared to handle user-defined strings. Fix this by letting *both* functions handly arbitrary numbers of 'E's correctly.
2022-04-12Adjust regress for x509_location() changeTheo Buehler
2022-04-11Adjust regress: test-cert now needs mft.c for rtype_from_file_extension().Theo Buehler
2022-04-10Print the strerror of the expected error. errno is not valid here sinceClaudio Jeker
bind(2) succeeded.