Overview
Comment: | OFDNSResolver: Fix wrong shifts |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | 1.0 |
Files: | files | file ages | folders |
SHA3-256: |
e7210cdbfdae005a6ce8205b2ebe6ac3 |
User & Date: | js on 2024-01-15 02:08:02 |
Other Links: | branch diff | manifest | tags |
Context
2024-01-15
| ||
20:10 | configure: Add AC_PROG_EGREP to fix autoconf 2.72 check-in: 43b768bf0a user: js tags: 1.0 | |
02:08 | OFDNSResolver: Fix wrong shifts check-in: e7210cdbfd user: js tags: 1.0 | |
02:07 | OFDNSResolver: Fix wrong shifts check-in: 328252420b user: js tags: trunk | |
2023-11-05
| ||
11:10 | Set version to 1.0.5 check-in: 5e0f762935 user: js tags: 1.0, 1.0.5-release | |
Changes
Modified src/OFDNSResolver.m from [1f222a13ca] to [4b03d5ec64].
︙ | ︙ | |||
429 430 431 432 433 434 435 | uint32_t TTL; uint16_t dataLength; OFDNSResourceRecord *record; if (*i + 10 > length) @throw [OFTruncatedDataException exception]; | | | | | 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 | uint32_t TTL; uint16_t dataLength; OFDNSResourceRecord *record; if (*i + 10 > length) @throw [OFTruncatedDataException exception]; recordType = (buffer[*i] << 8) | buffer[*i + 1]; DNSClass = (buffer[*i + 2] << 8) | buffer[*i + 3]; TTL = (buffer[*i + 4] << 24) | (buffer[*i + 5] << 16) | (buffer[*i + 6] << 8) | buffer[*i + 7]; dataLength = (buffer[*i + 8] << 8) | buffer[*i + 9]; *i += 10; if (*i + dataLength > length) @throw [OFTruncatedDataException exception]; record = parseResourceRecord(name, DNSClass, recordType, TTL, |
︙ | ︙ |