|
From: <sv...@va...> - 2008-05-02 22:27:02
|
Author: sewardj
Date: 2008-05-02 23:27:07 +0100 (Fri, 02 May 2008)
New Revision: 7994
Log:
Make sure sp[0] and fp[0] are set in a rarely-taken path. Thanks to
Bart for spotting this.
Modified:
trunk/coregrind/m_stacktrace.c
Modified: trunk/coregrind/m_stacktrace.c
===================================================================
--- trunk/coregrind/m_stacktrace.c 2008-05-02 19:21:02 UTC (rev 7993)
+++ trunk/coregrind/m_stacktrace.c 2008-05-02 22:27:07 UTC (rev 7994)
@@ -104,6 +104,8 @@
if (fp_min + 512 >= fp_max) {
/* If the stack limits look bogus, don't poke around ... but
don't bomb out either. */
+ if (sps) sps[0] = sp;
+ if (fps) fps[0] = fp;
ips[0] = ip;
return 1;
}
|