29fd86ab37
document sized deallocation validation
2018-10-10 18:49:17 -04:00
c74fe56091
minor include style fix
2018-10-10 18:19:56 -04:00
ddcdd9423c
make the memory mapping quarantine more efficient
2018-10-09 14:13:59 -04:00
57d5ab769b
add write-after-free tests with potential reuse
2018-10-08 17:41:06 -04:00
5fa6e01929
clearer name for MREMAP_MAYMOVE threshold
2018-10-08 17:18:13 -04:00
1a10c17e8b
add quarantine for large allocations
2018-10-08 16:14:07 -04:00
cc9699f1b4
use multi-word bitmap to support up to 256 slots
2018-10-07 18:50:06 -04:00
5e2f03296e
remove old debugging code
2018-10-07 16:18:17 -04:00
fa2796a941
Makefile: add missing dependencies
2018-10-07 11:31:07 -04:00
cf07ae6007
update configuration in README
2018-10-06 15:38:09 -04:00
348f9fa557
add configuration for frequency of guard slabs
2018-10-06 15:36:03 -04:00
4ee12e64e0
configuration for guard region sizes
2018-10-06 15:17:55 -04:00
d18b05eaf4
avoid redundant checks for large realloc
2018-10-06 13:31:16 -04:00
eb7ced7781
implement in-place growth of large allocations
2018-10-06 13:24:22 -04:00
3a936295f8
Makefile: split out shared compiler flags
2018-10-05 02:45:40 -04:00
4716ff5b92
explicitly export C++ allocator overrides
...
This doesn't make any difference for GCC, but these aren't replaced
outside of the library with Clang without explicitly exporting them.
2018-10-05 02:23:49 -04:00
e6e9ac1fc9
support replacing C++ new/delete implementation
...
This adds support for sanity checks based on sized deallocation and will
reduce the overhead of calls through the C++ allocator.
2018-10-05 02:11:29 -04:00
3dc49f8f73
slightly improve sized deallocation error messages
2018-10-05 01:06:12 -04:00
dcd969ae04
use a consistent style for fixed-size int types
...
The stdint.h types don't cover 128-bit integers and the underscore makes
them ill suited to usage in function suffixes. Instead, use the common
naming style in the Linux kernel and elsewhere including the ChaCha8
implementation included here.
2018-10-04 15:17:11 -04:00
92a33182fb
port chacha.h to the code style used elsewhere
2018-10-04 04:13:28 -04:00
08a633b244
fix another typo in the README
2018-10-04 04:12:21 -04:00
ef32a4b7ea
add -pipe to CFLAGS
2018-10-04 04:03:48 -04:00
e99191d5d4
document tuning vm.max_map_count
2018-10-04 03:44:19 -04:00
d12cf324dd
add documentation on testing
2018-10-04 03:27:30 -04:00
2a31c7291b
add basic documentation on configuration
2018-10-04 03:15:55 -04:00
642eed81c0
allow using larger guards on large allocations
2018-10-04 02:58:24 -04:00
9b7691a2a7
take canaries into account for the offset test
2018-10-04 02:52:20 -04:00
71d52d981e
fix output of size class offset test
2018-10-04 02:41:01 -04:00
15e5e2d0ac
fix typo in README
2018-10-03 17:23:20 -04:00
5811bd184c
avoid unnecessary preprocessor use for canary mask
2018-10-03 17:17:20 -04:00
93fcc6a978
add simple string overflow test
2018-10-03 17:15:38 -04:00
b24569b6ca
zero leading byte of canaries
2018-10-03 17:09:57 -04:00
1fbf0e27f5
make error reporting more robust
2018-10-03 16:58:49 -04:00
6dfe33b4f1
add prefix to reported errors
2018-10-03 16:22:28 -04:00
6372fee410
use consistent macro naming convention
2018-10-03 16:00:37 -04:00
829ace403f
document free_sized API
2018-10-03 14:37:05 -04:00
c3a580727a
add MIT license
2018-10-03 13:18:51 -04:00
cf449b3df4
add sized deallocation support
2018-09-19 13:05:12 -04:00
82314f4471
make get_size_info straightforward for zero size
2018-09-11 14:51:36 -04:00
7a404ddbf2
optimize size calculation for 16 byte spaced sizes
2018-09-11 14:46:44 -04:00
2d6ad18aa4
make function naming a bit more consistent
2018-09-11 14:18:13 -04:00
684291bf6a
avoid overhead of init check for slab deallocation
2018-09-11 14:13:43 -04:00
ef098fea06
simplify init function
2018-09-11 14:12:27 -04:00
433af6d4ba
drop 128-bit keys from ChaCha implementation
2018-09-11 10:22:28 -04:00
b52d9ca831
aggressive write-after-free check is implemented
2018-09-11 05:17:22 -04:00
61684925e8
fix overly naive slab allocation alignment support
2018-09-10 19:01:11 -04:00
9a1acce5eb
optimize calloc when zero on free is disabled
2018-09-07 16:33:28 -04:00
8f921e30be
add kernel feature wishlist
2018-09-07 06:33:41 -04:00
7ae7abedea
mark more unlikely code paths
2018-09-07 02:53:15 -04:00
191f9667df
add missing include
2018-09-07 02:10:37 -04:00