code format

This commit is contained in:
Dominik Maier 2020-04-10 22:54:31 +02:00
parent 3ab7fcf5dd
commit 39e8b91806
2 changed files with 5 additions and 3 deletions

View File

@ -517,8 +517,9 @@ bool AFLLTOPass::runOnModule(Module &M) {
GlobalVariable *AFLFinalLoc = new GlobalVariable(
M, Int32Ty, true, GlobalValue::ExternalLinkage, 0, "__afl_final_loc",
0, GlobalVariable::GeneralDynamicTLSModel, 0, false);
ConstantInt *const_loc = ConstantInt::get(Int32Ty, (((afl_global_id + 8) >> 3) << 3));
StoreInst * StoreFinalLoc = IRB.CreateStore(const_loc, AFLFinalLoc);
ConstantInt *const_loc =
ConstantInt::get(Int32Ty, (((afl_global_id + 8) >> 3) << 3));
StoreInst *StoreFinalLoc = IRB.CreateStore(const_loc, AFLFinalLoc);
StoreFinalLoc->setMetadata(M.getMDKindID("nosanitize"),
MDNode::get(C, None));

View File

@ -923,7 +923,8 @@ int main(int argc, char **argv_orig, char **envp) {
if (afl->file_extension) {
snprintf(tmpfile, PATH_MAX, "%s/.cur_input.%s", afl->tmp_dir, afl->file_extension);
snprintf(tmpfile, PATH_MAX, "%s/.cur_input.%s", afl->tmp_dir,
afl->file_extension);
} else {