Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error + advanced fuzzing mode #2

Open
lexylee2406 opened this issue Feb 2, 2021 · 2 comments
Open

Syntax error + advanced fuzzing mode #2

lexylee2406 opened this issue Feb 2, 2021 · 2 comments

Comments

@lexylee2406
Copy link

lexylee2406 commented Feb 2, 2021

Hello,

Thank you very much for making FreeDom open source.

I have just tried to test it on Ubuntu 18.04 following the commands in README but it doesn't work.

In mode 0 (test case generation only), I received the following error message:

Traceback (most recent call last):
  File "main.py", line 1, in <module>
    from attribute.html import initialize_html_attributes
  File "/home/ubuntu/freedom/attribute/__init__.py", line 3, in <module>
    from utils.random import Random
  File "/home/ubuntu/freedom/utils/__init__.py", line 4
    def cat(args: [str]) -> str:
                ^
SyntaxError: invalid syntax

This might be a OS-specific issue. If so, what are the operating systems on which FreeDom has been successfully tested?

Moreover, could you please update your README to include commands to run FreeDom in the more advanced mode with code coverage guidance as explained in the paper.

LL.

@adrian-rt
Copy link

+1 for "Moreover, could you please update your README to include commands to run FreeDom in the more advanced mode with code coverage guidance as explained in the paper."

thanks.

@lexylee2406
Copy link
Author

lexylee2406 commented Feb 3, 2021

Ah, I got the syntax error as reported above because I used python instead of python3.

So the command in the README should be corrected as follows

python3 main.py -i 1 -m generate -n 10 -o output

Instead of

python main.py -i 1 -m generate -n 10 -o output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants