Overview
| Comment: | OFMethodSignature: Fix a possible divide by zero |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
17461b9a5d9a93643922aa37a37cbc10 |
| User & Date: | js on 2017-09-25 23:25:25 |
| Other Links: | manifest | tags |
Context
|
2017-09-26
| ||
| 00:02 | Fix a few missing nullable (check-in: 3da9426ea5 user: js tags: trunk) | |
|
2017-09-25
| ||
| 23:25 | OFMethodSignature: Fix a possible divide by zero (check-in: 17461b9a5d user: js tags: trunk) | |
| 23:23 | OF{Pair,Triple}: Fix -[mutableCopy] (check-in: 9e998270e4 user: js tags: trunk) | |
Changes
Modified src/OFMethodSignature.m from [ab0bec9deb] to [459569951b].
| ︙ | ︙ | |||
45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
while (*length > 0 && isdigit(**type)) {
count = count * 10 + **type - '0';
(*type)++;
(*length)--;
}
size = sizeofEncoding(type, length);
if (*length == 0 || **type != ']')
@throw [OFInvalidFormatException exception];
(*type)++;
(*length)--;
| > > > | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
while (*length > 0 && isdigit(**type)) {
count = count * 10 + **type - '0';
(*type)++;
(*length)--;
}
if (count == 0)
@throw [OFInvalidFormatException exception];
size = sizeofEncoding(type, length);
if (*length == 0 || **type != ']')
@throw [OFInvalidFormatException exception];
(*type)++;
(*length)--;
|
| ︙ | ︙ |