summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-04-03 13:26:16 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-04-03 13:26:16 (GMT)
commita411cd47dcda82b926fa719508a6c445cf5ab503 (patch)
treeab8a029e357ef92e634c80d00a6ee43daf33ddfa
parentf786fd625e0b4ab3bd3316570deca8c63d856d0c (diff)
parent6c3c75da93a7175c089c203b42184e0ed86df6db (diff)
downloadtcl-a411cd47dcda82b926fa719508a6c445cf5ab503.zip
tcl-a411cd47dcda82b926fa719508a6c445cf5ab503.tar.gz
tcl-a411cd47dcda82b926fa719508a6c445cf5ab503.tar.bz2
[Bug 3205320]: stack space detection defeated by inlining. Now fixed in the cross-compile case as well.
-rw-r--r--ChangeLog8
-rw-r--r--unix/tclUnixInit.c5
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 358ee99..cb518ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
-2013-03-29 Don Porter <dgp@users.sourceforge.net>
+2013-04-03 Jan Nijtmans <nijtmans@users.sf.net>
+
+ * unix/tclUnixInit.c: [Bug 3205320]: stack space detection
+ defeated by inlining. Now fixed in the cross-compile
+ case as well.
+
+2013-04-03 Don Porter <dgp@users.sourceforge.net>
*** 8.5.14 TAGGED FOR RELEASE ***
diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c
index f9015b7..0b98cf9 100644
--- a/unix/tclUnixInit.c
+++ b/unix/tclUnixInit.c
@@ -1111,7 +1111,7 @@ TclpGetCStackParams(
* Not initialised!
*/
- stackGrowsDown = StackGrowsDown(&result);
+ stackGrowsDown = StackGrowsDown(NULL);
}
#endif
@@ -1186,6 +1186,9 @@ StackGrowsDown(
int *parent)
{
int here;
+ if (!parent) {
+ return StackGrowsDown(&here);
+ }
return (&here < parent);
}
#endif