I have added address sanitizer to debug compilation (with CMake). It let to catch a couple of memory leaks (mainly in tests, so no big deal), and one buffer overflow in library code (a bit bigger deal...).
Also, a minor correction in adfChangeDir() (check if the entries' sector from hashtable is valid before trying to read its block).
I have also enabled more compiler checks - it gives a lot of warnings, some of them will be worth checking (it not, they can be disabled or partially suppressed).
I have added address sanitizer to debug compilation (with CMake). It let to catch a couple of memory leaks (mainly in tests, so no big deal), and one buffer overflow in library code (a bit bigger deal...).
Also, a minor correction in
adfChangeDir()
(check if the entries' sector from hashtable is valid before trying to read its block).I have also enabled more compiler checks - it gives a lot of warnings, some of them will be worth checking (it not, they can be disabled or partially suppressed).