mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
fix bug 27224
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28452 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3cc2adbd35
commit
f1d2144948
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2009-08-11 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSData.m: Fix memory leak introduced with GC changes.
|
||||||
|
* Source/Additions/GSMime.m: Use memmove() as fix for bug #27224
|
||||||
|
|
||||||
2009-08-10 Richard Frith-Macdonald <rfm@gnu.org>
|
2009-08-10 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSData.m: Fix memory leak introduced with GC changes.
|
* Source/NSData.m: Fix memory leak introduced with GC changes.
|
||||||
|
|
|
@ -2679,7 +2679,7 @@ NSDebugMLLog(@"GSMime", @"Header parsed - %@", info);
|
||||||
*/
|
*/
|
||||||
lineStart += bLength;
|
lineStart += bLength;
|
||||||
sectionStart = lineStart;
|
sectionStart = lineStart;
|
||||||
memcpy(bytes, &bytes[sectionStart], dataEnd - sectionStart);
|
memmove(bytes, &bytes[sectionStart], dataEnd - sectionStart);
|
||||||
dataEnd -= sectionStart;
|
dataEnd -= sectionStart;
|
||||||
[data setLength: dataEnd];
|
[data setLength: dataEnd];
|
||||||
bytes = (unsigned char*)[data mutableBytes];
|
bytes = (unsigned char*)[data mutableBytes];
|
||||||
|
@ -2772,7 +2772,7 @@ NSDebugMLLog(@"GSMime", @"Header parsed - %@", info);
|
||||||
lengthRemaining = dataEnd - input;
|
lengthRemaining = dataEnd - input;
|
||||||
if (lengthRemaining > 0)
|
if (lengthRemaining > 0)
|
||||||
{
|
{
|
||||||
memcpy(bytes, &bytes[input], lengthRemaining);
|
memmove(bytes, &bytes[input], lengthRemaining);
|
||||||
}
|
}
|
||||||
dataEnd = lengthRemaining;
|
dataEnd = lengthRemaining;
|
||||||
[data setLength: lengthRemaining];
|
[data setLength: lengthRemaining];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue