Merge in SNORT/snort3 from ~SHIBOSE/snort3:dns_clear_vector to master
Squashed commit of the following:
commit
5eb34aa47df3367b988c082c47427f31d8e745d8
Author: shibose <shibose@cisco.com>
Date: Thu Feb 26 14:31:50 2026 +0530
dns: prevent unbounded TCP session vector growth
// For DNS over TCP, the reused event object may hold domain names and IP addresses extracted
// from previous DNS response message which must be cleared before processing a new DNS message.
dnsSessionData->dns_events.clear_data();
+
+ // Clear resource record vectors to prevent unbounded growth across transactions
+ // These vectors should only contain data for the current DNS transaction, not accumulated
+ // data from all previous transactions in this long-lived TCP session.
+ dnsSessionData->answer_tabs.clear();
+ dnsSessionData->auth_tabs.clear();
+ dnsSessionData->addl_tabs.clear();
}
while (bytes_unused)