diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-06-11 11:02:26 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-06-11 16:43:01 +0200 |
commit | 8caa1ac001b4bb4f6137239c9516119e3b9206f6 (patch) | |
tree | beb671cc68e37530fbc694d3988ff9d7cf0fa499 /libre/icu-65-compat/icu-65.1-initialized-buffer-uloc_getKeywordValue.patch | |
parent | 08de71b1e72e9cd59b43b2cfc607adda36298c5f (diff) | |
download | abslibre-8caa1ac001b4bb4f6137239c9516119e3b9206f6.tar.gz abslibre-8caa1ac001b4bb4f6137239c9516119e3b9206f6.tar.bz2 abslibre-8caa1ac001b4bb4f6137239c9516119e3b9206f6.zip |
libre: icu: enable to provide compatibility for multiple versions
This should enable to have more than one compatibility library
at the same time.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'libre/icu-65-compat/icu-65.1-initialized-buffer-uloc_getKeywordValue.patch')
-rw-r--r-- | libre/icu-65-compat/icu-65.1-initialized-buffer-uloc_getKeywordValue.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libre/icu-65-compat/icu-65.1-initialized-buffer-uloc_getKeywordValue.patch b/libre/icu-65-compat/icu-65.1-initialized-buffer-uloc_getKeywordValue.patch new file mode 100644 index 000000000..475921d23 --- /dev/null +++ b/libre/icu-65-compat/icu-65.1-initialized-buffer-uloc_getKeywordValue.patch @@ -0,0 +1,23 @@ +From fab4c3c719977205a3f005ddfd7fffbb9c19c587 Mon Sep 17 00:00:00 2001 +From: Frank Tang <ftang@chromium.org> +Date: Wed, 30 Oct 2019 17:45:22 -0700 +Subject: [PATCH] ICU-20884 initialized buffer uloc_getKeywordValue + +--- + icu4c/source/common/uloc.cpp | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/icu4c/source/common/uloc.cpp b/icu4c/source/common/uloc.cpp +index 6a9bfcfbff5..ea81c0ce87f 100644 +--- a/icu4c/source/common/uloc.cpp ++++ b/icu4c/source/common/uloc.cpp +@@ -766,6 +766,9 @@ uloc_getKeywordValue(const char* localeID, + char* buffer, int32_t bufferCapacity, + UErrorCode* status) + { ++ if (buffer != nullptr) { ++ buffer[0] = '\0'; ++ } + const char* startSearchHere = NULL; + const char* nextSeparator = NULL; + char keywordNameBuffer[ULOC_KEYWORD_BUFFER_LEN]; |