Discussion:
[ast-developers] ksh crash while listing indexed arrays with 'typeset -a'
Siteshwar Vashisht
2017-01-04 12:35:26 UTC
Permalink
Hello,

There is a bug in print_scan() function that may cause ksh to crash while listing indexed arrays.
cat typeset_a.sh
#!/bin/ksh
A[0]="'"
B[0]=aa
C[0]=aa
typeset -a
ksh typeset_a.sh
Segmentation fault (core dumped)

Attached patch fixes this crash.
--
--
Siteshwar Vashisht
Loading...