File: README

package info (click to toggle)
fda 1.0-3
  • links: PTS
  • area: main
  • in suites: potato, woody
  • size: 96 kB
  • ctags: 74
  • sloc: ansic: 501; makefile: 47
file content (34 lines) | stat: -rw-r--r-- 1,413 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
README file for Free Debug Allocator

Copyright (C) 1998 Thomas Helvey <tomh@inxpress.net>

FDA is free software under the GPL, so anyone can use it
anywhere. All I ask is that the original copyright notices not
be removed from the files. (Bragging rights :))

FDA consists mainly of 2 files fda.c and fda.h
that can be plugged into an application as general replacements for
malloc(), realloc(), calloc(), and free(). FDA should be portable
to anything that uses the std C library. (Note: some tweaking may
be needed if you have a system that defines an unsigned long as 64
bits.).

The fda tools can be used in a number of ways, you don't really
need too do much to get immediate benefit from it. If you're not
debugging, and an allocation fails, FDA will call user supplied
callbacks to allow you to free up some memory or shut down the
program cleanly, this means you don't have to check the
return values from malloc if you don't want to.

For debugging fda provides a nice toolkit for validating pointers,
checking for leaks, gathering memory statistics, bounds checking
and other nice things. FDA uses shredding, prefix and postfix
signatures, and a liberal amount of predicate asserts. You'll
find it very hard to trash pointers if you're using FDA, it won't
let you get away with it. :)

If you have suggestions for improvements or find bugs in FDA
please let me know. 

Thanks for using the FDA tools.