Git Product home page Git Product logo

Comments (5)

jvoisin avatar jvoisin commented on April 28, 2024

Redirect the output to a file?

from atheris.

JerryHuang-h avatar JerryHuang-h commented on April 28, 2024

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.

jvoisin avatar jvoisin commented on April 28, 2024

I don't think there is a parameter for this, no.

from atheris.

JerryHuang-h avatar JerryHuang-h commented on April 28, 2024

I don't think there is a parameter for this, no.

How about future?

from atheris.

jvoisin avatar jvoisin commented on April 28, 2024

Feel free to open a pull-request :)

from atheris.

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.