Git Product home page Git Product logo

Comments (6)

tokatoka avatar tokatoka commented on June 18, 2024 1

for me it is not yet intuitive if and when a wrapping Executor calls the post_run_reset functions of the Executors it wraps.

Yes we know it that these APIs are bad and we have a plan to refactor it in near future.
Originally the post_run_reset() was for TimeoutExecutor, but now I think wrapping wrapping executors to implement timeout is a bad choice of design.

Our plan now is to remove TimeoutExecutor and merge it to other executors. Then no post_run_reset is needed anymore.
@andreafioraldi said he'll work on in December.

from libafl.

anneborcherding avatar anneborcherding commented on June 18, 2024

Allright! Nevertheless, I think a post_run_reset would still be good to have, to allow the executors to clean up after running (e.g. running a reset script on the server).

from libafl.

domenukk avatar domenukk commented on June 18, 2024

The clean up can just happen on execute, right? Or would you specifically want to have that outside of the evaluation/after the evaluation/async?

from libafl.

anneborcherding avatar anneborcherding commented on June 18, 2024

For my usecase, I am combining several executors that have different tasks and each of the executors gets called to cleanup its specific things after the whole execution (consiting of several executors) is finished.

To be more specific, I have an executor which starts a network sniffing to record the network traffic of the actual network-based execution. This sniffing needs to be stoped after the actual execution is finished. Right now, I am solving this by stopping the network sniffing in the post_run_reset function, but there might be a different solution to this as well.

from libafl.

tokatoka avatar tokatoka commented on June 18, 2024

can you use observer to do it instead?
You should have something like NetworkSniffingObserver right? You could do the clean there too.

In my opinion, the post_run_reset function should be removed

from libafl.

anneborcherding avatar anneborcherding commented on June 18, 2024

Missing from my specification was that I am using the recorded network traffic to update the coverage map and then use a MapObserver to analyze this coverage map. So yes, I think it might also be possible to use an Observer for this but then I would need to stack observers.

Just to be clear, I am not trying to defend the post_run_reset function in general, just trying to explain why I used it in the first place ^^

from libafl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.