summaryrefslogtreecommitdiff
path: root/regex/regcomp.c
Commit message (Collapse)AuthorAgeFilesLines
* Bug#24449090 - BUFFER OVERFLOW IN FUNCTION DUPLShishir Jaiswal2016-12-041-0/+1
| | | | | Post-push fix for memory leak in the code inside DBUG_EXECUTE_IF("bug24449090_simulate_oom",...);
* Bug#24449076 - INTEGER OVERFLOW IN FUNCTION DOINSERTShishir Jaiswal2016-11-291-1/+1
| | | | | | | | | | | | | | | | | | | DESCRIPTION =========== Performing a pattern match of a Regex resulting into a very large string, leads to crash due to integer wraparound. ANALYSIS ======== doinsert() - The length calculated here (to copy the number of bytes) comes out to be too large to be stored in the "int" variable 'length'. We need to ensure that the variable can accommodate large lengths. FIX === 'length' in doinsert() is now defined as of type "size_t" instead of "int"
* Bug#24449090 - BUFFER OVERFLOW IN FUNCTION DUPLShishir Jaiswal2016-11-291-1/+20
| | | | | | | | | | | | | | | | | | | | | | DESCRIPTION =========== Performing a pattern match of a Regex resulting into a very large string, leads to crash due to failed realloc(). ANALYSIS ======== dupl() calls enlarge(). It in turn calls realloc() for pointer p->strip. This eventually fails due to OOM. However we are still using the same pointer in memcpy() causing a SEGFAULT! FIX === 1) In dupl(), checking for error code (which would be set if realloc fails) immediately after call to enlarge(). Returning now with this error code. 2) Handling the same in the caller functions.
* Bug#20642505: HENRY SPENCER REGULAR EXPRESSIONS (REGEX) LIBRARYTatiana Azundris Nuernberg2015-05-181-1/+23
| | | | | | | | | | The MySQL server uses Henry Spencer's library for regular expressions to support the REGEXP/RLIKE string operator. This changeset adapts a recent fix from the upstream for better 32-bit compatiblity. (Note that we cannot simply use the current upstream version as a drop-in replacement for the version used by the server as the latter has been extended to understand MySQL charsets etc.)
* BUG#14303860 - EXECUTING A SELECT QUERY WITH TOO Neeraj Bisht2013-01-141-1/+1
|\ | | | | | | MANY WILDCARDS CAUSES A SEGFAULT Back port from 5.6 and trunk
| * BUG#14303860 - EXECUTING A SELECT QUERY WITH TOO Neeraj Bisht2013-01-141-1/+1
| | | | | | | | | | MANY WILDCARDS CAUSES A SEGFAULT Back port from 5.6 and trunk
* | Merge from mysql-5.1 for bug#58026.Dmitry Shulga2011-02-041-2/+13
|\ \ | |/
| * Fixed bug#58026 - massive recursion and crash in regular expressionDmitry Shulga2011-02-041-2/+13
| | | | | | | | | | | | | | handling. The problem was that parsing of nested regular expression involved recursive calls. Such recursion didn't take into account the amount of available stack space, which ended up leading to stack overflow crashes.
* | WL#5498: Remove dead and unused source codeDavi Arnaut2010-07-231-12/+0
| | | | | | Remove unused macros or macro which are always defined.
* | WL#5498: Remove dead and unused source codeDavi Arnaut2010-07-231-60/+0
|/ | | Remove code that has been disabled for a long time.
* Use UNINIT_VAR workaround instead of LINT_INIT.Davi Arnaut2010-07-091-3/+3
|
* Bug#53445: Build with -Wall and fix warnings that it generatesDavi Arnaut2010-07-021-1/+0
| | | | | | | | | | | | | | | | Apart strict-aliasing warnings, fix the remaining warnings generated by GCC 4.4.4 -Wall and -Wextra flags. One major source of warnings was the in-house function my_bcmp which (unconventionally) took pointers to unsigned characters as the byte sequences to be compared. Since my_bcmp and bcmp are deprecated functions whose only difference with memcmp is the return value, every use of the function is replaced with memcmp as the special return value wasn't actually being used by any caller. There were also various other warnings, mostly due to type mismatches, missing return values, missing prototypes, dead code (unreachable) and ignored return values.
* Merge from 5.0 for 43414Staale Smedseng2009-08-281-3/+3
|\
| * Bug #43414 Parenthesis (and other) warnings compiling MySQLStaale Smedseng2009-08-281-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with gcc 4.3.2 This patch fixes a number of GCC warnings about variables used before initialized. A new macro UNINIT_VAR() is introduced for use in the variable declaration, and LINT_INIT() usage will be gradually deprecated. (A workaround is used for g++, pending a patch for a g++ bug.) GCC warnings for unused results (attribute warn_unused_result) for a number of system calls (present at least in later Ubuntus, where the usual void cast trick doesn't work) are also fixed.
* | Fixed a lot of compiler warnings and errors detected by Forte C++ on Solarismonty@mysql.com/nosik.monty.fi2007-08-131-2/+2
|/ | | | | | | | | | | | Faster thr_alarm() Added 'Opened_files' status variable to track calls to my_open() Don't give warnings when running mysql_install_db Added option --source-install to mysql_install_db I had to do the following renames() as used polymorphism didn't work with Forte compiler on 64 bit systems index_read() -> index_read_map() index_read_idx() -> index_read_idx_map() index_read_last() -> index_read_last_map()
* Many files:kent@mysql.com2005-09-291-5/+5
| | | | | | | Prefix regex functions/types with "my_" as our library is not compatible with normal regex lib. my_regex.h: Rename: regex/regex.h -> regex/my_regex.h
* Bugs: #7111: server crashes when regexp is usedbar@mysql.com2004-12-091-2/+19
|
* Review of all code pushed since last reviewmonty@mishka.local2004-10-201-0/+2
| | | | | | | Simple optimzations and cleanups Removed compiler warnings and fixed portability issues Added client functions 'mysql_embedded()' to allow client to check if we are using embedded server Fixes for purify
* - compile fix for regex/regcomp.c spotted on Mac OS Xlenz@mysql.com2004-06-151-1/+1
| | | | (too few arguments)
* Removed compiler warningmonty@mysql.com2004-03-181-12/+12
| | | | Changed _XXX to _MY_XXX to solve conflict problem on Mac OS X
* regexp worked only with the default character set.bar@bar.mysql.r18.ru2003-09-241-21/+34
| | | | Now it can work with any character set.
* Reorganization to restore generating charset C files from conf filesbar@bar.mysql.r18.ru2003-01-291-1/+1
|
* Regex library is switched to use new ctype toolsbar@gw.udmsearch.izhnet.ru2002-03-061-17/+25
| | | | to allow usage of many character sets at a time.
* Query cache.monty@hundin.mysql.fi2001-12-021-35/+37
| | | | Remove some warnings
* Changed to use my_global.hmonty@hundin.mysql.fi2001-09-141-1/+1
| | | | | Fixed problem with LIKE with latin1_de Added parsing support of UNSIGNED LONG LONG
* First part of automatic repair of MyISAM tables.monty@tramp.mysql.fi2000-10-031-28/+28
| | | | | | | Error on full disk on repair. SIGHUP signal handling. Update with keys on timestamp Portability fixes
* Fixed for Ia64 + delayed key creation + a lot of small bug fixesmonty@donna.mysql.com2000-08-151-6/+9
|
* Import changesetbk@work.mysql.com2000-07-311-0/+1627