1 |
commit: 381aa46351b1d3d78dd3af10dd0bdc6c844ff70a |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 19 10:35:35 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 19 10:37:04 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=381aa463 |
7 |
|
8 |
dev-db/mysql-connector-c: survive malformed charset files |
9 |
|
10 |
Bug: https://bugs.gentoo.org/737002 |
11 |
Package-Manager: Portage-3.0.3, Repoman-3.0.0 |
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
...ctor-c-8.0.21-survive-malformed-charset-files.patch | 18 ++++++++++++++++++ |
15 |
....0.21.ebuild => mysql-connector-c-8.0.21-r1.ebuild} | 1 + |
16 |
2 files changed, 19 insertions(+) |
17 |
|
18 |
diff --git a/dev-db/mysql-connector-c/files/mysql-connector-c-8.0.21-survive-malformed-charset-files.patch b/dev-db/mysql-connector-c/files/mysql-connector-c-8.0.21-survive-malformed-charset-files.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..72799f009c8 |
21 |
--- /dev/null |
22 |
+++ b/dev-db/mysql-connector-c/files/mysql-connector-c-8.0.21-survive-malformed-charset-files.patch |
23 |
@@ -0,0 +1,18 @@ |
24 |
+Description: don't crash on malformed charset files |
25 |
+Origin: https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1877504/comments/19 |
26 |
+Bug: https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1884809 |
27 |
+Bug: https://bugs.gentoo.org/737002 |
28 |
+Forwarded: workaround, not needed |
29 |
+ |
30 |
+--- a/mysys/charset.cc |
31 |
++++ b/mysys/charset.cc |
32 |
+@@ -922,7 +922,7 @@ size_t escape_quotes_for_mysql(CHARSET_I |
33 |
+ |
34 |
+ void charset_uninit() { |
35 |
+ for (CHARSET_INFO *cs : all_charsets) { |
36 |
+- if (cs && cs->coll->uninit) { |
37 |
++ if (cs && cs->coll && cs->coll->uninit) { |
38 |
+ cs->coll->uninit(cs); |
39 |
+ } |
40 |
+ } |
41 |
+ |
42 |
|
43 |
diff --git a/dev-db/mysql-connector-c/mysql-connector-c-8.0.21.ebuild b/dev-db/mysql-connector-c/mysql-connector-c-8.0.21-r1.ebuild |
44 |
similarity index 97% |
45 |
rename from dev-db/mysql-connector-c/mysql-connector-c-8.0.21.ebuild |
46 |
rename to dev-db/mysql-connector-c/mysql-connector-c-8.0.21-r1.ebuild |
47 |
index c6e4dad56ed..2cd9add1964 100644 |
48 |
--- a/dev-db/mysql-connector-c/mysql-connector-c-8.0.21.ebuild |
49 |
+++ b/dev-db/mysql-connector-c/mysql-connector-c-8.0.21-r1.ebuild |
50 |
@@ -44,6 +44,7 @@ PATCHES=( |
51 |
"${FILESDIR}"/${PN}-8.0.18-always-build-decompress-utilities.patch |
52 |
"${FILESDIR}"/${PN}-8.0.19-do-not-install-comp_err.patch |
53 |
"${FILESDIR}"/${PN}-8.0.21-libressl.patch |
54 |
+ "${FILESDIR}"/${PN}-8.0.21-survive-malformed-charset-files.patch |
55 |
) |
56 |
|
57 |
src_prepare() { |