Bug 1240717 - initialize stackAddress_ with nullptr in order to prevent garbage value. r?jorendorff draft
authorBogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Tue, 19 Jan 2016 15:03:35 +0200
changeset 322669 52cf31f4357214a9171edb986fd95b1a5fc3dfce
parent 322386 a77b73c7723e1060993045fb31eb2f0a30473486
child 513146 839705bad283c2f5045ac4414a2bf5b9eaf800ee
push id9650
push userbmo:bogdan.postelnicu@softvision.ro
push dateTue, 19 Jan 2016 13:04:42 +0000
reviewersjorendorff
bugs1240717
milestone46.0a1
Bug 1240717 - initialize stackAddress_ with nullptr in order to prevent garbage value. r?jorendorff
js/src/asmjs/WasmFrameIterator.cpp
--- a/js/src/asmjs/WasmFrameIterator.cpp
+++ b/js/src/asmjs/WasmFrameIterator.cpp
@@ -510,16 +510,17 @@ ProfilingFrameIterator::initFromFP(const
 typedef JS::ProfilingFrameIterator::RegisterState RegisterState;
 
 ProfilingFrameIterator::ProfilingFrameIterator(const WasmActivation& activation,
                                                const RegisterState& state)
   : module_(&activation.module()),
     codeRange_(nullptr),
     callerFP_(nullptr),
     callerPC_(nullptr),
+    stackAddress_(nullptr),
     exitReason_(ExitReason::None)
 {
     // If profiling hasn't been enabled for this module, then CallerFPFromFP
     // will be trash, so ignore the entire activation. In practice, this only
     // happens if profiling is enabled while module->active() (in this case,
     // profiling will be enabled when the module becomes inactive and gets
     // called again).
     if (!module_->profilingEnabled()) {