ICU-5480 resolved alias array size check problem in getEquivalentID

X-SVN-Rev: 20598
This commit is contained in:
Yoshito Umaoka 2006-10-26 17:27:20 +00:00
parent e31934eb83
commit f6f17b4a8e

View File

@ -170,7 +170,7 @@ public final class ZoneMeta {
if (size == 4 || size == 6) {
ICUResourceBundle r = res.get(size-1);
int[] v = r.getIntVector();
if (index >= 0 && index < size && getOlsonMeta()) {
if (index >= 0 && index < v.length && getOlsonMeta()) {
zone = v[index];
}
}