mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix Out of Bound Write Compressed Names in rdata_copy(),
reported by X41 D-Sec.
This commit is contained in:
parent
2d444a5037
commit
6c3a0b54ed
2 changed files with 3 additions and 1 deletions
|
|
@ -17,6 +17,8 @@
|
||||||
reported by X41 D-Sec.
|
reported by X41 D-Sec.
|
||||||
- Fix Insufficient Handling of Compressed Names in dname_pkt_copy(),
|
- Fix Insufficient Handling of Compressed Names in dname_pkt_copy(),
|
||||||
reported by X41 D-Sec.
|
reported by X41 D-Sec.
|
||||||
|
- Fix Out of Bound Write Compressed Names in rdata_copy(),
|
||||||
|
reported by X41 D-Sec.
|
||||||
|
|
||||||
2 December 2019: Wouter
|
2 December 2019: Wouter
|
||||||
- Merge pull request #122 from he32: In tcp_callback_writer(),
|
- Merge pull request #122 from he32: In tcp_callback_writer(),
|
||||||
|
|
|
||||||
|
|
@ -243,10 +243,10 @@ rdata_copy(sldns_buffer* pkt, struct packed_rrset_data* data, uint8_t* to,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(len) {
|
if(len) {
|
||||||
|
log_assert(len <= pkt_len);
|
||||||
memmove(to, sldns_buffer_current(pkt), len);
|
memmove(to, sldns_buffer_current(pkt), len);
|
||||||
to += len;
|
to += len;
|
||||||
sldns_buffer_skip(pkt, (ssize_t)len);
|
sldns_buffer_skip(pkt, (ssize_t)len);
|
||||||
log_assert(len <= pkt_len);
|
|
||||||
pkt_len -= len;
|
pkt_len -= len;
|
||||||
}
|
}
|
||||||
rdf++;
|
rdf++;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue