better gcc_plugin error msg

This commit is contained in:
van Hauser 2021-01-08 12:55:05 +01:00
parent 3d1a25ce4e
commit 1827c65596
2 changed files with 4 additions and 11 deletions

View File

@ -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;
}

View File

@ -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;