mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Fix possible dereference of null pointer spotted by David Ayer.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22273 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
38ffc5527f
commit
512bbee7d4
1 changed files with 3 additions and 1 deletions
|
@ -2493,9 +2493,11 @@ GSPropertyListMake(id obj, NSDictionary *loc, BOOL xml,
|
|||
}
|
||||
else if (index_size < 1 || index_size > 4)
|
||||
{
|
||||
unsigned saved = offset_size;
|
||||
|
||||
DESTROY(self); // Bad format
|
||||
[NSException raise: NSGenericException
|
||||
format: @"Unknown table size %d", index_size];
|
||||
format: @"Unknown table size %d", saved];
|
||||
}
|
||||
else if (table_start > length - 32)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue