mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
bca4c6dd98
commit
2b955930b1
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>
|
||||
|
||||
* Source/NSData.m: Fix memory leak introduced with GC changes.
|
||||
|
|
|
@ -2679,7 +2679,7 @@ NSDebugMLLog(@"GSMime", @"Header parsed - %@", info);
|
|||
*/
|
||||
lineStart += bLength;
|
||||
sectionStart = lineStart;
|
||||
memcpy(bytes, &bytes[sectionStart], dataEnd - sectionStart);
|
||||
memmove(bytes, &bytes[sectionStart], dataEnd - sectionStart);
|
||||
dataEnd -= sectionStart;
|
||||
[data setLength: dataEnd];
|
||||
bytes = (unsigned char*)[data mutableBytes];
|
||||
|
@ -2772,7 +2772,7 @@ NSDebugMLLog(@"GSMime", @"Header parsed - %@", info);
|
|||
lengthRemaining = dataEnd - input;
|
||||
if (lengthRemaining > 0)
|
||||
{
|
||||
memcpy(bytes, &bytes[input], lengthRemaining);
|
||||
memmove(bytes, &bytes[input], lengthRemaining);
|
||||
}
|
||||
dataEnd = lengthRemaining;
|
||||
[data setLength: lengthRemaining];
|
||||
|
|
Loading…
Reference in a new issue