Overview
Comment: | Fix missing character check in +[stringWithUTF16String:]. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
f6c05b68cf5af9125b67449f822f32e9 |
User & Date: | js on 2011-07-07 23:19:04 |
Other Links: | manifest | tags |
Context
2011-07-08
| ||
15:29 | Make it possible to add more ivars to OFConstantString. check-in: 0b846bcc4a user: js tags: trunk | |
2011-07-07
| ||
23:19 | Fix missing character check in +[stringWithUTF16String:]. check-in: f6c05b68cf user: js tags: trunk | |
18:07 | -framework has to be before -f* in objfw-compile. check-in: 4c36c01ae3 user: js tags: trunk | |
Changes
Modified src/OFString.m from [de837b0b69] to [8f7c85175f].
︙ | ︙ | |||
765 766 767 768 769 770 771 | if ((character & 0xFC00) == 0xDC00) @throw [OFInvalidEncodingException newWithClass: isa]; if ((character & 0xFC00) == 0xD800) { uint16_t nextCharacter; | | | 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 | if ((character & 0xFC00) == 0xDC00) @throw [OFInvalidEncodingException newWithClass: isa]; if ((character & 0xFC00) == 0xD800) { uint16_t nextCharacter; if (length_ <= i + 1) @throw [OFInvalidEncodingException newWithClass: isa]; nextCharacter = (swap ? of_bswap16(string_[i + 1]) : string_[i + 1]); character = (((character & 0x3FF) << 10) | |
︙ | ︙ |