Skip to content

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

Open
@SunghoLee

Description

@SunghoLee

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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