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.
Go to file
Alexander Barkov 2ed148c8d7 MDEV-25402 Assertion `!str || str != Ptr' failed in String::copy
The assert inside String::copy() prevents copying from from "str"
if its own String::Ptr also points to the same memory.

The idea of the assert is that copy() performs memory reallocation,
and this reallocation can free (and thus invalidate) the memory pointed by Ptr,
which can lead to further copying from a freed memory.

The assert was incomplete: copy() can free the memory pointed by its Ptr
only if String::alloced is true!

If the String is not alloced, it is still safe to copy even from
the location pointed by Ptr.

This scenario demonstrates a safe copy():
  const char *tmp= "123";
  String str1(tmp, 3);
  String str2(tmp, 3);
  // This statement is safe:
  str2.copy(str1->ptr(), str1->length(), str1->charset(), cs_to, &errors);

Inside the copy() the parameter "str" is equal to String::Ptr in this example.
But it's still ok to reallocate the memory for str2, because str2
was a constant before the copy() call. Thus reallocation does not
make the memory pointed by str1->ptr() invalid.

Adjusting the assert condition to allow copying for constant strings.
2021-10-27 10:50:15 +04:00
BUILD
client MDEV-25444: mysql --binary-mode is not able to replay some mysqlbinlog outputs 2021-10-07 11:30:22 -06:00
cmake Fix MYSQL_MAINTAINER_MODE=ERR, on Windows, with Ninja , in 10.2 2021-09-11 15:19:42 +02:00
dbug cmake: fewer Build-Depends in SRPM 2021-05-22 21:56:51 +02:00
debian Unused flag creates cleaning issue (piuparts) 2021-08-20 12:44:05 +03:00
Docs
extra MDEV-26574 An improper locking bug due to unreleased lock in the ds_xbstream.cc 2021-09-15 14:55:45 +02:00
include pthread_yield() is depricated now, so use sched_yield() if possible. 2021-10-26 15:05:13 +02:00
libmariadb@735a7299db Update libmariadb 2021-10-20 16:04:29 +03:00
libmysqld cleanup: fix and generalize handle_manager thread 2021-01-24 11:35:55 +01:00
libservices
man MDEV-25444: mysql --binary-mode is not able to replay some mysqlbinlog outputs 2021-10-07 11:30:22 -06:00
mysql-test MDEV-25402 Assertion `!str || str != Ptr' failed in String::copy 2021-10-27 10:50:15 +04:00
mysys Safemalloc typo fix found by clang. 2021-10-26 15:05:13 +02:00
mysys_ssl MDEV-23925: Fixed warnings generated during compilation of mysys_ssl/openssl.c on MacOS 2020-10-21 17:43:23 +07:00
pcre Merge remote-tracking branch 'merge/merge-pcre' into 10.2 2021-07-27 18:51:32 +02:00
plugin MDEV-26556 An improper locking bug(s) due to unreleased lock. 2021-10-25 19:53:25 +04:00
randgen/conf
scripts MDEV-26360: Using hostnames breaks certificate validation 2021-09-24 11:31:27 +02:00
sql MDEV-25402 Assertion `!str || str != Ptr' failed in String::copy 2021-10-27 10:50:15 +04:00
sql-bench Merge 10.1 into 10.2 2020-07-01 12:03:55 +03:00
sql-common UBSAN: Fix a bit shift overflow 2020-09-23 12:42:30 +03:00
storage Fix tests for PLUGIN_PARTITION=NO 2021-10-27 08:54:37 +03:00
strings MDEV-24790 CAST('0e1111111111' AS DECIMAL(38,0)) returns a wrong result 2021-02-08 16:19:45 +04:00
support-files MDEV-26612 Two different ways to start MariaDB service can cause data corruption 2021-09-24 15:02:47 +07:00
tests mysql_client_test: test_bug40365 gcc-11.2.1 indentation complaint 2021-08-15 09:00:08 +10:00
unittest MDEV-24131: unittest stacktrace-t fails to compile (OpenBSD) 2021-01-28 13:27:00 +11:00
vio Cleanup - reduce duplicate code, in SSL IO error handling. 2021-03-25 11:16:54 +01:00
win Speedup build of the MSI package 2021-09-10 12:02:44 +02:00
wsrep
zlib MDEV-24034 Policy CMP0075 is not set during compile 2020-12-15 12:27:13 +01:00
.clang-format
.gitattributes
.gitignore Xcode compatibility update 2021-10-12 18:10:56 -04:00
.gitmodules
.travis.compiler.sh
.travis.yml Travis-CI: Remove builds that always fail to make CI useful again 2020-05-17 15:52:35 +03:00
appveyor.yml Try to fix appveyor to prevent occasional failing of mysql_client_test 2021-10-26 14:33:07 +02:00
BUILD-CMAKE
CMakeLists.txt Define minbuild target for 10.2 2021-09-11 15:19:42 +02:00
config.h.cmake Replace mallinfo with mallinfo2 on supported systems 2021-03-27 08:40:04 +11:00
configure.cmake Add feature summary at the end of cmake. 2021-07-21 10:22:56 +03:00
COPYING
CREDITS Update sponsors 2021-03-12 07:02:29 +11:00
INSTALL-SOURCE
INSTALL-WIN-SOURCE
KNOWN_BUGS.txt
README.md Remove Travis CI status 2021-06-21 08:18:34 +03:00
THIRDPARTY
VERSION bump the VERSION 2021-08-05 09:11:46 -04: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