From 5dfd1a24fce7069847ced4644ec49ad2327b53fe Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Thu, 25 Mar 2021 16:03:15 +0000 Subject: [PATCH] Fix potential iterator out of range condition by using appropriate function (ref #4218) via @mathisloge ``` template< class InputIt1, class InputIt2, class BinaryPredicate > bool equal( InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, BinaryPredicate p ); ``` --- plugins/input/csv/csv_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/input/csv/csv_utils.cpp b/plugins/input/csv/csv_utils.cpp index edae079a1..dc5eaf6df 100644 --- a/plugins/input/csv/csv_utils.cpp +++ b/plugins/input/csv/csv_utils.cpp @@ -233,7 +233,7 @@ struct ignore_case_equal_pred bool ignore_case_equal(std::string const& s0, std::string const& s1) { return std::equal(s0.begin(), s0.end(), - s1.begin(), ignore_case_equal_pred()); + s1.begin(), s1.end(), ignore_case_equal_pred()); } void csv_file_parser::add_feature(mapnik::value_integer, mapnik::csv_line const & )