llvm-21.1.8-1.fc44

List of Findings

Error: COMPILER_WARNING: [#def1] [important]
instrumented-llvm/CMakeFiles/CMakeScratch/TryCompile-02rv0m/CheckSymbolExists.c:8:19: error[error]: ‘strerror_s’ undeclared (first use in this function); did you mean ‘strerror_l’?

Error: COMPILER_WARNING: [#def2] [important]
instrumented-llvm/CMakeFiles/CMakeScratch/TryCompile-4u7R8N/CheckSymbolExists.c:3:10: error[fatal error]: pthread_np.h: No such file or directory

Error: COMPILER_WARNING: [#def3] [important]
instrumented-llvm/CMakeFiles/CMakeScratch/TryCompile-6qIIB0/CheckSymbolExists.c:2:10: error[fatal error]: libproc.h: No such file or directory

Error: COMPILER_WARNING: [#def4] [important]
instrumented-llvm/CMakeFiles/CMakeScratch/TryCompile-Fy1Xmy/CheckSymbolExists.c:3:10: error[fatal error]: pthread_np.h: No such file or directory

Error: COMPILER_WARNING: [#def5] [important]
instrumented-llvm/CMakeFiles/CMakeScratch/TryCompile-RP675L/CheckSymbolExists.c:2:10: error[fatal error]: malloc/malloc.h: No such file or directory

Error: COMPILER_WARNING (CWE-477): [#def6]
instrumented-llvm/CMakeFiles/CMakeScratch/TryCompile-bRFrOl/CheckSymbolExists.c:8:3: warning[-Wdeprecated-declarations]: ‘mallinfo’ is deprecated

Error: COMPILER_WARNING: [#def7] [important]
instrumented-llvm/CMakeFiles/CMakeScratch/TryCompile-n5SDWN/CheckIncludeFile.c:1:10: error[fatal error]: CrashReporterClient.h: No such file or directory

Error: COMPILER_WARNING: [#def8] [important]
instrumented-llvm/CMakeFiles/CMakeScratch/TryCompile-rRWC4j/CheckSymbolExists.c:2:10: error[fatal error]: malloc_np.h: No such file or directory

Error: COMPILER_WARNING: [#def9] [important]
instrumented-llvm/CMakeFiles/CMakeScratch/TryCompile-uB89q9/src.c:7:34: error[error]: ‘struct stat’ has no member named ‘st_mtimespec’

Error: CLANG_WARNING: [#def10]
llvm-project-21.1.8.src/bolt/runtime/hugify.cpp:12: included_from: Included from here.
llvm-project-21.1.8.src/bolt/runtime/common.h:200:5: warning: unused function 'strnCmp' [-Wunused-function]
#  200 | int strnCmp(const char *Str1, const char *Str2, size_t Num) {
#      |     ^~~~~~~
#  198|   
#  199|   /// Compare two strings, at most Num bytes.
#  200|-> int strnCmp(const char *Str1, const char *Str2, size_t Num) {
#  201|     while (Num && *Str1 && (*Str1 == *Str2)) {
#  202|       Num--;

Error: CLANG_WARNING: [#def11]
llvm-project-21.1.8.src/bolt/runtime/common.h:218:7: warning: unused function 'strStr' [-Wunused-function]
#  218 | void *strStr(const char *const Haystack, const char *const Needle) {
#      |       ^~~~~~
#  216|   }
#  217|   
#  218|-> void *strStr(const char *const Haystack, const char *const Needle) {
#  219|     int j = 0;
#  220|   

Error: CLANG_WARNING: [#def12]
llvm-project-21.1.8.src/bolt/runtime/common.h:234:6: warning: unused function 'reportNumber' [-Wunused-function]
#  234 | void reportNumber(const char *Msg, uint64_t Num, uint32_t Base) {
#      |      ^~~~~~~~~~~~
#  232|   }
#  233|   
#  234|-> void reportNumber(const char *Msg, uint64_t Num, uint32_t Base) {
#  235|     char Buf[BufSize];
#  236|     char *Ptr = Buf;

Error: CLANG_WARNING: [#def13]
llvm-project-21.1.8.src/bolt/runtime/common.h:243:6: warning: unused function 'report' [-Wunused-function]
#  243 | void report(const char *Msg) { __write(2, Msg, strLen(Msg)); }
#      |      ^~~~~~
#  241|   }
#  242|   
#  243|-> void report(const char *Msg) { __write(2, Msg, strLen(Msg)); }
#  244|   
#  245|   unsigned long hexToLong(const char *Str, char Terminator = '\0') {

Error: CLANG_WARNING: [#def14]
llvm-project-21.1.8.src/bolt/runtime/common.h:245:15: warning: unused function 'hexToLong' [-Wunused-function]
#  245 | unsigned long hexToLong(const char *Str, char Terminator = '\0') {
#      |               ^~~~~~~~~
#  243|   void report(const char *Msg) { __write(2, Msg, strLen(Msg)); }
#  244|   
#  245|-> unsigned long hexToLong(const char *Str, char Terminator = '\0') {
#  246|     unsigned long Res = 0;
#  247|     while (*Str != Terminator) {

Error: CLANG_WARNING: [#def15]
llvm-project-21.1.8.src/bolt/runtime/common.h:266:13: warning: unused function 'scanUInt32' [-Wunused-function]
#  266 | static bool scanUInt32(const char *&Buf, const char *End, uint32_t &Ret) {
#      |             ^~~~~~~~~~
#  264|   /// overflow. The function \returns whether a valid uint32_t value is found.
#  265|   /// \p buf will be updated to the next character right after the digits.
#  266|-> static bool scanUInt32(const char *&Buf, const char *End, uint32_t &Ret) {
#  267|     uint64_t Result = 0;
#  268|     const char *OldBuf = Buf;

Error: CLANG_WARNING: [#def16]
llvm-project-21.1.8.src/bolt/runtime/common.h:285:6: warning: unused function 'assert' [-Wunused-function]
#  285 | void assert(bool Assertion, const char *Msg) {
#      |      ^~~~~~
#  283|   }
#  284|   
#  285|-> void assert(bool Assertion, const char *Msg) {
#  286|     if (Assertion)
#  287|       return;

Error: CLANG_WARNING: [#def17]
llvm-project-21.1.8.src/bolt/runtime/hugify.cpp:40:7: warning: unused variable 'Ret' [-Wunused-variable]
#   40 |   int Ret = __uname(&UtsName);
#      |       ^~~
#   38|     // major, minor, release
#   39|     struct UtsNameTy UtsName;
#   40|->   int Ret = __uname(&UtsName);
#   41|     const char *Buf = UtsName.release;
#   42|     const char *End = Buf + strLen(Buf);

Error: CLANG_WARNING: [#def18]
llvm-project-21.1.8.src/bolt/runtime/instr.cpp:248:6: warning: unused function 'operator delete' [-Wunused-function]
#  248 | void operator delete(void *Ptr, BumpPtrAllocator &A) { A.deallocate(Ptr); }
#      |      ^~~~~~~~
#  246|   // Only called during exception unwinding (useless). We must manually dealloc.
#  247|   // C++ language weirdness
#  248|-> void operator delete(void *Ptr, BumpPtrAllocator &A) { A.deallocate(Ptr); }
#  249|   
#  250|   namespace {

Error: CLANG_WARNING: [#def19]
llvm-project-21.1.8.src/bolt/runtime/instr.cpp:821:6: warning: unused function 'printStats' [-Wunused-function]
#  821 | void printStats(const ProfileWriterContext &Ctx) {
#      |      ^~~~~~~~~~
#  819|   #if !defined(__APPLE__)
#  820|   /// Debug by printing overall metadata global numbers to check it is sane
#  821|-> void printStats(const ProfileWriterContext &Ctx) {
#  822|     char StatMsg[BufSize];
#  823|     char *StatPtr = StatMsg;

Error: CLANG_WARNING: [#def20]
llvm-project-21.1.8.src/bolt/runtime/instr.cpp:1676:14: warning: variable 'PID' set but not used [-Wunused-but-set-variable]
# 1676 |     if (long PID = __fork())
#      |              ^
# 1674|         __setpgid(0, 0);
# 1675|   
# 1676|->     if (long PID = __fork())
# 1677|         return;
# 1678|       watchProcess();

Error: CLANG_WARNING: [#def21]
llvm-project-21.1.8.src/bolt/runtime/hugify.cpp:12: included_from: Included from here.
llvm-project-21.1.8.src/bolt/runtime/common.h:159: included_from: Included from here.
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:48:10: warning: unused function 'getTextBaseAddress' [-Wunused-function]
#   48 | uint64_t getTextBaseAddress() {
#      |          ^~~~~~~~~~~~~~~~~~
#   46|   // in turn can be used to search for indirect call description. Needed because
#   47|   // indirect call descriptions are read-only non-relocatable data.
#   48|-> uint64_t getTextBaseAddress() {
#   49|     uint64_t DynAddr;
#   50|     uint64_t StaticAddr;

Error: CLANG_WARNING: [#def22]
llvm-project-21.1.8.src/bolt/runtime/instr.cpp:43: included_from: Included from here.
llvm-project-21.1.8.src/bolt/runtime/common.h:159: included_from: Included from here.
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:60:10: warning: unused function '__read' [-Wunused-function]
#   60 | uint64_t __read(uint64_t fd, const void *buf, uint64_t count) {
#      |          ^~~~~~
#   58|   #define STRINGIFY(x) _STRINGIFY(x)
#   59|   
#   60|-> uint64_t __read(uint64_t fd, const void *buf, uint64_t count) {
#   61|     uint64_t ret;
#   62|   #if defined(__APPLE__)

Error: CLANG_WARNING: [#def23]
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:141:10: warning: unused function '__getpid' [-Wunused-function]
#  141 | uint64_t __getpid() {
#      |          ^~~~~~~~
#  139|   }
#  140|   
#  141|-> uint64_t __getpid() {
#  142|     uint64_t ret;
#  143|   #if defined(__APPLE__)

Error: CLANG_WARNING: [#def24]
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:189:6: warning: unused function '__getdents64' [-Wunused-function]
#  189 | long __getdents64(unsigned int fd, dirent64 *dirp, size_t count) {
#      |      ^~~~~~~~~~~~
#  187|   }
#  188|   
#  189|-> long __getdents64(unsigned int fd, dirent64 *dirp, size_t count) {
#  190|     long ret;
#  191|     __asm__ __volatile__("movq $217, %%rax\n"

Error: CLANG_WARNING: [#def25]
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:199:10: warning: unused function '__readlink' [-Wunused-function]
#  199 | uint64_t __readlink(const char *pathname, char *buf, size_t bufsize) {
#      |          ^~~~~~~~~~
#  197|   }
#  198|   
#  199|-> uint64_t __readlink(const char *pathname, char *buf, size_t bufsize) {
#  200|     uint64_t ret;
#  201|     __asm__ __volatile__("movq $89, %%rax\n"

Error: CLANG_WARNING: [#def26]
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:209:10: warning: unused function '__lseek' [-Wunused-function]
#  209 | uint64_t __lseek(uint64_t fd, uint64_t pos, uint64_t whence) {
#      |          ^~~~~~~
#  207|   }
#  208|   
#  209|-> uint64_t __lseek(uint64_t fd, uint64_t pos, uint64_t whence) {
#  210|     uint64_t ret;
#  211|     __asm__ __volatile__("movq $8, %%rax\n"

Error: CLANG_WARNING: [#def27]
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:219:5: warning: unused function '__ftruncate' [-Wunused-function]
#  219 | int __ftruncate(uint64_t fd, uint64_t length) {
#      |     ^~~~~~~~~~~
#  217|   }
#  218|   
#  219|-> int __ftruncate(uint64_t fd, uint64_t length) {
#  220|     int ret;
#  221|     __asm__ __volatile__("movq $77, %%rax\n"

Error: CLANG_WARNING: [#def28]
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:229:5: warning: unused function '__close' [-Wunused-function]
#  229 | int __close(uint64_t fd) {
#      |     ^~~~~~~
#  227|   }
#  228|   
#  229|-> int __close(uint64_t fd) {
#  230|     uint64_t ret;
#  231|     __asm__ __volatile__("movq $3, %%rax\n"

Error: CLANG_WARNING: [#def29]
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:239:5: warning: unused function '__madvise' [-Wunused-function]
#  239 | int __madvise(void *addr, size_t length, int advice) {
#      |     ^~~~~~~~~
#  237|   }
#  238|   
#  239|-> int __madvise(void *addr, size_t length, int advice) {
#  240|     int ret;
#  241|     __asm__ __volatile__("movq $28, %%rax\n"

Error: CLANG_WARNING: [#def30]
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:249:5: warning: unused function '__uname' [-Wunused-function]
#  249 | int __uname(struct UtsNameTy *Buf) {
#      |     ^~~~~~~
#  247|   }
#  248|   
#  249|-> int __uname(struct UtsNameTy *Buf) {
#  250|     int Ret;
#  251|     __asm__ __volatile__("movq $63, %%rax\n"

Error: CLANG_WARNING: [#def31]
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:259:10: warning: unused function '__nanosleep' [-Wunused-function]
#  259 | uint64_t __nanosleep(const timespec *req, timespec *rem) {
#      |          ^~~~~~~~~~~
#  257|   }
#  258|   
#  259|-> uint64_t __nanosleep(const timespec *req, timespec *rem) {
#  260|     uint64_t ret;
#  261|     __asm__ __volatile__("movq $35, %%rax\n"

Error: CLANG_WARNING: [#def32]
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:269:9: warning: unused function '__fork' [-Wunused-function]
#  269 | int64_t __fork() {
#      |         ^~~~~~
#  267|   }
#  268|   
#  269|-> int64_t __fork() {
#  270|     uint64_t ret;
#  271|     __asm__ __volatile__("movq $57, %%rax\n"

Error: CLANG_WARNING: [#def33]
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:279:5: warning: unused function '__mprotect' [-Wunused-function]
#  279 | int __mprotect(void *addr, size_t len, int prot) {
#      |     ^~~~~~~~~~
#  277|   }
#  278|   
#  279|-> int __mprotect(void *addr, size_t len, int prot) {
#  280|     int ret;
#  281|     __asm__ __volatile__("movq $10, %%rax\n"

Error: CLANG_WARNING: [#def34]
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:289:10: warning: unused function '__getppid' [-Wunused-function]
#  289 | uint64_t __getppid() {
#      |          ^~~~~~~~~
#  287|   }
#  288|   
#  289|-> uint64_t __getppid() {
#  290|     uint64_t ret;
#  291|     __asm__ __volatile__("movq $110, %%rax\n"

Error: CLANG_WARNING: [#def35]
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:299:5: warning: unused function '__setpgid' [-Wunused-function]
#  299 | int __setpgid(uint64_t pid, uint64_t pgid) {
#      |     ^~~~~~~~~
#  297|   }
#  298|   
#  299|-> int __setpgid(uint64_t pid, uint64_t pgid) {
#  300|     int ret;
#  301|     __asm__ __volatile__("movq $109, %%rax\n"

Error: CLANG_WARNING: [#def36]
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:309:10: warning: unused function '__getpgid' [-Wunused-function]
#  309 | uint64_t __getpgid(uint64_t pid) {
#      |          ^~~~~~~~~
#  307|   }
#  308|   
#  309|-> uint64_t __getpgid(uint64_t pid) {
#  310|     uint64_t ret;
#  311|     __asm__ __volatile__("movq $121, %%rax\n"

Error: CLANG_WARNING: [#def37]
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:319:5: warning: unused function '__kill' [-Wunused-function]
#  319 | int __kill(uint64_t pid, int sig) {
#      |     ^~~~~~
#  317|   }
#  318|   
#  319|-> int __kill(uint64_t pid, int sig) {
#  320|     int ret;
#  321|     __asm__ __volatile__("movq $62, %%rax\n"

Error: CLANG_WARNING: [#def38]
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:329:5: warning: unused function '__fsync' [-Wunused-function]
#  329 | int __fsync(int fd) {
#      |     ^~~~~~~
#  327|   }
#  328|   
#  329|-> int __fsync(int fd) {
#  330|     int ret;
#  331|     __asm__ __volatile__("movq $74, %%rax\n"

Error: CLANG_WARNING: [#def39]
llvm-project-21.1.8.src/bolt/runtime/sys_x86_64.h:342:5: warning: unused function '__prctl' [-Wunused-function]
#  342 | int __prctl(int Option, unsigned long Arg2, unsigned long Arg3,
#      |     ^~~~~~~
#  340|   // sys_prctl  int option  unsigned    unsigned    unsigned    unsigned
#  341|   //                        long arg2   long arg3   long arg4   long arg5
#  342|-> int __prctl(int Option, unsigned long Arg2, unsigned long Arg3,
#  343|               unsigned long Arg4, unsigned long Arg5) {
#  344|     int Ret;

Error: UNICONTROL_WARNING (CWE-94): [#def40]
llvm-project-21.1.8.src/clang-tools-extra/docs/clang-tidy/checks/misc/misleading-bidirectional.rst:17: warning: bidirectional control characters: ['\u202e', '\u2066', '\u2069', '\u2066']
#   15|       int main() {
#   16|           bool isAdmin = false;
#   17|->         /*‮ } ⁦if (isAdmin)⁩ ⁦ begin admins only */
#   18|               std::cout << "You are an admin.\n";
#   19|           /* end admins only ‮ { ⁦*/

Error: UNICONTROL_WARNING (CWE-94): [#def41]
llvm-project-21.1.8.src/clang-tools-extra/docs/clang-tidy/checks/misc/misleading-bidirectional.rst:19: warning: bidirectional control characters: ['\u202e', '\u2066']
#   17|           /*‮ } ⁦if (isAdmin)⁩ ⁦ begin admins only */
#   18|               std::cout << "You are an admin.\n";
#   19|->         /* end admins only ‮ { ⁦*/
#   20|           return 0;
#   21|       }

Error: CLANG_WARNING: [#def42]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:298:23: warning: '_Generic' is a C11 extension [-Wc11-extensions]
#  298 |     const char *sep = strchr(arg_string, ',');
#      |                       ^
#  265 |   __glibc_const_generic (S, const char *, strchr (S, C))
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
#  296|       char *contents;
#  297|       FILE *to_file;
#  298|->     const char *sep = strchr(arg_string, ',');
#  299|       if (!sep) {
#  300|         fprintf(stderr,

Error: CPPCHECK_WARNING (CWE-476): [#def43]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:1189: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: DefaultSetter
# 1187|         size_t Len = strlen(CSpelling) + 5;
# 1188|         char *DefaultSetter = malloc(Len);
# 1189|->       snprintf(DefaultSetter, Len, "set%s:", CSpelling);
# 1190|         DefaultSetter[3] &= ~(1 << 5); /* Make uppercase */
# 1191|         if (CName && strcmp(CName, DefaultSetter)) {

Error: CLANG_WARNING: [#def44]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:2484:28: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 2484 |   const char *last_colon = strrchr(input, ':');
#      |                            ^
#  296 |   __glibc_const_generic (S, const char *, strrchr (S, C))
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 2482|                              unsigned *second_column) {
# 2483|     /* Find the second colon. */
# 2484|->   const char *last_colon = strrchr(input, ':');
# 2485|     unsigned values[4], i;
# 2486|     unsigned num_values = (second_line && second_column)? 4 : 2;

Error: CLANG_WARNING: [#def45]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:2976:10: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 2976 |   while (strstr(argv[NumLocations+1], locations_flag) == argv[NumLocations+1])
#      |          ^
#  381 |   __glibc_const_generic (HAYSTACK, const char *,        \
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 2974|     
# 2975|     /* Count the number of locations. */
# 2976|->   while (strstr(argv[NumLocations+1], locations_flag) == argv[NumLocations+1])
# 2977|       ++NumLocations;
# 2978|   

Error: CLANG_WARNING: [#def46]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:3270:10: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 3270 |   while (strstr(argv[NumLocations+1], "-file-refs-at=") == argv[NumLocations+1])
#      |          ^
#  381 |   __glibc_const_generic (HAYSTACK, const char *,        \
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 3268|     
# 3269|     /* Count the number of locations. */
# 3270|->   while (strstr(argv[NumLocations+1], "-file-refs-at=") == argv[NumLocations+1])
# 3271|       ++NumLocations;
# 3272|   

Error: CLANG_WARNING: [#def47]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:3379:10: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 3379 |   while (strstr(argv[NumFilenames+1], "-file-includes-in=") == argv[NumFilenames+1])
#      |          ^
#  381 |   __glibc_const_generic (HAYSTACK, const char *,        \
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 3377|   
# 3378|     /* Count the number of locations. */
# 3379|->   while (strstr(argv[NumFilenames+1], "-file-includes-in=") == argv[NumFilenames+1])
# 3380|       ++NumFilenames;
# 3381|   

Error: CLANG_WARNING: [#def48]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:4107:9: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 4107 |     if (strstr(argv[0], "-check-prefix=") == argv[0]) {
#      |         ^
#  381 |   __glibc_const_generic (HAYSTACK, const char *,        \
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 4105|     check_prefix = 0;
# 4106|     if (argc > 0) {
# 4107|->     if (strstr(argv[0], "-check-prefix=") == argv[0]) {
# 4108|         check_prefix = argv[0] + strlen("-check-prefix=");
# 4109|         ++argv;

Error: CLANG_WARNING: [#def49]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:4151:9: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 4151 |     if (strstr(argv[0], "-check-prefix=") == argv[0]) {
#      |         ^
#  381 |   __glibc_const_generic (HAYSTACK, const char *,        \
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 4149|     check_prefix = 0;
# 4150|     if (argc > 0) {
# 4151|->     if (strstr(argv[0], "-check-prefix=") == argv[0]) {
# 4152|         check_prefix = argv[0] + strlen("-check-prefix=");
# 4153|         ++argv;

Error: CLANG_WARNING: [#def50]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:4181:9: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 4181 |     if (strstr(argv[0], "-check-prefix=") == argv[0]) {
#      |         ^
#  381 |   __glibc_const_generic (HAYSTACK, const char *,        \
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 4179|     check_prefix = 0;
# 4180|     if (argc > 0) {
# 4181|->     if (strstr(argv[0], "-check-prefix=") == argv[0]) {
# 4182|         check_prefix = argv[0] + strlen("-check-prefix=");
# 4183|         ++argv;

Error: CLANG_WARNING: [#def51]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:5098:19: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 5098 |   if (argc > 2 && strstr(argv[1], "-code-completion-at=") == argv[1])
#      |                   ^
#  381 |   __glibc_const_generic (HAYSTACK, const char *,        \
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 5096|     if (argc > 2 && strcmp(argv[1], "-read-diagnostics") == 0)
# 5097|         return read_diagnostics(argv[2]);
# 5098|->   if (argc > 2 && strstr(argv[1], "-code-completion-at=") == argv[1])
# 5099|       return perform_code_completion(argc, argv, 0);
# 5100|     if (argc > 2 && strstr(argv[1], "-code-completion-timing=") == argv[1])

Error: CLANG_WARNING: [#def52]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:5100:19: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 5100 |   if (argc > 2 && strstr(argv[1], "-code-completion-timing=") == argv[1])
#      |                   ^
#  381 |   __glibc_const_generic (HAYSTACK, const char *,        \
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 5098|     if (argc > 2 && strstr(argv[1], "-code-completion-at=") == argv[1])
# 5099|       return perform_code_completion(argc, argv, 0);
# 5100|->   if (argc > 2 && strstr(argv[1], "-code-completion-timing=") == argv[1])
# 5101|       return perform_code_completion(argc, argv, 1);
# 5102|     if (argc > 2 && strstr(argv[1], "-cursor-at=") == argv[1])

Error: CLANG_WARNING: [#def53]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:5102:19: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 5102 |   if (argc > 2 && strstr(argv[1], "-cursor-at=") == argv[1])
#      |                   ^
#  381 |   __glibc_const_generic (HAYSTACK, const char *,        \
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 5100|     if (argc > 2 && strstr(argv[1], "-code-completion-timing=") == argv[1])
# 5101|       return perform_code_completion(argc, argv, 1);
# 5102|->   if (argc > 2 && strstr(argv[1], "-cursor-at=") == argv[1])
# 5103|       return inspect_cursor_at(argc, argv, "-cursor-at=", inspect_print_cursor);
# 5104|     if (argc > 2 && strstr(argv[1], "-evaluate-cursor-at=") == argv[1])

Error: CLANG_WARNING: [#def54]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:5104:19: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 5104 |   if (argc > 2 && strstr(argv[1], "-evaluate-cursor-at=") == argv[1])
#      |                   ^
#  381 |   __glibc_const_generic (HAYSTACK, const char *,        \
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 5102|     if (argc > 2 && strstr(argv[1], "-cursor-at=") == argv[1])
# 5103|       return inspect_cursor_at(argc, argv, "-cursor-at=", inspect_print_cursor);
# 5104|->   if (argc > 2 && strstr(argv[1], "-evaluate-cursor-at=") == argv[1])
# 5105|       return inspect_cursor_at(argc, argv, "-evaluate-cursor-at=",
# 5106|                                inspect_evaluate_cursor);

Error: CLANG_WARNING: [#def55]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:5107:19: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 5107 |   if (argc > 2 && strstr(argv[1], "-get-macro-info-cursor-at=") == argv[1])
#      |                   ^
#  381 |   __glibc_const_generic (HAYSTACK, const char *,        \
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 5105|       return inspect_cursor_at(argc, argv, "-evaluate-cursor-at=",
# 5106|                                inspect_evaluate_cursor);
# 5107|->   if (argc > 2 && strstr(argv[1], "-get-macro-info-cursor-at=") == argv[1])
# 5108|       return inspect_cursor_at(argc, argv, "-get-macro-info-cursor-at=",
# 5109|                                inspect_macroinfo_cursor);

Error: CLANG_WARNING: [#def56]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:5110:19: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 5110 |   if (argc > 2 && strstr(argv[1], "-file-refs-at=") == argv[1])
#      |                   ^
#  381 |   __glibc_const_generic (HAYSTACK, const char *,        \
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 5108|       return inspect_cursor_at(argc, argv, "-get-macro-info-cursor-at=",
# 5109|                                inspect_macroinfo_cursor);
# 5110|->   if (argc > 2 && strstr(argv[1], "-file-refs-at=") == argv[1])
# 5111|       return find_file_refs_at(argc, argv);
# 5112|     if (argc > 2 && strstr(argv[1], "-file-includes-in=") == argv[1])

Error: CLANG_WARNING: [#def57]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:5112:19: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 5112 |   if (argc > 2 && strstr(argv[1], "-file-includes-in=") == argv[1])
#      |                   ^
#  381 |   __glibc_const_generic (HAYSTACK, const char *,        \
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 5110|     if (argc > 2 && strstr(argv[1], "-file-refs-at=") == argv[1])
# 5111|       return find_file_refs_at(argc, argv);
# 5112|->   if (argc > 2 && strstr(argv[1], "-file-includes-in=") == argv[1])
# 5113|       return find_file_includes_in(argc, argv);
# 5114|     if (argc > 2 && strcmp(argv[1], "-index-file") == 0)

Error: CLANG_WARNING: [#def58]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:5140:9: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 5140 |     if (strstr(argv[1], "-memory-usage"))
#      |         ^
#  381 |   __glibc_const_generic (HAYSTACK, const char *,        \
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 5138|       
# 5139|       PostVisitTU postVisit = 0;
# 5140|->     if (strstr(argv[1], "-memory-usage"))
# 5141|         postVisit = PrintMemoryUsage;
# 5142|       

Error: CLANG_WARNING: [#def59]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:5154:24: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 5154 |   else if (argc > 2 && strstr(argv[1], "-test-annotate-tokens=") == argv[1])
#      |                        ^
#  381 |   __glibc_const_generic (HAYSTACK, const char *,        \
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 5152|       return perform_file_scan(argv[2], argv[3],
# 5153|                                argc >= 5 ? argv[4] : 0);
# 5154|->   else if (argc > 2 && strstr(argv[1], "-test-annotate-tokens=") == argv[1])
# 5155|       return perform_token_annotation(argc, argv);
# 5156|     else if (argc > 2 && strcmp(argv[1], "-test-inclusion-stack-source") == 0)

Error: CLANG_WARNING: [#def60]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:5210:24: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 5210 |   else if (argc > 2 && strstr(argv[1], "-single-symbol-sgf-at=") == argv[1])
#      |                        ^
#  381 |   __glibc_const_generic (HAYSTACK, const char *,        \
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 5208|       return perform_test_load_source(argc - 3, argv + 3, argv[2],
# 5209|                                       PrintSingleSymbolSGFs, NULL);
# 5210|->   else if (argc > 2 && strstr(argv[1], "-single-symbol-sgf-at=") == argv[1])
# 5211|       return inspect_cursor_at(
# 5212|           argc, argv, "-single-symbol-sgf-at=", inspect_single_symbol_sgf_cursor);

Error: CLANG_WARNING: [#def61]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:5213:24: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 5213 |   else if (argc > 2 && strstr(argv[1], "-single-symbol-sgf-for=") == argv[1])
#      |                        ^
#  381 |   __glibc_const_generic (HAYSTACK, const char *,        \
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 5211|       return inspect_cursor_at(
# 5212|           argc, argv, "-single-symbol-sgf-at=", inspect_single_symbol_sgf_cursor);
# 5213|->   else if (argc > 2 && strstr(argv[1], "-single-symbol-sgf-for=") == argv[1])
# 5214|       return perform_test_single_symbol_sgf(argv[1], argc - 2, argv + 2);
# 5215|   

Error: CLANG_WARNING: [#def62]
llvm-project-21.1.8.src/clang/tools/c-index-test/c-index-test.c:5216:19: warning: '_Generic' is a C11 extension [-Wc11-extensions]
# 5216 |   if (argc > 2 && strstr(argv[1], "-test-inline-assembly") == argv[1])
#      |                   ^
#  381 |   __glibc_const_generic (HAYSTACK, const char *,        \
#      |   ^
#  838 |   _Generic (0 ? (PTR) : (void *) 1,                     \
#      |   ^
# 5214|       return perform_test_single_symbol_sgf(argv[1], argc - 2, argv + 2);
# 5215|   
# 5216|->   if (argc > 2 && strstr(argv[1], "-test-inline-assembly") == argv[1])
# 5217|       return perform_test_load_source(argc - 2, argv + 2, "all",
# 5218|                                       PrintGCCInlineAssembly, NULL);

Error: CPPCHECK_WARNING (CWE-476): [#def63]
llvm-project-21.1.8.src/lldb/unittests/tools/lldb-server/inferior/thread_inferior.cpp:32: warning[nullPointer]: Possible null pointer dereference: p
#   30|     // Cause a break.
#   31|     volatile char *p = nullptr;
#   32|->   *p = 'a';
#   33|   
#   34|     delay.store(false);

Error: CPPCHECK_WARNING (CWE-457): [#def64]
llvm-project-21.1.8.src/llvm/include/llvm/Support/MathExtras.h:146: warning[uninitvar]: Uninitialized variable: out
#  144|     for (unsigned i = 0; i < sizeof(Val); ++i)
#  145|       out[(sizeof(Val) - i) - 1] = BitReverseTable256[in[i]];
#  146|->   std::memcpy(&Val, out, sizeof(Val));
#  147|     return Val;
#  148|   }

Error: CPPCHECK_WARNING (CWE-457): [#def65]
llvm-project-21.1.8.src/llvm/include/llvm/Support/MathExtras.h:620: error[legacyUninitvar]: Uninitialized variable: Dummy
#  618|   SaturatingAdd(T X, T Y, bool *ResultOverflowed = nullptr) {
#  619|     bool Dummy;
#  620|->   bool &Overflowed = ResultOverflowed ? *ResultOverflowed : Dummy;
#  621|     // Hacker's Delight, p. 29
#  622|     T Z = X + Y;

Error: CPPCHECK_WARNING (CWE-457): [#def66]
llvm-project-21.1.8.src/llvm/include/llvm/Support/MathExtras.h:649: error[legacyUninitvar]: Uninitialized variable: Dummy
#  647|   SaturatingMultiply(T X, T Y, bool *ResultOverflowed = nullptr) {
#  648|     bool Dummy;
#  649|->   bool &Overflowed = ResultOverflowed ? *ResultOverflowed : Dummy;
#  650|   
#  651|     // Hacker's Delight, p. 30 has a different algorithm, but we don't use that

Error: CPPCHECK_WARNING (CWE-457): [#def67]
llvm-project-21.1.8.src/llvm/include/llvm/Support/MathExtras.h:695: error[legacyUninitvar]: Uninitialized variable: Dummy
#  693|   SaturatingMultiplyAdd(T X, T Y, T A, bool *ResultOverflowed = nullptr) {
#  694|     bool Dummy;
#  695|->   bool &Overflowed = ResultOverflowed ? *ResultOverflowed : Dummy;
#  696|   
#  697|     T Product = SaturatingMultiply(X, Y, &Overflowed);

Error: CPPCHECK_WARNING (CWE-758): [#def68]
llvm-project-21.1.8.src/llvm/lib/Demangle/MicrosoftDemangle.cpp:262: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
#  260|     const char F = MangledName.front();
#  261|     MangledName.remove_prefix(1);
#  262|->   switch (F) {
#  263|     case 'A':
#  264|       return std::make_pair(Q_None, PointerAffinity::Reference);

Error: CPPCHECK_WARNING (CWE-457): [#def69]
llvm-project-21.1.8.src/llvm/lib/Demangle/MicrosoftDemangle.cpp:1409: warning[uninitvar]: Uninitialized variable: StringBytes
# 1407|   
# 1408|       unsigned CharBytes =
# 1409|->         guessCharByteSize(StringBytes, BytesDecoded, StringByteSize);
# 1410|       assert(StringByteSize % CharBytes == 0);
# 1411|       switch (CharBytes) {

Error: CPPCHECK_WARNING (CWE-758): [#def70]
llvm-project-21.1.8.src/llvm/lib/Demangle/MicrosoftDemangle.cpp:1787: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
# 1785|     const char F = MangledName.front();
# 1786|     MangledName.remove_prefix(1);
# 1787|->   switch (F) {
# 1788|     case '0':
# 1789|       return StorageClass::PrivateStatic;

Error: CPPCHECK_WARNING (CWE-758): [#def71]
llvm-project-21.1.8.src/llvm/lib/Demangle/MicrosoftDemangle.cpp:2302: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
# 2300|       IsVariadic = true;
# 2301|       return NA;
# 2302|->   }
# 2303|   
# 2304|     DEMANGLE_UNREACHABLE;

Error: CLANG_WARNING: [#def72]
llvm-project-21.1.8.src/llvm/lib/Transforms/Scalar/LoopInterchange.cpp:863:20: warning: unused variable 'OpCode' [-Wunused-variable]
#  863 |           unsigned OpCode = RecurrenceDescriptor::getOpcode(RK);
#      |                    ^~~~~~
#  861|           case RecurKind::Add:
#  862|           case RecurKind::Mul: {
#  863|->           unsigned OpCode = RecurrenceDescriptor::getOpcode(RK);
#  864|             SmallVector<Instruction *, 4> Ops = RD.getReductionOpChain(PHI, L);
#  865|   

Error: CLANG_WARNING: [#def73]
llvm-project-21.1.8.src/llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp:702:13: warning: unused variable 'RedPhiRK' [-Wunused-variable]
#  702 |   RecurKind RedPhiRK = RedPhiR->getRecurrenceKind();
#      |             ^~~~~~~~
#  700|       return false;
#  701|   
#  702|->   RecurKind RedPhiRK = RedPhiR->getRecurrenceKind();
#  703|     assert((RedPhiRK == RecurKind::FMaxNum || RedPhiRK == RecurKind::FMinNum) &&
#  704|            "unsupported reduction");

Error: COMPILER_WARNING: [#def74] [important]
llvm-project-21.1.8.src/llvm/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-931NdR/CheckSymbolExists.c:3:10: error[fatal error]: pthread_np.h: No such file or directory

Error: COMPILER_WARNING: [#def75] [important]
llvm-project-21.1.8.src/llvm/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-AXAAj0/CheckSymbolExists.c:2:10: error[fatal error]: libproc.h: No such file or directory

Error: COMPILER_WARNING: [#def76] [important]
llvm-project-21.1.8.src/llvm/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-D6uS7t/CheckSymbolExists.c:8:19: error[error]: ‘strerror_s’ undeclared (first use in this function); did you mean ‘strerror_l’?

Error: COMPILER_WARNING: [#def77] [important]
llvm-project-21.1.8.src/llvm/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-SnObKq/CheckSymbolExists.c:3:10: error[fatal error]: pthread_np.h: No such file or directory

Error: COMPILER_WARNING (CWE-477): [#def78]
llvm-project-21.1.8.src/llvm/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-Twwkf2/CheckSymbolExists.c:8:3: warning[-Wdeprecated-declarations]: ‘mallinfo’ is deprecated

Error: COMPILER_WARNING: [#def79] [important]
llvm-project-21.1.8.src/llvm/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-eD6UZx/src.c:7:34: error[error]: ‘struct stat’ has no member named ‘st_mtimespec’

Error: COMPILER_WARNING: [#def80] [important]
llvm-project-21.1.8.src/llvm/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-fOFVQf/CheckSymbolExists.c:2:10: error[fatal error]: malloc/malloc.h: No such file or directory

Error: COMPILER_WARNING: [#def81] [important]
llvm-project-21.1.8.src/llvm/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-lsk4Ap/CheckIncludeFile.c:1:10: error[fatal error]: CrashReporterClient.h: No such file or directory

Error: COMPILER_WARNING: [#def82] [important]
llvm-project-21.1.8.src/llvm/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-pYdq8a/CheckSymbolExists.c:2:10: error[fatal error]: malloc_np.h: No such file or directory

Error: UNICONTROL_WARNING (CWE-94): [#def83]
llvm-project-21.1.8.src/llvm/redhat-linux-build/tools/clang/tools/extra/docs/man/extraclangtools.1:13958: warning: bidirectional control characters: ['\u202e', '\u2066', '\u2069', '\u2066']
#13956|   int main() {
#13957|       bool isAdmin = false;
#13958|->     /*‮ } ⁦if (isAdmin)⁩ ⁦ begin admins only */
#13959|           std::cout << \(dqYou are an admin.\en\(dq;
#13960|       /* end admins only ‮ { ⁦*/

Error: UNICONTROL_WARNING (CWE-94): [#def84]
llvm-project-21.1.8.src/llvm/redhat-linux-build/tools/clang/tools/extra/docs/man/extraclangtools.1:13960: warning: bidirectional control characters: ['\u202e', '\u2066']
#13958|       /*‮ } ⁦if (isAdmin)⁩ ⁦ begin admins only */
#13959|           std::cout << \(dqYou are an admin.\en\(dq;
#13960|->     /* end admins only ‮ { ⁦*/
#13961|       return 0;
#13962|   }

Error: CPPCHECK_WARNING (CWE-682): [#def85]
llvm-project-21.1.8.src/mlir/include/mlir/ExecutionEngine/CRunnerUtils.h:347: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
#  345|       offset = desc->offset;
#  346|       sizes = rank == 0 ? nullptr : desc->sizes;
#  347|->     strides = sizes + rank;
#  348|     }
#  349|   

Error: CPPCHECK_WARNING (CWE-664): [#def86]
llvm-project-21.1.8.src/mlir/include/mlir/ExecutionEngine/SparseTensor/COO.h:118: error[invalidContainer]: Using pointer to member variable 'coordinates' that may be invalid.
#  116|       // with the doubling rule should only incur an amortized linear overhead).
#  117|       const uint64_t *const newBase = coordinates.data();
#  118|->     if (newBase != base) {
#  119|         for (uint64_t i = 0, n = elements.size(); i < n; ++i)
#  120|           elements[i].coords = newBase + (elements[i].coords - base);

Error: CPPCHECK_WARNING (CWE-476): [#def87]
llvm-project-21.1.8.src/polly/lib/External/isl/imath/gmp_compat.c:365: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: str
#  363|     /* Copy string to temporary storage so we can modify it below */
#  364|     str = malloc(strlen(s) + 1);
#  365|->   strcpy(str, s);
#  366|   
#  367|     /* Properly format the string as an int by terminating at the / */

Error: CPPCHECK_WARNING (CWE-476): [#def88]
llvm-project-21.1.8.src/polly/lib/External/isl/imath/gmp_compat.c:368: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: str
#  366|   
#  367|     /* Properly format the string as an int by terminating at the / */
#  368|->   slash = strchr(str, '/');
#  369|     if (slash) *slash = '\0';
#  370|   

Error: CPPCHECK_WARNING (CWE-401): [#def89]
llvm-project-21.1.8.src/polly/lib/External/isl/isl_arg.c:983: error[memleakOnRealloc]: Common realloc mistake: 'list' nulled but not freed upon failure
#  981|   	char **list = *(char ***)(((char *) opt) + decl->offset);
#  982|   
#  983|-> 	list = realloc(list, (*n + 1) * sizeof(char *));
#  984|   	if (!list)
#  985|   		return -1;

Error: CPPCHECK_WARNING (CWE-562): [#def90]
llvm-project-21.1.8.src/polly/lib/External/isl/isl_ast.c:1800: error[returnDanglingLifetime]: Returning pointer to local variable 'more' that will be invalid when returning.
# 1798|   		return NULL;
# 1799|   	if (!more)
# 1800|-> 		return node;
# 1801|   
# 1802|   	switch (node->type) {

Error: CPPCHECK_WARNING (CWE-457): [#def91]
llvm-project-21.1.8.src/polly/lib/External/isl/isl_ast_codegen.c:2579: error[ctuuninitvar]: Using argument n that points at uninitialized variable n
# 2577|   {
# 2578|   	struct isl_find_unroll_data data =
# 2579|-> 			{ build, domain, depth, expansion, NULL, n, -1 };
# 2580|   	isl_basic_set *hull;
# 2581|   

Error: CPPCHECK_WARNING (CWE-590): [#def92]
llvm-project-21.1.8.src/polly/lib/External/isl/isl_coalesce.c:2199: error[autovarInvalidDeallocation]: Deallocation of an auto-variable (k) results in undefined behaviour.
# 2197|   		change = is_relaxed_extension(i, j, 1 + n_cut, relax, info);
# 2198|   	if (n_cut > 0)
# 2199|-> 		free(relax);
# 2200|   	if (change != isl_change_none)
# 2201|   		return change;

Error: CPPCHECK_WARNING (CWE-476): [#def93]
llvm-project-21.1.8.src/polly/lib/External/isl/isl_int_sioimath.c:214: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  212|   	buf = malloc(len);
#  213|   	mp_int_to_string(big, 10, buf, len);
#  214|-> 	fprintf(out, "%*s", width, buf);
#  215|   	free(buf);
#  216|   }

Error: CPPCHECK_WARNING (CWE-476): [#def94]
llvm-project-21.1.8.src/polly/lib/External/isl/isl_int_sioimath.h:541: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  539|   	if (isl_sioimath_is_small(val)) {
#  540|   		result = malloc(12);
#  541|-> 		snprintf(result, 12, "%" PRIi32, isl_sioimath_get_small(val));
#  542|   		return result;
#  543|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def95]
llvm-project-21.1.8.src/polly/lib/External/isl/isl_list_templ.c:682: error[ctunullpointer]: Null pointer dereference: list
#  680|   		goto error;
#  681|   	p = isl_printer_print_str(p, "(");
#  682|-> 	for (i = 0; i < list->n; ++i) {
#  683|   		if (i)
#  684|   			p = isl_printer_print_str(p, ",");

Error: CPPCHECK_WARNING (CWE-476): [#def96]
llvm-project-21.1.8.src/polly/lib/External/isl/isl_local_space.c:1106: error[ctunullpointer]: Null pointer dereference: ls
# 1104|   	__isl_take isl_local_space *ls, int div)
# 1105|   {
# 1106|-> 	isl_ctx *ctx = ls->div->ctx;
# 1107|   	unsigned total = ls->div->n_col - 2;
# 1108|   

Error: CPPCHECK_WARNING (CWE-476): [#def97]
llvm-project-21.1.8.src/polly/lib/External/isl/isl_local_space.c:1106: warning[nullPointer]: Possible null pointer dereference: ls
# 1104|   	__isl_take isl_local_space *ls, int div)
# 1105|   {
# 1106|-> 	isl_ctx *ctx = ls->div->ctx;
# 1107|   	unsigned total = ls->div->n_col - 2;
# 1108|   

Error: CPPCHECK_WARNING (CWE-476): [#def98]
llvm-project-21.1.8.src/polly/lib/External/isl/isl_local_space.c:1107: warning[nullPointer]: Possible null pointer dereference: ls
# 1105|   {
# 1106|   	isl_ctx *ctx = ls->div->ctx;
# 1107|-> 	unsigned total = ls->div->n_col - 2;
# 1108|   
# 1109|   	isl_seq_gcd(ls->div->row[div] + 2, total, &ctx->normalize_gcd);

Error: CPPCHECK_WARNING (CWE-476): [#def99]
llvm-project-21.1.8.src/polly/lib/External/isl/isl_local_space.c:1109: warning[nullPointer]: Possible null pointer dereference: ls
# 1107|   	unsigned total = ls->div->n_col - 2;
# 1108|   
# 1109|-> 	isl_seq_gcd(ls->div->row[div] + 2, total, &ctx->normalize_gcd);
# 1110|   	isl_int_gcd(ctx->normalize_gcd,
# 1111|   		    ctx->normalize_gcd, ls->div->row[div][0]);

Error: CPPCHECK_WARNING (CWE-476): [#def100]
llvm-project-21.1.8.src/polly/lib/External/isl/isl_local_space.c:1110: warning[nullPointer]: Possible null pointer dereference: ls
# 1108|   
# 1109|   	isl_seq_gcd(ls->div->row[div] + 2, total, &ctx->normalize_gcd);
# 1110|-> 	isl_int_gcd(ctx->normalize_gcd,
# 1111|   		    ctx->normalize_gcd, ls->div->row[div][0]);
# 1112|   	if (isl_int_is_one(ctx->normalize_gcd))

Error: CPPCHECK_WARNING (CWE-457): [#def101]
llvm-project-21.1.8.src/polly/lib/External/isl/isl_range.c:428: warning[uninitvar]: Uninitialized variable: data->poly
#  426|   	isl_bool is_cst;
#  427|   	isl_ctx *ctx;
#  428|-> 	isl_qpolynomial *save_poly = data->poly;
#  429|   	int save_monotonicity = data->monotonicity;
#  430|   	isl_size d;

Error: CPPCHECK_WARNING (CWE-476): [#def102]
llvm-project-21.1.8.src/polly/lib/External/isl/isl_schedule_node.c:2495: error[ctunullpointer]: Null pointer dereference: pos
# 2493|   	if (!tree || !pos)
# 2494|   		goto error;
# 2495|-> 	if (pos->tree == tree) {
# 2496|   		isl_schedule_tree_free(tree);
# 2497|   		return pos;

Error: CPPCHECK_WARNING (CWE-457): [#def103]
llvm-project-21.1.8.src/polly/lib/External/isl/isl_schedule_read.c:446: error[legacyUninitvar]: Uninitialized variable: tree
#  444|   	}
#  445|   
#  446|-> 	return tree;
#  447|   error:
#  448|   	isl_id_free(mark);

Error: CPPCHECK_WARNING (CWE-476): [#def104]
llvm-project-21.1.8.src/polly/lib/External/isl/isl_tab_pip.c:229: error[ctunullpointer]: Null pointer dereference: dom
#  227|   		goto error;
#  228|   
#  229|-> 	partial = isl_alloc_type(dom->ctx, struct isl_partial_sol);
#  230|   	if (!partial)
#  231|   		goto error;

Error: CPPCHECK_WARNING (CWE-457): [#def105]
llvm-project-21.1.8.src/polly/lib/External/isl/isl_test.c:8024: warning[uninitvar]: Uninitialized variable: equal
# 8022|   	isl_vertex_free(vertex);
# 8023|   
# 8024|-> 	if (equal < 0)
# 8025|   		return isl_stat_error;
# 8026|   

Error: CPPCHECK_WARNING (CWE-457): [#def106]
llvm-project-21.1.8.src/polly/lib/External/isl/isl_union_multi.c:70: error[ctuuninitvar]: Using argument user that points at uninitialized variable single
#   68|   	void *user)
#   69|   {
#   70|-> 	S(UNION,foreach_group_data) data = { fn, user };
#   71|   
#   72|   	if (!u)

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-218.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namellvm-21.1.8-1.fc44
store-results-to/tmp/tmpkls3n1ie/llvm-21.1.8-1.fc44.tar.xz
time-created2026-01-09 00:18:28
time-finished2026-01-09 05:16:18
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpkls3n1ie/llvm-21.1.8-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpkls3n1ie/llvm-21.1.8-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9