Task #112236 - added.err
back to task #112236download
Error: GCC_ANALYZER_WARNING (CWE-401):
glibc-2.43.9000-253-gd4c66edeef/io/ftw-common.c:215:1: warning[-Wanalyzer-malloc-leak]: leak of ‘newp’
glibc-2.43.9000-253-gd4c66edeef/io/ftw-common.c:921:1: enter_function: entry to ‘__ftw64’
glibc-2.43.9000-253-gd4c66edeef/io/ftw-common.c:923:10: call_function: calling ‘ftw_startup’ from ‘__ftw64’
# 213| newp->ino = st->st_ino;
# 214| return __tsearch (newp, &data->known_objects, object_compare) ? 0 : -1;
# 215|-> }
# 216|
# 217|
Error: GCC_ANALYZER_WARNING (CWE-465):
glibc-2.43.9000-253-gd4c66edeef/libio/fileops.c:334:6: warning[-Wanalyzer-deref-before-check]: check of ‘fp’ for NULL after already dereferencing it
glibc-2.43.9000-253-gd4c66edeef/libio/fileops.c:261:1: enter_function: entry to ‘_IO_new_file_fopen’
glibc-2.43.9000-253-gd4c66edeef/libio/fileops.c:272:6: branch_false: following ‘false’ branch...
glibc-2.43.9000-253-gd4c66edeef/libio/fileops.c:274:11: branch_false: ...to here
glibc-2.43.9000-253-gd4c66edeef/libio/fileops.c:295:15: branch_true: following ‘true’ branch (when ‘i != 7’)...
glibc-2.43.9000-253-gd4c66edeef/libio/fileops.c:297:7: branch_true: ...to here
glibc-2.43.9000-253-gd4c66edeef/libio/fileops.c:331:12: call_function: calling ‘_IO_file_open’ from ‘_IO_new_file_fopen’
glibc-2.43.9000-253-gd4c66edeef/libio/fileops.c:331:12: return_function: returning to ‘_IO_new_file_fopen’ from ‘_IO_file_open’
glibc-2.43.9000-253-gd4c66edeef/libio/fileops.c:334:6: danger: pointer ‘fp’ is checked for NULL here but it was already dereferenced at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
# 332| is32not64);
# 333|
# 334|-> if (result != NULL)
# 335| {
# 336| /* Test whether the mode string specifies the conversion. */
Error: GCC_ANALYZER_WARNING (CWE-401):
glibc-2.43.9000-253-gd4c66edeef/support/resolv_test.c:1138:8: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(196)’
glibc-2.43.9000-253-gd4c66edeef/support/resolv_test.c:1172:6: branch_false: following ‘false’ branch...
glibc-2.43.9000-253-gd4c66edeef/support/resolv_test.c:1175:6: branch_false: ...to here
glibc-2.43.9000-253-gd4c66edeef/support/resolv_test.c:1175:6: branch_false: following ‘false’ branch...
glibc-2.43.9000-253-gd4c66edeef/support/resolv_test.c:1181:3: branch_false: ...to here
glibc-2.43.9000-253-gd4c66edeef/support/resolv_test.c:1138:8: danger: ‘xmalloc(196)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 1136| };
# 1137|
# 1138|-> if (!config.disable_redirect)
# 1139| resolv_test_init ();
# 1140|
Error: GCC_ANALYZER_WARNING (CWE-401):
glibc-2.43.9000-253-gd4c66edeef/support/resolv_test.c:1138:8: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(296)’
glibc-2.43.9000-253-gd4c66edeef/support/resolv_test.c:1172:6: branch_false: following ‘false’ branch...
glibc-2.43.9000-253-gd4c66edeef/support/resolv_test.c:1175:6: branch_false: ...to here
glibc-2.43.9000-253-gd4c66edeef/support/resolv_test.c:1175:6: branch_false: following ‘false’ branch...
glibc-2.43.9000-253-gd4c66edeef/support/resolv_test.c:1181:3: branch_false: ...to here
glibc-2.43.9000-253-gd4c66edeef/support/resolv_test.c:1138:8: danger: ‘xmalloc(296)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 1136| };
# 1137|
# 1138|-> if (!config.disable_redirect)
# 1139| resolv_test_init ();
# 1140|
Error: GCC_ANALYZER_WARNING (CWE-457):
glibc-2.43.9000-253-gd4c66edeef/support/timespec.c:88:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘norm.<Uf1e0>’
glibc-2.43.9000-253-gd4c66edeef/support/timespec.c:84:6: branch_true: following ‘true’ branch...
glibc-2.43.9000-253-gd4c66edeef/support/timespec.c:86:20: branch_true: ...to here
glibc-2.43.9000-253-gd4c66edeef/support/timespec.c:88:13: danger: use of uninitialized value ‘norm.<Uf1e0>’ 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):
glibc-2.43.9000-253-gd4c66edeef/support/timespec.c:91:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘norm.<Uf1e0>’
glibc-2.43.9000-253-gd4c66edeef/support/timespec.c:84:6: branch_false: following ‘false’ branch...
glibc-2.43.9000-253-gd4c66edeef/support/timespec.c:90:18: branch_false: ...to here
glibc-2.43.9000-253-gd4c66edeef/support/timespec.c:91:10: danger: use of uninitialized value ‘norm.<Uf1e0>’ here
# 89| }
# 90| norm.tv_nsec = time.tv_nsec % TIMESPEC_HZ;
# 91|-> return norm;
# 92| }
# 93|