MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
Dmitry Shulga a65d01a4cf MDEV-23182: Server crashes in Item::fix_fields_if_needed / table_value_constr::prepare upon 2nd execution of PS
Repeating execution of a query containing the clause IN with string literals
in environment where the server variable in_predicate_conversion_threshold
is set results in server abnormal termination in case the query is run
as a Prepared Statement and conversion of charsets for string values in the
query are required.

The reason for server abnormal termination is that instances of the class
Item_string created on transforming the IN clause into subquery were created
on runtime memory root that is deallocated on finishing execution of Prepared
statement. On the other hand, references to Items placed on deallocated memory
root still exist in objects of the class table_value_constr. Subsequent running
of the same prepared statement leads to dereferencing of pointers to already
deallocated memory that could lead to undefined behaviour.

To fix the issue the values being pushed into a values list for TVC are created
by cloning their original items. This way the cloned items are allocate on
the PS memroot and as consequences no dangling pointer does more exist.
2021-12-16 10:14:57 +07:00
BUILD MDEV 22785 Crash with prepared statements and NEXTVAL() 2021-08-26 07:07:46 +03:00
client Merge 10.2 into 10.3 2021-11-09 08:26:59 +02:00
cmake Merge branch '10.2' into 10.3 2021-12-06 22:23:07 +01:00
dbug Merge 10.2 into 10.3 2021-05-24 09:38:49 +03:00
debian Merge 10.2 into 10.3 2021-08-23 10:14:01 +03:00
Docs Merge branch '10.2' into 10.3 2019-06-14 07:36:47 +02:00
extra Merge 10.2 into 10.3 2021-11-29 10:33:06 +02:00
include Merge 10.2 into 10.3 2021-10-28 07:50:05 +03:00
libmariadb@735a7299db Update libmariadb 2021-10-20 16:04:29 +03:00
libmysqld Fix of ppc64 by Wlad 2021-05-05 17:21:05 +02:00
libservices Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
man Merge 10.2 into 10.3 2021-10-13 11:38:21 +03:00
mysql-test MDEV-23182: Server crashes in Item::fix_fields_if_needed / table_value_constr::prepare upon 2nd execution of PS 2021-12-16 10:14:57 +07:00
mysys Merge branch '10.2' into 10.3 2021-12-06 22:23:07 +01:00
mysys_ssl Merge 10.2 into 10.3 2020-10-22 08:26:28 +03:00
pcre Merge branch '10.2' into 10.3 2021-07-29 13:51:02 +02:00
plugin Merge 10.2 into 10.3 2021-11-29 10:33:06 +02:00
randgen/conf Group commit for maria engine. 2010-02-12 15:12:28 +02:00
scripts MDEV-27181: Galera SST scripts should use ssl_capath for CA directory 2021-12-14 03:32:35 +01:00
sql MDEV-23182: Server crashes in Item::fix_fields_if_needed / table_value_constr::prepare upon 2nd execution of PS 2021-12-16 10:14:57 +07:00
sql-bench Merge 10.2 into 10.3 2020-07-02 06:17:51 +03:00
sql-common Merge branch '10.2' into 10.3 2020-09-28 17:27:42 +05:30
storage MDEV-21108 Add option for setting install paths of groonga 2021-12-02 16:40:29 +02:00
strings Merge 10.2 into 10.3 2021-11-09 08:26:59 +02:00
support-files Merge 10.2 into 10.3 2021-09-24 16:51:12 +03:00
tests Merge 10.2 into 10.3 2021-08-18 12:26:58 +03:00
unittest Merge branch '10.2' into 10.3 2021-12-06 22:23:07 +01:00
vio MDEV-27181: Galera SST scripts should use ssl_capath for CA directory 2021-12-14 03:32:35 +01:00
win Merge 10.2 into 10.3 2021-11-17 13:55:54 +02:00
wsrep cleanup: use predefined CMAKE_DL_LIBS 2020-10-23 13:37:26 +02:00
zlib Merge branch '10.2' into 10.3 2020-12-23 19:28:02 +01:00
.clang-format .clang-format - do not sort include files. 2019-12-03 22:22:23 +01:00
.gitattributes Merge branch '10.0' into 10.1 2018-05-05 14:01:59 +02:00
.gitignore Merge 10.2 into 10.3 2021-10-13 11:38:21 +03:00
.gitmodules Use https instead of ssh(git@) for rocksdb submodule. 2016-11-15 10:00:19 -05:00
.travis.compiler.sh travis: increase ccache size for linux jobs 2018-11-08 18:30:44 +04:00
.travis.yml travis: update osx to xcode12u in attempt to solve openssl build failure 2020-09-02 11:23:18 +10:00
appveyor.yml appveyor - do not use buggy cygwin bison. 2021-11-04 07:34:55 +01:00
BUILD-CMAKE Minor spelling fixes in code comments, docs and output 2018-01-12 16:49:02 +02:00
CMakeLists.txt Merge branch '10.2' into 10.3 2021-09-11 16:21:36 +02:00
config.h.cmake Merge 10.2 into 10.3 2021-03-27 16:11:26 +02:00
configure.cmake Link with libatomic to enable C11 atomics support 2021-10-19 16:08:51 +03:00
COPYING Update FSF Address 2019-05-11 21:29:06 +03:00
CREDITS Update sponsors 2021-03-12 07:02:29 +11:00
INSTALL-SOURCE Update AskMonty and Atlassian references to MariaDB 2016-03-08 15:24:01 +02:00
INSTALL-WIN-SOURCE Update AskMonty and Atlassian references to MariaDB 2016-03-08 15:24:01 +02:00
KNOWN_BUGS.txt various documentation updates 2012-06-18 16:57:58 -04:00
README.md Remove Travis CI status 2021-06-21 08:18:34 +03:00
THIRDPARTY Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
VERSION bump the VERSION 2021-11-08 12:56:18 -05:00

