man-db-2.13.0-1.fc42
List of Findings
Error: SHELLCHECK_WARNING (CWE-569): [#def1]
/etc/cron.daily/man-db.cron:22:15: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
Error: GCC_ANALYZER_WARNING (CWE-122): [#def2]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c: scope_hint: In function 'make_hol'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:491:22: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:63: included_from: Included from here.
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:1863:1: note: in expansion of macro '__argp_state_help'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:1701:3: note: in expansion of macro '__flockfile'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:33: included_from: Included from here.
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:469:17: note: in expansion of macro 'oalias'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:284:19: note: in expansion of macro '__option_is_end'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:472:24: note: in expansion of macro 'oend'
/usr/include/features.h:511: included_from: Included from here.
/usr/include/assert.h:35: included_from: Included from here.
man-db-2.13.0-build/man-db-2.13.0/config.h:3287: included_from: Included from here.
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:24: included_from: Included from here.
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp.h:627:8: note: in expansion of macro '__option_is_end'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:61: included_from: Included from here.
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:284:19: note: in expansion of macro '__option_is_end'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:472:24: note: in expansion of macro 'oend'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:491:22: note: write of 8 bytes to beyond the end of the region
Error: GCC_ANALYZER_WARNING (CWE-122): [#def3]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:492:22: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:1863:1: note: in expansion of macro '__argp_state_help'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:1701:3: note: in expansion of macro '__flockfile'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:469:17: note: in expansion of macro 'oalias'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:284:19: note: in expansion of macro '__option_is_end'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:472:24: note: in expansion of macro 'oend'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp.h:627:8: note: in expansion of macro '__option_is_end'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:284:19: note: in expansion of macro '__option_is_end'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:472:24: note: in expansion of macro 'oend'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:492:22: note: write of 4 bytes to beyond the end of the region
Error: GCC_ANALYZER_WARNING (CWE-122): [#def4]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:493:32: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:1863:1: note: in expansion of macro '__argp_state_help'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:1701:3: note: in expansion of macro '__flockfile'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:469:17: note: in expansion of macro 'oalias'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:284:19: note: in expansion of macro '__option_is_end'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:472:24: note: in expansion of macro 'oend'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp.h:627:8: note: in expansion of macro '__option_is_end'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:284:19: note: in expansion of macro '__option_is_end'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:472:24: note: in expansion of macro 'oend'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:493:32: note: write of 8 bytes to beyond the end of the region
Error: GCC_ANALYZER_WARNING (CWE-457): [#def5]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c: scope_hint: In function 'hol_find_entry'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:663:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*entry.opt'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:1863:1: note: in expansion of macro '__argp_state_help'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:1701:3: note: in expansion of macro '__flockfile'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:469:17: note: in expansion of macro 'oalias'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:474:17: note: in expansion of macro 'oalias'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c: scope_hint: In function 'hol_find_entry'
Error: CPPCHECK_WARNING (CWE-476): [#def6]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/argp-help.c:1046: error[ctunullpointer]: Null pointer dereference: argp
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/file-set.c: scope_hint: In function 'record_file'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/file-set.c:43:8: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/file-set.c:49:8: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
Error: CPPCHECK_WARNING (CWE-758): [#def9]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/getopt.c:272: warning[objectIndex]: The address of variable 'ambig_fallback' might be accessed at non-zero index.
Error: CPPCHECK_WARNING (CWE-457): [#def10]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anylinked_list2.h:952: error[uninitvar]: Uninitialized variables: result.count, result.i, result.j
Error: GCC_ANALYZER_WARNING (CWE-457): [#def11]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_linkedhash_list.c:77: included_from: Included from here.
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anylinked_list2.h: scope_hint: In function 'gl_linked_iterator'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anylinked_list2.h:952:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'result.count'
Error: CPPCHECK_WARNING (CWE-457): [#def12]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anylinked_list2.h:1023: warning[uninitvar]: Uninitialized variables: result.count, result.i, result.j
Error: GCC_ANALYZER_WARNING (CWE-457): [#def13]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anylinked_list2.h: scope_hint: In function 'gl_linked_iterator_from_to'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anylinked_list2.h:1023:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'result.count'
Error: CPPCHECK_WARNING (CWE-457): [#def14]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anytree_list2.h:603: error[uninitvar]: Uninitialized variables: result.count, result.i, result.j
Error: GCC_ANALYZER_WARNING (CWE-457): [#def15]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_rbtree_list.c:37: included_from: Included from here.
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anytree_list2.h: scope_hint: In function 'gl_tree_iterator'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anytree_list2.h:603:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'result.count'
Error: CPPCHECK_WARNING (CWE-457): [#def16]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anytree_list2.h:627: warning[uninitvar]: Uninitialized variables: result.count, result.i, result.j
Error: GCC_ANALYZER_WARNING (CWE-457): [#def17]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anytree_list2.h: scope_hint: In function 'gl_tree_iterator_from_to'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_anytree_list2.h:627:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'result.count'
Error: CPPCHECK_WARNING (CWE-457): [#def18]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_array_list.c:477: error[uninitvar]: Uninitialized variables: result.i, result.j
Error: GCC_ANALYZER_WARNING (CWE-457): [#def19]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_array_list.c: scope_hint: In function 'gl_array_iterator'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_array_list.c:477:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'result.i'
Error: CPPCHECK_WARNING (CWE-457): [#def20]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_array_list.c:498: warning[uninitvar]: Uninitialized variables: result.i, result.j
Error: GCC_ANALYZER_WARNING (CWE-457): [#def21]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_array_list.c: scope_hint: In function 'gl_array_iterator_from_to'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_array_list.c:498:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'result.i'
Error: CPPCHECK_WARNING (CWE-457): [#def22]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_hash_map.c:271: error[uninitvar]: Uninitialized variables: result.count, result.q
Error: GCC_ANALYZER_WARNING (CWE-457): [#def23]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_hash_map.c: scope_hint: In function 'gl_hash_iterator'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_hash_map.c:271:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'result.count'
Error: CPPCHECK_WARNING (CWE-457): [#def24]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_hash_set.c:254: error[uninitvar]: Uninitialized variables: result.count, result.q
Error: GCC_ANALYZER_WARNING (CWE-457): [#def25]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_hash_set.c: scope_hint: In function 'gl_hash_iterator'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/gl_hash_set.c:254:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'result.count'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/ialloc.h:60:37: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(s + 1)'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'ximalloc'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'ximalloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/ialloc.h:60:37: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(s)'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'ximalloc'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'ximalloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/ialloc.h:106:10: warning[-Wanalyzer-malloc-leak]: leak of 'xicalloc(s, 1)'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'xicalloc'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'xicalloc'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def29]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/stdopen.c: scope_hint: In function 'stdopen'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/stdopen.c:40:30: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'new_fd'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/stdopen.c:25: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/stdopen.c:52:63: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'new_fd'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def31]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/stdopen.c:55:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'xmalloc'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(n)'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c:22: included_from: Included from here.
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c:57:10: note: in expansion of macro 'XNMALLOC'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c:57:10: note: in expansion of macro 'XNMALLOC'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'xmalloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(s)'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'xmalloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'xcalloc'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c:298:10: warning[-Wanalyzer-malloc-leak]: leak of 'xcalloc(s, 1)'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'xcalloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'xmemdup'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c:314:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmemdup(string, strlen(string) + 1)'
man-db-2.13.0-build/man-db-2.13.0/gl/lib/xmalloc.c: scope_hint: In function 'xmemdup'
Error: COMPILER_WARNING (CWE-1164): [#def36]
man-db-2.13.0-build/man-db-2.13.0/lib/security.c: scope_hint: At top level
man-db-2.13.0-build/man-db-2.13.0/lib/security.c:41:9: warning[-Wunused-macros]: macro "_" is not used
Error: COMPILER_WARNING: [#def37]
man-db-2.13.0-build/man-db-2.13.0/lib/security.c: scope_hint: In function 'running_setuid'
man-db-2.13.0-build/man-db-2.13.0/lib/security.c:99:21: warning[-Wsuggest-attribute=const]: function might be candidate for attribute 'const'
Error: COMPILER_WARNING: [#def38]
man-db-2.13.0-build/man-db-2.13.0/src/manp.c:496:7: warning[-Wsuggest-attribute=malloc]: function might be candidate for attribute ‘malloc’
Error: CPPCHECK_WARNING (CWE-476): [#def39]
man-db-2.13.0-build/man-db-2.13.0/src/zsoelim.c:1940: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def40]
man-db-2.13.0-build/man-db-2.13.0/src/zsoelim.c:1941: warning[nullPointer]: Possible null pointer dereference: b
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-111.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | man-db-2.13.0-1.fc42 |
store-results-to | /tmp/tmp_qg63j94/man-db-2.13.0-1.fc42.tar.xz |
time-created | 2024-11-13 02:04:42 |
time-finished | 2024-11-13 02:08:02 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp_qg63j94/man-db-2.13.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp_qg63j94/man-db-2.13.0-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |