26 Commits

Author SHA1 Message Date
daan
2f5fbffaa7 merge from dev 2020-07-22 10:56:59 -07:00
daan
8769082d63 add pointer validity check in debug mode for mi_usable_size/mi_realloc/mi_expand. Issue #269 2020-07-20 14:33:03 -07:00
daan
3130d55796 nicer json output 2020-05-03 16:29:15 -07:00
daan
9ebb94fe17 set extra debug padding per-heap 2020-04-20 17:09:28 -07:00
daan
69a0846478 add MI_PADDING flag to cmake to supress use of padding in debug mode 2020-04-07 10:01:18 -07:00
daan
40385c528b add heap leak check method 2020-04-07 09:04:20 -07:00
daan
aa47541ee5 add mi_heap_print_json 2020-04-07 08:51:02 -07:00
daan
75053f211a add more detailed block info for heap visiting 2020-04-07 08:36:22 -07:00
daan
173978c122 add more detailed block info for heap visiting 2020-04-06 23:39:09 -07:00
daan
8a7d5804bc add corrupted block scanning on overflow detection 2020-04-06 16:10:43 -07:00
daan
083392fa15 add padding check in usable size 2020-04-06 13:42:39 -07:00
daan
a38abae0a1 comments and improved error message on buffer overflow 2020-04-06 13:30:17 -07:00
daan
4090561975 wip: initial work on tracking source of an allocation in debug mode 2020-02-11 09:37:26 -08:00
daan
3f17ac287c add 'nodiscard' attribute to mimalloc interface 2020-02-01 17:29:30 -08:00
daan
40f1e1e07b byte-precise heap block overflow checking with encoded padding 2020-01-31 23:39:51 -08:00
daan
68112a2751 better padding implementation, more precise statistics 2020-01-31 20:34:24 -08:00
daan
5d212d688f add MI_PADDING build option to add padding to each block to detect heap block overflows 2020-01-29 17:10:57 -08:00
daan
783e3377f7 add output argument to stat printing 2020-01-15 10:53:54 -08:00
daan
74dbfc30be improved security by encoding NULL values; double free mitigation on by default; more precise free list corruption detection 2019-11-21 15:21:23 -08:00
daan
b052d3b731 enable double free and heap corruption detection in debug mode 2019-10-28 15:54:33 -07:00
daan
25246070ae fix double free check in secure = 4 mode; inline _mi_ptr_cookie 2019-10-19 08:34:18 -07:00
daan
2affdbbd2e stronger secure mode when defining MI_SECURE=4: checks for double free, corrupted free list, and invalid pointer frees. Performance is impacted but not too much -- more perf testing is needed 2019-10-18 18:11:04 -07:00
daan
dbe010f2d4 add huge and giant stats; increase bins 2019-08-10 20:51:37 -07:00
daan
7b16aa9302 remove accidental commit of different size bins experiment 2019-08-09 11:22:38 -07:00
daan
442bad9190 add good-fit for allowing larger blocks in smaller segments 2019-08-09 11:18:38 -07:00
daan
219d46ff0c update test files and overriding 2019-07-23 15:00:13 -07:00