Overview
| Comment: | Fix too big buffer in -[OFMutableString _applyTable:withSize:]. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
a85a9b60769c55094f7f800682ca8000 |
| User & Date: | js on 2011-04-23 01:32:01 |
| Other Links: | manifest | tags |
Context
|
2011-04-23
| ||
| 02:15 | OFMutableString: Call madvise() on the correct length. (check-in: a4df72758c user: js tags: trunk) | |
| 01:32 | Fix too big buffer in -[OFMutableString _applyTable:withSize:]. (check-in: a85a9b6076 user: js tags: trunk) | |
| 00:11 | More style improvements. (check-in: d8c31454b4 user: js tags: trunk) | |
Changes
Modified src/OFMutableString.m from [fe52a06baf] to [af20c160ff].
| ︙ | ︙ | |||
61 62 63 64 65 66 67 | if ((t = table[0][*p]) != 0) *p = t; return; } ulen = [self length]; | | | < | | 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
if ((t = table[0][*p]) != 0)
*p = t;
return;
}
ulen = [self length];
ustr = [self allocMemoryForNItems: ulen
withSize: sizeof(of_unichar_t)];
i = j = 0;
nlen = 0;
while (i < length) {
clen = of_string_utf8_to_unicode(string + i, length - i, &c);
if (clen == 0 || c > 0x10FFFF) {
[self freeMemory: ustr];
|
| ︙ | ︙ |