Commit 3060d683db for bind
commit 3060d683db41511ccf89c18707899f7e599b733a
Author: Petr Špaček <pspacek@isc.org>
Date: Wed Nov 4 10:15:31 2026 +0000
Stop the RR-type scan before it wraps to zero
Assisted-by: Codex:gpt-6
diff --git a/fuzz/dns_rdata_fromwire_text.c b/fuzz/dns_rdata_fromwire_text.c
index 4a17b95924..860a8be542 100644
--- a/fuzz/dns_rdata_fromwire_text.c
+++ b/fuzz/dns_rdata_fromwire_text.c
@@ -50,7 +50,7 @@ LLVMFuzzerInitialize(int *argc ISC_ATTR_UNUSED, char ***argv ISC_ATTR_UNUSED) {
/*
* Append known types to list.
*/
- for (unsigned int t = 1; t <= 0x10000; t++) {
+ for (unsigned int t = 1; t <= UINT16_MAX; t++) {
char typebuf[256];
if (dns_rdatatype_ismeta(t)) {
continue;