mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 07:56:07 +00:00

Do not crash when trying to define and call a non-standard strcpy(unsigned char *, unsigned char *) during analysis. At the same time, do not try to actually evaluate the call. Differential Revision: https://reviews.llvm.org/D39422 llvm-svn: 317565
11 lines
279 B
C
11 lines
279 B
C
// RUN: %clang_analyze_cc1 -Wno-incompatible-library-redeclaration -analyzer-checker=core,unix.cstring,alpha.unix.cstring -verify %s
|
|
|
|
// expected-no-diagnostics
|
|
|
|
void *strcpy(unsigned char *, unsigned char *);
|
|
|
|
unsigned char a, b;
|
|
void testUnsignedStrcpy() {
|
|
strcpy(&a, &b);
|
|
}
|