https://github.com/haoNoQ commented:

Ooo you folks are interested in doing something with this checker too? Nice!!

At a glance it looks like you're trying to turn this checker into an 
enforcement tool that forces the user to check bounds before every array 
access. Which is valid but doesn't quite fit with the usual theme of minimizing 
the noise which is prevalent in our path-sensitive analysis land. So the 
existing logic actually looks fine to me for what it's supposed to do. These 
negatives are intentional, they're as true as it gets - for the local, default, 
highly subjective definition of true/false positives/negatives. I'll explain 
more in an inline comment.

So you can absolutely do what I think you want to do. But you may need to 
coexist with the existing logic, like add a checker option to switch it off, or 
something of that nature.

https://github.com/llvm/llvm-project/pull/161723
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to