mirror of https://github.com/google/oss-fuzz.git
SystemSan: log correct dns type and class (#9476)
by skipping final null byte of domain name
This commit is contained in:
parent
05c9ac23d5
commit
107f33937f
|
@ -108,6 +108,7 @@ struct DnsRequest parse_dns_request(std::vector<std::byte> data, size_t offset)
|
|||
while(offset < data.size()) {
|
||||
uint8_t rlen = uint8_t(data[offset]);
|
||||
if (rlen == 0) {
|
||||
offset++;
|
||||
break;
|
||||
}
|
||||
r.nb_levels++;
|
||||
|
|
Loading…
Reference in New Issue