summaryrefslogtreecommitdiff
path: root/regress
AgeCommit message (Collapse)Author
2014-12-08Add some more makefiles that often cause a crash.Jonathan Gray
Found with the afl fuzzer.
2014-12-07remove duplicate initialization of .sid_ctx in testBrent Cook
2014-12-07Allow specific libtls hostname validation errors to propagate.Brent Cook
Remove direct calls to printf from the tls_check_hostname() path. This allows NUL byte error messages to bubble up to the caller, to be logged in a program-appropriate way. It also removes non-portable calls to getprogname(). ok jsing@
2014-12-07Add a test which would previously often cause make to crash when runJonathan Gray
with malloc.conf J/Junk. This problem was fixed by espie in targequiv.c rev 1.6. Crash found with the afl fuzzer.
2014-12-07Add a test for redefining a macro name in the expansion ofJonathan Gray
the macro with the same name. This often causes m4 to crash with malloc.conf F/Freeguard though not reliably. Crash found with the afl fuzzer.
2014-12-06The -ssl2 flag does nothing - remove the flag and any tests that wereJoel Sing
using it.
2014-12-04add tests for new client RevokedHostKeys option;Damien Miller
refactor to make it a bit more readable
2014-12-04fix handling of roff requests having a default scale other than "n",Ingo Schwarze
in particular .sp which uses "v", when the scale is not specified; cures groff-mandoc differences in about a dozen Xenocara manuals
2014-12-03Allow overriding the path to the testssl and openssl binaries.Brent Cook
This is needed by the portable tree to point directly to the newly-built binaries when running unit tests. discussed with jsing@ and others
2014-12-03Fill the buffer with 'z' instead of 'a' since 'a' is part of theTodd C. Miller
string we are testing. Add tests to verify that we get SIGSEGV when passed a NULL src or dst. It is better to crash than for an implementation to check for NULL and try to recover.
2014-12-03test backslash handling because it was on my todo list;Ingo Schwarze
fortunately, it already seems to work
2014-12-02Add simple strlcpy regressTodd C. Miller
2014-12-02Add simple strlcat regressTodd C. Miller
2014-12-02Add strnlen to SUBDIRS so we actually run its tests.Todd C. Miller
2014-12-02Fix the implementation and documentation of \c (continue text input line).Ingo Schwarze
In particular, make it work in no-fill mode, too. Reminded by Carsten dot Kunze at arcor dot de (Heirloom roff).
2014-12-01run script with ${SHELL}Theo de Raadt
2014-11-30Multiple fixes with respect to .Pf:Ingo Schwarze
* The first argument of .Pf is not parsed. * Normal delimiter handling does not apply to the first argument of .Pf. * Warn if nothing follows a prefix (inspired by groff_mdoc(7)). * In that case, do not suppress spacing.
2014-11-28Drop useless architecture table. Validating architecture namesIngo Schwarze
is a job for makewhatis(8)/mandoc.db(5), not for the parser. Removes 150 lines from source files and 4k (1%) from the binary. Bloat found by deraadt@.
2014-11-28Remove bulky, irrelevant library description string tablesIngo Schwarze
not used by a single manual in OpenBSD and just print library names; will remain in the portable version for use by FreeBSD and NetBSD. Removes 150 lines from source tree and 16 Kilobytes (4%) from binary. Bloat found by deraadt@.
2014-11-27Downgrade .Bd -file from FATAL to ERROR.Ingo Schwarze
Since this was the last remaining FATAL error in this area, this change will allow major simplifications in the mdoc(7) parser.
2014-11-27Multiple fixes with respect to .Eo:Ingo Schwarze
1. Correctly parse stray .Ec without preceding .Eo, avoiding an assertion violation found by jsg@ with afl. 2. Correctly parse .Ec arguments when breaking another block. 3. Correct spacing around closing delimiter when breaking another block. 4. Sync some related formatting control from -Tascii to -Thtml.
2014-11-27Fix the obsolete .Db (toggle debug mode) macro to ignore its argumentsIngo Schwarze
and not trigger an assertion when there is more than one argument; the latter found by jsg@ with afl.
2014-11-26The .Sm macro accepts at most one argument;Ingo Schwarze
fixing an assertion failure found by jsg@ with afl.
2014-11-26comment in Makefile, small tweak in -l testOtto Moerbeek
2014-11-26Add 3 regression tests for "route change" dealing with -ifp, -ifa andMartin Pieuchot
-mtu. Triggered by a report from Florian Riehm on tech@. Note that two of these tests are using IPv6 addresses and expose another bug with ::1. I'll deal with this afterward unless someone else(tm) fixes it.
2014-11-26prefer memcmp to bcmp.Brent Cook
ok tedu@ miod@ deraadt@
2014-11-25Fix test.Daniel Dickman
ok bluhm@
2014-11-25don't fail, even if running as root.Daniel Dickman
idea from and ok ingo@
2014-11-25Also cover other diff formats besides unified ones.Tobias Stoeckmann
ok otto
2014-11-25Do not access a NULL pointer when a section has no body,Ingo Schwarze
which can for example happen for .Sh Xo .Sh without .Xc. Crash found by jsg@ with afl.
2014-11-24add a (currently crashing) test case by Sebastien MarieOtto Moerbeek
2014-11-24Kill old crap that is unbelievably slow and produces hundreds of falseIngo Schwarze
positives. Fixing it is not worth the hassle; if we want something like this, it ought to be done in the context of makewhatis(8) and mandoc.db(5). As it stands, its only effect is to discourage people from running our regression suite, which is bad. I got a report from daniel@ that part of it even crashes.
2014-11-24forgot to add this file; noticed by daniel@Ingo Schwarze
2014-11-23Add regress for atexit() vs DSO unloading and start on a similar testPhilip Guenther
for pthread_atfork()
2014-11-22using /dev/random is okTheo de Raadt
2014-11-21We repeatedly observed assertion crashes in the low-level terminalIngo Schwarze
output handler because the high level terminal formatters could be tricked into setting the left margin further to the right than the right margin. Today, jsg@ found more of these with afl. Change the internal interface between both levels, aiming for simplicity and robustness of the code. Treat both margins as *independent* settings: Now, termp.offset is the requested left margin, and termp.rmargin is the available space. Let the lower level cope with that case of insufficient space. Obviously, high level code that does centering or flush right still has to do careful checks, so i did a full audit of margin settings in the terminal formatters. Fixes crashes caused by excessively long title or date strings in the man(7) footer, operating system or date strings in the mdoc(7) footer, volume strings in the man(7) or mdoc(7) header, and a few cases related to some non-prologue macros.
2014-11-20fix things post signature, as noticed by various peopleMarc Espie
2014-11-20Fix two minibugs reported by Thomas Klausner <wiz at NetBSD>:Ingo Schwarze
1. The first argument of .Fn is not supposed to be parsed. 2. The .Fn macro is not supposed to reopen its scope after punctuation.
2014-11-19Let .Ao and .Aq render as "<>" after .An and as "\(la\(ra" elsewhere,Ingo Schwarze
just like groff; minibug noticed by bentley@.
2014-11-19do not need an ovbcopy replacement anymoreTheo de Raadt
2011-12-04test some simple macros; written while working on -TmanIngo Schwarze
2014-11-19Nuke yet more obvious #include duplications.Kenneth R Westerback
ok deraadt@
2014-11-19Escape sequences terminate high-level macro names, and when doing so,Ingo Schwarze
they are ignored, just in the same way as for request names and for low-level macro names. This also cures a warning in the pod2man(1) preamble.
2014-11-18GOST regression tests; from Dmitry Eremin-SolenikovMiod Vallat
2014-11-18Nuke some obvious #include duplications.Kenneth R Westerback
ok espie@ deraadt@ millert@ tedu@
2014-11-17Multiple fixes with respect to in-line macros:Ingo Schwarze
* .No selects the default font; relevant e.g. in .Bf blocks * no need to force empty .Li elements * closing delimiters as leading macro arguments do not suppress space * opening delimiters at the end of a macro line do not suppress space * correctly handle delimiter spacing in -Tman As a side effect, these fixes let mandoc warn about empty .No macros as requested by bentley@.
2014-11-17check spacing and behaviour in the SEE ALSO section as wellIngo Schwarze
2014-11-17fix KRL generation when multiple CAs are in useDamien Miller
We would generate an invalid KRL when revoking certs by serial number for multiple CA keys due to a section being written out twice. Also extend the regress test to catch this case by having it produce a multi-CA KRL. Reported by peter AT pean.org
2014-11-16When a line (in the sense of term_flushln()) contains white space only,Ingo Schwarze
the `vbl' variable includes the left margin, but `vis' does not. Prevent a `vis' underflow that caused a bogus blank line. Bug reported by Carsten Kunze, found in less(1): .Bl -tag ... .It " "
2014-11-16Delete a test which required behavior not defined by the specPhilip Guenther
(behavior of sigwait() when signal not blocked in all threads)