[cfe-dev] alpha.security.ArrayBound doesn't know when to stop?

Devin Coughlin via cfe-dev cfe-dev at lists.llvm.org
Wed Mar 2 10:04:29 PST 2016

> On Feb 29, 2016, at 2:22 PM, via cfe-dev <Alexander G. Riccio> wrote:
> Is this by design? The buffer size in the attached result is 32, and thus every access beyond that is invalid. Yet, ArrayBound keeps iterating until it reaches analyzer-max-loop. Is this by design, or is this a bug? I realize that ArrayBound is the "old" version of the array bounds checker. 

I think you may be misinterpreting the number labels on the path notes in the attached report. Each number indicates the order of the note along the path and not the number of iterations through the loop. In this case, the analyzer enters the loop 31 times, as you would expect, even though analyzer-max-loop is set to 64.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160302/e24a2ebe/attachment.html>

More information about the cfe-dev mailing list