Update of /cvsroot/monetdb/pathfinder/compiler/mem
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4851/compiler/mem

Modified Files:
      Tag: PF_ROX
        array.c 
Log Message:
propagated changes of Tuesday May 27 2008
from the development trunk to the PF_ROX branch

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2008/05/27 - sjoerd: compiler/mem/array.c,1.31
propagated changes of Sunday May 25 2008 - Tuesday May 27 2008
from the XQuery_0-24 branch to the development trunk

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2008/05/26 - tsheyar: compiler/mem/array.c,1.30.2.1
-- cosmetical change (prohibit arrays with empty entry sizes)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


U array.c
Index: array.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/mem/array.c,v
retrieving revision 1.24.4.4
retrieving revision 1.24.4.5
diff -u -d -r1.24.4.4 -r1.24.4.5
--- array.c     17 Apr 2008 14:31:32 -0000      1.24.4.4
+++ array.c     27 May 2008 20:52:03 -0000      1.24.4.5
@@ -94,6 +94,9 @@
   PFarray_t *a;
   size_t nbytes;
 
+  if (s == 0)
+      PFoops (OOPS_FATAL, "array payload is empty");
+
   a = (PFarray_t *) PFmalloc (sizeof (PFarray_t));
 
   /* round up to nearest multiple of ACHUNK larger than s * slots */


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to