aboutsummaryrefslogtreecommitdiff
path: root/instrumentation
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-01-08 12:55:05 +0100
committervan Hauser <vh@thc.org>2021-01-08 12:55:05 +0100
commit1827c65596803fae6add7aed269724f4bb041b0c (patch)
tree60116a3409ac199572a5476f675d5f3a375f57b0 /instrumentation
parent3d1a25ce4e8862b82662c64fbea000692f300c62 (diff)
downloadAFLplusplus-1827c65596803fae6add7aed269724f4bb041b0c.tar.gz
better gcc_plugin error msg
Diffstat (limited to 'instrumentation')
-rw-r--r--instrumentation/afl-compiler-rt.o.c10
-rw-r--r--instrumentation/afl-gcc-pass.so.cc5
2 files changed, 4 insertions, 11 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c
index add303d7..f194510e 100644
--- a/instrumentation/afl-compiler-rt.o.c
+++ b/instrumentation/afl-compiler-rt.o.c
@@ -1437,15 +1437,7 @@ void __afl_coverage_abort() {
// mark this area as especially interesting
void __afl_coverage_interesting(u8 val, u32 id) {
- if (id) {
-
- __afl_area_ptr[id] = val;
-
- } else {
-
- __afl_area_ptr[(rand() % __afl_map_size)] = val;
-
- }
+ __afl_area_ptr[id] = val;
}
diff --git a/instrumentation/afl-gcc-pass.so.cc b/instrumentation/afl-gcc-pass.so.cc
index 47e1c1bf..65821c68 100644
--- a/instrumentation/afl-gcc-pass.so.cc
+++ b/instrumentation/afl-gcc-pass.so.cc
@@ -922,8 +922,9 @@ int plugin_init(struct plugin_name_args * info,
struct plugin_gcc_version *version) {
if (!plugin_default_version_check(version, &gcc_version))
- FATAL(G_("GCC and plugin have incompatible versions, expected GCC %d.%d"),
- GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR);
+ FATAL(G_("GCC and plugin have incompatible versions, expected GCC %d.%d, "
+ "is %s"),
+ GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR, version->basever);
/* Show a banner. */
bool quiet = false;