From 493af9861412b3a3fc3f0001c443b2dd20f7fb38 Mon Sep 17 00:00:00 2001 From: jpk68 Date: Sun, 2 Aug 2026 13:14:24 -0400 Subject: [PATCH] wallet2: fix faulty bounds check --- src/wallet/wallet2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index dc4129203..9b568eb2a 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -8478,7 +8478,7 @@ uint64_t wallet2::get_fee_multiplier(fee_priority priority, fee_algorithm fee_al } const auto fee_algorithm_index = fee_algorithm_utilities::as_integral(fee_algorithm); - THROW_WALLET_EXCEPTION_IF(fee_algorithm_index < 0 || fee_algorithm_index > static_cast(std::size(fee_steps)), error::invalid_priority); + THROW_WALLET_EXCEPTION_IF(fee_algorithm_index < 0 || fee_algorithm_index >= static_cast(std::size(fee_steps)), error::invalid_priority); // 1 to 3/4 are allowed as priorities const fee_priority max_priority = fee_steps[fee_algorithm_index].maximum_priority;