Differences From Artifact [1f222a13ca]:
- File
src/OFDNSResolver.m
— part of check-in
[ce2b268163]
at
2023-04-17 11:56:02
on branch trunk
— Always make DNS names lowercase
This avoids problems when comparing them. (user: js, size: 32863) [annotate] [blame] [check-ins using] [more...]
To Artifact [4b03d5ec64]:
- File src/OFDNSResolver.m — part of check-in [e7210cdbfd] at 2024-01-15 02:08:02 on branch 1.0 — OFDNSResolver: Fix wrong shifts (user: js, size: 32860) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
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, |
︙ | ︙ |