mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-03 13:59:27 -04:00
3861. [security] Missing isc_buffer_availablelength check results
in a REQUIRE assertion when printing out a packet.
[RT #36078]
This commit is contained in:
parent
4b22b8decb
commit
586d94eb74
2 changed files with 8 additions and 1 deletions
4
CHANGES
4
CHANGES
|
|
@ -1,3 +1,7 @@
|
|||
3861. [security] Missing isc_buffer_availablelength check results
|
||||
in a REQUIRE assertion when printing out a packet.
|
||||
[RT #36078]
|
||||
|
||||
3860. [bug] ioctl(DP_POLL) array size needs to be determined
|
||||
at run time as it is limited to {OPEN_MAX}.
|
||||
[RT #35878]
|
||||
|
|
|
|||
|
|
@ -3248,7 +3248,8 @@ dns_message_pseudosectiontotext(dns_message_t *msg,
|
|||
dns_pseudosection_t section,
|
||||
const dns_master_style_t *style,
|
||||
dns_messagetextflag_t flags,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
dns_rdataset_t *ps = NULL;
|
||||
dns_name_t *name = NULL;
|
||||
isc_result_t result;
|
||||
|
|
@ -3369,6 +3370,8 @@ dns_message_pseudosectiontotext(dns_message_t *msg,
|
|||
* version
|
||||
*/
|
||||
ADD_STRING(target, "(\"");
|
||||
if (isc_buffer_availablelength(target) < optlen)
|
||||
return (ISC_R_NOSPACE);
|
||||
for (i = 0; i < optlen; i++) {
|
||||
if (isprint(optdata[i]))
|
||||
isc_buffer_putmem(target,
|
||||
|
|
|
|||
Loading…
Reference in a new issue