components/ksh93/patches/17699248.patch
author Lijo George<lijo.x.george@oracle.com>
Thu, 26 May 2016 22:52:21 -0700
branchs11u3-sru
changeset 6075 3d0b04972053
permissions -rw-r--r--
17817727 ksh93: Right shift arithmetic substitution error for shifts of 64 bits or more 17699248 ksh93 double associative array handling bugs 17777549 "kill %%" with no background jobs , coredumps 18229654 ksh93 read not reentrant in alarm context dumps core 19907453 Session drop can cause ksh93 to become a fork bomb 22461939 ksh93 20120801 version core dumps with Asian characters input 22550551 ksh dumps core in tc_ibtools testsuite run during OFUV testing 22561374 export in a subshell visible in another subshell 22964126 ksh93 memory leak:unset is not properly freeing members of an associative array 22964338 ksh93 appears to send SIGHUP to unrelated processes on occasion 22964358 ksh93: -u option does not treat unset parameter as an error

This fix is from the community, details in the following location.
http://lists.research.att.com/pipermail/ast-developers/2013q4/003716.html
---
--- a/src/cmd/ksh93/sh/array.c 	2013-11-15 12:39:50.632526510 +0100
+++ b/src/cmd/ksh93/sh/array.c	2013-11-15 12:45:53.420869610 +0100
@@ -963,7 +963,7 @@
 		ap->nelem = nelem;
 		ap->fun = fun;
 		nv_onattr(np,NV_ARRAY);
-		if(fp || value)
+		if(fp || (value && value!=Empty))
 		{
 			nv_putsub(np, "0", ARRAY_ADD);
 			if(value)