[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [LCP]Address out of bounds error on Linux 7.3



To follow up Mike/Penny's explanations, you might want to try
Electric Fence (libefence), which can allocate your memory at a
page boundary, so you can be caught by OOB accesses reliably
(or almost, as you'll have to run twice, to allocate your memory
at start of page and end of page, meaning you may miss some if
your program isn't determinist (eg user input, timer, etc affects
its behavior).
Valgrind is also very useful.
Libs like Fortify also catch plenty of off by one errors early
in the programming.

-- 
Vincent Penquerc'h