mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-11 09:41:35 +00:00
Fixed frida unstable coverage for instances not named "default"
This commit is contained in:
parent
8c4ecd90a8
commit
bb72cc752a
@ -818,6 +818,9 @@ void instrument_coverage_unstable_find_output(void) {
|
||||
|
||||
GDir *dir = g_dir_open(fds_name, 0, NULL);
|
||||
|
||||
gchar *path_tmp = getenv("AFL_CUSTOM_INFO_OUT");
|
||||
gchar *instance_name = g_path_get_basename(path_tmp);
|
||||
|
||||
FVERBOSE("Coverage Unstable - fds: %s", fds_name);
|
||||
|
||||
for (const gchar *filename = g_dir_read_name(dir); filename != NULL;
|
||||
@ -829,7 +832,7 @@ void instrument_coverage_unstable_find_output(void) {
|
||||
if (link == NULL) { FFATAL("Failed to read link: %s", fullname); }
|
||||
|
||||
gchar *basename = g_path_get_basename(link);
|
||||
if (g_strcmp0(basename, "default") != 0) {
|
||||
if (g_strcmp0(basename, instance_name) != 0) {
|
||||
|
||||
g_free(basename);
|
||||
g_free(link);
|
||||
@ -849,7 +852,7 @@ void instrument_coverage_unstable_find_output(void) {
|
||||
relative = g_build_path("/", link, NULL);
|
||||
|
||||
}
|
||||
|
||||
|
||||
gchar *cmdline = g_build_path("/", relative, "cmdline", NULL);
|
||||
if (!g_file_test(cmdline, G_FILE_TEST_EXISTS)) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user