electric-fence

v 2.1.13-0.1

a library to detect memory buffers over- and underruns

Electric Fence (efence) 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.

http://perens.com/FreeSoftware/

To install electric-fence, paste this in macOS terminal after installing MacPorts

sudo port install electric-fence

Add to my watchlist

Installations 3
Requested Installations 2