cmockery icon indicating copy to clipboard operation
cmockery copied to clipboard

update memory allocate check

Open aronlt opened this issue 9 years ago • 1 comments

If we pass an invalid pointer to _test_free() function, this function will be crashed. So I update this function, add some checking code. Therefore, cmockery can test cases that free invaild pointer, and free an allocated block twice.

aronlt avatar Jan 24 '16 17:01 aronlt

cmockery is dead since several years, you probably want to take a look at https://cmocka.org which is the successor of cmockery. We are happy to accept patches to improve it.

cryptomilk avatar Oct 03 '16 09:10 cryptomilk