summaryrefslogtreecommitdiff
path: root/cmd-line-utils/libedit
Commit message (Collapse)AuthorAgeFilesLines
* Update FSF AddressVicențiu Ciorbaru2019-05-111-1/+1
| | | | * Update wrong zip-code
* Merge tag 'mysql-5.5.44' into bb-5.5-sergSergei Golubchik2015-06-054-13/+22
|\
| * Merge branch 'mysql-5.1' into mysql-5.5Arun Kuruvila2015-04-244-13/+22
| |\
| | * Bug#20318154 : NEGATIVE ARRAY INDEX WRITE V2Arun Kuruvila2015-04-244-13/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Description:- There is a possibility of negative array index write associated with the function "terminal_writec()". This is due to the assumption that there is a possibility of getting -1 return value from the function call "ct_visual_char()". Analysis:- The function "terminal_writec()" is called only from "em_delete_or_list()" and "vi_list_or_eof()" and both these functions deal with the "^D" (ctrl+D) signal. So the "size_t len" and "Char c" passed to "ct_visual_char()" (when called from "terminal_writec()") is always 8 (macro VISUAL_WIDTH_MAX is passed whose value is 8) and 4 (ASCII value for "^D"/"ctrl+D") respectively. Since the value of "c" is 4, "ct_chr_class()" returns -1 (macro CHTYPE_ASCIICTL is associated with -1 value). And since value of "len" is 8, "ct_visual_char()" will always return 2 when it is called from "terminal_writec()". So there is no possible case so that we encounter a negative array index write in "terminal_writec()". But since there is a rare posibility of using "terminal_writec()" in future enhancements, it is good handle the error case as well. Fix:- A condition is added in "terminal_writec()" to check whether "ct_visual_char()" is returning -1 or not. If the return value is -1, then value 0 is returned to its calling function "em_delete_or_list()" or "vi_list_or_eof()", which in turn will return CC_ERROR. NOTE:- No testcase is added since currently there is no possible scenario to encounter this error case.
| * | weave merge of mysql-5.1->mysql-5.5Georgi Kodinov2012-01-123-5/+5
| |\ \ | | |/ | | | | | | merge of Nirbhay's AIX compilation fix for 5.1.61
| | * Fixes required to build on AIXKaren Langford2012-01-113-5/+5
| | |
| * | Merge mysql-5.1 -> mysql-5.5Vasil Dimov2011-11-184-9/+21
| |\ \ | | |/ | | | | | | | | | | | | | | | I manually checked that all the conflicting InnoDB changes are in 5.5 already. Two things I am not sure about - I commented them with XXX in this patch. I will further check with the authors of the changesets whether these things should be present or not.
| | * Patch to fix stdint.h missing from pre Solaris 10 versions.Karen Langford2011-10-292-0/+12
| | |
| | * Patch to fix libedit vis.h problem (OSX/FreeBSD)Karen Langford2011-10-283-9/+9
| | |
| * | Local merge from mysql-5.1.Nirbhay Choubey2011-10-242-3/+3
| |\ \ | | |/
| | * WL#5945 - Improve libedit libraryNirbhay Choubey2011-10-242-3/+3
| | | | | | | | | | | | | | | Fixed a misplaced parenthesis, injected due to syncing from libedit CVS head.
| * | Merge of fix for bug#13106585 from mysql-5.1.Nirbhay Choubey2011-10-216-18/+15
| |\ \ | | |/
| | * Bug#13106585 PUSH FOR "WL#5945 : IMPROVE LIBEDIT LIBRARY"Nirbhay Choubey2011-10-216-22/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BREAKS SOURCE RELEASE BUILD Some of the required files were not getting copied while performing 'make dist' and hence the build failed for the created distribution source. Added the missing files to Makefile.am.
| * | Merge of fix for bug#13102538 from mysql-5.1.Nirbhay Choubey2011-10-185-5/+0
| |\ \ | | |/
| | * Bug#13102538 : COMPILE ERROR ON SOLARIS WHEN COMPILINGNirbhay Choubey2011-10-185-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WITH LIBEDIT Libedit won't build on platforms that do not provide "sys/cdefs.h". Removed the inclusion of cdefs.h from all files other that sys.h, which includes this file only when the header is found while configuring.
| * | Merge of changeset of WL#5945 from mysql-5.1.Nirbhay Choubey2011-10-1452-2989/+5373
| |\ \ | | |/
| | * WL#5945 : Improve libedit libraryNirbhay Choubey2011-10-1452-2994/+5373
| | | | | | | | | | | | Updated libedit library.
| * | Merge of fix for bug#11757855 from mysql-5.1 -> mysql-5.5.Nirbhay Choubey2011-04-301-5/+16
| |\ \ | | |/
| | * Bug#11757855 - 49967: built-in libedit doesn't readNirbhay Choubey2011-04-291-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | .editrc on linux. MySQL client when build with libedit support ignores .editrc at startup. The reason for this regression was the incluison of a safety check, issetugid(), which is not available on some linux platforms. Fixed by adding an equivalent check for platforms which have get[e][u|g]id() set of functions.
| * | Merge of fix for bug#12329909 from mysql-5.1 -> mysql-5.5.Nirbhay Choubey2011-04-271-2/+10
| |\ \ | | |/
| | * BUG#12329909 - BUILDING MYSQL WITH DEBUG SUPPORTNirbhay Choubey2011-04-271-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | FAILS WITH LIBEDIT Fixed by checking the return value of the write() function calls and handling the open files and fd appropriately.
| * | Fix detection of tgoto declaration:Vladislav Vaintroub2010-11-271-0/+15
| | | | | | | | | | | | | | | it needs curses.h to be included before term.h on Solaris Express 11
| * | WL#5665: Removal of the autotools-based build systemDavi Arnaut2010-11-201-92/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The autotools-based build system has been superseded and is being removed in order to ease the maintenance burden on developers tweaking and maintaining the build system. In order to support tools that need to extract the server version, a new file that (only) contains the server version, called VERSION, is introduced. The file contents are human and machine-readable. The format is: MYSQL_VERSION_MAJOR=5 MYSQL_VERSION_MINOR=5 MYSQL_VERSION_PATCH=8 MYSQL_VERSION_EXTRA=-rc The CMake based version extraction in cmake/mysql_version.cmake is changed to extract the version from this file. The configure to CMake wrapper is retained for backwards compatibility and to support the BUILD/ scripts. Also, a new a makefile target show-dist-name that prints the server version is introduced.
| * | Merge of mysql-5.1-bugteam into mysql-5.5-bugteam.Davi Arnaut2010-10-193-24/+33
| |\ \ | | |/
| | * Bug#45288: pb2 returns a lot of compilation warningsDavi Arnaut2010-10-194-26/+34
| | | | | | | | | Tag or remove unused arguments and variables.
| * | Patch for Bug#55854 (MySQL AB should not be AUTHOR, copyright incorrect).Alexander Nozdrin2010-08-121-4/+4
| | | | | | | | | Fixing copyright text.
| * | Bug #53445 Build with -Wall and fix warnings that it generatesTor Didriksen2010-05-261-2/+1
| | | | | | | | | | | | | | | Add -Wall to gcc/g++ Fix most warnings reported in dbg and opt mode.
| * | Fix build with LDFLAGS=--Wl,--as-needed on LinuxVladislav Vaintroub2009-12-191-1/+1
| | |
| * | Fix libedit out-of-source buildVladislav Vaintroub2009-11-101-1/+1
| | |
| * | remove debug outputVladislav Vaintroub2009-11-101-1/+0
| | |
| * | refactor libedit, generate files in binary tree, not in source treeVladislav Vaintroub2009-11-101-82/+83
| | |
| * | WL#5161 : Cross-platform build with CMakeVladislav Vaintroub2009-11-092-1/+168
| |/
| * Bug#42430 Final commit to 5.0-bugteamStaale Smedseng2009-04-161-1/+1
| |
| * cmd-line-utils/libedit/readline/readline.hkent.boortz@sun.com2009-03-191-1/+1
| | | | | | | | | | | | | | | | | | - Header <sys/ttydefaults.h> missing or not usable on QNX and OpenServer 6 include/my_global.h - Moved down definition of function rint(), as for some platforms (in this case Netware) 'longlong' is not defined until later in "my_global.h"
| * Back patched libedit portability changes from 5.1.32kent.boortz@sun.com2009-03-094-9/+6
| |
| * fixed a libedit compilation problemGeorgi Kodinov2009-02-102-1/+3
| |
| * From jperkin : Merge libedit 2.11 and related files, Georgi Kodinov2009-02-1055-3917/+2265
| | | | | | | | based on NetBSD CVS as of 2009/02/06 20:09:00.
| * Bug#23097 mysql can't insert korean on mysql prompt.bar@mysql.com/bar.myoffice.izhnet.ru2008-03-045-7/+9
| | | | | | | | | | | | | | | | Problem: libedit is a very pure-ASCII oriented library, and it is not aware of extended (0x80..0xFF) or even multi-byte characters. It considered such characters as non-printable and didn't allow to input them. Fix: make libedit think that all bytes >= 0x80 are printable.
| * Makefile.am:kent@mysql.com/kent-amd64.(none)2007-10-301-3/+9
| | | | | | | | | | Ensure use of libedit "config.h" by adding "-I. -I$(srcdir)" to DEFS, work around for problem with automake 1.10 (bug#24809)
| * Generate "config.h" directly into the "include" directory, later copiedkent@mysql.com/kent-amd64.(none)2007-07-301-2/+2
| | | | | | | | | | | | to "my_config.h". Not to pollute the top directory, and to get more control over what is included. Made the include path for "libedit" pick up its own "config.h" first.
| * Merge pilot.(none):/data/msvensson/mysql/mysql-4.1-maintmsvensson@pilot.(none)2007-06-071-0/+10
| |\ | | | | | | | | | into pilot.(none):/data/msvensson/mysql/mysql-5.0-maint
| | * Bug#10218 Command line recall rolls into Segmentation Fault(coredump)'msvensson@pilot.(none)2007-06-041-0/+10
| | | | | | | | | | | | - Declare 'tgoto' if not already declared in system header files.
| * | Fix bug#23293 "readline detection broken on NetBSD":joerg@trift2.2007-01-312-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Its root cause is a difference between the "readline" and "libedit" (header files) definitions of "rl_completion_entry_function", where the "libedit" one is wrong anyway: This variable is used as a pointer to a function returning "char *", but "libedit" declares it as returning "int" and then adds casts on usage. Change it to "CPFunction *" and get rid of the casts.
| * | Merge neptunus.(none):/home/msvensson/mysql/bug16557/my50-bug16557msvensson@neptunus.(none)2006-02-211-2/+2
| |\ \ | | | | | | | | | | | | into neptunus.(none):/home/msvensson/mysql/mysql-5.0
| | * | Bug#16557 mysql cmd-line client does not rename .mysql_history.TMP to ↵msvensson@neptunus.(none)2006-02-131-2/+2
| | |/ | | | | | | | | | | | | | | | .mysql_history - Return error only if 'history' returns -1
| * | many warnings (practically safe but annoying) correctedserg@serg.mylan2006-01-031-2/+2
| |/
| * Makefile.am, configure.in:kent@mysql.com2005-09-241-8/+8
| | | | | | | | Enable "make distcheck" to work
| * QNX does not know "uint", so the cast is rewritten as "unsigned int".joerg@mysql.com2005-07-181-1/+1
| |
| * cmd-line-utils/libedit/chared.c: Fix compile problem caused by use of "uint" ↵joerg@mysql.com2005-07-111-2/+2
| | | | | | | | which is undefined on QNX.
| * Makefile.am:kent@mysql.com2005-07-051-1/+2
| | | | | | | | | | Added -I$(top_builddir)/include for searching generated header files, when builddir != srcdir