mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +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
|
@ -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:
|
||||
|
|
|
@ -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…
Reference in a new issue