summaryrefslogtreecommitdiff
path: root/strings
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | 5.3 mergeSergei Golubchik2013-04-121-2/+6
|\ \ \ \ \ \ | | |_|/ / / | |/| | | |
| * | | | | 5.2 mergeSergei Golubchik2013-04-111-2/+6
| |\ \ \ \ \ | | | |_|/ / | | |/| | |
| | * | | | 5.1 mergeSergei Golubchik2013-04-111-2/+6
| | |\ \ \ \ | | | | |_|/ | | | |/| |
| | | * | | MDEV-4244 [PATCH] Buffer overruns and use-after-free errorsSergei Golubchik2013-04-061-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | fixes for gcc 4.8 - compilation warnings and -fsanitize=address
* | | | | | MDEV-4243 Warnings/errors while compiling with clangSergei Golubchik2013-03-281-1/+1
| | | | | |
* | | | | | 5.3->5.5 mergeSergei Golubchik2013-03-101-1/+3
|\ \ \ \ \ \ | |/ / / / /
| * | | | | MDEV-4241 fix.unknown2013-03-061-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Field_enum incorrectly inherited decimals() from Field_string. Field_enum should be always integer in numeric context.
| * | | | | MDEV-4020 : Make sure strmov symbol is exported by client library on Linux ↵Vladislav Vaintroub2013-01-111-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (even if the server and libraries itself use stpcpy instead of it) It is a workaround that allows myodbc built by certain distributions' (CentOS,Fedora) to peacefully coexist with mariadb client libraries. The problem is that MyODBC in these distros needs strmov() to be exported by mysql client shared library, or else myodbc fails to load.
* | | | | | merge with mysql-5.5.30 minus few incorrect or not applicable changesetsSergei Golubchik2013-02-281-0/+2
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | |
| * | | | | Bug#15960005 VALGRIND WARNINGS IN PROCESS_ARGSTor Didriksen2012-12-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both <width> and <precision> can be specified as numbers or '*'. If an asterisk is used, an argument of type int is consumed.
| * | | | | Bug#11754279 SIGNIFICANT INACCURACY IN DECIMAL MULTIPLICATION CALCULATIONSTor Didriksen2012-11-291-16/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | frac is the number of decimal digits after the point For each multiplication in the expression, decimal_mul() does this: to->frac= from1->frac + from2->frac; /* store size in digits */ which will eventually overflow. The code for handling the overflow, will truncate the two digits in "1.75" to "1" Solution: Truncate to 31 significant fractional digits, when doing decimal multiplication.
| * | | | | mergeGeorgi Kodinov2012-07-051-0/+4
| |\ \ \ \ \ | | | |_|_|/ | | |/| | |
| | * | | | Bug #13889741: HANDLE_FATAL_SIGNAL IN _DB_ENTER_ |Georgi Kodinov2012-07-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HANDLE_FATAL_SIGNAL IN STRNLEN Fixed the following bounds checking problems : 1. in check_if_legal_filename() make sure the null terminated string is long enough before accessing the bytes in it. Prevents pottential read-past-buffer-end 2. in my_wc_mb_filename() of the filename charset check for the end of the destination buffer before sending single byte characters into it. Prevents write-past-end-of-buffer (and garbaling stack in the cases reported here) errors. Added test cases.
| * | | | | Bug#14039955 RPAD FUNCTION LEADS TO UNINITIALIZED VALUES WARNING IN MY_STRTODTor Didriksen2012-05-181-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rewrite the "parser" in my_strtod_int() to avoid reading past the end of the input string.
* | | | | | Fixed compiler warningMichael Widenius2013-01-171-1/+2
| | | | | |
* | | | | | 5.3->5.5 mergeSergei Golubchik2012-11-221-1/+1
|\ \ \ \ \ \ | | |_|/ / / | |/| | | |
| * | | | | MDEV-736 LP:1004615 - Unexpected warnings "Encountered illegal value '' when ↵Sergei Golubchik2012-11-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | converting to DECIMAL" on a query with aggregate functions and GROUP BY fix: don't call field->val_decimal() if the field->is_null() because the buffer at field->ptr might not hold a valid decimal value sql/item_sum.cc: do not call field->val_decimal() if the field->is_null() storage/maria/ma_blockrec.c: cleanup storage/maria/ma_rrnd.c: cleanup strings/decimal.c: typo
* | | | | | Merge from 5.3unknown2012-08-241-2/+47
|\ \ \ \ \ \ | |/ / / / /
| * | | | | merge from 5.2unknown2012-08-241-0/+64
| |\ \ \ \ \ | | | |_|/ / | | |/| | |
| | * | | | Merge from 5.1.unknown2012-08-241-0/+63
| | |\ \ \ \ | | | | |_|/ | | | |/| |
| | | * | | MDEV-382: Incorrect quotingunknown2012-08-241-3/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various places in the server replication code was incorrectly quoting strings, which could lead to incorrect SQL on the slave/mysqlbinlog.
* | | | | | Fixed compiler errorsMichael Widenius2012-08-141-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updated test to also work on 32 bit mysql-test/suite/heap/heap.test: Updated test to also work on 32 bit
* | | | | | mergeSergei Golubchik2012-04-072-2/+2
|\ \ \ \ \ \ | |/ / / / /
| * | | | | mergeSergei Golubchik2012-04-053-7/+250
| |\ \ \ \ \ | | |/ / / /
| | * | | | mergeSergei Golubchik2012-04-053-7/+250
| | |\ \ \ \ | | | |/ / /
| | | * | | mysql-5.1.62 mergeSergei Golubchik2012-04-053-7/+250
| | | |\ \ \ | | | | | |/ | | | | |/|
| * | | | | Backport some simple performance patches from 5.5.unknown2012-03-221-4/+9
| | | | | |
* | | | | | mysql-5.5.22 mergeSergei Golubchik2012-03-284-9/+7
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mysql-test/suite/innodb/t/group_commit_crash.test: remove autoincrement to avoid rbr being used for insert ... select mysql-test/suite/innodb/t/group_commit_crash_no_optimize_thread.test: remove autoincrement to avoid rbr being used for insert ... select mysys/my_addr_resolve.c: a pointer to a buffer is returned to the caller -> the buffer cannot be on the stack mysys/stacktrace.c: my_vsnprintf() is ok here, in 5.5
| * | | | | Updated/added copyright headersMySQL Build Team2012-02-164-4/+4
| |\ \ \ \ \ | | | |_|_|/ | | |/| | |
| | * | | | Updated/added copyright headersKent Boortz2012-02-153-4/+3
| | |\ \ \ \
| | | * | | | Updated/added copyright headersMySQL Build Team2012-02-151-2/+1
| | | | | | |
* | | | | | | Few simple performance fixes found with sysbench oltp.lua and Oprofile:unknown2012-03-211-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Avoid needless load/stores in my_hash_sort_simple due to possible aliasing - Avoid expensive Join_plan_state constructor in choose_subquery_plan when no subquery - Avoid calling update_virtual_fields for every row when no virtual fields.
* | | | | | | MDEV-15 Log all SQL errors.Alexey Botchkov2012-03-141-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added the logger service that provides us with the rotating logs. The plugin SQL_ERROR_LOG added. It logs the errors using the 'logger service' for the rotating log files. the example record from the log: 2012-03-09 15:07:29 root[root] @ localhost [] ERROR 1146: Table 'test.xyz' doesn't exist : select * from test.xyz
* | | | | | | merge with mysql-5.5.21Sergei Golubchik2012-03-093-13/+280
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Bug#13359121 LARGE NUMBERS, /STRINGS/DTOA.C:662Tor Didriksen2012-01-251-13/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug#12985021 SIMPLE QUERY WITH DECIMAL NUMBERS TAKE AN When parsing the fractional part of a string which is to be converted to double, we can stop after a few digits: the extra digits will not contribute to the actual result anyways. mysql-test/r/func_str.result: New tests. mysql-test/t/func_str.test: New tests. strings/dtoa.c: The problem was s2b() multiplying and adding hundreds-of-thousands of ever smaller fractions.
| * | | | | | Merging Bug#11752408 from mysql-5.1Alexander Barkov2012-01-232-0/+244
| |\ \ \ \ \ \ | | |/ / / / /
| | * | | | | Bug#11752408 - 43593: DUMP/BACKUP/RESTORE/UPGRADE TOOLS FAILS BECAUSE OF ↵Alexander Barkov2012-01-232-0/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UTF8_GENERAL_CI Introducing new collations: utf8_general_mysql500_ci and ucs2_general_mysql500_ci, to reproduce behaviour of utf8_general_ci and ucs2_general_ci from mysql-5.1.23 (and earlier). The collations are added to simplify upgrade from mysql-5.1.23 and earlier. Note: The patch does not make new server start over old data automatically. Some manual upgrade procedures are assumed. Paul: please get in touch with me to discuss upgrade procedures when documenting this bug. modified: include/m_ctype.h mysql-test/r/ctype_utf8.result mysql-test/t/ctype_utf8.test mysys/charset-def.c strings/ctype-ucs2.c strings/ctype-utf8.c
| * | | | | | merge 5.1-security => 5.5-securityTor Didriksen2011-10-141-8/+13
| |\ \ \ \ \ \ | | |/ / / / /
* | | | | | | MDEV-135: work-around a GCC bug seen on Debian 5 "lenny" 64-bit.unknown2012-02-061-0/+4
| | | | | | |
* | | | | | | 5.3 mergeSergei Golubchik2012-01-1332-48/+69
|\ \ \ \ \ \ \ | | |_|_|/ / / | |/| | | | |
| * | | | | | Merge with 5.2.Michael Widenius2011-12-1142-154/+189
| |\ \ \ \ \ \ | | | |_|_|/ / | | |/| | | | | | | | | | | no_error handling for select (used by INSERT ... SELECT) still needs to be fixed, but I will do that in a separate commit
| | * | | | | Merge with MariaDB 5.1Michael Widenius2011-11-2442-154/+189
| | |\ \ \ \ \ | | | | |_|_|/ | | | |/| | |
| | | * | | | Merge with MySQL 5.1.60Michael Widenius2011-11-231-8/+13
| | | |\ \ \ \ | | | | | |/ / | | | | |/| |
| | | | * | | merge 5.0-security => 5.1 securityTor Didriksen2011-10-141-8/+13
| | | | |\ \ \ | | | | | | |/ | | | | | |/|
| | | | | * | Bug#12563865 ROUNDED,TMP_BUF,DECIMAL_VALUE STACK CORRUPTION IN ALL VERSIONS ↵Tor Didriksen2011-10-141-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | >=5.0 Buffer over-run on all platforms, crash on windows, wrong result on other platforms, when rounding numbers which start with 999999999 and have precision = 9 or 18 or 27 or 36 ... mysql-test/r/type_newdecimal.result: New test cases. mysql-test/t/type_newdecimal.test: New test cases. sql/my_decimal.h: Add sanity checking code, to catch buffer over/under-run. strings/decimal.c: The original initialization of intg1 (add 1 if buf[0] == DIG_MAX) will set p1 to point outside the buffer, and the loop to copy the original value while (buf0 < p0) *(--p1) = *(--p0); will overwrite memory outside the my_decimal object.
| | | * | | | Initail merge with MySQL 5.1 (XtraDB still needs to be merged)Michael Widenius2011-11-2142-146/+176
| | | |\ \ \ \ | | | | |/ / / | | | | | | | | | | | | | | Fixed up copyright messages.
* | | | | | | Fixed lp:909051 Options --debug and --disable-debug are known but ambiguous ↵Michael Widenius2011-12-271-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in RelWithDebInfo build Fixed memory leak printing when doing 'mysqld --version', 'mysqld --debug --help' and 'mysqld --debug --help --verbose' mysys/my_init.c: Moved checking if we should call DBUG_END() before my_thread_end() as otherwise we will not free DBUG variables and files. mysys/thr_lock.c: Fixed compiler warning sql/mysqld.cc: Fixed memory leaks when using mysqld --help and mysqld --version Added --debug as an option that works for all builds. For non debug builds we now get a warning. strings/dtoa.c: Fixed valgrind warning (c could contain data outside of the given string)
* | | | | | | mergeSergei Golubchik2011-11-033-22/+22
|\ \ \ \ \ \ \
| * | | | | | | compilation warnings on WindowsSergei Golubchik2011-11-023-22/+22
| | | | | | | |
* | | | | | | | mysql-5.5.18 mergeSergei Golubchik2011-11-0332-106/+141
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | / | | |_|_|_|_|/ | |/| | | | |