Skip to content

Releases: phil-base/tripwire

v0.1.0 — Initial release

06 Mar 08:19

Choose a tag to compare

Lightweight C memory debugging wrapper. Drop in two files, catch buffer overflows, double frees, and leaks.

Features

  • Transparent replacement of malloc, realloc, calloc, strdup, free, memset, memcpy, and memmove via preprocessor macros
  • Sentinel-based buffer overflow and underflow detection
  • Double-free and invalid-pointer detection
  • Leak reporting via tripwire_report()
  • File and line number in all diagnostics

Usage

Copy tripwire.h and tripwire.c into your project, include the header after your standard headers, and compile with tripwire.c. See the README for details.