diff --git a/mysql-c99.patch b/mysql-c99.patch new file mode 100644 index 0000000000000000000000000000000000000000..935e64f07aabfed0610ebe3abad74e95e836db3e --- /dev/null +++ b/mysql-c99.patch @@ -0,0 +1,12 @@ +diff -ur mysql-8.0.35.orig/plugin/innodb_memcached/daemon_memcached/daemon/memcached.c mysql-8.0.35/plugin/innodb_memcached/daemon_memcached/daemon/memcached.c +--- mysql-8.0.35.orig/plugin/innodb_memcached/daemon_memcached/daemon/memcached.c 2023-10-12 13:45:01.000000000 +0200 ++++ mysql-8.0.35/plugin/innodb_memcached/daemon_memcached/daemon/memcached.c 2023-12-19 10:48:46.718006624 +0100 +@@ -4070,7 +4070,7 @@ + do { + while(key_token->length != 0) { + /* whether there are more keys to fetch */ +- bool next_get = (key_token + 1)->value; ++ bool next_get = (key_token + 1)->value != NULL; + + key = key_token->value; + nkey = key_token->length; diff --git a/mysql.spec b/mysql.spec index 20fdbe079636567adb8f0934ebecef48e24953e2..afc83a71cf70b84224e8ae07d6bb95a64da32583 100644 --- a/mysql.spec +++ b/mysql.spec @@ -1,5 +1,4 @@ -%define anolis_release 1 -# Name of the package without any prefixes +%define anolis_release 2\n# Name of the package without any prefixes %global pkg_name %{name} %global pkgnamepatch mysql @@ -122,7 +121,7 @@ Patch113: add-loongarch64-support-for-mysql.patch #add support for riscv64 Patch114: riscv-lock-free.patch - +Patch55: %{pkgnamepatch}-c99.patch\n BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libaio-devel @@ -937,6 +936,8 @@ fi %endif %changelog + | + * Tue Jul 29 2025 wenxin - 8.0.43-1 - update 8.0.43 - fix cve CVE-2025-50081