mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +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
|
@ -1,3 +1,7 @@
|
||||||
|
2000-10-10 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/GSString.m: fillHole() fixed error in copying bytes.
|
||||||
|
|
||||||
2000-10-09 Richard Frith-Macdonald <rfm@gnu.org>
|
2000-10-09 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSGAttributedString.m: ([-setAttributes:range:])
|
* Source/NSGAttributedString.m: ([-setAttributes:range:])
|
||||||
|
|
|
@ -504,6 +504,7 @@ fillHole(ivars self, unsigned index, unsigned size)
|
||||||
NSCAssert(size > 0, @"size <= zero");
|
NSCAssert(size > 0, @"size <= zero");
|
||||||
NSCAssert(index + size <= self->_count, @"index + size > length");
|
NSCAssert(index + size <= self->_count, @"index + size > length");
|
||||||
|
|
||||||
|
self->_count -= size;
|
||||||
#ifndef STABLE_MEMCPY
|
#ifndef STABLE_MEMCPY
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -536,8 +537,6 @@ fillHole(ivars self, unsigned index, unsigned size)
|
||||||
self->_contents.c + index, (self->_count - index));
|
self->_contents.c + index, (self->_count - index));
|
||||||
}
|
}
|
||||||
#endif // STABLE_MEMCPY
|
#endif // STABLE_MEMCPY
|
||||||
|
|
||||||
self->_count -= size;
|
|
||||||
self->_flags.hash = 0;
|
self->_flags.hash = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue