Index: /branches/jch-memory/psLib/src/sys/psMemory.c
===================================================================
--- /branches/jch-memory/psLib/src/sys/psMemory.c	(revision 11016)
+++ /branches/jch-memory/psLib/src/sys/psMemory.c	(revision 11017)
@@ -10,6 +10,6 @@
 *  @author Joshua Hoblitt, University of Hawaii
 *
-*  @version $Revision: 1.88.2.26 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2007-01-11 00:22:00 $
+*  @version $Revision: 1.88.2.27 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2007-01-11 00:46:34 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -155,4 +155,14 @@
     }
 
+    // Currently psAlloc()/psRealloc() will blindly create memBlock's with a
+    // size of 0.  This test is in here to check if this is really
+    // happening/being use as a feature in the wild.
+    if (memBlock->size < 1) {
+        psMemBlockPrint(output, memBlock);
+        blockPrinted = true;
+        fprintf(output, _("\n\tMemory block has a size of less than 1.\n"));
+        bad = true;
+    }
+
     if (memBlock->refCounter < 1) {
         // using an unreferenced block of memory, are you?
