This commit is contained in:
vanhauser-thc 2022-07-07 11:10:12 +02:00
parent 1759859ae2
commit 05080f32ee
2 changed files with 11 additions and 5 deletions

View File

@ -1,6 +1,8 @@
# #
# This Dockerfile for AFLplusplus uses Ubuntu 22.04 jammy and # This Dockerfile for AFLplusplus uses Ubuntu 22.04 jammy and
# installs LLVM 14 for afl-clang-lto support :-) # installs LLVM 14 for afl-clang-lto support.
#
# GCC 11 is used instead of 12 because genhtml for afl-cov doesn't like it.
# #
FROM ubuntu:22.04 AS aflplusplus FROM ubuntu:22.04 AS aflplusplus
@ -25,6 +27,7 @@ RUN apt-get update && \
libglib2.0-dev \ libglib2.0-dev \
wget vim jupp nano bash-completion less \ wget vim jupp nano bash-completion less \
apt-utils apt-transport-https ca-certificates gnupg dialog \ apt-utils apt-transport-https ca-certificates gnupg dialog \
joe vim ssh \
libpixman-1-dev \ libpixman-1-dev \
gnuplot-nox \ gnuplot-nox \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*

View File

@ -574,8 +574,9 @@ bool SplitComparesTransform::splitCompare(CmpInst *cmp_inst, Module &M,
case CmpInst::ICMP_SLE: case CmpInst::ICMP_SLE:
break; break;
default: default:
fprintf(stderr, "Error: split-compare: Unsupported predicate (%u)\n", if (!be_quiet)
pred); fprintf(stderr, "Error: split-compare: Unsupported predicate (%u)\n",
pred);
// unsupported predicate! // unsupported predicate!
return false; return false;
@ -702,7 +703,8 @@ bool SplitComparesTransform::splitCompare(CmpInst *cmp_inst, Module &M,
CmpInst * icmp_inv_cmp = nullptr; CmpInst * icmp_inv_cmp = nullptr;
BasicBlock * inv_cmp_bb = BasicBlock * inv_cmp_bb =
BasicBlock::Create(C, "inv_cmp", end_bb->getParent(), end_bb); BasicBlock::Create(C, "inv_cmp", end_bb->getParent(), end_bb);
if (pred == CmpInst::ICMP_UGT) { if (pred == CmpInst::ICMP_UGT || pred == CmpInst::ICMP_SGT ||
pred == CmpInst::ICMP_UGE || pred == CmpInst::ICMP_SGE) {
icmp_inv_cmp = CmpInst::Create(Instruction::ICmp, CmpInst::ICMP_ULT, icmp_inv_cmp = CmpInst::Create(Instruction::ICmp, CmpInst::ICMP_ULT,
op0_high, op1_high); op0_high, op1_high);
@ -744,7 +746,8 @@ bool SplitComparesTransform::splitCompare(CmpInst *cmp_inst, Module &M,
} }
default: default:
fprintf(stderr, "Error: split-compare: should not happen\n"); if (!be_quiet)
fprintf(stderr, "Error: split-compare: should not happen\n");
return false; return false;
} }