Index: src/OFDataArray.m ================================================================== --- src/OFDataArray.m +++ src/OFDataArray.m @@ -429,11 +429,11 @@ } - (void)addItems: (const void*)items count: (size_t)count { - if (count > SIZE_MAX - count) + if (count > SIZE_MAX - _count) @throw [OFOutOfRangeException exception]; if (_count + count > _capacity) { _items = [self resizeMemory: _items size: _itemSize