Overview
| Comment: | Autorelease the return value of -[unicodeString] and include a BOM. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
7b7250a0ba23ed28babc50daa5f5d468 |
| User & Date: | js on 2011-05-01 23:58:26 |
| Other Links: | manifest | tags |
Context
|
2011-05-02
| ||
| 13:01 | Don't free ret in -[unicodeString] as it is autoreleased now. (check-in: 3a1cd610ed user: js tags: trunk) | |
|
2011-05-01
| ||
| 23:58 | Autorelease the return value of -[unicodeString] and include a BOM. (check-in: 7b7250a0ba user: js tags: trunk) | |
| 23:42 | Fix a possible out-of-bounds read in -[OFString unicodeString]. (check-in: 9d25dacab1 user: js tags: trunk) | |
Changes
Modified src/OFString.h from [65a04abda1] to [1412423068].
| ︙ | |||
512 513 514 515 516 517 518 | 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 | - + - - + + + + | * OFInvalidEncodingException if the string contains any non-number characters. * * \return A double with the value of the string */ - (double)doubleValue; /** |
| ︙ |
Modified src/OFString.m from [f44982b7c8] to [fb7ee6732e].
| ︙ | |||
1574 1575 1576 1577 1578 1579 1580 1581 | 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 | + - + - + + - - + + - + |
}
return value;
}
- (of_unichar_t*)unicodeString
{
OFObject *object = [[[OFObject alloc] init] autorelease];
of_unichar_t *ret;
|
| ︙ |
Modified tests/OFStringTests.m from [ae603ec4d9] to [24fef6ba66].
| ︙ | |||
33 34 35 36 37 38 39 | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | - + + + |
#import "TestsAppDelegate.h"
static OFString *module = @"OFString";
static OFString* whitespace[] = {
@" \r \t\n\t \tasd \t \t\t\r\n",
@" \t\t \t\t \t \t"
};
|
| ︙ | |||
366 367 368 369 370 371 372 | 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 | - + | EXPECT_EXCEPTION(@"Detect out of range in -[hexadecimalValue]", OFOutOfRangeException, [@"0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF" @"0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF" hexadecimalValue]) TEST(@"-[unicodeString]", (ua = [@"fööbär🀺" unicodeString]) && |
| ︙ |