[clang] [analyzer] Check the correct first and last elements in cstring.UninitializedRead (PR #95408)

DonĂ¡t Nagy via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 14 02:48:05 PDT 2024


================
@@ -26,16 +50,12 @@ void top(char *dst) {
 
 void *mempcpy(void *restrict s1, const void *restrict s2, size_t n);
 
-void mempcpy14() {
+void mempcpy13() {
----------------
NagyDonat wrote:

Why are you renaming this to `memcpy13`? I see only two `memcpy` tests after this and they have index 15 and 16, which is very random, but at least follows 14 directly.

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


More information about the cfe-commits mailing list