Age | Commit message (Collapse) | Author |
|
expanded, but not enough due to precedence error. Spotted by Thorsten Glaser.
|
|
ok guenther millert kettenis
|
|
|
|
text. OK deraadt@
|
|
|
|
grantpt() and unlockpt() using /dev/ptm. Man pages from FreeBSD.
OK kettenis@ deraadt@ beck@ ajacoutot@ naddy@
|
|
or the special value of 0.
ok deraadt@ otto@
|
|
Should make coredumps from abort() easier to debug too.
ok kurt@
|
|
unmapping of freed allocations without disabling chunk randomisation
like the "Freeguard" ('F') option does. Make security 'S' option
use 'U' and not 'F'.
Rationale: guarding with no chunk randomisation is great for debugging
use-after-free, but chunk randomisation offers better defence against
"heap feng shui" style attacks that depend on carefully constructing a
particular heap layout so we should leave this enabled when requesting
security options.
|
|
an empty name, NULL pointer, or a name containing an '=' character.
OK millert@, guenther@
|
|
|
|
in working condition anymore (assuming there would be interest in running on
it).
|
|
|
|
equal, but it is more correct)
from Michal Mazurek
|
|
Okay otto@.
Found by Michal Mazurek <akfaew at jasminek dot net>, thanks!
|
|
|
|
param.h symbol reduction.
ok guenther
|
|
Pointed out by Joachim Schipper (joachim at joachimschipper.nl)
|
|
Based on a note from Steffen Daode Nurpmeso (sdaoden at googlemail.com)
ok jmc@
|
|
scanning for free space if the hint isn't available.
also, on further inspection, this will prevent pmap_prefer from "improving"
our hint.
|
|
clear out the entire requested area, not just a perfect fit. second,
use mquery to check for room to avoid getting an address we don't like
and having to send it back.
|
|
in order to span the the entire cache. second, on free use the same offset
to put things in the cache instead of always starting at zero.
ok otto
|
|
overallocating and then releasing unneeded memory pages.
ok otto
|
|
Update SYNOPSIS for setkey() to show it's in <stdlib.h>
ok jmc@, millert@
|
|
and valloc() are not in the current version, while posix_memalign() mkstemp(),
and mkdtemp() are, and setstate()'s argument has lost a bogus 'const'.
ok millert@ jmc@ espie@ kettenis@; ports build testing by naddy@
|
|
effective result. its use is NOT discouraged -- it is not
common, but when you need it, there is nothing else that will do.
|
|
with 0. Use 1 and not 0 as the first element of the state array,
similar to what glibc does. OK nicm@
|
|
into an bogus pointer error instead of a segfault.
- Document that we use the assumption that a non-MAP_FIXED mmap() with
hint 0 never returns NULL.
|
|
the last node is deleted. Instead, resolve the Coverity warning
by returning (node *)1 when you delete the root node.
based an idea from millert@. ok otto@
|
|
All facts from http://minnie.tuhs.org/cgi-bin/utree.pl, checked by sobrado@.
Feedback and ok jmc@ jmc@ (sic, Jason checked and ok'ed this twice).
|
|
space for meta data by only allocating space actually needed for
the bitmap (modulo alignment requirements). ok deraadt@
|
|
|
|
specifically, rewrite them to permit some markup in the column headers,
and use "Ta" instead of literal tabs; mandoc does not currently match groff
100%, but a mandoc fix may be some time off, and we've gone enough releases
with poorly formatting column lists.
in some cases i have rewritten the lists as -tag, where -column made
little sense.
|
|
.Bl -column header1 header2 ... <Bl flags>
mixing things up confuses mandoc, and adding flags in can screw up the list.
this hopefully just makes things a bit safer (and more consistent).
(one more bit of work left and all column lists should format how we want)
|
|
|
|
is NULL, and third-party software is starting to rely upon this.
Adapted from FreeBSD via Jona Joachim (jaj ; hcl-club , .lu), with minor
tweaks from nicm@ and yours truly.
|
|
jasper@
|
|
a section will help people looking for just the MALLOC_OPTIONS.
ok otto@ jmc@
|
|
use-after-free bugs; ok krw@ dlg@ pirofti@
|
|
|
|
no security, for consistency. use of this option is discouraged. :)
ok deraadt guenther millert
|
|
|
|
|
|
|
|
cases.
|
|
|
|
|
|
|
|
position zero, skipping a random number of free slots and then
picking the next free one. This slowed things down, especially if
the number of full slots increases.
This changes the scannning to start at a random position in the
bitmap and then taking the first available free slot, wrapping if
the end of the bitmap is reached. Of course we'll still scan more
if the bitmap becomes more full, but the extra iterations skipping
free slots and then some full slots are avoided.
The random number is derived from a global, which is incremented
by a few random bits every time a chunk is needed (with a small optimization
if only one free slot is left).
Thanks to the testers!
|
|
1UL to 1U.
|