From: Steven Baigal (sbaigal) Date: Thu, 6 Oct 2022 18:55:14 +0000 (+0000) Subject: Pull request #3612: reputation: fix for array indexing error when searching for reput... X-Git-Tag: 3.1.45.0~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c630ec74bca23ab9dac27d77afa3a75bdcd35859;p=thirdparty%2Fsnort3.git Pull request #3612: reputation: fix for array indexing error when searching for reputation file entries Merge in SNORT/snort3 from ~ALLEWI/snort3:multiple_reputation_entries to master Squashed commit of the following: commit e336be1e0cbde17d4fcc00605ccfacfa4147fd48 Author: albert lewis Date: Mon Oct 3 12:56:51 2022 -0400 reputation: fix for array indexing error when searching for reputation file entries --- diff --git a/src/network_inspectors/reputation/reputation_inspect.cc b/src/network_inspectors/reputation/reputation_inspect.cc index c9054d275..9f8d1de4b 100644 --- a/src/network_inspectors/reputation/reputation_inspect.cc +++ b/src/network_inspectors/reputation/reputation_inspect.cc @@ -88,7 +88,7 @@ static inline IPdecision get_reputation(const ReputationConfig& config, Reputati int i; for (i = 0; i < NUM_INDEX_PER_ENTRY; i++) { - int list_index = rep_info->list_indexes[i]; + uint8_t list_index = rep_info->list_indexes[i]; if (!list_index) break; list_index--;