[clang] 2dee316 - Fixup "[analyzer] Propagate taint for wchar variants of some APIs"

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 14 03:24:07 PDT 2023


Author: Balazs Benics
Date: 2023-09-14T12:22:11+02:00
New Revision: 2dee316a04be3fa466944542ee05926f28aa9ce4

URL: https://github.com/llvm/llvm-project/commit/2dee316a04be3fa466944542ee05926f28aa9ce4
DIFF: https://github.com/llvm/llvm-project/commit/2dee316a04be3fa466944542ee05926f28aa9ce4.diff

LOG: 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 61924da630532c91f00351b7e84548eb42e2e1e0
Committed in this PR: https://github.com/llvm/llvm-project/pull/66074

Added: 
    

Modified: 
    clang/test/Analysis/taint-generic.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Analysis/taint-generic.c b/clang/test/Analysis/taint-generic.c
index f08186fc8c4c1e5..c674a03cfaec6c8 100644
--- a/clang/test/Analysis/taint-generic.c
+++ b/clang/test/Analysis/taint-generic.c
@@ -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);
@@ -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.


        


More information about the cfe-commits mailing list