qemu: Can we avoid setting features based on env variables? #2505
Marcondiro
started this conversation in
General
Replies: 2 comments 3 replies
-
From a rust perspective, it's the right thing to do it via feature flags. I wonder if anything down the road in C land depends on env variables? |
Beta Was this translation helpful? Give feedback.
1 reply
-
it is there to be able to build generic fuzzers that can be configured with
env like aflqemu, but if you find a way to do it in the fuzzers not in the
lib got for it
Il mer 4 set 2024, 13:55 Marco C. ***@***.***> ha scritto:
… It looks like the env var is a fallback in case the feature is not set, so
I think it's unlikely that anything down the road relies on it...
Maybe @andreafioraldi <https://github.com/andreafioraldi> knows why they
are there?
—
Reply to this email directly, view it on GitHub
<#2505 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD3LJ6VCHMB3J4EOWN3SEGTZU3YK7AVCNFSM6AAAAABNTWJIXGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANJUGQ2TENA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
In libafl_qemu, some feautures can be set from env variables by the build script:
LibAFL/libafl_qemu/build_linux.rs
Lines 24 to 30 in 1113879
This approach prevents us from using optional dependencies bound to features since cargo resolves the dependencies before the build script sets these features.
What is the advantage of supporting the configuration through env vars instead of directly setting features?
Could this be removed or it is used somewhere?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions