ElectricFence, a malloc debugging lib, using VM protection

This commit is contained in:
niklas 1999-03-30 16:53:36 +00:00
parent 8f65adb37d
commit d9a00b4cf1
6 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,16 @@
# $OpenBSD: Makefile,v 1.1.1.1 1999/03/30 16:53:36 niklas Exp $
#
PKGNAME= electricfence-2.0.5
DISTNAME= ElectricFence-2.0.5
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= devel/lang/c
MAINTAINER= niklas@openbsd.org
do-install:
${INSTALL_DATA} ${WRKBUILD}/libefence.a ${PREFIX}/lib
${INSTALL_MAN} ${WRKBUILD}/libefence.3 ${MAN3PREFIX}/man/man3
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
SHA1 (ElectricFence-2.0.5.tar.gz) = c78be01622e814f2a8239981a608b6f635e0288a
RMD160 (ElectricFence-2.0.5.tar.gz) = 833c42ad0b676fb0fbd4940bd233a1072b3d9703
MD5 (ElectricFence-2.0.5.tar.gz) = d6a8459d2e9ef955eb4d3f76004617f8

View File

@ -0,0 +1,18 @@
--- Makefile.orig Fri Jan 20 06:33:04 1995
+++ Makefile Tue Mar 30 13:10:15 1999
@@ -7,6 +7,7 @@
CFLAGS= -g
LIB_INSTALL_DIR= /usr/lib
MAN_INSTALL_DIR= /usr/man/man3
+RANLIB = ranlib
PACKAGE_SOURCE= README libefence.3 Makefile efence.h \
efence.c page.c print.c eftest.c tstheap.c CHANGES
@@ -60,6 +61,7 @@
libefence.a: $(OBJECTS)
- rm -f libefence.a
$(AR) crv libefence.a $(OBJECTS)
+ $(RANLIB) libefence.a
tstheap: libefence.a tstheap.o
- rm -f tstheap

View File

@ -0,0 +1 @@
A library providing malloc debugging via VM protection

View File

@ -0,0 +1,7 @@
Electric Fence is a different kind of malloc() debugger. It uses the virtual
memory hardware of your system to detect when software overruns the boundaries
of a malloc() buffer. It will also detect any accesses of memory that has
been released by free(). Because it uses the VM hardware for detection,
Electric Fence stops your program on the first instruction that causes
a bounds violation. It's then trivial to use a debugger to display the
offending statement.

View File

@ -0,0 +1,2 @@
lib/libefence.a
man/man3/libefence.3