Update of /cvsroot/monetdb/pathfinder/runtime
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv1747
Modified Files:
Tag: Feb2009
shredder.mx
Log Message:
- check GDKrealloc() return value
U shredder.mx
Index: shredder.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/shredder.mx,v
retrieving revision 1.153.2.4
retrieving revision 1.153.2.5
diff -u -d -r1.153.2.4 -r1.153.2.5
--- shredder.mx 20 Feb 2009 09:06:45 -0000 1.153.2.4
+++ shredder.mx 20 Feb 2009 13:06:50 -0000 1.153.2.5
@@ -1110,6 +1110,10 @@
if ( (shredCtx->content + n + 1) < shredCtx->content_max) {
shredCtx->content_max = shredCtx->content + n + 1;
shredCtx->content_buf = GDKrealloc(shredCtx->content_buf,
shredCtx->content_max);
+ if (shredCtx->content_buf == NULL) {
+ GDKerror("shred_characters: GDKrealloc() failed.\n");
+ BAILOUT(shredCtx);
+ }
}
memcpy(&(shredCtx->content_buf[shredCtx->content]), cs, n);
shredCtx->content += n;
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins