Electric Fence stops your program on the exact instruction that overruns (or underruns) a malloc() memory buffer. GDB will then display the source-code line that causes the bug. It works by using the virtual-memory hardware to create a red-zone at the border of each buffer – touch that, and your program stops. Catch all of those formerly impossible-to-catch overrun bugs that have been bothering you for years.
You can download it from the following link: https://packetstormsecurity.com/files/download/10423/ElectricFence-2.2.2.tar.gz
Source: https://packetstormsecurity.com/files/10423/ElectricFence-2.2.2.tar.gz.html

