This commit is contained in:
mio
2025-01-19 23:51:44 +08:00
parent 1c9925c7d7
commit a60003e3cf
2 changed files with 3 additions and 4 deletions

View File

@ -247,7 +247,7 @@ static inline void insert_object(aflcc_state_t *aflcc, u8 *obj, u8 *fmt,
/* Insert params into the new argv, make clang load the pass. */
static inline void load_llvm_pass(aflcc_state_t *aflcc, u8 *pass) {
if (getenv("AFL_SAN_NO_INST")) {
if (debug) {
if (!be_quiet) {
DEBUGF("Instrument disabled\n");
}
return;
@ -2091,7 +2091,7 @@ void add_native_pcguard(aflcc_state_t *aflcc) {
*/
if (aflcc->have_rust_asanrt) { return; }
if (getenv("AFL_SAN_NO_INST")) {
if (debug) {
if (!be_quiet) {
DEBUGF("Instrument disabled\n");
}
return;
@ -2131,7 +2131,7 @@ void add_native_pcguard(aflcc_state_t *aflcc) {
void add_optimized_pcguard(aflcc_state_t *aflcc) {
if (getenv("AFL_SAN_NO_INST")) {
if (debug) {
if (!be_quiet) {
DEBUGF("Instrument disabled\n");
}
return;

View File

@ -511,7 +511,6 @@ u8 __attribute__((hot)) save_if_interesting(afl_state_t *afl, void *mem,
u8 san_fault = 0;
u8 san_idx = 0;
u8 feed_san = 0;
u8 crashed = 0;
afl->san_case_status = 0;