1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

New port: memcheck -- Memory Allocation Checker.

This commit is contained in:
Dmitry Sivachenko 2002-09-01 20:43:15 +00:00
parent 2760246054
commit e838b55db4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=65448
6 changed files with 48 additions and 0 deletions

View File

@ -336,6 +336,7 @@
SUBDIR += m68k-rtems-objc
SUBDIR += make++
SUBDIR += makedepend
SUBDIR += memcheck
SUBDIR += mico
SUBDIR += mime
SUBDIR += mingw

24
devel/memcheck/Makefile Normal file
View File

@ -0,0 +1,24 @@
# Ports collection makefile for: memcheck
# Date created: Mon Sep 2, 2002
# Whom: Dmitry Sivachenko <demon@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= memcheck
PORTVERSION= 0.1.1
CATEGORIES= devel
MASTER_SITES= http://www.sound.net/~hald/projects/memcheck/
MAINTAINER= demon@FreeBSD.org
USE_REINPLACE= yes
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
post-patch:
.for file in memcheck.c tmemcheck.c
@${REINPLACE_CMD} -e 's#<malloc.h>#<stdlib.h>#g' ${WRKSRC}/${file}
.endfor
.include <bsd.port.mk>

1
devel/memcheck/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (memcheck-0.1.1.tar.gz) = 42223a9dba7e44b2090e975810e3b072

View File

@ -0,0 +1 @@
Memory Allocation Checker

16
devel/memcheck/pkg-descr Normal file
View File

@ -0,0 +1,16 @@
This is Memory Allocation Checker package. Main features:
* Fault on pointer overrun (read or write).
* Fault on freed pointer dereference (read or write).
* Log double free or realloc of already freed pointer.
* Log memory not freed on exit.
* Check for pointer underrun on free/realloc.
* Optionally reverse behaviour of overrun and underrun.
* Optionally "churn" reallocations. Always return a different pointer.
* Optionally log pointer overruns instead of faulting.
* Optionally return freed memory to system. (May hurt checking for freed
pointer usage).
* Very small performance impact.
* Large memory footprint impact.
* Includes a validation test suite to test correctness of libmemcheck.
WWW: http://www.sound.net/~hald/projects/memcheck/

5
devel/memcheck/pkg-plist Normal file
View File

@ -0,0 +1,5 @@
include/memcheck.h
lib/libmemcheck.so.1
lib/libmemcheck.so
lib/libmemcheck.la
lib/libmemcheck.a