From 12c9c466c710db42449c7987fb32bd97f1a0f6d9 Mon Sep 17 00:00:00 2001 From: Willi Ballenthin Date: Mon, 5 Dec 2022 16:02:40 +0100 Subject: [PATCH 1/2] import-to-ida: fix append comment ref #1204 --- scripts/import-to-ida.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/import-to-ida.py b/scripts/import-to-ida.py index e45ba1da..041a23d3 100644 --- a/scripts/import-to-ida.py +++ b/scripts/import-to-ida.py @@ -51,7 +51,11 @@ def append_func_cmt(va, cmt, repeatable=False): if cmt in existing: return - new = existing + "\n" + cmt + if len(existing) > 0: + new = existing + "\n" + cmt + else: + new = cmt + ida_funcs.set_func_cmt(func, new, repeatable) From 236ad883d47868ccb88a156358c4a888e71e38aa Mon Sep 17 00:00:00 2001 From: Willi Ballenthin Date: Mon, 5 Dec 2022 15:13:16 +0000 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48e62323..130e34cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - verify rule metadata format on load #1160 @mr-tz - extract property features from .NET PE files #1168 @anushkavirgaonkar - emit features for .NET newobj instruction #1186 @mike-hunhoff +- fix import-to-ida script formatting #1208 @williballenthin ### Breaking Changes