~ruther/guix-local

ref: e1444afa2dd78742e48daa7e4f4db03d53fa0efa guix-local/gnu/packages/patches/icu4c-CVE-2015-1270.patch -rw-r--r-- 656 bytes
e1444afa — Leo Famulari gnu: curl: Replace with curl@7.54.0 [fixes CVE-2017-7468] 9 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Copied from Debian.

diff --git a/source/common/ucnv_io.cpp b/source/common/ucnv_io.cpp
index 5dd35d8..4424664 100644
--- a/source/common/ucnv_io.cpp
+++ b/source/common/ucnv_io.cpp
@@ -744,7 +744,7 @@ ucnv_io_getConverterName(const char *alias, UBool *containsOption, UErrorCode *p
              * the name begins with 'x-'. If it does, strip it off and try
              * again.  This behaviour is similar to how ICU4J does it.
              */
-            if (aliasTmp[0] == 'x' || aliasTmp[1] == '-') {
+            if (aliasTmp[0] == 'x' && aliasTmp[1] == '-') {
                 aliasTmp = aliasTmp+2;
             } else {
                 break;