Skip to content

Commit aace0d1

Browse files
committed
code format
1 parent cee4b45 commit aace0d1

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

docs/Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ sending a mail to <[email protected]>.
1616
exactly one master is present and warn otherwise
1717
- If no master is present at a sync one slave automatically becomes
1818
a temporary master until a real master shows up
19+
- fix/update to MOpt (thanks to arnow117)
1920
- llvm_mode:
2021
- the default instrumentation is now PCGUARD, as it is faster and provides
2122
better coverage. The original afl instrumentation can be set via

docs/INSTALL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ You can start using the fuzzer without installation, but it is also possible to
1717
install it with:
1818

1919
```bash
20-
make install
20+
sudo make install
2121
```
2222

2323
There are no special dependencies to speak of; you will need GNU make and a
@@ -46,7 +46,7 @@ please install it first. As on Linux, you can use the fuzzer itself without
4646
installation, or install it with:
4747

4848
```
49-
gmake install
49+
sudo gmake install
5050
```
5151

5252
Keep in mind that if you are using csh as your shell, the syntax of some of the

src/afl-fuzz-one.c

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4251,7 +4251,7 @@ static u8 mopt_common_fuzzing(afl_state_t *afl, MOpt_globals_t MOpt_globals) {
42514251
afl->queued_paths + afl->unique_crashes - temp_total_found;
42524252
afl->total_puppet_find = afl->total_puppet_find + temp_temp_puppet;
42534253

4254-
if (MOpt_globals.is_pilot_mode){
4254+
if (MOpt_globals.is_pilot_mode) {
42554255

42564256
for (i = 0; i < operator_num; ++i) {
42574257

@@ -4265,13 +4265,14 @@ static u8 mopt_common_fuzzing(afl_state_t *afl, MOpt_globals_t MOpt_globals) {
42654265

42664266
} else {
42674267

4268-
for (i = 0; i < operator_num; i++) {
4268+
for (i = 0; i < operator_num; i++) {
42694269

4270-
if (afl->core_operator_cycles_puppet_v2[i] > afl->core_operator_cycles_puppet_v3[i])
4270+
if (afl->core_operator_cycles_puppet_v2[i] >
4271+
afl->core_operator_cycles_puppet_v3[i])
42714272

4272-
afl->core_operator_finds_puppet_v2[i] += temp_temp_puppet;
4273+
afl->core_operator_finds_puppet_v2[i] += temp_temp_puppet;
42734274

4274-
}
4275+
}
42754276

42764277
}
42774278

@@ -4545,14 +4546,15 @@ static u8 mopt_common_fuzzing(afl_state_t *afl, MOpt_globals_t MOpt_globals) {
45454546

45464547
} else {
45474548

4548-
for (i = 0; i < operator_num; i++)
4549-
{
4549+
for (i = 0; i < operator_num; i++) {
45504550

4551-
afl->core_operator_finds_puppet[i] = afl->core_operator_finds_puppet_v2[i];
4552-
afl->core_operator_cycles_puppet[i] = afl->core_operator_cycles_puppet_v2[i];
4553-
temp_stage_finds_puppet += afl->core_operator_finds_puppet[i];
4554-
4555-
}
4551+
afl->core_operator_finds_puppet[i] =
4552+
afl->core_operator_finds_puppet_v2[i];
4553+
afl->core_operator_cycles_puppet[i] =
4554+
afl->core_operator_cycles_puppet_v2[i];
4555+
temp_stage_finds_puppet += afl->core_operator_finds_puppet[i];
4556+
4557+
}
45564558

45574559
afl->key_module = 2;
45584560

0 commit comments

Comments
 (0)