Add a memory test at the stream buffer

This commit is contained in:
Andrea Mazzoleni 2015-02-18 19:17:48 +01:00
parent fed3e8be1f
commit 87aa5d5e7b
2 changed files with 19 additions and 3 deletions

View file

@ -403,6 +403,11 @@ void* malloc_nofail_align(size_t size, void** freeptr);
*/
void** malloc_nofail_vector_align(int nd, int n, size_t size, void** freeptr);
/**
* Safe allocation with memory test.
*/
void* malloc_nofail_test(size_t size);
/**
* Tests the memory vector for RAM problems.
* If a problem is found, it crashes.