1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00
cde/src/cmd/ksh93/bltins
Martijn Dekker 5e7d335f2f Fix crash when listing indexed arrays with 'typeset -a'
There is a bug in print_scan() function that may cause ksh to crash
while listing indexed arrays. The crash happens in nv_search() when
called from print_scan().

This applies a fix from Siteshwar Vashist:
https://www.mail-archive.com/ast-developers@lists.research.att.com/msg01944.html

src/cmd/ksh93/bltins/typeset.c:
- Call nv_scan() without the NV_IARRAY flag, even for a null scan.

src/cmd/ksh93/tests/arrays.sh:
- Add regression test for 'typeset -a' crash and check output.
2020-07-09 16:42:16 +01:00
..
alarm.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
cd_pwd.c Fix incorrect behavior of 'cd ../.foo' (#46) 2020-06-26 23:36:29 +01:00
cflow.c Fix regression in 'return' introduced by 98e0fc94 2020-06-12 01:45:17 +02:00
enum.c Fix some errors in the documentation and other minor issues (#42) 2020-06-25 19:31:51 +02:00
getopts.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
hist.c Remove code related to long-dead 3DFS research project 2020-06-12 01:45:17 +02:00
misc.c Refactor the new 'times' builtin; zero-pad seconds (re: 65d363fd) 2020-06-24 14:32:20 +02:00
mkservice.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
print.c rm "I/O error" error msg; just keep >0 exit status (re: 9011fa93) 2020-06-12 01:45:18 +02:00
read.c Fix a crash when 'read -u' is given an invalid fd (#53) 2020-07-01 18:14:10 +01:00
regress.c Fix 47 typos in user-facing help and error messages 2020-06-12 01:45:12 +02:00
sleep.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
test.c silence macro redefinition warnings (re: 7003aba4) 2020-06-16 04:51:21 +02:00
trap.c Make 'stop' and 'suspend' regular built-ins 2020-06-22 15:36:29 +02:00
typeset.c Fix crash when listing indexed arrays with 'typeset -a' 2020-07-09 16:42:16 +01:00
ulimit.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
umask.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
whence.c Fix 'whence -a' to print correct path for tracked alias (#25) 2020-06-19 14:03:58 +02:00