summaryrefslogtreecommitdiff
path: root/src/analysis/db/items
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-01-14 15:49:16 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-01-14 15:49:16 (GMT)
commit1aa9ba33144b37ae96859573699a80adde93e509 (patch)
tree72bca95c51353e0ff38b82c6763b3e1de0a9c393 /src/analysis/db/items
parenta156dc15cccb54d662b0085c8e4f27767dd5542f (diff)
Fixed a bug about pure comments containing code.
Diffstat (limited to 'src/analysis/db/items')
-rw-r--r--src/analysis/db/items/comment.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/analysis/db/items/comment.c b/src/analysis/db/items/comment.c
index 936e2ac..c021e44 100644
--- a/src/analysis/db/items/comment.c
+++ b/src/analysis/db/items/comment.c
@@ -658,6 +658,8 @@ static bool g_db_comment_run(GDbComment *comment, GLoadedBinary *binary, bool ap
linked = g_buffer_cache_find_index_by_addr(cache, get_mrange_addr(range), true);
assert(linked != g_buffer_cache_count_lines(cache));
+ linked = g_buffer_cache_look_for_flag(cache, linked, BLF_HAS_CODE | BLF_IS_LABEL);
+
RUN_INLINED_COMMENT(linked, comment, comment->old_inlined[i]);
}