Commit b114211ce8 for bind
commit b114211ce81dfbf49dc256a8ea4f4d67c2c992dc
Author: Petr Špaček <pspacek@isc.org>
Date: Wed Nov 4 10:19:15 2026 +0000
Size the RR-type buffer using the API constant
Assisted-by: Codex:gpt-6
diff --git a/fuzz/dns_rdata_fromwire_text.c b/fuzz/dns_rdata_fromwire_text.c
index 130697851e..cf455b6825 100644
--- a/fuzz/dns_rdata_fromwire_text.c
+++ b/fuzz/dns_rdata_fromwire_text.c
@@ -51,7 +51,7 @@ LLVMFuzzerInitialize(int *argc ISC_ATTR_UNUSED, char ***argv ISC_ATTR_UNUSED) {
* Append known types to list.
*/
for (unsigned int t = 1; t <= UINT16_MAX; t++) {
- char typebuf[256];
+ char typebuf[DNS_RDATATYPE_FORMATSIZE];
if (dns_rdatatype_ismeta(t)) {
continue;
}