ElectricFence, a malloc debugging lib, using VM protection
This commit is contained in:
parent
8f65adb37d
commit
d9a00b4cf1
16
devel/ElectricFence/Makefile
Normal file
16
devel/ElectricFence/Makefile
Normal 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>
|
3
devel/ElectricFence/files/md5
Normal file
3
devel/ElectricFence/files/md5
Normal 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
|
18
devel/ElectricFence/patches/patch-add-ranlib
Normal file
18
devel/ElectricFence/patches/patch-add-ranlib
Normal 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
|
1
devel/ElectricFence/pkg/COMMENT
Normal file
1
devel/ElectricFence/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
A library providing malloc debugging via VM protection
|
7
devel/ElectricFence/pkg/DESCR
Normal file
7
devel/ElectricFence/pkg/DESCR
Normal 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.
|
2
devel/ElectricFence/pkg/PLIST
Normal file
2
devel/ElectricFence/pkg/PLIST
Normal file
@ -0,0 +1,2 @@
|
||||
lib/libefence.a
|
||||
man/man3/libefence.3
|
Loading…
Reference in New Issue
Block a user