-
Notifications
You must be signed in to change notification settings - Fork 566
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
Add support for centipede options file #3398
Add support for centipede options file #3398
Conversation
/gcbrun |
40a6266
to
c87a3d1
Compare
/gcbrun |
1 similar comment
/gcbrun |
0cfc181
to
3629711
Compare
if key not in arguments: | ||
arguments[key] = val |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider arguments.setdefault(key, val)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
arguments
is not an actual dictionary, it's a custom object that vaguely behaves like one. I first wanted to clean the implementation of it, but that's not the purpose of this CL, so I prefer leaving things like it.
f4abbbe
to
71c0360
Compare
'-exit_on_crash=1', | ||
f'-fork_server={_SERVER_COUNT}', | ||
f'-rss_limit_mb={_RSS_LIMIT}', | ||
f'-address_space_limit_mb={_ADDRESS_SPACE_LIMIT}', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does centipede support arguments of the sort -blah
instead of --blah
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, it supports single and double dash.
fa85aaf
to
5c4469a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'll merge this Monday. |
ping @jonathanmetzman, can we merge this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This CL adds support for an
.options
file for centipede. This allows fuzzing targets to overwrite their own options.