mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Fix possible buffer overrun
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22301 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a175f6a0f1
commit
993566e0e6
2 changed files with 10 additions and 0 deletions
|
@ -743,6 +743,11 @@ ParseConfigurationFile(NSString *fileName, NSMutableDictionary *dict)
|
|||
wantKey = YES;
|
||||
}
|
||||
|
||||
if (spos >= end)
|
||||
{
|
||||
break; // At end of file ... odd but not fatal
|
||||
}
|
||||
|
||||
if (*spos == '=')
|
||||
{
|
||||
if (wantKey == NO)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue