summary refs log tree commit diff
path: root/Src
Commit message (Collapse)AuthorAgeFilesLines
* 34213: in previous patch, do not change usepm if it is already setBarton E. Schaefer2015-01-101-1/+1
|
* 34212: do not change unset-ness of special parameters when exporting themBarton E. Schaefer2015-01-101-2/+6
|
* select: Fix leak of 256 bytes on every loop when zle is not usedMikael Magnusson2015-01-101-1/+1
| | | | | | | Reproduce by yes | head -n 1000000 | zsh -c 'select foo in a b c; do done; sleep 30; echo' Found by Coverity (Issue 439082).
* hist: remove wrong NULL terminatorMikael Magnusson2015-01-101-1/+0
| | | | This actually writes a NULL to some arbitrary location in the caller function's stack. Found by Coverity (Issue 1255746).
* Rearrange context saving.Peter Stephenson2015-01-0914-299/+441
| | | | | | | Variables are now associated with the module that declares them, being initialised and saved/restored there. However, as many variables are used for communication between modules, many of them are set in multiple places, so the assignment is ambiguous.
* Fix a typo in bin_print error messageMikael Magnusson2015-01-091-3/+3
|
* Fix command substitutions to parse contents as they are read in.Peter Stephenson2015-01-085-193/+359
| | | | | | | Do this by refactoring misnamed lexsave()/lexrestore() to allow continuity of history and input. Add test.
* 34154/34155: reorder bin_print() to avoid leaking the output descriptor when ↵Barton E. Schaefer2015-01-071-29/+34
| | | | incorrect/incompatible options were passed
* 34144: allocate origline by ztrdup(), not by dupstring()Jun-ichi Takimoto2015-01-072-3/+6
| | | | | If origline is allocated in heap, it will have been freed when menuselect() is called directly as a widget.
* 34122: module: allow NULL third argument as intendedBart Schaefer2015-01-061-1/+1
| | | | Found by Coverity.
* 34138: wcs_nicechar: only deref widthp if it was givenMikael Magnusson2015-01-061-1/+1
|
* 34120: compctl, jobs: Check contents instead of arrayMikael Magnusson2015-01-062-2/+2
| | | | | | text is an array in the struct, and can never be null. Found by Coverity (Issue 1255780).
* 34108: Don't leak ifs stuffMikael Magnusson2015-01-061-2/+2
| | | | Found by Coverity (Issue 1255785).
* 34107: getsubsargs: free ptr1 before returningMikael Magnusson2015-01-061-0/+1
| | | | Found by Coverity (Issue 439073).
* 34134: anon funcs: don't leak shf and related dataMikael Magnusson2015-01-061-0/+6
| | | | Found by Coverity (Issue 439076).
* 34112: typeset: fix leak of oldvalMikael Magnusson2015-01-061-0/+2
| | | | Found by Coverity (Issue 1255803).
* 34106: hist: use zhtricat instead of tricatMikael Magnusson2015-01-061-1/+1
| | | | Found by Coverity (Issue 1255769).
* 34113: whence: use dupstring to not leak memoryMikael Magnusson2015-01-061-1/+1
| | | | | All other assignments to buf use the heap, and it's never freed. Found by Coverity (Issue 1255786).
* 34119: complist: Fix leak of string in clnicezputsMikael Magnusson2015-01-061-0/+2
| | | | Found by Coverity (Issue 1255808).
* 34105: subst: remove dead codeMikael Magnusson2015-01-061-1/+1
| | | | Found by Coverity (Issue 1255810).
* 34121: compresult: Remove unneeded NULL checkMikael Magnusson2015-01-061-1/+1
| | | | | The variable is set to if NULL at the start of the function, and derefed on the previous line. Found by Coverity (Issue 1255843).
* 34104: compctl: Remove pointless checkMikael Magnusson2015-01-061-1/+1
| | | | | cc has already been derefed a bunch of times leading up to here. Found by Coverity (Issue 1255841).
* 34115: compcore: Fix size argument to zfreeMikael Magnusson2015-01-061-1/+1
| | | | | Found by Coverity (Issue 1255852), has no impact unless using --enable-zsh-mem, and even then it is minimal.
* 34117: zle: size_t is unsigned, use int insteadMikael Magnusson2015-01-061-1/+1
| | | | | | The function wctomb returns an int according to my manpage, and we furthermore check if it is negative, and then return it, and the function signature is int, so declaring it as an int seems to make more sense.
* 34116: computil: Check for NULL before passing to strlenMikael Magnusson2015-01-061-1/+2
| | | | | The rest of this function appears to be very careful about checking these, then forgets in this one spot. Found by Coverity (Issue 1255805).
* 34118: Don't crash when writing out history if HOST is unsetMikael Magnusson2015-01-061-1/+2
| | | | Found by Coverity (Issue 1255793).
* 34114: emulate: Handle aborting from mixed -L/-c correctlyMikael Magnusson2015-01-061-1/+2
| | | | Somehow Coverity found this (Issue 1255797, Failure to restore non-local value).
* 34103: fix ancient double-quote handling thinko in subst_parse_str()Barton E. Schaefer2015-01-061-2/+4
| | | | This doesn't seem to have mattered, but must in some obscure cases
* 34093: "whence" should always return nonzero when it finds that nothing ↵Barton E. Schaefer2015-01-061-15/+17
| | | | matches its arguments
* 34092: fix miscount of symlink resolution for "..".Peter Stephenson2015-01-041-0/+2
| | | | This caused problems with expanding a path with ".." in "whence -S".
* 34091: typo with "whence -s" expansionsPeter Stephenson2015-01-041-2/+2
|
* users/19671: remove confusion with whence -a.Peter Stephenson2015-01-021-1/+1
| | | | If the argument is a full path don't try to search the path for it.
* users/19667: whence -S shows intermediate steps in symlink expansionPeter Stephenson2015-01-022-13/+66
|
* 34070: fix starting position for memset() from 34005.Daniel Shahaf2014-12-281-1/+1
|
* 34064: assignment before command replaces array with export even when KSH_ARRAYSTakeshi Banse2014-12-271-0/+2
|
* 34065: following an "if" condition, do not test lastval for ERR_EXIT until a ↵Barton E. Schaefer2014-12-272-5/+15
| | | | | | new command is run Includes unposted regression tests.
* 34015: disallow strange environment variable names.Peter Stephenson2014-12-191-16/+23
| | | | | These are ones with the top bit set in any character. Don't import them, and don't export them.
* 34005: region_highlights memory fixPeter Stephenson2014-12-191-2/+8
| | | | Zero uninitialised part of memory when reallocing
* 34002: zshcalloc() in init_keymaps()Barton E. Schaefer2014-12-181-1/+1
|
* 33992: do not attempt attachtty() for process group zero (which is possible ↵Barton E. Schaefer2014-12-181-2/+5
| | | | in a linux pid namespace)
* 34008: metafy the environment on arrival in the shellPeter Stephenson2014-12-181-1/+1
|
* 34006: unmetafy anything put into the environmentPeter Stephenson2014-12-181-1/+11
|
* 33981: more care with region_highlights managementPeter Stephenson2014-12-182-29/+39
|
* 33978: avoid infinite loop in interactive modeJun-ichi Takimoto2014-12-181-1/+3
| | | | | Update command line when accept-and-hold is called in the interactive mode of menu select.
* 33984: bin_dirs() should use zputs() to print metafied directory namesJun Kuriyama2014-12-161-1/+1
|
* 33982: minimal support for pid namespaces by recognizing that GETPGRP() may ↵Chirantan Ekbote2014-12-161-1/+1
| | | | return 0
* 33976: fix overlapping strcpy()Barton E. Schaefer2014-12-151-1/+1
|
* 33956: document key binding changes and remove ^X bindingOliver Kiddle2014-12-132-1/+2
|
* 33846: additional default vi-mode key bindingsOliver Kiddle2014-12-133-5/+12
|
* 33950: ignore KEYTIMEOUT for vi operatorsOliver Kiddle2014-12-123-12/+19
|