Commit 51186f1d authored by unknown's avatar unknown

When running with --skip-safemalloc, still do some basic, but cheap, overrun checks.

This greatly helps with eg. slow hosts in Buildbot.
parent 79181a1c
...@@ -272,6 +272,9 @@ void _myfree(void *ptr, const char *filename, uint lineno, myf myflags) ...@@ -272,6 +272,9 @@ void _myfree(void *ptr, const char *filename, uint lineno, myf myflags)
irem= (struct st_irem *) ((char*) ptr- ALIGN_SIZE(sizeof(struct st_irem))- irem= (struct st_irem *) ((char*) ptr- ALIGN_SIZE(sizeof(struct st_irem))-
sf_malloc_prehunc); sf_malloc_prehunc);
if (sf_malloc_quick)
(void) _checkchunk(irem, filename, lineno);
/* /*
Check to make sure that we have a real remember structure. Check to make sure that we have a real remember structure.
Note: this test could fail for four reasons: Note: this test could fail for four reasons:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment