From 5dbaefb176675ec70b9560c56d5956e41737353b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Sun, 27 May 2018 21:49:14 +0200 Subject: [PATCH] Exit AnalTask if interrupted --- src/AnalTask.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/AnalTask.cpp b/src/AnalTask.cpp index ce58a3c8..9cac2fc6 100644 --- a/src/AnalTask.cpp +++ b/src/AnalTask.cpp @@ -52,6 +52,10 @@ void AnalTask::runTask() } } + if (isInterrupted()) { + return; + } + if (!options.os.isNull()) { Core()->cmd("e asm.os=" + options.os); } @@ -61,10 +65,18 @@ void AnalTask::runTask() Core()->loadPDB(options.pdbFile); } + if (isInterrupted()) { + return; + } + if (!options.script.isNull()) { Core()->loadScript(options.script); } + if (isInterrupted()) { + return; + } + if (options.endian != InitialOptions::Endianness::Auto) { Core()->setEndianness(options.endian == InitialOptions::Endianness::Big); }