Differences From Artifact [5097d3765b]:
- File src/OFMutableString.m — part of check-in [cfd374b906] at 2015-01-03 20:57:18 on branch trunk — Update copyright (user: js, size: 12499) [annotate] [blame] [check-ins using]
To Artifact [4a0b7f4d80]:
- File src/OFMutableString.m — part of check-in [daf78156a7] at 2015-05-03 11:34:12 on branch trunk — Check <= SSIZE_MAX before assignign to ssize_t (user: js, size: 12573) [annotate] [blame] [check-ins using]
︙ | |||
523 524 525 526 527 528 529 530 531 532 533 534 535 536 | 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 | + + + | } - (void)deleteTrailingWhitespaces { size_t length = [self length]; ssize_t i; if (length - 1 > SSIZE_MAX) @throw [OFOutOfRangeException exception]; for (i = length - 1; i >= 0; i--) { of_unichar_t c = [self characterAtIndex: i]; if (c != ' ' && c != '\t' && c != '\n' && c != '\r' && c != '\f') break; } |
︙ |