-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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/[email protected]/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.
- Loading branch information
Showing
3 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters