| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
first pledge promises, so nc exited with EPERM. To fix this, merge the
pledge of the Pflag && usetls case into the first pledge block. This
allows us to get rid of the second pledge block and thus to simplify the
logic a bit. While there, add a missing blank to an error string.
Joint effort by the #openbsd-daily code reading group, problem found and
initial patch by <rain1 openmailbox org>.
ok awolk
|
| |
|
| |
|
|
|
|
| |
insertion sort (when the number of elements is < 7).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
has many small functions without significant local storage, therefore
less tail protection from -fstack-protector-strong to prevent their use
as ROP gadgets. It is used in security contexts. Also many functions
dribble pointers onto the stack, allowing discovery of gadgets via the
fixed relative addresses, so let's randomly bias those.
ok tedu jsing
The rc script will soon need a strategy for skipping this step on
machines with poor IO performance. Or maybe do it less often? However,
I don't see many more libraries we'll do this with, these are the two
most important ones.
|
| |
|
|
|
|
|
|
|
|
| |
missing test case, reassigns two of the labels and removes a test case
that was from an earlier draft.
Inconsistency noted by Steven Roberts <fenderq at gmail dot com>, some time
ago...
|
|
|
|
|
|
| |
Reported by Robert Swiecki, who found the issue using honggfuzz.
ok bcook@
|
|
|
|
| |
OK florian@
|
|
|
|
| |
From Kyle J. McKay <mackyle at gmail dot com>
|
|
|
|
|
| |
Previously they would be swapped a byte at a time when sizeof(int)
!= sizeof(long). Idea from FreeBSD.
|
| |
|
|
|
|
|
| |
Adversary for Quicksort", just include the code to generate them.
Also allow the number of elements to be specified on the command line.
|
|
|
|
| |
ok millert@
|
|
|
|
| |
exceeds 2 lg N and add a reference to the introsort paper.
|
|
|
|
|
|
| |
when the recursion depth reaches 2*lg(n + 1). This avoids quicksort's
quadratic behavior for pathological input without appreciably
changing the average run time.
|
|
|
|
|
| |
by McIlroy's "A Killer Adversary for Quicksort". This results in
quadratic behavior and the test aborts before completion.
|
| |
|
|
|
|
| |
parameters.
|
|
|
|
| |
Selection Algorithms" by David R Musser.
|
|
|
|
| |
be used in qsort.c in a later commit.
|
|
|
|
|
|
|
| |
qsort()". This causes quadratic behavior with the 4.4BSD qsort's
"switch to insertion sort" optimization when the input appears to
be mostly sorted. That optimization was removed in qsort.c r1.12
but it is worth having in the regress test too.
|
|
|
|
|
|
|
|
| |
side of the array being partitioned to save on stack space. Greater
savings can be gained by choosing recursion for the smaller side
of the partition and eliminating recursion for the larger side.
This also results in a small but measurable performance gain.
OK otto@ schwarze@
|
|
|
|
| |
wrap), make it a flag instead. Pointed out by schwarze@
|
| |
|
|
|
|
|
|
| |
SSL_get_peer_certificate() increases the ref count whereas extra_certs
do not because SSL_get_peer_cert_chain() won't increase ref counts.
OK beck@
|
|
|
|
| |
from "fenderq" on freenode via tj
|
|
|
|
| |
From "fenderq" on freenode via tj@
|
|
|
|
|
| |
- document posix_memalign() does not play nice with reacallocarray(3) and
freezero(3)
|
|
|
|
|
|
|
|
|
|
| |
sizeof(struct) not sizeof(pointer).
otto@ points out that on OpenBSD currently freezero() would have still
zeroed the entire allocation, but this is not documented behaviour and
may change in future.
ok tom@
|
|
|
|
|
|
| |
number of packets. This allows to send a UDP request, receive a
reply and check the result on the command line.
input jmc@; OK millert@
|
|
|
|
| |
ok jsing@
|
|
|
|
| |
Fix from Jonas 'Sortie' Termansen <sortie@maxsi.org>
|
|
|
|
| |
it returns "len", which is a size_t value, as an int...
|
| |
|
|
|
|
|
|
| |
keep these around.
ok beck@
|
|
|
|
|
|
|
|
| |
to the CBB, then doubling, start with an initial size of 64 bytes. Almost
all uses will exceed this size and we avoid multiple small recallocarray()
calls during the initial usage.
ok beck@
|
|
|
|
|
|
|
| |
while we are at it, convert SSLerror to use a function
internally, so that we may later allocate the handshake
structure and check for it
ok jsing@
|
|
|
|
|
|
| |
failed builds with different compilers.
ok jsing@
|
|
|
|
| |
complete a TLS handshake.
|
|
|
|
|
| |
has not yet been connected. We expect this to fail, but it should fail
gracefully.
|
|
|
|
| |
already completed a TLS handshake.
|
|
|
|
| |
already completed a TLS handshake.
|
|
|
|
|
| |
completed a TLS handshake. This should return a failure, but currently
succeeds (hence the regress currently fails).
|
| |
|
|
|
|
| |
so that it can be reused.
|
|
|
|
| |
ok jsing@, gcc@, regress@
|
|
|
|
| |
easier for new tests to be added.
|
| |
|
|
|
|
|
|
| |
potentially dealing with key material. Also switch a calloc to malloc,
since we immediately copy the same amount of data to the newly allocated
buffer.
|