www-client/chromium: apply fix for SafeBrowsing
authorMike Gilbert <floppym@gentoo.org>
Sun, 17 Mar 2019 20:50:47 +0000 (16:50 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sun, 17 Mar 2019 20:51:21 +0000 (16:51 -0400)
Thanks to Maciej S. Szmigiero for the patch.

Closes: https://bugs.gentoo.org/674504
Package-Manager: Portage-2.3.62, Repoman-2.3.12_p83
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
www-client/chromium/chromium-73.0.3683.75.ebuild
www-client/chromium/files/chromium-fix-char_traits.patch [new file with mode: 0644]

index d43a6036c46b2a09a53878b87bcededafb7835d8..e02966e7154b028e75e41d40fc342b2eee24fcda 100644 (file)
@@ -141,6 +141,7 @@ GTK+ icon theme.
 PATCHES=(
        "${FILESDIR}/chromium-compiler-r7.patch"
        "${FILESDIR}/chromium-widevine-r4.patch"
+       "${FILESDIR}/chromium-fix-char_traits.patch"
        "${FILESDIR}/chromium-73-gcc-0.patch"
        "${FILESDIR}/chromium-73-gcc-1.patch"
        "${FILESDIR}/chromium-73-gcc-2.patch"
diff --git a/www-client/chromium/files/chromium-fix-char_traits.patch b/www-client/chromium/files/chromium-fix-char_traits.patch
new file mode 100644 (file)
index 0000000..4cb9503
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/base/strings/char_traits.h
++++ b/base/strings/char_traits.h
+@@ -67,9 +67,9 @@
+   return __builtin_memcmp(s1, s2, n);
+ #else
+   for (; n; --n, ++s1, ++s2) {
+-    if (*s1 < *s2)
++    if ((unsigned char)*s1 < (unsigned char)*s2)
+       return -1;
+-    if (*s1 > *s2)
++    if ((unsigned char)*s1 > (unsigned char)*s2)
+       return 1;
+   }
+   return 0;