From 6d05779c7c59993840a4b077086a1a0049da8cf6 Mon Sep 17 00:00:00 2001 From: Dobin Date: Fri, 5 Jul 2024 10:44:48 +0100 Subject: [PATCH] fix: config int bug --- phases/templater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phases/templater.py b/phases/templater.py index 8ce943f..84517c9 100644 --- a/phases/templater.py +++ b/phases/templater.py @@ -61,7 +61,7 @@ def create_c_from_template(settings: Settings, payload_len: int): settings.plugin_antiemulation) with open(filepath_antiemulation, "r", encoding='utf-8') as file: sir_iteration_count = 5 - sir_alloc_count = int(config.get("sir_target_mem") / payload_len)+1 + sir_alloc_count = (int(config.get("sir_target_mem")) / payload_len)+1 # if too large, compiler will add a __checkstk dependency if sir_alloc_count > 256: sir_alloc_count = 256