afl-fuzz.c
static void update_cksum_feature(struct hash_map* hash_index){
  hash_index->mem_num = 0;
  hash_index->bug_num = 0;
  hash_index->func_num = 0;
  hash_index->global_num = 0;
	hash_index->untouch_num = 0;
  hash_index->global_assign_num = 0;

  struct bb *b_case = hash_index->bb_list;
  while(b_case){
    if(bug_bb[b_case->bb_id]) hash_index->bug_num++;
		hash_index->mem_num += mem_num[b_case->bb_id];
		hash_index->func_num += func_num[b_case->bb_id];
		hash_index->global_num += global_num[b_case->bb_id];
		hash_index->untouch_num += untouch_num[b_case->bb_id];
		hash_index->global_assign_num += global_assign_num[b_case->bb_id];
    b_case = b_case->next;
  } 
}
/* Update feature for each cksum. Created by LH. */
Update feature for each cksum. Created by LH.
Update feature for each cksum . Created by LH .
static void update_cksum_feature(struct hash_map* hash_index){
  hash_index->mem_num = 0;
  hash_index->bug_num = 0;
  hash_index->func_num = 0;
  hash_index->global_num = 0;
	hash_index->untouch_num = 0;
  hash_index->global_assign_num = 0;
  struct bb *b_case = hash_index->bb_list;
  while(b_case){
    if(bug_bb[b_case->bb_id]) hash_index->bug_num++;
		hash_index->mem_num += mem_num[b_case->bb_id];
		hash_index->func_num += func_num[b_case->bb_id];
		hash_index->global_num += global_num[b_case->bb_id];
		hash_index->untouch_num += untouch_num[b_case->bb_id];
		hash_index->global_assign_num += global_assign_num[b_case->bb_id];
    b_case = b_case->next;
  } 
}
static void update_cksum_feature ( struct hash_map * hash_index ) { hash_index -> mem_num = 0 ; hash_index -> bug_num = 0 ; hash_index -> func_num = 0 ; hash_index -> global_num = 0 ; hash_index -> untouch_num = 0 ; hash_index -> global_assign_num = 0 ; struct bb * b_case = hash_index -> bb_list ; while ( b_case ) { if ( bug_bb [ b_case -> bb_id ] ) hash_index -> bug_num ++ ; hash_index -> mem_num += mem_num [ b_case -> bb_id ] ; hash_index -> func_num += func_num [ b_case -> bb_id ] ; hash_index -> global_num += global_num [ b_case -> bb_id ] ; hash_index -> untouch_num += untouch_num [ b_case -> bb_id ] ; hash_index -> global_assign_num += global_assign_num [ b_case -> bb_id ] ; b_case = b_case -> next ; } }
Update feature for each cksum.
Update feature for each cksum .