Skip to content

Commit 27a2474

Browse files
committed
Fix the path is None for deflat
1 parent c2abb0b commit 27a2474

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

qiling/extensions/idaplugin/qilingida.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,6 +1625,7 @@ def _search_path(self):
16251625
self.paths = {bbid: [] for bbid in self.bb_mapping.keys()}
16261626
reals = [self.first_block, *self.real_blocks]
16271627
self.deflatqlemu = QlEmuQiling()
1628+
self.deflatqlemu.path = self.qlemu.path
16281629
self.deflatqlemu.rootfs = self.qlemu.rootfs
16291630
first_block = self.bb_mapping[self.first_block]
16301631
if IDA.get_ql_arch_string() == "arm32":
@@ -1844,6 +1845,9 @@ def _prepare_microcodes(self, decomp_flags=ida_hexrays.DECOMP_WARNINGS | ida_hex
18441845
def ql_deflat(self):
18451846
if len(self.bb_mapping) == 0:
18461847
self.ql_parse_blocks_for_deobf()
1848+
if not self.qlinit:
1849+
logging.info("Qiling should be setup firstly!")
1850+
return
18471851
self.mba, self.insns, self.mbbs = self._prepare_microcodes(maturity=3)
18481852
logging.debug("Microcode generation done. Going to search path.")
18491853
if not self._search_path():

0 commit comments

Comments
 (0)