change log level when fuzzing if not specified

This commit is contained in:
Alex Groce
2019-01-02 15:23:23 -07:00
parent 51d8518c51
commit caa3d33429

View File

@@ -642,6 +642,10 @@ bool DeepState_CatchAbandoned(void) {
Has to be defined here since we redefine rand in the header. */
int DeepState_Fuzz(void){
DeepState_LogFormat(DeepState_LogInfo, "Starting fuzzing");
if (!HAS_FLAG_log_level) {
FLAGS_log_level = 2;
}
if (HAS_FLAG_seed) {
srand(FLAGS_seed);