mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-09 08:41:32 +00:00
Fix delayed pcmap writing for code coverage with pc-table
This commit is contained in:
parent
6062668679
commit
e46fac6063
@ -1617,7 +1617,7 @@ void __sanitizer_cov_pcs_init(const uintptr_t *pcs_beg,
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pc_filter) {
|
if (pc_filter && !mod_info->next) {
|
||||||
|
|
||||||
char PcDescr[1024];
|
char PcDescr[1024];
|
||||||
// This function is a part of the sanitizer run-time.
|
// This function is a part of the sanitizer run-time.
|
||||||
@ -1644,7 +1644,7 @@ void __sanitizer_cov_pcs_init(const uintptr_t *pcs_beg,
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (__afl_filter_pcs && strstr(mod_info->name, __afl_filter_pcs_module)) {
|
if (__afl_filter_pcs && !mod_info->next && strstr(mod_info->name, __afl_filter_pcs_module)) {
|
||||||
|
|
||||||
u32 result_index;
|
u32 result_index;
|
||||||
if (locate_in_pcs(PC, &result_index)) {
|
if (locate_in_pcs(PC, &result_index)) {
|
||||||
@ -1669,8 +1669,12 @@ void __sanitizer_cov_pcs_init(const uintptr_t *pcs_beg,
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (__afl_pcmap_ptr) {
|
||||||
|
|
||||||
mod_info->mapped = 1;
|
mod_info->mapped = 1;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (__afl_debug) {
|
if (__afl_debug) {
|
||||||
|
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user