Questions tagged [dmalloc]

Dmalloc is a debug malloc library for C and C++ users

The debug memory allocation or dmalloc library has been designed as a drop in replacement for the system's malloc, realloc, calloc, free and other memory management routines while providing powerful debugging facilities configurable at runtime. These facilities include such things as memory-leak tracking, fence-post write detection, file/line number reporting, and general logging of statistics.

The library is reasonably portable having been run successfully on at least the following operating systems: AIX, BSD/OS, DG/UX, Free/Net/OpenBSD, GNU/Hurd, HPUX, Irix, Linux, MS-DOG, NeXT, OSF, SCO, Solaris, SunOS, Ultrix, Unixware, Windoze, and even Unicos on a Cray T3E. It also provides support for the debugging of threaded programs.

16 questions
0
votes
2 answers

How dmalloc library determines that occurred out of bounds access has occured?

When this code was executed, the library dmalloc somehow determined that there was an out of bounds memory access. As it allocated 1023 elements and attempted to access 1024th element. (Array index is 0-based). #include "dmalloc.h" int main(){ …
drlexa
  • 131
  • 1
  • 2
  • 5
1
2