mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
Fixed crash when going past the end of the string
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6730 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e0f358eb78
commit
c62dc367cd
1 changed files with 1 additions and 0 deletions
|
@ -2817,6 +2817,7 @@ scanRange(NSScanner *scanner, NSCharacterSet* aSet)
|
|||
{
|
||||
proposedCharRange.location = length;
|
||||
proposedCharRange.length = 0;
|
||||
return proposedCharRange;
|
||||
}
|
||||
if (proposedCharRange.length > length - proposedCharRange.location)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue