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 639605a919 Fixed bug#11840395 (formerly known as bug#60347: THE STRING "VERSIONDATA"
SEEMS TO BE 'LEAKING' INTO THE SCHEMA NAME SPACE)
and bug#12428824 (Parser stack overflow and crash in sp_add_used_routine
with obscure query).

The first problem was that attempts to call a stored function by
its fully qualified name ended up with unwarranted error "ERROR 1305
(42000): FUNCTION someMixedCaseDb.my_function_name does not exist"
if this function belonged to a schema that had uppercase letters in
its name AND --lower_case_table_names was equal to either 1 or 2.

The second problem was that 5.5 version of MySQL server might have
crashed when a user tried to call stored function with too long name
or too long database name (i.e if a function and database name combined
occupied more than 2*3*64 bytes in utf8). This issue didn't affect
versions of server < 5.5.
 
The first problem was caused by the fact that in cases when a stored
function was called by its fully qualified name we didn't lowercase
name of its schema before performing look up of the function in
mysql.proc table even although lower_case_table_names mode was on.
As result we were unable to find this function since during its
creation we store lowercased version of schema name in the system
table in this mode and field for schema name uses binary collation.

Calls to stored functions were unaffected by this problem since for
them schema name is converted to lowercase as necessary.

The reason for the second bug was that MySQL Server didn't check length
of function name and database name before proceeding with execution of
stored function. As a consequence too long database name or function
name caused buffer overruns in places where the code assumes that their
length is within fixed limits, like mdl_key_init() in 5.5.

Again this issue didn't affect calls to stored procedures as for them
length of schema name and procedure name are properly checked.

This patch fixes both these bugs by adding calls to check_db_name()
and check_routine_name() to grammar rule which corresponds to a call
to a stored function. These functions ensure that length of database
name and function name for routine called is within standard limit.
Moreover call to check_db_name() handles conversion of database name
to lowercase if --lower_case_table_names mode is on.

Note that even although the second issue seems to be only reproducible
in 5.5 we still add code fixing it to 5.1 to be on the safe side (and
make code a bit more robust against possible future changes).
2011-06-09 23:30:52 +07:00
.bzr-mysql merge 2010-12-17 14:44:35 +02:00
BitKeeper
BUILD Merge 2010-12-29 00:47:05 +01:00
client BUG#12354268 2011-05-06 00:54:36 +01:00
cmd-line-utils Bug#11757855 - 49967: built-in libedit doesn't read 2011-04-29 18:52:46 +05:30
config/ac-macros
dbug Merge 2010-12-29 00:47:05 +01:00
Docs
extra BUG#11762616: BUG#55229: 'POSTION' 2011-05-06 00:46:53 +01:00
include BUG 11763056 - 55721: AIX 5.1.50 build failing, cannot locate bzero 2011-05-27 08:09:25 -03:00
libmysql Bug#11900714 REMOVE LGPL LICENSED FILES IN MYSQL 5.1 2011-03-28 10:47:30 +02:00
libmysql_r
libmysqld Bug#11764633 : 57491: THD->MAIN_DA.IS_OK() ASSERT IN EMBEDDED 2011-05-18 20:10:01 +05:30
man Merge 2010-12-29 00:47:05 +01:00
mysql-test Fixed bug#11840395 (formerly known as bug#60347: THE STRING "VERSIONDATA" 2011-06-09 23:30:52 +07:00
mysys Merged 5.0-security->5.1-security 2011-05-04 14:29:23 +03:00
netware
plugin Bug #11763135: 55812: MYSQL AB SHOULD NOT BE AUTHOR, EVEN IN EXAMPLE 2011-03-21 17:54:40 +02:00
regex Fixed bug#58026 - massive recursion and crash in regular expression 2011-02-04 10:47:46 +06:00
scripts merge mysql-5.0-security->mysql-5.1-security 2011-03-21 16:03:35 +02:00
server-tools Merge 2010-12-29 00:47:05 +01:00
sql Fixed bug#11840395 (formerly known as bug#60347: THE STRING "VERSIONDATA" 2011-06-09 23:30:52 +07:00
sql-bench
sql-common Bug#11889186 60503: CRASH IN MAKE_DATE_TIME WITH DATE_FORMAT / STR_TO_DATE COMBINATION 2011-04-27 11:35:57 +04:00
storage merge of mysql-5.1->mysql-5.1-security 2011-06-06 16:53:46 +03:00
strings auto-merge Bug#11762799/Bug#55436 2011-05-12 03:41:51 +01:00
support-files Fix Bug #56581 RPM scripts use hardcoded datadir location 2011-02-03 18:16:22 +01:00
tests Fixed Bug#11764168 "56976: SEVERE DENIAL OF SERVICE IN PREPARED STATEMENTS". 2011-03-15 17:36:12 +06:00
unittest Followup to Bug #11752069 (former bug 43152) 2011-02-16 18:19:10 +01:00
vio BUG#11762616: BUG#55229: 'POSTION' 2011-05-06 00:46:53 +01:00
win Added support for VS10. 2011-03-28 13:43:30 +03:00
zlib
.bzrignore merge 2011-04-20 18:00:50 +02:00
.cvsignore
CMakeLists.txt fixing 38697/11749301 2011-03-21 20:23:39 +01:00
configure.in Raise version number after cloning 5.1.58 2011-06-09 17:41:20 +02:00
COPYING
INSTALL-SOURCE
INSTALL-WIN-SOURCE
Makefile.am Merge 2010-12-29 00:47:05 +01:00
README Removed the "Third-Party Component Notices" part from README 2011-03-16 23:07:05 +01:00

MySQL Server 5.1

This is a release of MySQL, a dual-license SQL database server.
For the avoidance of doubt, this particular copy of the software 
is released under the version 2 of the GNU General Public License. 
MySQL is brought to you by Oracle.

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

License information can be found in the COPYING file.

MySQL FOSS License Exception
We want free and open source software applications under certain
licenses to be able to use specified GPL-licensed MySQL client
libraries despite the fact that not all such FOSS licenses are
compatible with version 2 of the GNU General Public License.  
Therefore there are special exceptions to the terms and conditions 
of the GPLv2 as applied to these client libraries, which are 
identified and described in more detail in the FOSS License 
Exception at 
<http://www.mysql.com/about/legal/licensing/foss-exception.html>.

This distribution may include materials developed by third
parties. For license and attribution notices for these
materials, please refer to the documentation that accompanies
this distribution (see the "Licenses for Third-Party Components"
appendix) or view the online documentation at 
<http://dev.mysql.com/doc/>.

GPLv2 Disclaimer
For the avoidance of doubt, except that if any license choice
other than GPL or LGPL is available it will apply instead, 
Oracle elects to use only the General Public License version 2 
(GPLv2) at this time for any software where a choice of GPL 
license versions is made available with the language indicating 
that GPLv2 or any later version may be used, or where a choice 
of which version of the GPL is applied is otherwise unspecified.

For further information about MySQL or additional documentation, 
see:
- The latest information about MySQL: http://www.mysql.com
- The current MySQL documentation: http://dev.mysql.com/doc

Some Reference Manual sections of special interest:
- If you are migrating from an older version of MySQL, please 
  read the "Upgrading from..." section.
- To see what MySQL can do, take a look at the features section.
- For installation instructions, see the Installing and Upgrading
  chapter.
- For the new features/bugfix history, see the MySQL Change History 
  appendix.

You can browse the MySQL Reference Manual online or download it 
in any of several formats at the URL given earlier in this file.
Source distributions include a local copy of the manual in the
Docs directory.