mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-02 01:34:38 +03:00
fix api test for 32-bits
This commit is contained in:
parent
09c2b7fdcf
commit
fc1a29180b
1 changed files with 2 additions and 0 deletions
|
@ -89,9 +89,11 @@ int main(void) {
|
|||
CHECK_BODY("malloc-free-null") {
|
||||
mi_free(NULL);
|
||||
};
|
||||
#if MI_INTPTR_BITS > 32
|
||||
CHECK_BODY("malloc-free-invalid-low") {
|
||||
mi_free((void*)(MI_ZU(0x0000000003990080))); // issue #1087
|
||||
};
|
||||
#endif
|
||||
CHECK_BODY("calloc-overflow") {
|
||||
// use (size_t)&mi_calloc to get some number without triggering compiler warnings
|
||||
result = (mi_calloc((size_t)&mi_calloc,SIZE_MAX/1000) == NULL);
|
||||
|
|
Loading…
Add table
Reference in a new issue