MFH: r461733
databases/mariadb102-server: Security update to 10.2.13 - Unbreak OQGraph engine [1] (collision in setbit with sys/param.h) PR: 224089 [1] Reported by: jbeich Security: e3445736-fd01-11e7-ac58-b499baebfeaf Approved by: ports-secteam (riggs)
This commit is contained in:
parent
f703771916
commit
eaf07c13dc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/branches/2018Q1/; revision=461933
5 changed files with 50 additions and 7 deletions
|
@ -1,7 +1,6 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= mariadb
|
||||
PORTREVISION= 1
|
||||
PKGNAMESUFFIX= 102-client
|
||||
|
||||
COMMENT= Multithreaded SQL database (client)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME?= mariadb
|
||||
PORTVERSION= 10.2.11
|
||||
PORTREVISION?= 2
|
||||
PORTVERSION= 10.2.13
|
||||
PORTREVISION?= 0
|
||||
CATEGORIES= databases ipv6
|
||||
MASTER_SITES= http://mirrors.supportex.net/${SITESDIR}/ \
|
||||
http://mirror2.hs-esslingen.de/pub/Mirrors/${SITESDIR}/ \
|
||||
|
@ -30,7 +30,7 @@ PKGMESSAGE= ${WRKDIR}/pkg-message
|
|||
SLAVEDIRS= databases/mariadb102-client
|
||||
USES= bison:build cmake:noninja compiler:c++11-lib cpe iconv:translit libedit ncurses shebangfix ssl
|
||||
USE_LDCONFIG= ${PREFIX}/lib/mysql
|
||||
SHEBANG_FILES= scripts/*.sh
|
||||
SHEBANG_FILES= scripts/*.sh storage/rocksdb/myrocks_hotbackup
|
||||
SITESDIR= mariadb/mariadb-${PORTVERSION}/source
|
||||
DOCSDIR= ${PREFIX}/share/doc/mysql
|
||||
|
||||
|
@ -155,6 +155,7 @@ MROONGA_IMPLIES= LZ4
|
|||
MSGPACK_LIB_DEPENDS= libmsgpackc.so:devel/msgpack
|
||||
OQGRAPH_LIB_DEPENDS= libboost_system.so:devel/boost-libs \
|
||||
libJudy.so:devel/judy
|
||||
ROCKSDB_USES= python
|
||||
SNAPPY_CMAKE_OFF= -DWITH_INNODB_SNAPPY=OFF -DWITH_ROCKSDB_snappy=OFF
|
||||
SNAPPY_CMAKE_ON= -DWITH_INNODB_SNAPPY=ON -DWITH_ROCKSDB_snappy=ON
|
||||
SNAPPY_LIB_DEPENDS= libsnappy.so:archivers/snappy
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
TIMESTAMP = 1512075561
|
||||
SHA256 (mariadb-10.2.11.tar.gz) = 63555a810db905175a8bd714f6ec77d1b1a11fcfa6d4b97b448cf5bcb6caa3e8
|
||||
SIZE (mariadb-10.2.11.tar.gz) = 72772830
|
||||
TIMESTAMP = 1518540665
|
||||
SHA256 (mariadb-10.2.13.tar.gz) = 272e7ed9300a05da9e02f8217a01ed3447c4f5a36a12e5233d62cc7c586fc753
|
||||
SIZE (mariadb-10.2.13.tar.gz) = 72591913
|
||||
|
|
40
databases/mariadb102-server/files/patch-oqgraph-MDEV-15291
Normal file
40
databases/mariadb102-server/files/patch-oqgraph-MDEV-15291
Normal file
|
@ -0,0 +1,40 @@
|
|||
--- storage/oqgraph/oqgraph_judy.cc.orig 2018-02-12 15:01:28 UTC
|
||||
+++ storage/oqgraph/oqgraph_judy.cc
|
||||
@@ -27,7 +27,7 @@
|
||||
/*
|
||||
Currently the only active code that can return error is:
|
||||
judy_bitset::reset()/J1U()
|
||||
- judy_bitset::setbit()/J1S()
|
||||
+ judy_bitset::jsetbit()/J1S()
|
||||
|
||||
In most cases errors are either about wrong parameters passed to Judy
|
||||
functions or internal structures corruption. These definitely deserve
|
||||
@@ -60,7 +60,7 @@ bool open_query::judy_bitset::test(size_
|
||||
return rc == 1;
|
||||
}
|
||||
|
||||
-open_query::judy_bitset& open_query::judy_bitset::setbit(size_type n)
|
||||
+open_query::judy_bitset& open_query::judy_bitset::jsetbit(size_type n)
|
||||
{
|
||||
int rc;
|
||||
J1S(rc, array, n);
|
||||
--- storage/oqgraph/oqgraph_judy.h.orig 2018-02-12 15:01:28 UTC
|
||||
+++ storage/oqgraph/oqgraph_judy.h
|
||||
@@ -63,7 +63,7 @@ namespace open_query
|
||||
if (!val)
|
||||
return reset(n);
|
||||
else
|
||||
- return setbit(n);
|
||||
+ return jsetbit(n);
|
||||
}
|
||||
|
||||
judy_bitset& set(const judy_bitset& src);
|
||||
@@ -115,7 +115,7 @@ namespace open_query
|
||||
private:
|
||||
mutable void* array;
|
||||
|
||||
- judy_bitset& setbit(size_type n);
|
||||
+ judy_bitset& jsetbit(size_type n);
|
||||
};
|
||||
}
|
||||
|
|
@ -18,6 +18,7 @@ bin/mysql_embedded
|
|||
bin/mysql_fix_extensions
|
||||
bin/mysql_install_db
|
||||
%%ROCKSDB%%bin/mysql_ldb
|
||||
%%ROCKSDB%%bin/myrocks_hotbackup
|
||||
bin/mysql_plugin
|
||||
bin/mysql_secure_installation
|
||||
bin/mysql_setpermission
|
||||
|
@ -162,3 +163,5 @@ man/man8/mysqld.8.gz
|
|||
%%DATADIR%%/mysqld_multi.server
|
||||
%%DATADIR%%/wsrep.cnf
|
||||
%%DATADIR%%/wsrep_notify
|
||||
%%MROONGA%%share/groonga-normalizer-mysql/README.md
|
||||
%%MROONGA%%share/groonga/README.md
|
||||
|
|
Loading…
Reference in a new issue