Skip to content

Commit

Permalink
Fixup "[analyzer] Propagate taint for wchar variants of some APIs"
Browse files Browse the repository at this point in the history
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
  • Loading branch information
steakhal committed Sep 14, 2023
1 parent 3ae76e4 commit 2dee316
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clang/test/Analysis/taint-generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
// CHECK-INVALID-ARG-SAME: rules greater or equal to -1

typedef long long rsize_t;
typedef typeof(sizeof(int)) size_t;
typedef __typeof(sizeof(int)) size_t;
typedef signed long long ssize_t;
typedef __WCHAR_TYPE__ wchar_t;
void clang_analyzer_isTainted_char(char);
void clang_analyzer_isTainted_wchar(wchar_t);
Expand Down Expand Up @@ -97,8 +98,6 @@ int fscanf(FILE *restrict stream, const char *restrict format, ...);
int sprintf(char *str, const char *format, ...);
void setproctitle(const char *fmt, ...);
void setproctitle_init(int argc, char *argv[], char *envp[]);
typedef __typeof(sizeof(int)) size_t;
typedef signed long long ssize_t;

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

0 comments on commit 2dee316

Please sign in to comment.