[Webkit-unassigned] [Bug 204886] computeIfUsingFuzzerAgent() is called before parsing command line arguments

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 5 10:31:55 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=204886

--- Comment #1 from Mark Lam <mark.lam at apple.com> ---
(In reply to Tuomas Karkkainen from comment #0)
> computeIfUsingFuzzerAgent(); is called in the lambda inside
> Options::initialize() which is invoked at the top of
> CommandLine::parseArguments().
> 
> The options are only set later in CommandLine::parseArguments() at
> 
> > if (!JSC::Options::setOption(&arg[2])) {
> 
> This means that computeIfUsingFuzzerAgent(); will always determine that no
> FuzzerAgents are in use because at the time of the check all relevant
> options are still false regardless of the command line.

Will fix.

> similarly I don't believe this will ever be executed either:
> >     if (Options::dumpOptions()) {
> >       printf("Command line:");
> 
> the thing that actually dumps the options with --dumpOptions is at the end.

This does run but only if you use the env var JSC_dumpOptions=true.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191205/fb1070dd/attachment.htm>


More information about the webkit-unassigned mailing list