Skip to content

Wrong distance calculations in the Search-Based Fuzzing section #165

Open
@SunghoLee

Description

Hi all.
I am enjoying your materials. Thanks for sharing!

The distance calculations in the Search-Based Fuzzing section look wrong.
image

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions