| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
| |
From "fenderq" on freenode via tj@
|
|
|
|
|
| |
- document posix_memalign() does not play nice with reacallocarray(3) and
freezero(3)
|
| |
|
|
|
|
| |
negative. Quiets a warning from clang. OK bluhm@
|
| |
|
|
|
|
|
|
|
|
| |
size if canaries are enabled. In that case we have the exact requested
size of the allocation. But we can at least check the given size
against the chunk size if C is not enabled. Plus add some braces
so my brain doesn't have to scan for dangling else problems when I
see this code.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This gives fast access to the address on systems that implement
the UserLocal register. TCB caching is still used when running
in the single-threaded mode in order not to penalize old systems.
The kernel counterpart of this change must be in place before
using this diff!
With guenther@
|
|
|
|
| |
and ok jeremy@
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
version uses the two-way string matching algorithm and is faster
than the old implementation. With this change, ports that check
for strstr having linear complexity time strstr will no longer
replace the libc strstr with a private version.
OK deraadt@ espie@
|
| |
|
|
|
|
|
|
| |
no longer has access to the content of a memmory object. It does
this by either clearing (if the object memory remains cached) or
by calling munmap(2). ok millert@, deraadt@, guenther@
|
|
|
|
| |
ok deraadt@
|
|
|
|
| |
detected wrt recallocarray()
|
| |
|
| |
|
|
|
|
| |
ok jmc@ deraadt@
|
|
|
|
| |
from David CARLIER
|
|
|
|
| |
never occur
|
|
|
|
|
|
|
| |
- use internal meta-data to do more consistency checking (especially with
option C)
- use cheap free if possible
ok deraadt@
|
| |
|
|
|
|
|
| |
make the behaviour -> use case connection.
help from jmc and jsing
|
|
|
|
| |
help and ok from tom@ and deraadt@
|
|
|
|
|
| |
with the added feature that released memory is cleared. Much input from various
developers. ok deraadt@ tom@
|
| |
|
|
|
|
|
| |
crash when given a large hex number as part of the dotted quad.
OK deraadt@ jsg@
|
|
|
|
|
|
|
|
|
|
|
|
| |
RES_USE_DNSSEC is implemented by setting the DNSSEC DO bit in outgoing
queries. The resolver is then supposed to set the AD bit in the reply
if it managed to validate the answer through DNSSEC. Useful when the
application doesn't implement validation internally. This scheme
assumes that the validating resolver is trusted and that the
communication channel between the validating resolver and and the client
is secure.
ok eric@ gilles@
|
|
|
|
|
|
|
| |
EDNS allows for various DNS extensions, among which UDP DNS packets size
bigger than 512 bytes. The default is still to not advertize anything.
ok eric@
|
|
|
|
|
|
| |
free() error path.
ok otto@
|
|
|
|
|
| |
a page. This is not required by any standard and other malloc
implementation do not document (or implement) this. ok deraadt@
|
| |
|
|
|
|
| |
half a page and a page. ok jmatthew@ tb@
|
|
|
|
|
|
|
| |
diff from kirill miazine
while here, bump all the no op texts to one standard blurb;
help/ok jca
|
|
|
|
|
|
|
|
|
|
| |
allocation to the size of the new allocation (instead of the requested size).
2. Previously realloc takes the easy way and always reallocates if C is
active. This commit fixes by carefully updating the recorded requested
size in all cases, and writing the canary bytes in the proper location
after reallocating.
3. Introduce defines to test if MALLOC_MOVE should be done and to
compute the new value.
|
|
|
|
|
| |
This is a remnant from the original 4.4BSD code that had 'a' as
void * in the function args. No binary change. OK bluhm@
|
|
|
|
|
|
| |
adding appropriate #ifdef's around declarations.
ok millert@ (with a tweak I will commit separately)
|
| |
|
|
|
|
| |
From FreeBSD (glebius)
|
|
|
|
| |
From Henri Kemppainen
|
|
|
|
|
|
|
| |
A specially crafted struct sockaddr_dl argument can trigger a stack
overflow of a static buffer in libc. An attacker may be able to
use this to write to arbitrary locations in the data segment.
From FreeBSD (glebius); OK deraadt@ mestre@
|
|
|
|
|
|
| |
issue reported by scott cheloha
ok otto
|
| |
|
| |
|
|
|
|
|
| |
been the default for ages, and I see no valid reason to be able to
disable it. ok natano@
|
|
|
|
|
|
| |
quickly. In both cases it does not make sense to set hints on them.
So remove that option, which is just a remainder of old times when
malloc used to hold on to pages. ok stefan@
|