public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/mysql-connector-c/, dev-db/mysql-connector-c/files/
Date: Wed, 19 Aug 2020 10:37:37 +0000 (UTC)	[thread overview]
Message-ID: <1597833424.381aa46351b1d3d78dd3af10dd0bdc6c844ff70a.whissi@gentoo> (raw)

commit:     381aa46351b1d3d78dd3af10dd0bdc6c844ff70a
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 19 10:35:35 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Wed Aug 19 10:37:04 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=381aa463

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 <AT> gentoo.org>

 ...ctor-c-8.0.21-survive-malformed-charset-files.patch | 18 ++++++++++++++++++
 ....0.21.ebuild => mysql-connector-c-8.0.21-r1.ebuild} |  1 +
 2 files changed, 19 insertions(+)

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 00000000000..72799f009c8
--- /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
similarity index 97%
rename from dev-db/mysql-connector-c/mysql-connector-c-8.0.21.ebuild
rename to dev-db/mysql-connector-c/mysql-connector-c-8.0.21-r1.ebuild
index c6e4dad56ed..2cd9add1964 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() {


             reply	other threads:[~2020-08-19 10:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-19 10:37 Thomas Deutschmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-09  3:14 [gentoo-commits] repo/gentoo:master commit in: dev-db/mysql-connector-c/, dev-db/mysql-connector-c/files/ Sam James
2023-04-09  5:31 Sam James
2020-08-09 21:01 Thomas Deutschmann
2020-01-20 19:26 Thomas Deutschmann
2019-10-16 21:40 Thomas Deutschmann
2019-08-22 20:02 Thomas Deutschmann
2019-08-02 14:38 Thomas Deutschmann
2019-06-11 19:09 Brian Evans
2015-08-11 19:52 Brian Evans

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1597833424.381aa46351b1d3d78dd3af10dd0bdc6c844ff70a.whissi@gentoo \
    --to=whissi@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox