bash-5.3.9-3.fc44
List of Findings
Error: SHELLCHECK_WARNING (CWE-480): [#def1]
/usr/bin/bashbug-64:57:9: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-480): [#def2]
/usr/bin/bashbug-64:99:6: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-456): [#def3]
/usr/bin/bashbug-64:146:3: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
Error: SHELLCHECK_WARNING (CWE-456): [#def4]
/usr/bin/bashbug-64:149:3: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
Error: SHELLCHECK_WARNING (CWE-398): [#def5]
/usr/bin/bashbug-64:158:40: warning[SC2172]: Trapping signals by number is not well defined. Prefer signal names.
Error: SHELLCHECK_WARNING (CWE-252): [#def6]
/usr/bin/cd:2:1: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: COMPILER_WARNING (CWE-563): [#def7]
bash-5.3/array.c:66:14: warning[-Wunused-variable]: ‘spacesep’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def8]
bash-5.3/arrayfunc.c: scope_hint: In function ‘assign_array_element_internal’
bash-5.3/arrayfunc.c:388:9: warning[-Wunused-variable]: unused variable ‘newval’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def9]
bash-5.3/arrayfunc.c:652:41: warning[-Wanalyzer-null-argument]: use of NULL ‘v’ where non-null expected
bash-5.3/arrayfunc.c:636:24: branch_true: following ‘true’ branch (when ‘list’ is non-NULL)...
bash-5.3/arrayfunc.c:638:11: branch_true: ...to here
bash-5.3/arrayfunc.c:652:14: branch_true: following ‘true’ branch...
bash-5.3/arrayfunc.c:652:41: branch_true: ...to here
bash-5.3/arrayfunc.c:652:41: danger: argument 1 (‘v’) NULL where non-null expected
Error: COMPILER_WARNING: [#def10]
bash-5.3/arrayfunc.c: scope_hint: In function ‘array_value_internal’
bash-5.3/arrayfunc.c:1485:21: warning[-Wunused-but-set-variable=]: variable ‘subtype’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-457): [#def11]
bash-5.3/arrayfunc.c:1623:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ind’
bash-5.3/arrayfunc.c:1483:1: enter_function: entry to ‘array_value_internal’
bash-5.3/arrayfunc.c:1492:9: call_function: calling ‘array_variable_part’ from ‘array_value_internal’
bash-5.3/arrayfunc.c:1492:9: return_function: returning to ‘array_value_internal’ from ‘array_variable_part’
bash-5.3/arrayfunc.c:1501:6: branch_false: following ‘false’ branch...
bash-5.3/arrayfunc.c:1504:13: branch_false: ...to here
bash-5.3/arrayfunc.c:1570:10: branch_false: following ‘false’ branch (when ‘estatep’ is NULL)...
bash-5.3/arrayfunc.c:1572:10: branch_false: ...to here
bash-5.3/arrayfunc.c:1572:10: branch_false: following ‘false’ branch...
bash-5.3/arrayfunc.c:1605:14: branch_false: following ‘false’ branch...
bash-5.3/arrayfunc.c:1612:10: branch_false: following ‘false’ branch...
bash-5.3/arrayfunc.c:1617:15: branch_false: following ‘false’ branch...
bash-5.3/arrayfunc.c:1622:11: branch_false: ...to here
bash-5.3/arrayfunc.c:1622:10: branch_true: following ‘true’ branch...
bash-5.3/arrayfunc.c:1623:18: danger: use of uninitialized value ‘ind’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def12]
bash-5.3/arrayfunc.c:1635:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ind’
bash-5.3/arrayfunc.c:1483:1: enter_function: entry to ‘array_value_internal’
bash-5.3/arrayfunc.c:1492:9: call_function: calling ‘array_variable_part’ from ‘array_value_internal’
bash-5.3/arrayfunc.c:1492:9: return_function: returning to ‘array_value_internal’ from ‘array_variable_part’
bash-5.3/arrayfunc.c:1501:6: branch_false: following ‘false’ branch...
bash-5.3/arrayfunc.c:1504:13: branch_false: ...to here
bash-5.3/arrayfunc.c:1570:10: branch_false: following ‘false’ branch (when ‘estatep’ is NULL)...
bash-5.3/arrayfunc.c:1572:10: branch_false: ...to here
bash-5.3/arrayfunc.c:1572:10: branch_false: following ‘false’ branch...
bash-5.3/arrayfunc.c:1605:14: branch_false: following ‘false’ branch...
bash-5.3/arrayfunc.c:1612:10: branch_false: following ‘false’ branch...
bash-5.3/arrayfunc.c:1617:15: branch_false: following ‘false’ branch...
bash-5.3/arrayfunc.c:1622:11: branch_false: ...to here
bash-5.3/arrayfunc.c:1622:10: branch_true: following ‘true’ branch...
bash-5.3/arrayfunc.c:1622:33: branch_true: ...to here
bash-5.3/arrayfunc.c:1622:11: branch_false: following ‘false’ branch...
bash-5.3/arrayfunc.c:1624:16: branch_false: ...to here
bash-5.3/arrayfunc.c:1624:15: branch_false: following ‘false’ branch...
bash-5.3/arrayfunc.c:1635:18: branch_false: ...to here
bash-5.3/arrayfunc.c:1635:18: danger: use of uninitialized value ‘ind’ here
Error: COMPILER_WARNING (CWE-457): [#def13]
bash-5.3/arrayfunc.c: scope_hint: In function ‘array_value_internal’
bash-5.3/arrayfunc.c:1635:18: warning[-Wmaybe-uninitialized]: ‘ind’ may be used uninitialized
bash-5.3/arrayfunc.c:1486:14: note: ‘ind’ was declared here
Error: COMPILER_WARNING (CWE-563): [#def14]
bash-5.3/arrayfunc.c: scope_hint: In function ‘array_keys’
bash-5.3/arrayfunc.c:1672:22: warning[-Wunused-variable]: unused variable ‘temp’
Error: COMPILER_WARNING (CWE-457): [#def15]
bash-5.3/assoc.h:31:37: warning[-Wmaybe-uninitialized]: ‘h’ may be used uninitialized
bash-5.3/subst.c: scope_hint: In function ‘parameter_brace_substring’
bash-5.3/subst.c:8403:14: note: ‘h’ was declared here
Error: COMPILER_WARNING (CWE-569): [#def16]
bash-5.3/bashhist.c: scope_hint: In function ‘hc_erasedups’
bash-5.3/bashhist.c:732:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-704): [#def17]
bash-5.3/bashhist.c: scope_hint: In function ‘bash_syslog_history’
bash-5.3/bashhist.c:848:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def18]
bash-5.3/bashhist.c:848:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-1164): [#def19]
bash-5.3/bashline.c: scope_hint: At top level
bash-5.3/bashline.c:215:12: warning[-Wunused-function]: ‘set_saved_history’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-569): [#def20]
bash-5.3/bashline.c: scope_hint: In function ‘snarf_hosts_from_file’
bash-5.3/bashline.c:809:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: GCC_ANALYZER_WARNING (CWE-674): [#def21]
bash-5.3/bashline.c:1238:12: warning[-Wanalyzer-infinite-recursion]: infinite recursion
bash-5.3/bashline.c:1233:1: enter_function: entry to ‘bash_kill_shellword’
bash-5.3/bashline.c:1238:12: call_function: calling ‘bash_backward_kill_shellword’ from ‘bash_kill_shellword’
Error: GCC_ANALYZER_WARNING (CWE-674): [#def22]
bash-5.3/bashline.c:1259:12: warning[-Wanalyzer-infinite-recursion]: infinite recursion
bash-5.3/bashline.c:1254:1: enter_function: entry to ‘bash_backward_kill_shellword’
bash-5.3/bashline.c:1259:12: call_function: calling ‘bash_kill_shellword’ from ‘bash_backward_kill_shellword’
Error: CPPCHECK_WARNING (CWE-457): [#def23]
bash-5.3/bashline.c:1705: error[uninitvar]: Uninitialized variable: e1
Error: GCC_ANALYZER_WARNING (CWE-457): [#def24]
bash-5.3/bashline.c:1705:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘e1’
bash-5.3/bashline.c:1683:6: branch_true: following ‘true’ branch (when ‘matches’ is NULL)...
bash-5.3/bashline.c:1683:7: branch_true: ...to here
bash-5.3/bashline.c:1683:7: branch_true: following ‘true’ branch...
bash-5.3/bashline.c:1691:11: branch_true: ...to here
bash-5.3/bashline.c:1703:14: branch_true: following ‘true’ branch...
bash-5.3/bashline.c:1705:20: branch_true: ...to here
bash-5.3/bashline.c:1705:20: danger: use of uninitialized value ‘e1’ here
Error: COMPILER_WARNING (CWE-569): [#def25]
bash-5.3/bashline.c: scope_hint: In function ‘attempt_shell_completion’
bash-5.3/bashline.c:1726:14: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-457): [#def26]
bash-5.3/bashline.c: scope_hint: In function ‘attempt_shell_completion’
bash-5.3/bashline.c:1743:28: warning[-Wmaybe-uninitialized]: ‘e1’ may be used uninitialized
bash-5.3/bashline.c:1687:21: note: ‘e1’ was declared here
Error: COMPILER_WARNING (CWE-569): [#def27]
bash-5.3/bashline.c: scope_hint: In function ‘command_word_completion_function’
bash-5.3/bashline.c:2262:14: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def28]
bash-5.3/bashline.c: scope_hint: In function ‘bash_servicename_completion_function’
bash-5.3/bashline.c:2688:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def29]
bash-5.3/bashline.c: scope_hint: In function ‘bash_groupname_completion_function’
bash-5.3/bashline.c:2742:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-563): [#def30]
bash-5.3/bashline.c:2830:9: warning[-Wunused-variable]: unused variable ‘s’
Error: COMPILER_WARNING (CWE-563): [#def31]
bash-5.3/bashline.c: scope_hint: In function ‘set_up_new_line’
bash-5.3/bashline.c:2830:13: warning[-Wunused-variable]: unused variable ‘t’
Error: COMPILER_WARNING (CWE-457): [#def32]
bash-5.3/bashline.c: scope_hint: In function ‘_ignore_completion_names’
bash-5.3/bashline.c:3127:17: warning[-Wmaybe-uninitialized]: ‘oldnames’ may be used uninitialized
bash-5.3/bashline.c:3087:10: note: ‘oldnames’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def33]
bash-5.3/bashline.c:3143:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘oldnames’
bash-5.3/bashline.c:3198:1: enter_function: entry to ‘filename_completion_ignore’
bash-5.3/bashline.c:3207:6: branch_false: following ‘false’ branch...
bash-5.3/bashline.c:3210:3: branch_false: ...to here
bash-5.3/bashline.c:3210:3: call_function: calling ‘_ignore_completion_names’ from ‘filename_completion_ignore’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def34]
bash-5.3/bashline.c:3364:7: warning[-Wanalyzer-null-argument]: use of NULL ‘dh2’ where non-null expected
bash-5.3/bashline.c:3288:1: enter_function: entry to ‘restore_tilde’
bash-5.3/bashline.c:3297:9: branch_false: following ‘false’ branch (when ‘directory_part’ is NULL)...
bash-5.3/bashline.c:3297:3: branch_false: ...to here
bash-5.3/bashline.c:3298:3: call_function: calling ‘bash_directory_expansion’ from ‘restore_tilde’
Error: COMPILER_WARNING (CWE-569): [#def35]
bash-5.3/bashline.c: scope_hint: In function ‘bash_filename_stat_hook’
bash-5.3/bashline.c:3525:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def36]
bash-5.3/bashline.c:3527:12: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-563): [#def37]
bash-5.3/bashline.c: scope_hint: In function ‘bash_directory_completion_hook’
bash-5.3/bashline.c:3679:18: warning[-Wunused-variable]: unused variable ‘l1’
Error: COMPILER_WARNING (CWE-569): [#def38]
bash-5.3/bashline.c: scope_hint: In function ‘bash_check_expchar’
bash-5.3/bashline.c:4303:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def39]
bash-5.3/bashline.c: scope_hint: In function ‘set_filename_quote_chars’
bash-5.3/bashline.c:4362:23: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-1164): [#def40]
bash-5.3/bashline.c:4532:1: warning[-Wunused-function]: ‘putx’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def41]
bash-5.3/bashline.c:4762:1: warning[-Wunused-function]: ‘get_cmd_xmap_from_edit_mode’ defined but not used
Error: COMPILER_WARNING (CWE-569): [#def42]
bash-5.3/bashline.c: scope_hint: In function ‘isolate_sequence’
bash-5.3/bashline.c:4824:19: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-457): [#def43]
bash-5.3/braces.c:388:6: warning[-Wmaybe-uninitialized]: ‘tr’ may be used uninitialized
bash-5.3/braces.c: scope_hint: In function ‘brace_expand’
bash-5.3/braces.c:523:16: note: ‘tr’ was declared here
Error: COMPILER_WARNING (CWE-569): [#def44]
bash-5.3/braces.c: scope_hint: In function ‘mkseq’
bash-5.3/braces.c:445:15: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
bash-5.3/braces.c:452:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘result’
bash-5.3/braces.c:392:6: branch_false: following ‘false’ branch...
bash-5.3/braces.c:397:7: branch_false: ...to here
bash-5.3/braces.c:397:6: branch_false: following ‘false’ branch...
bash-5.3/braces.c:400:12: branch_false: ...to here
bash-5.3/braces.c:401:6: branch_false: following ‘false’ branch...
bash-5.3/braces.c:401:6: branch_false: ...to here
bash-5.3/braces.c:413:10: branch_true: following ‘true’ branch...
bash-5.3/braces.c:415:17: branch_true: ...to here
bash-5.3/braces.c:421:10: branch_true: following ‘true’ branch (when ‘type == 1’)...
bash-5.3/braces.c:422:13: branch_true: ...to here
bash-5.3/braces.c:452:7: danger: dereference of NULL ‘result + i * 8’
Error: COMPILER_WARNING: [#def46]
bash-5.3/braces.c:643:9: warning[-Wunused-but-set-variable=]: variable ‘t’ set but not used
Error: COMPILER_WARNING (CWE-569): [#def47]
bash-5.3/braces.c: scope_hint: In function ‘brace_gobbler’
bash-5.3/braces.c:656:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-1164): [#def48]
bash-5.3/braces.c:687:1: warning[-Wunused-label]: label ‘funsub’ defined but not used
Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
bash-5.3/braces.c:862:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘result’
bash-5.3/braces.c:841:6: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
bash-5.3/braces.c:841:6: branch_false: ...to here
bash-5.3/braces.c:845:15: branch_true: following ‘true’ branch...
bash-5.3/braces.c:847:34: branch_true: ...to here
bash-5.3/braces.c:849:19: branch_true: following ‘true’ branch...
bash-5.3/braces.c:852:15: branch_true: ...to here
bash-5.3/braces.c:852:14: branch_true: following ‘true’ branch...
bash-5.3/braces.c:854:21: branch_true: ...to here
bash-5.3/braces.c:862:11: danger: dereference of NULL ‘result + (long unsigned int)len * 8’
Error: COMPILER_WARNING (CWE-569): [#def50]
bash-5.3/builtins/alias.def: scope_hint: In function ‘alias_builtin’
bash-5.3/builtins/alias.def:108:13: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-563): [#def51]
bash-5.3/builtins/alias.def: scope_hint: In function ‘unalias_builtin’
bash-5.3/builtins/alias.def:175:12: warning[-Wunused-variable]: unused variable ‘alias’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
bash-5.3/builtins/break.def:80:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘list’
bash-5.3/builtins/break.def:69:6: branch_false: following ‘false’ branch...
bash-5.3/builtins/break.def:73:50: branch_false: ...to here
bash-5.3/builtins/break.def:75:6: branch_true: following ‘true’ branch...
bash-5.3/builtins/break.def:78:10: branch_true: ...to here
bash-5.3/builtins/break.def:78:10: branch_false: following ‘false’ branch (when ‘list’ is NULL)...
bash-5.3/builtins/break.def:80:36: branch_false: ...to here
bash-5.3/builtins/break.def:80:18: danger: dereference of NULL ‘list’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
bash-5.3/builtins/break.def:125:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘list’
bash-5.3/builtins/break.def:114:6: branch_false: following ‘false’ branch...
bash-5.3/builtins/break.def:118:50: branch_false: ...to here
bash-5.3/builtins/break.def:120:6: branch_true: following ‘true’ branch...
bash-5.3/builtins/break.def:123:10: branch_true: ...to here
bash-5.3/builtins/break.def:123:10: branch_false: following ‘false’ branch (when ‘list’ is NULL)...
bash-5.3/builtins/break.def:125:36: branch_false: ...to here
bash-5.3/builtins/break.def:125:18: danger: dereference of NULL ‘list’
Error: COMPILER_WARNING (CWE-1164): [#def54]
bash-5.3/builtins/cd.def: scope_hint: At top level
bash-5.3/builtins/cd.def:195:1: warning[-Wunused-function]: ‘cdxattr’ defined but not used
Error: COMPILER_WARNING (CWE-569): [#def55]
bash-5.3/builtins/cd.def: scope_hint: In function ‘cd_builtin’
bash-5.3/builtins/cd.def:357:14: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-563): [#def56]
bash-5.3/builtins/cd.def: scope_hint: In function ‘change_to_directory’
bash-5.3/builtins/cd.def:524:20: warning[-Wunused-variable]: unused variable ‘ndir’
Error: COMPILER_WARNING (CWE-563): [#def57]
bash-5.3/builtins/declare.def: scope_hint: In function ‘declare_find_variable’
bash-5.3/builtins/declare.def:153:14: warning[-Wunused-variable]: unused variable ‘var’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def58]
bash-5.3/builtins/declare.def:237:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘optchar’
bash-5.3/builtins/declare.def:224:6: branch_true: following ‘true’ branch...
bash-5.3/builtins/declare.def:228:10: branch_false: following ‘false’ branch...
bash-5.3/builtins/declare.def:230:16: branch_false: ...to here
bash-5.3/builtins/declare.def:230:15: branch_false: following ‘false’ branch...
bash-5.3/builtins/declare.def:232:16: branch_false: ...to here
bash-5.3/builtins/declare.def:232:15: branch_false: following ‘false’ branch...
bash-5.3/builtins/declare.def:234:16: branch_false: ...to here
bash-5.3/builtins/declare.def:234:15: branch_false: following ‘false’ branch...
bash-5.3/builtins/declare.def:237:7: branch_false: ...to here
bash-5.3/builtins/declare.def:237:7: danger: use of uninitialized value ‘optchar’ here
Error: COMPILER_WARNING (CWE-457): [#def59]
bash-5.3/builtins/declare.def:237:7: warning[-Wmaybe-uninitialized]: ‘optchar’ may be used uninitialized
bash-5.3/builtins/declare.def: scope_hint: In function ‘declare_internal’
bash-5.3/builtins/declare.def:226:13: note: ‘optchar’ was declared here
Error: COMPILER_WARNING: [#def60]
bash-5.3/builtins/declare.def:423:11: warning[-Wunused-but-set-variable=]: variable ‘var_exists’ set but not used
Error: COMPILER_WARNING (CWE-569): [#def61]
bash-5.3/builtins/declare.def: scope_hint: In function ‘declare_internal’
bash-5.3/builtins/declare.def:467:15: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def62]
bash-5.3/builtins/declare.def:593:11: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def63]
bash-5.3/builtins/echo.def: scope_hint: In function ‘echo_builtin’
bash-5.3/builtins/echo.def:141:14: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-457): [#def64]
bash-5.3/builtins/enable.def: scope_hint: In function ‘enable_builtin’
bash-5.3/builtins/enable.def:120:9: warning[-Wmaybe-uninitialized]: ‘filename’ may be used uninitialized
Error: COMPILER_WARNING (CWE-569): [#def65]
bash-5.3/builtins/enable.def: scope_hint: In function ‘dyn_load_builtin’
bash-5.3/builtins/enable.def:363:12: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def66]
bash-5.3/builtins/evalstring.c: scope_hint: In function ‘parse_and_execute’
bash-5.3/builtins/evalstring.c:461:20: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-1164): [#def67]
bash-5.3/builtins/evalstring.c: scope_hint: At top level
bash-5.3/builtins/evalstring.c:802:1: warning[-Wunused-function]: ‘cat_file’ defined but not used
Error: COMPILER_WARNING (CWE-704): [#def68]
bash-5.3/builtins/getopt.c: scope_hint: In function ‘sh_getopt’
bash-5.3/builtins/getopt.c:168:8: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def69]
bash-5.3/builtins/getopt.c:168:8: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-569): [#def70]
bash-5.3/builtins/getopt.c:179:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def71]
bash-5.3/builtins/help.def: scope_hint: In function ‘help_builtin’
bash-5.3/builtins/help.def:145:23: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: GCC_ANALYZER_WARNING (CWE-775): [#def72]
bash-5.3/builtins/help.def:235:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open_helpfile(*doc)’
bash-5.3/builtins/help.def:224:1: enter_function: entry to ‘show_longdoc’
bash-5.3/builtins/help.def:232:6: branch_true: following ‘true’ branch...
bash-5.3/builtins/help.def:234:12: call_function: calling ‘open_helpfile’ from ‘show_longdoc’
bash-5.3/builtins/help.def:234:12: return_function: returning to ‘show_longdoc’ from ‘open_helpfile’
bash-5.3/builtins/help.def:235:10: danger: ‘open_helpfile(*doc)’ leaks here; was opened at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def73]
bash-5.3/builtins/help.def:259:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open_helpfile(*doc)’
bash-5.3/builtins/help.def:246:1: enter_function: entry to ‘show_desc’
bash-5.3/builtins/help.def:255:13: branch_true: following ‘true’ branch...
bash-5.3/builtins/help.def:258:12: call_function: calling ‘open_helpfile’ from ‘show_desc’
bash-5.3/builtins/help.def:258:12: return_function: returning to ‘show_desc’ from ‘open_helpfile’
bash-5.3/builtins/help.def:259:10: danger: ‘open_helpfile(*doc)’ leaks here; was opened at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def74]
bash-5.3/builtins/help.def:301:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open_helpfile(*doc)’
bash-5.3/builtins/help.def:287:1: enter_function: entry to ‘show_manpage’
bash-5.3/builtins/help.def:297:13: branch_true: following ‘true’ branch...
bash-5.3/builtins/help.def:300:12: call_function: calling ‘open_helpfile’ from ‘show_manpage’
bash-5.3/builtins/help.def:300:12: return_function: returning to ‘show_manpage’ from ‘open_helpfile’
bash-5.3/builtins/help.def:301:10: danger: ‘open_helpfile(*doc)’ leaks here; was opened at [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
Error: CPPCHECK_WARNING (CWE-476): [#def75]
bash-5.3/builtins/help.def:326: warning[nullPointer]: Possible null pointer dereference: line
Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
bash-5.3/builtins/help.def:326:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘line’
bash-5.3/builtins/help.def:313:12: branch_false: following ‘false’ branch (when ‘doc’ is NULL)...
bash-5.3/builtins/help.def:313:5: branch_false: ...to here
bash-5.3/builtins/help.def:318:15: release_memory: ‘line’ is NULL
bash-5.3/builtins/help.def:318:15: branch_false: following ‘false’ branch...
bash-5.3/builtins/help.def:326:11: branch_false: ...to here
bash-5.3/builtins/help.def:326:11: release_memory: ‘line’ is NULL
bash-5.3/builtins/help.def:326:7: danger: dereference of NULL ‘line + (sizetype)j’
Error: COMPILER_WARNING (CWE-563): [#def77]
bash-5.3/builtins/help.def: scope_hint: In function ‘show_builtin_command_help’
bash-5.3/builtins/help.def:514:9: warning[-Wunused-variable]: unused variable ‘t’
Error: COMPILER_WARNING (CWE-457): [#def78]
/usr/include/features.h:540: included_from: Included from here.
/usr/include/bits/libc-header-start.h:33: included_from: Included from here.
/usr/include/wchar.h:27: included_from: Included from here.
bash-5.3/config-bot.h:137: included_from: Included from here.
bash-5.3/config.h:1384: included_from: Included from here.
bash-5.3/builtins/history.def:65: included_from: Included from here.
bash-5.3/builtins/history.def:190:59: warning[-Wmaybe-uninitialized]: ‘delete_arg’ may be used uninitialized
bash-5.3/builtins/history.def:117:20: note: ‘delete_arg’ was declared here
Error: COMPILER_WARNING (CWE-691): [#def79]
bash-5.3/builtins/history.def: scope_hint: In function ‘history_builtin’
bash-5.3/builtins/history.def:278:10: warning[-Wdangling-else]: suggest explicit braces to avoid ambiguous ‘else’
Error: CPPCHECK_WARNING (CWE-457): [#def80]
bash-5.3/builtins/let.def:107: warning[uninitvar]: Uninitialized variable: ret
Error: COMPILER_WARNING (CWE-569): [#def81]
bash-5.3/builtins/mkbuiltins.c: scope_hint: In function ‘extract_info’
bash-5.3/builtins/mkbuiltins.c:588:15: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def82]
bash-5.3/builtins/mkbuiltins.c: scope_hint: In function ‘free_defs’
bash-5.3/builtins/mkbuiltins.c:702:19: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: GCC_ANALYZER_WARNING (CWE-688): [#def83]
bash-5.3/builtins/mkbuiltins.c:1389:3: warning[-Wanalyzer-null-argument]: use of NULL ‘stream’ where non-null expected
bash-5.3/builtins/mkbuiltins.c:1292:1: enter_function: entry to ‘write_longdocs’
bash-5.3/builtins/mkbuiltins.c:1299:15: branch_true: following ‘true’ branch...
bash-5.3/builtins/mkbuiltins.c:1301:33: branch_true: ...to here
bash-5.3/builtins/mkbuiltins.c:1303:10: branch_true: following ‘true’ branch...
bash-5.3/builtins/mkbuiltins.c:1304:9: branch_true: ...to here
bash-5.3/builtins/mkbuiltins.c:1304:9: call_function: inlined call to ‘write_ifdefs’ from ‘write_longdocs’
bash-5.3/builtins/mkbuiltins.c:1307:15: branch_true: ...to here
bash-5.3/builtins/mkbuiltins.c:1307:15: branch_true: following ‘true’ branch...
bash-5.3/builtins/mkbuiltins.c:1308:7: branch_true: ...to here
bash-5.3/builtins/mkbuiltins.c:1310:10: branch_true: following ‘true’ branch...
bash-5.3/builtins/mkbuiltins.c:1312:19: branch_true: ...to here
bash-5.3/builtins/mkbuiltins.c:1313:31: call_function: calling ‘xmalloc’ from ‘write_longdocs’
bash-5.3/builtins/mkbuiltins.c:1313:31: return_function: returning to ‘write_longdocs’ from ‘xmalloc’
bash-5.3/builtins/mkbuiltins.c:1315:11: release_memory: ‘stream’ is NULL
bash-5.3/builtins/mkbuiltins.c:1316:11: call_function: calling ‘write_documentation’ from ‘write_longdocs’
bash-5.3/builtins/mkbuiltins.c:1316:11: return_function: returning to ‘write_longdocs’ from ‘write_documentation’
bash-5.3/builtins/mkbuiltins.c:1322:10: branch_true: following ‘true’ branch...
bash-5.3/builtins/mkbuiltins.c:1323:9: branch_true: ...to here
bash-5.3/builtins/mkbuiltins.c:1323:9: call_function: inlined call to ‘write_endifs’ from ‘write_longdocs’
Error: COMPILER_WARNING (CWE-563): [#def84]
bash-5.3/builtins/printf.def:246:15: warning[-Wunused-variable]: ‘narg_argv’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def85]
bash-5.3/builtins/printf.def:247:12: warning[-Wunused-variable]: ‘narg_argc’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def86]
bash-5.3/builtins/printf.def:248:12: warning[-Wunused-variable]: ‘narg_maxind’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def87]
bash-5.3/builtins/printf.def:249:12: warning[-Wunused-variable]: ‘narg_curind’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def88]
bash-5.3/builtins/printf.def: scope_hint: In function ‘printwidestr’
bash-5.3/builtins/printf.def:962:9: warning[-Wunused-variable]: unused variable ‘s’
Error: COMPILER_WARNING (CWE-563): [#def89]
bash-5.3/builtins/printf.def: scope_hint: In function ‘bexpand’
bash-5.3/builtins/printf.def:1178:13: warning[-Wunused-variable]: unused variable ‘c’
Error: COMPILER_WARNING (CWE-569): [#def90]
bash-5.3/builtins/printf.def: scope_hint: In function ‘getint’
bash-5.3/builtins/printf.def:1417:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: GCC_ANALYZER_WARNING (CWE-476): [#def91]
bash-5.3/builtins/printf.def:1539:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
bash-5.3/builtins/printf.def:1520:1: enter_function: entry to ‘asciicode’
bash-5.3/builtins/printf.def:1530:9: call_function: inlined call to ‘getarg’ from ‘asciicode’
bash-5.3/builtins/printf.def:1532:18: branch_false: ...to here
bash-5.3/builtins/printf.def:1535:6: branch_false: following ‘false’ branch (when ‘mblength > 18446744073709551613’)...
bash-5.3/builtins/printf.def:1539:25: branch_false: ...to here
bash-5.3/builtins/printf.def:1539:25: danger: dereference of NULL ‘<unknown>’
Error: COMPILER_WARNING (CWE-563): [#def92]
bash-5.3/builtins/printf.def: scope_hint: In function ‘getwidechar’
bash-5.3/builtins/printf.def:1588:10: warning[-Wunused-variable]: unused variable ‘slen’
Error: COMPILER_WARNING (CWE-563): [#def93]
bash-5.3/builtins/printf.def: scope_hint: In function ‘convwidestr’
bash-5.3/builtins/printf.def:1613:11: warning[-Wunused-variable]: unused variable ‘wc’
Error: COMPILER_WARNING (CWE-1164): [#def94]
bash-5.3/builtins/printf.def: scope_hint: At top level
bash-5.3/builtins/printf.def:1653:1: warning[-Wunused-function]: ‘convwidechar’ defined but not used
Error: GCC_ANALYZER_WARNING (CWE-479): [#def95]
bash-5.3/builtins/psize.c:53:3: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘fprintf’ from within signal handler
bash-5.3/builtins/psize.c:58:1: enter_function: entry to ‘main’
bash-5.3/builtins/psize.c:63:15: branch_true: following ‘true’ branch (when ‘i != 128’)...
bash-5.3/builtins/psize.c:64:5: branch_true: ...to here
bash-5.3/builtins/psize.c:51:1: enter_function: entry to ‘sigpipe’
bash-5.3/builtins/psize.c:53:3: danger: call to ‘fprintf’ from within signal handler
Error: GCC_ANALYZER_WARNING (CWE-479): [#def96]
bash-5.3/builtins/psize.c:54:3: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
bash-5.3/builtins/psize.c:58:1: enter_function: entry to ‘main’
bash-5.3/builtins/psize.c:63:15: branch_true: following ‘true’ branch (when ‘i != 128’)...
bash-5.3/builtins/psize.c:64:5: branch_true: ...to here
bash-5.3/builtins/psize.c:51:1: enter_function: entry to ‘sigpipe’
bash-5.3/builtins/psize.c:54:3: danger: call to ‘exit’ from within signal handler
Error: CPPCHECK_WARNING (CWE-476): [#def97]
bash-5.3/builtins/read.def:858: error[nullPointer]: Null pointer dereference
Error: CPPCHECK_WARNING (CWE-457): [#def98]
bash-5.3/builtins/set.def:562: warning[uninitvar]: Uninitialized variable: tflag
Error: COMPILER_WARNING (CWE-569): [#def99]
bash-5.3/builtins/set.def: scope_hint: In function ‘parse_shellopts’
bash-5.3/builtins/set.def:600:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def100]
bash-5.3/builtins/set.def: scope_hint: In function ‘set_builtin’
bash-5.3/builtins/set.def:725:18: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def101]
bash-5.3/builtins/set.def: scope_hint: In function ‘unset_builtin’
bash-5.3/builtins/set.def:957:15: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def102]
bash-5.3/builtins/set.def:1003:23: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def103]
bash-5.3/builtins/setattr.def: scope_hint: In function ‘set_or_show_attributes’
bash-5.3/builtins/setattr.def:323:23: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def104]
bash-5.3/builtins/setattr.def:340:23: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def105]
bash-5.3/builtins/setattr.def: scope_hint: In function ‘show_all_var_attributes’
bash-5.3/builtins/setattr.def:372:28: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def106]
bash-5.3/builtins/setattr.def:379:11: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def107]
bash-5.3/builtins/setattr.def: scope_hint: In function ‘show_local_var_attributes’
bash-5.3/builtins/setattr.def:399:28: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def108]
bash-5.3/builtins/setattr.def:406:11: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def109]
bash-5.3/builtins/shopt.def: scope_hint: In function ‘toggle_shopts’
bash-5.3/builtins/shopt.def:484:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: CPPCHECK_WARNING (CWE-457): [#def110]
bash-5.3/builtins/shopt.def:844: warning[uninitvar]: Uninitialized variable: tflag
Error: COMPILER_WARNING (CWE-569): [#def111]
bash-5.3/builtins/shopt.def: scope_hint: In function ‘parse_bashopts’
bash-5.3/builtins/shopt.def:882:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def112]
bash-5.3/builtins/type.def: scope_hint: In function ‘describe_command’
bash-5.3/builtins/type.def:353:11: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: GCC_ANALYZER_WARNING (CWE-688): [#def113]
bash-5.3/builtins/type.def:427:9: warning[-Wanalyzer-null-argument]: use of NULL ‘full_path’ where non-null expected
bash-5.3/builtins/type.def:383:10: branch_false: following ‘false’ branch (when ‘full_path’ is non-NULL)...
bash-5.3/builtins/type.def:391:11: branch_false: ...to here
bash-5.3/builtins/type.def:398:18: branch_false: following ‘false’ branch (when ‘all != 0’)...
bash-5.3/builtins/type.def:419:7: branch_false: ...to here
bash-5.3/builtins/type.def:427:9: danger: argument 1 (‘full_path’) NULL where non-null expected
Error: COMPILER_WARNING (CWE-1164): [#def114]
bash-5.3/builtins/ulimit.def:224:12: warning[-Wunused-function]: ‘set_all_limits’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def115]
bash-5.3/builtins/umask.def: scope_hint: In function ‘parse_symbolic_mode’
bash-5.3/builtins/umask.def:344:1: warning[-Wunused-label]: label ‘spec_error’ defined but not used
Error: COMPILER_WARNING: [#def116]
bash-5.3/builtins/wait.def: scope_hint: In function ‘wait_builtin’
bash-5.3/builtins/wait.def:117:14: warning[-Wunused-but-set-variable=]: variable ‘pidvar’ set but not used
Error: COMPILER_WARNING (CWE-569): [#def117]
bash-5.3/eval.c: scope_hint: In function ‘reader_loop’
bash-5.3/eval.c:156:20: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-252): [#def118]
bash-5.3/eval.c: scope_hint: In function ‘alrm_catcher’
bash-5.3/eval.c:262:3: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-563): [#def119]
bash-5.3/execute_cmd.c:291:12: warning[-Wunused-variable]: ‘connection_count’ defined but not used
Error: COMPILER_WARNING (CWE-457): [#def120]
bash-5.3/execute_cmd.c: scope_hint: In function ‘execute_command_internal’
bash-5.3/execute_cmd.c:1209:9: warning[-Wmaybe-uninitialized]: ‘ofifo_list’ may be used uninitialized
bash-5.3/execute_cmd.c:638:9: note: ‘ofifo_list’ was declared here
Error: CPPCHECK_WARNING (CWE-457): [#def121]
bash-5.3/execute_cmd.c:1498: error[uninitvar]: Uninitialized variable: save_top_level
Error: COMPILER_WARNING (CWE-1164): [#def122]
bash-5.3/execute_cmd.c: scope_hint: At top level
bash-5.3/execute_cmd.c:1894:13: warning[-Wunused-function]: ‘cpl_prune’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def123]
bash-5.3/execute_cmd.c:1945:1: warning[-Wunused-function]: ‘cpl_delete’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def124]
bash-5.3/execute_cmd.c:3316:12: warning[-Wunused-variable]: ‘LINES’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def125]
bash-5.3/execute_cmd.c: scope_hint: In function ‘select_query’
bash-5.3/execute_cmd.c:3443:23: warning[-Wunused-variable]: unused variable ‘t’
Error: COMPILER_WARNING (CWE-1164): [#def126]
bash-5.3/expr.c:1134:1: warning[-Wunused-function]: ‘alloc_lvalue’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def127]
bash-5.3/expr.c: scope_hint: At top level
bash-5.3/expr.c:1144:1: warning[-Wunused-function]: ‘free_lvalue’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def128]
bash-5.3/expr.c: scope_hint: In function ‘strlong’
bash-5.3/expr.c:1557:17: warning[-Wunused-variable]: unused variable ‘pval’
Error: COMPILER_WARNING (CWE-563): [#def129]
bash-5.3/findcmd.c: scope_hint: In function ‘_find_user_command_internal’
bash-5.3/findcmd.c:284:14: warning[-Wunused-variable]: unused variable ‘var’
Error: CPPCHECK_WARNING (CWE-476): [#def130]
bash-5.3/findcmd.c:510: warning[nullPointer]: Possible null pointer dereference: match_list
Error: COMPILER_WARNING (CWE-665): [#def131]
bash-5.3/general.c:91:1: warning[-Wmissing-braces]: missing braces around initializer
Error: COMPILER_WARNING (CWE-569): [#def132]
bash-5.3/general.c: scope_hint: In function ‘assignment’
bash-5.3/general.c:504:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-457): [#def133]
bash-5.3/shell.h:29: included_from: Included from here.
bash-5.3/subst.c:50: included_from: Included from here.
bash-5.3/subst.c: scope_hint: In function ‘parameter_brace_expand_length’
bash-5.3/general.h:169:78: warning[-Wmaybe-uninitialized]: ‘t’ may be used uninitialized
bash-5.3/subst.c:8260:9: note: ‘t’ was declared here
Error: COMPILER_WARNING (CWE-1164): [#def134]
bash-5.3/hashlib.c:164:1: warning[-Wunused-function]: ‘hash_shrink’ defined but not used
Error: COMPILER_WARNING: [#def135]
bash-5.3/jobs.c: scope_hint: In function ‘procsub_waitall’
bash-5.3/jobs.c:1149:7: warning[-Wunused-but-set-variable=]: variable ‘r’ set but not used
Error: COMPILER_WARNING: [#def136]
bash-5.3/jobs.c:1183:20: warning[-Wunused-but-set-variable=]: variable ‘oend’ set but not used
Error: COMPILER_WARNING: [#def137]
bash-5.3/jobs.c: scope_hint: In function ‘procsub_prune’
bash-5.3/jobs.c:1184:7: warning[-Wunused-but-set-variable=]: variable ‘onproc’ set but not used
Error: COMPILER_WARNING (CWE-569): [#def138]
bash-5.3/jobs.c: scope_hint: In function ‘nohup_job’
bash-5.3/jobs.c:1555:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-457): [#def139]
bash-5.3/jobs.c: scope_hint: In function ‘make_child’
bash-5.3/jobs.c:2327:7: warning[-Wmaybe-uninitialized]: ‘oterm’ may be used uninitialized
bash-5.3/jobs.c:2272:15: note: ‘oterm’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def140]
bash-5.3/jobs.c:2718:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
bash-5.3/jobs.c:3642:1: enter_function: entry to ‘notify_and_cleanup’
bash-5.3/jobs.c:3647:3: call_function: calling ‘maybe_print_job_notifications’ from ‘notify_and_cleanup’
Error: COMPILER_WARNING: [#def141]
bash-5.3/jobs.c: scope_hint: In function ‘wait_for_background_pids’
bash-5.3/jobs.c:2799:20: warning[-Wunused-but-set-variable=]: variable ‘check_async’ set but not used
Error: COMPILER_WARNING: [#def142]
bash-5.3/jobs.c: scope_hint: In function ‘sigchld_handler’
bash-5.3/jobs.c:4037:7: warning[-Wunused-but-set-variable=]: variable ‘n’ set but not used
Error: COMPILER_WARNING (CWE-1164): [#def143]
bash-5.3/jobs.c: scope_hint: At top level
bash-5.3/jobs.c:5038:1: warning[-Wunused-function]: ‘maybe_give_terminal_to’ defined but not used
Error: COMPILER_WARNING: [#def144]
bash-5.3/jobs.c: scope_hint: In function ‘unfreeze_jobs_list’
bash-5.3/jobs.c:5296:7: warning[-Wunused-but-set-variable=]: variable ‘o’ set but not used
Error: COMPILER_WARNING: [#def145]
bash-5.3/lib/glob/glob.c:193:27: warning[-Wunused-but-set-variable=]: variable ‘nullpat’ set but not used
Error: COMPILER_WARNING (CWE-569): [#def146]
bash-5.3/lib/glob/glob.c: scope_hint: In function ‘extglob_skipname’
bash-5.3/lib/glob/glob.c:226:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-457): [#def147]
bash-5.3/lib/glob/glob.c:246:12: warning[-Wmaybe-uninitialized]: ‘r’ may be used uninitialized
bash-5.3/lib/glob/glob.c: scope_hint: In function ‘skipname.isra.0’
bash-5.3/lib/glob/glob.c:193:10: note: ‘r’ was declared here
Error: COMPILER_WARNING: [#def148]
bash-5.3/lib/glob/glob.c:333:24: warning[-Wunused-but-set-variable=]: variable ‘nullpat’ set but not used
Error: COMPILER_WARNING (CWE-569): [#def149]
bash-5.3/lib/glob/glob.c: scope_hint: In function ‘wextglob_skipname’
bash-5.3/lib/glob/glob.c:363:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: CPPCHECK_WARNING (CWE-758): [#def150]
bash-5.3/lib/glob/glob.c:1388: warning[objectIndex]: The address of variable 'glob_error_return' might be accessed at non-zero index.
Error: CPPCHECK_WARNING (CWE-758): [#def151]
bash-5.3/lib/glob/glob.c:1395: warning[objectIndex]: The address of variable 'glob_error_return' might be accessed at non-zero index.
Error: CPPCHECK_WARNING (CWE-758): [#def152]
bash-5.3/lib/glob/glob.c:1396: warning[objectIndex]: The address of variable 'glob_error_return' might be accessed at non-zero index.
Error: COMPILER_WARNING (CWE-569): [#def153]
bash-5.3/lib/glob/gmisc.c:57: included_from: Included from here.
bash-5.3/lib/glob/gm_loop.c: scope_hint: In function ‘umatchlen’
bash-5.3/lib/glob/gm_loop.c:80:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def154]
bash-5.3/lib/glob/smatch.c:335: included_from: Included from here.
bash-5.3/lib/glob/sm_loop.c: scope_hint: In function ‘brackmatch’
bash-5.3/lib/glob/sm_loop.c:417:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def155]
bash-5.3/lib/glob/sm_loop.c: scope_hint: In function ‘glob_patscan’
bash-5.3/lib/glob/sm_loop.c:687:20: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def156]
bash-5.3/lib/glob/sm_loop.c: scope_hint: In function ‘extmatch’
bash-5.3/lib/glob/sm_loop.c:898:19: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def157]
bash-5.3/lib/glob/smatch.c: scope_hint: In function ‘posix_cclass_only’
bash-5.3/lib/glob/smatch.c:519:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: CPPCHECK_WARNING (CWE-456): [#def158]
bash-5.3/lib/glob/xmbsrtowcs.c:90: error[uninitdata]: Memory is allocated but not initialized: wsbuf
Error: GCC_ANALYZER_WARNING (CWE-476): [#def159]
bash-5.3/lib/glob/xmbsrtowcs.c:221:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘wsbuf’
bash-5.3/lib/glob/xmbsrtowcs.c:182:10: branch_false: following ‘false’ branch (when ‘wcslength != 0’)...
bash-5.3/lib/glob/xmbsrtowcs.c:190:10: branch_false: ...to here
bash-5.3/lib/glob/xmbsrtowcs.c:190:10: branch_false: following ‘false’ branch (when ‘wcslength != 18446744073709551615’)...
bash-5.3/lib/glob/xmbsrtowcs.c:198:24: branch_false: ...to here
bash-5.3/lib/glob/xmbsrtowcs.c:198:10: branch_false: following ‘false’ branch...
bash-5.3/lib/glob/xmbsrtowcs.c:217:11: branch_false: ...to here
bash-5.3/lib/glob/xmbsrtowcs.c:219:10: branch_true: following ‘true’ branch...
bash-5.3/lib/glob/xmbsrtowcs.c:221:11: danger: dereference of NULL ‘wsbuf + wcnum * 4’
Error: COMPILER_WARNING (CWE-1164): [#def160]
bash-5.3/lib/glob/xmbsrtowcs.c: scope_hint: In function ‘xwcsrtombs’
bash-5.3/lib/glob/xmbsrtowcs.c:448:1: warning[-Wunused-label]: label ‘handle_byte’ defined but not used
Error: COMPILER_WARNING (CWE-569): [#def161]
bash-5.3/lib/readline/bind.c: scope_hint: In function ‘_rl_skip_to_delim’
bash-5.3/lib/readline/bind.c:1566:29: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def162]
bash-5.3/lib/readline/bind.c: scope_hint: In function ‘rl_function_dumper’
bash-5.3/lib/readline/bind.c:2810:15: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-457): [#def163]
bash-5.3/lib/readline/complete.c: scope_hint: In function ‘print_filename’
bash-5.3/lib/readline/complete.c:1101:22: warning[-Wmaybe-uninitialized]: ‘printed_len’ may be used uninitialized
bash-5.3/lib/readline/complete.c:994:7: note: ‘printed_len’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def164]
bash-5.3/lib/readline/complete.c:1105:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘printed_len’
bash-5.3/lib/readline/complete.c:3057:1: enter_function: entry to ‘_rl_export_completions’
bash-5.3/lib/readline/complete.c:3061:9: call_function: calling ‘vector_len’ from ‘_rl_export_completions’
bash-5.3/lib/readline/complete.c:3061:9: return_function: returning to ‘_rl_export_completions’ from ‘vector_len’
bash-5.3/lib/readline/complete.c:3068:15: branch_true: following ‘true’ branch...
bash-5.3/lib/readline/complete.c:3070:42: branch_true: ...to here
bash-5.3/lib/readline/complete.c:3070:7: call_function: calling ‘print_filename’ from ‘_rl_export_completions’
Error: COMPILER_WARNING (CWE-569): [#def165]
bash-5.3/lib/readline/complete.c: scope_hint: In function ‘_rl_find_completion_word’
bash-5.3/lib/readline/complete.c:1209:14: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: CPPCHECK_WARNING (CWE-562): [#def166]
bash-5.3/lib/readline/complete.c:1337: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: COMPILER_WARNING (CWE-457): [#def167]
bash-5.3/lib/readline/complete.c: scope_hint: In function ‘rl_complete_internal’
bash-5.3/lib/readline/complete.c:2178:14: warning[-Wmaybe-uninitialized]: ‘tlen’ may be used uninitialized
bash-5.3/lib/readline/complete.c:2077:7: note: ‘tlen’ was declared here
Error: COMPILER_WARNING (CWE-569): [#def168]
bash-5.3/lib/readline/complete.c: scope_hint: In function ‘rl_completion_matches’
bash-5.3/lib/readline/complete.c:2330:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def169]
bash-5.3/lib/readline/complete.c: scope_hint: In function ‘rl_username_completion_function’
bash-5.3/lib/readline/complete.c:2399:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING: [#def170]
bash-5.3/lib/readline/display.c: scope_hint: In function ‘rl_redisplay’
bash-5.3/lib/readline/display.c:812:29: warning[-Wunused-but-set-variable=]: variable ‘num’ set but not used
Error: COMPILER_WARNING (CWE-457): [#def171]
bash-5.3/lib/readline/display.c: scope_hint: In function ‘rl_redisplay’
bash-5.3/lib/readline/display.c:1489:42: warning[-Wmaybe-uninitialized]: ‘physpos’ may be used uninitialized
bash-5.3/lib/readline/display.c:1474:19: note: ‘physpos’ was declared here
Error: COMPILER_WARNING (CWE-1164): [#def172]
bash-5.3/lib/readline/display.c: scope_hint: At top level
bash-5.3/lib/readline/display.c:3363:1: warning[-Wunused-function]: ‘insert_some_chars’ defined but not used
Error: COMPILER_WARNING (CWE-569): [#def173]
bash-5.3/lib/readline/histexpand.c: scope_hint: In function ‘get_history_event’
bash-5.3/lib/readline/histexpand.c:212:25: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-1164): [#def174]
bash-5.3/lib/readline/histfile.c: scope_hint: At top level
bash-5.3/lib/readline/histfile.c:142:14: warning[-Wunused-function]: ‘history_backupfile’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def175]
bash-5.3/lib/readline/histfile.c:144:12: warning[-Wunused-function]: ‘histfile_backup’ declared ‘static’ but never defined
Error: COMPILER_WARNING: [#def176]
bash-5.3/lib/readline/histfile.c: scope_hint: In function ‘history_truncate_file’
bash-5.3/lib/readline/histfile.c:543:49: warning[-Wunused-but-set-variable=]: variable ‘r’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def177]
bash-5.3/lib/readline/histfile.c:687:22: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘open(history_tempfile(history_filename(fname)), 577, 384)’
bash-5.3/lib/readline/histfile.c:551:6: branch_false: following ‘false’ branch...
bash-5.3/lib/readline/histfile.c:554:10: branch_false: ...to here
bash-5.3/lib/readline/histfile.c:560:6: branch_false: following ‘false’ branch...
bash-5.3/lib/readline/histfile.c:572:6: branch_false: following ‘false’ branch...
bash-5.3/lib/readline/histfile.c:583:23: branch_false: ...to here
bash-5.3/lib/readline/histfile.c:586:7: branch_false: following ‘false’ branch (when ‘file_size != 18446744073709551615’)...
bash-5.3/lib/readline/histfile.c:599:20: branch_false: ...to here
bash-5.3/lib/readline/histfile.c:600:6: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
bash-5.3/lib/readline/histfile.c:608:6: branch_false: ...to here
bash-5.3/lib/readline/histfile.c:673:6: branch_true: following ‘true’ branch...
bash-5.3/lib/readline/histfile.c:675:28: branch_true: ...to here
bash-5.3/lib/readline/histfile.c:681:11: branch_true: following ‘true’ branch...
bash-5.3/lib/readline/histfile.c:683:16: branch_true: ...to here
bash-5.3/lib/readline/histfile.c:684:11: release_resource: first ‘close’ here
bash-5.3/lib/readline/histfile.c:687:10: branch_true: following ‘true’ branch (when ‘rv == 0’)...
bash-5.3/lib/readline/histfile.c:687:22: branch_true: ...to here
bash-5.3/lib/readline/histfile.c:687:22: danger: second ‘close’ here; first ‘close’ was at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-122): [#def178]
bash-5.3/lib/readline/histfile.c:866:13: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
bash-5.3/lib/readline/histfile.c:785:10: branch_true: following ‘true’ branch (when ‘output’ is non-NULL)...
bash-5.3/lib/readline/histfile.c:785:19: branch_true: ...to here
bash-5.3/lib/readline/histfile.c:788:6: branch_false: following ‘false’ branch...
bash-5.3/lib/readline/histfile.c:800:7: branch_false: ...to here
bash-5.3/lib/readline/histfile.c:813:59: branch_false: following ‘false’ branch...
bash-5.3/lib/readline/histfile.c:844:22: branch_false: ...to here
bash-5.3/lib/readline/histfile.c:845:8: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
bash-5.3/lib/readline/histfile.c:860:14: branch_false: ...to here
bash-5.3/lib/readline/histfile.c:860:42: branch_true: following ‘true’ branch...
bash-5.3/lib/readline/histfile.c:862:13: branch_true: ...to here
bash-5.3/lib/readline/histfile.c:862:12: branch_true: following ‘true’ branch...
bash-5.3/lib/readline/histfile.c:866:13: danger: out-of-bounds write
Error: COMPILER_WARNING (CWE-569): [#def179]
bash-5.3/lib/readline/histsearch.c: scope_hint: In function ‘_hs_history_patsearch’
bash-5.3/lib/readline/histsearch.c:258:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def180]
bash-5.3/lib/readline/input.c: scope_hint: In function ‘rl_read_key’
bash-5.3/lib/readline/input.c:794:11: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-563): [#def181]
bash-5.3/lib/readline/input.c: scope_hint: In function ‘rl_getc’
bash-5.3/lib/readline/input.c:839:12: warning[-Wunused-variable]: unused variable ‘empty_set’
Error: COMPILER_WARNING: [#def182]
bash-5.3/lib/readline/isearch.c: scope_hint: In function ‘rl_search_history’
bash-5.3/lib/readline/isearch.c:912:7: warning[-Wunused-but-set-variable=]: variable ‘c’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-674): [#def183]
bash-5.3/lib/readline/kill.c:202:12: warning[-Wanalyzer-infinite-recursion]: infinite recursion
bash-5.3/lib/readline/kill.c:197:1: enter_function: entry to ‘rl_kill_word’
bash-5.3/lib/readline/kill.c:202:12: call_function: calling ‘rl_backward_kill_word’ from ‘rl_kill_word’
Error: GCC_ANALYZER_WARNING (CWE-674): [#def184]
bash-5.3/lib/readline/kill.c:225:12: warning[-Wanalyzer-infinite-recursion]: infinite recursion
bash-5.3/lib/readline/kill.c:220:1: enter_function: entry to ‘rl_backward_kill_word’
bash-5.3/lib/readline/kill.c:225:12: call_function: calling ‘rl_kill_word’ from ‘rl_backward_kill_word’
Error: GCC_ANALYZER_WARNING (CWE-674): [#def185]
bash-5.3/lib/readline/kill.c:494:12: warning[-Wanalyzer-infinite-recursion]: infinite recursion
bash-5.3/lib/readline/kill.c:491:1: enter_function: entry to ‘rl_copy_forward_word’
bash-5.3/lib/readline/kill.c:494:12: call_function: calling ‘rl_copy_backward_word’ from ‘rl_copy_forward_word’
Error: GCC_ANALYZER_WARNING (CWE-674): [#def186]
bash-5.3/lib/readline/kill.c:503:12: warning[-Wanalyzer-infinite-recursion]: infinite recursion
bash-5.3/lib/readline/kill.c:500:1: enter_function: entry to ‘rl_copy_backward_word’
bash-5.3/lib/readline/kill.c:503:12: call_function: calling ‘rl_copy_forward_word’ from ‘rl_copy_backward_word’
Error: COMPILER_WARNING (CWE-569): [#def187]
bash-5.3/lib/readline/misc.c: scope_hint: In function ‘_rl_revert_previous_lines’
bash-5.3/lib/readline/misc.c:491:11: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def188]
bash-5.3/lib/readline/misc.c: scope_hint: In function ‘rl_clear_history’
bash-5.3/lib/readline/misc.c:551:11: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: GCC_ANALYZER_WARNING (CWE-674): [#def189]
bash-5.3/lib/readline/misc.c:623:12: warning[-Wanalyzer-infinite-recursion]: infinite recursion
bash-5.3/lib/readline/misc.c:618:1: enter_function: entry to ‘rl_get_next_history’
bash-5.3/lib/readline/misc.c:623:12: call_function: calling ‘rl_get_previous_history’ from ‘rl_get_next_history’
Error: COMPILER_WARNING (CWE-1164): [#def190]
bash-5.3/lib/readline/nls.c:287:1: warning[-Wunused-function]: ‘find_codeset’ defined but not used
Error: COMPILER_WARNING: [#def191]
bash-5.3/lib/readline/parens.c: scope_hint: In function ‘rl_insert_close’
bash-5.3/lib/readline/parens.c:115:36: warning[-Wunused-but-set-variable=]: variable ‘ready’ set but not used
Error: COMPILER_WARNING (CWE-563): [#def192]
bash-5.3/lib/readline/readline.c:76: included_from: Included from here.
bash-5.3/lib/readline/parse-colors.h:44:14: warning[-Wunused-variable]: ‘color_buf’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def193]
bash-5.3/lib/readline/readline.c: scope_hint: At top level
bash-5.3/lib/readline/readline.c:99:13: warning[-Wunused-function]: ‘reset_default_bindings’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-563): [#def194]
bash-5.3/lib/readline/readline.c:577:21: warning[-Wunused-variable]: unused variable ‘eof_found’
Error: COMPILER_WARNING: [#def195]
bash-5.3/lib/readline/readline.c: scope_hint: In function ‘readline_internal_char’
bash-5.3/lib/readline/readline.c:578:20: warning[-Wunused-but-set-variable=]: variable ‘r’ set but not used
Error: COMPILER_WARNING (CWE-563): [#def196]
bash-5.3/lib/readline/signals.c: scope_hint: In function ‘rl_set_signals’
bash-5.3/lib/readline/signals.c:422:25: warning[-Wunused-variable]: unused variable ‘oset’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def197]
bash-5.3/lib/readline/text.c:101:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘string’
bash-5.3/lib/readline/text.c:2358:1: enter_function: entry to ‘rl_execute_named_command’
bash-5.3/lib/readline/text.c:2364:13: call_function: calling ‘_rl_read_command_name’ from ‘rl_execute_named_command’
Error: COMPILER_WARNING: [#def198]
bash-5.3/lib/readline/text.c: scope_hint: In function ‘rl_insert_text’
bash-5.3/lib/readline/text.c:101:3: warning[-Wstringop-truncation]: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length
bash-5.3/lib/readline/text.c:91:29: note: length computed here
Error: GCC_ANALYZER_WARNING (CWE-674): [#def199]
bash-5.3/lib/readline/text.c:397:12: warning[-Wanalyzer-infinite-recursion]: infinite recursion
bash-5.3/lib/readline/text.c:394:1: enter_function: entry to ‘rl_backward_byte’
bash-5.3/lib/readline/text.c:397:12: call_function: calling ‘rl_forward_byte’ from ‘rl_backward_byte’
Error: COMPILER_WARNING: [#def200]
bash-5.3/lib/readline/text.c: scope_hint: In function ‘rl_insert’
bash-5.3/lib/readline/text.c:987:13: warning[-Wunused-but-set-variable=]: variable ‘x’ set but not used
Error: COMPILER_WARNING (CWE-569): [#def201]
bash-5.3/lib/readline/tilde.c:188:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-704): [#def202]
bash-5.3/lib/readline/tilde.c: scope_hint: In function ‘tilde_expand’
bash-5.3/lib/readline/tilde.c:188:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def203]
bash-5.3/lib/readline/tilde.c:188:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: CPPCHECK_WARNING (CWE-457): [#def204]
bash-5.3/lib/readline/undo.c:156: warning[uninitvar]: Uninitialized variable: roving
Error: COMPILER_WARNING: [#def205]
bash-5.3/lib/readline/vi_mode.c: scope_hint: In function ‘rl_vi_fword’
bash-5.3/lib/readline/vi_mode.c:625:7: warning[-Wunused-but-set-variable=]: variable ‘opoint’ set but not used
Error: COMPILER_WARNING: [#def206]
bash-5.3/lib/readline/vi_mode.c: scope_hint: In function ‘rl_vi_change_char’
bash-5.3/lib/readline/vi_mode.c:2125:7: warning[-Wstringop-truncation]: ‘strncpy’ output may be truncated copying 16 bytes from a string of length 16
Error: COMPILER_WARNING (CWE-563): [#def207]
bash-5.3/lib/sh/anonfile.c: scope_hint: In function ‘anonopen’
bash-5.3/lib/sh/anonfile.c:76:9: warning[-Wunused-variable]: unused variable ‘fname’
Error: COMPILER_WARNING (CWE-1164): [#def208]
bash-5.3/lib/sh/anonfile.c: scope_hint: At top level
bash-5.3/lib/sh/anonfile.c:114:1: warning[-Wunused-function]: ‘anonunlink’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def209]
bash-5.3/lib/sh/casemod.c: scope_hint: In function ‘sh_modcase’
bash-5.3/lib/sh/casemod.c:102:15: warning[-Wunused-variable]: unused variable ‘c’
Error: COMPILER_WARNING (CWE-1164): [#def210]
bash-5.3/lib/sh/eaccess.c:171:1: warning[-Wunused-function]: ‘sh_euidaccess’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def211]
bash-5.3/lib/sh/fnxform.c:49:14: warning[-Wunused-variable]: ‘outbuf’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def212]
bash-5.3/lib/sh/fnxform.c:50:15: warning[-Wunused-variable]: ‘outlen’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def213]
bash-5.3/lib/sh/fnxform.c:80:1: warning[-Wunused-function]: ‘init_tofs’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def214]
bash-5.3/lib/sh/fnxform.c:89:1: warning[-Wunused-function]: ‘init_fromfs’ defined but not used
Error: COMPILER_WARNING: [#def215]
bash-5.3/lib/sh/getenv.c: scope_hint: In function ‘getenv’
bash-5.3/lib/sh/getenv.c:54:6: warning[-Wnonnull-compare]: ‘nonnull’ argument ‘name’ compared to NULL
Error: COMPILER_WARNING: [#def216]
bash-5.3/lib/sh/getenv.c: scope_hint: In function ‘putenv’
bash-5.3/lib/sh/getenv.c:106:6: warning[-Wnonnull-compare]: ‘nonnull’ argument ‘str’ compared to NULL
Error: COMPILER_WARNING: [#def217]
bash-5.3/lib/sh/getenv.c: scope_hint: In function ‘unsetenv’
bash-5.3/lib/sh/getenv.c:189:6: warning[-Wnonnull-compare]: ‘nonnull’ argument ‘name’ compared to NULL
Error: COMPILER_WARNING (CWE-569): [#def218]
bash-5.3/lib/sh/makepath.c: scope_hint: In function ‘sh_makepath’
bash-5.3/lib/sh/makepath.c:117:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-704): [#def219]
bash-5.3/lib/sh/mbschr.c: scope_hint: In function ‘mbschr’
bash-5.3/lib/sh/mbschr.c:84:11: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def220]
bash-5.3/lib/sh/mbschr.c:84:11: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-457): [#def221]
bash-5.3/lib/sh/netopen.c:228:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘<unknown>’
bash-5.3/lib/sh/netopen.c:221:6: branch_false: following ‘false’ branch...
bash-5.3/lib/sh/netopen.c:231:8: branch_false: ...to here
bash-5.3/lib/sh/netopen.c:231:20: branch_false: following ‘false’ branch (when ‘res’ is NULL)...
bash-5.3/lib/sh/netopen.c:228:14: branch_false: ...to here
bash-5.3/lib/sh/netopen.c:228:14: danger: use of uninitialized value ‘<unknown>’ here
Error: CPPCHECK_WARNING (CWE-457): [#def222]
bash-5.3/lib/sh/netopen.c:258: warning[uninitvar]: Uninitialized variable: s
Error: COMPILER_WARNING (CWE-569): [#def223]
bash-5.3/lib/sh/pathcanon.c: scope_hint: In function ‘sh_canonpath’
bash-5.3/lib/sh/pathcanon.c:113:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-1164): [#def224]
bash-5.3/lib/sh/random.c:141:1: warning[-Wunused-function]: ‘brand32’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def225]
bash-5.3/lib/sh/random.c: scope_hint: In function ‘brand32’
bash-5.3/lib/sh/random.c:143:14: warning[-Wunused-variable]: unused variable ‘ret’
Error: COMPILER_WARNING (CWE-1164): [#def226]
bash-5.3/lib/sh/random.c: scope_hint: At top level
bash-5.3/lib/sh/random.c:165:1: warning[-Wunused-function]: ‘perturb_rand32’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def227]
bash-5.3/lib/sh/setlinebuf.c:33:14: warning[-Wunused-variable]: ‘stdoutbuf’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def228]
bash-5.3/lib/sh/setlinebuf.c:34:14: warning[-Wunused-variable]: ‘stderrbuf’ defined but not used
Error: COMPILER_WARNING (CWE-569): [#def229]
bash-5.3/lib/sh/shmatch.c: scope_hint: In function ‘sh_regmatch’
bash-5.3/lib/sh/shmatch.c:86:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: GCC_ANALYZER_WARNING (CWE-457): [#def230]
bash-5.3/lib/sh/spell.c:78:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘newname[1]’
bash-5.3/lib/sh/spell.c:185:1: enter_function: entry to ‘dirspell’
bash-5.3/lib/sh/spell.c:192:6: branch_false: following ‘false’ branch (when ‘guess’ is non-NULL)...
bash-5.3/lib/sh/spell.c:195:11: branch_false: ...to here
bash-5.3/lib/sh/spell.c:195:11: call_function: calling ‘spname’ from ‘dirspell’
Error: COMPILER_WARNING (CWE-569): [#def231]
bash-5.3/lib/sh/spell.c: scope_hint: In function ‘spname’
bash-5.3/lib/sh/spell.c:96:22: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: GCC_ANALYZER_WARNING (CWE-476): [#def232]
bash-5.3/lib/sh/stringlist.c:126:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
bash-5.3/lib/sh/stringlist.c:114:1: enter_function: entry to ‘strlist_copy’
bash-5.3/lib/sh/stringlist.c:119:6: branch_false: following ‘false’ branch (when ‘sl’ is non-NULL)...
bash-5.3/lib/sh/stringlist.c:121:9: branch_false: ...to here
bash-5.3/lib/sh/stringlist.c:121:9: call_function: calling ‘strlist_create’ from ‘strlist_copy’
bash-5.3/lib/sh/stringlist.c:121:9: return_function: returning to ‘strlist_copy’ from ‘strlist_create’
bash-5.3/lib/sh/stringlist.c:123:6: branch_true: following ‘true’ branch...
bash-5.3/lib/sh/stringlist.c:123:6: branch_true: ...to here
bash-5.3/lib/sh/stringlist.c:125:19: branch_true: following ‘true’ branch...
bash-5.3/lib/sh/stringlist.c:126:24: branch_true: ...to here
bash-5.3/lib/sh/stringlist.c:126:24: branch_false: following ‘false’ branch...
bash-5.3/lib/sh/stringlist.c:126:9: branch_false: ...to here
bash-5.3/lib/sh/stringlist.c:126:9: release_memory: using NULL here
bash-5.3/lib/sh/stringlist.c:126:9: danger: dereference of NULL ‘*<unknown>.list + (long unsigned int)i * 8’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def233]
bash-5.3/lib/sh/stringlist.c:149:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
bash-5.3/lib/sh/stringlist.c:139:1: enter_function: entry to ‘strlist_merge’
bash-5.3/lib/sh/stringlist.c:147:8: call_function: calling ‘strlist_create’ from ‘strlist_merge’
bash-5.3/lib/sh/stringlist.c:147:8: return_function: returning to ‘strlist_merge’ from ‘strlist_create’
bash-5.3/lib/sh/stringlist.c:148:19: branch_true: following ‘true’ branch (when ‘i < l1’)...
bash-5.3/lib/sh/stringlist.c:149:19: branch_true: ...to here
bash-5.3/lib/sh/stringlist.c:149:19: branch_false: following ‘false’ branch...
bash-5.3/lib/sh/stringlist.c:149:5: branch_false: ...to here
bash-5.3/lib/sh/stringlist.c:149:5: release_memory: using NULL here
bash-5.3/lib/sh/stringlist.c:149:5: danger: dereference of NULL ‘*<unknown>.list + i * 8’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def234]
bash-5.3/lib/sh/stringlist.c:151:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
bash-5.3/lib/sh/stringlist.c:139:1: enter_function: entry to ‘strlist_merge’
bash-5.3/lib/sh/stringlist.c:147:8: call_function: calling ‘strlist_create’ from ‘strlist_merge’
bash-5.3/lib/sh/stringlist.c:147:8: return_function: returning to ‘strlist_merge’ from ‘strlist_create’
bash-5.3/lib/sh/stringlist.c:148:19: branch_false: following ‘false’ branch (when ‘i >= l1’)...
bash-5.3/lib/sh/stringlist.c:148:19: branch_false: ...to here
bash-5.3/lib/sh/stringlist.c:150:15: branch_true: following ‘true’ branch (when ‘i < l2’)...
bash-5.3/lib/sh/stringlist.c:151:19: branch_true: ...to here
bash-5.3/lib/sh/stringlist.c:151:19: branch_false: following ‘false’ branch...
bash-5.3/lib/sh/stringlist.c:151:5: branch_false: ...to here
bash-5.3/lib/sh/stringlist.c:151:5: release_memory: using NULL here
bash-5.3/lib/sh/stringlist.c:151:5: danger: dereference of NULL ‘*<unknown>.list + n * 8’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def235]
bash-5.3/lib/sh/stringlist.c:153:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
bash-5.3/lib/sh/stringlist.c:139:1: enter_function: entry to ‘strlist_merge’
bash-5.3/lib/sh/stringlist.c:147:8: call_function: calling ‘strlist_create’ from ‘strlist_merge’
bash-5.3/lib/sh/stringlist.c:147:8: return_function: returning to ‘strlist_merge’ from ‘strlist_create’
bash-5.3/lib/sh/stringlist.c:148:19: branch_false: following ‘false’ branch (when ‘i >= l1’)...
bash-5.3/lib/sh/stringlist.c:148:19: branch_false: ...to here
bash-5.3/lib/sh/stringlist.c:150:15: branch_false: following ‘false’ branch (when ‘i >= l2’)...
bash-5.3/lib/sh/stringlist.c:152:3: branch_false: ...to here
bash-5.3/lib/sh/stringlist.c:153:3: release_memory: using NULL here
bash-5.3/lib/sh/stringlist.c:153:3: danger: dereference of NULL ‘*<unknown>.list + n * 8’
Error: COMPILER_WARNING (CWE-569): [#def236]
bash-5.3/lib/sh/strtrans.c: scope_hint: In function ‘ansic_quote’
bash-5.3/lib/sh/strtrans.c:250:17: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def237]
bash-5.3/lib/sh/strtrans.c: scope_hint: In function ‘ansic_wshouldquote’
bash-5.3/lib/sh/strtrans.c:327:21: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def238]
bash-5.3/lib/sh/strtrans.c: scope_hint: In function ‘ansic_shouldquote’
bash-5.3/lib/sh/strtrans.c:349:20: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-563): [#def239]
bash-5.3/lib/sh/strvis.c: scope_hint: In function ‘sh_strvis’
bash-5.3/lib/sh/strvis.c:120:17: warning[-Wunused-variable]: unused variable ‘c’
Error: COMPILER_WARNING (CWE-563): [#def240]
bash-5.3/lib/sh/timers.c: scope_hint: In function ‘shtimer_select’
bash-5.3/lib/sh/timers.c:189:26: warning[-Wunused-variable]: unused variable ‘prevmask’
Error: COMPILER_WARNING (CWE-563): [#def241]
bash-5.3/lib/sh/tmpfile.c:67:12: warning[-Wunused-variable]: ‘ntmpfiles’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def242]
bash-5.3/lib/sh/tmpfile.c:69:22: warning[-Wunused-variable]: ‘filenum’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def243]
bash-5.3/lib/sh/tmpfile.c: scope_hint: At top level
bash-5.3/lib/sh/tmpfile.c:123:1: warning[-Wunused-function]: ‘sh_seedrand’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def244]
bash-5.3/lib/sh/tmpfile.c:153:15: warning[-Wunused-variable]: unused variable ‘sb’
Error: COMPILER_WARNING (CWE-563): [#def245]
bash-5.3/lib/sh/tmpfile.c:154:7: warning[-Wunused-variable]: unused variable ‘r’
Error: COMPILER_WARNING: [#def246]
bash-5.3/lib/sh/tmpfile.c:154:10: warning[-Wunused-but-set-variable=]: variable ‘tdlen’ set but not used
Error: COMPILER_WARNING (CWE-563): [#def247]
bash-5.3/lib/sh/tmpfile.c: scope_hint: In function ‘sh_mktmpname’
bash-5.3/lib/sh/tmpfile.c:155:14: warning[-Wunused-variable]: unused variable ‘seeded’
Error: COMPILER_WARNING: [#def248]
bash-5.3/lib/sh/tmpfile.c: scope_hint: In function ‘sh_mktmpfd’
bash-5.3/lib/sh/tmpfile.c:215:11: warning[-Wunused-but-set-variable=]: variable ‘tdlen’ set but not used
Error: COMPILER_WARNING (CWE-563): [#def249]
bash-5.3/lib/sh/tmpfile.c:312:7: warning[-Wunused-variable]: unused variable ‘fd’
Error: COMPILER_WARNING: [#def250]
bash-5.3/lib/sh/tmpfile.c: scope_hint: In function ‘sh_mktmpdir’
bash-5.3/lib/sh/tmpfile.c:316:7: warning[-Wunused-but-set-variable=]: variable ‘tdlen’ set but not used
Error: COMPILER_WARNING (CWE-1164): [#def251]
bash-5.3/lib/sh/ufuncs.c:111:1: warning[-Wunused-function]: ‘ssleep’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def252]
bash-5.3/lib/sh/unicode.c:74:1: warning[-Wunused-function]: ‘stub_charset’ defined but not used
Error: COMPILER_WARNING (CWE-704): [#def253]
bash-5.3/lib/sh/utf8.c: scope_hint: In function ‘utf8_mbschr’
bash-5.3/lib/sh/utf8.c:38:10: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def254]
bash-5.3/lib/sh/utf8.c:38:10: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def255]
bash-5.3/lib/sh/zgetline.c:110:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘line’
bash-5.3/lib/sh/zgetline.c:70:6: branch_false: following ‘false’ branch...
bash-5.3/lib/sh/zgetline.c:70:34: branch_false: ...to here
bash-5.3/lib/sh/zgetline.c:70:7: branch_true: following ‘true’ branch...
bash-5.3/lib/sh/zgetline.c:70:51: branch_true: ...to here
bash-5.3/lib/sh/zgetline.c:70:33: branch_false: following ‘false’ branch...
bash-5.3/lib/sh/zgetline.c:70:33: branch_false: ...to here
bash-5.3/lib/sh/zgetline.c:80:10: branch_false: following ‘false’ branch (when ‘retval > 0’)...
bash-5.3/lib/sh/zgetline.c:87:11: branch_false: ...to here
bash-5.3/lib/sh/zgetline.c:87:10: branch_false: following ‘false’ branch...
bash-5.3/lib/sh/zgetline.c:110:11: branch_false: ...to here
bash-5.3/lib/sh/zgetline.c:110:7: danger: dereference of NULL ‘line + (sizetype)nr’
Error: COMPILER_WARNING (CWE-569): [#def256]
bash-5.3/lib/tilde/tilde.c:188:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-704): [#def257]
bash-5.3/lib/tilde/tilde.c: scope_hint: In function ‘tilde_expand’
bash-5.3/lib/tilde/tilde.c:188:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def258]
bash-5.3/lib/tilde/tilde.c:188:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: CPPCHECK_WARNING (CWE-457): [#def259]
bash-5.3/locale.c:416: error[uninitvar]: Uninitialized variable: retval
Error: COMPILER_WARNING (CWE-563): [#def260]
bash-5.3/locale.c: scope_hint: In function ‘locale_isutf8’
bash-5.3/locale.c:620:14: warning[-Wunused-variable]: unused variable ‘encoding’
Error: COMPILER_WARNING (CWE-569): [#def261]
bash-5.3/mailcheck.c: scope_hint: In function ‘remember_mail_dates’
bash-5.3/mailcheck.c:392:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def262]
bash-5.3/mailcheck.c: scope_hint: In function ‘check_mail’
bash-5.3/mailcheck.c:464:15: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def263]
bash-5.3/make_cmd.c: scope_hint: In function ‘make_here_document’
bash-5.3/make_cmd.c:571:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-563): [#def264]
bash-5.3/parse.y:317:12: warning[-Wunused-variable]: ‘save_simple_lineno’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def265]
bash-5.3/parse.y:325:12: warning[-Wunused-variable]: ‘save_bstart’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def266]
bash-5.3/parse.y:371:14: warning[-Wunused-variable]: ‘yyoutstream’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def267]
bash-5.3/parse.y:372:14: warning[-Wunused-variable]: ‘yyerrstream’ defined but not used
Error: COMPILER_WARNING: [#def268]
bash-5.3/parse.y: scope_hint: In function ‘parse_matched_pair’
bash-5.3/parse.y:3879:18: warning[-Wunused-but-set-variable=]: variable ‘prevch’ set but not used
Error: COMPILER_WARNING: [#def269]
bash-5.3/parse.y: scope_hint: In function ‘parse_comsub’
bash-5.3/parse.y:4455:7: warning[-Wunused-but-set-variable=]: variable ‘start_lineno’ set but not used
Error: COMPILER_WARNING (CWE-457): [#def270]
bash-5.3/parse.y:4571:19: warning[-Wmaybe-uninitialized]: ‘local_extglob’ may be used uninitialized
bash-5.3/parse.y:4454:22: note: ‘local_extglob’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def271]
bash-5.3/parse.y: scope_hint: In function ‘parse_comsub’
bash-5.3/parse.y:4659:14: warning[-Wmaybe-uninitialized]: ‘dolbrace_spec’ may be used uninitialized
bash-5.3/parse.y:4454:7: note: ‘dolbrace_spec’ was declared here
Error: COMPILER_WARNING: [#def272]
bash-5.3/parse.y: scope_hint: In function ‘xparse_dolparen’
bash-5.3/parse.y:4690:10: warning[-Wunused-but-set-variable=]: variable ‘orig_ind’ set but not used
Error: COMPILER_WARNING: [#def273]
bash-5.3/parse.y: scope_hint: In function ‘parse_dparen’
bash-5.3/parse.y:4904:15: warning[-Wunused-but-set-variable=]: variable ‘sline’ set but not used
Error: COMPILER_WARNING: [#def274]
bash-5.3/parse.y: scope_hint: In function ‘parse_arith_cmd’
bash-5.3/parse.y:4966:7: warning[-Wunused-but-set-variable=]: variable ‘exp_lineno’ set but not used
Error: COMPILER_WARNING (CWE-569): [#def275]
bash-5.3/parse.y: scope_hint: In function ‘cond_error’
bash-5.3/parse.y:5022:11: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def276]
bash-5.3/parse.y: scope_hint: In function ‘cond_term’
bash-5.3/parse.y:5104:15: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def277]
bash-5.3/parse.y:5138:15: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def278]
bash-5.3/parse.y:5189:15: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def279]
bash-5.3/parse.y:5222:15: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def280]
bash-5.3/parse.y:5240:16: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def281]
bash-5.3/parse.y: scope_hint: In function ‘decode_prompt_string’
bash-5.3/parse.y:6293:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def282]
bash-5.3/parse.y: scope_hint: In function ‘error_token_from_token’
bash-5.3/parse.y:6738:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def283]
bash-5.3/parse.y:6741:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-1164): [#def284]
bash-5.3/parse.y: scope_hint: At top level
bash-5.3/parse.y:6927:1: warning[-Wunused-function]: ‘discard_parser_constructs’ defined but not used
Error: COMPILER_WARNING (CWE-569): [#def285]
bash-5.3/parse.y: scope_hint: In function ‘parse_string_to_word_list’
bash-5.3/parse.y:7032:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def286]
bash-5.3/pathexp.c: scope_hint: In function ‘unquoted_glob_pattern_p’
bash-5.3/pathexp.c:77:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-563): [#def287]
bash-5.3/pathexp.c: scope_hint: In function ‘shell_glob_filename’
bash-5.3/pathexp.c:445:15: warning[-Wunused-variable]: unused variable ‘quoted_pattern’
Error: COMPILER_WARNING (CWE-704): [#def288]
bash-5.3/pathexp.c: scope_hint: In function ‘glob_name_is_acceptable’
bash-5.3/pathexp.c:536:5: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def289]
bash-5.3/pathexp.c:536:5: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-569): [#def290]
bash-5.3/pathexp.c: scope_hint: In function ‘setup_ignore_patterns’
bash-5.3/pathexp.c:664:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-563): [#def291]
bash-5.3/pathexp.c: scope_hint: In function ‘gs_checknum’
bash-5.3/pathexp.c:820:12: warning[-Wunused-variable]: unused variable ‘i’
Error: COMPILER_WARNING (CWE-563): [#def292]
bash-5.3/pathexp.c: scope_hint: In function ‘globsort_numericcmp’
bash-5.3/pathexp.c:832:15: warning[-Wunused-variable]: unused variable ‘x’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def293]
bash-5.3/pathexp.c:913:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘sortfunc’
bash-5.3/pathexp.c:892:3: branch_false: following ‘false’ branch...
bash-5.3/pathexp.c:908:5: branch_false: ...to here
bash-5.3/pathexp.c:913:3: danger: use of uninitialized value ‘sortfunc’ here
Error: COMPILER_WARNING (CWE-457): [#def294]
bash-5.3/pathexp.c:913:3: warning[-Wmaybe-uninitialized]: ‘sortfunc’ may be used uninitialized
bash-5.3/pathexp.c: scope_hint: In function ‘sh_sortglob’
bash-5.3/pathexp.c:888:11: note: ‘sortfunc’ was declared here
Error: COMPILER_WARNING: [#def295]
bash-5.3/print_cmd.c: scope_hint: In function ‘make_command_string_internal’
bash-5.3/print_cmd.c:181:14: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: COMPILER_WARNING: [#def296]
bash-5.3/print_cmd.c: scope_hint: In function ‘print_simple_command’
bash-5.3/print_cmd.c:1007:14: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: COMPILER_WARNING (CWE-1164): [#def297]
bash-5.3/print_cmd.c: scope_hint: At top level
bash-5.3/print_cmd.c:1018:1: warning[-Wunused-function]: ‘print_heredocs’ defined but not used
Error: GCC_ANALYZER_WARNING (CWE-775): [#def298]
bash-5.3/redir.c:354:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘here_document_to_fd(redirectee, ri)’
bash-5.3/redir.c:767:1: enter_function: entry to ‘do_redirection_internal’
bash-5.3/redir.c:1047:10: branch_true: following ‘true’ branch (when ‘redirectee’ is non-NULL)...
bash-5.3/redir.c:1049:16: branch_true: ...to here
bash-5.3/redir.c:1049:16: call_function: calling ‘here_document_to_fd’ from ‘do_redirection_internal’
bash-5.3/redir.c:1049:16: return_function: returning to ‘do_redirection_internal’ from ‘here_document_to_fd’
bash-5.3/redir.c:1051:14: branch_false: following ‘false’ branch...
bash-5.3/redir.c:1057:15: branch_false: ...to here
bash-5.3/redir.c:1057:14: branch_false: following ‘false’ branch...
bash-5.3/redir.c:1066:15: branch_false: ...to here
bash-5.3/redir.c:1066:14: branch_false: following ‘false’ branch...
bash-5.3/redir.c:1110:14: branch_false: ...to here
bash-5.3/redir.c:354:7: danger: ‘here_document_to_fd(redirectee, ri)’ leaks here; was opened at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
Error: COMPILER_WARNING (CWE-1164): [#def299]
bash-5.3/redir.c:748:1: warning[-Wunused-function]: ‘undoablefd’ defined but not used
Error: COMPILER_WARNING: [#def300]
bash-5.3/redir.c: scope_hint: In function ‘do_redirection_internal’
bash-5.3/redir.c:770:52: warning[-Wunused-but-set-variable=]: variable ‘fdactive’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-457): [#def301]
bash-5.3/redir.c:913:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘oflags’
bash-5.3/redir.c:908:10: branch_false: following ‘false’ branch...
bash-5.3/redir.c:911:27: branch_false: ...to here
bash-5.3/redir.c:912:10: branch_true: following ‘true’ branch...
bash-5.3/redir.c:913:9: danger: use of uninitialized value ‘oflags’ here
Error: COMPILER_WARNING (CWE-457): [#def302]
bash-5.3/redir.c: scope_hint: In function ‘do_redirection_internal.constprop.0’
bash-5.3/redir.c:913:27: warning[-Wmaybe-uninitialized]: ‘oflags’ may be used uninitialized
bash-5.3/redir.c:770:36: note: ‘oflags’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def303]
bash-5.3/redir.c:994:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(redir_open(redirectee_word, *redirect.flags, 438, ri), redirector)’
bash-5.3/redir.c:767:1: enter_function: entry to ‘do_redirection_internal’
bash-5.3/redir.c:908:10: branch_true: following ‘true’ branch...
bash-5.3/redir.c:909:27: branch_true: ...to here
bash-5.3/redir.c:909:27: call_function: calling ‘redirection_expand’ from ‘do_redirection_internal’
bash-5.3/redir.c:909:27: return_function: returning to ‘do_redirection_internal’ from ‘redirection_expand’
bash-5.3/redir.c:915:10: branch_false: following ‘false’ branch (when ‘redirectee_word’ is non-NULL)...
bash-5.3/redir.c:919:11: branch_false: ...to here
bash-5.3/redir.c:926:12: call_function: calling ‘redir_open’ from ‘do_redirection_internal’
bash-5.3/redir.c:926:12: return_function: returning to ‘do_redirection_internal’ from ‘redir_open’
bash-5.3/redir.c:927:10: branch_false: following ‘false’ branch (when ‘fnp’ is NULL)...
bash-5.3/redir.c:930:9: branch_false: ...to here
bash-5.3/redir.c:932:10: branch_false: following ‘false’ branch...
bash-5.3/redir.c:935:10: branch_false: ...to here
bash-5.3/redir.c:935:10: branch_false: following ‘false’ branch...
bash-5.3/redir.c:938:11: branch_false: ...to here
bash-5.3/redir.c:938:10: branch_true: following ‘true’ branch...
bash-5.3/redir.c:940:15: branch_true: ...to here
bash-5.3/redir.c:940:14: branch_false: following ‘false’ branch...
bash-5.3/redir.c:949:15: branch_false: ...to here
bash-5.3/redir.c:949:14: branch_false: following ‘false’ branch...
bash-5.3/redir.c:968:14: branch_false: ...to here
bash-5.3/redir.c:968:15: branch_false: following ‘false’ branch...
bash-5.3/redir.c:974:14: branch_false: ...to here
bash-5.3/redir.c:985:14: branch_false: following ‘false’ branch...
bash-5.3/redir.c:994:19: branch_false: ...to here
bash-5.3/redir.c:994:19: branch_true: following ‘true’ branch...
bash-5.3/redir.c:994:43: branch_true: ...to here
bash-5.3/redir.c:994:43: acquire_resource: opened here
bash-5.3/redir.c:994:20: danger: ‘dup2(redir_open(redirectee_word, *redirect.flags, 438, ri), redirector)’ leaks here; was opened at [(41)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/40)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def304]
bash-5.3/redir.c:1036:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(1, 2)’
bash-5.3/redir.c:767:1: enter_function: entry to ‘do_redirection_internal’
bash-5.3/redir.c:908:10: branch_true: following ‘true’ branch...
bash-5.3/redir.c:909:27: branch_true: ...to here
bash-5.3/redir.c:909:27: call_function: calling ‘redirection_expand’ from ‘do_redirection_internal’
bash-5.3/redir.c:909:27: return_function: returning to ‘do_redirection_internal’ from ‘redirection_expand’
bash-5.3/redir.c:915:10: branch_false: following ‘false’ branch (when ‘redirectee_word’ is non-NULL)...
bash-5.3/redir.c:919:11: branch_false: ...to here
bash-5.3/redir.c:927:10: branch_false: following ‘false’ branch (when ‘fnp’ is NULL)...
bash-5.3/redir.c:930:9: branch_false: ...to here
bash-5.3/redir.c:932:10: branch_false: following ‘false’ branch...
bash-5.3/redir.c:935:10: branch_false: ...to here
bash-5.3/redir.c:935:10: branch_false: following ‘false’ branch...
bash-5.3/redir.c:938:11: branch_false: ...to here
bash-5.3/redir.c:938:10: branch_true: following ‘true’ branch...
bash-5.3/redir.c:940:15: branch_true: ...to here
bash-5.3/redir.c:940:14: branch_true: following ‘true’ branch...
bash-5.3/redir.c:942:28: branch_true: ...to here
bash-5.3/redir.c:944:18: branch_false: following ‘false’ branch...
bash-5.3/redir.c:949:15: branch_false: ...to here
bash-5.3/redir.c:968:15: branch_false: following ‘false’ branch...
bash-5.3/redir.c:974:14: branch_false: ...to here
bash-5.3/redir.c:985:14: branch_false: following ‘false’ branch...
bash-5.3/redir.c:994:19: branch_false: ...to here
bash-5.3/redir.c:1003:14: branch_false: following ‘false’ branch...
bash-5.3/redir.c:1016:15: branch_false: ...to here
bash-5.3/redir.c:1030:10: branch_true: following ‘true’ branch...
bash-5.3/redir.c:1032:14: branch_true: ...to here
bash-5.3/redir.c:1032:14: branch_true: following ‘true’ branch...
bash-5.3/redir.c:1034:19: branch_true: ...to here
bash-5.3/redir.c:1034:18: branch_false: following ‘false’ branch...
bash-5.3/redir.c:1036:19: branch_false: ...to here
bash-5.3/redir.c:1036:19: acquire_resource: opened here
bash-5.3/redir.c:1036:18: danger: ‘dup2(1, 2)’ leaks here; was opened at [(37)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/36)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def305]
bash-5.3/redir.c:1097:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(here_document_to_fd(redirectee, ri), redirector)’
bash-5.3/redir.c:767:1: enter_function: entry to ‘do_redirection_internal’
bash-5.3/redir.c:1047:10: branch_true: following ‘true’ branch (when ‘redirectee’ is non-NULL)...
bash-5.3/redir.c:1049:16: branch_true: ...to here
bash-5.3/redir.c:1049:16: call_function: calling ‘here_document_to_fd’ from ‘do_redirection_internal’
bash-5.3/redir.c:1049:16: return_function: returning to ‘do_redirection_internal’ from ‘here_document_to_fd’
bash-5.3/redir.c:1051:14: branch_false: following ‘false’ branch...
bash-5.3/redir.c:1057:15: branch_false: ...to here
bash-5.3/redir.c:1057:14: branch_false: following ‘false’ branch...
bash-5.3/redir.c:1066:15: branch_false: ...to here
bash-5.3/redir.c:1066:14: branch_true: following ‘true’ branch...
bash-5.3/redir.c:1068:19: branch_true: ...to here
bash-5.3/redir.c:1068:18: branch_false: following ‘false’ branch...
bash-5.3/redir.c:1088:19: branch_false: ...to here
bash-5.3/redir.c:1088:18: branch_false: following ‘false’ branch...
bash-5.3/redir.c:1097:23: branch_false: ...to here
bash-5.3/redir.c:1097:23: branch_true: following ‘true’ branch...
bash-5.3/redir.c:1097:44: branch_true: ...to here
bash-5.3/redir.c:1097:44: acquire_resource: opened here
bash-5.3/redir.c:1097:24: danger: ‘dup2(here_document_to_fd(redirectee, ri), redirector)’ leaks here; was opened at [(28)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/27)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def306]
bash-5.3/redir.c:1170:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(redir_fd, redirector)’
bash-5.3/redir.c:1119:10: branch_true: following ‘true’ branch...
bash-5.3/redir.c:1119:35: branch_true: ...to here
bash-5.3/redir.c:1128:11: branch_true: following ‘true’ branch (when ‘redir_fd != redirector’)...
bash-5.3/redir.c:1130:15: branch_true: ...to here
bash-5.3/redir.c:1158:15: branch_false: following ‘false’ branch...
bash-5.3/redir.c:1161:15: branch_false: ...to here
bash-5.3/redir.c:1161:14: branch_false: following ‘false’ branch...
bash-5.3/redir.c:1170:20: branch_false: ...to here
bash-5.3/redir.c:1170:20: acquire_resource: opened here
bash-5.3/redir.c:1170:19: danger: ‘dup2(redir_fd, redirector)’ leaks here; was opened at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
Error: COMPILER_WARNING (CWE-1164): [#def307]
bash-5.3/redir.c: scope_hint: At top level
bash-5.3/redir.c:1376:1: warning[-Wunused-function]: ‘add_undo_fd_redirect’ defined but not used
Error: COMPILER_WARNING (CWE-569): [#def308]
bash-5.3/redir.c: scope_hint: In function ‘redir_varvalue’
bash-5.3/redir.c:1477:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def309]
bash-5.3/redir.c:1492:19: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def310]
bash-5.3/shell.c: scope_hint: In function ‘parse_shell_options’
bash-5.3/shell.c:925:14: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING: [#def311]
bash-5.3/shell.c: scope_hint: In function ‘disable_priv_mode’
bash-5.3/shell.c:1351:7: warning[-Wunused-but-set-variable=]: variable ‘e’ set but not used
Error: CPPCHECK_WARNING (CWE-476): [#def312]
bash-5.3/sig.c:685: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)0
Error: COMPILER_WARNING (CWE-563): [#def313]
bash-5.3/stringlib.c: scope_hint: In function ‘strsub’
bash-5.3/stringlib.c:140:16: warning[-Wunused-variable]: unused variable ‘r’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def314]
bash-5.3/stringlib.c:155:11: warning[-Wanalyzer-null-argument]: use of NULL ‘temp’ where non-null expected
bash-5.3/stringlib.c:144:59: branch_true: following ‘true’ branch...
bash-5.3/stringlib.c:146:10: branch_true: ...to here
bash-5.3/stringlib.c:146:10: branch_true: following ‘true’ branch...
bash-5.3/stringlib.c:148:14: branch_false: following ‘false’ branch (when ‘replen == 0’)...
bash-5.3/stringlib.c:155:19: branch_false: ...to here
bash-5.3/stringlib.c:155:19: release_memory: ‘temp’ is NULL
bash-5.3/stringlib.c:155:11: danger: argument 1 (‘temp + templen’) NULL where non-null expected
Error: COMPILER_WARNING (CWE-563): [#def315]
bash-5.3/subst.c:229:53: warning[-Wunused-variable]: ‘expand_param_unset’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def316]
bash-5.3/subst.c: scope_hint: At top level
bash-5.3/subst.c:243:14: warning[-Wunused-function]: ‘quoted_substring’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def317]
bash-5.3/subst.c:244:12: warning[-Wunused-function]: ‘quoted_strlen’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def318]
bash-5.3/subst.c:245:14: warning[-Wunused-function]: ‘quoted_strchr’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def319]
bash-5.3/subst.c:261:19: warning[-Wunused-function]: ‘list_dequote_escapes’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def320]
bash-5.3/subst.c:266:12: warning[-Wunused-function]: ‘unquoted_substring’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def321]
bash-5.3/subst.c:267:12: warning[-Wunused-function]: ‘unquoted_member’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def322]
bash-5.3/subst.c:286:23: warning[-Wunused-function]: ‘mb_getcharlens’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def323]
bash-5.3/subst.c:301:14: warning[-Wunused-function]: ‘variable_remove_pattern’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def324]
bash-5.3/subst.c:348:14: warning[-Wunused-function]: ‘mb_subfstring’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-1164): [#def325]
bash-5.3/subst.c:358:14: warning[-Wunused-function]: ‘pos_params_casemod’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-569): [#def326]
bash-5.3/subst.c: scope_hint: In function ‘string_extract’
bash-5.3/subst.c:802:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def327]
bash-5.3/subst.c: scope_hint: In function ‘string_extract_double_quoted’
bash-5.3/subst.c:873:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING: [#def328]
bash-5.3/subst.c:1018:9: warning[-Wunused-but-set-variable=]: variable ‘ret’ set but not used
Error: COMPILER_WARNING (CWE-569): [#def329]
bash-5.3/subst.c: scope_hint: In function ‘skip_double_quoted’
bash-5.3/subst.c:1024:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def330]
bash-5.3/subst.c: scope_hint: In function ‘string_extract_verbatim’
bash-5.3/subst.c:1182:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-563): [#def331]
bash-5.3/subst.c:1363:10: warning[-Wunused-variable]: unused variable ‘xflags’
Error: COMPILER_WARNING: [#def332]
bash-5.3/subst.c: scope_hint: In function ‘extract_delimited_string’
bash-5.3/subst.c:1365:9: warning[-Wunused-but-set-variable=]: variable ‘t’ set but not used
Error: COMPILER_WARNING (CWE-569): [#def333]
bash-5.3/subst.c: scope_hint: In function ‘extract_heredoc_dolbrace_string’
bash-5.3/subst.c:1560:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING: [#def334]
bash-5.3/subst.c: scope_hint: In function ‘extract_dollar_brace_string’
bash-5.3/subst.c:1644:11: warning[-Wstringop-truncation]: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length
bash-5.3/subst.c:1640:18: note: length computed here
Error: COMPILER_WARNING: [#def335]
bash-5.3/subst.c:1830:18: warning[-Wunused-but-set-variable=]: variable ‘t’ set but not used
Error: COMPILER_WARNING (CWE-569): [#def336]
bash-5.3/subst.c: scope_hint: In function ‘extract_dollar_brace_string’
bash-5.3/subst.c:1851:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING: [#def337]
bash-5.3/subst.c:2090:9: warning[-Wunused-but-set-variable=]: variable ‘temp’ set but not used
Error: COMPILER_WARNING (CWE-569): [#def338]
bash-5.3/subst.c: scope_hint: In function ‘skip_matched_pair’
bash-5.3/subst.c:2103:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING: [#def339]
bash-5.3/subst.c:2205:9: warning[-Wunused-but-set-variable=]: variable ‘temp’ set but not used
Error: COMPILER_WARNING (CWE-569): [#def340]
bash-5.3/subst.c: scope_hint: In function ‘skip_to_delim’
bash-5.3/subst.c:2222:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def341]
bash-5.3/subst.c: scope_hint: In function ‘skip_to_histexp’
bash-5.3/subst.c:2393:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def342]
bash-5.3/subst.c: scope_hint: In function ‘do_assignment_internal’
bash-5.3/subst.c:3599:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def343]
bash-5.3/subst.c: scope_hint: In function ‘expand_string_dollar_quote’
bash-5.3/subst.c:4151:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: CPPCHECK_WARNING (CWE-562): [#def344]
bash-5.3/subst.c:4709: error[returnDanglingLifetime]: Returning pointer to local variable 'result' that will be invalid when returning.
Error: CPPCHECK_WARNING (CWE-562): [#def345]
bash-5.3/subst.c:4831: error[returnDanglingLifetime]: Returning pointer to local variable 'result' that will be invalid when returning.
Error: COMPILER_WARNING (CWE-1164): [#def346]
bash-5.3/subst.c:4942:1: warning[-Wunused-function]: ‘list_quote_ifs’ defined but not used
Error: COMPILER_WARNING (CWE-457): [#def347]
bash-5.3/subst.c: scope_hint: In function ‘read_comsub’
bash-5.3/subst.c:6718:11: warning[-Wmaybe-uninitialized]: ‘bufp’ may be used uninitialized
bash-5.3/subst.c:6684:40: note: ‘bufp’ was declared here
Error: COMPILER_WARNING (CWE-1164): [#def348]
bash-5.3/subst.c:6859:1: warning[-Wunused-function]: ‘uw_unbind_variable’ defined but not used
Error: COMPILER_WARNING (CWE-569): [#def349]
bash-5.3/subst.c: scope_hint: In function ‘comsub_quote_string’
bash-5.3/subst.c:6910:24: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def350]
bash-5.3/subst.c: scope_hint: In function ‘function_substitute’
bash-5.3/subst.c:6944:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def351]
bash-5.3/subst.c: scope_hint: In function ‘parameter_brace_expand_word’
bash-5.3/subst.c:7774:12: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def352]
bash-5.3/subst.c:7804:12: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-457): [#def353]
bash-5.3/subst.c: scope_hint: In function ‘parameter_brace_find_indir’
bash-5.3/subst.c:7863:33: warning[-Wmaybe-uninitialized]: ‘oldex’ may be used uninitialized
bash-5.3/subst.c:7844:15: note: ‘oldex’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def354]
bash-5.3/subst.c:8464:9: warning[-Wmaybe-uninitialized]: ‘a’ may be used uninitialized
bash-5.3/subst.c: scope_hint: In function ‘parameter_brace_substring’
bash-5.3/subst.c:8402:9: note: ‘a’ was declared here
Error: COMPILER_WARNING (CWE-569): [#def355]
bash-5.3/subst.c: scope_hint: In function ‘shouldexp_replacement’
bash-5.3/subst.c:9160:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-563): [#def356]
bash-5.3/subst.c: scope_hint: In function ‘pat_subst’
bash-5.3/subst.c:9291:18: warning[-Wunused-variable]: unused variable ‘clen’
Error: COMPILER_WARNING (CWE-569): [#def357]
bash-5.3/subst.c: scope_hint: In function ‘parameter_brace_expand’
bash-5.3/subst.c:9865:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def358]
bash-5.3/subst.c:9875:11: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING: [#def359]
bash-5.3/subst.c:11274:7: warning[-Wunused-but-set-variable=]: variable ‘local_expanded’ set but not used
Error: COMPILER_WARNING (CWE-1164): [#def360]
bash-5.3/subst.c: scope_hint: In function ‘expand_word_internal’
bash-5.3/subst.c:11961:1: warning[-Wunused-label]: label ‘add_quoted_character’ defined but not used
Error: COMPILER_WARNING (CWE-569): [#def361]
bash-5.3/subst.c: scope_hint: In function ‘string_quote_removal’
bash-5.3/subst.c:12219:29: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def362]
bash-5.3/subst.c: scope_hint: In function ‘brace_expand_word_list’
bash-5.3/subst.c:12748:28: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-563): [#def363]
bash-5.3/subst.c:12949:35: warning[-Wunused-variable]: unused variable ‘inheriting’
Error: COMPILER_WARNING (CWE-823): [#def364]
bash-5.3/subst.c: scope_hint: In function ‘expand_declaration_argument’
bash-5.3/subst.c:12991:33: warning[-Wchar-subscripts]: array subscript has type ‘char’
Error: COMPILER_WARNING (CWE-569): [#def365]
bash-5.3/support/bashversion.c: scope_hint: In function ‘main’
bash-5.3/support/bashversion.c:67:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-563): [#def366]
bash-5.3/support/man2html.c:104:13: warning[-Wunused-variable]: ‘location_base’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def367]
bash-5.3/support/man2html.c:148:1: warning[-Wunused-function]: ‘strgrow’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def368]
bash-5.3/support/man2html.c:190:1: warning[-Wunused-function]: ‘strduplicate’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def369]
bash-5.3/support/man2html.c:210:1: warning[-Wunused-function]: ‘strmaxcat’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def370]
bash-5.3/support/man2html.c:240:1: warning[-Wunused-function]: ‘escape_input’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def371]
bash-5.3/support/man2html.c:298:14: warning[-Wunused-variable]: ‘fname’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def372]
bash-5.3/support/man2html.c:299:14: warning[-Wunused-variable]: ‘idxfile’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def373]
bash-5.3/support/man2html.c:428:13: warning[-Wunused-variable]: ‘eqndelimopen’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def374]
bash-5.3/support/man2html.c:428:31: warning[-Wunused-variable]: ‘eqndelimclose’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def375]
bash-5.3/support/man2html.c: scope_hint: In function ‘read_man_page’
bash-5.3/support/man2html.c:517:17: warning[-Wunused-variable]: unused variable ‘i’
Error: COMPILER_WARNING (CWE-563): [#def376]
bash-5.3/support/man2html.c:946:12: warning[-Wunused-variable]: ‘asint’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def377]
bash-5.3/support/man2html.c:1448:17: warning[-Wunused-variable]: unused variable ‘t’
Error: COMPILER_WARNING (CWE-563): [#def378]
bash-5.3/support/man2html.c: scope_hint: In function ‘scan_table’
bash-5.3/support/man2html.c:1453:44: warning[-Wunused-variable]: unused variable ‘ftable’
Error: COMPILER_WARNING (CWE-563): [#def379]
bash-5.3/support/man2html.c: scope_hint: In function ‘scan_expression’
bash-5.3/support/man2html.c:1783:36: warning[-Wunused-variable]: unused variable ‘j’
Error: COMPILER_WARNING (CWE-569): [#def380]
bash-5.3/support/man2html.c: scope_hint: In function ‘skip_till_newline’
bash-5.3/support/man2html.c:2160:19: warning[-Wparentheses]: suggest parentheses around ‘&&’ within ‘||’
Error: COMPILER_WARNING (CWE-563): [#def381]
bash-5.3/support/man2html.c: scope_hint: In function ‘scan_request’
bash-5.3/support/man2html.c:2252:41: warning[-Wunused-variable]: unused variable ‘oldcurpos’
Error: COMPILER_WARNING (CWE-563): [#def382]
bash-5.3/support/man2html.c:2549:41: warning[-Wunused-variable]: unused variable ‘f’
Error: CPPCHECK_WARNING (CWE-786): [#def383]
bash-5.3/support/man2html.c:2708: error[negativeIndex]: Array 'wordlist[100]' accessed at index wordlist[*][-1], which is out of bounds.
Error: CPPCHECK_WARNING (CWE-786): [#def384]
bash-5.3/support/man2html.c:2908: error[negativeIndex]: Array 'wordlist[100]' accessed at index wordlist[*][-1], which is out of bounds.
Error: CPPCHECK_WARNING (CWE-786): [#def385]
bash-5.3/support/man2html.c:2947: error[negativeIndex]: Array 'wordlist[100]' accessed at index wordlist[*][-1], which is out of bounds.
Error: CPPCHECK_WARNING (CWE-457): [#def386]
bash-5.3/support/man2html.c:3108: warning[uninitvar]: Uninitialized variable: list_options
Error: CPPCHECK_WARNING (CWE-457): [#def387]
bash-5.3/support/man2html.c:3241: warning[uninitvar]: Uninitialized variable: bd_options
Error: CPPCHECK_WARNING (CWE-786): [#def388]
bash-5.3/support/man2html.c:3688: error[negativeIndex]: Array 'wordlist[100]' accessed at index wordlist[*][-1], which is out of bounds.
Error: COMPILER_WARNING (CWE-569): [#def389]
bash-5.3/support/man2html.c:3702:45: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-1164): [#def390]
bash-5.3/support/man2html.c: scope_hint: At top level
bash-5.3/support/man2html.c:3757:1: warning[-Wunused-function]: ‘flush’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def391]
bash-5.3/support/man2html.c:3772:17: warning[-Wunused-variable]: unused variable ‘i’
Error: COMPILER_WARNING (CWE-563): [#def392]
bash-5.3/support/man2html.c: scope_hint: In function ‘scan_troff’
bash-5.3/support/man2html.c:3831:33: warning[-Wunused-variable]: unused variable ‘mx’
Error: COMPILER_WARNING (CWE-563): [#def393]
bash-5.3/support/man2html.c:4001:17: warning[-Wunused-variable]: unused variable ‘f’
Error: COMPILER_WARNING (CWE-563): [#def394]
bash-5.3/support/man2html.c:4003:17: warning[-Wunused-variable]: unused variable ‘l’
Error: COMPILER_WARNING (CWE-563): [#def395]
bash-5.3/support/man2html.c: scope_hint: In function ‘main’
bash-5.3/support/man2html.c:4005:21: warning[-Wunused-variable]: unused variable ‘fullname’
Error: COMPILER_WARNING (CWE-569): [#def396]
bash-5.3/trap.c: scope_hint: In function ‘save_bash_trapsig’
bash-5.3/trap.c:301:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: CPPCHECK_WARNING (CWE-457): [#def397]
bash-5.3/trap.c:486: error[legacyUninitvar]: Uninitialized variable: save_return_catch
Error: CPPCHECK_WARNING (CWE-457): [#def398]
bash-5.3/trap.c:1189: error[uninitvar]: Uninitialized variable: save_return_catch
Error: COMPILER_WARNING (CWE-569): [#def399]
bash-5.3/unwind_prot.c: scope_hint: In function ‘unwind_frame_discard_internal’
bash-5.3/unwind_prot.c:232:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def400]
bash-5.3/unwind_prot.c: scope_hint: In function ‘unwind_frame_run_internal’
bash-5.3/unwind_prot.c:267:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-563): [#def401]
bash-5.3/variables.c:189:21: warning[-Wunused-variable]: ‘last_context_searched’ defined but not used
Error: COMPILER_WARNING (CWE-1164): [#def402]
bash-5.3/variables.c: scope_hint: At top level
bash-5.3/variables.c:287:13: warning[-Wunused-function]: ‘init_shell_variable’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-569): [#def403]
bash-5.3/variables.c: scope_hint: In function ‘initialize_shell_variables’
bash-5.3/variables.c:428:15: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def404]
bash-5.3/variables.c:435:19: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING: [#def405]
bash-5.3/variables.c: scope_hint: In function ‘set_machine_vars’
bash-5.3/variables.c:721:14: warning[-Wunused-but-set-variable=]: variable ‘temp_var’ set but not used
Error: COMPILER_WARNING (CWE-569): [#def406]
bash-5.3/variables.c: scope_hint: In function ‘var_lookup’
bash-5.3/variables.c:1949:9: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def407]
bash-5.3/variables.c: scope_hint: In function ‘delete_var’
bash-5.3/variables.c:3940:9: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def408]
bash-5.3/variables.c: scope_hint: In function ‘makunbound’
bash-5.3/variables.c:3967:9: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-563): [#def409]
bash-5.3/variables.c: scope_hint: In function ‘mk_env_string’
bash-5.3/variables.c:4724:15: warning[-Wunused-variable]: unused variable ‘isarray’
Error: COMPILER_WARNING (CWE-569): [#def410]
bash-5.3/variables.c: scope_hint: In function ‘make_env_array_from_var_list’
bash-5.3/variables.c:4858:31: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def411]
bash-5.3/variables.c: scope_hint: In function ‘pop_var_context’
bash-5.3/variables.c:5358:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING: [#def412]
bash-5.3/variables.c: scope_hint: In function ‘pop_scope’
bash-5.3/variables.c:5452:7: warning[-Wunused-but-set-variable=]: variable ‘is_bltinenv’ set but not used
Error: COMPILER_WARNING (CWE-569): [#def413]
bash-5.3/variables.c: scope_hint: In function ‘sv_history_control’
bash-5.3/variables.c:6125:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING (CWE-569): [#def414]
bash-5.3/variables.c: scope_hint: In function ‘sv_histtimefmt’
bash-5.3/variables.c:6172:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
Error: COMPILER_WARNING: [#def415]
bash-5.3/xmalloc.c:123:20: warning[-Walloc-size-larger-than=]: argument 2 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
/usr/include/stdlib.h: scope_hint: In function ‘shell_getc’
/usr/include/stdlib.h:687:14: note: in a call to allocation function ‘realloc’ declared here
Error: COMPILER_WARNING: [#def416]
bash-5.3/xmalloc.c:123:47: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
/usr/include/stdlib.h: scope_hint: In function ‘shell_getc’
/usr/include/stdlib.h:676:14: note: in a call to allocation function ‘malloc’ declared here
Scan Properties
| 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 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-154.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 | bash-5.3.9-3.fc44 |
| store-results-to | /tmp/tmp45kspu_f/bash-5.3.9-3.fc44.tar.xz |
| time-created | 2026-08-03 13:28:57 |
| time-finished | 2026-08-03 13:32:56 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp45kspu_f/bash-5.3.9-3.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp45kspu_f/bash-5.3.9-3.fc44.src.rpm' |
| tool-version | csmock-3.8.7.HEAD-1.el9 |