Comments (5)
Redirect the output to a file?
from atheris.
Redirect the output to a file?
I had Redirect the stdout and stderr like
p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, bufsize=0, cwd=cmd_path, preexec_fn=os.setsid)
,
and write to a file. However, I got something has wrong order, like
=== Uncaught Python exception: ===
ValueError: could not convert string to float: '.'
Traceback (most recent call last):
File "yaml_fuzzer.py", line 49, in TestOneInput
for _ in iterator:
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/main.py", line 452, in load_all
yield constructor.get_data()
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 107, in get_data
return self.construct_document(self.composer.get_node())
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 117, in construct_document
data = self.construct_object(node)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 144, in construct_object
data = self.construct_non_recursive_object(node)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 178, in construct_non_recursive_object
data = constructor(self, node)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 494, in construct_yaml_float
return sign * float(value_s)
ValueError: could not convert string to float: '.'
Input was <class 'str'>: ._
Codepoints: ['0x2e', '0x5f']==78== ERROR: libFuzzer: fuzz target exited
SUMMARY: libFuzzer: fuzz target exited
MS: 4 CrossOver-ChangeBinInt-CMP-EraseBytes- DE: "\012_"-; base unit: 2711ff63ab10404117287c8a3c4b734cc65e7a50
0xfb,0x2e,0x5f,
\373._
artifact_prefix='fuzz_regisstry_'; Test unit written to fuzz_regisstry_crash-2c2c3428457c025d4be699272d44a27826eece25
Base64: +y5f
For some reason, I can't redirect stdout and stderr separately. If there Atheris has a parameter to save the crash log or do this by itself as well as crash sample?Thanks!
from atheris.
I don't think there is a parameter for this, no.
from atheris.
I don't think there is a parameter for this, no.
How about future?
from atheris.
Feel free to open a pull-request :)
from atheris.
Related Issues (20)
- Potential file conflict with other Python packages HOT 3
- Instrumenting time long HOT 3
- Aggregate all string literals during instrumentation HOT 1
- Unable to cast Python instance to C++ HOT 8
- Unable to execute target in fork mode HOT 2
- Generate wheels for all platforms via cibuildwheel HOT 3
- "Permission denied" when using -merge=1
- Preloaded libFuzzer doesn't allow to use custom mutator.
- Wrong crash line in new python version
- Atheris 2.2.2 fails to instrument a while loop in Python 3.11.0 HOT 1
- Support RegisterPostProcessor in lib protofuf mutator
- Make use of Github Actions
- User exit callback feature? HOT 2
- Integrate Slipcover to Atheris HOT 2
- Cannot Install Atheris using PIP on Ubuntu, Alpine, ArchLinux and Windows HOT 5
- Issue in installing package atheris-libprotobuf-mutator on python base image
- Determinism HOT 1
- Atheris in unittests?
- Why are Instance methods not instrumented
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 atheris.