1From 529ba01ee606940ca273b187be8ce9ba31cf2d90 Mon Sep 17 00:00:00 2001
2From: David Tardon <dtardon@redhat.com>
3Date: Fri, 19 Jan 2018 10:41:02 +0100
4Subject: [PATCH] ofz#4860 fix past-the-end read from array
5
6---
7 icu4c/source/common/locmap.cpp | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10diff --git a/icu4c/source/common/locmap.cpp b/icu4c/source/common/locmap.cpp
11index cbb2b810a..6d62d8310 100644
12--- a/icu4c/source/common/locmap.cpp
13+++ b/icu4c/source/common/locmap.cpp
14@@ -1015,7 +1015,7 @@ static const char*
15 getPosixID(const ILcidPosixMap *this_0, uint32_t hostID)
16 {
17     uint32_t i;
18-    for (i = 0; i <= this_0->numRegions; i++)
19+    for (i = 0; i < this_0->numRegions; i++)
20     {
21         if (this_0->regionMaps[i].hostID == hostID)
22         {
23--
242.14.3
25
26