Task #130964 - fixed.err
back to task #130964download
Error: SHELLCHECK_WARNING (CWE-480):
/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):
/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):
/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):
/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):
/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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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),