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:
Richard Frith-Macdonald 2006-01-12 11:09:02 +00:00
parent a175f6a0f1
commit 993566e0e6
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-01-12 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSPathUtilities.m: Fix possible read off end of buffer
when parsing config file.
2006-01-11 Richard Frith-Macdonald <rfm@gnu.org>
* Documentation/GNUmakefile:

View file

@ -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)