[Python-checkins] commit of r41757 - python/trunk/Objects/bufferobject.c
neal.norwitz
python-checkins at python.org
Sun Dec 18 09:02:39 CET 2005
Author: neal.norwitz
Date: Sun Dec 18 09:02:38 2005
New Revision: 41757
Modified:
python/trunk/Objects/bufferobject.c
Log:
Check return result for error
Modified: python/trunk/Objects/bufferobject.c
==============================================================================
--- python/trunk/Objects/bufferobject.c (original)
+++ python/trunk/Objects/bufferobject.c Sun Dec 18 09:02:38 2005
@@ -356,6 +356,8 @@
return NULL;
ob = PyString_FromStringAndSize(NULL, size + count);
+ if ( ob == NULL )
+ return NULL;
p = PyString_AS_STRING(ob);
memcpy(p, ptr1, size);
memcpy(p + size, ptr2, count);
More information about the Python-checkins
mailing list