[clang] [analyzer] CStringChecker: fix crash in `CheckOverlap` when arguments are not pointers (PR #160511)

DonĂ¡t Nagy via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 24 06:11:34 PDT 2025


https://github.com/NagyDonat approved this pull request.

Thanks for the commit, crash fixes are always welcome!

I added two very minor stylistic suggestion in inline comments, but the commit is also acceptable in its current form.

Moreover, in the commit message you write that "`CheckOverlap` has multiple call sites, most of which do not verify this assumption." which implies that some call sites _did_ verify this assumption. Now that `CheckOverlap` does this verification, are there any call sites where the verification logic is made completely redundant by your change?

https://github.com/llvm/llvm-project/pull/160511


More information about the cfe-commits mailing list