Task #51978 - added.err

back to task #51978
download
Error: GCC_ANALYZER_WARNING (CWE-465):
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3848:22: warning[-Wanalyzer-deref-before-check]: check of ‘*((struct bfd_symbol **)psymsec)’ for NULL after already dereferencing it
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3498:1: enter_function: entry to ‘coff_write_object_contents’
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3603:6: branch_false: following ‘false’ branch...
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3607:8: branch_false: ...to here
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3608:8: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)...
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3623:7: branch_true: ...to here
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3767:10: branch_true: following ‘true’ branch (when the strings are equal)...
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3782:11: branch_true: ...to here
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3783:11: branch_false: following ‘false’ branch...
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3814:31: branch_false: ...to here
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3816:14: branch_false: following ‘false’ branch...
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3817:18: branch_false: ...to here
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3816:15: branch_false: following ‘false’ branch...
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3825:12: branch_false: ...to here
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3825:10: branch_true: following ‘true’ branch...
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3833:19: call_function: inlined call to ‘bfd_get_symcount’ from ‘coff_write_object_contents’
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch...
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3836:19: branch_true: ...to here
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3836:18: branch_true: following ‘true’ branch...
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3836:18: branch_true: ...to here
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch...
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3836:19: branch_true: ...to here
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3841:18: branch_true: following ‘true’ branch (when ‘psymsec’ is NULL)...
<unknown>: branch_true: ...to here
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch...
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3836:19: branch_true: ...to here
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3836:18: branch_false: following ‘false’ branch...
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3841:18: branch_false: ...to here
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3841:18: branch_false: following ‘false’ branch (when ‘psymsec’ is non-NULL)...
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3845:19: branch_false: ...to here
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3845:18: branch_true: following ‘true’ branch (when the strings are equal)...
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3847:26: call_function: inlined call to ‘bfd_asymbol_bfd’ from ‘coff_write_object_contents’
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3847:26: branch_true: following ‘true’ branch...
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3848:22: branch_true: ...to here
gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3848:22: danger: pointer ‘*((struct bfd_symbol **)psymsec)’ is checked for NULL here but it was already dereferenced at [(28)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/27)
# 3846|   		{
# 3847|   		  csym = coff_symbol_from (*psym);
# 3848|-> 		  if (csym == NULL
# 3849|   		      || csym->native == NULL
# 3850|   		      || ! csym->native->is_sym