Skip to content
Detects buffer overruns and memory leaks.
C JavaScript C++ Makefile Other
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dwarfstack @ 6aac662
testres set errno if allocation fails in hooked functions May 11, 2019
.gitignore GitIgnore user files Jan 15, 2018
.gitmodules Add dwarfstack as a submodule Jan 14, 2018
LICENSE_1_0.txt Initial commit Jun 11, 2014
Makefile set version 3.2-dev Jul 7, 2019
README.md Mention MSVC build instructions in the README Apr 6, 2018
allocer.cpp set errno if allocation fails in hooked functions May 11, 2019
build.bat fix build with MSVC 2017 Apr 13, 2018
crt32-vc6.def compare allocation/release method Jul 3, 2014
crt32.def fix operator delete[](size_t) Jul 8, 2016
crt64.def fix operator delete[](size_t) Jul 8, 2016
dll-alloc.cpp check invalid pointer if it is pointing to global area Jul 29, 2017
heob-inj.c minidump VC c++ exception Aug 7, 2019
heob-internal.h minidump VC c++ exception Aug 7, 2019
heob-ver.rc option for svg output Sep 1, 2018
heob.c minidump VC c++ exception Aug 7, 2019
heob.h return error for invalid heob_control() command Feb 23, 2018
heob.ico add icon Oct 4, 2017
heob.manifest add version info and manifest Nov 16, 2016
heob.qbs set version 3.2-dev Jul 7, 2019
logo-16.png add artifact download to README Mar 1, 2018
svg.js add allocation/sample id to svg tooltip info May 19, 2019
vc.bat VC: build with optimization Apr 14, 2016

README.md

heob - heap observer

build status latest build

heob overrides the heap functions of the called process to detect buffer overruns and memory leaks.

On buffer overruns an access violation is raised, and stacktraces of the offending instruction and buffer allocation are provided.

When the program exits normally, stacktraces for all leaks are shown.

compilation:

MinGW

The location of dwarfstack.h has to be provided.

make CPPFLAGS="-I../dwarfstack/include"

Or disable dwarfstack completely (this is the default).

make CPPFLAGS="-DNO_DWARFSTACK"

MSVC

Run build.bat in the source directory.

notes:

To get file/line information in stacktraces of executables with DWARF debug information (gcc), dwarfstack.dll needs to be available. For PDB debug information, dbghelp.dll is used.

You can’t perform that action at this time.