summaryrefslogtreecommitdiffstats
path: root/contrib/unbound/util/data/packed_rrset.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/unbound/util/data/packed_rrset.h')
-rw-r--r--contrib/unbound/util/data/packed_rrset.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/unbound/util/data/packed_rrset.h b/contrib/unbound/util/data/packed_rrset.h
index 5d7990a..6039aef 100644
--- a/contrib/unbound/util/data/packed_rrset.h
+++ b/contrib/unbound/util/data/packed_rrset.h
@@ -58,6 +58,12 @@ typedef uint64_t rrset_id_t;
* from the SOA in the answer section from a direct SOA query or ANY query. */
#define PACKED_RRSET_SOA_NEG 0x4
+/** number of rrs and rrsets for integer overflow protection. More than
+ * this is not really possible (64K packet has much less RRs and RRsets) in
+ * a message. And this is small enough that also multiplied there is no
+ * integer overflow. */
+#define RR_COUNT_MAX 0xffffff
+
/**
* The identifying information for an RRset.
*/
OpenPOWER on IntegriCloud