Task #91405 - fixed.err

back to task #91405
download
Error: SHELLCHECK_WARNING (CWE-477):
/usr/bin/gpgrt-config:250:18: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#  248|   
#  249|   arg1_is_same () {
#  250|->     [ "$1" = "=" -o "$1" = ">=" -o "$1" = "<=" ]
#  251|   }
#  252|   

Error: SHELLCHECK_WARNING (CWE-477):
/usr/bin/gpgrt-config:250:33: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#  248|   
#  249|   arg1_is_same () {
#  250|->     [ "$1" = "=" -o "$1" = ">=" -o "$1" = "<=" ]
#  251|   }
#  252|   

Error: SHELLCHECK_WARNING (CWE-477):
/usr/bin/gpgrt-config:254:19: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#  252|   
#  253|   arg1_is_less () {
#  254|->     [ "$1" = "!=" -o "$1" = "<" -o "$1" = "<=" ]
#  255|   }
#  256|   

Error: SHELLCHECK_WARNING (CWE-477):
/usr/bin/gpgrt-config:254:33: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#  252|   
#  253|   arg1_is_less () {
#  254|->     [ "$1" = "!=" -o "$1" = "<" -o "$1" = "<=" ]
#  255|   }
#  256|   

Error: SHELLCHECK_WARNING (CWE-477):
/usr/bin/gpgrt-config:258:19: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#  256|   
#  257|   arg1_is_great () {
#  258|->     [ "$1" = "!=" -o "$1" = ">" -o "$1" = ">=" ]
#  259|   }
#  260|   

Error: SHELLCHECK_WARNING (CWE-477):
/usr/bin/gpgrt-config:258:33: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#  256|   
#  257|   arg1_is_great () {
#  258|->     [ "$1" = "!=" -o "$1" = ">" -o "$1" = ">=" ]
#  259|   }
#  260|   

Error: SHELLCHECK_WARNING (CWE-477):
/usr/bin/gpgrt-config:273:27: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#  271|       ___chunk2=""
#  272|   
#  273|->     while [ -n "$___str1" -a -n "$___str2" ]; do
#  274|   	# Trim anything that's not alnum or tilde from the front
#  275|   	___str1="$(expr "$___str1" : '[^0-9A-Za-z~]*\(.*\)')"

Error: SHELLCHECK_WARNING (CWE-477):
/usr/bin/gpgrt-config:282:23: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#  280|   	___char2=${___str2%${___str2#?}}
#  281|   
#  282|-> 	if [ "$___char1" = ~ -o "$___char2" = ~ ]; then
#  283|   	    if [ "$___char1" != ~ ]; then
#  284|   		arg1_is_great $___cmp

Error: SHELLCHECK_WARNING (CWE-477):
/usr/bin/gpgrt-config:296:22: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#  294|   	fi
#  295|   
#  296|-> 	if [ -z "$___char1" -o -z "$___char2" ]; then
#  297|   	    break
#  298|   	fi

Error: SHELLCHECK_WARNING (CWE-477):
/usr/bin/gpgrt-config:694:21: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#  692|   done
#  693|   
#  694|-> if [ -z "$want_var" -a -z "$want_attr" ]; then
#  695|       if [ -n "$want_cflags" ]; then
#  696|   	output="$output${output:+ }$(sysroot -I $(list_only_once $cflags))"

Error: SHELLCHECK_WARNING (CWE-477):
/usr/bin/gpgrt-config:698:17: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#  696|   	output="$output${output:+ }$(sysroot -I $(list_only_once $cflags))"
#  697|   	# Backward compatibility to old gpg-error-config
#  698|-> 	if [ $mt = yes -a -n "$mtcflags" ]; then
#  699|   	    output="$output${output:+ }$mtcflags"
#  700|   	fi

Error: SHELLCHECK_WARNING (CWE-477):
/usr/bin/gpgrt-config:705:17: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#  703|   	output="$output${output:+ }$(sysroot -L $(list_only_once_for_libs $libs))"
#  704|   	# Backward compatibility to old gpg-error-config
#  705|-> 	if [ $mt = yes -a -n "$mtlibs" ]; then
#  706|   	    output="$output${output:+ }$mtlibs"
#  707|   	fi

Error: GCC_ANALYZER_WARNING (CWE-404):
libgpg-error-1.55/src/visibility.c:1329:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.55/src/visibility.c:1328:3: acquire_resource: 'va_start' called here
libgpg-error-1.55/src/visibility.c:1329:12: throw: if '_gpgrt_vfnameconcat' throws an exception...
libgpg-error-1.55/src/visibility.c:1329:12: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
# 1327|   
# 1328|     va_start (arg_ptr, first);
# 1329|->   result = _gpgrt_vfnameconcat (0, first, arg_ptr);
# 1330|     va_end (arg_ptr);
# 1331|     return result;

Error: GCC_ANALYZER_WARNING (CWE-404):
libgpg-error-1.55/src/visibility.c:1341:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.55/src/visibility.c:1340:3: acquire_resource: 'va_start' called here
libgpg-error-1.55/src/visibility.c:1341:12: throw: if '_gpgrt_vfnameconcat' throws an exception...
libgpg-error-1.55/src/visibility.c:1341:12: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
# 1339|   
# 1340|     va_start (arg_ptr, first);
# 1341|->   result = _gpgrt_vfnameconcat (1, first, arg_ptr);
# 1342|     va_end (arg_ptr);
# 1343|     return result;