Error: SHELLCHECK_WARNING (CWE-563): [#def1] /usr/bin/apr-1-config:25:1: warning[SC2034]: exec_prefix appears unused. Verify use (or export if used externally). # 23| # 24| prefix="/usr" # 25|-> exec_prefix="/usr" # 26| bindir="/usr/bin" # 27| datarootdir="/usr/share" Error: SHELLCHECK_WARNING (CWE-563): [#def2] /usr/bin/apr-1-config:27:1: warning[SC2034]: datarootdir appears unused. Verify use (or export if used externally). # 25| exec_prefix="/usr" # 26| bindir="/usr/bin" # 27|-> datarootdir="/usr/share" # 28| datadir="/usr/share" # 29| includedir="/usr/include/apr-1" Error: SHELLCHECK_WARNING (CWE-563): [#def3] /usr/bin/apr-1-config:28:1: warning[SC2034]: datadir appears unused. Verify use (or export if used externally). # 26| bindir="/usr/bin" # 27| datarootdir="/usr/share" # 28|-> datadir="/usr/share" # 29| includedir="/usr/include/apr-1" # 30| Error: SHELLCHECK_WARNING (CWE-569): [#def4] /usr/lib64/apr-1/build/config.sub:245:8: warning[SC2221]: This pattern always overrides a later one on line 247. # 243| | semi \ # 244| | sequent* \ # 245|-> | siemens \ # 246| | sgi* \ # 247| | siemens \ Error: SHELLCHECK_WARNING (CWE-569): [#def5] /usr/lib64/apr-1/build/config.sub:247:8: warning[SC2222]: This pattern never matches because of a previous pattern on line 245. # 245| | siemens \ # 246| | sgi* \ # 247|-> | siemens \ # 248| | sim \ # 249| | sni \ Error: SHELLCHECK_WARNING (CWE-563): [#def6] /usr/lib64/apr-1/build/libtool:41:1: warning[SC2034]: AS appears unused. Verify use (or export if used externally). # 39| # 40| # Assembler program. # 41|-> AS="as" # 42| # 43| # DLL creation program. Error: SHELLCHECK_WARNING (CWE-563): [#def7] /usr/lib64/apr-1/build/libtool:66:1: warning[SC2034]: shared_archive_member_spec appears unused. Verify use (or export if used externally). # 64| # 65| # Shared archive member basename,for filename based shared library versioning on AIX. # 66|-> shared_archive_member_spec= # 67| # 68| # Shell to use when invoking shell scripts. Error: SHELLCHECK_WARNING (CWE-563): [#def8] /usr/lib64/apr-1/build/libtool:83:1: warning[SC2034]: build_alias appears unused. Verify use (or export if used externally). # 81| # 82| # The build system. # 83|-> build_alias=x86_64-redhat-linux # 84| build=x86_64-redhat-linux-gnu # 85| build_os=linux-gnu Error: SHELLCHECK_WARNING (CWE-563): [#def9] /usr/lib64/apr-1/build/libtool:85:1: warning[SC2034]: build_os appears unused. Verify use (or export if used externally). # 83| build_alias=x86_64-redhat-linux # 84| build=x86_64-redhat-linux-gnu # 85|-> build_os=linux-gnu # 86| # 87| # A sed program that does not truncate output. Error: SHELLCHECK_WARNING (CWE-563): [#def10] /usr/lib64/apr-1/build/libtool:91:1: warning[SC2034]: Xsed appears unused. Verify use (or export if used externally). # 89| # 90| # Sed that helps us avoid accidentally triggering echo(1) options like -n. # 91|-> Xsed="$SED -e 1s/^X//" # 92| # 93| # A grep program that handles long lines. Error: SHELLCHECK_WARNING (CWE-456): [#def11] /usr/lib64/apr-1/build/libtool:118:1: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string). # 116| # 117| # whether the shell understands "unset". # 118|-> lt_unset=unset # 119| # 120| # turn spaces into newlines. Error: SHELLCHECK_WARNING (CWE-563): [#def12] /usr/lib64/apr-1/build/libtool:133:1: warning[SC2034]: FILECMD appears unused. Verify use (or export if used externally). # 131| # 132| # A file(cmd) program that detects file types. # 133|-> FILECMD="file" # 134| # 135| # Method to check whether dependent libraries are shared objects. Error: SHELLCHECK_WARNING (CWE-563): [#def13] /usr/lib64/apr-1/build/libtool:157:1: warning[SC2034]: AR_FLAGS appears unused. Verify use (or export if used externally). # 155| # 156| # Flags to create an archive. # 157|-> AR_FLAGS=${ARFLAGS-"$lt_ar_flags"} # 158| # 159| # How to feed a file listing to the archiver. Error: SHELLCHECK_WARNING (CWE-563): [#def14] /usr/lib64/apr-1/build/libtool:210:1: warning[SC2034]: MAGIC_CMD appears unused. Verify use (or export if used externally). # 208| # 209| # Used to examine libraries when file_magic_cmd begins with "file". # 210|-> MAGIC_CMD=file # 211| # 212| # Must we lock files when doing compilation? Error: SHELLCHECK_WARNING (CWE-456): [#def15] /usr/lib64/apr-1/build/libtool:210:1: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string). # 208| # 209| # Used to examine libraries when file_magic_cmd begins with "file". # 210|-> MAGIC_CMD=file # 211| # 212| # Must we lock files when doing compilation? Error: SHELLCHECK_WARNING (CWE-563): [#def16] /usr/lib64/apr-1/build/libtool:216:1: warning[SC2034]: MANIFEST_TOOL appears unused. Verify use (or export if used externally). # 214| # 215| # Manifest tool. # 216|-> MANIFEST_TOOL=":" # 217| # 218| # Tool to manipulate archived DWARF debug symbol files on Mac OS X. Error: SHELLCHECK_WARNING (CWE-563): [#def17] /usr/lib64/apr-1/build/libtool:219:1: warning[SC2034]: DSYMUTIL appears unused. Verify use (or export if used externally). # 217| # 218| # Tool to manipulate archived DWARF debug symbol files on Mac OS X. # 219|-> DSYMUTIL="" # 220| # 221| # Tool to change global to local symbols on Mac OS X. Error: SHELLCHECK_WARNING (CWE-563): [#def18] /usr/lib64/apr-1/build/libtool:222:1: warning[SC2034]: NMEDIT appears unused. Verify use (or export if used externally). # 220| # 221| # Tool to change global to local symbols on Mac OS X. # 222|-> NMEDIT="" # 223| # 224| # Tool to manipulate fat objects and archives on Mac OS X. Error: SHELLCHECK_WARNING (CWE-563): [#def19] /usr/lib64/apr-1/build/libtool:300:1: warning[SC2034]: configure_time_lt_sys_library_path appears unused. Verify use (or export if used externally). # 298| # 299| # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. # 300|-> configure_time_lt_sys_library_path="/usr/lib64:" # 301| # 302| # Whether dlopen is supported. Error: SHELLCHECK_WARNING (CWE-563): [#def20] /usr/lib64/apr-1/build/libtool:320:1: warning[SC2034]: reload_flag appears unused. Verify use (or export if used externally). # 318| # 319| # How to create reloadable object files. # 320|-> reload_flag=" -r" # 321| reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs" # 322| Error: SHELLCHECK_WARNING (CWE-563): [#def21] /usr/lib64/apr-1/build/libtool:333:1: warning[SC2034]: no_builtin_flag appears unused. Verify use (or export if used externally). # 331| # 332| # Compiler flag to turn off builtin functions. # 333|-> no_builtin_flag=" -fno-builtin" # 334| # 335| # Additional compiler flags for building library objects. Error: SHELLCHECK_WARNING (CWE-563): [#def22] /usr/lib64/apr-1/build/libtool:421:1: warning[SC2034]: inherit_rpath appears unused. Verify use (or export if used externally). # 419| # Set to yes if linker adds runtime paths of dependent libraries # 420| # to runtime path list. # 421|-> inherit_rpath=no # 422| # 423| # Whether libtool must link a program against all its dependency libraries. Error: SHELLCHECK_WARNING (CWE-156): [#def23] /usr/lib64/apr-1/build/libtool:475:19: warning[SC2046]: Quote this to prevent word splitting. # 473| ;; # 474| *:) # 475|-> eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" # 476| ;; # 477| x:*) Error: SHELLCHECK_WARNING (CWE-156): [#def24] /usr/lib64/apr-1/build/libtool:478:24: warning[SC2046]: Quote this to prevent word splitting. # 476| ;; # 477| x:*) # 478|-> eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" # 479| ;; # 480| *::*) Error: SHELLCHECK_WARNING (CWE-156): [#def25] /usr/lib64/apr-1/build/libtool:481:25: warning[SC2046]: Quote this to prevent word splitting. # 479| ;; # 480| *::*) # 481|-> eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" # 482| eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" # 483| ;; Error: SHELLCHECK_WARNING (CWE-156): [#def26] /usr/lib64/apr-1/build/libtool:482:19: warning[SC2046]: Quote this to prevent word splitting. # 480| *::*) # 481| eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" # 482|-> eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" # 483| ;; # 484| *) Error: SHELLCHECK_WARNING (CWE-156): [#def27] /usr/lib64/apr-1/build/libtool:485:19: warning[SC2046]: Quote this to prevent word splitting. # 483| ;; # 484| *) # 485|-> eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" # 486| ;; # 487| esac Error: SHELLCHECK_WARNING (CWE-563): [#def28] /usr/lib64/apr-1/build/libtool:618:3: warning[SC2034]: NULLCMD appears unused. Verify use (or export if used externally). # 616| if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : # 617| emulate sh # 618|-> NULLCMD=: # 619| # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # 620| # is contrary to our usage. Disable this feature. Error: SHELLCHECK_WARNING (CWE-398): [#def29] /usr/lib64/apr-1/build/libtool:621:12: error[SC2142]: Aliases can't use positional parameters. Use a function. # 619| # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # 620| # is contrary to our usage. Disable this feature. # 621|-> alias -g '${1+"$@"}'='"$@"' # 622| setopt NO_GLOB_SUBST # 623| else Error: SHELLCHECK_WARNING: [#def30] /usr/lib64/apr-1/build/libtool:624:50: warning[SC3040]: In POSIX sh, set option posix is undefined. # 622| setopt NO_GLOB_SUBST # 623| else # 624|-> case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac # 625| fi # 626| Error: SHELLCHECK_WARNING (CWE-563): [#def31] /usr/lib64/apr-1/build/libtool:657:24: warning[SC2034]: FPATH appears unused. Verify use (or export if used externally). # 655| PATH_SEPARATOR=: # 656| (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { # 657|-> (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || # 658| PATH_SEPARATOR=';' # 659| } Error: SHELLCHECK_WARNING: [#def32] /usr/lib64/apr-1/build/libtool:892:7: warning[SC2141]: This IFS value contains a literal backslash. For tabs/linefeeds/escapes, use $'..', literal, or printf. # 890| { # 891| _G_save_IFS=$IFS # 892|-> IFS='\' # 893| _G_check_ifs_backshlash='a\\b' # 894| for _G_i in $_G_check_ifs_backshlash Error: SHELLCHECK_WARNING (CWE-563): [#def33] /usr/lib64/apr-1/build/libtool:934:1: warning[SC2034]: EXIT_SKIP appears unused. Verify use (or export if used externally). # 932| EXIT_FAILURE=1 # 933| EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. # 934|-> EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. # 935| # 936| # Allow overriding, eg assuming that you follow the convention of Error: SHELLCHECK_WARNING (CWE-457): [#def34] /usr/lib64/apr-1/build/libtool:1164:19: warning[SC2154]: _G_current_value is referenced but not assigned. # 1162| _G_delim=`expr "$2" : '\(.\)'` # 1163| # 1164|-> case $_G_delim$_G_current_value$_G_delim in # 1165| *"$2$_G_delim"*) ;; # 1166| *) func_append "$@" ;; Error: SHELLCHECK_WARNING (CWE-685): [#def35] /usr/lib64/apr-1/build/libtool:1440:1: warning[SC2120]: func_mktempdir references arguments, but none are ever passed. # 1438| # libtool processes, and avoids race conditions if possible. If # 1439| # given, BASENAME is the basename for that directory. # 1440|-> func_mktempdir () # 1441| { # 1442| $debug_cmd Error: SHELLCHECK_WARNING: [#def36] /usr/lib64/apr-1/build/libtool:1456:32: warning[SC3028]: In POSIX sh, RANDOM is undefined. # 1454| if test ! -d "$_G_tmpdir"; then # 1455| # Failing that, at least try and use $RANDOM to avoid a race # 1456|-> _G_tmpdir=$_G_template-${RANDOM-0}$$ # 1457| # 1458| func_mktempdir_umask=`umask` Error: SHELLCHECK_WARNING (CWE-457): [#def37] /usr/lib64/apr-1/build/libtool:1550:38: warning[SC2154]: func_dirname_result is referenced but not assigned. # 1548| # Parent dir; strip last assembled component from result. # 1549| func_dirname "$func_normal_abspath_result" # 1550|-> func_normal_abspath_result=$func_dirname_result # 1551| ;; # 1552| *) Error: SHELLCHECK_WARNING (CWE-691): [#def38] /usr/lib64/apr-1/build/libtool:1596:9: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob. # 1594| # check if we have found a prefix of bindir # 1595| case $func_relative_path_tbindir in # 1596|-> $func_relative_path_tlibdir) # 1597| # found an exact match # 1598| func_relative_path_tcancelled= Error: SHELLCHECK_WARNING (CWE-456): [#def39] /usr/lib64/apr-1/build/libtool:1683:17: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 1681| do # 1682| # STATE($1) PREV($2) SEPARATOR($3) # 1683|-> set start "" "" # 1684| func_quote_portable_result=dummy"$_G_char$func_quote_portable_result$_G_char"dummy # 1685| IFS=$_G_char Error: SHELLCHECK_WARNING (CWE-456): [#def40] /usr/lib64/apr-1/build/libtool:1691:21: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 1689| quote) # 1690| func_append func_quote_portable_result "$3$2" # 1691|-> set quote "$_G_part" "\\$_G_char" # 1692| ;; # 1693| start) Error: SHELLCHECK_WARNING (CWE-456): [#def41] /usr/lib64/apr-1/build/libtool:1694:21: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 1692| ;; # 1693| start) # 1694|-> set first "" "" # 1695| func_quote_portable_result= # 1696| ;; Error: SHELLCHECK_WARNING (CWE-456): [#def42] /usr/lib64/apr-1/build/libtool:1698:21: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 1696| ;; # 1697| first) # 1698|-> set quote "$_G_part" "" # 1699| ;; # 1700| esac Error: SHELLCHECK_WARNING (CWE-156): [#def43] /usr/lib64/apr-1/build/libtool:1728:16: warning[SC2046]: Quote this to prevent word splitting. # 1726| # Quote one ARG (internal). This is equivalent to 'func_quote_arg eval ARG', # 1727| # but optimized for speed. Result is stored in $func_quotefast_eval. # 1728|-> if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then # 1729| printf -v _GL_test_printf_tilde %q '~' # 1730| if test '\~' = "$_GL_test_printf_tilde"; then Error: SHELLCHECK_WARNING: [#def44] /usr/lib64/apr-1/build/libtool:1728:29: warning[SC3045]: In POSIX sh, printf -v is undefined. # 1726| # Quote one ARG (internal). This is equivalent to 'func_quote_arg eval ARG', # 1727| # but optimized for speed. Result is stored in $func_quotefast_eval. # 1728|-> if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then # 1729| printf -v _GL_test_printf_tilde %q '~' # 1730| if test '\~' = "$_GL_test_printf_tilde"; then Error: SHELLCHECK_WARNING: [#def45] /usr/lib64/apr-1/build/libtool:1729:10: warning[SC3045]: In POSIX sh, printf -v is undefined. # 1727| # but optimized for speed. Result is stored in $func_quotefast_eval. # 1728| if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then # 1729|-> printf -v _GL_test_printf_tilde %q '~' # 1730| if test '\~' = "$_GL_test_printf_tilde"; then # 1731| func_quotefast_eval () Error: SHELLCHECK_WARNING: [#def46] /usr/lib64/apr-1/build/libtool:1733:14: warning[SC3045]: In POSIX sh, printf -v is undefined. # 1731| func_quotefast_eval () # 1732| { # 1733|-> printf -v func_quotefast_eval_result %q "$1" # 1734| } # 1735| else Error: SHELLCHECK_WARNING: [#def47] /usr/lib64/apr-1/build/libtool:1745:18: warning[SC3045]: In POSIX sh, printf -v is undefined. # 1743| ;; # 1744| *) # 1745|-> printf -v func_quotefast_eval_result %q "$1" # 1746| ;; # 1747| esac Error: SHELLCHECK_WARNING (CWE-156): [#def48] /usr/lib64/apr-1/build/libtool:2027:19: warning[SC2046]: Quote this to prevent word splitting. # 2025| $debug_cmd # 2026| # 2027|-> test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q` # 2028| } # 2029| Error: SHELLCHECK_WARNING (CWE-457): [#def49] /usr/lib64/apr-1/build/libtool:2166:12: warning[SC2154]: hookable_fns is referenced but not assigned. # 2164| $debug_cmd # 2165| # 2166|-> case " $hookable_fns " in # 2167| *" $1 "*) ;; # 2168| *) func_fatal_error "'$1' does not accept hook functions." ;; Error: SHELLCHECK_WARNING (CWE-457): [#def50] /usr/lib64/apr-1/build/libtool:2223:20: warning[SC2154]: _G_hook_fns is referenced but not assigned. # 2221| eval _G_hook_fns=\$$1_hooks; shift # 2222| # 2223|-> for _G_hook in $_G_hook_fns; do # 2224| func_unset "${_G_hook}_result" # 2225| eval $_G_hook '${1+"$@"}' Error: SHELLCHECK_WARNING (CWE-457): [#def51] /usr/lib64/apr-1/build/libtool:2228:25: warning[SC2154]: func_run_hooks_result is referenced but not assigned. # 2226| func_propagate_result $_G_hook func_run_hooks # 2227| if $func_propagate_result_result; then # 2228|-> eval set dummy "$func_run_hooks_result"; shift # 2229| fi # 2230| done Error: SHELLCHECK_WARNING (CWE-456): [#def52] /usr/lib64/apr-1/build/libtool:2423:27: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 2421| # 2422| --no-warnings|--no-warning|--no-warn) # 2423|-> set dummy --warnings none ${1+"$@"} # 2424| shift # 2425| ;; Error: SHELLCHECK_WARNING (CWE-456): [#def53] /usr/lib64/apr-1/build/libtool:2463:20: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 2461| # Separate optargs to long options (plugins may need this): # 2462| --*=*) func_split_equals "$_G_opt" # 2463|-> set dummy "$func_split_equals_lhs" \ # 2464| "$func_split_equals_rhs" ${1+"$@"} # 2465| shift Error: SHELLCHECK_WARNING (CWE-456): [#def54] /usr/lib64/apr-1/build/libtool:2471:27: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 2469| -W*) # 2470| func_split_short_opt "$_G_opt" # 2471|-> set dummy "$func_split_short_opt_name" \ # 2472| "$func_split_short_opt_arg" ${1+"$@"} # 2473| shift Error: SHELLCHECK_WARNING (CWE-456): [#def55] /usr/lib64/apr-1/build/libtool:2479:27: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 2477| -\?*|-h*|-v*|-x*) # 2478| func_split_short_opt "$_G_opt" # 2479|-> set dummy "$func_split_short_opt_name" \ # 2480| "-$func_split_short_opt_arg" ${1+"$@"} # 2481| shift Error: SHELLCHECK_WARNING (CWE-456): [#def56] /usr/lib64/apr-1/build/libtool:2486:27: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 2484| --) _G_parse_options_requote=: ; break ;; # 2485| -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; # 2486|-> *) set dummy "$_G_opt" ${1+"$@"}; shift # 2487| _G_match_parse_options=false # 2488| break Error: SHELLCHECK_WARNING (CWE-456): [#def57] /usr/lib64/apr-1/build/libtool:2571:5: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string). # 2569| # 2570| func_error "Missing argument for '$1'." # 2571|-> exit_cmd=exit # 2572| } # 2573| Error: SHELLCHECK_WARNING (CWE-563): [#def58] /usr/lib64/apr-1/build/libtool:2833:1: warning[SC2034]: o2lo appears unused. Verify use (or export if used externally). # 2831| # 2832| lo2o=s/\\.lo\$/.$objext/ # 2833|-> o2lo=s/\\.$objext\$/.lo/ # 2834| # 2835| if test yes = "$_G_HAVE_XSI_OPS"; then Error: SHELLCHECK_WARNING (CWE-457): [#def59] /usr/lib64/apr-1/build/libtool:3004:5: warning[SC2154]: debug_mode is referenced but not assigned. # 3002| libtool_options_prep () # 3003| { # 3004|-> $debug_mode # 3005| # 3006| # Option defaults: Error: SHELLCHECK_WARNING (CWE-563): [#def60] /usr/lib64/apr-1/build/libtool:3007:5: warning[SC2034]: opt_config appears unused. Verify use (or export if used externally). # 3005| # 3006| # Option defaults: # 3007|-> opt_config=false # 3008| opt_dlopen= # 3009| opt_dry_run=false Error: SHELLCHECK_WARNING (CWE-456): [#def61] /usr/lib64/apr-1/build/libtool:3023:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 3021| case $1 in # 3022| clean|clea|cle|cl) # 3023|-> shift; set dummy --mode clean ${1+"$@"}; shift # 3024| ;; # 3025| compile|compil|compi|comp|com|co|c) Error: SHELLCHECK_WARNING (CWE-456): [#def62] /usr/lib64/apr-1/build/libtool:3026:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 3024| ;; # 3025| compile|compil|compi|comp|com|co|c) # 3026|-> shift; set dummy --mode compile ${1+"$@"}; shift # 3027| ;; # 3028| execute|execut|execu|exec|exe|ex|e) Error: SHELLCHECK_WARNING (CWE-456): [#def63] /usr/lib64/apr-1/build/libtool:3029:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 3027| ;; # 3028| execute|execut|execu|exec|exe|ex|e) # 3029|-> shift; set dummy --mode execute ${1+"$@"}; shift # 3030| ;; # 3031| finish|finis|fini|fin|fi|f) Error: SHELLCHECK_WARNING (CWE-456): [#def64] /usr/lib64/apr-1/build/libtool:3032:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 3030| ;; # 3031| finish|finis|fini|fin|fi|f) # 3032|-> shift; set dummy --mode finish ${1+"$@"}; shift # 3033| ;; # 3034| install|instal|insta|inst|ins|in|i) Error: SHELLCHECK_WARNING (CWE-456): [#def65] /usr/lib64/apr-1/build/libtool:3035:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 3033| ;; # 3034| install|instal|insta|inst|ins|in|i) # 3035|-> shift; set dummy --mode install ${1+"$@"}; shift # 3036| ;; # 3037| link|lin|li|l) Error: SHELLCHECK_WARNING (CWE-456): [#def66] /usr/lib64/apr-1/build/libtool:3038:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 3036| ;; # 3037| link|lin|li|l) # 3038|-> shift; set dummy --mode link ${1+"$@"}; shift # 3039| ;; # 3040| uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) Error: SHELLCHECK_WARNING (CWE-456): [#def67] /usr/lib64/apr-1/build/libtool:3041:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 3039| ;; # 3040| uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) # 3041|-> shift; set dummy --mode uninstall ${1+"$@"}; shift # 3042| ;; # 3043| *) Error: SHELLCHECK_WARNING (CWE-563): [#def68] /usr/lib64/apr-1/build/libtool:3051:7: warning[SC2034]: libtool_options_prep_result appears unused. Verify use (or export if used externally). # 3049| # Pass back the list of options. # 3050| func_quote eval ${1+"$@"} # 3051|-> libtool_options_prep_result=$func_quote_result # 3052| fi # 3053| } Error: SHELLCHECK_WARNING (CWE-456): [#def69] /usr/lib64/apr-1/build/libtool:3090:29: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 3088| --features) func_features ;; # 3089| # 3090|-> --finish) set dummy --mode finish ${1+"$@"}; shift ;; # 3091| # 3092| --help) opt_help=: ;; Error: SHELLCHECK_WARNING (CWE-456): [#def70] /usr/lib64/apr-1/build/libtool:3104:30: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string). # 3102| # Catch anything else as an error # 3103| *) func_error "invalid argument for $_G_opt" # 3104|-> exit_cmd=exit # 3105| break # 3106| ;; Error: SHELLCHECK_WARNING (CWE-563): [#def71] /usr/lib64/apr-1/build/libtool:3117:25: warning[SC2034]: opt_warning appears unused. Verify use (or export if used externally). # 3115| # 3116| --no-warnings|--no-warning|--no-warn) # 3117|-> opt_warning=false # 3118| func_append preserve_args " $_G_opt" # 3119| ;; Error: SHELLCHECK_WARNING (CWE-563): [#def72] /usr/lib64/apr-1/build/libtool:3133:25: warning[SC2034]: opt_tag appears unused. Verify use (or export if used externally). # 3131| # 3132| --tag) test $# = 0 && func_missing_arg $_G_opt && break # 3133|-> opt_tag=$1 # 3134| func_append preserve_args " $_G_opt $1" # 3135| func_enable_tag "$1" Error: SHELLCHECK_WARNING (CWE-456): [#def73] /usr/lib64/apr-1/build/libtool:3145:29: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 3143| # 3144| # An option not handled by this hook function: # 3145|-> *) set dummy "$_G_opt" ${1+"$@"} ; shift # 3146| _G_match_lt_parse_options=false # 3147| break Error: SHELLCHECK_WARNING (CWE-563): [#def74] /usr/lib64/apr-1/build/libtool:3156:7: warning[SC2034]: libtool_parse_options_result appears unused. Verify use (or export if used externally). # 3154| # save modified positional parameters for caller # 3155| func_quote eval ${1+"$@"} # 3156|-> libtool_parse_options_result=$func_quote_result # 3157| fi # 3158| } Error: SHELLCHECK_WARNING (CWE-563): [#def75] /usr/lib64/apr-1/build/libtool:3208:5: warning[SC2034]: libtool_validate_options_result appears unused. Verify use (or export if used externally). # 3206| # Pass back the unparsed argument list # 3207| func_quote eval ${1+"$@"} # 3208|-> libtool_validate_options_result=$func_quote_result # 3209| } # 3210| func_add_hook func_validate_options libtool_validate_options Error: SHELLCHECK_WARNING (CWE-563): [#def76] /usr/lib64/apr-1/build/libtool:3274:2: warning[SC2034]: lalib_p_l appears unused. Verify use (or export if used externally). # 3272| lalib_p=no # 3273| if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then # 3274|-> for lalib_p_l in 1 2 3 4 # 3275| do # 3276| read lalib_p_line Error: SHELLCHECK_WARNING (CWE-457): [#def77] /usr/lib64/apr-1/build/libtool:3317:31: warning[SC2154]: func_basename_result is referenced but not assigned. # 3315| { # 3316| func_dirname_and_basename "$1" "" "." # 3317|-> func_stripname '' '.exe' "$func_basename_result" # 3318| func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper # 3319| } Error: SHELLCHECK_WARNING (CWE-691): [#def78] /usr/lib64/apr-1/build/libtool:3672:3: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob. # 3670| # 3671| case $4 in # 3672|-> $1 ) func_to_host_path_result=$3$func_to_host_path_result # 3673| ;; # 3674| esac Error: SHELLCHECK_WARNING (CWE-691): [#def79] /usr/lib64/apr-1/build/libtool:3676:3: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob. # 3674| esac # 3675| case $4 in # 3676|-> $2 ) func_append func_to_host_path_result "$3" # 3677| ;; # 3678| esac Error: SHELLCHECK_WARNING (CWE-1095): [#def80] /usr/lib64/apr-1/build/libtool:4032:5: warning[SC2167]: This parent loop has its index variable overridden. # 4030| pie_flag= # 4031| # 4032|-> for arg # 4033| do # 4034| case $arg_mode in Error: SHELLCHECK_WARNING (CWE-1095): [#def81] /usr/lib64/apr-1/build/libtool:4082:4: warning[SC2165]: This nested loop overrides the index variable of its parent. # 4080| lastarg= # 4081| save_ifs=$IFS; IFS=, # 4082|-> for arg in $args; do # 4083| IFS=$save_ifs # 4084| func_append_quoted lastarg "$arg" Error: SHELLCHECK_WARNING (CWE-563): [#def82] /usr/lib64/apr-1/build/libtool:4254:7: warning[SC2034]: fbsd_hideous_sh_bug appears unused. Verify use (or export if used externally). # 4252| if test yes = "$build_libtool_libs"; then # 4253| # Without this assignment, base_compile gets emptied. # 4254|-> fbsd_hideous_sh_bug=$base_compile # 4255| # 4256| if test no != "$pic_mode"; then Error: SHELLCHECK_WARNING (CWE-563): [#def83] /usr/lib64/apr-1/build/libtool:4665:5: warning[SC2034]: libtool_execute_magic appears unused. Verify use (or export if used externally). # 4663| # This variable tells wrapper scripts just to set shlibpath_var # 4664| # rather than running their programs. # 4665|-> libtool_execute_magic=$magic # 4666| # 4667| # Check if any of the arguments is a wrapper script. Error: SHELLCHECK_WARNING (CWE-457): [#def84] /usr/lib64/apr-1/build/libtool:4678:18: warning[SC2154]: program is referenced but not assigned (did you mean 'PROGRAM'?). # 4676| func_source "$file" # 4677| # Transform arg to wrapped name. # 4678|-> file=$progdir/$program # 4679| elif func_ltwrapper_executable_p "$file"; then # 4680| func_ltwrapper_scriptname "$file" Error: SHELLCHECK_WARNING (CWE-563): [#def85] /usr/lib64/apr-1/build/libtool:4877:5: warning[SC2034]: opts appears unused. Verify use (or export if used externally). # 4875| dest= # 4876| files= # 4877|-> opts= # 4878| prev= # 4879| install_type= Error: SHELLCHECK_WARNING (CWE-563): [#def86] /usr/lib64/apr-1/build/libtool:4879:5: warning[SC2034]: install_type appears unused. Verify use (or export if used externally). # 4877| opts= # 4878| prev= # 4879|-> install_type= # 4880| isdir=false # 4881| stripme= Error: SHELLCHECK_WARNING (CWE-456): [#def87] /usr/lib64/apr-1/build/libtool:4968:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 4966| # 4967| # Not a directory, so check to see that there is only one file specified. # 4968|-> set dummy $files; shift # 4969| test "$#" -gt 1 && \ # 4970| func_fatal_help "'$dest' is not a directory" Error: SHELLCHECK_WARNING (CWE-456): [#def88] /usr/lib64/apr-1/build/libtool:5059:6: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 5057| # 5058| # See the names of the shared library. # 5059|-> set dummy $library_names; shift # 5060| if test -n "$1"; then # 5061| realname=$1 Error: SHELLCHECK_WARNING (CWE-563): [#def89] /usr/lib64/apr-1/build/libtool:5137:4: warning[SC2034]: staticdest appears unused. Verify use (or export if used externally). # 5135| ;; # 5136| *.$objext) # 5137|-> staticdest=$destfile # 5138| destfile= # 5139| ;; Error: SHELLCHECK_WARNING (CWE-563): [#def90] /usr/lib64/apr-1/build/libtool:5153:4: warning[SC2034]: staticobj appears unused. Verify use (or export if used externally). # 5151| # Deduce the name of the old-style object file. # 5152| func_lo2o "$file" # 5153|-> staticobj=$func_lo2o_result # 5154| func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' # 5155| fi Error: SHELLCHECK_WARNING (CWE-457): [#def91] /usr/lib64/apr-1/build/libtool:5205:13: warning[SC2154]: generated_by_libtool_version is referenced but not assigned. # 5203| # 5204| # Check the variables that should have been set. # 5205|-> test -z "$generated_by_libtool_version" && \ # 5206| func_fatal_error "invalid libtool wrapper script '$wrapper'" # 5207| Error: SHELLCHECK_WARNING (CWE-457): [#def92] /usr/lib64/apr-1/build/libtool:5445:22: warning[SC2154]: curr_lafile is referenced but not assigned. # 5443| eval "curr_lafile=\$libfile_$func_tr_sh_result" # 5444| dlprefile_dlbasename= # 5445|-> if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then # 5446| # Use subshell, to avoid clobbering current variable values # 5447| dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` Error: SHELLCHECK_WARNING: [#def93] /usr/lib64/apr-1/build/libtool:5447:30: warning[SC3046]: In POSIX sh, 'source' in place of '.' is undefined. # 5445| if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then # 5446| # Use subshell, to avoid clobbering current variable values # 5447|-> dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` # 5448| if test -n "$dlprefile_dlname"; then # 5449| func_basename "$dlprefile_dlname" Error: SHELLCHECK_WARNING (CWE-563): [#def94] /usr/lib64/apr-1/build/libtool:5592:19: warning[SC2034]: pic_flag_for_symtable appears unused. Verify use (or export if used externally). # 5590| pic_flag_for_symtable=" $pic_flag" ;; # 5591| *) # 5592|-> $my_pic_p && pic_flag_for_symtable=" $pic_flag" # 5593| ;; # 5594| esac Error: SHELLCHECK_WARNING (CWE-563): [#def95] /usr/lib64/apr-1/build/libtool:5597:2: warning[SC2034]: symtab_cflags appears unused. Verify use (or export if used externally). # 5595| ;; # 5596| esac # 5597|-> symtab_cflags= # 5598| for arg in $LTCFLAGS; do # 5599| case $arg in Error: SHELLCHECK_WARNING (CWE-252): [#def96] /usr/lib64/apr-1/build/libtool:5921:8: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. # 5919| func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch" # 5920| $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive" # 5921|-> cd "unfat-$$/$darwin_base_archive-$darwin_arch" # 5922| func_extract_an_archive "`pwd`" "$darwin_base_archive" # 5923| cd "$darwin_curdir" Error: SHELLCHECK_WARNING (CWE-252): [#def97] /usr/lib64/apr-1/build/libtool:5923:8: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. # 5921| cd "unfat-$$/$darwin_base_archive-$darwin_arch" # 5922| func_extract_an_archive "`pwd`" "$darwin_base_archive" # 5923|-> cd "$darwin_curdir" # 5924| $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" # 5925| done # $darwin_arches Error: SHELLCHECK_WARNING (CWE-252): [#def98] /usr/lib64/apr-1/build/libtool:5935:6: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. # 5933| done # $darwin_filelist # 5934| $RM -rf unfat-$$ # 5935|-> cd "$darwin_orig_dir" # 5936| else # 5937| cd $darwin_orig_dir Error: SHELLCHECK_WARNING (CWE-252): [#def99] /usr/lib64/apr-1/build/libtool:5937:6: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. # 5935| cd "$darwin_orig_dir" # 5936| else # 5937|-> cd $darwin_orig_dir # 5938| func_extract_an_archive "$my_xdir" "$my_xabs" # 5939| fi # $darwin_arches Error: SHELLCHECK_WARNING (CWE-149): [#def100] /usr/lib64/apr-1/build/libtool:6034:57: warning[SC2140]: Word is of the form "A"B"C" (B indicated). Did you mean "ABC" or "A\"B\"C"? # 6032| # the libtool wrapper, (b) are identical between the wrapper # 6033| # /script/ and the wrapper /executable/ that is used only on # 6034|-> # windows platforms, and (c) all begin with the string "--lt-" # 6035| # (application programs are unlikely to have options that match # 6036| # this pattern). Error: SHELLCHECK_WARNING (CWE-88): [#def101] /usr/lib64/apr-1/build/libtool:6042:35: error[SC2068]: Double quote array expansions to avoid re-splitting elements. # 6040| # # 6041| # The first argument to this parsing function should be the # 6042|-> # script's $0 value, followed by "$@". # 6043| lt_option_debug= # 6044| func_parse_lt_options () Error: SHELLCHECK_WARNING (CWE-138): [#def102] /usr/lib64/apr-1/build/libtool:6042:35: error[SC2145]: Argument mixes string and array. Use * or separate argument. # 6040| # # 6041| # The first argument to this parsing function should be the # 6042|-> # script's $0 value, followed by "$@". # 6043| lt_option_debug= # 6044| func_parse_lt_options () Error: SHELLCHECK_WARNING (CWE-149): [#def103] /usr/lib64/apr-1/build/libtool:6042:35: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them. # 6040| # # 6041| # The first argument to this parsing function should be the # 6042|-> # script's $0 value, followed by "$@". # 6043| lt_option_debug= # 6044| func_parse_lt_options () Error: SHELLCHECK_WARNING (CWE-569): [#def104] /usr/lib64/apr-1/build/libtool:7271:18: warning[SC2124]: Assigning an array to a string! Assign as array, or use * instead of @ to concatenate. # 7269| esac # 7270| libtool_args=$nonopt # 7271|-> base_compile="$nonopt $@" # 7272| compile_command=$nonopt # 7273| finalize_command=$nonopt Error: SHELLCHECK_WARNING (CWE-563): [#def105] /usr/lib64/apr-1/build/libtool:7284:5: warning[SC2034]: linker_flags appears unused. Verify use (or export if used externally). # 7282| old_deplibs= # 7283| compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld" # 7284|-> linker_flags= # 7285| dllsearchpath= # 7286| lib_search_path=`pwd` Error: SHELLCHECK_WARNING (CWE-563): [#def106] /usr/lib64/apr-1/build/libtool:7300:5: warning[SC2034]: ltlibs appears unused. Verify use (or export if used externally). # 7298| generated= # 7299| libobjs= # 7300|-> ltlibs= # 7301| module=no # 7302| no_install=no Error: SHELLCHECK_WARNING (CWE-563): [#def107] /usr/lib64/apr-1/build/libtool:7469:6: warning[SC2034]: moreargs appears unused. Verify use (or export if used externally). # 7467| if test -f "$arg"; then # 7468| save_arg=$arg # 7469|-> moreargs= # 7470| for fil in `cat "$save_arg"` # 7471| do Error: SHELLCHECK_WARNING (CWE-563): [#def108] /usr/lib64/apr-1/build/libtool:7563:4: warning[SC2034]: os2dllname appears unused. Verify use (or export if used externally). # 7561| ;; # 7562| os2dllname) # 7563|-> os2dllname=$arg # 7564| prev= # 7565| continue Error: SHELLCHECK_WARNING (CWE-563): [#def109] /usr/lib64/apr-1/build/libtool:7862:2: warning[SC2034]: single_module appears unused. Verify use (or export if used externally). # 7860| # 7861| -multi_module) # 7862|-> single_module=$wl-multi_module # 7863| continue # 7864| ;; Error: SHELLCHECK_WARNING (CWE-563): [#def110] /usr/lib64/apr-1/build/libtool:8257:5: warning[SC2034]: tool_output_objdir appears unused. Verify use (or export if used externally). # 8255| output_objdir=$func_dirname_result$objdir # 8256| func_to_tool_file "$output_objdir/" # 8257|-> tool_output_objdir=$func_to_tool_file_result # 8258| # Create the object directory. # 8259| func_mkdir_p "$output_objdir" Error: SHELLCHECK_WARNING (CWE-457): [#def111] /usr/lib64/apr-1/build/libtool:8287:13: warning[SC2154]: predeps is referenced but not assigned. # 8285| # 8286| if test lib = "$linkmode"; then # 8287|-> libs="$predeps $libs $compiler_lib_search_path $postdeps" # 8288| # 8289| # Compute libraries that are listed more than once in $predeps Error: SHELLCHECK_WARNING (CWE-457): [#def112] /usr/lib64/apr-1/build/libtool:8287:28: warning[SC2154]: compiler_lib_search_path is referenced but not assigned. # 8285| # 8286| if test lib = "$linkmode"; then # 8287|-> libs="$predeps $libs $compiler_lib_search_path $postdeps" # 8288| # 8289| # Compute libraries that are listed more than once in $predeps Error: SHELLCHECK_WARNING (CWE-457): [#def113] /usr/lib64/apr-1/build/libtool:8287:54: warning[SC2154]: postdeps is referenced but not assigned. # 8285| # 8286| if test lib = "$linkmode"; then # 8287|-> libs="$predeps $libs $compiler_lib_search_path $postdeps" # 8288| # 8289| # Compute libraries that are listed more than once in $predeps Error: SHELLCHECK_WARNING (CWE-1095): [#def114] /usr/lib64/apr-1/build/libtool:8389:7: warning[SC2167]: This parent loop has its index variable overridden. # 8387| fi # 8388| # 8389|-> for deplib in $libs; do # 8390| lib= # 8391| found=false Error: SHELLCHECK_WARNING (CWE-457): [#def115] /usr/lib64/apr-1/build/libtool:8417:55: warning[SC2154]: compiler_lib_search_dirs is referenced but not assigned. # 8415| name=$func_stripname_result # 8416| if test lib = "$linkmode"; then # 8417|-> searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" # 8418| else # 8419| searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" Error: SHELLCHECK_WARNING (CWE-457): [#def116] /usr/lib64/apr-1/build/libtool:8417:81: warning[SC2154]: sys_lib_search_path is referenced but not assigned. # 8415| name=$func_stripname_result # 8416| if test lib = "$linkmode"; then # 8417|-> searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" # 8418| else # 8419| searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" Error: SHELLCHECK_WARNING (CWE-457): [#def117] /usr/lib64/apr-1/build/libtool:8422:28: warning[SC2154]: std_shrext is referenced but not assigned. # 8420| fi # 8421| for searchdir in $searchdirs; do # 8422|-> for search_ext in .la $std_shrext .so .a; do # 8423| # Search the libtool library # 8424| lib=$searchdir/lib$name$search_ext Error: SHELLCHECK_WARNING (CWE-457): [#def118] /usr/lib64/apr-1/build/libtool:8553:13: warning[SC2154]: dlpreconveniencelibs is referenced but not assigned. # 8551| # Linking convenience modules into shared libraries is allowed, # 8552| # but linking other static libraries is non-portable. # 8553|-> case " $dlpreconveniencelibs " in # 8554| *" $deplib "*) ;; # 8555| *) Error: SHELLCHECK_WARNING (CWE-456): [#def119] /usr/lib64/apr-1/build/libtool:8559:9: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 8557| case $deplibs_check_method in # 8558| match_pattern*) # 8559|-> set dummy $deplibs_check_method; shift # 8560| match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` # 8561| if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ Error: SHELLCHECK_WARNING (CWE-1095): [#def120] /usr/lib64/apr-1/build/libtool:8680:4: warning[SC2165]: This nested loop overrides the index variable of its parent. # 8678| fi # 8679| tmp_libs= # 8680|-> for deplib in $dependency_libs; do # 8681| deplibs="$deplib $deplibs" # 8682| if $opt_preserve_dup_deps; then Error: SHELLCHECK_WARNING (CWE-1095): [#def121] /usr/lib64/apr-1/build/libtool:8842:4: warning[SC2165]: This nested loop overrides the index variable of its parent. # 8840| # 8841| tmp_libs= # 8842|-> for deplib in $dependency_libs; do # 8843| case $deplib in # 8844| -L*) func_stripname '-L' '' "$deplib" Error: SHELLCHECK_WARNING (CWE-457): [#def122] /usr/lib64/apr-1/build/libtool:8884:13: warning[SC2154]: sys_lib_dlsearch_path is referenced but not assigned. # 8882| # Skip directories that are in the system default run-time # 8883| # search path. # 8884|-> case " $sys_lib_dlsearch_path " in # 8885| *" $absdir "*) ;; # 8886| *) Error: SHELLCHECK_WARNING (CWE-456): [#def123] /usr/lib64/apr-1/build/libtool:8980:10: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 8978| if test -n "$old_archive_from_expsyms_cmds"; then # 8979| # figure out the soname # 8980|-> set dummy $library_names # 8981| shift # 8982| realname=$1 Error: SHELLCHECK_WARNING (CWE-1095): [#def124] /usr/lib64/apr-1/build/libtool:9245:4: warning[SC2165]: This nested loop overrides the index variable of its parent. # 9243| # ... and its dependency_libs # 9244| tmp_libs= # 9245|-> for deplib in $dependency_libs; do # 9246| newdependency_libs="$deplib $newdependency_libs" # 9247| case $deplib in Error: SHELLCHECK_WARNING (CWE-1095): [#def125] /usr/lib64/apr-1/build/libtool:9263:6: warning[SC2165]: This nested loop overrides the index variable of its parent. # 9261| if test no != "$link_all_deplibs"; then # 9262| # Add the search paths of all dependency libraries # 9263|-> for deplib in $dependency_libs; do # 9264| path= # 9265| case $deplib in Error: SHELLCHECK_WARNING (CWE-156): [#def126] /usr/lib64/apr-1/build/libtool:9287:27: warning[SC2046]: Quote this to prevent word splitting. # 9285| *-*-darwin*) # 9286| depdepl= # 9287|-> eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` # 9288| if test -n "$deplibrary_names"; then # 9289| for tmp in $deplibrary_names; do Error: SHELLCHECK_WARNING (CWE-457): [#def127] /usr/lib64/apr-1/build/libtool:9288:17: warning[SC2154]: deplibrary_names is referenced but not assigned. # 9286| depdepl= # 9287| eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` # 9288|-> if test -n "$deplibrary_names"; then # 9289| for tmp in $deplibrary_names; do # 9290| depdepl=$tmp Error: SHELLCHECK_WARNING (CWE-156): [#def128] /usr/lib64/apr-1/build/libtool:9309:17: warning[SC2046]: Quote this to prevent word splitting. # 9307| esac # 9308| else # 9309|-> eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` # 9310| test -z "$libdir" && \ # 9311| func_fatal_error "'$deplib' is not a valid libtool archive" Error: SHELLCHECK_WARNING (CWE-456): [#def129] /usr/lib64/apr-1/build/libtool:9541:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 9539| || func_warning "'-dlopen self' is ignored for libtool libraries" # 9540| # 9541|-> set dummy $rpath # 9542| shift # 9543| test 1 -lt "$#" \ Error: SHELLCHECK_WARNING (CWE-456): [#def130] /usr/lib64/apr-1/build/libtool:9569:6: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 9567| # Parse the version information argument. # 9568| save_ifs=$IFS; IFS=: # 9569|-> set dummy $vinfo 0 0 0 # 9570| shift # 9571| IFS=$save_ifs Error: SHELLCHECK_WARNING (CWE-563): [#def131] /usr/lib64/apr-1/build/libtool:9667:4: warning[SC2034]: xlcverstring appears unused. Verify use (or export if used externally). # 9665| func_arith $current + 1 # 9666| minor_current=$func_arith_result # 9667|-> xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" # 9668| verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" # 9669| # On Darwin other compilers Error: SHELLCHECK_WARNING (CWE-691): [#def132] /usr/lib64/apr-1/build/libtool:9831:6: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob. # 9829| *.$objext | *.gcno) # 9830| ;; # 9831|-> $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*) # 9832| if test -n "$precious_files_regex"; then # 9833| if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 Error: SHELLCHECK_WARNING (CWE-456): [#def133] /usr/lib64/apr-1/build/libtool:9980:9: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 9978| libname=`eval "\\$ECHO \"$libname_spec\""` # 9979| deplib_matches=`eval "\\$ECHO \"$library_names_spec\""` # 9980|-> set dummy $deplib_matches; shift # 9981| deplib_match=$1 # 9982| if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then Error: SHELLCHECK_WARNING (CWE-156): [#def134] /usr/lib64/apr-1/build/libtool:9982:13: warning[SC2046]: Quote this to prevent word splitting. # 9980| set dummy $deplib_matches; shift # 9981| deplib_match=$1 # 9982|-> if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then # 9983| func_append newdeplibs " $i" # 9984| else Error: SHELLCHECK_WARNING (CWE-456): [#def135] /usr/lib64/apr-1/build/libtool:10023:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. #10021| libname=`eval "\\$ECHO \"$libname_spec\""` #10022| deplib_matches=`eval "\\$ECHO \"$library_names_spec\""` #10023|-> set dummy $deplib_matches; shift #10024| deplib_match=$1 #10025| if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then Error: SHELLCHECK_WARNING (CWE-156): [#def136] /usr/lib64/apr-1/build/libtool:10025:15: warning[SC2046]: Quote this to prevent word splitting. #10023| set dummy $deplib_matches; shift #10024| deplib_match=$1 #10025|-> if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then #10026| func_append newdeplibs " $i" #10027| else Error: SHELLCHECK_WARNING (CWE-456): [#def137] /usr/lib64/apr-1/build/libtool:10055:8: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. #10053| ;; #10054| file_magic*) #10055|-> set dummy $deplibs_check_method; shift #10056| file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` #10057| for a_deplib in $deplibs; do Error: SHELLCHECK_WARNING: [#def138] /usr/lib64/apr-1/build/libtool:10077:48: warning[SC3044]: In POSIX sh, 'shopt' is undefined. #10075| libnameglob=$libname #10076| fi #10077|-> test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob` #10078| for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do #10079| if test yes = "$want_nocaseglob"; then Error: SHELLCHECK_WARNING: [#def139] /usr/lib64/apr-1/build/libtool:10080:7: warning[SC3044]: In POSIX sh, 'shopt' is undefined. #10078| for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do #10079| if test yes = "$want_nocaseglob"; then #10080|-> shopt -s nocaseglob #10081| potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` #10082| $nocaseglob Error: SHELLCHECK_WARNING (CWE-398): [#def140] /usr/lib64/apr-1/build/libtool:10081:29: error[SC1087]: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet). #10079| if test yes = "$want_nocaseglob"; then #10080| shopt -s nocaseglob #10081|-> potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` #10082| $nocaseglob #10083| else Error: SHELLCHECK_WARNING (CWE-398): [#def141] /usr/lib64/apr-1/build/libtool:10084:29: error[SC1087]: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet). #10082| $nocaseglob #10083| else #10084|-> potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` #10085| fi #10086| for potent_lib in $potential_libs; do Error: SHELLCHECK_WARNING (CWE-456): [#def142] /usr/lib64/apr-1/build/libtool:10139:8: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. #10137| ;; #10138| match_pattern*) #10139|-> set dummy $deplibs_check_method; shift #10140| match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` #10141| for a_deplib in $deplibs; do Error: SHELLCHECK_WARNING (CWE-398): [#def143] /usr/lib64/apr-1/build/libtool:10157:27: error[SC1087]: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet). #10155| libname=`eval "\\$ECHO \"$libname_spec\""` #10156| for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do #10157|-> potential_libs=`ls $i/$libname[.-]* 2>/dev/null` #10158| for potent_lib in $potential_libs; do #10159| potlib=$potent_lib # see symlink-check above in file_magic test Error: SHELLCHECK_WARNING (CWE-456): [#def144] /usr/lib64/apr-1/build/libtool:10381:6: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. #10379| eval shared_ext=\"$shrext_cmds\" #10380| eval library_names=\"$library_names_spec\" #10381|-> set dummy $library_names #10382| shift #10383| realname=$1 Error: SHELLCHECK_WARNING (CWE-457): [#def145] /usr/lib64/apr-1/build/libtool:10551:43: warning[SC2154]: thread_safe_flag_spec is referenced but not assigned. #10549| fi #10550| #10551|-> if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then #10552| eval flag=\"$thread_safe_flag_spec\" #10553| func_append linker_flags " $flag" Error: SHELLCHECK_WARNING (CWE-456): [#def146] /usr/lib64/apr-1/build/libtool:10630:10: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. #10628| func_verbose "creating linker input file list: $output" #10629| : > $output #10630|-> set x $save_libobjs #10631| shift #10632| firstobj= Error: SHELLCHECK_WARNING (CWE-563): [#def147] /usr/lib64/apr-1/build/libtool:10749:42: warning[SC2034]: tmp_export_symbols appears unused. Verify use (or export if used externally). #10747| if test -n "$export_symbols" && test -n "$include_expsyms"; then #10748| tmp_export_symbols=$export_symbols #10749|-> test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols #10750| $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' #10751| fi Error: SHELLCHECK_WARNING (CWE-457): [#def148] /usr/lib64/apr-1/build/libtool:11130:10: warning[SC2154]: finalize_perm_rpath is referenced but not assigned. #11128| fi #11129| elif test -n "$runpath_var"; then #11130|-> case "$finalize_perm_rpath " in #11131| *" $libdir "*) ;; #11132| *) func_append finalize_perm_rpath " $libdir" ;; Error: SHELLCHECK_WARNING (CWE-569): [#def149] /usr/lib64/apr-1/build/libtool:11286:24: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it. #11284| # Preserve any variables that may affect compiler behavior #11285| for var in $variables_saved_for_relink; do #11286|-> if eval test -z \"\${$var+set}\"; then #11287| relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" #11288| elif eval var_value=\$$var; test -z "$var_value"; then Error: SHELLCHECK_WARNING (CWE-569): [#def150] /usr/lib64/apr-1/build/libtool:11286:33: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it. #11284| # Preserve any variables that may affect compiler behavior #11285| for var in $variables_saved_for_relink; do #11286|-> if eval test -z \"\${$var+set}\"; then #11287| relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" #11288| elif eval var_value=\$$var; test -z "$var_value"; then Error: SHELLCHECK_WARNING (CWE-457): [#def151] /usr/lib64/apr-1/build/libtool:11288:41: warning[SC2154]: var_value is referenced but not assigned. #11286| if eval test -z \"\${$var+set}\"; then #11287| relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" #11288|-> elif eval var_value=\$$var; test -z "$var_value"; then #11289| relink_command="$var=; export $var; $relink_command" #11290| else Error: SHELLCHECK_WARNING (CWE-569): [#def152] /usr/lib64/apr-1/build/libtool:11324:12: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled. #11322| cwrapper=$output_path/$output_name.exe #11323| $RM $cwrappersource $cwrapper #11324|-> trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 #11325| #11326| func_emit_cwrapperexe_src > $cwrappersource Error: SHELLCHECK_WARNING (CWE-569): [#def153] /usr/lib64/apr-1/build/libtool:11324:16: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled. #11322| cwrapper=$output_path/$output_name.exe #11323| $RM $cwrappersource $cwrapper #11324|-> trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 #11325| #11326| func_emit_cwrapperexe_src > $cwrappersource Error: SHELLCHECK_WARNING (CWE-569): [#def154] /usr/lib64/apr-1/build/libtool:11324:32: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled. #11322| cwrapper=$output_path/$output_name.exe #11323| $RM $cwrappersource $cwrapper #11324|-> trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 #11325| #11326| func_emit_cwrapperexe_src > $cwrappersource Error: SHELLCHECK_WARNING (CWE-569): [#def155] /usr/lib64/apr-1/build/libtool:11324:48: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled. #11322| cwrapper=$output_path/$output_name.exe #11323| $RM $cwrappersource $cwrapper #11324|-> trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 #11325| #11326| func_emit_cwrapperexe_src > $cwrappersource Error: SHELLCHECK_WARNING (CWE-569): [#def156] /usr/lib64/apr-1/build/libtool:11340:12: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled. #11338| func_ltwrapper_scriptname $cwrapper #11339| $RM $func_ltwrapper_scriptname_result #11340|-> trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 #11341| $opt_dry_run || { #11342| # note: this script will not be executed, so do not chmod. Error: SHELLCHECK_WARNING (CWE-569): [#def157] /usr/lib64/apr-1/build/libtool:11340:16: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled. #11338| func_ltwrapper_scriptname $cwrapper #11339| $RM $func_ltwrapper_scriptname_result #11340|-> trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 #11341| $opt_dry_run || { #11342| # note: this script will not be executed, so do not chmod. Error: SHELLCHECK_WARNING (CWE-569): [#def158] /usr/lib64/apr-1/build/libtool:11340:56: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled. #11338| func_ltwrapper_scriptname $cwrapper #11339| $RM $func_ltwrapper_scriptname_result #11340|-> trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 #11341| $opt_dry_run || { #11342| # note: this script will not be executed, so do not chmod. Error: SHELLCHECK_WARNING (CWE-569): [#def159] /usr/lib64/apr-1/build/libtool:11352:12: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled. #11350| * ) #11351| $RM $output #11352|-> trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 #11353| #11354| func_emit_wrapper no > $output Error: SHELLCHECK_WARNING (CWE-569): [#def160] /usr/lib64/apr-1/build/libtool:11352:16: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled. #11350| * ) #11351| $RM $output #11352|-> trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 #11353| #11354| func_emit_wrapper no > $output Error: SHELLCHECK_WARNING (CWE-569): [#def161] /usr/lib64/apr-1/build/libtool:11352:30: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled. #11350| * ) #11351| $RM $output #11352|-> trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 #11353| #11354| func_emit_wrapper no > $output Error: SHELLCHECK_WARNING: [#def162] /usr/lib64/apr-1/build/libtool:11432:6: warning[SC2195]: This pattern will never match the case statement's word. Double check them. #11430| objbase=$func_basename_result #11431| case " $oldobjs " in #11432|-> " ") oldobjs=$obj ;; #11433| *[\ /]"$objbase "*) #11434| while :; do Error: SHELLCHECK_WARNING (CWE-569): [#def163] /usr/lib64/apr-1/build/libtool:11532:22: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it. #11530| # Preserve any variables that may affect compiler behavior #11531| for var in $variables_saved_for_relink; do #11532|-> if eval test -z \"\${$var+set}\"; then #11533| relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" #11534| elif eval var_value=\$$var; test -z "$var_value"; then Error: SHELLCHECK_WARNING (CWE-569): [#def164] /usr/lib64/apr-1/build/libtool:11532:31: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it. #11530| # Preserve any variables that may affect compiler behavior #11531| for var in $variables_saved_for_relink; do #11532|-> if eval test -z \"\${$var+set}\"; then #11533| relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" #11534| elif eval var_value=\$$var; test -z "$var_value"; then Error: SHELLCHECK_WARNING (CWE-156): [#def165] /usr/lib64/apr-1/build/libtool:11566:15: warning[SC2046]: Quote this to prevent word splitting. #11564| name=$func_basename_result #11565| func_resolve_sysroot "$deplib" #11566|-> eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` #11567| test -z "$libdir" && \ #11568| func_fatal_error "'$deplib' is not a valid libtool archive" Error: SHELLCHECK_WARNING (CWE-156): [#def166] /usr/lib64/apr-1/build/libtool:11592:15: warning[SC2046]: Quote this to prevent word splitting. #11590| func_basename "$lib" #11591| name=$func_basename_result #11592|-> eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` #11593| test -z "$libdir" && \ #11594| func_fatal_error "'$lib' is not a valid libtool archive" Error: SHELLCHECK_WARNING (CWE-156): [#def167] /usr/lib64/apr-1/build/libtool:11611:15: warning[SC2046]: Quote this to prevent word splitting. #11609| func_basename "$lib" #11610| name=$func_basename_result #11611|-> eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` #11612| test -z "$libdir" && \ #11613| func_fatal_error "'$lib' is not a valid libtool archive" Error: SHELLCHECK_WARNING (CWE-563): [#def168] /usr/lib64/apr-1/build/libtool:11736:5: warning[SC2034]: libtool_install_magic appears unused. Verify use (or export if used externally). #11734| # This variable tells wrapper scripts just to set variables rather #11735| # than running their programs. #11736|-> libtool_install_magic=$magic #11737| #11738| for arg Error: SHELLCHECK_WARNING (CWE-456): [#def169] /usr/lib64/apr-1/build/mkdir.sh:18:9: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'. # 16| errstatus=0 # 17| for file in ${1+"$@"} ; do # 18|-> set fnord `echo ":$file" |\ # 19| sed -e 's/^:\//%/' -e 's/^://' -e 's/\// /g' -e 's/^%/\//'` # 20| shift Error: SHELLCHECK_WARNING (CWE-156): [#def170] /usr/lib64/apr-1/build/mkdir.sh:18:15: warning[SC2046]: Quote this to prevent word splitting. # 16| errstatus=0 # 17| for file in ${1+"$@"} ; do # 18|-> set fnord `echo ":$file" |\ # 19| sed -e 's/^:\//%/' -e 's/^://' -e 's/\// /g' -e 's/^%/\//'` # 20| shift Error: GCC_ANALYZER_WARNING (CWE-775): [#def171] apr-1.7.5-build/apr-1.7.5/file_io/unix/filedup.c: scope_hint: In function 'file_dup' apr-1.7.5-build/apr-1.7.5/file_io/unix/filedup.c:104:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'rv' # 102| * cleanup was already killed. # 103| */ # 104|-> if (which_dup == 2) { # 105| return APR_SUCCESS; # 106| } Error: GCC_ANALYZER_WARNING (CWE-775): [#def172] apr-1.7.5-build/apr-1.7.5/file_io/unix/filedup.c:116:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'rv' # 114| & ~(APR_INHERIT | APR_FOPEN_NOCLEANUP); # 115| # 116|-> apr_pool_cleanup_register((*new_file)->pool, (void *)(*new_file), # 117| apr_unix_file_cleanup, # 118| apr_unix_child_file_cleanup); Error: GCC_ANALYZER_WARNING (CWE-457): [#def173] apr-1.7.5-build/apr-1.7.5/file_io/unix/filepath.c: scope_hint: In function 'apr_filepath_merge' apr-1.7.5-build/apr-1.7.5/file_io/unix/filepath.c:138:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'getpath' # 136| char *getpath; # 137| rv = apr_filepath_get(&getpath, flags, p); # 138|-> rootpath = getpath; # 139| if (rv != APR_SUCCESS) # 140| return errno; Error: GCC_ANALYZER_WARNING (CWE-476): [#def174] apr-1.7.5-build/apr-1.7.5/memory/unix/apr_pools.c: scope_hint: In function 'apr_pool_note_subprocess' apr-1.7.5-build/apr-1.7.5/memory/unix/apr_pools.c:2734:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' apr-1.7.5-build/apr-1.7.5/memory/unix/apr_pools.c: scope_hint: In function 'apr_pool_note_subprocess' # 2732| struct process_chain *pc = apr_palloc(pool, sizeof(struct process_chain)); # 2733| # 2734|-> pc->proc = proc; # 2735| pc->kill_how = how; # 2736| pc->next = pool->subprocesses; Error: GCC_ANALYZER_WARNING (CWE-476): [#def175] apr-1.7.5-build/apr-1.7.5/misc/unix/otherchild.c: scope_hint: In function 'apr_proc_other_child_unregister' apr-1.7.5-build/apr-1.7.5/misc/unix/otherchild.c:99:38: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cur' # 97| # 98| /* segfault if this function called with invalid parm */ # 99|-> apr_pool_cleanup_kill(cur->p, cur->data, other_child_cleanup); # 100| other_child_cleanup(data); # 101| } Error: GCC_ANALYZER_WARNING (CWE-775): [#def176] apr-1.7.5-build/apr-1.7.5/network_io/unix/sockets.c: scope_hint: In function 'apr_socket_listen' apr-1.7.5-build/apr-1.7.5/network_io/unix/sockets.c:241:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor '*sock.socketdes' # 239| apr_status_t apr_socket_listen(apr_socket_t *sock, apr_int32_t backlog) # 240| { # 241|-> if (listen(sock->socketdes, backlog) == -1) # 242| return errno; # 243| else Error: GCC_ANALYZER_WARNING (CWE-457): [#def177] apr-1.7.5-build/apr-1.7.5/strings/apr_snprintf.c: scope_hint: In function 'conv_fp' apr-1.7.5-build/apr-1.7.5/strings/apr_snprintf.c:535:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'p' apr-1.7.5-build/apr-1.7.5/strings/apr_snprintf.c:25: included_from: Included from here. apr-1.7.5-build/apr-1.7.5/strings/apr_snprintf.c: scope_hint: In function 'conv_fp' apr-1.7.5-build/apr-1.7.5/strings/apr_snprintf.c: scope_hint: In function 'conv_fp' # 533| if (apr_isalpha(*p)) { # 534| *len = strlen(p); # 535|-> memcpy(buf, p, *len + 1); # 536| *is_negative = FALSE; # 537| return (buf); Error: GCC_ANALYZER_WARNING (CWE-476): [#def178] apr-1.7.5-build/apr-1.7.5/tables/apr_hash.c: scope_hint: In function 'apr_hash_merge' apr-1.7.5-build/apr-1.7.5/tables/apr_hash.c:474:30: warning[-Wanalyzer-null-dereference]: dereference of NULL 'new_vals' # 472| for (iter = base->array[k]; iter; iter = iter->next) { # 473| i = iter->hash & res->max; # 474|-> new_vals[j].klen = iter->klen; # 475| new_vals[j].key = iter->key; # 476| new_vals[j].val = iter->val; Error: GCC_ANALYZER_WARNING (CWE-476): [#def179] apr-1.7.5-build/apr-1.7.5/tables/apr_hash.c:505:34: warning[-Wanalyzer-null-dereference]: dereference of NULL 'new_vals' # 503| } # 504| if (!ent) { # 505|-> new_vals[j].klen = iter->klen; # 506| new_vals[j].key = iter->key; # 507| new_vals[j].val = iter->val; Error: GCC_ANALYZER_WARNING (CWE-476): [#def180] apr-1.7.5-build/apr-1.7.5/tables/apr_skiplist.c: scope_hint: In function 'insert_compare' apr-1.7.5-build/apr-1.7.5/tables/apr_skiplist.c:523:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'skiplist_new_node(sl)' apr-1.7.5-build/apr-1.7.5/tables/apr_skiplist.c: scope_hint: In function 'insert_compare' apr-1.7.5-build/apr-1.7.5/tables/apr_skiplist.c: scope_hint: In function 'insert_compare' # 521| while ((m = skiplist_qpop(&sl->stack_q))) { # 522| tmp = skiplist_new_node(sl); # 523|-> tmp->next = m->next; # 524| if (m->next) { # 525| m->next->prev = tmp; Error: GCC_ANALYZER_WARNING (CWE-476): [#def181] apr-1.7.5-build/apr-1.7.5/tables/apr_skiplist.c:582:18: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ret' apr-1.7.5-build/apr-1.7.5/tables/apr_skiplist.c: scope_hint: In function 'insert_compare' apr-1.7.5-build/apr-1.7.5/tables/apr_skiplist.c: scope_hint: In function 'insert_compare' # 580| for (p = apr_skiplist_getlist(sl->index); p; apr_skiplist_next(sl->index, &p)) { # 581| apr_skiplist *sli = (apr_skiplist *)p->data; # 582|-> ni = insert_compare(sli, ret->data, sli->compare, 1, NULL); # 583| li->nextindex = ni; # 584| ni->previndex = li; Error: GCC_ANALYZER_WARNING (CWE-476): [#def182] apr-1.7.5-build/apr-1.7.5/tables/apr_skiplist.c:584:27: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' apr-1.7.5-build/apr-1.7.5/tables/apr_skiplist.c: scope_hint: In function 'insert_compare' # 582| ni = insert_compare(sli, ret->data, sli->compare, 1, NULL); # 583| li->nextindex = ni; # 584|-> ni->previndex = li; # 585| li = ni; # 586| }
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-68.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | apr-1.7.5-1.fc42 |
store-results-to | /tmp/tmpzu5e66n5/apr-1.7.5-1.fc42.tar.xz |
time-created | 2024-11-12 23:14:06 |
time-finished | 2024-11-12 23:15:56 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpzu5e66n5/apr-1.7.5-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpzu5e66n5/apr-1.7.5-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |