Conversation
|
|
(I changed this to a draft to avoid accidental merging) After some reads about Atheris and fuzzy testing, this sounds very interesting. Happy to learn about its existence. Let me know if I can help with something here, @FloydZ. |
|
Hi @Dioprz ,
#atheris.Setup(sys.argv, SDFuzz)
...
atheris.Setup(sys.argv, RankSDFuzz)
...
#atheris.Setup(sys.argv, MAYOFuzz)And you need enable/disable the estimator by hand. If you know how to circumvent that, without adding a bash script, which calls the python code multiple times. let me know. if type(e) != ValueError or str(e) == "math domain error":check to difference between those two. If you have a better solution for this, I would really appreciate it. Plus Im not 100% that this is actually really correct. |
…imators into Feat/fuzzing
|
Apparently, sonar cloud thinks that: if w <= 0 or k <= 0:always evaluates to false, for what ever reason. |
The full code snippet failing (well, one of them) is this one: def __init__(self, n: int, k: int, w: int, **kwargs):
super().__init__(**kwargs)
if k <= 0 or n <= 0 or w <= 0:
raise ValueError("n, k, w must be positive integers")
if k > n:
raise ValueError("k must be smaller or equal to n")
if w > n - k:
raise ValueError("w must be smaller or equal to n-k")
if w <= 0 or k <= 0:
raise ValueError("w and k must be at least 1")And looking at it... I think it makes sense because you will never be able to reach the last |
|
updated PR. Can be reviewed |
|
I think this atheris library should be preinstalled in the dev-docker. It seems rather elaborate to install it, on Mac at least. |
There was a problem hiding this comment.
Second command doesn't work for me. I get
Unable to find image 'cf-fuzzer:latest' locally
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "./tests/fuzzing/fuzz.py": permission denied: unknown.
|



Description
This PR contains
Check
Docker Setup: