diff options
author | Daan <daanl@outlook.com> | 2022-04-07 13:02:53 -0700 |
---|---|---|
committer | Daan <daanl@outlook.com> | 2022-04-07 13:02:53 -0700 |
commit | 0075a81879b670a87b56e078bad942671331a4bb (patch) | |
tree | 942825df889b54788cdcb98a7ac344e92668e5a7 | |
parent | 88f9c9410114cc72dcf3835e985d862660d2b530 (diff) | |
parent | 82dd094ec4d7f36067fdd55aa10aea438dae588f (diff) |
Merge branch 'dev' into dev-slice
-rw-r--r-- | src/alloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c index 58115da..9199772 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -476,6 +476,7 @@ static inline mi_segment_t* mi_checked_ptr_segment(const void* p, const char* ms #if (MI_DEBUG>0 || MI_SECURE>=4) if (mi_unlikely(_mi_ptr_cookie(segment) != segment->cookie)) { _mi_error_message(EINVAL, "%s: pointer does not point to a valid heap space: %p\n", msg, p); + return NULL; } #endif return segment; |