summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-01-10select: Fix leak of 256 bytes on every loop when zle is not usedMikael Magnusson1-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).
2015-01-10hist: remove wrong NULL terminatorMikael Magnusson1-1/+0
This actually writes a NULL to some arbitrary location in the caller function's stack. Found by Coverity (Issue 1255746).
2015-01-09Rearrange context saving.Peter Stephenson15-299/+450
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.
2015-01-0934182: doc: to add zf_\* builtins use zmodload -m -FPeter Stephenson2-1/+9
2015-01-0930568: Add tetriscurses contrib function, port of tetris to zcursesMikael Magnusson3-0/+402
2015-01-09Fix a typo in bin_print error messageMikael Magnusson1-3/+3
2015-01-08Fix command substitutions to parse contents as they are read in.Peter Stephenson7-193/+409
Do this by refactoring misnamed lexsave()/lexrestore() to allow continuity of history and input. Add test.
2015-01-0734154/34155: reorder bin_print() to avoid leaking the output descriptor when ↵Barton E. Schaefer2-29/+40
incorrect/incompatible options were passed
2015-01-0734144: allocate origline by ztrdup(), not by dupstring()Jun-ichi Takimoto3-3/+11
If origline is allocated in heap, it will have been freed when menuselect() is called directly as a widget.
2015-01-06unposted: Convert spaces to tabs in ChangeLogMikael Magnusson1-4/+4
2015-01-0634122: module: allow NULL third argument as intendedBart Schaefer2-1/+5
Found by Coverity.
2015-01-0634138: wcs_nicechar: only deref widthp if it was givenMikael Magnusson2-1/+4
2015-01-0634120: compctl, jobs: Check contents instead of arrayMikael Magnusson3-2/+5
text is an array in the struct, and can never be null. Found by Coverity (Issue 1255780).
2015-01-0634108: Don't leak ifs stuffMikael Magnusson2-2/+4
Found by Coverity (Issue 1255785).
2015-01-0634107: getsubsargs: free ptr1 before returningMikael Magnusson2-0/+3
Found by Coverity (Issue 439073).
2015-01-0634134: anon funcs: don't leak shf and related dataMikael Magnusson2-0/+8
Found by Coverity (Issue 439076).
2015-01-0634112: typeset: fix leak of oldvalMikael Magnusson2-0/+4
Found by Coverity (Issue 1255803).
2015-01-0634106: hist: use zhtricat instead of tricatMikael Magnusson2-1/+3
Found by Coverity (Issue 1255769).
2015-01-0634113: whence: use dupstring to not leak memoryMikael Magnusson2-1/+3
All other assignments to buf use the heap, and it's never freed. Found by Coverity (Issue 1255786).
2015-01-0634119: complist: Fix leak of string in clnicezputsMikael Magnusson2-0/+4
Found by Coverity (Issue 1255808).
2015-01-0634105: subst: remove dead codeMikael Magnusson2-1/+3
Found by Coverity (Issue 1255810).
2015-01-0634121: compresult: Remove unneeded NULL checkMikael Magnusson2-1/+3
The variable is set to if NULL at the start of the function, and derefed on the previous line. Found by Coverity (Issue 1255843).
2015-01-0634104: compctl: Remove pointless checkMikael Magnusson2-1/+3
cc has already been derefed a bunch of times leading up to here. Found by Coverity (Issue 1255841).
2015-01-0634115: compcore: Fix size argument to zfreeMikael Magnusson2-1/+3
Found by Coverity (Issue 1255852), has no impact unless using --enable-zsh-mem, and even then it is minimal.
2015-01-0634117: zle: size_t is unsigned, use int insteadMikael Magnusson2-1/+3
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.
2015-01-0634116: computil: Check for NULL before passing to strlenMikael Magnusson2-1/+5
The rest of this function appears to be very careful about checking these, then forgets in this one spot. Found by Coverity (Issue 1255805).
2015-01-0634118: Don't crash when writing out history if HOST is unsetMikael Magnusson2-1/+5
Found by Coverity (Issue 1255793).
2015-01-0634114: emulate: Handle aborting from mixed -L/-c correctlyMikael Magnusson2-1/+7
Somehow Coverity found this (Issue 1255797, Failure to restore non-local value).
2015-01-0634103: fix ancient double-quote handling thinko in subst_parse_str()Barton E. Schaefer1-2/+4
This doesn't seem to have mattered, but must in some obscure cases
2015-01-0634093: "whence" should always return nonzero when it finds that nothing ↵Barton E. Schaefer2-15/+27
matches its arguments
2015-01-0534042: _git: Respect tags for subcommand completion.Daniel Shahaf2-14/+59
It is now possible to use the tag-order style to stagger the overwhelming 'git <TAB>' subcommand listing. For example: zstyle ':completion::complete:git:argument-1:' tag-order \ main-porcelain-commands user-commands third-party-commands \ ancillary-manipulator-commands ancillary-interrogator-commands \ plumbing-manipulator-commands plumbing-interrogator-commands \ aliases
2015-01-0534053: complete additional Linux kernel module compressionTimofey Titovets2-1/+6
2015-01-0434092: fix miscount of symlink resolution for "..".Peter Stephenson2-0/+5
This caused problems with expanding a path with ".." in "whence -S".
2015-01-0434091: typo with "whence -s" expansionsPeter Stephenson2-2/+4
2015-01-04users/19682: document recommended use of whencePeter Stephenson2-3/+13
2015-01-02users/19671: remove confusion with whence -a.Peter Stephenson2-1/+4
If the argument is a full path don't try to search the path for it.
2015-01-02users/19667: whence -S shows intermediate steps in symlink expansionPeter Stephenson4-15/+76
2015-01-0234077: further tests for return status from "for" loopsPeter Stephenson2-0/+58
2014-12-2933963: remove work of art in _mountMikael Magnusson2-21/+8
2014-12-2834070: fix starting position for memset() from 34005.Daniel Shahaf2-1/+4
2014-12-2834068: create tempfiles without forking, and safe temp directory creationBarton E. Schaefer13-18/+32
2014-12-2734067: safe tempfile creation, part 1Barton E. Schaefer15-65/+75
2014-12-2734064: assignment before command replaces array with export even when KSH_ARRAYSTakeshi Banse3-0/+23
2014-12-2734065: following an "if" condition, do not test lastval for ERR_EXIT until a ↵Barton E. Schaefer4-5/+39
new command is run Includes unposted regression tests.
2014-12-2133977: don't complete widgets as first argument to bindkeyDaniel Shahaf2-0/+6
2014-12-1934015: disallow strange environment variable names.Peter Stephenson2-16/+27
These are ones with the top bit set in any character. Don't import them, and don't export them.
2014-12-1934005: region_highlights memory fixPeter Stephenson2-2/+13
Zero uninitialised part of memory when reallocing
2014-12-1834002: zshcalloc() in init_keymaps()Barton E. Schaefer1-1/+1
2014-12-1833992: do not attempt attachtty() for process group zero (which is possible ↵Barton E. Schaefer2-2/+12
in a linux pid namespace)
2014-12-1834008: metafy the environment on arrival in the shellPeter Stephenson2-1/+4