Code status:

  • Appveyor CI status ci.appveyor.com

MariaDB: drop-in replacement for MySQL

MariaDB is designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.

MariaDB is brought to you by the MariaDB Foundation. Please read the CREDITS file for details about the MariaDB Foundation, and who is developing MariaDB.

MariaDB is developed by many of the original developers of MySQL who now work for the MariaDB Foundation and the MariaDB Corporation, and by many people in the community.

MySQL, which is the base of MariaDB, is a product and trademark of Oracle Corporation, Inc. For a list of developers and other contributors, see the Credits appendix. You can also run 'SHOW authors' to get a list of active contributors.

A description of the MariaDB project and a manual can be found at:

https://mariadb.org/

https://mariadb.com/kb/en/

https://mariadb.com/kb/en/mariadb-vs-mysql-features/

https://mariadb.com/kb/en/mariadb-versus-mysql-features/

https://mariadb.com/kb/en/mariadb-versus-mysql-compatibility/

As MariaDB is a full replacement of MySQL, the MySQL manual at http://dev.mysql.com/doc is generally applicable.

Help:

More help is available from the Maria Discuss mailing list https://launchpad.net/~maria-discuss and the #maria IRC channel on Freenode.

Licensing:


NOTE:

MariaDB is specifically available only under version 2 of the GNU General Public License (GPLv2). (I.e. Without the "any later version" clause.) This is inherited from MySQL. Please see the README file in the MySQL distribution for more information.

License information can be found in the COPYING file. Third party license information can be found in the THIRDPARTY file.


Bug Reports:

Bug and/or error reports regarding MariaDB should be submitted at: https://jira.mariadb.org

For reporting security vulnerabilities see: https://mariadb.org/about/security-policy/

Bugs in the MySQL code can also be submitted at: https://bugs.mysql.com

The code for MariaDB, including all revision history, can be found at: https://github.com/MariaDB/server