To give the reader a sense of the seriousness of these memory issues, we have written a test program, membugs.c. This test program allows the user to test various common memory bugs, which will help them better understand the underlying issues.
Each memory bug test case is given a test case number. So that the reader can easily follow the source code with the explanatory material, we also specify the test case as follows.