core: heap-use-after-free crash fixed 40/21340/2
Cedric Delamarre [Mon, 17 Feb 2020 13:43:05 +0000 (14:43 +0100)]
Change-Id: Id1bf954ff7f4e6aeb6be7b6e77752cd681e18991

scilab/modules/core/src/cpp/runner.cpp

index 08edaaa..5b67e24 100644 (file)
@@ -219,7 +219,7 @@ Runner* StaticRunner::getRunner(void)
 
 Runner* StaticRunner::getCurrentRunner(void)
 {
-    return m_CurrentRunner;
+    return m_CurrentRunner.load();
 }
 
 // return true if a Runner is already set in m_RunMe.