mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
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:
parent
6c0137925a
commit
2204f0c428
2 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue