Comments (6)
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.
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.
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.
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.
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.
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)
- Shrinking cmplog header HOT 1
- Forkserver Support for Android
- How can I use a dictionary while fuzzing? HOT 3
- Wrong implementation of tmin? HOT 4
- Objective Deduplication using the stack/call trace helper for QemuForkExecutor
- Do not use assert! in testcase_score HOT 3
- Building libfuzzer_stb_image on Windows HOT 24
- Why do Observers need to be serializable? HOT 10
- Question: Why TinyInstExecutor's run_target returns without running the target? HOT 7
- Keep non-interesting initial seeds around for Splicing and other things
- Resolve CI instability HOT 3
- x86_64_stub_bindings.rs used for all CPUs in qemu_systemmode HOT 1
- Disabled Testcases for Splicing HOT 2
- Stable-ish State Dump Format for Quck Resume
- libafl_targets: libfuzzer CHECK_WEAK_FN always true on macOS HOT 1
- Persistent mode forkserver child_id is reset to None while the pid is still valid HOT 4
- snapshot in QEMU usermode? HOT 2
- Huge unused macro in anymap HOT 2
- CmpLog and autotokens borrow https://github.com/AFLplusplus/AFLplusplus/issues/1927 from AFL++
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libafl.