#
1bfc40e9 |
| 17-Apr-2017 |
otto <otto@openbsd.org> |
whitespace fixes
|
#
b3570ff1 |
| 13-Apr-2017 |
otto <otto@openbsd.org> |
allow clearing less than allocated and document freezero(3) better
|
#
c0e0c2a5 |
| 10-Apr-2017 |
otto <otto@openbsd.org> |
Introducing freezero(3) a version of free that guarantees the process no longer has access to the content of a memmory object. It does this by either clearing (if the object memory remains cached) or
Introducing freezero(3) a version of free that guarantees the process 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@
show more ...
|
#
8104fd63 |
| 06-Apr-2017 |
otto <otto@openbsd.org> |
first print size in meta-data then supplied arg size when an inconsistency is detected wrt recallocarray()
|
#
77328f45 |
| 28-Mar-2017 |
otto <otto@openbsd.org> |
small cleanup & optimization; ok deraadt@ millert@
|
#
d63d0095 |
| 24-Mar-2017 |
otto <otto@openbsd.org> |
add a helper function to print all pools #ifdef MALLOC_STATS from David CARLIER
|
#
e11b48b4 |
| 24-Mar-2017 |
otto <otto@openbsd.org> |
move recallocarray to malloc.c and - use internal meta-data to do more consistency checking (especially with option C) - use cheap free if possible ok deraadt@
|
#
7964fb61 |
| 15-Feb-2017 |
jsg <jsg@openbsd.org> |
Add a NULL test to wrterror() to avoid a NULL deref when called from a free() error path.
ok otto@
|
#
91854533 |
| 02-Feb-2017 |
otto <otto@openbsd.org> |
fix a comment and rm some dead code as a result of the previous diff
|
#
f2ca88bc |
| 01-Feb-2017 |
otto <otto@openbsd.org> |
Let realloc handle and produce moved pointers for allocations between half a page and a page. ok jmatthew@ tb@
|
#
9ff6b79d |
| 21-Jan-2017 |
otto <otto@openbsd.org> |
1. When shrinking a chunk allocation, compare the size of the current allocation to the size of the new allocation (instead of the requested size). 2. Previously realloc takes the easy way and always
1. When shrinking a chunk allocation, compare the size of the current 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.
show more ...
|
#
7d695642 |
| 04-Nov-2016 |
otto <otto@openbsd.org> |
MALLOC_STATS tweaks, by default not compiled in
|
#
0eeb1d36 |
| 03-Nov-2016 |
otto <otto@openbsd.org> |
small tweak to also check canaries if F is in effect
|
#
2fc4bcfc |
| 31-Oct-2016 |
otto <otto@openbsd.org> |
remove some old option letters and also make P non-settable. It has been the default for ages, and I see no valid reason to be able to disable it. ok natano@
|
#
141c357c |
| 28-Oct-2016 |
otto <otto@openbsd.org> |
Pages in the malloc cache are either reused quickly or unmapped 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
Pages in the malloc cache are either reused quickly or unmapped 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@
show more ...
|
#
c8d4e9c8 |
| 22-Oct-2016 |
otto <otto@openbsd.org> |
- fix MALLOC_STATS compile - redundant cast is redundant
|
#
ae2cd8c7 |
| 21-Oct-2016 |
otto <otto@openbsd.org> |
fix some void * arithmetic by casting
|
#
2e0f4c28 |
| 21-Oct-2016 |
otto <otto@openbsd.org> |
and recommit with fixed GC
|
#
03dbf359 |
| 20-Oct-2016 |
otto <otto@openbsd.org> |
backout for now; flag combination GC is not ok
|
#
5403ccd0 |
| 20-Oct-2016 |
otto <otto@openbsd.org> |
Also place canaries in > page sized objects (if C is in effect); ok tb@
|
#
e159a972 |
| 15-Oct-2016 |
guenther <guenther@openbsd.org> |
Wrap _malloc_init() so internal calls go directly
prodded by otto@ ok kettenis@ otto@
|
#
dc228574 |
| 14-Oct-2016 |
otto <otto@openbsd.org> |
0xd0 -> 0xdb; ok deraadt@ millert@ tedu@
|
#
919d9b85 |
| 12-Oct-2016 |
otto <otto@openbsd.org> |
optimize canary code a bit by storing offset of sizes table instead of recomputing it all the time
|
#
0cb7d3a8 |
| 07-Oct-2016 |
otto <otto@openbsd.org> |
stray tab
|
#
8a1980de |
| 07-Oct-2016 |
otto <otto@openbsd.org> |
Beter implementation of chunk canaries: store size in chunk meta data instead of chunk itself; does not change actual allocated size; ok tedu@
|