mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-19 21:13:45 +00:00
make afl-showmap more silent
This commit is contained in:
@ -574,6 +574,8 @@ Note that the INPUTFILE argument that the target program would read from has to
|
|||||||
If the target reads from stdin instead, just omit the `@@` as this is the
|
If the target reads from stdin instead, just omit the `@@` as this is the
|
||||||
default.
|
default.
|
||||||
|
|
||||||
|
This step is highly recommended!
|
||||||
|
|
||||||
#### c) Minimizing all corpus files
|
#### c) Minimizing all corpus files
|
||||||
|
|
||||||
The shorter the input files that still traverse the same path
|
The shorter the input files that still traverse the same path
|
||||||
@ -589,7 +591,8 @@ for i in *; do
|
|||||||
done
|
done
|
||||||
```
|
```
|
||||||
|
|
||||||
This step can also be parallelized, e.g. with `parallel`
|
This step can also be parallelized, e.g. with `parallel`.
|
||||||
|
Note that this step is rather optional though.
|
||||||
|
|
||||||
#### Done!
|
#### Done!
|
||||||
|
|
||||||
|
@ -401,14 +401,23 @@ static u32 read_file(u8 *in_file) {
|
|||||||
|
|
||||||
if (fstat(fd, &st) || !st.st_size) {
|
if (fstat(fd, &st) || !st.st_size) {
|
||||||
|
|
||||||
WARNF("Zero-sized input file '%s'.", in_file);
|
if (!be_quiet && !quiet_mode) {
|
||||||
|
|
||||||
|
WARNF("Zero-sized input file '%s'.", in_file);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (st.st_size > MAX_FILE) {
|
if (st.st_size > MAX_FILE) {
|
||||||
|
|
||||||
WARNF("Input file '%s' is too large, only reading %u bytes.", in_file,
|
if (!be_quiet && !quiet_mode) {
|
||||||
MAX_FILE);
|
|
||||||
|
WARNF("Input file '%s' is too large, only reading %u bytes.", in_file,
|
||||||
|
MAX_FILE);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
in_len = MAX_FILE;
|
in_len = MAX_FILE;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@ -748,7 +757,7 @@ u32 execute_testcases(u8 *dir) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (st.st_size > MAX_FILE && !be_quiet) {
|
if (st.st_size > MAX_FILE && !be_quiet && !quiet_mode) {
|
||||||
|
|
||||||
WARNF("Test case '%s' is too big (%s, limit is %s), partial reading", fn2,
|
WARNF("Test case '%s' is too big (%s, limit is %s), partial reading", fn2,
|
||||||
stringify_mem_size(val_buf[0], sizeof(val_buf[0]), st.st_size),
|
stringify_mem_size(val_buf[0], sizeof(val_buf[0]), st.st_size),
|
||||||
|
Reference in New Issue
Block a user