Skip to content

Commit 85c74a7

Browse files
committed
temporary patch for #125
1 parent f54b92a commit 85c74a7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ghidriff/ghidra_diff_engine.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,13 @@ def analyze_program(self, df_or_prog: Union["ghidra.framework.model.DomainFile",
925925

926926
self.logger.info(f'Starting Ghidra analysis of {program}...')
927927
try:
928+
# temp fix for #125
929+
# introduces random delay time before analysis start
930+
import time
931+
import random
932+
sleep_duration = random.uniform(3, 7)
933+
time.sleep(sleep_duration)
934+
#####
928935
flat_api.analyzeAll(program)
929936
if hasattr(GhidraProgramUtilities, 'setAnalyzedFlag'):
930937
GhidraProgramUtilities.setAnalyzedFlag(program, True)

0 commit comments

Comments
 (0)