mirror of
https://github.com/mandiant/capa.git
synced 2026-02-04 19:12:01 -08:00
Merge pull request #1208 from mandiant/williballenthin-patch-2
import-to-ida: fix append comment
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user