[clang] [analyzer] Compute length of string literal initializers (#66990) (PR #68368)

via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 10 11:30:03 PDT 2023


luamfb wrote:

I've added that test as well. In this case too I've assumed the correct behavior is for the comparison's result to be unknown, because the length of the string can be changed later by assigning a null character somewhere in the middle of the string, say, `char a[] = "abcd"; a[1] = '\0';`

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


More information about the cfe-commits mailing list