Fix bug deserialising large objects.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24877 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2007-03-15 16:55:56 +00:00
parent 09d19a7f59
commit d6096ada5b
2 changed files with 58 additions and 53 deletions

View file

@ -1,3 +1,8 @@
2007-03-15 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSPropertyList.m: ([GSBinaryPLParser-readCountAt:])
Handle counts for objects larger than 64KB correctly.
2007-03-14 Richard Frith-Macdonald <rfm@gnu.org>
* configure.ac: By default disable the GNUSTEP_CONFIOG_FILE

View file

@ -2928,7 +2928,7 @@ GSPropertyListMake(id obj, NSDictionary *loc, BOOL xml,
}
else if ((c > 0x11) && (c <= 0x13))
{
unsigned len = 1 << (c - 0x10);
unsigned len = c - 0x0f;
unsigned char buffer[len];
int i;
unsigned long num = 0;