[clang] 706afc9 - Fixup "[analyzer] CStringChecker buffer access checks should check the first bytes"

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 11 06:01:43 PDT 2023


Author: Balazs Benics
Date: 2023-09-11T15:01:22+02:00
New Revision: 706afc9778827dfd8064192c26acd0bc1c421e48

URL: https://github.com/llvm/llvm-project/commit/706afc9778827dfd8064192c26acd0bc1c421e48
DIFF: https://github.com/llvm/llvm-project/commit/706afc9778827dfd8064192c26acd0bc1c421e48.diff

LOG: Fixup "[analyzer] CStringChecker buffer access checks should check the first bytes"

0954dc3fb9214b994623f5306473de075f8e3593 broke a build bot:
https://lab.llvm.org/buildbot/#/builders/245/builds/13891

  clang/test/Analysis/string.c
  Line 74: incompatible redeclaration of library function 'memcpy'
  Line 74: 'memcpy' is a builtin with type 'void *(void *, const void *, unsigned int)'

Differential Revision: https://reviews.llvm.org/D159109

Added: 
    

Modified: 
    clang/test/Analysis/string.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Analysis/string.c b/clang/test/Analysis/string.c
index 234b526788aa353..d369ee9f7d854a1 100644
--- a/clang/test/Analysis/string.c
+++ b/clang/test/Analysis/string.c
@@ -71,7 +71,7 @@ void clang_analyzer_eval(int);
 int scanf(const char *restrict format, ...);
 void *malloc(size_t);
 void free(void *);
-void *memcpy(void *dest, const void *src, unsigned long n);
+void *memcpy(void *dest, const void *src, size_t n);
 
 //===----------------------------------------------------------------------===
 // strlen()


        


More information about the cfe-commits mailing list