Fuzzing101 icon indicating copy to clipboard operation
Fuzzing101 copied to clipboard

Fix dynamic link library missing

Open Mundi-Xu opened this issue 4 years ago • 5 comments

Gegl-0.2 installs libgegl-0.2.so.0 into /usr/local/lib, which needs to be linked to gimp.

image

image

Mundi-Xu avatar Jan 18 '22 08:01 Mundi-Xu

image

By the way, after modifying the code according to the #15 , it runs normally but the fuzz times out. Is this because of the location of the exit?

Mundi-Xu avatar Jan 18 '22 08:01 Mundi-Xu

I've tried two different methods and it doesn't seem to make a difference, both time out.

Mundi-Xu avatar Jan 18 '22 09:01 Mundi-Xu

Hi @Mundi-Xu !

Gegl-0.2 installs libgegl-0.2.so.0 into /usr/local/lib, which needs to be linked to gimp.

image

image

Did you need to include it explicitly? What error did you get?

image

By the way, after modifying the code according to the #15 , it runs normally but the fuzz times out. Is this because of the location of the exit?

Did you remove plugins with rm ./install/lib/gimp/2.0/plug-ins/* ?? Cause plugins loading is very time-consuming.

Beyond this, this timeout value is just an approximated value based on my machine. I just added a note to Exercise 6 to make it clear. Did you try with different timeout values?

antonio-morales avatar Jan 24 '22 17:01 antonio-morales

The error is that the link library cannot be found, you can set LD_PRELOAD instead, at least the recommended VM does not add the directory to the $PATH.

Mundi-Xu avatar Jan 24 '22 18:01 Mundi-Xu

I removed all plugins, the problem was that I tried other seeds and it worked fine, but the repository's sampleinput.xcf was causing aflpp to timeout no matter what the timeout value was set to. But running it alone again without problems, I don't know what's going on.

Mundi-Xu avatar Jan 24 '22 18:01 Mundi-Xu