Article 1077 of net.sources: Path: sq!utfyzx!utgpu!water!watnot!watmath!clyde!rutgers!husc6!necntc!encore!vaxine!nw >From: nw@vaxine.UUCP (Neil Webber) Newsgroups: net.sources Subject: malloc/free test program Message-ID: <417@vaxine.UUCP> Date: 16 Feb 87 20:49:49 GMT Organization: Automatix, Inc., Billerica, MA Lines: 460 A while back I asked the net if anyone had a malloc/free test program that would allocate and free randomly sized pieces of memory with random lifetimes (and fill them with patterns that would be checked for corruption). I got a number of useful suggestions (best one: use the "diff" program as a malloc test ... it's brutal). Eventually, I wound up writing my own test program, which actually helped me find a bug. On the assumption that it might be useful to someone else, here it is. Please note: - No documentation (read the code to find out what it does). - Could be extended in zillions of ways to make it more useful. - No makefile, just compile "cc mtest.c" A "shar" archive follows. Neil Webber Automatix Inc. (or current resident) Billerica MA {decvax,ihnp4,allegra}!encore!vaxine!nw