buffer overrun fixed

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7781 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 2000-10-10 20:54:08 +00:00
parent 6c0137925a
commit 2204f0c428
2 changed files with 5 additions and 2 deletions

View file

@ -504,6 +504,7 @@ fillHole(ivars self, unsigned index, unsigned size)
NSCAssert(size > 0, @"size <= zero");
NSCAssert(index + size <= self->_count, @"index + size > length");
self->_count -= size;
#ifndef STABLE_MEMCPY
{
int i;
@ -536,8 +537,6 @@ fillHole(ivars self, unsigned index, unsigned size)
self->_contents.c + index, (self->_count - index));
}
#endif // STABLE_MEMCPY
self->_count -= size;
self->_flags.hash = 0;
}