mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Range check corrected.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10438 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
37ecd01e4c
commit
ac6507ad74
2 changed files with 6 additions and 1 deletions
|
@ -676,7 +676,7 @@ static Class GSMutableAttributedStringClass;
|
|||
@"in class NSMutableAtrributedString"];
|
||||
}
|
||||
tmpLength = [self length];
|
||||
if (aRange.location <= 0 || NSMaxRange(aRange) > tmpLength)
|
||||
if (NSMaxRange(aRange) > tmpLength)
|
||||
{
|
||||
[NSException raise: NSRangeException
|
||||
format: @"RangeError in method -addAttribute:value:range: "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue