Home GnuPG
Diffusion GnuPG ab724d3206c8

dirmngr: dns: Fix allocation of string buffer in stack.

Description

dirmngr: dns: Fix allocation of string buffer in stack.

* dirmngr/dns.h (dns_strsection, dns_strclass)
(dns_strtype): Change APIs.
* dirmngr/dns.c (dns_p_lines): Use __dst for dns_strsection.
(dns_rr_print): Use __dst for dns_strclass and dns_strtype.
(dns_trace_dump): Likewise.
(dns_ai_print): Use __dst for dns_strtype.
(dns_strsection): Add an argument __dst for storage.
(dns_strclass, dns_strtype): Likewise.
(parse_packet): Use __dst for dns_strsection.
(send_query): Use __dst for dns_strtype.
(isection): Use __dst for dns_strsection.
(iclass): Use __dst for dns_strclass.
(itype): Use __dst for dns_strtype.

Backport master commit of:
30eef28bc0f5deaa1b4b7f04293a6527524280a9

Details

Provenance
gniibeAuthored on May 20 2020, 12:44 PM
Parents
rGc6324ee07a9f: common: Change argument order of log_printhex.
Branches
Unknown
Tags
Unknown
Tasks
T4934: Returning automatic variable buffer from a function