Wrong distance calculations in the Search-Based Fuzzing section #165
Open
Description
Hi all.
I am enjoying your materials. Thanks for sharing!
The distance calculations in the Search-Based Fuzzing section look wrong.
The true distance calculation "b - a + 1" of "a < b" is wrong. Let's suppose that "a" is "3" and "b" is "2". The condition "3 < 2" is false, but the true distance "2 - 3 + 1" is calculated to "0". Thus, we need to calculate the true distance as "a - b + 1". Similarly, the distance calculations of "a <= b" and "a > b" need to be fixed.
Am I correct? or is there something that I misunderstood?
Metadata
Assignees
Labels
No labels