Skip to content

Commit 2dee316

Browse files
committed
Fixup "[analyzer] Propagate taint for wchar variants of some APIs"
Fix build bot: https://lab.llvm.org/buildbot/#/builders/139/builds/49699 clang/test/Analysis/taint-generic.c: ``` Line 100: redefinition of typedef 'size_t' is a C11 feature Line 59: previous definition is here ``` This commit fixups 61924da Committed in this PR: #66074
1 parent 3ae76e4 commit 2dee316

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/test/Analysis/taint-generic.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
// CHECK-INVALID-ARG-SAME: rules greater or equal to -1
5757

5858
typedef long long rsize_t;
59-
typedef typeof(sizeof(int)) size_t;
59+
typedef __typeof(sizeof(int)) size_t;
60+
typedef signed long long ssize_t;
6061
typedef __WCHAR_TYPE__ wchar_t;
6162
void clang_analyzer_isTainted_char(char);
6263
void clang_analyzer_isTainted_wchar(wchar_t);
@@ -97,8 +98,6 @@ int fscanf(FILE *restrict stream, const char *restrict format, ...);
9798
int sprintf(char *str, const char *format, ...);
9899
void setproctitle(const char *fmt, ...);
99100
void setproctitle_init(int argc, char *argv[], char *envp[]);
100-
typedef __typeof(sizeof(int)) size_t;
101-
typedef signed long long ssize_t;
102101

103102
// Define string functions. Use builtin for some of them. They all default to
104103
// the processing in the taint checker.

0 commit comments

Comments
 (0)