[Zodb-checkins] CVS: Zope3/lib/python/Persistence/BTrees - BucketTemplate.c:1.1.2.12

Tim Peters tim.one@comcast.net
Wed, 5 Jun 2002 00:37:56 -0400


Update of /cvs-repository/Zope3/lib/python/Persistence/BTrees
In directory cvs.zope.org:/tmp/cvs-serv32755

Modified Files:
      Tag: Zope-3x-branch
	BucketTemplate.c 
Log Message:
bucket_traverse():  Note a likely, nasty bug.  No time to verify or fix
now.  This code doesn't exist on the trunk.


=== Zope3/lib/python/Persistence/BTrees/BucketTemplate.c 1.1.2.11 => 1.1.2.12 ===
        pointer if it doesn't point to an object.
     */
+    /* XXX BUG This loop appears to make out-of-bounds references
+       (when i = self->len, on the first trip).
+    */
     for (i = self->len; i >= 0; i--) {
 	VISIT(KEY_IF_OBJECT(self->keys[i]));
 	VISIT(VALUE_IF_OBJECT(self->values[i]));