Overview
Comment: | Fix a possible out-of-bounds read in -[OFString unicodeString]. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | 0.5 |
Files: | files | file ages | folders |
SHA3-256: |
4a9e45c2adff876e6765d8052e95a352 |
User & Date: | js on 2011-05-01 23:42:24 |
Other Links: | branch diff | manifest | tags |
Context
2011-05-08
| ||
23:25 | Fix missing retain in -[OFArray initWithObject:argList:]. check-in: bd7dbccb8b user: js tags: 0.5 | |
2011-05-01
| ||
23:42 | Fix a possible out-of-bounds read in -[OFString unicodeString]. check-in: 4a9e45c2ad user: js tags: 0.5 | |
2011-04-30
| ||
23:01 | Copy exceptions/common.h into the resulting framework. check-in: 0b6fc7db82 user: js tags: 0.5 | |
Changes
Modified src/OFString.m from [d61077ef08] to [ada3b84c8f].
︙ | ︙ | |||
1416 1417 1418 1419 1420 1421 1422 | i = j = 0; while (i < length) { of_unichar_t c; size_t clen; | | | 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 | i = j = 0; while (i < length) { of_unichar_t c; size_t clen; clen = of_string_utf8_to_unicode(string + i, length - i, &c); if (clen == 0 || c > 0x10FFFF) { free(ret); @throw [OFInvalidEncodingException newWithClass: isa]; } ret[j++] = c; |
︙ | ︙ |