File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
plugins/inmemoryscanner/src/lib Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,9 @@ target_include_directories(inmemoryscanner-obj INTERFACE $<BUILD_INTERFACE:${CMA
14
14
15
15
include (FindPkgConfig )
16
16
17
- pkg_check_modules (YARA REQUIRED yara>=4 )
17
+ pkg_check_modules (YARA REQUIRED yara>=4.2 )
18
18
target_link_libraries (inmemoryscanner-obj PUBLIC ${YARA_LINK_LIBRARIES} )
19
19
20
- if (${YARA_VERSION} VERSION_GREATER_EQUAL 4.1 )
21
- target_compile_definitions (inmemoryscanner-obj PRIVATE LIBYARA_4_1 )
22
- endif ()
23
-
24
20
pkg_check_modules (TCLAP REQUIRED tclap>=1.2 )
25
21
26
22
include (FetchContent )
Original file line number Diff line number Diff line change @@ -77,16 +77,12 @@ namespace InMemoryScanner
77
77
mappedRegion.mappingBase ,
78
78
&fetch_block_data);
79
79
}
80
- # ifdef LIBYARA_4_1
80
+
81
81
YR_MEMORY_BLOCK_ITERATOR iterator{.context = &iteratorContext,
82
82
.first = &get_first_block,
83
83
.next = &get_next_block,
84
84
.file_size = nullptr ,
85
85
.last_error = ERROR_SUCCESS};
86
- #else
87
- YR_MEMORY_BLOCK_ITERATOR iterator{
88
- .context = &iteratorContext, .first = &get_first_block, .next = &get_next_block};
89
- #endif
90
86
91
87
if (auto err = yr_rules_scan_mem_blocks (rules,
92
88
&iterator,
You can’t perform that action at this time.
0 commit comments