]> granicus.if.org Git - icu/commitdiff
ICU-10518 Fixed an infinite loop problem in observesDaylightTime() revealed by tzdata...
authorYoshito Umaoka <y.umaoka@gmail.com>
Tue, 29 Oct 2013 07:20:08 +0000 (07:20 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Tue, 29 Oct 2013 07:20:08 +0000 (07:20 +0000)
X-SVN-Rev: 34618

icu4j/main/classes/core/src/com/ibm/icu/impl/OlsonTimeZone.java

index 774223b78c4599cd92a35d6b05727bc256f3b92b..b7b2dfabe67da253be9a70be17850bba0a7a52a0 100644 (file)
@@ -362,6 +362,7 @@ public class OlsonTimeZone extends BasicTimeZone {
             if (dstOffsetAt(trsIdx - 1) != 0) {
                 return true;
             }
+            trsIdx--;
         }
         return false;
     }