Merge in SNORT/snort3 from ~VTRON/snort3:fix_action_counters_underflow to master
Squashed commit of the following:
commit
4f2076d35fb802e4abb2dc45e6f7fb2a9fbd1f70
Author: Vitalii Tron <vtron@cisco.com>
Date: Tue Sep 9 12:37:02 2025 -0400
actions: fix integer underflow in ips_actions pegcount aggregation
return (PegInfo*)&peg_info_array[0];
}
+void ActionsModule::reset_stats()
+{
+ std::fill(std::begin(peg_count_array), std::end(peg_count_array), 0);
+ std::fill(std::begin(prev_peg_count_array), std::end(prev_peg_count_array), 0);
+
+ Module::reset_stats();
+}
+
bool is_aggregator() const override
{ return true; }
+ void reset_stats() override;
+
private:
static std::map<std::string, std::vector<PegInfo>> module_peg_info_map;
static std::array<PegInfo, ACTIONS_ARRAY_SIZE> peg_info_array;