]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add a limit to the number of RRs in RRSets
authorOndřej Surý <ondrej@isc.org>
Fri, 1 Mar 2024 07:26:07 +0000 (08:26 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 5 Jun 2024 07:02:14 +0000 (09:02 +0200)
commitb9b5485b22c364fb88c27aa04bad4c8f616da3fa
treea3fc15fe0d113f17d99c0586c0f3f85e9403066c
parent93c9df4659142ed3a5786e0b42006c4a69910dce
Add a limit to the number of RRs in RRSets

Previously, the number of RRs in the RRSets were internally unlimited.
As the data structure that holds the RRs is just a linked list, and
there are places where we just walk through all of the RRs, adding an
RRSet with huge number of RRs inside would slow down processing of said
RRSets.

The fix for end-of-life branches make the limit compile-time only for
simplicity and the limit can be changed at the compile time by adding
following define to CFLAGS:

    -DDNS_RDATASET_MAX_RECORDS=<limit>

(cherry picked from commit c5c4d00c38530390c9e1ae4c98b65fbbadfe9e5e)
(cherry picked from commit 7f705778af729ada7fec36ac4b456c73329bd996)
configure
configure.ac
lib/dns/rdataslab.c