[clang] [analyzer] Fix false positive in CStringChecker for offset buffer arg… (PR #198346)

Donát Nagy via cfe-commits cfe-commits at lists.llvm.org
Tue May 19 05:01:33 PDT 2026


https://github.com/NagyDonat commented:

The change seems to be correct, but I feel that a different approach might be better.

Instead of "going back" to the `SuperR` and then calculating indices/offsets from that point, you could switch to calculating the indices from the second argument pointer itself (in particular, just dereference it to see the starting element).

This more straigthforward approach could avoid some fragile symbolic calculations.

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


More information about the cfe-commits mailing list