Research Article
StFuzzer: Contribution-Aware Coverage-Guided Fuzzing for Smart Devices
Algorithm 2
Calculate dynamic contributions of basic blocks.
| Input: B the set of basic blocks | i: the number of the fuzzing iterations | : Settings threshold | Output: Calculating the dynamic Contribution of each block | (1) | for each block b do | (2) | if then | (3) | if b has been executed then | (4) | | (5) | else | (6) | | (7) | end if | (8) | else | (9) | if b has been executed then | (10) | | (11) | else | (12) | | (13) | end if | (14) | end if | (15) | end for |
|