Open Quuxplusone opened 11 years ago
Attached report-HKmf7s.html
(6717 bytes, text/html): Annotated source file.
Simplified:
int test(int n, char **args)
{
if (!args[n])
return 0;
if (!args[n])
*(volatile int *)0 = 1;
return 1;
}
(I've taken argv and argc out of the equation since argv[argc] is guaranteed to
be NULL, even though the analyzer doesn't know that today.)
This does seem like a bug.
Cloned to rdar://problem/14087970
Nick, A workaround would be to use a boolean flag to store the value of !argv[n].
report-HKmf7s.html
(6717 bytes, text/html)