Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] glibc-2.43-8-g48f5a05a7a/elf/dl-reloc-static-pie.c:80:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘where’ glibc-2.43-8-g48f5a05a7a/elf/dl-reloc-static-pie.c:36:1: enter_function: entry to ‘_dl_relocate_static_pie’ glibc-2.43-8-g48f5a05a7a/elf/dl-reloc-static-pie.c:72:3: call_function: inlined call to ‘elf_get_dynamic_info’ from ‘_dl_relocate_static_pie’ glibc-2.43-8-g48f5a05a7a/elf/dl-reloc-static-pie.c:80:3: branch_false: ...to here glibc-2.43-8-g48f5a05a7a/elf/dl-reloc-static-pie.c:80:3: branch_false: following ‘false’ branch... glibc-2.43-8-g48f5a05a7a/elf/dl-reloc-static-pie.c:80:3: branch_false: ...to here glibc-2.43-8-g48f5a05a7a/elf/dl-reloc-static-pie.c:80:3: branch_true: following ‘true’ branch (when ‘r < end’)... glibc-2.43-8-g48f5a05a7a/elf/dl-reloc-static-pie.c:80:3: branch_true: ...to here glibc-2.43-8-g48f5a05a7a/elf/dl-reloc-static-pie.c:80:3: branch_false: following ‘false’ branch... glibc-2.43-8-g48f5a05a7a/elf/dl-reloc-static-pie.c:80:3: branch_false: ...to here glibc-2.43-8-g48f5a05a7a/elf/dl-reloc-static-pie.c:80:3: branch_true: following ‘true’ branch... glibc-2.43-8-g48f5a05a7a/elf/dl-reloc-static-pie.c:80:3: danger: dereference of NULL ‘where + (long unsigned int)i * 8’ # 78| /* Relocate ourselves so we can do normal function calls and # 79| data access using the global offset table. */ # 80|-> ELF_DYNAMIC_RELOCATE (main_map, NULL, 0, 0, 0); # 81| main_map->l_relocated = 1; # 82| Error: GCC_ANALYZER_WARNING (CWE-476): [#def2] glibc-2.43-8-g48f5a05a7a/elf/dl-reloc.c:296:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘where’ glibc-2.43-8-g48f5a05a7a/elf/dl-reloc.c:341:1: enter_function: entry to ‘_dl_relocate_object’ glibc-2.43-8-g48f5a05a7a/elf/dl-reloc.c:344:6: branch_false: following ‘false’ branch... glibc-2.43-8-g48f5a05a7a/elf/dl-reloc.c:346:3: branch_false: ...to here glibc-2.43-8-g48f5a05a7a/elf/dl-reloc.c:346:3: call_function: calling ‘_dl_relocate_object_no_relro’ from ‘_dl_relocate_object’ # 294| /* Do the actual relocation of the object's GOT and other data. */ # 295| # 296|-> ELF_DYNAMIC_RELOCATE (l, scope, lazy, consider_profiling, skip_ifunc); # 297| # 298| if ((consider_profiling || consider_symbind) Error: GCC_ANALYZER_WARNING (CWE-688): [#def3] glibc-2.43-8-g48f5a05a7a/elf/rtld.c:1060:10: warning[-Wanalyzer-null-argument]: use of NULL ‘rtld_soname’ where non-null expected glibc-2.43-8-g48f5a05a7a/elf/rtld.c:1352:1: enter_function: entry to ‘dl_main’ glibc-2.43-8-g48f5a05a7a/elf/rtld.c:1366:3: call_function: inlined call to ‘dl_main_state_init’ from ‘dl_main’ glibc-2.43-8-g48f5a05a7a/elf/rtld.c:1379:6: branch_true: following ‘true’ branch... glibc-2.43-8-g48f5a05a7a/elf/rtld.c:1402:7: branch_true: ...to here glibc-2.43-8-g48f5a05a7a/elf/rtld.c:1526:10: branch_false: following ‘false’ branch... glibc-2.43-8-g48f5a05a7a/elf/rtld.c:1531:11: branch_false: ...to here glibc-2.43-8-g48f5a05a7a/elf/rtld.c:1531:10: branch_false: following ‘false’ branch... glibc-2.43-8-g48f5a05a7a/elf/rtld.c:1540:7: branch_false: ...to here glibc-2.43-8-g48f5a05a7a/elf/rtld.c:1599:10: branch_true: following ‘true’ branch... glibc-2.43-8-g48f5a05a7a/elf/rtld.c:1600:9: branch_true: ...to here glibc-2.43-8-g48f5a05a7a/elf/rtld.c:1600:9: call_function: calling ‘rtld_chain_load’ from ‘dl_main’ # 1058| const char *rtld_soname = l_soname (&_dl_rtld_map); # 1059| if (l_soname (main_map) != NULL # 1060|-> && strcmp (rtld_soname, l_soname (main_map)) == 0) # 1061| _dl_fatal_printf ("%s: loader cannot load itself\n", rtld_soname); # 1062| Error: CPPCHECK_WARNING (CWE-476): [#def4] glibc-2.43-8-g48f5a05a7a/iconv/gconv.c:50: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 48| __gconv_fct fct = cd->__steps->__fct; # 49| if (cd->__steps->__shlib_handle != NULL) # 50|-> PTR_DEMANGLE (fct); # 51| # 52| if (inbuf == NULL || *inbuf == NULL) Error: CPPCHECK_WARNING (CWE-476): [#def5] glibc-2.43-8-g48f5a05a7a/iconv/gconv_dl.c:130: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 128| found->end_fct = __libc_dlsym (found->handle, "gconv_end"); # 129| # 130|-> PTR_MANGLE (found->fct); # 131| PTR_MANGLE (found->init_fct); # 132| PTR_MANGLE (found->end_fct); Error: CPPCHECK_WARNING (CWE-476): [#def6] glibc-2.43-8-g48f5a05a7a/iconv/gconv_dl.c:131: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 129| # 130| PTR_MANGLE (found->fct); # 131|-> PTR_MANGLE (found->init_fct); # 132| PTR_MANGLE (found->end_fct); # 133| Error: CPPCHECK_WARNING (CWE-476): [#def7] glibc-2.43-8-g48f5a05a7a/iconv/gconv_dl.c:132: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 130| PTR_MANGLE (found->fct); # 131| PTR_MANGLE (found->init_fct); # 132|-> PTR_MANGLE (found->end_fct); # 133| # 134| /* We have succeeded in loading the shared object. */ Error: CPPCHECK_WARNING (CWE-476): [#def8] glibc-2.43-8-g48f5a05a7a/iconv/skeleton.c:341: error[nullPointer]: Null pointer dereference: (struct tcbhead_t __seg_fs*)0 # 339| fct = next_step->__fct; # 340| if (next_step->__shlib_handle != NULL) # 341|-> PTR_DEMANGLE (fct); # 342| } # 343| Error: CPPCHECK_WARNING (CWE-476): [#def9] glibc-2.43-8-g48f5a05a7a/iconv/skeleton.c:341: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 339| fct = next_step->__fct; # 340| if (next_step->__shlib_handle != NULL) # 341|-> PTR_DEMANGLE (fct); # 342| } # 343| Error: CPPCHECK_WARNING (CWE-476): [#def10] glibc-2.43-8-g48f5a05a7a/inet/idna.c:76: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 74| result->lookup_ul = ptr_lookup_ul; # 75| result->to_unicode_lzlz = ptr_to_unicode_lzlz; # 76|-> PTR_MANGLE (result->lookup_ul); # 77| PTR_MANGLE (result->to_unicode_lzlz); # 78| Error: CPPCHECK_WARNING (CWE-476): [#def11] glibc-2.43-8-g48f5a05a7a/inet/idna.c:77: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 75| result->to_unicode_lzlz = ptr_to_unicode_lzlz; # 76| PTR_MANGLE (result->lookup_ul); # 77|-> PTR_MANGLE (result->to_unicode_lzlz); # 78| # 79| return result; Error: CPPCHECK_WARNING (CWE-476): [#def12] glibc-2.43-8-g48f5a05a7a/inet/idna.c:139: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 137| char *ptr = NULL; # 138| __typeof__ (functions->lookup_ul) fptr = functions->lookup_ul; # 139|-> PTR_DEMANGLE (fptr); # 140| int ret = fptr (name, &ptr, 0); # 141| if (ret == 0) Error: GCC_ANALYZER_WARNING (CWE-401): [#def13] glibc-2.43-8-g48f5a05a7a/io/ftw.c:263:1: warning[-Wanalyzer-malloc-leak]: leak of ‘newp’ glibc-2.43-8-g48f5a05a7a/io/ftw.c:836:1: enter_function: entry to ‘__new_nftw’ glibc-2.43-8-g48f5a05a7a/io/ftw.c:838:6: branch_false: following ‘false’ branch... glibc-2.43-8-g48f5a05a7a/io/ftw.c:844:10: branch_false: ...to here glibc-2.43-8-g48f5a05a7a/io/ftw.c:844:10: call_function: calling ‘ftw_startup’ from ‘__new_nftw’ # 261| newp->ino = st->st_ino; # 262| return __tsearch (newp, &data->known_objects, object_compare) ? 0 : -1; # 263|-> } # 264| # 265| Error: GCC_ANALYZER_WARNING (CWE-401): [#def14] glibc-2.43-8-g48f5a05a7a/io/ftw.c:272:10: warning[-Wanalyzer-malloc-leak]: leak of ‘newp’ glibc-2.43-8-g48f5a05a7a/io/ftw.c:836:1: enter_function: entry to ‘__new_nftw’ glibc-2.43-8-g48f5a05a7a/io/ftw.c:838:6: branch_false: following ‘false’ branch... glibc-2.43-8-g48f5a05a7a/io/ftw.c:844:10: branch_false: ...to here glibc-2.43-8-g48f5a05a7a/io/ftw.c:844:10: call_function: calling ‘ftw_startup’ from ‘__new_nftw’ # 270| obj.dev = st->st_dev; # 271| obj.ino = st->st_ino; # 272|-> return __tfind (&obj, &data->known_objects, object_compare) != NULL; # 273| } # 274| Error: CPPCHECK_WARNING (CWE-476): [#def15] glibc-2.43-8-g48f5a05a7a/misc/unwind-link.c:77: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 75| local.ptr_personality # 76| = __libc_dlsym (local_libgcc_handle, "__gcc_personality_v0"); # 77|-> UNWIND_LINK_EXTRA_INIT # 78| # 79| /* If a symbol is missing, libgcc_s has somehow been corrupted. */ Error: CPPCHECK_WARNING (CWE-476): [#def16] glibc-2.43-8-g48f5a05a7a/misc/unwind-link.c:89: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 87| assert (local.ptr_personality != NULL); # 88| # 89|-> PTR_MANGLE (local.ptr__Unwind_Backtrace); # 90| PTR_MANGLE (local.ptr__Unwind_ForcedUnwind); # 91| PTR_MANGLE (local.ptr__Unwind_GetCFA); Error: CPPCHECK_WARNING (CWE-476): [#def17] glibc-2.43-8-g48f5a05a7a/misc/unwind-link.c:90: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 88| # 89| PTR_MANGLE (local.ptr__Unwind_Backtrace); # 90|-> PTR_MANGLE (local.ptr__Unwind_ForcedUnwind); # 91| PTR_MANGLE (local.ptr__Unwind_GetCFA); # 92| #if UNWIND_LINK_GETIP Error: CPPCHECK_WARNING (CWE-476): [#def18] glibc-2.43-8-g48f5a05a7a/misc/unwind-link.c:91: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 89| PTR_MANGLE (local.ptr__Unwind_Backtrace); # 90| PTR_MANGLE (local.ptr__Unwind_ForcedUnwind); # 91|-> PTR_MANGLE (local.ptr__Unwind_GetCFA); # 92| #if UNWIND_LINK_GETIP # 93| PTR_MANGLE (local.ptr__Unwind_GetIP); Error: CPPCHECK_WARNING (CWE-476): [#def19] glibc-2.43-8-g48f5a05a7a/misc/unwind-link.c:93: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 91| PTR_MANGLE (local.ptr__Unwind_GetCFA); # 92| #if UNWIND_LINK_GETIP # 93|-> PTR_MANGLE (local.ptr__Unwind_GetIP); # 94| #endif # 95| PTR_MANGLE (local.ptr__Unwind_Resume); Error: CPPCHECK_WARNING (CWE-476): [#def20] glibc-2.43-8-g48f5a05a7a/misc/unwind-link.c:95: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 93| PTR_MANGLE (local.ptr__Unwind_GetIP); # 94| #endif # 95|-> PTR_MANGLE (local.ptr__Unwind_Resume); # 96| #if UNWIND_LINK_FRAME_STATE_FOR # 97| PTR_MANGLE (local.ptr___frame_state_for); Error: CPPCHECK_WARNING (CWE-476): [#def21] glibc-2.43-8-g48f5a05a7a/misc/unwind-link.c:97: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 95| PTR_MANGLE (local.ptr__Unwind_Resume); # 96| #if UNWIND_LINK_FRAME_STATE_FOR # 97|-> PTR_MANGLE (local.ptr___frame_state_for); # 98| #endif # 99| PTR_MANGLE (local.ptr_personality); Error: CPPCHECK_WARNING (CWE-476): [#def22] glibc-2.43-8-g48f5a05a7a/misc/unwind-link.c:99: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 97| PTR_MANGLE (local.ptr___frame_state_for); # 98| #endif # 99|-> PTR_MANGLE (local.ptr_personality); # 100| # 101| __libc_lock_lock (lock); Error: GCC_ANALYZER_WARNING (CWE-401): [#def23] glibc-2.43-8-g48f5a05a7a/nis/nis_creategroup.c:63:11: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ glibc-2.43-8-g48f5a05a7a/nis/nis_creategroup.c:40:10: branch_true: following ‘true’ branch... glibc-2.43-8-g48f5a05a7a/nis/nis_creategroup.c:49:10: branch_false: following ‘false’ branch... glibc-2.43-8-g48f5a05a7a/nis/nis_creategroup.c:52:47: branch_false: ...to here glibc-2.43-8-g48f5a05a7a/nis/nis_creategroup.c:56:24: acquire_memory: allocated here glibc-2.43-8-g48f5a05a7a/nis/nis_creategroup.c:57:10: branch_true: following ‘true’ branch... glibc-2.43-8-g48f5a05a7a/nis/nis_creategroup.c:60:11: branch_true: ...to here glibc-2.43-8-g48f5a05a7a/nis/nis_creategroup.c:63:11: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) # 61| free (obj->zo_owner); # 62| free (obj->zo_name); # 63|-> free (obj); # 64| return NIS_NOMEMORY; # 65| } Error: CPPCHECK_WARNING (CWE-476): [#def24] glibc-2.43-8-g48f5a05a7a/stdlib/cxa_thread_atexit_impl.c:103: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 101| __cxa_thread_atexit_impl (dtor_func func, void *obj, void *dso_symbol) # 102| { # 103|-> PTR_MANGLE (func); # 104| # 105| /* Prepend. */ Error: CPPCHECK_WARNING (CWE-476): [#def25] glibc-2.43-8-g48f5a05a7a/stdlib/cxa_thread_atexit_impl.c:153: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 151| struct dtor_list *cur = tls_dtor_list; # 152| dtor_func func = cur->func; # 153|-> PTR_DEMANGLE (func); # 154| # 155| tls_dtor_list = tls_dtor_list->next; Error: CPPCHECK_WARNING (CWE-476): [#def26] glibc-2.43-8-g48f5a05a7a/stdlib/on_exit.c:42: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 40| } # 41| # 42|-> PTR_MANGLE (func); # 43| new->func.on.fn = func; # 44| new->func.on.arg = arg; Error: GCC_ANALYZER_WARNING (CWE-688): [#def27] glibc-2.43-8-g48f5a05a7a/string/bits/string_fortified.h:29:10: warning[-Wanalyzer-null-argument]: use of NULL ‘address’ where non-null expected glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:291:1: enter_function: entry to ‘__check_pf’ glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:315:10: branch_true: following ‘true’ branch... glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:318:11: call_function: inlined call to ‘memset’ from ‘__check_pf’ glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:323:14: branch_true: following ‘true’ branch... glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:324:18: branch_true: ...to here glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:323:15: branch_true: following ‘true’ branch... glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:326:38: branch_true: ...to here glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:326:20: call_function: calling ‘make_request’ from ‘__check_pf’ #argument 2 of ‘__builtin___memcpy_chk’ must be non-null # 27| size_t __len)) # 28| { # 29|-> return __builtin___memcpy_chk (__dest, __src, __len, # 30| __glibc_objsize0 (__dest)); # 31| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def28] glibc-2.43-8-g48f5a05a7a/support/resolv_test.c:1135:8: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(192)’ glibc-2.43-8-g48f5a05a7a/support/resolv_test.c:1169:6: branch_false: following ‘false’ branch... glibc-2.43-8-g48f5a05a7a/support/resolv_test.c:1172:6: branch_false: ...to here glibc-2.43-8-g48f5a05a7a/support/resolv_test.c:1172:6: branch_false: following ‘false’ branch... glibc-2.43-8-g48f5a05a7a/support/resolv_test.c:1178:3: branch_false: ...to here glibc-2.43-8-g48f5a05a7a/support/resolv_test.c:1135:8: danger: ‘xmalloc(192)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0) # 1133| }; # 1134| # 1135|-> if (!config.disable_redirect) # 1136| resolv_test_init (); # 1137| Error: GCC_ANALYZER_WARNING (CWE-401): [#def29] glibc-2.43-8-g48f5a05a7a/support/resolv_test.c:1135:8: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(288)’ glibc-2.43-8-g48f5a05a7a/support/resolv_test.c:1169:6: branch_false: following ‘false’ branch... glibc-2.43-8-g48f5a05a7a/support/resolv_test.c:1172:6: branch_false: ...to here glibc-2.43-8-g48f5a05a7a/support/resolv_test.c:1172:6: branch_false: following ‘false’ branch... glibc-2.43-8-g48f5a05a7a/support/resolv_test.c:1178:3: branch_false: ...to here glibc-2.43-8-g48f5a05a7a/support/resolv_test.c:1135:8: danger: ‘xmalloc(288)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0) # 1133| }; # 1134| # 1135|-> if (!config.disable_redirect) # 1136| resolv_test_init (); # 1137| Error: GCC_ANALYZER_WARNING (CWE-457): [#def30] glibc-2.43-8-g48f5a05a7a/support/timespec.c:88:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘norm.<Uc1e0>’ glibc-2.43-8-g48f5a05a7a/support/timespec.c:84:6: branch_true: following ‘true’ branch... glibc-2.43-8-g48f5a05a7a/support/timespec.c:86:20: branch_true: ...to here glibc-2.43-8-g48f5a05a7a/support/timespec.c:88:13: danger: use of uninitialized value ‘norm.<Uc1e0>’ here # 86| norm.tv_sec = (time.tv_nsec < 0) ? TYPE_MINIMUM (time_t): TYPE_MAXIMUM (time_t); # 87| norm.tv_nsec = (time.tv_nsec < 0) ? -1 * (TIMESPEC_HZ - 1) : TIMESPEC_HZ - 1; # 88|-> return norm; # 89| } # 90| norm.tv_nsec = time.tv_nsec % TIMESPEC_HZ; Error: GCC_ANALYZER_WARNING (CWE-457): [#def31] glibc-2.43-8-g48f5a05a7a/support/timespec.c:91:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘norm.<Uc1e0>’ glibc-2.43-8-g48f5a05a7a/support/timespec.c:84:6: branch_false: following ‘false’ branch... glibc-2.43-8-g48f5a05a7a/support/timespec.c:90:18: branch_false: ...to here glibc-2.43-8-g48f5a05a7a/support/timespec.c:91:10: danger: use of uninitialized value ‘norm.<Uc1e0>’ here # 89| } # 90| norm.tv_nsec = time.tv_nsec % TIMESPEC_HZ; # 91|-> return norm; # 92| } # 93| Error: CPPCHECK_WARNING (CWE-476): [#def32] glibc-2.43-8-g48f5a05a7a/sysdeps/generic/framestate.c:37: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 35| struct unwind_link *unwind_link = __libc_unwind_link_get (); # 36| if (unwind_link != NULL) # 37|-> return UNWIND_LINK_PTR (unwind_link, __frame_state_for) (pc, frame_state); # 38| else # 39| { Error: CPPCHECK_WARNING (CWE-476): [#def33] glibc-2.43-8-g48f5a05a7a/sysdeps/generic/unwind-resume.c:37: error[nullPointer]: Null pointer dereference: (struct tcbhead_t __seg_fs*)0 # 35| _Unwind_Resume (struct _Unwind_Exception *exc) # 36| { # 37|-> UNWIND_LINK_PTR (link (), _Unwind_Resume) (exc); # 38| } # 39| #endif Error: CPPCHECK_WARNING (CWE-476): [#def34] glibc-2.43-8-g48f5a05a7a/sysdeps/generic/unwind-resume.c:37: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 35| _Unwind_Resume (struct _Unwind_Exception *exc) # 36| { # 37|-> UNWIND_LINK_PTR (link (), _Unwind_Resume) (exc); # 38| } # 39| #endif Error: CPPCHECK_WARNING (CWE-476): [#def35] glibc-2.43-8-g48f5a05a7a/sysdeps/generic/unwind-resume.c:44: error[nullPointer]: Null pointer dereference: (struct tcbhead_t __seg_fs*)0 # 42| __gcc_personality_v0 PERSONALITY_PROTO # 43| { # 44|-> return UNWIND_LINK_PTR (link (), personality) PERSONALITY_ARGS; # 45| } # 46| Error: CPPCHECK_WARNING (CWE-476): [#def36] glibc-2.43-8-g48f5a05a7a/sysdeps/generic/unwind-resume.c:44: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 42| __gcc_personality_v0 PERSONALITY_PROTO # 43| { # 44|-> return UNWIND_LINK_PTR (link (), personality) PERSONALITY_ARGS; # 45| } # 46| Error: CPPCHECK_WARNING (CWE-476): [#def37] glibc-2.43-8-g48f5a05a7a/sysdeps/generic/unwind-resume.c:51: error[nullPointer]: Null pointer dereference: (struct tcbhead_t __seg_fs*)0 # 49| void *stop_argument) # 50| { # 51|-> return UNWIND_LINK_PTR (link (), _Unwind_ForcedUnwind) # 52| (exc, stop, stop_argument); # 53| } Error: CPPCHECK_WARNING (CWE-476): [#def38] glibc-2.43-8-g48f5a05a7a/sysdeps/generic/unwind-resume.c:51: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 49| void *stop_argument) # 50| { # 51|-> return UNWIND_LINK_PTR (link (), _Unwind_ForcedUnwind) # 52| (exc, stop, stop_argument); # 53| } Error: CPPCHECK_WARNING (CWE-476): [#def39] glibc-2.43-8-g48f5a05a7a/sysdeps/generic/unwind-resume.c:58: error[nullPointer]: Null pointer dereference: (struct tcbhead_t __seg_fs*)0 # 56| _Unwind_GetCFA (struct _Unwind_Context *context) # 57| { # 58|-> return UNWIND_LINK_PTR (link (), _Unwind_GetCFA) (context); # 59| } Error: CPPCHECK_WARNING (CWE-476): [#def40] glibc-2.43-8-g48f5a05a7a/sysdeps/generic/unwind-resume.c:58: error[nullPointer]: Null pointer dereference: (tcbhead_t __seg_gs*)0 # 56| _Unwind_GetCFA (struct _Unwind_Context *context) # 57| { # 58|-> return UNWIND_LINK_PTR (link (), _Unwind_GetCFA) (context); # 59| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def41] glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:242:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘address’ glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:291:1: enter_function: entry to ‘__check_pf’ glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:315:10: branch_true: following ‘true’ branch... glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:318:11: call_function: inlined call to ‘memset’ from ‘__check_pf’ glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:323:14: branch_true: following ‘true’ branch... glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:324:18: branch_true: ...to here glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:323:15: branch_true: following ‘true’ branch... glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:326:38: branch_true: ...to here glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:326:20: call_function: calling ‘make_request’ from ‘__check_pf’ # 240| info->addr[1] = 0; # 241| info->addr[2] = htonl (0xffff); # 242|-> info->addr[3] = *(const in_addr_t *) address; # 243| } # 244| else Error: GCC_ANALYZER_WARNING (CWE-416): [#def42] glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:242:35: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘address’ glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:291:1: enter_function: entry to ‘__check_pf’ glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:315:10: branch_true: following ‘true’ branch... glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:318:11: call_function: inlined call to ‘memset’ from ‘__check_pf’ glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:323:14: branch_true: following ‘true’ branch... glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:324:18: branch_true: ...to here glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:323:15: branch_true: following ‘true’ branch... glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:326:38: branch_true: ...to here glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/check_pf.c:326:20: call_function: calling ‘make_request’ from ‘__check_pf’ # 240| info->addr[1] = 0; # 241| info->addr[2] = htonl (0xffff); # 242|-> info->addr[3] = *(const in_addr_t *) address; # 243| } # 244| else Error: GCC_ANALYZER_WARNING (CWE-457): [#def43] glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/clock_nanosleep.c:67:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ts64.<U7640>’ glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/clock_nanosleep.c:34:6: branch_false: following ‘false’ branch (when ‘clock_id != 3’)... glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/clock_nanosleep.c:36:6: branch_false: ...to here glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/clock_nanosleep.c:51:6: branch_false: following ‘false’ branch... glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/clock_nanosleep.c:51:6: branch_false: ...to here glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/clock_nanosleep.c:64:10: branch_true: following ‘true’ branch... glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/clock_nanosleep.c:66:15: branch_true: ...to here glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/clock_nanosleep.c:66:14: branch_true: following ‘true’ branch... glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/clock_nanosleep.c:67:20: danger: use of uninitialized value ‘ts64.<U7640>’ here # 65| { # 66| if (r == -EINTR && rem != NULL && (flags & TIMER_ABSTIME) == 0) # 67|-> *rem = valid_timespec_to_timespec64 (tr32); # 68| } # 69| } Error: GCC_ANALYZER_WARNING (CWE-457): [#def44] glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/clock_nanosleep.c:84:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ts64.<U7640>’ # 82| struct __timespec64 treq64, trem64; # 83| # 84|-> treq64 = valid_timespec_to_timespec64 (*req); # 85| r = __clock_nanosleep_time64 (clock_id, flags, &treq64, # 86| rem != NULL ? &trem64 : NULL); Error: GCC_ANALYZER_WARNING (CWE-457): [#def45] glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/nanosleep.c:41:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ts64.<U7640>’ # 39| struct __timespec64 treq64, trem64; # 40| # 41|-> treq64 = valid_timespec_to_timespec64 (*req); # 42| int ret = __nanosleep64 (&treq64, rem != NULL ? &trem64 : NULL); # 43| Error: COMPILER_WARNING: [#def46] glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/include/sys/mount.h:22: included_from: Included from here. glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/umount.c:18: included_from: Included from here. glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/sys/mount.h:268:9: warning: ‘OPEN_TREE_CLONE’ redefined # 268 | #define OPEN_TREE_CLONE 1 /* Clone the target tree and attach the clone */ # | ^~~~~~~~~~~~~~~ glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/sys/mount.h:32: included_from: Included from here. /usr/include/linux/mount.h:64:9: note: this is the location of the previous definition # 64 | #define OPEN_TREE_CLONE (1 << 0) /* Clone the target tree and attach the clone */ # | ^~~~~~~~~~~~~~~ # 266| # 267| /* open_tree flags. */ # 268|-> #define OPEN_TREE_CLONE 1 /* Clone the target tree and attach the clone */ # 269| #define OPEN_TREE_CLOEXEC O_CLOEXEC /* Close the file on execve() */ # 270| Error: COMPILER_WARNING: [#def47] glibc-2.43-8-g48f5a05a7a/sysdeps/unix/sysv/linux/sys/mount.h:268:9: warning[warning]: ‘OPEN_TREE_CLONE’ redefined # 266| # 267| /* open_tree flags. */ # 268|-> #define OPEN_TREE_CLONE 1 /* Clone the target tree and attach the clone */ # 269| #define OPEN_TREE_CLOEXEC O_CLOEXEC /* Close the file on execve() */ # 270| Error: CPPCHECK_WARNING (CWE-457): [#def48] glibc-2.43-8-g48f5a05a7a/timezone/zdump.c:541: error[uninitvar]: Uninitialized variable: hi # 539| loend + 1 != hiend && !*hiend)) { # 540| cutloyear = lo; # 541|-> cuthiyear = hi; # 542| } else { # 543| fprintf(stderr, _("%s: wild -c argument %s\n"), Error: CPPCHECK_WARNING (CWE-369): [#def49] glibc-2.43-8-g48f5a05a7a/timezone/zic.c:1270: error[zerodiv]: Division by zero. # 1268| uint_fast64_t rand_max = RAND_MAX, # 1269| nrand = rand_max < UINT_FAST64_MAX ? rand_max + 1 : 0, # 1270|-> rmod = INT_MAX < UINT_FAST64_MAX ? 0 : UINT_FAST64_MAX / nrand + 1, # 1271| r = 0, rmax = 0; # 1272| Error: CPPCHECK_WARNING (CWE-457): [#def50] glibc-2.43-8-g48f5a05a7a/timezone/zic.c:2001: warning[uninitvar]: Uninitialized variables: z.z_isdst, z.z_save, z.z_rules, z.z_nrules # 1999| } # 2000| zones = growalloc(zones, sizeof *zones, nzones, &nzones_alloc); # 2001|-> zones[nzones++] = z; # 2002| /* # 2003| ** If there was an UNTIL field on this line,
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-232.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | glibc-2.43.9000-25.fc45 |
| diffbase-store-results-to | /tmp/tmp9p3ny31j/glibc-2.43.9000-25.fc45.tar.xz |
| diffbase-time-created | 2026-08-03 16:05:13 |
| diffbase-time-finished | 2026-08-03 17:48:47 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp9p3ny31j/glibc-2.43.9000-25.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp9p3ny31j/glibc-2.43.9000-25.fc45.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.HEAD-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-232.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | glibc-2.43-2.fc44 |
| store-results-to | /tmp/tmp64mnw3q0/glibc-2.43-2.fc44.tar.xz |
| time-created | 2026-08-03 14:23:51 |
| time-finished | 2026-08-03 16:03:55 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp64mnw3q0/glibc-2.43-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp64mnw3q0/glibc-2.43-2.fc44.src.rpm' |
| tool-version | csmock-3.8.7.HEAD-1.el9 |