1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-24 23:14:14 +00:00
cde/src/cmd/ksh93/tests
Martijn Dekker 461a1aebc1 Fix memory leak in typeset (rhbz#1036470)
A memory leak occurred when typeset was used in a function called
from within a command substitution. This fix was backported from
the 93v- beta by Red Hat on 22 Jan 2014. Source:
https://src.fedoraproject.org/rpms/ksh/blob/642af4d6/f/ksh-20120801-memlik3.patch

src/cmd/ksh93/include/name.h,
src/cmd/ksh93/sh/subshell.c:
- Replace the nv_subsaved() function by the version from ksh 93v-.
  This version frees a table from memory if the NV_TABLE flag is
  passed in the new second parameter, a bitmask for flags (which
  was oddly named 'table'; I've renamed it to 'flags').

src/cmd/ksh93/sh/name.c:
- nv_delete(): When calling nv_subsaved(), pass on the NV_TABLE
  flag if given.
- table_unset(): Call nv_delete() with the NV_TABLE flag.

src/cmd/ksh93/tests/leaks.sh:
- Add test based on the reproducer provided in Red Hat bug 1036470.
2020-09-15 23:52:32 +02:00
..
alias.sh Reinstate 'r' and 'history' as preset aliases for interactive ksh 2020-09-11 21:35:45 +02:00
append.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
arith.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
arrays.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
arrays2.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
attributes.sh -o posix: don't import/export variable attributes thru environment 2020-09-05 11:41:02 +02:00
basic.sh Fix BUG_LOOPRET2 and related return/exit misbehaviour 2020-09-09 20:02:20 +02:00
bracket.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
builtins.sh tests/builtins.sh: correctly count errors (re: 1bc2c74c) 2020-09-12 03:34:57 +02:00
case.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
comvar.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
comvario.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
coprocess.sh tests/coprocess.sh: fix rare fail (re: 712261c8) 2020-09-06 22:40:17 +02:00
cubetype.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
enum.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
exit.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
expand.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
functions.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
glob.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
grep.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
heredoc.sh Fix ${!} and ${$} throwing syntax error in here-document 2020-09-04 04:54:35 +02:00
io.sh tests/io.sh: add proc subst FD leak test (re: ab5dedde) 2020-09-14 13:52:01 +02:00
leaks.sh Fix memory leak in typeset (rhbz#1036470) 2020-09-15 23:52:32 +02:00
locale.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
math.sh sfio: correct floating decimal point scaling of fractions (#131) 2020-09-14 13:46:40 +02:00
nameref.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
namespace.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
options.sh fix "$-" expansion for posix option (re: 921bbcae) 2020-09-04 21:03:28 +02:00
path.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
pointtype.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
pty.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
quoting.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
quoting2.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
readcsv.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
recttype.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
restricted.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
return.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
select.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
shtests shtests: add ${.sh.pid} to PS4/xtrace (re: 9de65210) 2020-09-02 15:51:02 +01:00
sigchld.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
signal.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
statics.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
subshell.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
substring.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
tilde.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
timetype.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
treemove.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
types.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
variables.sh Improve fix for parentheses in param expansions (re: 5ed9ffd6) 2020-09-13 10:15:26 +02:00
vartree1.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00
vartree2.sh shtests: cd to each test set's temp dir before running 2020-09-02 06:02:40 +01:00