mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 04:18:06 +00:00
code format
This commit is contained in:
@ -356,9 +356,8 @@ bool AFLCoverage::runOnModule(Module &M) {
|
||||
if (has_calls) {
|
||||
|
||||
Value *NewCtx = ConstantInt::get(Int32Ty, AFL_R(map_size));
|
||||
if (ctx_str)
|
||||
NewCtx = IRB.CreateXor(PrevCtx, NewCtx);
|
||||
StoreInst * StoreCtx = IRB.CreateStore(NewCtx, AFLContext);
|
||||
if (ctx_str) NewCtx = IRB.CreateXor(PrevCtx, NewCtx);
|
||||
StoreInst *StoreCtx = IRB.CreateStore(NewCtx, AFLContext);
|
||||
StoreCtx->setMetadata(M.getMDKindID("nosanitize"),
|
||||
MDNode::get(C, None));
|
||||
|
||||
|
@ -1432,7 +1432,9 @@ int main(int argc, char **argv, char **envp) {
|
||||
|
||||
if ((instrument_opt_mode & INSTRUMENT_OPT_CTX) &&
|
||||
(instrument_opt_mode & INSTRUMENT_OPT_CALLER)) {
|
||||
|
||||
FATAL("you cannot set CTX and CALLER together");
|
||||
|
||||
}
|
||||
|
||||
if (instrument_opt_mode && instrument_mode == INSTRUMENT_DEFAULT &&
|
||||
@ -1795,11 +1797,11 @@ int main(int argc, char **argv, char **envp) {
|
||||
} else {
|
||||
|
||||
char *ptr2 = alloc_printf(" + NGRAM-%u", ngram_size);
|
||||
ptr = alloc_printf("%s%s%s%s", instrument_mode_string[instrument_mode],
|
||||
ptr = alloc_printf(
|
||||
"%s%s%s%s", instrument_mode_string[instrument_mode],
|
||||
(instrument_opt_mode & INSTRUMENT_OPT_CTX) ? " + CTX" : "",
|
||||
(instrument_opt_mode & INSTRUMENT_OPT_CALLER) ? " + CALLER" : "",
|
||||
(instrument_opt_mode & INSTRUMENT_OPT_NGRAM) ? ptr2 : ""
|
||||
);
|
||||
(instrument_opt_mode & INSTRUMENT_OPT_NGRAM) ? ptr2 : "");
|
||||
|
||||
ck_free(ptr2);
|
||||
|
||||
|
Reference in New Issue
Block a user