diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2020-08-19 12:35:35 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2020-08-19 12:37:04 +0200 |
commit | 381aa46351b1d3d78dd3af10dd0bdc6c844ff70a (patch) | |
tree | 7e77bf1a29ab7d65587c759df4f30ab78c36d153 /dev-db | |
parent | media-sound/bluez-alsa: Copy config file to alsa datadir to preserve it (diff) | |
download | gentoo-381aa46351b1d3d78dd3af10dd0bdc6c844ff70a.tar.gz gentoo-381aa46351b1d3d78dd3af10dd0bdc6c844ff70a.tar.bz2 gentoo-381aa46351b1d3d78dd3af10dd0bdc6c844ff70a.zip |
dev-db/mysql-connector-c: survive malformed charset files
Bug: https://bugs.gentoo.org/737002
Package-Manager: Portage-3.0.3, Repoman-3.0.0
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/mysql-connector-c/files/mysql-connector-c-8.0.21-survive-malformed-charset-files.patch | 18 | ||||
-rw-r--r-- | dev-db/mysql-connector-c/mysql-connector-c-8.0.21-r1.ebuild (renamed from dev-db/mysql-connector-c/mysql-connector-c-8.0.21.ebuild) | 1 |
2 files changed, 19 insertions, 0 deletions
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 new file mode 100644 index 000000000000..72799f009c89 --- /dev/null +++ b/dev-db/mysql-connector-c/files/mysql-connector-c-8.0.21-survive-malformed-charset-files.patch @@ -0,0 +1,18 @@ +Description: don't crash on malformed charset files +Origin: https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1877504/comments/19 +Bug: https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1884809 +Bug: https://bugs.gentoo.org/737002 +Forwarded: workaround, not needed + +--- a/mysys/charset.cc ++++ b/mysys/charset.cc +@@ -922,7 +922,7 @@ size_t escape_quotes_for_mysql(CHARSET_I + + void charset_uninit() { + for (CHARSET_INFO *cs : all_charsets) { +- if (cs && cs->coll->uninit) { ++ if (cs && cs->coll && cs->coll->uninit) { + cs->coll->uninit(cs); + } + } + 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 index c6e4dad56ed7..2cd9add19642 100644 --- 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,6 +44,7 @@ PATCHES=( "${FILESDIR}"/${PN}-8.0.18-always-build-decompress-utilities.patch "${FILESDIR}"/${PN}-8.0.19-do-not-install-comp_err.patch "${FILESDIR}"/${PN}-8.0.21-libressl.patch + "${FILESDIR}"/${PN}-8.0.21-survive-malformed-charset-files.patch ) src_prepare() { |