components/ksh93/patches/210-Bug15993811.patch
author Lijo George<lijo.x.george@oracle.com>
Thu, 26 Nov 2015 02:23:48 -0800
changeset 5129 5431772f7235
parent 4196 d697072a92f5
permissions -rw-r--r--
PSARC/2014/162 ksh93 update to 2012-08-01 17533968 ksh93 uprev to latest community version 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 18119738 ksh93 crashes in sfio area 18229654 ksh93 read not reentrant in alarm context dumps core 16169978 ksh93 memory corruption with redirection 18302723 ksh93 segv in sh_setmatch 16507675 external command in double-nested here-document hangs ksh93 18920300 remove pkglint Warnings in ksh93 build 18355790 /usr/bin/sh and /usr/sbin/sh should point to /usr/bin/ksh93 19907453 Session drop can cause ksh93 to become a fork bomb 18426052 SPARC /usr/bin/ksh is not an XPG6 executable 20808157 attpackagemake.mk test target needs the same environment as the build 20948390 ksh93 should have some master test results to compare against 20948350 attpackagemake.mk tested-and-compared target has mis-matched parentheses
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1709
beec163c6a30 15993811 A help message type in ksh93 displays off by one
Mohana Rao Gorai <mohana.gorai@oracle.com>
parents:
diff changeset
     1
--- a/src/cmd/ksh93/sh/nvtype.c	Mon Jun 24 07:10:02 2013
beec163c6a30 15993811 A help message type in ksh93 displays off by one
Mohana Rao Gorai <mohana.gorai@oracle.com>
parents:
diff changeset
     2
+++ b/src/cmd/ksh93/sh/nvtype.c	Mon Jun 24 08:33:32 2013
beec163c6a30 15993811 A help message type in ksh93 displays off by one
Mohana Rao Gorai <mohana.gorai@oracle.com>
parents:
diff changeset
     3
@@ -925,8 +925,6 @@
beec163c6a30 15993811 A help message type in ksh93 displays off by one
Mohana Rao Gorai <mohana.gorai@oracle.com>
parents:
diff changeset
     4
 	}
beec163c6a30 15993811 A help message type in ksh93 displays off by one
Mohana Rao Gorai <mohana.gorai@oracle.com>
parents:
diff changeset
     5
 	offset = roundof(offset,sizeof(char*));
beec163c6a30 15993811 A help message type in ksh93 displays off by one
Mohana Rao Gorai <mohana.gorai@oracle.com>
parents:
diff changeset
     6
 	nv_setsize(mp,offset);
beec163c6a30 15993811 A help message type in ksh93 displays off by one
Mohana Rao Gorai <mohana.gorai@oracle.com>
parents:
diff changeset
     7
-	if(nd)
beec163c6a30 15993811 A help message type in ksh93 displays off by one
Mohana Rao Gorai <mohana.gorai@oracle.com>
parents:
diff changeset
     8
-		nd++;
beec163c6a30 15993811 A help message type in ksh93 displays off by one
Mohana Rao Gorai <mohana.gorai@oracle.com>
parents:
diff changeset
     9
 	k = roundof(sizeof(Namtype_t),sizeof(Sfdouble_t)) - sizeof(Namtype_t);
beec163c6a30 15993811 A help message type in ksh93 displays off by one
Mohana Rao Gorai <mohana.gorai@oracle.com>
parents:
diff changeset
    10
 	pp = newof(NiL, Namtype_t, 1, nnodes*NV_MINSZ + offset + size + (nnodes+nd)*sizeof(char*) + iref*sizeof(struct Namref)+k);
beec163c6a30 15993811 A help message type in ksh93 displays off by one
Mohana Rao Gorai <mohana.gorai@oracle.com>
parents:
diff changeset
    11
 	pp->fun.dsize = sizeof(Namtype_t)+nnodes*NV_MINSZ +offset+k;