component(developer/golang-123): Add Component
[oi-userland.git] / components / library / icu / patches / 094-source-i18n-tzfmt.cpp.patch
bloba3690ae758bb4e041fea84b85735fbd7b4451900
2 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4 Prevent buffer overflow in TimeZoneFormat::parse
5 https://unicode-org.atlassian.net/browse/ICU-12375
7 --- icu/source/i18n/tzfmt.cpp.orig
8 +++ icu/source/i18n/tzfmt.cpp
9 @@ -1086,6 +1086,11 @@
11 break;
13 + default:
14 + {
15 + pos.setErrorIndex(startIdx);
16 + return nullptr;
17 + }
19 evaluated |= STYLE_PARSE_FLAGS[style];