mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 02:58:08 +00:00
v3.00c
This commit is contained in:
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
Release Version: [2.68c](https://github.com/AFLplusplus/AFLplusplus/releases)
|
Release Version: [3.00c](https://github.com/AFLplusplus/AFLplusplus/releases)
|
||||||
|
|
||||||
Github Version: 3.00a
|
Github Version: 3.00a
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
/* Version string: */
|
/* Version string: */
|
||||||
|
|
||||||
// c = release, d = volatile github dev, e = experimental branch
|
// c = release, d = volatile github dev, e = experimental branch
|
||||||
#define VERSION "++3.00a"
|
#define VERSION "++3.00c"
|
||||||
|
|
||||||
/******************************************************
|
/******************************************************
|
||||||
* *
|
* *
|
||||||
|
26
src/afl-cc.c
26
src/afl-cc.c
@ -69,6 +69,7 @@ enum {
|
|||||||
INSTRUMENT_INSTRIM = 3,
|
INSTRUMENT_INSTRIM = 3,
|
||||||
INSTRUMENT_CFG = 3,
|
INSTRUMENT_CFG = 3,
|
||||||
INSTRUMENT_LTO = 4,
|
INSTRUMENT_LTO = 4,
|
||||||
|
INSTRUMENT_LLVMNATIVE = 5,
|
||||||
INSTRUMENT_OPT_CTX = 8,
|
INSTRUMENT_OPT_CTX = 8,
|
||||||
INSTRUMENT_OPT_NGRAM = 16
|
INSTRUMENT_OPT_NGRAM = 16
|
||||||
|
|
||||||
@ -76,8 +77,9 @@ enum {
|
|||||||
|
|
||||||
char instrument_mode_string[18][18] = {
|
char instrument_mode_string[18][18] = {
|
||||||
|
|
||||||
"DEFAULT", "CLASSIC", "PCGUARD", "CFG", "LTO", "", "", "", "CTX", "",
|
"DEFAULT", "CLASSIC", "PCGUARD", "CFG", "LTO", "", "PCGUARD-NATIVE",
|
||||||
"", "", "", "", "", "", "NGRAM", ""
|
"", "CTX", "", "", "", "", "",
|
||||||
|
"", "", "NGRAM", ""
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -580,6 +582,14 @@ static void edit_params(u32 argc, char **argv, char **envp) {
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
} else if (instrument_mode == INSTRUMENT_LLVMNATIVE) {
|
||||||
|
|
||||||
|
#if LLVM_MAJOR >= 4
|
||||||
|
cc_params[cc_par_cnt++] = "-fsanitize-coverage=trace-pc-guard";
|
||||||
|
#else
|
||||||
|
FATAL("pcguard instrumentation requires llvm 4.0.1+");
|
||||||
|
#endif
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
cc_params[cc_par_cnt++] = "-Xclang";
|
cc_params[cc_par_cnt++] = "-Xclang";
|
||||||
@ -1162,6 +1172,18 @@ int main(int argc, char **argv, char **envp) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// this is a hidden option
|
||||||
|
if (strncasecmp(ptr, "llvmnative", strlen("llvmnative")) == 0 ||
|
||||||
|
strncasecmp(ptr, "llvm-native", strlen("llvm-native")) == 0) {
|
||||||
|
|
||||||
|
if (!instrument_mode || instrument_mode == INSTRUMENT_LLVMNATIVE)
|
||||||
|
instrument_mode = INSTRUMENT_LLVMNATIVE;
|
||||||
|
else
|
||||||
|
FATAL("main instrumentation mode already set with %s",
|
||||||
|
instrument_mode_string[instrument_mode]);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (strncasecmp(ptr, "cfg", strlen("cfg")) == 0 ||
|
if (strncasecmp(ptr, "cfg", strlen("cfg")) == 0 ||
|
||||||
strncasecmp(ptr, "instrim", strlen("instrim")) == 0) {
|
strncasecmp(ptr, "instrim", strlen("instrim")) == 0) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user