Accepting request 1000487 from server:database
OBS-URL: https://build.opensuse.org/request/show/1000487 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mariadb?expand=0&rev=124
This commit is contained in:
commit
6ceb04352e
@ -1,65 +0,0 @@
|
||||
From b69191bbb2278fce92b470e8e3abafe048166e39 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= <marko.makela@mariadb.com>
|
||||
Date: Fri, 18 Feb 2022 16:31:54 +0200
|
||||
Subject: [PATCH] MDEV-26645: Fix UB in Item_func_plus and Item_func_minus
|
||||
|
||||
An integer overflow in an expression like a+b or a-b is undefined behavior.
|
||||
The compiler is allowed to assume that no such overflow is possible,
|
||||
and optimize away some code accordingly.
|
||||
|
||||
Item_func_plus::int_op(), Item_func_minus::int_op(): Always check
|
||||
for overflow.
|
||||
|
||||
Depending on the compiler and the compilation options, a test might fail:
|
||||
|
||||
CURRENT_TEST: main.func_math
|
||||
mysqltest: At line 425: query 'SELECT 9223372036854775807 + 9223372036854775807' succeeded - should have failed with errno 1690...
|
||||
|
||||
A similar bug had been fixed earlier in
|
||||
commit 328edf8560dbf1941ce314fa112e0db05d9f97f1.
|
||||
---
|
||||
sql/item_func.cc | 12 ++----------
|
||||
1 file changed, 2 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/sql/item_func.cc b/sql/item_func.cc
|
||||
index 60efc55d8785c..452bc74cc8215 100644
|
||||
--- a/sql/item_func.cc
|
||||
+++ b/sql/item_func.cc
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright (c) 2000, 2015, Oracle and/or its affiliates.
|
||||
- Copyright (c) 2009, 2021, MariaDB
|
||||
+ Copyright (c) 2009, 2022, MariaDB
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -1163,14 +1163,10 @@ longlong Item_func_plus::int_op()
|
||||
}
|
||||
}
|
||||
|
||||
-#ifndef WITH_UBSAN
|
||||
- res= val0 + val1;
|
||||
-#else
|
||||
if (res_unsigned)
|
||||
res= (longlong) ((ulonglong) val0 + (ulonglong) val1);
|
||||
else
|
||||
- res= val0+val1;
|
||||
-#endif /* WITH_UBSAN */
|
||||
+ res= val0 + val1;
|
||||
|
||||
return check_integer_overflow(res, res_unsigned);
|
||||
|
||||
@@ -1333,14 +1329,10 @@ longlong Item_func_minus::int_op()
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
-#ifndef WITH_UBSAN
|
||||
- res= val0 - val1;
|
||||
-#else
|
||||
if (res_unsigned)
|
||||
res= (longlong) ((ulonglong) val0 - (ulonglong) val1);
|
||||
else
|
||||
res= val0 - val1;
|
||||
-#endif /* WITH_UBSAN */
|
||||
|
||||
return check_integer_overflow(res, res_unsigned);
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:da286919ffc9c913282202349709b6ba4ebcd342815e8dae0aa6b6bd8f515cd4
|
||||
size 86043006
|
@ -1,6 +0,0 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iF0EABECAB0WIQQZk2nlQEvV/H0v5DvLywgqG7lD2wUCYgb2EAAKCRDLywgqG7lD
|
||||
279xAKC5kHZ+FJJ4BRRskU8p3peeWH5OIACg7Ju1GgkBRYnnEI2lgB3t43cMvhk=
|
||||
=k2G9
|
||||
-----END PGP SIGNATURE-----
|
3
mariadb-10.8.3.tar.gz
Normal file
3
mariadb-10.8.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:887eadc55176ac1ead1fccfc89ade4b5990ef192745ad4dcd879acb41c050892
|
||||
size 89719616
|
6
mariadb-10.8.3.tar.gz.asc
Normal file
6
mariadb-10.8.3.tar.gz.asc
Normal file
@ -0,0 +1,6 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iF0EABECAB0WIQQZk2nlQEvV/H0v5DvLywgqG7lD2wUCYoWNuwAKCRDLywgqG7lD
|
||||
2xQdAJoCVAEX98CNtgMpukqa5UY+LZh1JwCgpIvjNn3Sbo9ry52uX9mTDmGdYws=
|
||||
=/O+Q
|
||||
-----END PGP SIGNATURE-----
|
@ -1,3 +1,38 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 31 15:06:37 UTC 2022 - Danilo Spinella <danilo.spinella@suse.com>
|
||||
|
||||
- Update mysql-systemd-helper to be aware of custom group, bsc#1200105
|
||||
- Respect socket setting in mysql-systemd-helper
|
||||
- Fix my_print_defaults call in mysql-system-helper
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 2 23:36:11 UTC 2022 - chris@computersalat.de
|
||||
|
||||
- use the better collation as default
|
||||
* DDEFAULT_COLLATION=utf8mb4_unicode_520_ci
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 27 06:19:45 UTC 2022 - Danilo Spinella <danilo.spinella@suse.com>
|
||||
|
||||
- Update list of skipped tests
|
||||
* suse_skipped_tests.list
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 23 09:03:33 UTC 2022 - Danilo Spinella <danilo.spinella@suse.com>
|
||||
|
||||
- Update to 10.8.3:
|
||||
* release notes and changelog:
|
||||
https://mariadb.com/kb/en/library/mariadb-1083-release-notes
|
||||
https://mariadb.com/kb/en/library/mariadb-1083-changelog
|
||||
https://mariadb.com/kb/en/library/mariadb-1082-release-notes
|
||||
https://mariadb.com/kb/en/library/mariadb-1082-changelog
|
||||
https://mariadb.com/kb/en/library/mariadb-1081-release-notes
|
||||
https://mariadb.com/kb/en/library/mariadb-1081-changelog
|
||||
https://mariadb.com/kb/en/library/mariadb-1080-release-notes
|
||||
https://mariadb.com/kb/en/library/mariadb-1080-changelog
|
||||
- Remove upstreamed patch:
|
||||
* bsc1194828.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 8 09:35:54 UTC 2022 - Danilo Spinella <danilo.spinella@suse.com>
|
||||
|
||||
|
12
mariadb.spec
12
mariadb.spec
@ -52,7 +52,7 @@
|
||||
# Build with cracklib plugin when cracklib-dict-full >= 2.9.0 is available
|
||||
%define with_cracklib_plugin 0
|
||||
Name: mariadb
|
||||
Version: 10.7.3
|
||||
Version: 10.8.3
|
||||
Release: 0
|
||||
Summary: Server part of MariaDB
|
||||
License: SUSE-GPL-2.0-with-FLOSS-exception
|
||||
@ -80,8 +80,6 @@ Patch6: mariadb-10.4.12-harden_setuid.patch
|
||||
Patch7: mariadb-10.4.12-fix-install-db.patch
|
||||
Patch9: func_math_tests_MDEV-26645.diff
|
||||
Patch10: fix-pamdir.patch
|
||||
# PATCH-FIX-UPSTREAM danilo.spinella@suse.com bsc#1194828 MDEV-26645
|
||||
Patch11: bsc1194828.patch
|
||||
# needed for bison SQL parser and wsrep API
|
||||
BuildRequires: bison
|
||||
BuildRequires: cmake
|
||||
@ -367,7 +365,6 @@ find . -name "*.jar" -type f -exec rm --verbose -f {} \;
|
||||
%if 0%{?suse_version} > 1500
|
||||
%patch10 -p1
|
||||
%endif
|
||||
%patch11 -p1
|
||||
|
||||
cp %{_sourcedir}/suse-test-run .
|
||||
|
||||
@ -423,7 +420,7 @@ export CXXFLAGS="$CFLAGS -felide-constructors"
|
||||
-DWITH_COMMENT="MariaDB rpm" \
|
||||
-DWITH_EXTRA_CHARSET=all \
|
||||
-DDEFAULT_CHARSET=utf8mb4 \
|
||||
-DDEFAULT_COLLATION=utf8mb4_general_ci \
|
||||
-DDEFAULT_COLLATION=utf8mb4_unicode_520_ci \
|
||||
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
|
||||
-DWITH_PERFSCHEMA_STORAGE_ENGINE=1 \
|
||||
%if 0%{with_oqgraph} < 1
|
||||
@ -611,10 +608,10 @@ fi
|
||||
|
||||
%if %{with galera}
|
||||
# mariadb-galera.files
|
||||
filelist galera_new_cluster galera_recovery wsrep_sst_common wsrep_sst_mariabackup wsrep_sst_mysqldump wsrep_sst_rsync wsrep_sst_rsync_wan >mariadb-galera.files
|
||||
filelist galera_new_cluster galera_recovery wsrep_sst_common wsrep_sst_mariabackup wsrep_sst_mysqldump wsrep_sst_rsync wsrep_sst_rsync_wan wsrep_sst_backup >mariadb-galera.files
|
||||
touch mariadb-galera-exclude.files
|
||||
%else
|
||||
filelist_excludes galera_new_cluster galera_recovery wsrep_sst_common wsrep_sst_mariabackup wsrep_sst_mysqldump wsrep_sst_rsync wsrep_sst_rsync_wan >mariadb-galera-exclude.files
|
||||
filelist_excludes galera_new_cluster galera_recovery wsrep_sst_common wsrep_sst_mariabackup wsrep_sst_mysqldump wsrep_sst_rsync wsrep_sst_rsync_wan wsrep_sst_backup >mariadb-galera-exclude.files
|
||||
echo "%exclude %{_datadir}/mysql/systemd/use_galera_new_cluster.conf" >>mariadb-galera-exclude.files
|
||||
echo "%exclude %{_datadir}/mysql/wsrep_notify" >>mariadb-galera-exclude.files
|
||||
%endif
|
||||
@ -941,6 +938,7 @@ exit 0
|
||||
|
||||
%files bench -f mariadb-bench.files
|
||||
%{_datadir}/sql-bench
|
||||
%{_datadir}/mysql/mini-benchmark
|
||||
|
||||
%files test -f mariadb-test.files
|
||||
%{_bindir}/test-connect-t
|
||||
|
@ -23,7 +23,7 @@ read_config() {
|
||||
|
||||
# Read options - important for multi setup
|
||||
if [[ -n "$INSTANCE" ]]; then
|
||||
opts="$(/usr/bin/my_print_defaults mysqld mysqld_multi "$INSTANCE" --defaults-extra-file=/etc/my${INSTANCE}.cnf)"
|
||||
opts="$(/usr/bin/my_print_defaults --defaults-extra-file=/etc/my${INSTANCE}.cnf mysqld mysqld_multi "$INSTANCE")"
|
||||
tmp_opts="$opts"
|
||||
config="/etc/my${INSTANCE}.cnf"
|
||||
else
|
||||
@ -39,6 +39,7 @@ read_config() {
|
||||
--socket=*) socket="$(echo "$arg" | sed -e 's/^[^=]*=//')" ;;
|
||||
--datadir=*) datadir="$(echo "$arg" | sed -e 's/^[^=]*=//')" ;;
|
||||
--user=*) mysql_daemon_user="$(echo "$arg" | sed -e 's/^[^=]*=//')" ;;
|
||||
--group=*) mysql_daemon_group="$(echo "$arg" | sed -e 's/^[^=]*=//')" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
@ -171,7 +172,8 @@ mysql_start() {
|
||||
exec /usr/sbin/mysqld \
|
||||
--defaults-file="$config" \
|
||||
$ignore_db_dir \
|
||||
--user="$mysql_daemon_user"
|
||||
--user="$mysql_daemon_user" \
|
||||
--socket="$socket"
|
||||
}
|
||||
|
||||
# We rely on output in english at some points
|
||||
|
@ -80,3 +80,10 @@ main.selectivity_no_engine : since 10.7.3 - x86_64
|
||||
main.mysql_upgrade : since 10.7.3 - x86_64
|
||||
perfschema.privilege_table_io : since 10.7.3 - x86_64
|
||||
|
||||
perfschema.threads_mysql : since 10.8.3 - x86_64 (MDEV-28674)
|
||||
disks.disks : since 10.8.3 - x86_64
|
||||
disks.disks_notembedded : since 10.8.3 - x86_64
|
||||
innodb.row_size_error_log_warnings_3 : since 10.8.3 - s390x
|
||||
main.func_json_notembedded : since 10.8.3 - s390x, ppc64
|
||||
main.func_math : since 10.8.3 - ppc64le
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user