Error: SHELLCHECK_WARNING (CWE-480): [#def1] /usr/share/gettext/config.rpath:647:17: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ). # 645| case "$host_os" in # 646| irix5* | nonstopux*) # 647|-> libsuff= shlibsuff= # 648| ;; # 649| *) Error: SHELLCHECK_WARNING (CWE-480): [#def2] /usr/share/gettext/config.rpath:651:64: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ). # 649| *) # 650| case $LD in # 651|-> *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; # 652| *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; # 653| *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; Error: SHELLCHECK_WARNING (CWE-563): [#def3] /usr/share/gettext/config.rpath:654:14: warning[SC2034]: libsuff appears unused. Verify use (or export if used externally). # 652| *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; # 653| *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; # 654|-> *) libsuff= shlibsuff= ;; # 655| esac # 656| ;; Error: SHELLCHECK_WARNING (CWE-480): [#def4] /usr/share/gettext/config.rpath:654:22: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ). # 652| *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; # 653| *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; # 654|-> *) libsuff= shlibsuff= ;; # 655| esac # 656| ;; Error: SHELLCHECK_WARNING (CWE-563): [#def5] /usr/share/gettext/config.rpath:654:23: warning[SC2034]: shlibsuff appears unused. Verify use (or export if used externally). # 652| *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; # 653| *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; # 654|-> *) libsuff= shlibsuff= ;; # 655| esac # 656| ;; Error: COMPILER_WARNING (CWE-704): [#def6] gettext-0.26/gettext-runtime/gnulib-lib/string-desc.c: scope_hint: In function ‘_sd_index’ gettext-0.26/gettext-runtime/gnulib-lib/string-desc.c:116:21: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type # 116 | void *found = memchr (s_data, (unsigned char) c, s_nbytes); # | ^~~~~~ # 114| if (s_nbytes > 0) # 115| { # 116|-> void *found = memchr (s_data, (unsigned char) c, s_nbytes); # 117| if (found != NULL) # 118| return (char *) found - s_data; Error: COMPILER_WARNING (CWE-704): [#def7] gettext-0.26/gettext-runtime/gnulib-lib/string-desc.c:116:21: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type # 114| if (s_nbytes > 0) # 115| { # 116|-> void *found = memchr (s_data, (unsigned char) c, s_nbytes); # 117| if (found != NULL) # 118| return (char *) found - s_data; Error: GCC_ANALYZER_WARNING (CWE-401): [#def8] gettext-0.26/gettext-runtime/src/gettext.c:215:15: warning[-Wanalyzer-malloc-leak]: leak of ‘msgid’ gettext-0.26/gettext-runtime/src/gettext.c:55:1: enter_function: entry to ‘main’ gettext-0.26/gettext-runtime/src/gettext.c:99:10: branch_true: following ‘true’ branch... gettext-0.26/gettext-runtime/src/gettext.c:100:5: branch_true: ...to here gettext-0.26/gettext-runtime/src/gettext.c:99:10: branch_true: following ‘true’ branch... gettext-0.26/gettext-runtime/src/gettext.c:100:5: branch_true: ...to here gettext-0.26/gettext-runtime/src/gettext.c:133:6: branch_false: following ‘false’ branch (when ‘do_version == 0’)... gettext-0.26/gettext-runtime/src/gettext.c:149:6: branch_false: ...to here gettext-0.26/gettext-runtime/src/gettext.c:149:6: branch_false: following ‘false’ branch (when ‘do_help == 0’)... gettext-0.26/gettext-runtime/src/gettext.c:154:6: branch_false: ...to here gettext-0.26/gettext-runtime/src/gettext.c:154:6: branch_true: following ‘true’ branch (when ‘do_shell != 0’)... gettext-0.26/gettext-runtime/src/gettext.c:201:11: branch_true: ...to here gettext-0.26/gettext-runtime/src/gettext.c:201:10: branch_true: following ‘true’ branch... gettext-0.26/gettext-runtime/src/gettext.c:205:14: branch_true: ...to here gettext-0.26/gettext-runtime/src/gettext.c:205:14: branch_false: following ‘false’ branch... gettext-0.26/gettext-runtime/src/gettext.c:218:18: branch_true: following ‘true’ branch... gettext-0.26/gettext-runtime/src/gettext.c:219:25: branch_true: ...to here gettext-0.26/gettext-runtime/src/gettext.c:219:25: call_function: calling ‘expand_escapes’ from ‘main’ gettext-0.26/gettext-runtime/src/gettext.c:219:25: return_function: returning to ‘main’ from ‘expand_escapes’ gettext-0.26/gettext-runtime/src/gettext.c:222:15: branch_true: following ‘true’ branch... gettext-0.26/gettext-runtime/src/gettext.c:229:18: branch_true: following ‘true’ branch... gettext-0.26/gettext-runtime/src/gettext.c:230:17: branch_true: ...to here gettext-0.26/gettext-runtime/src/gettext.c:232:18: branch_true: following ‘true’ branch... gettext-0.26/gettext-runtime/src/gettext.c:232:18: branch_true: ...to here gettext-0.26/gettext-runtime/src/gettext.c:218:18: branch_false: following ‘false’ branch... gettext-0.26/gettext-runtime/src/gettext.c:222:15: branch_false: ...to here gettext-0.26/gettext-runtime/src/gettext.c:215:15: danger: ‘msgid’ leaks here; was allocated at [(27)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/26) # 213| do # 214| { # 215|-> msgid = argv[optind++]; # 216| # 217| /* Expand escape sequences if enabled. */ Error: COMPILER_WARNING (CWE-704): [#def9] gettext-0.26/gettext-tools/gnulib-lib/c-strstr.c: scope_hint: In function 'c_strstr' gettext-0.26/gettext-tools/gnulib-lib/c-strstr.c:31:10: warning[-Wdiscarded-qualifiers]: return discards 'const' qualifier from pointer target type # 31 | return strstr (haystack, needle); # | ^~~~~~ # 29| /* POSIX says that strstr() interprets the strings as byte sequences, not # 30| as character sequences in the current locale. */ # 31|-> return strstr (haystack, needle); # 32| } Error: COMPILER_WARNING (CWE-704): [#def10] gettext-0.26/gettext-tools/gnulib-lib/c-strstr.c:31:10: warning[-Wdiscarded-qualifiers]: return discards 'const' qualifier from pointer target type # 29| /* POSIX says that strstr() interprets the strings as byte sequences, not # 30| as character sequences in the current locale. */ # 31|-> return strstr (haystack, needle); # 32| } Error: CPPCHECK_WARNING (CWE-457): [#def11] gettext-0.26/gettext-tools/gnulib-lib/gl_carray_list.c:668: warning[uninitvar]: Uninitialized variables: result.p, result.q # 666| #endif # 667| # 668|-> return result; # 669| } # 670| Error: COMPILER_WARNING (CWE-704): [#def12] gettext-0.26/gettext-tools/gnulib-lib/string-desc.c: scope_hint: In function '_sd_index' gettext-0.26/gettext-tools/gnulib-lib/string-desc.c:116:21: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type # 116 | void *found = memchr (s_data, (unsigned char) c, s_nbytes); # | ^~~~~~ # 114| if (s_nbytes > 0) # 115| { # 116|-> void *found = memchr (s_data, (unsigned char) c, s_nbytes); # 117| if (found != NULL) # 118| return (char *) found - s_data; Error: COMPILER_WARNING (CWE-704): [#def13] gettext-0.26/gettext-tools/gnulib-lib/string-desc.c:116:21: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type # 114| if (s_nbytes > 0) # 115| { # 116|-> void *found = memchr (s_data, (unsigned char) c, s_nbytes); # 117| if (found != NULL) # 118| return (char *) found - s_data; Error: COMPILER_WARNING (CWE-704): [#def14] gettext-0.26/gettext-tools/libgettextpo/c-strstr.c: scope_hint: In function 'libgettextpo_c_strstr' gettext-0.26/gettext-tools/libgettextpo/c-strstr.c:31:10: warning[-Wdiscarded-qualifiers]: return discards 'const' qualifier from pointer target type # 31 | return strstr (haystack, needle); # | ^~~~~~ # 29| /* POSIX says that strstr() interprets the strings as byte sequences, not # 30| as character sequences in the current locale. */ # 31|-> return strstr (haystack, needle); # 32| } Error: COMPILER_WARNING (CWE-704): [#def15] gettext-0.26/gettext-tools/libgettextpo/c-strstr.c:31:10: warning[-Wdiscarded-qualifiers]: return discards 'const' qualifier from pointer target type # 29| /* POSIX says that strstr() interprets the strings as byte sequences, not # 30| as character sequences in the current locale. */ # 31|-> return strstr (haystack, needle); # 32| } Error: COMPILER_WARNING (CWE-704): [#def16] gettext-0.26/gettext-tools/libgettextpo/c-strstr.c:31:10: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type # 29| /* POSIX says that strstr() interprets the strings as byte sequences, not # 30| as character sequences in the current locale. */ # 31|-> return strstr (haystack, needle); # 32| } Error: COMPILER_WARNING (CWE-704): [#def17] gettext-0.26/gettext-tools/libgettextpo/string-desc.c: scope_hint: In function 'libgettextpo__sd_index' gettext-0.26/gettext-tools/libgettextpo/string-desc.c:116:21: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type # 116 | void *found = memchr (s_data, (unsigned char) c, s_nbytes); # | ^~~~~~ # 114| if (s_nbytes > 0) # 115| { # 116|-> void *found = memchr (s_data, (unsigned char) c, s_nbytes); # 117| if (found != NULL) # 118| return (char *) found - s_data; Error: COMPILER_WARNING (CWE-704): [#def18] gettext-0.26/gettext-tools/libgettextpo/string-desc.c:116:21: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type # 114| if (s_nbytes > 0) # 115| { # 116|-> void *found = memchr (s_data, (unsigned char) c, s_nbytes); # 117| if (found != NULL) # 118| return (char *) found - s_data; Error: COMPILER_WARNING (CWE-704): [#def19] gettext-0.26/gettext-tools/libgettextpo/string-desc.c:116:21: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type # 114| if (s_nbytes > 0) # 115| { # 116|-> void *found = memchr (s_data, (unsigned char) c, s_nbytes); # 117| if (found != NULL) # 118| return (char *) found - s_data; Error: COMPILER_WARNING (CWE-704): [#def20] gettext-0.26/gettext-tools/libgrep/gnulib-lib/memchr2.c: scope_hint: In function ‘memchr2’ gettext-0.26/gettext-tools/libgrep/gnulib-lib/memchr2.c:58:12: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type # 58 | return memchr (s, c1, n); # | ^~~~~~ # 56| # 57| if (c1 == c2) # 58|-> return memchr (s, c1, n); # 59| # 60| /* Handle the first few bytes by reading one byte at a time. Error: COMPILER_WARNING (CWE-704): [#def21] gettext-0.26/gettext-tools/libgrep/gnulib-lib/memchr2.c:58:12: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type # 56| # 57| if (c1 == c2) # 58|-> return memchr (s, c1, n); # 59| # 60| /* Handle the first few bytes by reading one byte at a time. Error: COMPILER_WARNING (CWE-704): [#def22] gettext-0.26/gettext-tools/src/cldr-plurals.c: scope_hint: In function ‘extract_rules’ gettext-0.26/gettext-tools/src/cldr-plurals.c:155:15: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type # 155 | char *p = strrchr (sb_xcontents_c (&buffer), ';'); # | ^~~~~~~ # 153| { # 154| /* Scrub the last semicolon, if any. */ # 155|-> char *p = strrchr (sb_xcontents_c (&buffer), ';'); # 156| if (p) # 157| *p = '\0'; Error: COMPILER_WARNING (CWE-704): [#def23] gettext-0.26/gettext-tools/src/cldr-plurals.c:155:15: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type # 153| { # 154| /* Scrub the last semicolon, if any. */ # 155|-> char *p = strrchr (sb_xcontents_c (&buffer), ';'); # 156| if (p) # 157| *p = '\0'; Error: COMPILER_WARNING (CWE-704): [#def24] gettext-0.26/libtextstyle/lib/glib/gstrfuncs.c: scope_hint: In function 'libtextstyle_g_strstr_len' gettext-0.26/libtextstyle/lib/glib/gstrfuncs.c:2622:12: warning[-Wdiscarded-qualifiers]: return discards 'const' qualifier from pointer target type # 2622 | return strstr (haystack, needle); # | ^~~~~~ # 2620| # 2621| if (haystack_len < 0) # 2622|-> return strstr (haystack, needle); # 2623| else # 2624| { Error: COMPILER_WARNING (CWE-704): [#def25] gettext-0.26/libtextstyle/lib/glib/gstrfuncs.c:2622:12: warning[-Wdiscarded-qualifiers]: return discards 'const' qualifier from pointer target type # 2620| # 2621| if (haystack_len < 0) # 2622|-> return strstr (haystack, needle); # 2623| else # 2624| { Error: COMPILER_WARNING (CWE-704): [#def26] gettext-0.26/libtextstyle/lib/glib/gstrfuncs.c:2622:12: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type # 2620| # 2621| if (haystack_len < 0) # 2622|-> return strstr (haystack, needle); # 2623| else # 2624| { Error: COMPILER_WARNING (CWE-704): [#def27] gettext-0.26/libtextstyle/lib/libcroco/cr-rgb.c: scope_hint: In function 'libtextstyle_cr_rgb_set_from_name' gettext-0.26/libtextstyle/lib/libcroco/cr-rgb.c:490:16: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 490 | result = bsearch (a_color_name, # | ^ # 488| g_return_val_if_fail (a_this && a_color_name, CR_BAD_PARAM_ERROR); # 489| # 490|-> result = bsearch (a_color_name, # 491| gv_standard_colors, # 492| G_N_ELEMENTS (gv_standard_colors), Error: COMPILER_WARNING (CWE-704): [#def28] gettext-0.26/libtextstyle/lib/libcroco/cr-rgb.c:490:16: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 488| g_return_val_if_fail (a_this && a_color_name, CR_BAD_PARAM_ERROR); # 489| # 490|-> result = bsearch (a_color_name, # 491| gv_standard_colors, # 492| G_N_ELEMENTS (gv_standard_colors), Error: COMPILER_WARNING (CWE-704): [#def29] gettext-0.26/libtextstyle/lib/libcroco/cr-rgb.c:490:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 488| g_return_val_if_fail (a_this && a_color_name, CR_BAD_PARAM_ERROR); # 489| # 490|-> result = bsearch (a_color_name, # 491| gv_standard_colors, # 492| G_N_ELEMENTS (gv_standard_colors),
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-84.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | gettext-1.0-3.fc45 |
| diffbase-store-results-to | /tmp/tmpr3s4gjli/gettext-1.0-3.fc45.tar.xz |
| diffbase-time-created | 2026-08-03 14:44:48 |
| diffbase-time-finished | 2026-08-03 15:03:41 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpr3s4gjli/gettext-1.0-3.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpr3s4gjli/gettext-1.0-3.fc45.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.HEAD-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-84.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 | gettext-0.26-4.fc44 |
| store-results-to | /tmp/tmpwzosro62/gettext-0.26-4.fc44.tar.xz |
| time-created | 2026-08-03 14:25:13 |
| time-finished | 2026-08-03 14:44:37 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpwzosro62/gettext-0.26-4.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpwzosro62/gettext-0.26-4.fc44.src.rpm' |
| tool-version | csmock-3.8.7.HEAD-1.el9 |