Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SunghoLee opened this issue Aug 11, 2023 · 0 comments
Open

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

SunghoLee opened this issue Aug 11, 2023 · 0 comments

Comments

@SunghoLee
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant