xen-4.19.0-4.fc42

List of Findings

Error: SHELLCHECK_WARNING (CWE-571): [#def1]
/etc/xen/scripts/block:101:13: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   99|       if [ -e "$file" ]
#  100|       then
#  101|->       local d=$(device_major_minor "$file")
#  102|   
#  103|         # checking for $d in $devmm is best through the [[...]] bashism

Error: SHELLCHECK_WARNING (CWE-571): [#def2]
/etc/xen/scripts/block:130:17: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  128|             fi
#  129|           else
#  130|->           local m=$(xenstore_read_default "$base_path/$dom/$dev/mode" "")
#  131|             m=$(canonicalise_mode "$m")
#  132|   

Error: SHELLCHECK_WARNING (CWE-571): [#def3]
/etc/xen/scripts/block:158:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  156|   {
#  157|     local dev="$1"
#  158|->   local mode=$(canonicalise_mode "$2")
#  159|     local type="device"
#  160|     local result

Error: SHELLCHECK_WARNING (CWE-457): [#def4]
/etc/xen/scripts/block:250:7: warning[SC2154]: command is referenced but not assigned (for output from commands, use "$(command ...)" ).
#  248|   fi
#  249|   
#  250|-> case "$command" in
#  251|     add)
#  252|       phys=$(xenstore_read_default "$XENBUS_PATH/physical-device" 'MISSING')

Error: SHELLCHECK_WARNING (CWE-563): [#def5]
/etc/xen/scripts/block:261:5: warning[SC2034]: FRONTEND_UUID appears unused. Verify use (or export if used externally).
#  259|   
#  260|       FRONTEND_ID=$(xenstore_read "$XENBUS_PATH/frontend-id")
#  261|->     FRONTEND_UUID=$(xenstore_read_default \
#  262|               "/local/domain/$FRONTEND_ID/vm" 'unknown')
#  263|   

Error: SHELLCHECK_WARNING (CWE-758): [#def6]
/etc/xen/scripts/block-common.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> #
#    2|   # Copyright (c) 2005 XenSource Ltd.
#    3|   #

Error: SHELLCHECK_WARNING (CWE-457): [#def7]
/etc/xen/scripts/block-common.sh:23:7: warning[SC2154]: command is referenced but not assigned (for output from commands, use "$(command ...)" ).
#   21|   findCommand "$@"
#   22|   
#   23|-> if [ "$command" != "add" ] &&
#   24|      [ "$command" != "remove" ]
#   25|   then

Error: SHELLCHECK_WARNING (CWE-571): [#def8]
/etc/xen/scripts/block-common.sh:111:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  109|     # VM is the same as FRONTEND_UUID, because that way the 'sharing' will be
#  110|     # allowed.
#  111|->   local othervm=$(xenstore_read_default "/local/domain/$otherdom/vm"         \
#  112|                     "$FRONTEND_UUID")
#  113|     local target=$(xenstore_read_default  "/local/domain/$FRONTEND_ID/target"   \

Error: SHELLCHECK_WARNING (CWE-571): [#def9]
/etc/xen/scripts/block-common.sh:113:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  111|     local othervm=$(xenstore_read_default "/local/domain/$otherdom/vm"         \
#  112|                     "$FRONTEND_UUID")
#  113|->   local target=$(xenstore_read_default  "/local/domain/$FRONTEND_ID/target"   \
#  114|                    "-1")
#  115|     local targetvm=$(xenstore_read_default "/local/domain/$target/vm" "No Target")

Error: SHELLCHECK_WARNING (CWE-571): [#def10]
/etc/xen/scripts/block-common.sh:115:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  113|     local target=$(xenstore_read_default  "/local/domain/$FRONTEND_ID/target"   \
#  114|                    "-1")
#  115|->   local targetvm=$(xenstore_read_default "/local/domain/$target/vm" "No Target")
#  116|     local otarget=$(xenstore_read_default  "/local/domain/$otherdom/target"   \
#  117|                    "-1")

Error: SHELLCHECK_WARNING (CWE-571): [#def11]
/etc/xen/scripts/block-common.sh:116:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  114|                    "-1")
#  115|     local targetvm=$(xenstore_read_default "/local/domain/$target/vm" "No Target")
#  116|->   local otarget=$(xenstore_read_default  "/local/domain/$otherdom/target"   \
#  117|                    "-1")
#  118|     local otvm=$(xenstore_read_default  "/local/domain/$otarget/vm"   \

Error: SHELLCHECK_WARNING (CWE-571): [#def12]
/etc/xen/scripts/block-common.sh:118:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  116|     local otarget=$(xenstore_read_default  "/local/domain/$otherdom/target"   \
#  117|                    "-1")
#  118|->   local otvm=$(xenstore_read_default  "/local/domain/$otarget/vm"   \
#  119|                    "No Other Target")
#  120|   

Error: SHELLCHECK_WARNING (CWE-477): [#def13]
/etc/xen/scripts/block-common.sh:123:35: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#  121|     local frontend_uuid=${FRONTEND_UUID%-1}
#  122|     
#  123|->   [ "$frontend_uuid" = "$othervm" -o "$targetvm" = "$othervm" -o \
#  124|       "$frontend_uuid" = "$otvm" -o "$targetvm" = "$otvm" ]
#  125|   }

Error: SHELLCHECK_WARNING (CWE-477): [#def14]
/etc/xen/scripts/block-common.sh:123:63: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#  121|     local frontend_uuid=${FRONTEND_UUID%-1}
#  122|     
#  123|->   [ "$frontend_uuid" = "$othervm" -o "$targetvm" = "$othervm" -o \
#  124|       "$frontend_uuid" = "$otvm" -o "$targetvm" = "$otvm" ]
#  125|   }

Error: SHELLCHECK_WARNING (CWE-477): [#def15]
/etc/xen/scripts/block-common.sh:124:32: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#  122|     
#  123|     [ "$frontend_uuid" = "$othervm" -o "$targetvm" = "$othervm" -o \
#  124|->     "$frontend_uuid" = "$otvm" -o "$targetvm" = "$otvm" ]
#  125|   }
#  126|   

Error: SHELLCHECK_WARNING (CWE-140): [#def16]
/etc/xen/scripts/block-drbd-probe:34:26: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
#   32|   {
#   33|       local drbd_dev=$1
#   34|->     local drbd_dev_list=($(drbdadm sh-dev all))
#   35|       local drbd_res_list=($(drbdadm sh-resource all))
#   36|       local temp_drbd_dev temp_drbd_res

Error: SHELLCHECK_WARNING (CWE-140): [#def17]
/etc/xen/scripts/block-drbd-probe:35:26: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
#   33|       local drbd_dev=$1
#   34|       local drbd_dev_list=($(drbdadm sh-dev all))
#   35|->     local drbd_res_list=($(drbdadm sh-resource all))
#   36|       local temp_drbd_dev temp_drbd_res
#   37|       local found=0

Error: SHELLCHECK_WARNING (CWE-88): [#def18]
/etc/xen/scripts/block-drbd-probe:39:26: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
#   37|       local found=0
#   38|   
#   39|->     for temp_drbd_dev in ${drbd_dev_list[@]}; do
#   40|           if [[ "$temp_drbd_dev" == "$drbd_dev" ]]; then
#   41|               found=1

Error: SHELLCHECK_WARNING (CWE-88): [#def19]
/etc/xen/scripts/block-drbd-probe:50:26: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
#   48|       fi
#   49|   
#   50|->     for temp_drbd_res in ${drbd_res_list[@]}; do
#   51|           temp_drbd_dev=$(drbdadm sh-dev $temp_drbd_res)
#   52|           if [[ "$temp_drbd_dev" == "$drbd_dev" ]]; then

Error: SHELLCHECK_WARNING (CWE-140): [#def20]
/etc/xen/scripts/block-dummy:39:13: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
#   37|   parse_target()
#   38|   {
#   39|->     params=($(echo "$1" | tr ":" "\n"))
#   40|   
#   41|       type=${params[0]}

Error: SHELLCHECK_WARNING (CWE-457): [#def21]
/etc/xen/scripts/block-enbd:13:7: warning[SC2154]: command is referenced but not assigned (for output from commands, use "$(command ...)" ).
#   11|   . "$dir/block-common.sh"
#   12|   
#   13|-> case "$command" in
#   14|     add)
#   15|       for dev in /dev/nd*; do

Error: SHELLCHECK_WARNING (CWE-149): [#def22]
/etc/xen/scripts/block-iscsi:31:26: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them.
#   29|   remove_label()
#   30|   {
#   31|->     echo $1 | sed "s/^\("$2"\)//"
#   32|   }
#   33|   

Error: SHELLCHECK_WARNING: [#def23]
/etc/xen/scripts/block-iscsi:76:18: error[SC2144]: -e doesn't work with globs. Use a for loop.
#   74|   {
#   75|       count=0
#   76|->     while [ ! -e /dev/disk/by-path/*"$iqn"-lun-0 ]; do
#   77|           sleep 1
#   78|           count=`expr $count + 1`

Error: SHELLCHECK_WARNING (CWE-398): [#def24]
/etc/xen/scripts/block-iscsi:79:20: warning[SC2050]: This expression is constant. Did you forget the $ on a variable?
#   77|           sleep 1
#   78|           count=`expr $count + 1`
#   79|->         if [ count = 100 ]; then
#   80|               # 10s timeout while waiting for iSCSI disk to settle
#   81|               fatal "timeout waiting for iSCSI disk to settle"

Error: SHELLCHECK_WARNING (CWE-457): [#def25]
/etc/xen/scripts/block-nbd:13:7: warning[SC2154]: command is referenced but not assigned (for output from commands, use "$(command ...)" ).
#   11|   . "$dir/block-common.sh"
#   12|   
#   13|-> case "$command" in
#   14|     add)
#   15|       for dev in /dev/nbd*; do

Error: SHELLCHECK_WARNING (CWE-149): [#def26]
/etc/xen/scripts/block-tap:36:26: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them.
#   34|   remove_label()
#   35|   {
#   36|->     echo $1 | sed "s/^\("$2"\)//"
#   37|   }
#   38|   

Error: SHELLCHECK_WARNING (CWE-140): [#def27]
/etc/xen/scripts/block-tap:50:13: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
#   48|   parse_target()
#   49|   {
#   50|->     params=($(echo "$1" | tr ":" "\n"))
#   51|   
#   52|       type=${params[0]}

Error: SHELLCHECK_WARNING (CWE-156): [#def28]
/etc/xen/scripts/block-tap:119:7: warning[SC2046]: Quote this to prevent word splitting.
#  117|   # be freed when there is a single one left.
#  118|   tap_shared() {
#  119|->     [ $( count_using "$file" ) -gt 1 ]
#  120|   }
#  121|   

Error: SHELLCHECK_WARNING (CWE-571): [#def29]
/etc/xen/scripts/block-tap:132:19: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  130|       for dom in $(xenstore-list "$base_path") ; do
#  131|           for dev in $(xenstore-list "$base_path/$dom") ; do
#  132|->             local f=$(xenstore_read_default "$base_path/$dom/$dev/params" "")
#  133|               f=$(echo "$f" | cut -d ":" -f 2)
#  134|   

Error: SHELLCHECK_WARNING (CWE-571): [#def30]
/etc/xen/scripts/block-tap:142:27: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  140|                       fi
#  141|                   else
#  142|->                     local m=$(xenstore_read_default "$base_path/$dom/$dev/mode"
#  143|                                                       "")
#  144|                       m=$(canonicalise_mode "$m")

Error: SHELLCHECK_WARNING: [#def31]
/etc/xen/scripts/block-tap:143:53: error[SC2286]: This empty string is interpreted as a command name. Double check syntax (or use 'true' as a no-op).
#  141|                   else
#  142|                       local m=$(xenstore_read_default "$base_path/$dom/$dev/mode"
#  143|->                                                     "")
#  144|                       m=$(canonicalise_mode "$m")
#  145|   

Error: SHELLCHECK_WARNING (CWE-457): [#def32]
/etc/xen/scripts/block-tap:173:30: warning[SC2154]: _lockfd is referenced but not assigned.
#  171|       # Ensure it is closed before running tap-ctl spawn, which needs to be
#  172|       # done in a subshell to continue holding the lock in the parent.
#  173|->     if ! pid=$( ( eval "exec $_lockfd>&-" ; tap-ctl spawn ) ) ; then
#  174|           tap-ctl free -m "$minor"
#  175|           fatal "Could not spawn tapdisk for $minor"

Error: SHELLCHECK_WARNING (CWE-563): [#def33]
/etc/xen/scripts/block-tap:267:1: warning[SC2034]: FRONTEND_UUID appears unused. Verify use (or export if used externally).
#  265|   # needed for same_vm
#  266|   FRONTEND_ID=$(xenstore_read "$XENBUS_PATH/frontend-id")
#  267|-> FRONTEND_UUID=$(xenstore_read_default \
#  268|                       "/local/domain/$FRONTEND_ID/vm" 'unknown')
#  269|   

Error: SHELLCHECK_WARNING (CWE-457): [#def34]
/etc/xen/scripts/colo-proxy-setup:9:7: warning[SC2154]: command is referenced but not assigned (for output from commands, use "$(command ...)" ).
#    7|   findCommand "$@"
#    8|   
#    9|-> if [ "$command" != "setup" -a  "$command" != "teardown" ]
#   10|   then
#   11|       echo "Invalid command: $command"

Error: SHELLCHECK_WARNING (CWE-477): [#def35]
/etc/xen/scripts/colo-proxy-setup:9:28: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#    7|   findCommand "$@"
#    8|   
#    9|-> if [ "$command" != "setup" -a  "$command" != "teardown" ]
#   10|   then
#   11|       echo "Invalid command: $command"

Error: SHELLCHECK_WARNING (CWE-477): [#def36]
/etc/xen/scripts/colo-proxy-setup:26:27: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#   24|   forwardbr="colobr0"
#   25|   
#   26|-> if [ "$mode" != "primary" -a "$mode" != "secondary" ]
#   27|   then
#   28|       echo "Invalid mode: $mode"

Error: SHELLCHECK_WARNING (CWE-477): [#def37]
/etc/xen/scripts/external-device-migrate:71:23: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#   69|   	done
#   70|   
#   71|-> 	if [ "$step"    = "" -o \
#   72|   	     "$host"    = "" -o \
#   73|   	     "$typ"     = "" -o \

Error: SHELLCHECK_WARNING (CWE-477): [#def38]
/etc/xen/scripts/external-device-migrate:72:23: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#   70|   
#   71|   	if [ "$step"    = "" -o \
#   72|-> 	     "$host"    = "" -o \
#   73|   	     "$typ"     = "" -o \
#   74|   	     "$domname" = "" ]; then

Error: SHELLCHECK_WARNING (CWE-477): [#def39]
/etc/xen/scripts/external-device-migrate:73:23: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#   71|   	if [ "$step"    = "" -o \
#   72|   	     "$host"    = "" -o \
#   73|-> 	     "$typ"     = "" -o \
#   74|   	     "$domname" = "" ]; then
#   75|   	 	echo "Error: Parameter(s) missing (-step/-host/-type/-domname)" 1>&2

Error: SHELLCHECK_WARNING (CWE-569): [#def40]
/etc/xen/scripts/external-device-migrate:90:35: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
#   88|   	if [ "$recover" = "1" ]; then
#   89|   		func="$typ"_recover
#   90|-> 		eval $func $host $domname $step $*
#   91|   	else
#   92|   		func="$typ"_migration_step

Error: SHELLCHECK_WARNING (CWE-569): [#def41]
/etc/xen/scripts/external-device-migrate:93:35: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
#   91|   	else
#   92|   		func="$typ"_migration_step
#   93|-> 		eval $func $host $domname $step $*
#   94|   	fi
#   95|   }

Error: SHELLCHECK_WARNING (CWE-758): [#def42]
/etc/xen/scripts/hotplugpath.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> sbindir="/usr/sbin"
#    2|   bindir="/usr/bin"
#    3|   LIBEXEC="/usr/libexec/xen"

Error: SHELLCHECK_WARNING (CWE-563): [#def43]
/etc/xen/scripts/hotplugpath.sh:1:1: warning[SC2034]: sbindir appears unused. Verify use (or export if used externally).
#    1|-> sbindir="/usr/sbin"
#    2|   bindir="/usr/bin"
#    3|   LIBEXEC="/usr/libexec/xen"

Error: SHELLCHECK_WARNING (CWE-563): [#def44]
/etc/xen/scripts/hotplugpath.sh:2:1: warning[SC2034]: bindir appears unused. Verify use (or export if used externally).
#    1|   sbindir="/usr/sbin"
#    2|-> bindir="/usr/bin"
#    3|   LIBEXEC="/usr/libexec/xen"
#    4|   LIBEXEC_BIN="/usr/libexec/xen/bin"

Error: SHELLCHECK_WARNING (CWE-563): [#def45]
/etc/xen/scripts/hotplugpath.sh:3:1: warning[SC2034]: LIBEXEC appears unused. Verify use (or export if used externally).
#    1|   sbindir="/usr/sbin"
#    2|   bindir="/usr/bin"
#    3|-> LIBEXEC="/usr/libexec/xen"
#    4|   LIBEXEC_BIN="/usr/libexec/xen/bin"
#    5|   libdir="/usr/lib64"

Error: SHELLCHECK_WARNING (CWE-563): [#def46]
/etc/xen/scripts/hotplugpath.sh:4:1: warning[SC2034]: LIBEXEC_BIN appears unused. Verify use (or export if used externally).
#    2|   bindir="/usr/bin"
#    3|   LIBEXEC="/usr/libexec/xen"
#    4|-> LIBEXEC_BIN="/usr/libexec/xen/bin"
#    5|   libdir="/usr/lib64"
#    6|   SHAREDIR="/usr/share"

Error: SHELLCHECK_WARNING (CWE-563): [#def47]
/etc/xen/scripts/hotplugpath.sh:5:1: warning[SC2034]: libdir appears unused. Verify use (or export if used externally).
#    3|   LIBEXEC="/usr/libexec/xen"
#    4|   LIBEXEC_BIN="/usr/libexec/xen/bin"
#    5|-> libdir="/usr/lib64"
#    6|   SHAREDIR="/usr/share"
#    7|   XENFIRMWAREDIR="/usr/libexec/xen/boot"

Error: SHELLCHECK_WARNING (CWE-563): [#def48]
/etc/xen/scripts/hotplugpath.sh:6:1: warning[SC2034]: SHAREDIR appears unused. Verify use (or export if used externally).
#    4|   LIBEXEC_BIN="/usr/libexec/xen/bin"
#    5|   libdir="/usr/lib64"
#    6|-> SHAREDIR="/usr/share"
#    7|   XENFIRMWAREDIR="/usr/libexec/xen/boot"
#    8|   XEN_CONFIG_DIR="/etc/xen"

Error: SHELLCHECK_WARNING (CWE-563): [#def49]
/etc/xen/scripts/hotplugpath.sh:7:1: warning[SC2034]: XENFIRMWAREDIR appears unused. Verify use (or export if used externally).
#    5|   libdir="/usr/lib64"
#    6|   SHAREDIR="/usr/share"
#    7|-> XENFIRMWAREDIR="/usr/libexec/xen/boot"
#    8|   XEN_CONFIG_DIR="/etc/xen"
#    9|   XEN_SCRIPT_DIR="/etc/xen/scripts"

Error: SHELLCHECK_WARNING (CWE-563): [#def50]
/etc/xen/scripts/hotplugpath.sh:8:1: warning[SC2034]: XEN_CONFIG_DIR appears unused. Verify use (or export if used externally).
#    6|   SHAREDIR="/usr/share"
#    7|   XENFIRMWAREDIR="/usr/libexec/xen/boot"
#    8|-> XEN_CONFIG_DIR="/etc/xen"
#    9|   XEN_SCRIPT_DIR="/etc/xen/scripts"
#   10|   XEN_LOCK_DIR="/var/lock"

Error: SHELLCHECK_WARNING (CWE-563): [#def51]
/etc/xen/scripts/hotplugpath.sh:9:1: warning[SC2034]: XEN_SCRIPT_DIR appears unused. Verify use (or export if used externally).
#    7|   XENFIRMWAREDIR="/usr/libexec/xen/boot"
#    8|   XEN_CONFIG_DIR="/etc/xen"
#    9|-> XEN_SCRIPT_DIR="/etc/xen/scripts"
#   10|   XEN_LOCK_DIR="/var/lock"
#   11|   XEN_RUN_DIR="/var/run/xen"

Error: SHELLCHECK_WARNING (CWE-563): [#def52]
/etc/xen/scripts/hotplugpath.sh:10:1: warning[SC2034]: XEN_LOCK_DIR appears unused. Verify use (or export if used externally).
#    8|   XEN_CONFIG_DIR="/etc/xen"
#    9|   XEN_SCRIPT_DIR="/etc/xen/scripts"
#   10|-> XEN_LOCK_DIR="/var/lock"
#   11|   XEN_RUN_DIR="/var/run/xen"
#   12|   XEN_PAGING_DIR="/var/lib/xen/xenpaging"

Error: SHELLCHECK_WARNING (CWE-563): [#def53]
/etc/xen/scripts/hotplugpath.sh:11:1: warning[SC2034]: XEN_RUN_DIR appears unused. Verify use (or export if used externally).
#    9|   XEN_SCRIPT_DIR="/etc/xen/scripts"
#   10|   XEN_LOCK_DIR="/var/lock"
#   11|-> XEN_RUN_DIR="/var/run/xen"
#   12|   XEN_PAGING_DIR="/var/lib/xen/xenpaging"
#   13|   XEN_DUMP_DIR="/var/lib/xen/dump"

Error: SHELLCHECK_WARNING (CWE-563): [#def54]
/etc/xen/scripts/hotplugpath.sh:12:1: warning[SC2034]: XEN_PAGING_DIR appears unused. Verify use (or export if used externally).
#   10|   XEN_LOCK_DIR="/var/lock"
#   11|   XEN_RUN_DIR="/var/run/xen"
#   12|-> XEN_PAGING_DIR="/var/lib/xen/xenpaging"
#   13|   XEN_DUMP_DIR="/var/lib/xen/dump"
#   14|   XEN_LOG_DIR="/var/log/xen"

Error: SHELLCHECK_WARNING (CWE-563): [#def55]
/etc/xen/scripts/hotplugpath.sh:13:1: warning[SC2034]: XEN_DUMP_DIR appears unused. Verify use (or export if used externally).
#   11|   XEN_RUN_DIR="/var/run/xen"
#   12|   XEN_PAGING_DIR="/var/lib/xen/xenpaging"
#   13|-> XEN_DUMP_DIR="/var/lib/xen/dump"
#   14|   XEN_LOG_DIR="/var/log/xen"
#   15|   XEN_LIB_DIR="/var/lib/xen"

Error: SHELLCHECK_WARNING (CWE-563): [#def56]
/etc/xen/scripts/hotplugpath.sh:14:1: warning[SC2034]: XEN_LOG_DIR appears unused. Verify use (or export if used externally).
#   12|   XEN_PAGING_DIR="/var/lib/xen/xenpaging"
#   13|   XEN_DUMP_DIR="/var/lib/xen/dump"
#   14|-> XEN_LOG_DIR="/var/log/xen"
#   15|   XEN_LIB_DIR="/var/lib/xen"
#   16|   XEN_RUN_STORED="/var/run/xenstored"

Error: SHELLCHECK_WARNING (CWE-563): [#def57]
/etc/xen/scripts/hotplugpath.sh:15:1: warning[SC2034]: XEN_LIB_DIR appears unused. Verify use (or export if used externally).
#   13|   XEN_DUMP_DIR="/var/lib/xen/dump"
#   14|   XEN_LOG_DIR="/var/log/xen"
#   15|-> XEN_LIB_DIR="/var/lib/xen"
#   16|   XEN_RUN_STORED="/var/run/xenstored"

Error: SHELLCHECK_WARNING (CWE-563): [#def58]
/etc/xen/scripts/hotplugpath.sh:16:1: warning[SC2034]: XEN_RUN_STORED appears unused. Verify use (or export if used externally).
#   14|   XEN_LOG_DIR="/var/log/xen"
#   15|   XEN_LIB_DIR="/var/lib/xen"
#   16|-> XEN_RUN_STORED="/var/run/xenstored"

Error: SHELLCHECK_WARNING (CWE-138): [#def59]
/etc/xen/scripts/launch-xenstore:42:25: error[SC2145]: Argument mixes string and array. Use * or separate argument.
#   40|   	# Exit if we timed out
#   41|   	if ! [ $time -lt $timeout ] ; then
#   42|-> 		echo "Could not start $@"
#   43|   		return 1
#   44|   	fi

Error: SHELLCHECK_WARNING (CWE-758): [#def60]
/etc/xen/scripts/locking.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> #
#    2|   # Copyright (c) 2005 XenSource Ltd.
#    3|   # Copyright (c) 2007 Red Hat

Error: SHELLCHECK_WARNING (CWE-477): [#def61]
/etc/xen/scripts/locking.sh:28:32: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#   26|       local i
#   27|       for ((i = 0; i < ${#_lockdict}; i++))
#   28|->     do [ -z "${_lockdict[$i]}" -o "${_lockdict[$i]}" = "$1" ] && break
#   29|       done
#   30|       _lockdict[$i]="$1"

Error: SHELLCHECK_WARNING (CWE-758): [#def62]
/etc/xen/scripts/logging.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> #
#    2|   # Copyright (c) 2005 XenSource Ltd.
#    3|   #

Error: SHELLCHECK_WARNING (CWE-138): [#def63]
/etc/xen/scripts/logging.sh:20:55: error[SC2145]: Argument mixes string and array. Use * or separate argument.
#   18|     local level="$1"
#   19|     shift
#   20|->   logger -p "daemon.$level" -- "$0:" "$@" || echo "$0 $@" >&2
#   21|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def64]
/etc/xen/scripts/remus-netbuf-setup:82:7: warning[SC2154]: command is referenced but not assigned (for output from commands, use "$(command ...)" ).
#   80|   findCommand "$@"
#   81|   
#   82|-> if [ "$command" != "setup" -a  "$command" != "teardown" ]
#   83|   then
#   84|     echo "Invalid command: $command"

Error: SHELLCHECK_WARNING (CWE-477): [#def65]
/etc/xen/scripts/remus-netbuf-setup:82:28: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#   80|   findCommand "$@"
#   81|   
#   82|-> if [ "$command" != "setup" -a  "$command" != "teardown" ]
#   83|   then
#   84|     echo "Invalid command: $command"

Error: SHELLCHECK_WARNING (CWE-571): [#def66]
/etc/xen/scripts/remus-netbuf-setup:121:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  119|   #return 0 if the ifb is free
#  120|   check_ifb() {
#  121|->     local installed=`nl-qdisc-list -d $1`
#  122|       [ -n "$installed" ] && return 1
#  123|   

Error: SHELLCHECK_WARNING (CWE-571): [#def67]
/etc/xen/scripts/remus-netbuf-setup:132:19: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  130|               local path="/libxl/$domid/remus/netbuf/$devid/ifb"
#  131|               xenstore-exists $path || continue
#  132|->             local ifb=`xenstore-read "$path" 2>/dev/null || true`
#  133|               [ "$ifb" = "$1" ] && return 1
#  134|           done

Error: SHELLCHECK_WARNING (CWE-571): [#def68]
/etc/xen/scripts/remus-netbuf-setup:200:15: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  198|       #up freeing another domain's allocated IFB inside the if loop.
#  199|       xenstore-exists "$XENBUS_PATH/ifb" && \
#  200|->         local ifb2=`xenstore-read "$XENBUS_PATH/ifb" 2>/dev/null || true`
#  201|   
#  202|       if [[ "$ifb2" && "$ifb2" == "$ifb" ]]; then

Error: SHELLCHECK_WARNING (CWE-457): [#def69]
/etc/xen/scripts/vif-bridge:79:7: warning[SC2154]: command is referenced but not assigned (for output from commands, use "$(command ...)" ).
#   77|   fi
#   78|   
#   79|-> case "$command" in
#   80|       add|online)
#   81|           setup_virtual_bridge_port "$dev"

Error: SHELLCHECK_WARNING (CWE-457): [#def70]
/etc/xen/scripts/vif-bridge:81:36: warning[SC2154]: dev is referenced but not assigned.
#   79|   case "$command" in
#   80|       add|online)
#   81|->         setup_virtual_bridge_port "$dev"
#   82|           set_mtu "$bridge" "$dev" "$type_if"
#   83|           add_to_bridge "$bridge" "$dev"

Error: SHELLCHECK_WARNING (CWE-457): [#def71]
/etc/xen/scripts/vif-bridge:82:35: warning[SC2154]: type_if is referenced but not assigned.
#   80|       add|online)
#   81|           setup_virtual_bridge_port "$dev"
#   82|->         set_mtu "$bridge" "$dev" "$type_if"
#   83|           add_to_bridge "$bridge" "$dev"
#   84|           ;;

Error: SHELLCHECK_WARNING (CWE-477): [#def72]
/etc/xen/scripts/vif-bridge:95:23: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#   93|   
#   94|   log debug "Successful vif-bridge $command for $dev, bridge $bridge."
#   95|-> if [ "$type_if" = vif -a "$command" = "online" ]
#   96|   then
#   97|     success

Error: SHELLCHECK_WARNING (CWE-758): [#def73]
/etc/xen/scripts/vif-common.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> #
#    2|   # Copyright (c) 2005 XenSource Ltd.
#    3|   #

Error: SHELLCHECK_WARNING (CWE-457): [#def74]
/etc/xen/scripts/vif-common.sh:24:7: warning[SC2154]: command is referenced but not assigned (for output from commands, use "$(command ...)" ).
#   22|   findCommand "$@"
#   23|   
#   24|-> if [ "$command" != "online" ]  &&
#   25|      [ "$command" != "offline" ] &&
#   26|      [ "$command" != "add" ]     &&

Error: SHELLCHECK_WARNING (CWE-457): [#def75]
/etc/xen/scripts/vif-common.sh:47:13: warning[SC2154]: vif is referenced but not assigned.
#   45|   case "$type_if" in
#   46|       vif)
#   47|->         dev=$vif
#   48|           ;;
#   49|       tap)

Error: SHELLCHECK_WARNING: [#def76]
/etc/xen/scripts/vif-common.sh:141:10: warning[SC2319]: This $? refers to a condition, not a command. Assign to a variable to avoid it being overwritten.
#  139|   	    # If we succeed, then -w is supported; don't check again
#  140|   	    IPTABLES_WAIT_RUNE_CHECKED=true
#  141|-> 	elif [[ $? == 2 ]] ; then
#  142|   	    iptables -L -n >& /dev/null
#  143|   	    if [[ $? != 2 ]] ; then

Error: SHELLCHECK_WARNING (CWE-477): [#def77]
/etc/xen/scripts/vif-common.sh:157:31: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#  155|   frob_iptable()
#  156|   {
#  157|->   if [ "$command" == "online" -o "$command" == "add" ]
#  158|     then
#  159|       local c="-I"

Error: SHELLCHECK_WARNING (CWE-477): [#def78]
/etc/xen/scripts/vif-common.sh:169:34: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#  167|       -j ACCEPT 2>/dev/null
#  168|   
#  169|->   if [ \( "$command" == "online" -o "$command" == "add" \) -a $? -ne 0 ]
#  170|     then
#  171|       log err "iptables setup failed. This may affect guest networking."

Error: SHELLCHECK_WARNING (CWE-477): [#def79]
/etc/xen/scripts/vif-common.sh:169:60: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#  167|       -j ACCEPT 2>/dev/null
#  168|   
#  169|->   if [ \( "$command" == "online" -o "$command" == "add" \) -a $? -ne 0 ]
#  170|     then
#  171|       log err "iptables setup failed. This may affect guest networking."

Error: SHELLCHECK_WARNING (CWE-571): [#def80]
/etc/xen/scripts/vif-common.sh:238:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  236|   {
#  237|     local nd=${netdev:-eth0}
#  238|->   local result=$(ip_of "$nd")
#  239|     if [ -z "$result" ]
#  240|     then

Error: SHELLCHECK_WARNING (CWE-156): [#def81]
/etc/xen/scripts/vif-nat:64:8: warning[SC2046]: Quote this to prevent word splitting.
#   62|   routing_ip()
#   63|   {
#   64|->   echo $(echo $1 | awk -F. '{print $1"."$2"."$3"."$4 + 127}')
#   65|   }
#   66|   

Error: SHELLCHECK_WARNING (CWE-571): [#def82]
/etc/xen/scripts/vif-nat:96:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   94|   dhcparg_remove_entry()
#   95|   {
#   96|->   local tmpfile=$(mktemp)
#   97|     sed -e "s/${dev} //" "$dhcpd_arg_file" >"$tmpfile"
#   98|     if ! diff "$tmpfile" "$dhcpd_arg_file" >/dev/null

Error: SHELLCHECK_WARNING (CWE-457): [#def83]
/etc/xen/scripts/vif-nat:97:13: warning[SC2154]: dev is referenced but not assigned.
#   95|   {
#   96|     local tmpfile=$(mktemp)
#   97|->   sed -e "s/${dev} //" "$dhcpd_arg_file" >"$tmpfile"
#   98|     if ! diff "$tmpfile" "$dhcpd_arg_file" >/dev/null
#   99|     then

Error: SHELLCHECK_WARNING (CWE-571): [#def84]
/etc/xen/scripts/vif-nat:108:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  106|   {
#  107|     dhcparg_remove_entry
#  108|->   local tmpfile=$(mktemp)
#  109|     # handle Red Hat, SUSE, and Debian styles, with or without quotes
#  110|     sed -e 's/^DHCPDARGS="*\([^"]*\)"*/DHCPDARGS="\1'"${dev} "'"/' \

Error: SHELLCHECK_WARNING (CWE-571): [#def85]
/etc/xen/scripts/vif-nat:121:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  119|   dhcp_remove_entry()
#  120|   {
#  121|->   local tmpfile=$(mktemp)
#  122|     grep -v "host $hostname" "$dhcpd_conf_file" >"$tmpfile"
#  123|     if ! diff "$tmpfile" "$dhcpd_conf_file" >/dev/null

Error: SHELLCHECK_WARNING (CWE-457): [#def86]
/etc/xen/scripts/vif-nat:159:7: warning[SC2154]: command is referenced but not assigned (for output from commands, use "$(command ...)" ).
#  157|   
#  158|   
#  159|-> case "$command" in
#  160|       online)
#  161|           if ip route | grep -q "dev ${dev}"

Error: SHELLCHECK_WARNING (CWE-571): [#def87]
/etc/xen/scripts/vif-openvswitch:49:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   47|   openvswitch_external_id_all() {
#   48|       local dev=$1
#   49|->     local frontend_id=$(xenstore_read "$XENBUS_PATH/frontend-id")
#   50|       local vm_path=$(xenstore_read "/local/domain/${frontend_id}/vm")
#   51|       local name=$(xenstore_read "${vm_path}/name")

Error: SHELLCHECK_WARNING (CWE-571): [#def88]
/etc/xen/scripts/vif-openvswitch:50:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   48|       local dev=$1
#   49|       local frontend_id=$(xenstore_read "$XENBUS_PATH/frontend-id")
#   50|->     local vm_path=$(xenstore_read "/local/domain/${frontend_id}/vm")
#   51|       local name=$(xenstore_read "${vm_path}/name")
#   52|       openvswitch_external_id $dev "xen-vm-name" "$name"

Error: SHELLCHECK_WARNING (CWE-571): [#def89]
/etc/xen/scripts/vif-openvswitch:51:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   49|       local frontend_id=$(xenstore_read "$XENBUS_PATH/frontend-id")
#   50|       local vm_path=$(xenstore_read "/local/domain/${frontend_id}/vm")
#   51|->     local name=$(xenstore_read "${vm_path}/name")
#   52|       openvswitch_external_id $dev "xen-vm-name" "$name"
#   53|       local uuid=$(xenstore_read "${vm_path}/uuid")

Error: SHELLCHECK_WARNING (CWE-571): [#def90]
/etc/xen/scripts/vif-openvswitch:53:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   51|       local name=$(xenstore_read "${vm_path}/name")
#   52|       openvswitch_external_id $dev "xen-vm-name" "$name"
#   53|->     local uuid=$(xenstore_read "${vm_path}/uuid")
#   54|       openvswitch_external_id $dev "xen-vm-uuid" "$uuid"
#   55|       local mac=$(xenstore_read "$XENBUS_PATH/mac")

Error: SHELLCHECK_WARNING (CWE-571): [#def91]
/etc/xen/scripts/vif-openvswitch:55:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   53|       local uuid=$(xenstore_read "${vm_path}/uuid")
#   54|       openvswitch_external_id $dev "xen-vm-uuid" "$uuid"
#   55|->     local mac=$(xenstore_read "$XENBUS_PATH/mac")
#   56|       openvswitch_external_id $dev "attached-mac" "$mac"
#   57|   }

Error: SHELLCHECK_WARNING (CWE-571): [#def92]
/etc/xen/scripts/vif-openvswitch:61:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   59|   add_to_openvswitch () {
#   60|       local dev=$1
#   61|->     local bridge="$(xenstore_read_default "$XENBUS_PATH/bridge" "$bridge")"
#   62|       local tag trunk
#   63|   

Error: SHELLCHECK_WARNING (CWE-571): [#def93]
/etc/xen/scripts/vif-openvswitch:80:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   78|       fi
#   79|   
#   80|->     local vif_details="$(openvswitch_external_id_all $dev)"
#   81|   
#   82|       do_or_die ovs-vsctl --timeout=30 \

Error: SHELLCHECK_WARNING (CWE-457): [#def94]
/etc/xen/scripts/vif-openvswitch:88:7: warning[SC2154]: command is referenced but not assigned (for output from commands, use "$(command ...)" ).
#   86|   }
#   87|   
#   88|-> case "$command" in
#   89|       add|online)
#   90|           check_tools

Error: SHELLCHECK_WARNING (CWE-457): [#def95]
/etc/xen/scripts/vif-openvswitch:102:7: warning[SC2154]: type_if is referenced but not assigned.
#  100|   esac
#  101|   
#  102|-> if [ "$type_if" = vif ]; then
#  103|       handle_iptable
#  104|   fi

Error: SHELLCHECK_WARNING (CWE-477): [#def96]
/etc/xen/scripts/vif-openvswitch:107:23: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#  105|   
#  106|   log debug "Successful vif-openvswitch $command for $dev."
#  107|-> if [ "$type_if" = vif -a "$command" = "online" ]; then
#  108|       success
#  109|   fi

Error: SHELLCHECK_WARNING (CWE-457): [#def97]
/etc/xen/scripts/vif-route:24:7: warning[SC2154]: command is referenced but not assigned (for output from commands, use "$(command ...)" ).
#   22|   main_ip=$(dom0_ip)
#   23|   
#   24|-> case "${command}" in
#   25|       add|online)
#   26|           ifconfig ${dev} ${main_ip} netmask 255.255.255.255 up

Error: SHELLCHECK_WARNING (CWE-457): [#def98]
/etc/xen/scripts/vif-route:26:18: warning[SC2154]: dev is referenced but not assigned.
#   24|   case "${command}" in
#   25|       add|online)
#   26|->         ifconfig ${dev} ${main_ip} netmask 255.255.255.255 up
#   27|           echo 1 >/proc/sys/net/ipv4/conf/${dev}/proxy_arp
#   28|           ipcmd='add'

Error: SHELLCHECK_WARNING (CWE-457): [#def99]
/etc/xen/scripts/vif-route:38:7: warning[SC2154]: type_if is referenced but not assigned.
#   36|   esac
#   37|   
#   38|-> case "${type_if}" in
#   39|       tap)
#   40|   	metric=1

Error: SHELLCHECK_WARNING (CWE-457): [#def100]
/etc/xen/scripts/vif-route:52:13: warning[SC2154]: ip is referenced but not assigned.
#   50|   # If we've been given a list of IP addresses, then add routes from dom0 to
#   51|   # the guest using those addresses.
#   52|-> for addr in ${ip} ; do
#   53|       ${cmdprefix} ip route ${ipcmd} ${addr} dev ${dev} src ${main_ip} metric ${metric}
#   54|   done

Error: SHELLCHECK_WARNING (CWE-457): [#def101]
/etc/xen/scripts/vif-setup:3:10: warning[SC2154]: script is referenced but not assigned.
#    1|   #!/usr/bin/bash
#    2|   
#    3|-> if test "$script"
#    4|   then
#    5|       exec $script $*

Error: SHELLCHECK_WARNING (CWE-569): [#def102]
/etc/xen/scripts/vif-setup:5:18: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
#    3|   if test "$script"
#    4|   then
#    5|->     exec $script $*
#    6|   else
#    7|       exec /etc/xen/scripts/vif-bridge $*

Error: SHELLCHECK_WARNING (CWE-569): [#def103]
/etc/xen/scripts/vif-setup:7:38: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
#    5|       exec $script $*
#    6|   else
#    7|->     exec /etc/xen/scripts/vif-bridge $*
#    8|   fi
#    9|   

Error: SHELLCHECK_WARNING (CWE-457): [#def104]
/etc/xen/scripts/vscsi:12:7: warning[SC2154]: command is referenced but not assigned (for output from commands, use "$(command ...)" ).
#   10|   findCommand "$@"
#   11|   
#   12|-> case "$command" in
#   13|   	add)
#   14|   		success

Error: SHELLCHECK_WARNING (CWE-758): [#def105]
/etc/xen/scripts/xen-hotplug-common.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> #
#    2|   # Copyright (c) 2005 XenSource Ltd.
#    3|   #

Error: SHELLCHECK_WARNING (CWE-457): [#def106]
/etc/xen/scripts/xen-hotplug-common.sh:25:14: warning[SC2154]: bindir is referenced but not assigned.
#   23|   exec 2>>/var/log/xen/xen-hotplug.log
#   24|   
#   25|-> export PATH="${bindir}:${sbindir}:${LIBEXEC_BIN}:/sbin:/bin:/usr/bin:/usr/sbin:$PATH"
#   26|   export LD_LIBRARY_PATH="${libdir}${LD_LIBRARY_PATH+:}$LD_LIBRARY_PATH"
#   27|   export LANG="POSIX"

Error: SHELLCHECK_WARNING (CWE-457): [#def107]
/etc/xen/scripts/xen-hotplug-common.sh:25:24: warning[SC2154]: sbindir is referenced but not assigned.
#   23|   exec 2>>/var/log/xen/xen-hotplug.log
#   24|   
#   25|-> export PATH="${bindir}:${sbindir}:${LIBEXEC_BIN}:/sbin:/bin:/usr/bin:/usr/sbin:$PATH"
#   26|   export LD_LIBRARY_PATH="${libdir}${LD_LIBRARY_PATH+:}$LD_LIBRARY_PATH"
#   27|   export LANG="POSIX"

Error: SHELLCHECK_WARNING (CWE-457): [#def108]
/etc/xen/scripts/xen-hotplug-common.sh:26:25: warning[SC2154]: libdir is referenced but not assigned.
#   24|   
#   25|   export PATH="${bindir}:${sbindir}:${LIBEXEC_BIN}:/sbin:/bin:/usr/bin:/usr/sbin:$PATH"
#   26|-> export LD_LIBRARY_PATH="${libdir}${LD_LIBRARY_PATH+:}$LD_LIBRARY_PATH"
#   27|   export LANG="POSIX"
#   28|   unset $(set | grep ^LC_ | cut -d= -f1)

Error: SHELLCHECK_WARNING (CWE-156): [#def109]
/etc/xen/scripts/xen-hotplug-common.sh:28:7: warning[SC2046]: Quote this to prevent word splitting.
#   26|   export LD_LIBRARY_PATH="${libdir}${LD_LIBRARY_PATH+:}$LD_LIBRARY_PATH"
#   27|   export LANG="POSIX"
#   28|-> unset $(set | grep ^LC_ | cut -d= -f1)
#   29|   
#   30|   fatal() {

Error: SHELLCHECK_WARNING (CWE-138): [#def110]
/etc/xen/scripts/xen-hotplug-common.sh:43:18: error[SC2145]: Argument mixes string and array. Use * or separate argument.
#   41|   
#   42|   do_or_die() {
#   43|->   "$@" || fatal "$@ failed"
#   44|   }
#   45|   

Error: SHELLCHECK_WARNING (CWE-138): [#def111]
/etc/xen/scripts/xen-hotplug-common.sh:47:34: error[SC2145]: Argument mixes string and array. Use * or separate argument.
#   45|   
#   46|   do_without_error() {
#   47|->   "$@" 2>/dev/null || log debug "$@ failed"
#   48|   }
#   49|   

Error: SHELLCHECK_WARNING (CWE-571): [#def112]
/etc/xen/scripts/xen-hotplug-common.sh:64:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   62|   #
#   63|   xenstore_read() {
#   64|->   local v=$(xenstore-read "$@" || true)
#   65|     [ "$v" != "" ] || fatal "xenstore-read $@ failed."
#   66|     echo "$v"

Error: SHELLCHECK_WARNING (CWE-138): [#def113]
/etc/xen/scripts/xen-hotplug-common.sh:65:42: error[SC2145]: Argument mixes string and array. Use * or separate argument.
#   63|   xenstore_read() {
#   64|     local v=$(xenstore-read "$@" || true)
#   65|->   [ "$v" != "" ] || fatal "xenstore-read $@ failed."
#   66|     echo "$v"
#   67|   }

Error: SHELLCHECK_WARNING (CWE-138): [#def114]
/etc/xen/scripts/xen-hotplug-common.sh:87:22: error[SC2145]: Argument mixes string and array. Use * or separate argument.
#   85|   #
#   86|   _xenstore_write() {
#   87|->   log debug "Writing $@ to xenstore."
#   88|     xenstore-write "$@"
#   89|   }

Error: SHELLCHECK_WARNING (CWE-138): [#def115]
/etc/xen/scripts/xen-hotplug-common.sh:98:42: error[SC2145]: Argument mixes string and array. Use * or separate argument.
#   96|   #
#   97|   xenstore_write() {
#   98|->   _xenstore_write "$@" || fatal "Writing $@ to xenstore failed."
#   99|   }
#  100|   

Error: SHELLCHECK_WARNING (CWE-398): [#def116]
/etc/xen/scripts/xen-network-common.sh:57:8: error[SC1073]: Couldn't parse this test expression. Fix to allow more checks.
#   55|     for file in $@
#   56|     do
#   57|->     if [ "$t" "$file" ]
#   58|       then
#   59|         echo "$file"

Error: SHELLCHECK_WARNING (CWE-398): [#def117]
/etc/xen/scripts/xen-network-common.sh:57:16: error[SC1072]: Expected comparison operator (don't wrap commands in []/[[]]). Fix any mentioned problems and try again.
#   55|     for file in $@
#   56|     do
#   57|->     if [ "$t" "$file" ]
#   58|       then
#   59|         echo "$file"

Error: SHELLCHECK_WARNING (CWE-758): [#def118]
/etc/xen/scripts/xen-script-common.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> #
#    2|   # Copyright (c) 2005 XenSource Ltd.
#    3|   #

Error: SHELLCHECK_WARNING (CWE-563): [#def119]
/etc/xen/scripts/xen-script-common.sh:39:7: warning[SC2034]: command appears unused. Verify use (or export if used externally).
#   37|       if ! expr 'index' "$arg" '=' >/dev/null
#   38|       then
#   39|->       command="$arg"
#   40|         return
#   41|       fi

Error: SHELLCHECK_WARNING (CWE-457): [#def120]
/usr/libexec/xen/bin/xendomains:32:5: warning[SC2154]: sbindir is referenced but not assigned.
#   30|   . /etc/xen/scripts/hotplugpath.sh
#   31|   
#   32|-> CMD=${sbindir}/xl
#   33|   HEADCOMP="Xen saved domain"
#   34|   $CMD list &> /dev/null

Error: SHELLCHECK_WARNING: [#def121]
/usr/libexec/xen/bin/xendomains:37:7: warning[SC2319]: This $? refers to a condition, not a command. Assign to a variable to avoid it being overwritten.
#   35|   if test $? -ne 0
#   36|   then
#   37|-> 	exit $?
#   38|   fi
#   39|   

Error: SHELLCHECK_WARNING (CWE-398): [#def122]
/usr/libexec/xen/bin/xendomains:80:9: warning[SC1010]: Use semicolon or linefeed before 'done' (or quote to make it literal).
#   78|   	_RC_UNUSED=3
#   79|       else
#   80|-> 	_SMSG=(done failed failed missed failed skipped unused failed failed)
#   81|   	_RC_UNUSED=6
#   82|       fi

Error: SHELLCHECK_WARNING: [#def123]
/usr/libexec/xen/bin/xendomains:132:9: error[SC2151]: Only one integer 0-255 can be returned. Use stdout for other data.
#  130|       rc_check()
#  131|       {
#  132|-> 	return rc_failed $?
#  133|       }
#  134|       rc_status()

Error: SHELLCHECK_WARNING (CWE-156): [#def124]
/usr/libexec/xen/bin/xendomains:173:23: warning[SC2046]: Quote this to prevent word splitting.
#  171|   contains_something()
#  172|   {
#  173|->   if [ -d "$1" ] && [ `/bin/ls $1 | wc -l` -gt 0 ]
#  174|     then
#  175|       return 0

Error: SHELLCHECK_WARNING (CWE-457): [#def125]
/usr/libexec/xen/bin/xendomains:208:15: warning[SC2154]: bindir is referenced but not assigned.
#  206|   get_xsdomid()
#  207|   {
#  208|->     XS_DOMID=`${bindir}/xenstore-read /tool/xenstored/domid 2>/dev/null`
#  209|       if test $? -ne 0; then
#  210|           XS_DOMID=0

Error: SHELLCHECK_WARNING: [#def126]
/usr/libexec/xen/bin/xendomains:217:19: warning[SC2076]: Remove quotes from right-hand side of =~ to match as a regex rather than literally.
#  215|   parseln()
#  216|   {
#  217|->     if [[ "$1" =~ '(domain' ]] || [[ "$1" = "{" ]]; then
#  218|           name=;id=
#  219|       elif [[ "$1" =~ '(name' ]]; then

Error: SHELLCHECK_WARNING: [#def127]
/usr/libexec/xen/bin/xendomains:219:21: warning[SC2076]: Remove quotes from right-hand side of =~ to match as a regex rather than literally.
#  217|       if [[ "$1" =~ '(domain' ]] || [[ "$1" = "{" ]]; then
#  218|           name=;id=
#  219|->     elif [[ "$1" =~ '(name' ]]; then
#  220|           name=$(echo $1 | sed -e 's/^.*(name \(.*\))$/\1/')
#  221|       elif [[ "$1" =~ '(domid' ]]; then

Error: SHELLCHECK_WARNING: [#def128]
/usr/libexec/xen/bin/xendomains:221:21: warning[SC2076]: Remove quotes from right-hand side of =~ to match as a regex rather than literally.
#  219|       elif [[ "$1" =~ '(name' ]]; then
#  220|           name=$(echo $1 | sed -e 's/^.*(name \(.*\))$/\1/')
#  221|->     elif [[ "$1" =~ '(domid' ]]; then
#  222|           id=$(echo $1 | sed -e 's/^.*(domid \(.*\))$/\1/')
#  223|       elif [[ "$1" =~ '"name":' ]]; then

Error: SHELLCHECK_WARNING (CWE-477): [#def129]
/usr/libexec/xen/bin/xendomains:229:18: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#  227|       fi
#  228|   
#  229|->     [ -n "$name" -a -n "$id" ] && return 0 || return 1
#  230|   }
#  231|   

Error: SHELLCHECK_WARNING (CWE-691): [#def130]
/usr/libexec/xen/bin/xendomains:243:7: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob.
#  241|   	if test $id = $XS_DOMID; then continue; fi
#  242|   	case $name in
#  243|-> 	    ($NM)
#  244|   		RC=0
#  245|   		;;

Error: SHELLCHECK_WARNING (CWE-156): [#def131]
/usr/libexec/xen/bin/xendomains:258:14: warning[SC2046]: Quote this to prevent word splitting.
#  256|       fi
#  257|   
#  258|->     mkdir -p $(dirname "$LOCKFILE")
#  259|       touch $LOCKFILE
#  260|   

Error: SHELLCHECK_WARNING: [#def132]
/usr/libexec/xen/bin/xendomains:276:35: warning[SC2320]: This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
#  274|                       if [ $? -ne 0 ]; then
#  275|                           echo -e "\nAn error occurred while restoring domain ${dom##*/}:\n$XMR"
#  276|->                         rc_failed $?
#  277|                           echo -e '!'
#  278|                       else

Error: SHELLCHECK_WARNING: [#def133]
/usr/libexec/xen/bin/xendomains:310:17: warning[SC2320]: This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
#  308|   		if [ $? -ne 0 ]; then
#  309|   		    echo -e "\nAn error occurred while creating domain ${dom##*/}: $XMC\n"
#  310|-> 		    rc_failed $?
#  311|   		    echo -e '!'
#  312|   		else

Error: SHELLCHECK_WARNING (CWE-457): [#def134]
/usr/libexec/xen/bin/xendomains:328:11: warning[SC2154]: state is referenced but not assigned.
#  326|   	if test $id = 0; then continue; fi
#  327|   	if test $id = $XS_DOMID; then continue; fi
#  328|-> 	if test "$state" != "-b---d" -a "$state" != "-----d"; then
#  329|   	    return 1;
#  330|   	fi

Error: SHELLCHECK_WARNING (CWE-563): [#def135]
/usr/libexec/xen/bin/xendomains:348:5: warning[SC2034]: no appears unused. Verify use (or export if used externally).
#  346|   
#  347|       usleep 20000
#  348|->     for no in `seq 0 $XENDOMAINS_STOP_MAXWAIT`; do
#  349|   	# exit if $CMD save/migrate/shutdown is finished
#  350|   	PSAX=`ps axlw | grep "$CMD $1" | grep -v grep`

Error: SHELLCHECK_WARNING (CWE-563): [#def136]
/usr/libexec/xen/bin/xendomains:358:10: warning[SC2034]: PSF appears unused. Verify use (or export if used externally).
#  356|       done
#  357|       sleep 1
#  358|->     read PSF PSUID PSPID PSPPID < <(echo "$PSAX")
#  359|       # kill $CMD $1
#  360|       kill $PSPID >/dev/null 2>&1

Error: SHELLCHECK_WARNING (CWE-563): [#def137]
/usr/libexec/xen/bin/xendomains:358:14: warning[SC2034]: PSUID appears unused. Verify use (or export if used externally).
#  356|       done
#  357|       sleep 1
#  358|->     read PSF PSUID PSPID PSPPID < <(echo "$PSAX")
#  359|       # kill $CMD $1
#  360|       kill $PSPID >/dev/null 2>&1

Error: SHELLCHECK_WARNING (CWE-563): [#def138]
/usr/libexec/xen/bin/xendomains:358:26: warning[SC2034]: PSPPID appears unused. Verify use (or export if used externally).
#  356|       done
#  357|       sleep 1
#  358|->     read PSF PSUID PSPID PSPPID < <(echo "$PSAX")
#  359|       # kill $CMD $1
#  360|       kill $PSPID >/dev/null 2>&1

Error: SHELLCHECK_WARNING: [#def139]
/usr/libexec/xen/bin/xendomains:403:17: warning[SC2320]: This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
#  401|   		if test $? -ne 0; then
#  402|   		    echo -e "\nAn error occurred while doing sysrq on domain:\n$XMR\n"
#  403|-> 		    rc_failed $?
#  404|   		    echo -n '!'
#  405|   		fi

Error: SHELLCHECK_WARNING: [#def140]
/usr/libexec/xen/bin/xendomains:421:13: warning[SC2320]: This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
#  419|   	    if test $? -ne 0; then
#  420|   		echo -e "\nAn error occurred while migrating domain:\n$XMR\n"
#  421|-> 		rc_failed $?
#  422|   		echo -e '!'
#  423|   

Error: SHELLCHECK_WARNING: [#def141]
/usr/libexec/xen/bin/xendomains:441:13: warning[SC2320]: This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
#  439|   	    if test $? -ne 0; then
#  440|   		echo -e "\nAn error occurred while saving domain:\n$XMR\n"
#  441|-> 		rc_failed $?
#  442|   		echo -e '!'
#  443|   		kill $WDOG_PID >/dev/null 2>&1

Error: SHELLCHECK_WARNING: [#def142]
/usr/libexec/xen/bin/xendomains:459:13: warning[SC2320]: This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
#  457|   	    if test $? -ne 0; then
#  458|   		echo -e "\nAn error occurred while shutting down domain:\n$XMR\n"
#  459|-> 		rc_failed $?
#  460|   		echo -e '!'
#  461|   	    fi

Error: SHELLCHECK_WARNING: [#def143]
/usr/libexec/xen/bin/xendomains:478:16: warning[SC2320]: This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
#  476|   	if test $? -ne 0; then
#  477|   	    echo -e "\nAn error occurred while shutting down all domains: $XMR\n"
#  478|-> 	    rc_failed $?
#  479|   	    echo -e '!'
#  480|   	fi

Error: SHELLCHECK_WARNING (CWE-691): [#def144]
/usr/libexec/xen/bin/xendomains:497:7: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob.
#  495|   	if test $id = 0; then continue; fi
#  496|   	case $name in
#  497|-> 	    ($1)
#  498|   		return 0
#  499|   		;;

Error: SHELLCHECK_WARNING (CWE-563): [#def145]
/usr/libexec/xen/bin/xendomains:514:2: warning[SC2034]: found appears unused. Verify use (or export if used externally).
#  512|       for nm in $XENDOMAINS_AUTO/*; do
#  513|   	rdname $nm
#  514|-> 	found=0
#  515|   	if check_domain_up "$NM"; then
#  516|   	    echo -n " $name"

Error: GCC_ANALYZER_WARNING (CWE-688): [#def146]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/9pfront.c: scope_hint: In function ‘copy_bufs’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/9pfront.c:371:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘target’ where non-null expected
xen-4.19.0-build/xen-4.19.0/extras/mini-os/9pfront.c:17: included_from: Included from here.
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  369|       if ( len <= *len1 )
#  370|       {
#  371|->         memcpy(target, *buf1, len);
#  372|           *buf1 += len;
#  373|           *len1 -= len;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def147]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/9pfront.c:377:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘target’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  375|       else
#  376|       {
#  377|->         memcpy(target, *buf1, *len1);
#  378|           target = (char *)target + *len1;
#  379|           len -= *len1;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def148]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/9pfront.c:389:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  387|               len = *len1;
#  388|           }
#  389|->         memcpy(target, *buf1, len);
#  390|           *buf1 += len;
#  391|           *len1 -= len;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def149]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/9pfront.c: scope_hint: In function ‘init_9pfront’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/9pfront.c:1086:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘dev’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
# 1084|       printk("9pfsfront add %u, for mount at %s\n", id, mnt);
# 1085|       dev = malloc(sizeof(*dev));
# 1086|->     memset(dev, 0, sizeof(*dev));
# 1087|       snprintf(dev->nodename, sizeof(dev->nodename), "device/9pfs/%u", id);
# 1088|       dev->id = id;

Error: CPPCHECK_WARNING (CWE-457): [#def150]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/arch/x86/gnttab.c:70: warning[uninitvar]: Uninitialized variable: frames
#   68|       }
#   69|   
#   70|->     return map_frames(frames, nr_grant_frames);
#   71|   }
#   72|   #endif

Error: GCC_ANALYZER_WARNING (CWE-787): [#def151]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/arch/x86/mm.c: scope_hint: In function ‘clear_bootstrap’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/arch/x86/mm.c:746:5: warning[-Wanalyzer-out-of-bounds]: buffer overflow
xen-4.19.0-build/xen-4.19.0/extras/mini-os/include/mm.h:41: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h:39: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/include/hypervisor.h:20: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/include/x86/os.h:16: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/arch/x86/mm.c:38: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/arch/x86/mm.c:746:5: note: write of 4095 bytes to beyond the end of ‘_text’
#  744|   
#  745|       /* Use first page as the CoW zero page */
#  746|->     memset(&_text, 0, PAGE_SIZE);
#  747|       mfn_zero = virt_to_mfn((unsigned long) &_text);
#  748|   #ifdef CONFIG_PARAVIRT

Error: GCC_ANALYZER_WARNING (CWE-476): [#def152]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/arch/x86/mm.c:753:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pgt’
#  751|   #else
#  752|       pgt = get_pgt((unsigned long)&_text);
#  753|->     *pgt = 0;
#  754|       invlpg((unsigned long)&_text);
#  755|   #endif

Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/console.c: scope_hint: In function ‘xencons_ring_avail’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/console.c:320:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘intf’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/include/lib.h:132: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/console.c:43: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/console.c: scope_hint: In function ‘xencons_ring_avail’
#  318|           intf = dev->ring;
#  319|   
#  320|->     cons = intf->in_cons;
#  321|       prod = intf->in_prod;
#  322|       mb();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def154]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/console.c: scope_hint: In function ‘xencons_ring_recv’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/console.c:340:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘intf’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/console.c: scope_hint: In function ‘xencons_ring_recv’
#  338|           intf = dev->ring;
#  339|   
#  340|->     cons = intf->in_cons;
#  341|       prod = intf->in_prod;
#  342|       mb();

Error: GCC_ANALYZER_WARNING (CWE-688): [#def155]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/console.c: scope_hint: In function ‘xencons_ring_init’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/console.c:368:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘dev’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  366|   
#  367|       dev = malloc(sizeof(struct consfront_dev));
#  368|->     memset(dev, 0, sizeof(struct consfront_dev));
#  369|       dev->nodename = "device/console";
#  370|       dev->dom = 0;

Error: GCC_ANALYZER_WARNING (CWE-835): [#def156]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/gnttab.c: scope_hint: In function ‘gnttab_end_transfer’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/gnttab.c:138:12: warning[-Wanalyzer-infinite-loop]: infinite loop
#  136|   
#  137|       /* If a transfer is in progress then wait until it is completed. */
#  138|->     while (!(flags & GTF_transfer_completed)) {
#  139|           flags = gnttab_table[ref].flags;
#  140|       }

Error: CPPCHECK_WARNING (CWE-758): [#def157]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/kernel.c:71: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   69|           
#   70|           for (j=0; j<32; j++)
#   71|->             xen_features[i*32+j] = !!(fi.submap & 1<<j);
#   72|       }
#   73|   }

Error: CPPCHECK_WARNING (CWE-369): [#def158]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/lib/math.c:163: error[zerodiv]: Division by zero.
#  161|   		static volatile const unsigned int zero = 0;
#  162|   
#  163|-> 		tmp.ul[H] = tmp.ul[L] = 1 / zero;
#  164|   		if (arq)
#  165|   			*arq = uq;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def159]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/lib/sys.c: scope_hint: In function ‘opendir’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/lib/sys.c:678:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
#  676|       DIR *ret;
#  677|       ret = malloc(sizeof(*ret));
#  678|->     ret->name = strdup(name);
#  679|       ret->offset = 0;
#  680|       ret->entries = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def160]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/lib/sys.c: scope_hint: In function ‘sparse’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/lib/sys.c:1531:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mfns’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/include/mm.h:41: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h:39: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/include/hypervisor.h:20: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/include/x86/os.h:16: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/lib/sys.c:22: included_from: Included from here.
# 1529|               }
# 1530|   #endif
# 1531|->         mfns[i] = virtual_to_mfn(data + i * PAGE_SIZE);
# 1532|       }
# 1533|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def161]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/lib/xs.c: scope_hint: In function ‘xs_talkv’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/lib/xs.c:143:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ret’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  141|       msg = xenbus_msg_reply(type, t, iovec, num_vecs);
#  142|       ret = malloc(msg->len);
#  143|->     memcpy(ret, (char*) msg + sizeof(*msg), msg->len);
#  144|       if (len)
#  145|   	*len = msg->len - 1;

Error: GCC_ANALYZER_WARNING (CWE-131): [#def162]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/lib/xs.c: scope_hint: In function ‘xs_directory’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/lib/xs.c:193:15: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
#  191|   	size += strlen(res[n]) + 1;
#  192|   
#  193|->     entries = malloc(n * sizeof(char *) + size);
#  194|       entry = (char *) (&entries[n]);
#  195|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def163]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/lib/xs.c:200:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘entries’
#  198|   	memcpy(entry, res[i], l);
#  199|   	free(res[i]);
#  200|-> 	entries[i] = entry;
#  201|   	entry += l;
#  202|       }

Error: CPPCHECK_WARNING (CWE-570): [#def164]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/main.c:70: error[subtractPointers]: Subtracting pointers that point to different objects
#   68|   
#   69|   #ifdef CONFIG_SPARSE_BSS
#   70|->     sparse((unsigned long) &__app_bss_start, &__app_bss_end - &__app_bss_start);
#   71|   #endif
#   72|   #if defined(HAVE_LWIP) && defined(CONFIG_START_NETWORK) && defined(CONFIG_NETFRONT)

Error: GCC_ANALYZER_WARNING (CWE-469): [#def165]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/main.c: scope_hint: In function ‘call_main’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/main.c:70:61: warning[-Wanalyzer-undefined-behavior-ptrdiff]: undefined behavior when subtracting pointers
#   68|   
#   69|   #ifdef CONFIG_SPARSE_BSS
#   70|->     sparse((unsigned long) &__app_bss_start, &__app_bss_end - &__app_bss_start);
#   71|   #endif
#   72|   #if defined(HAVE_LWIP) && defined(CONFIG_START_NETWORK) && defined(CONFIG_NETFRONT)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/xenbus.c:407:27: warning[-Wanalyzer-malloc-leak]: leak of ‘xenbus_read(0, "domid", &dom_id)’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/xenbus.c: scope_hint: In function ‘xenbus_get_self_id’
#  405|       {
#  406|           spin_lock(&req_lock);
#  407|->         if ( nr_live_reqs < NR_REQS )
#  408|               break;
#  409|           spin_unlock(&req_lock);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def167]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/xenbus.c: scope_hint: In function ‘errmsg’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/xenbus.c:629:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘res’ where non-null expected
xen-4.19.0-build/xen-4.19.0/extras/mini-os/xenbus.c: scope_hint: In function ‘errmsg’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  627|   
#  628|       res = malloc(rep->len + 1);
#  629|->     memcpy(res, rep + 1, rep->len);
#  630|       res[rep->len] = 0;
#  631|       free(rep);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def168]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/xenbus.c: scope_hint: In function ‘xenbus_read’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/xenbus.c:693:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘res’ where non-null expected
xen-4.19.0-build/xen-4.19.0/extras/mini-os/xenbus.c: scope_hint: In function ‘xenbus_read’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  691|   
#  692|       res = malloc(rep->len + 1);
#  693|->     memcpy(res, rep + 1, rep->len);
#  694|       res[rep->len] = 0;
#  695|       free(rep);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def169]
xen-4.19.0-build/xen-4.19.0/extras/mini-os/xenbus.c: scope_hint: In function ‘xenbus_get_self_id’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/xenbus.c:992:1: warning[-Wanalyzer-malloc-leak]: leak of ‘dom_id’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/include/console.h:44: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/include/lib.h:132: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/xenbus.c:22: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/xenbus.c:27: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/include/waittypes.h:4: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/include/sys/lock.h:8: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include/sys/_types.h:13: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include/sys/types.h:61: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include/sys/time.h:9: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/include/sys/time.h:24: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/include/time.h:49: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include/sys/stat.h:9: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/include/posix/sys/stat.h:4: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/include/lib.h:70: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/xenbus.c: scope_hint: In function ‘xenbus_get_self_id’
xen-4.19.0-build/xen-4.19.0/extras/mini-os/xenbus.c:32: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/extras/mini-os/xenbus.c:30: included_from: Included from here.
#  990|   
#  991|       return ret;
#  992|-> }
#  993|   EXPORT_SYMBOL(xenbus_get_self_id);
#  994|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def170]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/doc/makedoc.c: scope_hint: In function ‘newentry’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/doc/makedoc.c:1170:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new’
# 1168|   {
# 1169|       dict_type *new = (dict_type *)malloc(sizeof(dict_type));
# 1170|->     new->word = word;
# 1171|       new->next = root;
# 1172|       root = new;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/doc/makedoc.c: scope_hint: In function ‘add_to_definition’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/doc/makedoc.c:1186:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
# 1184|       {
# 1185|   	entry->code_length += 2;
# 1186|-> 	entry->code =
# 1187|   	 (stinst_type *) realloc((char *)(entry->code),
# 1188|   			       entry->code_length *sizeof(word_type));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def172]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/doc/makedoc.c:1190:34: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*entry.code + (long unsigned int)*entry.code_end * 8’
# 1188|   			       entry->code_length *sizeof(word_type));
# 1189|       }
# 1190|->     entry->code[entry->code_end] = word;
# 1191|       
# 1192|   return     entry->code_end++;  

Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/argz/argz_create_sep.c: scope_hint: In function ‘argz_create_sep’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/argz/argz_create_sep.c:68:1: warning[-Wanalyzer-malloc-leak]: leak of ‘running’
#   66|     free(old_running);
#   67|     return 0;
#   68|-> }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def174]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/argz/argz_replace.c: scope_hint: In function ‘argz_replace’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/argz/argz_replace.c:61:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘new_argz_iter’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#   59|                 /* copy everything up to, but not including str, from old argz to
#   60|                    new argz. */
#   61|->               memcpy(new_argz_iter, last_iter, buf_iter - last_iter - str_len);
#   62|                 new_argz_iter += (buf_iter - last_iter - str_len);
#   63|                 /* copy replacement string. */

Error: GCC_ANALYZER_WARNING (CWE-688): [#def175]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/argz/argz_replace.c:70:7: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘new_argz_iter’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#   68|           }
#   69|         /* copy everything after last occurrence of str. */
#   70|->       memcpy(new_argz_iter, last_iter, *argz + *argz_len - last_iter);
#   71|   
#   72|         /* reallocate argz, and copy over the new value. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/argz/argz_replace.c:73:9: warning[-Wanalyzer-malloc-leak]: leak of ‘new_argz_iter’
#   71|   
#   72|         /* reallocate argz, and copy over the new value. */
#   73|->       if(!(*argz = (char *)realloc(*argz, new_argz_len)))
#   74|           return ENOMEM;
#   75|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def177]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/argz/envz_merge.c: scope_hint: In function ‘envz_merge’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/argz/envz_merge.c:33:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘name_str’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
#   31|           {
#   32|             name_str = strdup (entry);
#   33|->           name_iter = strchr(name_str, '=');
#   34|             if(name_iter)
#   35|               *name_iter = '\0';

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/argz/envz_merge.c:45:22: warning[-Wanalyzer-malloc-leak]: leak of ‘name_str’
#   43|         else
#   44|           {
#   45|->           name_str = strdup (entry);
#   46|             name_iter = strchr(name_str, '=');
#   47|             if(name_iter)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def179]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/argz/envz_merge.c:46:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘name_str’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
#   44|           {
#   45|             name_str = strdup (entry);
#   46|->           name_iter = strchr(name_str, '=');
#   47|             if(name_iter)
#   48|               {

Error: COMPILER_WARNING: [#def180]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/errno/errno.c:11:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#   11 | __errno ()
#      | ^~~~~~~
#    9|   
#   10|   int *
#   11|-> __errno ()
#   12|   {
#   13|     return &_REENT->_errno;

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def181]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/locale/ldpart.c: scope_hint: In function ‘__part_load_locale’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/locale/ldpart.c:160:15: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘fd’
#  158|   	free(lbuf);
#  159|   bad_locale:
#  160|-> 	(void)close(fd);
#  161|   no_locale:
#  162|   	*using_locale = save_using_locale;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def182]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/locale/ldpart.c: scope_hint: In function ‘split_lines’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/locale/ldpart.c:173:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
#  171|   	for (i = 0; p < plim; i++) {
#  172|   		p = strchr(p, '\n');
#  173|-> 		*p++ = '\0';
#  174|   	}
#  175|   	return i;

Error: COMPILER_WARNING: [#def183]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/misc/__dprintf.c:22:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#   22 | static long get_number ();
#      | ^~~~~~
#   20|   #endif
#   21|   
#   22|-> static long get_number ();
#   23|   static void print_number ();
#   24|   static void write_char ();

Error: COMPILER_WARNING: [#def184]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/misc/__dprintf.c:23:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#   23 | static void print_number ();
#      | ^~~~~~
#   21|   
#   22|   static long get_number ();
#   23|-> static void print_number ();
#   24|   static void write_char ();
#   25|   static void write_string ();

Error: COMPILER_WARNING: [#def185]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/misc/__dprintf.c:24:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#   24 | static void write_char ();
#      | ^~~~~~
#   22|   static long get_number ();
#   23|   static void print_number ();
#   24|-> static void write_char ();
#   25|   static void write_string ();
#   26|   

Error: COMPILER_WARNING: [#def186]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/misc/__dprintf.c:25:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#   25 | static void write_string ();
#      | ^~~~~~
#   23|   static void print_number ();
#   24|   static void write_char ();
#   25|-> static void write_string ();
#   26|   
#   27|   /* Non-zero for big-endian systems.  */

Error: COMPILER_WARNING: [#def187]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/misc/__dprintf.c:179:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#  179 | get_number (s, size, unsigned_p)
#      | ^~~~~~~~~~
#  177|   
#  178|   static long
#  179|-> get_number (s, size, unsigned_p)
#  180|        char *s;
#  181|        long size;

Error: COMPILER_WARNING: [#def188]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/misc/__dprintf.c:222:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#  222 | print_number (base, unsigned_p, n)
#      | ^~~~~~~~~~~~
#  220|   
#  221|   static void
#  222|-> print_number (base, unsigned_p, n)
#  223|        int base;
#  224|        int unsigned_p;

Error: COMPILER_WARNING: [#def189]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/misc/__dprintf.c:256:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#  256 | write_char (c)
#      | ^~~~~~~~~~
#  254|   
#  255|   static void
#  256|-> write_char (c)
#  257|        char c;
#  258|   {

Error: COMPILER_WARNING: [#def190]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/misc/__dprintf.c:267:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#  267 | write_string (s)
#      | ^~~~~~~~~~~~
#  265|   
#  266|   static void
#  267|-> write_string (s)
#  268|        char *s;
#  269|   {

Error: CPPCHECK_WARNING (CWE-570): [#def191]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/misc/init.c:36: error[subtractPointers]: Subtracting pointers that point to different objects
#   34|     size_t i;
#   35|   
#   36|->   count = __preinit_array_end - __preinit_array_start;
#   37|     for (i = 0; i < count; i++)
#   38|       __preinit_array_start[i] ();

Error: GCC_ANALYZER_WARNING (CWE-469): [#def192]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/misc/init.c: scope_hint: In function ‘__libc_init_array’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/misc/init.c:36:31: warning[-Wanalyzer-undefined-behavior-ptrdiff]: undefined behavior when subtracting pointers
#   34|     size_t i;
#   35|   
#   36|->   count = __preinit_array_end - __preinit_array_start;
#   37|     for (i = 0; i < count; i++)
#   38|       __preinit_array_start[i] ();

Error: CPPCHECK_WARNING (CWE-570): [#def193]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/misc/init.c:42: error[subtractPointers]: Subtracting pointers that point to different objects
#   40|     _init ();
#   41|   
#   42|->   count = __init_array_end - __init_array_start;
#   43|     for (i = 0; i < count; i++)
#   44|       __init_array_start[i] ();

Error: GCC_ANALYZER_WARNING (CWE-469): [#def194]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/misc/init.c:42:28: warning[-Wanalyzer-undefined-behavior-ptrdiff]: undefined behavior when subtracting pointers
#   40|     _init ();
#   41|   
#   42|->   count = __init_array_end - __init_array_start;
#   43|     for (i = 0; i < count; i++)
#   44|       __init_array_start[i] ();

Error: CPPCHECK_WARNING (CWE-570): [#def195]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/misc/init.c:54: error[subtractPointers]: Subtracting pointers that point to different objects
#   52|     size_t i;
#   53|     
#   54|->   count = __fini_array_end - __fini_array_start;
#   55|     for (i = 0; i < count; i++)
#   56|       __fini_array_start[i] ();

Error: GCC_ANALYZER_WARNING (CWE-469): [#def196]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/misc/init.c: scope_hint: In function ‘__libc_fini_array’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/misc/init.c:54:28: warning[-Wanalyzer-undefined-behavior-ptrdiff]: undefined behavior when subtracting pointers
#   52|     size_t i;
#   53|     
#   54|->   count = __fini_array_end - __fini_array_start;
#   55|     for (i = 0; i < count; i++)
#   56|       __fini_array_start[i] ();

Error: COMPILER_WARNING: [#def197]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash.c:106:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#  106 | __hash_open(file, flags, mode, info, dflags)
#      | ^~~~~~~~~~~
#  104|   
#  105|   extern DB *
#  106|-> __hash_open(file, flags, mode, info, dflags)
#  107|   	const char *file;
#  108|   	int flags, mode, dflags;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def198]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash.c: scope_hint: In function ‘hash_seq’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash.c:814:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bp’
#  812|   			hashp->cndx = 1;
#  813|   		}
#  814|-> 		if (!bp[0]) {
#  815|   			hashp->cpage = NULL;
#  816|   			++hashp->cbucket;

Error: GCC_ANALYZER_WARNING (CWE-131): [#def199]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash.c: scope_hint: In function ‘hash_realloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash.c:912:24: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
#  910|   		memset((char *)p + oldsize, 0, newsize - oldsize);
#  911|   		free(*p_ptr);
#  912|-> 		*p_ptr = p;
#  913|   	}
#  914|   	return (p);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash.c: scope_hint: In function ‘alloc_segs’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash.c:962:23: warning[-Wanalyzer-malloc-leak]: leak of ‘store’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash.c:57: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash.c:956:45: note: in expansion of macro ‘SSHIFT’
#  960|   		return (-1);
#  961|   	}
#  962|-> 	for (i = 0; i < nsegs; i++, hashp->nsegs++)
#  963|   		hashp->dir[i] = &store[i << hashp->SSHIFT];
#  964|   	return (0);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def201]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_page.c:73: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_page.c: scope_hint: In function ‘overflow_page’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash.h:171:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘freep’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_page.c:769:17: note: in expansion of macro ‘SETBIT’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_page.c:727:33: note: in expansion of macro ‘BSIZE’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_page.c:769:17: note: in expansion of macro ‘SETBIT’
#  169|   /* Given the address of the beginning of a big map, clear/set the nth bit */
#  170|   #define CLRBIT(A, N)	((A)[(N)/BITS_PER_MAP] &= ~(1<<((N)%BITS_PER_MAP)))
#  171|-> #define SETBIT(A, N)	((A)[(N)/BITS_PER_MAP] |= (1<<((N)%BITS_PER_MAP)))
#  172|   #define ISSET(A, N)	((A)[(N)/BITS_PER_MAP] & (1<<((N)%BITS_PER_MAP)))
#  173|   

Error: COMPILER_WARNING (CWE-457): [#def202]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash.h:171:29: warning[-Wmaybe-uninitialized]: ‘freep’ may be used uninitialized
#  171 | #define SETBIT(A, N)    ((A)[(N)/BITS_PER_MAP] |= (1<<((N)%BITS_PER_MAP)))
#      |                          ~~~^~~~~~~~~~~~~~~~~~
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_page.c:769:17: note: in expansion of macro ‘SETBIT’
#  769 |                 SETBIT(freep, free_bit);
#      |                 ^~~~~~
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_page.c: scope_hint: In function ‘__add_ovflpage’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_page.c:670:21: note: ‘freep’ was declared here
#  670 |         __uint32_t *freep;
#      |                     ^~~~~
#  169|   /* Given the address of the beginning of a big map, clear/set the nth bit */
#  170|   #define CLRBIT(A, N)	((A)[(N)/BITS_PER_MAP] &= ~(1<<((N)%BITS_PER_MAP)))
#  171|-> #define SETBIT(A, N)	((A)[(N)/BITS_PER_MAP] |= (1<<((N)%BITS_PER_MAP)))
#  172|   #define ISSET(A, N)	((A)[(N)/BITS_PER_MAP] & (1<<((N)%BITS_PER_MAP)))
#  173|   

Error: COMPILER_WARNING (CWE-691): [#def203]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_bigkey.c: scope_hint: In function ‘__big_insert’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_bigkey.c:126:20: warning[-Wdangling-else]: suggest explicit braces to avoid ambiguous ‘else’
#  126 |                 if (!key_size)
#      |                    ^
#  124|   			return (-1);
#  125|   		n = p[0];
#  126|-> 		if (!key_size)
#  127|   			if (FREESPACE(p)) {
#  128|   				move_bytes = MIN(FREESPACE(p), val_size);

Error: COMPILER_WARNING (CWE-457): [#def204]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_buf.c: scope_hint: In function ‘__get_buf’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_buf.c:153:29: warning[-Wmaybe-uninitialized]: ‘segment_ndx’ may be used uninitialized
#  153 |                         segp[segment_ndx] =
#      |                             ^
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_buf.c:122:22: note: ‘segment_ndx’ was declared here
#  122 |         int is_disk, segment_ndx;
#      |                      ^~~~~~~~~~~
#  151|   			return (NULL);
#  152|   		if (!prev_bp)
#  153|-> 			segp[segment_ndx] =
#  154|   			    (BUFHEAD *)((ptrdiff_t)bp | is_disk_mask);
#  155|   	} else {

Error: COMPILER_WARNING (CWE-457): [#def205]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_buf.c:153:29: warning[-Wmaybe-uninitialized]: ‘segp’ may be used uninitialized
#  153 |                         segp[segment_ndx] =
#      |                             ^
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_buf.c:123:17: note: ‘segp’ was declared here
#  123 |         SEGMENT segp;
#      |                 ^~~~
#  151|   			return (NULL);
#  152|   		if (!prev_bp)
#  153|-> 			segp[segment_ndx] =
#  154|   			    (BUFHEAD *)((ptrdiff_t)bp | is_disk_mask);
#  155|   	} else {

Error: COMPILER_WARNING (CWE-1164): [#def206]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_func.c:69:1: warning[-Wunused-function]: ‘hash1’ defined but not used
#   69 | hash1(keyarg, len)
#      | ^~~~~
#   67|   
#   68|   static __uint32_t
#   69|-> hash1(keyarg, len)
#   70|   	const void *keyarg;
#   71|   	size_t len;

Error: COMPILER_WARNING (CWE-1164): [#def207]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_func.c:89:1: warning[-Wunused-function]: ‘hash2’ defined but not used
#   89 | hash2(keyarg, len)
#      | ^~~~~
#   87|   
#   88|   static __uint32_t
#   89|-> hash2(keyarg, len)
#   90|   	const void *keyarg;
#   91|   	size_t len;

Error: COMPILER_WARNING (CWE-1164): [#def208]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_func.c:118:1: warning[-Wunused-function]: ‘hash3’ defined but not used
#  118 | hash3(keyarg, len)
#      | ^~~~~
#  116|    */
#  117|   static __uint32_t
#  118|-> hash3(keyarg, len)
#  119|   	const void *keyarg;
#  120|   	size_t len;

Error: COMPILER_WARNING: [#def209]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_log2.c:47:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#   47 | __log2(num)
#      | ^~~~~~
#   45|   
#   46|   __uint32_t
#   47|-> __log2(num)
#   48|   	__uint32_t num;
#   49|   {

Error: GCC_ANALYZER_WARNING (CWE-131): [#def210]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_page.c: scope_hint: In function ‘__ibitmap’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_page.c:636:33: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
#  634|   	int clearbytes, clearints;
#  635|   
#  636|-> 	if ((ip = (__uint32_t *)malloc(hashp->BSIZE)) == NULL)
#  637|   		return (1);
#  638|   	hashp->nmaps++;

Error: GCC_ANALYZER_WARNING (CWE-131): [#def211]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_page.c: scope_hint: In function ‘fetch_bitmap’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_page.c:918:31: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hash_page.c:918:61: note: in expansion of macro ‘BSIZE’
#  916|   	if (ndx >= hashp->nmaps)
#  917|   		return (NULL);
#  918|-> 	if ((hashp->mapp[ndx] = (__uint32_t *)malloc(hashp->BSIZE)) == NULL)
#  919|   		return (NULL);
#  920|   	if (__get_page(hashp,

Error: COMPILER_WARNING (CWE-563): [#def212]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hcreate_r.c:126:32: warning[-Wunused-variable]: unused variable ‘ie’
#  126 |         struct internal_entry *ie;
#      |                                ^~
#  124|   hdestroy_r(struct hsearch_data *htab)
#  125|   {
#  126|-> 	struct internal_entry *ie;
#  127|   	size_t idx;
#  128|   

Error: COMPILER_WARNING (CWE-563): [#def213]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hcreate_r.c: scope_hint: In function ‘hdestroy_r’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/hcreate_r.c:127:16: warning[-Wunused-variable]: unused variable ‘idx’
#  127 |         size_t idx;
#      |                ^~~
#  125|   {
#  126|   	struct internal_entry *ie;
#  127|-> 	size_t idx;
#  128|   
#  129|   	if (htab->htable == NULL)

Error: COMPILER_WARNING: [#def214]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/qsort.c:84:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#   84 | static inline char      *med3 _PARAMS((char *, char *, char *, int (*)()));
#      | ^~~~~~
#   82|   #endif
#   83|   
#   84|-> static inline char	*med3 _PARAMS((char *, char *, char *, int (*)()));
#   85|   static inline void	 swapfunc _PARAMS((char *, char *, int, int));
#   86|   

Error: COMPILER_WARNING: [#def215]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/qsort.c:130:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#  130 | _DEFUN(med3, (a, b, c, cmp),
#      | ^~~~~~
#  128|   
#  129|   static inline char *
#  130|-> _DEFUN(med3, (a, b, c, cmp),
#  131|   	char *a _AND
#  132|   	char *b _AND

Error: COMPILER_WARNING: [#def216]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/qsort.c:142:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#  142 | _DEFUN(qsort, (a, n, es, cmp),
#      | ^~~~~~
#  140|   
#  141|   void
#  142|-> _DEFUN(qsort, (a, n, es, cmp),
#  143|   	void *a _AND
#  144|   	size_t n _AND

Error: COMPILER_WARNING: [#def217]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/search/tdestroy.c:29:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#   29 | trecurse(root, free_action)
#      | ^~~~~~~~
#   27|   /* Walk the nodes of a tree */
#   28|   static void
#   29|-> trecurse(root, free_action)
#   30|   	node_t *root;	/* Root of the tree to be walked */
#   31|   	void (*free_action)(void *);

Error: COMPILER_WARNING (CWE-681): [#def218]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/asiprintf.c: scope_hint: In function ‘_asiprintf_r’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/asiprintf.c:48:13: warning[-Wpointer-sign]: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness
#   48 |       *strp = f._bf._base;
#      |             ^
#   46|       {
#   47|         *f._p = 0;
#   48|->       *strp = f._bf._base;
#   49|       }
#   50|     return (ret);

Error: COMPILER_WARNING (CWE-681): [#def219]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/asiprintf.c: scope_hint: In function ‘asiprintf’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/asiprintf.c:75:13: warning[-Wpointer-sign]: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness
#   75 |       *strp = f._bf._base;
#      |             ^
#   73|       {
#   74|         *f._p = 0;
#   75|->       *strp = f._bf._base;
#   76|       }
#   77|     return (ret);

Error: COMPILER_WARNING (CWE-681): [#def220]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/asprintf.c: scope_hint: In function ‘_asprintf_r’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/asprintf.c:48:13: warning[-Wpointer-sign]: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness
#   48 |       *strp = f._bf._base;
#      |             ^
#   46|       {
#   47|         *f._p = 0;
#   48|->       *strp = f._bf._base;
#   49|       }
#   50|     return (ret);

Error: COMPILER_WARNING (CWE-681): [#def221]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/asprintf.c: scope_hint: In function ‘asprintf’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/asprintf.c:75:13: warning[-Wpointer-sign]: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness
#   75 |       *strp = f._bf._base;
#      |             ^
#   73|       {
#   74|         *f._p = 0;
#   75|->       *strp = f._bf._base;
#   76|       }
#   77|     return (ret);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def222]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/fmemopen.c: scope_hint: In function ‘_fmemopen_r’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/fmemopen.c:313:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  311|         /* r+/w+/a+, and no buf: file starts empty.  */
#  312|         c->buf = (char *) (c + 1);
#  313|->       *(char *) buf = '\0';
#  314|         c->pos = c->eof = 0;
#  315|         c->append = (flags & __SAPP) != 0;

Error: COMPILER_WARNING (CWE-681): [#def223]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/fread.c: scope_hint: In function ‘_fread_r’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/fread.c:182:25: warning[-Wpointer-sign]: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness
#  182 |           fp->_bf._base = p;
#      |                         ^
#  180|   	  int old_size = fp->_bf._size;
#  181|   	  /* allow __refill to use user's buffer */
#  182|-> 	  fp->_bf._base = p;
#  183|   	  fp->_bf._size = resid;
#  184|   	  fp->_p = p;

Error: COMPILER_WARNING (CWE-681): [#def224]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/fread.c:184:18: warning[-Wpointer-sign]: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness
#  184 |           fp->_p = p;
#      |                  ^
#  182|   	  fp->_bf._base = p;
#  183|   	  fp->_bf._size = resid;
#  184|-> 	  fp->_p = p;
#  185|   	  rc = __srefill_r (ptr, fp);
#  186|   	  /* restore fp buffering back to original state */

Error: COMPILER_WARNING (CWE-563): [#def225]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/open_memstream.c: scope_hint: In function ‘_open_memstream_r’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/open_memstream.c:257:7: warning[-Wunused-variable]: unused variable ‘flags’
#  257 |   int flags;
#      |       ^~~~~
#  255|     FILE *fp;
#  256|     memstream *c;
#  257|->   int flags;
#  258|   
#  259|     if (!buf || !size)

Error: COMPILER_WARNING (CWE-681): [#def226]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/vasiprintf.c: scope_hint: In function ‘_vasiprintf_r’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/vasiprintf.c:60:13: warning[-Wpointer-sign]: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness
#   60 |       *strp = f._bf._base;
#      |             ^
#   58|       {
#   59|         *f._p = 0;
#   60|->       *strp = f._bf._base;
#   61|       }
#   62|     return ret;

Error: COMPILER_WARNING (CWE-681): [#def227]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/vasprintf.c: scope_hint: In function ‘_vasprintf_r’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/vasprintf.c:60:13: warning[-Wpointer-sign]: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness
#   60 |       *strp = f._bf._base;
#      |             ^
#   58|       {
#   59|         *f._p = 0;
#   60|->       *strp = f._bf._base;
#   61|       }
#   62|     return ret;

Error: COMPILER_WARNING: [#def228]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/vfscanf.c:229:12: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#  229 | /*static*/ u_char *__sccl ();
#      |            ^~~~~~
#  227|   #endif
#  228|   
#  229|-> /*static*/ u_char *__sccl ();
#  230|   
#  231|   /*

Error: COMPILER_WARNING: [#def229]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/vfscanf.c: scope_hint: In function ‘__svfscanf_r’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/vfscanf.c:302:3: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#  302 |   u_long (*ccfn) () = 0;        /* conversion function (strtol/strtoul) */
#      |   ^~~~~~
#  300|     mbstate_t state;              /* value to keep track of multibyte state */
#  301|   
#  302|->   u_long (*ccfn) () = 0;	/* conversion function (strtol/strtoul) */
#  303|     char ccltab[256];		/* character class table for %[...] */
#  304|     char buf[BUF];		/* buffer for numeric conversions */

Error: COMPILER_WARNING: [#def230]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/vfscanf.c:506:11: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#  506 |           ccfn = (u_long (*)())_strtol_r;
#      |           ^~~~
#  504|   	case 'd':
#  505|   	  c = CT_INT;
#  506|-> 	  ccfn = (u_long (*)())_strtol_r;
#  507|   	  base = 10;
#  508|   	  break;

Error: COMPILER_WARNING: [#def231]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/vfscanf.c:512:11: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#  512 |           ccfn = (u_long (*)())_strtol_r;
#      |           ^~~~
#  510|   	case 'i':
#  511|   	  c = CT_INT;
#  512|-> 	  ccfn = (u_long (*)())_strtol_r;
#  513|   	  base = 0;
#  514|   	  break;

Error: COMPILER_WARNING: [#def232]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/vfscanf.c:634:11: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#  634 |           ccfn = (u_long (*)())_strtol_r;
#      |           ^~~~
#  632|   	    flags |= LONG;
#  633|   	  c = CT_INT;
#  634|-> 	  ccfn = (u_long (*)())_strtol_r;
#  635|   	  base = 10;
#  636|   	  break;

Error: CPPCHECK_WARNING (CWE-476): [#def233]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdio/vfscanf.c:1403: error[nullPointer]: Null pointer dereference
# 1401|   		  flp = GET_ARG (N, ap, float *);
# 1402|   		  if (isnan (res))
# 1403|-> 		    *flp = nanf (NULL);
# 1404|   		  else
# 1405|   		    *flp = res;

Error: COMPILER_WARNING (CWE-681): [#def234]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/btowc.c: scope_hint: In function ‘btowc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/btowc.c:22:37: warning[-Wpointer-sign]: pointer targets in passing argument 3 of ‘_mbtowc_r’ differ in signedness
#   22 |   retval = _mbtowc_r (_REENT, &pwc, &b, 1, &mbs);
#      |                                     ^~
#      |                                     |
#      |                                     unsigned char *
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/include/wchar.h:4: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/btowc.c:1: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/include/stdlib.h:91:9: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
#   91 | int     _EXFUN(_mbtowc_r,(struct _reent *, wchar_t *, const char *, size_t, _mbstate_t *));
#      |         ^~~~~~
#   20|     _REENT_CHECK_MISC(_REENT);
#   21|   
#   22|->   retval = _mbtowc_r (_REENT, &pwc, &b, 1, &mbs);
#   23|   
#   24|     if (c == EOF || retval != 1)

Error: COMPILER_WARNING: [#def235]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/getenv.c: scope_hint: In function ‘getenv’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/getenv.c:89:3: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#   89 |   char *_findenv_r ();
#      |   ^~~~
#   87|   {
#   88|     int offset;
#   89|->   char *_findenv_r ();
#   90|   
#   91|     return _findenv_r (_REENT, name, &offset);

Error: COMPILER_WARNING: [#def236]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/getenv_r.c: scope_hint: In function ‘_getenv_r’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/getenv_r.c:133:3: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#  133 |   char *_findenv_r ();
#      |   ^~~~
#  131|   {
#  132|     int offset;
#  133|->   char *_findenv_r ();
#  134|   
#  135|     return _findenv_r (reent_ptr, name, &offset);

Error: COMPILER_WARNING: [#def237]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/ldtoa.c:722:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#  722 | eiisinf (x)
#      | ^~~~~~~
#  720|   /* Return nonzero if internal format number is infinite. */
#  721|   static int 
#  722|-> eiisinf (x)
#  723|        unsigned short x[];
#  724|   {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def238]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/ldtoa.c: scope_hint: In function ‘enormlz’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/ldtoa.c:2490:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x[2]’
# 2488|   sc = 0;
# 2489|   p = &x[M];
# 2490|-> if( *p != 0 )
# 2491|   	goto normdn;
# 2492|   ++p;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def239]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/ldtoa.c: scope_hint: In function ‘asctoeg’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/ldtoa.c:3280:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sp’
# 3278|   for( k=0; k<c; k++ )
# 3279|   	{
# 3280|-> 	if( (*sp++ = *s++) == '\0' )
# 3281|   		break;
# 3282|   	}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def240]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/ldtoa.c:3329:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yy[2]’
# 3327|    * of the low guard word after normalization.
# 3328|    */
# 3329|-> 	if( yy[2] == 0 )
# 3330|   		{
# 3331|   		if( decflg )

Error: COMPILER_WARNING: [#def241]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mallocr.c:1014:41: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
# 1014 | #define malloc_update_mallinfo          __malloc_update_mallinfo
#      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mallocr.c:3412:13: note: in expansion of macro ‘malloc_update_mallinfo’
# 3412 | STATIC void malloc_update_mallinfo()
#      |             ^~~~~~~~~~~~~~~~~~~~~~
# 1012|   #define malloc_usable_size		_malloc_usable_size_r
# 1013|   
# 1014|-> #define malloc_update_mallinfo		__malloc_update_mallinfo
# 1015|   
# 1016|   #define malloc_av_			__malloc_av_

Error: COMPILER_WARNING: [#def242]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mlock.c:47:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#   47 | __malloc_lock (ptr)
#      | ^~~~~~~~~~~~~
#   45|   
#   46|   void
#   47|-> __malloc_lock (ptr)
#   48|        struct _reent *ptr;
#   49|   {

Error: COMPILER_WARNING: [#def243]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mlock.c:56:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#   56 | __malloc_unlock (ptr)
#      | ^~~~~~~~~~~~~~~
#   54|   
#   55|   void
#   56|-> __malloc_unlock (ptr)
#   57|        struct _reent *ptr;
#   58|   {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def244]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c: scope_hint: In function ‘__multadd’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:184:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:83: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:418:9: note: in expansion of macro ‘pow5mult’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:87: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:426:9: note: in expansion of macro ‘multadd’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:143:9: note: in expansion of macro ‘multadd’
#  182|   	}
#  183|         b->_x[wds++] = a;
#  184|->       b->_wds = wds;
#  185|       }
#  186|     return b;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def245]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c: scope_hint: In function ‘__s2b’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:206:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:190:9: note: in expansion of macro ‘s2b’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:204:7: note: in expansion of macro ‘Balloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:93:9: note: in expansion of macro ‘Balloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:204:7: note: in expansion of macro ‘Balloc’
#  204|     b = Balloc (ptr, k);
#  205|     b->_x[0] = y9;
#  206|->   b->_wds = 1;
#  207|   #else
#  208|     b = Balloc (ptr, k + 1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def246]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c: scope_hint: In function ‘__i2b’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:321:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:315:9: note: in expansion of macro ‘i2b’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:319:7: note: in expansion of macro ‘Balloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:93:9: note: in expansion of macro ‘Balloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:319:7: note: in expansion of macro ‘Balloc’
#  319|     b = Balloc (ptr, 1);
#  320|     b->_x[0] = i;
#  321|->   b->_wds = 1;
#  322|     return b;
#  323|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def247]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c: scope_hint: In function ‘__multiply’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:413:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:326:9: note: in expansion of macro ‘mult’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:348:7: note: in expansion of macro ‘Balloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:93:9: note: in expansion of macro ‘Balloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:348:7: note: in expansion of macro ‘Balloc’
#  411|   #endif
#  412|     for (xc0 = c->_x, xc = xc0 + wc; wc > 0 && !*--xc; --wc);
#  413|->   c->_wds = wc;
#  414|     return c;
#  415|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def248]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c: scope_hint: In function ‘__lshift’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:512:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b1’
#  510|         *x1++ = *x++;
#  511|       while (x < xe);
#  512|->   b1->_wds = n1 - 1;
#  513|     Bfree (ptr, b);
#  514|     return b1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def249]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c: scope_hint: In function ‘__mdiff’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:563:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:548:9: note: in expansion of macro ‘diff’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:562:11: note: in expansion of macro ‘Balloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:562:11: note: in expansion of macro ‘Balloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:93:9: note: in expansion of macro ‘Balloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:562:11: note: in expansion of macro ‘Balloc’
#  561|       {
#  562|         c = Balloc (ptr, 0);
#  563|->       c->_wds = 1;
#  564|         c->_x[0] = 0;
#  565|         return c;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def250]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:577:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:548:9: note: in expansion of macro ‘diff’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:576:7: note: in expansion of macro ‘Balloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:93:9: note: in expansion of macro ‘Balloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:576:7: note: in expansion of macro ‘Balloc’
#  575|       i = 0;
#  576|     c = Balloc (ptr, a->_k);
#  577|->   c->_sign = i;
#  578|     wa = a->_wds;
#  579|     xa = a->_x;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def251]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c: scope_hint: In function ‘__d2b’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:806:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:755:9: note: in expansion of macro ‘d2b’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:781:7: note: in expansion of macro ‘Balloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:93:9: note: in expansion of macro ‘Balloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:781:7: note: in expansion of macro ‘Balloc’
#  804|         if (k)
#  805|   	{
#  806|->          x[0] = y | z << (32 - k);
#  807|   	  z >>= k;
#  808|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def252]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:810:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:755:9: note: in expansion of macro ‘d2b’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:781:7: note: in expansion of macro ‘Balloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:93:9: note: in expansion of macro ‘Balloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:781:7: note: in expansion of macro ‘Balloc’
#  808|   	}
#  809|         else
#  810|-> 	x[0] = y;
#  811|         i = b->_wds = (x[1] = z) ? 2 : 1;
#  812|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def253]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:821:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:755:9: note: in expansion of macro ‘d2b’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:781:7: note: in expansion of macro ‘Balloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:93:9: note: in expansion of macro ‘Balloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:781:7: note: in expansion of macro ‘Balloc’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/mprec.c:820:11: note: in expansion of macro ‘lo0bits’
#  819|   #endif
#  820|         k = lo0bits (&z);
#  821|->       x[0] = z;
#  822|         i = b->_wds = 1;
#  823|   #ifndef _DOUBLE_IS_32BITS

Error: CPPCHECK_WARNING (CWE-476): [#def254]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/strtod.c:1176: error[nullPointer]: Null pointer dereference
# 1174|     double retval = _strtod_r (_REENT, s00, se);
# 1175|     if (isnan (retval))
# 1176|->     return nanf (NULL);
# 1177|     return (float)retval;
# 1178|   }

Error: COMPILER_WARNING: [#def255]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/system.c:64:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#   64 | static int do_system ();
#      | ^~~~~~
#   62|   
#   63|   #if defined (unix) || defined (__CYGWIN__)
#   64|-> static int do_system ();
#   65|   #endif
#   66|   

Error: COMPILER_WARNING: [#def256]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/system.c:121:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#  121 | do_system (ptr, s)
#      | ^~~~~~~~~
#  119|   
#  120|   static int
#  121|-> do_system (ptr, s)
#  122|        struct _reent *ptr;
#  123|        _CONST char *s;

Error: COMPILER_WARNING (CWE-686): [#def257]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/wcstoull.c: scope_hint: In function ‘wcstoull’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/wcstoull.c:136:16: warning[-Wimplicit-function-declaration]: implicit declaration of function ‘_wcstoull_r’; did you mean ‘wcstoull’?
#  136 |         return _wcstoull_r (_REENT, s, ptr, base);
#      |                ^~~~~~~~~~~
#      |                wcstoull
#  134|   	int base)
#  135|   {
#  136|-> 	return _wcstoull_r (_REENT, s, ptr, base);
#  137|   }
#  138|   

Error: COMPILER_WARNING (CWE-681): [#def258]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/wctob.c: scope_hint: In function ‘wctob’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/wctob.c:19:31: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘_wctomb_r’ differ in signedness
#   19 |   retval = _wctomb_r (_REENT, &pwc, c, &mbs);
#      |                               ^~~~
#      |                               |
#      |                               unsigned char *
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/include/sys/reent.h:13: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/include/reent.h:48: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/stdlib/wctob.c:1: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/include/stdlib.h:93:9: note: expected ‘char *’ but argument is of type ‘unsigned char *’
#   93 | int     _EXFUN(_wctomb_r,(struct _reent *, char *, wchar_t, _mbstate_t *));
#      |         ^~~~~~
#   17|     _REENT_CHECK_MISC(_REENT);
#   18|   
#   19|->   retval = _wctomb_r (_REENT, &pwc, c, &mbs);
#   20|   
#   21|     if (c == EOF || retval != 1)

Error: COMPILER_WARNING: [#def259]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libc/time/mktime.c:68:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#   68 | validate_structure (tim_p)
#      | ^~~~~~~~~~~~~~~~~~
#   66|   
#   67|   static void 
#   68|-> validate_structure (tim_p)
#   69|        struct tm *tim_p;
#   70|   {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def260]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_rem_pio2.c:21: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_rem_pio2.c: scope_hint: In function ‘__ieee754_rem_pio2’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/common/fdlibm.h:335:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘z’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_rem_pio2.c:170:9: note: in expansion of macro ‘SET_LOW_WORD’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_rem_pio2.c:170:9: note: in expansion of macro ‘SET_LOW_WORD’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_rem_pio2.c:170:9: note: in expansion of macro ‘SET_LOW_WORD’
#  333|   do {								\
#  334|     ieee_double_shape_type sl_u;					\
#  335|->   sl_u.value = (d);						\
#  336|     sl_u.parts.lsw = (v);						\
#  337|     (d) = sl_u.value;						\

Error: COMPILER_WARNING (CWE-457): [#def261]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_rem_pio2.c:21: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_rem_pio2.c: scope_hint: In function ‘__ieee754_rem_pio2’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/common/fdlibm.h:335:14: warning[-Wmaybe-uninitialized]: ‘z’ may be used uninitialized
#  335 |   sl_u.value = (d);                                             \
#      |   ~~~~~~~~~~~^~~~~
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_rem_pio2.c:170:9: note: in expansion of macro ‘SET_LOW_WORD’
#  170 |         SET_LOW_WORD(z,low);
#      |         ^~~~~~~~~~~~
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_rem_pio2.c:92:16: note: ‘z’ was declared here
#   92 |         double z,w,t,r,fn;
#      |                ^
#  333|   do {								\
#  334|     ieee_double_shape_type sl_u;					\
#  335|->   sl_u.value = (d);						\
#  336|     sl_u.parts.lsw = (v);						\
#  337|     (d) = sl_u.value;						\

Error: CPPCHECK_WARNING (CWE-758): [#def262]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/common/s_lrint.c:59: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   57|   
#   58|     /* Extract sign bit. */
#   59|->   sx = (i0>>31)&1;
#   60|   
#   61|     /* Extract exponent field. */

Error: CPPCHECK_WARNING (CWE-758): [#def263]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/common/s_lrint.c:75: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   73|             /* Detect the all-zeros representation of plus and
#   74|                minus zero, which fails the calculation below. */
#   75|->           if ((i0 & ~(1 << 31)) == 0)
#   76|                 return 0;
#   77|             j0 = ((i0 & 0x7ff00000) >> 20) - 1023;

Error: CPPCHECK_WARNING (CWE-758): [#def264]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/common/s_rint.c:50: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   48|   	volatile double w;
#   49|   	EXTRACT_WORDS(i0,i1,x);
#   50|-> 	sx = (i0>>31)&1;
#   51|   	j0 = ((i0>>20)&0x7ff)-0x3ff;
#   52|   	if(j0<20) {

Error: CPPCHECK_WARNING (CWE-758): [#def265]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/common/s_rint.c:62: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   60|   	        t =  w-TWO52[sx];
#   61|   		GET_HIGH_WORD(i0,t);
#   62|-> 		SET_HIGH_WORD(t,(i0&0x7fffffff)|(sx<<31));
#   63|   	        return t;
#   64|   	    } else {

Error: CPPCHECK_WARNING (CWE-758): [#def266]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/common/sf_lrint.c:74: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   72|             /* Detect the all-zeros representation of plus and
#   73|                minus zero, which fails the calculation below. */
#   74|->           if ((i0 & ~(1 << 31)) == 0)
#   75|                 return 0;
#   76|             j0 = ((i0 >> 23) & 0xff) - 0x7f;

Error: CPPCHECK_WARNING (CWE-758): [#def267]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/common/sf_rint.c:40: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   38|   	volatile float w;
#   39|   	GET_FLOAT_WORD(i0,x);
#   40|-> 	sx = (i0>>31)&1;
#   41|   	ix = (i0&0x7fffffff);
#   42|   	j0 = (ix>>23)-0x7f;

Error: CPPCHECK_WARNING (CWE-758): [#def268]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/common/sf_rint.c:54: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   52|   	        t =  w-TWO23[sx];
#   53|   		GET_FLOAT_WORD(i0,t);
#   54|-> 		SET_FLOAT_WORD(t,(i0&0x7fffffff)|(sx<<31));
#   55|   	        return t;
#   56|   	    } else {

Error: COMPILER_WARNING (CWE-569): [#def269]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_atan2.c: scope_hint: In function ‘__ieee754_atan2’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_atan2.c:76:15: warning[-Wparentheses]: suggest parentheses around arithmetic in operand of ‘|’
#   76 |         if((hx-0x3ff00000|lx)==0) return atan(y);   /* x=1.0 */
#      |             ~~^~~~~~~~~~~
#   74|   	   ((iy|((ly|-ly)>>31))>0x7ff00000))	/* x or y is NaN */
#   75|   	   return x+y;
#   76|-> 	if((hx-0x3ff00000|lx)==0) return atan(y);   /* x=1.0 */
#   77|   	m = ((hy>>31)&1)|((hx>>30)&2);	/* 2*sign(x)+sign(y) */
#   78|   

Error: CPPCHECK_WARNING (CWE-758): [#def270]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_atan2.c:77: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   75|   	   return x+y;
#   76|   	if((hx-0x3ff00000|lx)==0) return atan(y);   /* x=1.0 */
#   77|-> 	m = ((hy>>31)&1)|((hx>>30)&2);	/* 2*sign(x)+sign(y) */
#   78|   
#   79|       /* when y = 0 */

Error: CPPCHECK_WARNING (CWE-457): [#def271]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_exp.c:152: error[legacyUninitvar]: Uninitialized variable: k
#  150|   	t  = x*x;
#  151|   	c  = x - t*(P1+t*(P2+t*(P3+t*(P4+t*P5))));
#  152|-> 	if(k==0) 	return one-((x*c)/(c-2.0)-x); 
#  153|   	else 		y = one-((lo-(x*c)/(2.0-c))-hi);
#  154|   	if(k >= -1021) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def272]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_exp.c: scope_hint: In function ‘__ieee754_exp’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_exp.c:152:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘k’
#  150|   	t  = x*x;
#  151|   	c  = x - t*(P1+t*(P2+t*(P3+t*(P4+t*P5))));
#  152|-> 	if(k==0) 	return one-((x*c)/(c-2.0)-x); 
#  153|   	else 		y = one-((lo-(x*c)/(2.0-c))-hi);
#  154|   	if(k >= -1021) {

Error: COMPILER_WARNING (CWE-457): [#def273]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_exp.c:152:11: warning[-Wmaybe-uninitialized]: ‘k’ may be used uninitialized
#  152 |         if(k==0)        return one-((x*c)/(c-2.0)-x);
#      |           ^
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_exp.c:112:19: note: ‘k’ was declared here
#  112 |         __int32_t k,xsb;
#      |                   ^
#  150|   	t  = x*x;
#  151|   	c  = x - t*(P1+t*(P2+t*(P3+t*(P4+t*P5))));
#  152|-> 	if(k==0) 	return one-((x*c)/(c-2.0)-x); 
#  153|   	else 		y = one-((lo-(x*c)/(2.0-c))-hi);
#  154|   	if(k >= -1021) {

Error: COMPILER_WARNING (CWE-457): [#def274]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_exp.c:153:37: warning[-Wmaybe-uninitialized]: ‘lo’ may be used uninitialized
#  153 |         else            y = one-((lo-(x*c)/(2.0-c))-hi);
#      |                                  ~~~^~~~~~~~~~~~~~~
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_exp.c:111:21: note: ‘lo’ was declared here
#  111 |         double y,hi,lo,c,t;
#      |                     ^~
#  151|   	c  = x - t*(P1+t*(P2+t*(P3+t*(P4+t*P5))));
#  152|   	if(k==0) 	return one-((x*c)/(c-2.0)-x); 
#  153|-> 	else 		y = one-((lo-(x*c)/(2.0-c))-hi);
#  154|   	if(k >= -1021) {
#  155|   	    __uint32_t hy;

Error: COMPILER_WARNING (CWE-457): [#def275]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_exp.c: scope_hint: In function ‘__ieee754_exp’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_exp.c:153:52: warning[-Wmaybe-uninitialized]: ‘hi’ may be used uninitialized
#  153 |         else            y = one-((lo-(x*c)/(2.0-c))-hi);
#      |                                 ~~~~~~~~~~~~~~~~~~~^~~~
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_exp.c:111:18: note: ‘hi’ was declared here
#  111 |         double y,hi,lo,c,t;
#      |                  ^~
#  151|   	c  = x - t*(P1+t*(P2+t*(P3+t*(P4+t*P5))));
#  152|   	if(k==0) 	return one-((x*c)/(c-2.0)-x); 
#  153|-> 	else 		y = one-((lo-(x*c)/(2.0-c))-hi);
#  154|   	if(k >= -1021) {
#  155|   	    __uint32_t hy;

Error: CPPCHECK_WARNING (CWE-758): [#def276]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_jn.c:84: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   82|   	if(n==0) return(__ieee754_j0(x));
#   83|   	if(n==1) return(__ieee754_j1(x));
#   84|-> 	sgn = (n&1)&(hx>>31);	/* even n -- 0, odd n -- sign(x) */
#   85|   	x = fabs(x);
#   86|   	if((ix|lx)==0||ix>=0x7ff00000) 	/* if x is 0 or inf */

Error: COMPILER_WARNING (CWE-691): [#def277]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_pow.c: scope_hint: In function ‘__ieee754_pow’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/e_pow.c:122:11: warning[-Wdangling-else]: suggest explicit braces to avoid ambiguous ‘else’
#  122 |         if(ix > 0x7ff00000 || ((ix==0x7ff00000)&&(lx!=0)) ||
#      |           ^
#  120|   
#  121|       /* x|y==NaN return NaN unless x==1 then return 1 */
#  122|-> 	if(ix > 0x7ff00000 || ((ix==0x7ff00000)&&(lx!=0)) ||
#  123|   	   iy > 0x7ff00000 || ((iy==0x7ff00000)&&(ly!=0))) 
#  124|   	    if(((ix-0x3ff00000)|lx)==0) return one;

Error: CPPCHECK_WARNING (CWE-758): [#def278]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/ef_atan2.c:49: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   47|   	   return x+y;
#   48|   	if(hx==0x3f800000) return atanf(y);   /* x=1.0 */
#   49|-> 	m = ((hy>>31)&1)|((hx>>30)&2);	/* 2*sign(x)+sign(y) */
#   50|   
#   51|       /* when y = 0 */

Error: CPPCHECK_WARNING (CWE-758): [#def279]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/ef_exp.c:54: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   52|   
#   53|   	GET_FLOAT_WORD(sx,x);
#   54|-> 	xsb = (sx>>31)&1;		/* sign bit of x */
#   55|   	hx = sx & 0x7fffffff;		/* high word of |x| */
#   56|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def280]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/ef_exp.c: scope_hint: In function ‘__ieee754_expf’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/ef_exp.c:87:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘k’
#   85|   	t  = x*x;
#   86|   	c  = x - t*(P1+t*(P2+t*(P3+t*(P4+t*P5))));
#   87|-> 	if(k==0) 	return one-((x*c)/(c-(float)2.0)-x); 
#   88|   	else 		y = one-((lo-(x*c)/((float)2.0-c))-hi);
#   89|   	if(k >= -125) {

Error: COMPILER_WARNING (CWE-457): [#def281]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/ef_exp.c:87:11: warning[-Wmaybe-uninitialized]: ‘k’ may be used uninitialized
#   87 |         if(k==0)        return one-((x*c)/(c-(float)2.0)-x);
#      |           ^
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/ef_exp.c:50:19: note: ‘k’ was declared here
#   50 |         __int32_t k,xsb,sx;
#      |                   ^
#   85|   	t  = x*x;
#   86|   	c  = x - t*(P1+t*(P2+t*(P3+t*(P4+t*P5))));
#   87|-> 	if(k==0) 	return one-((x*c)/(c-(float)2.0)-x); 
#   88|   	else 		y = one-((lo-(x*c)/((float)2.0-c))-hi);
#   89|   	if(k >= -125) {

Error: COMPILER_WARNING (CWE-457): [#def282]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/ef_exp.c:88:37: warning[-Wmaybe-uninitialized]: ‘lo’ may be used uninitialized
#   88 |         else            y = one-((lo-(x*c)/((float)2.0-c))-hi);
#      |                                  ~~~^~~~~~~~~~~~~~~~~~~~~~
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/ef_exp.c:49:20: note: ‘lo’ was declared here
#   49 |         float y,hi,lo,c,t;
#      |                    ^~
#   86|   	c  = x - t*(P1+t*(P2+t*(P3+t*(P4+t*P5))));
#   87|   	if(k==0) 	return one-((x*c)/(c-(float)2.0)-x); 
#   88|-> 	else 		y = one-((lo-(x*c)/((float)2.0-c))-hi);
#   89|   	if(k >= -125) {
#   90|   	    __uint32_t hy;

Error: COMPILER_WARNING (CWE-457): [#def283]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/ef_exp.c: scope_hint: In function ‘__ieee754_expf’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/ef_exp.c:88:59: warning[-Wmaybe-uninitialized]: ‘hi’ may be used uninitialized
#   88 |         else            y = one-((lo-(x*c)/((float)2.0-c))-hi);
#      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/ef_exp.c:49:17: note: ‘hi’ was declared here
#   49 |         float y,hi,lo,c,t;
#      |                 ^~
#   86|   	c  = x - t*(P1+t*(P2+t*(P3+t*(P4+t*P5))));
#   87|   	if(k==0) 	return one-((x*c)/(c-(float)2.0)-x); 
#   88|-> 	else 		y = one-((lo-(x*c)/((float)2.0-c))-hi);
#   89|   	if(k >= -125) {
#   90|   	    __uint32_t hy;

Error: COMPILER_WARNING: [#def284]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/ef_jn.c:23:1: warning[-Wunused-const-variable=]: ‘invsqrtpi’ defined but not used
#   23 | invsqrtpi=  5.6418961287e-01, /* 0x3f106ebb */
#      | ^~~~~~~~~
#   21|   static float
#   22|   #endif
#   23|-> invsqrtpi=  5.6418961287e-01, /* 0x3f106ebb */
#   24|   two   =  2.0000000000e+00, /* 0x40000000 */
#   25|   one   =  1.0000000000e+00; /* 0x3F800000 */

Error: CPPCHECK_WARNING (CWE-758): [#def285]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/ef_jn.c:58: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   56|   	if(n==0) return(__ieee754_j0f(x));
#   57|   	if(n==1) return(__ieee754_j1f(x));
#   58|-> 	sgn = (n&1)&(hx>>31);	/* even n -- 0, odd n -- sign(x) */
#   59|   	x = fabsf(x);
#   60|   	if(FLT_UWORD_IS_ZERO(ix)||FLT_UWORD_IS_INFINITE(ix))

Error: COMPILER_WARNING (CWE-691): [#def286]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/ef_pow.c: scope_hint: In function ‘__ieee754_powf’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/ef_pow.c:79:11: warning[-Wdangling-else]: suggest explicit braces to avoid ambiguous ‘else’
#   79 |         if(FLT_UWORD_IS_NAN(ix) ||
#      |           ^
#   77|   
#   78|       /* x|y==NaN return NaN unless x==1 then return 1 */
#   79|-> 	if(FLT_UWORD_IS_NAN(ix) ||
#   80|   	   FLT_UWORD_IS_NAN(iy))
#   81|   	    if(ix==0x3f800000) return one;

Error: COMPILER_WARNING (CWE-563): [#def287]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/ef_sqrt.c: scope_hint: In function ‘__ieee754_sqrtf’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/ef_sqrt.c:32:25: warning[-Wunused-variable]: unused variable ‘sign’
#   32 |         __int32_t       sign = (__int32_t)0x80000000;
#      |                         ^~~~
#   30|   {
#   31|   	float z;
#   32|-> 	__int32_t 	sign = (__int32_t)0x80000000; 
#   33|   	__uint32_t r,hx;
#   34|   	__int32_t ix,s,q,m,t,i;

Error: COMPILER_WARNING (CWE-457): [#def288]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/er_lgamma.c: scope_hint: In function ‘__ieee754_lgamma_r’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/er_lgamma.c:307:20: warning[-Wmaybe-uninitialized]: ‘nadj’ may be used uninitialized
#  307 |         if(hx<0) r = nadj - r;
#      |                  ~~^~~~~~~~~~
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/er_lgamma.c:219:22: note: ‘nadj’ was declared here
#  219 |         double t,y,z,nadj,p,p1,p2,p3,q,r,w;
#      |                      ^~~~
#  305|       /* 2**58 <= x <= inf */
#  306|   	    r =  x*(__ieee754_log(x)-one);
#  307|-> 	if(hx<0) r = nadj - r;
#  308|   	return r;
#  309|   }

Error: COMPILER_WARNING (CWE-457): [#def289]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/erf_lgamma.c: scope_hint: In function ‘__ieee754_lgammaf_r’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/erf_lgamma.c:242:20: warning[-Wmaybe-uninitialized]: ‘nadj’ may be used uninitialized
#  242 |         if(hx<0) r = nadj - r;
#      |                  ~~^~~~~~~~~~
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/erf_lgamma.c:154:21: note: ‘nadj’ was declared here
#  154 |         float t,y,z,nadj,p,p1,p2,p3,q,r,w;
#      |                     ^~~~
#  240|       /* 2**58 <= x <= inf */
#  241|   	    r =  x*(__ieee754_logf(x)-one);
#  242|-> 	if(hx<0) r = nadj - r;
#  243|   	return r;
#  244|   }

Error: COMPILER_WARNING (CWE-483): [#def290]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/k_rem_pio2.c: scope_hint: In function ‘__kernel_rem_pio2’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/k_rem_pio2.c:190:13: warning[-Wmisleading-indentation]: this ‘for’ clause does not guard...
#  190 |             for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j]; q[i] = fw;
#      |             ^~~
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/k_rem_pio2.c:190:61: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
#  190 |             for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j]; q[i] = fw;
#      |                                                             ^
#  188|       /* compute q[0],q[1],...q[jk] */
#  189|   	for (i=0;i<=jk;i++) {
#  190|-> 	    for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j]; q[i] = fw;
#  191|   	}
#  192|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def291]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/k_rem_pio2.c: scope_hint: In function ‘__kernel_rem_pio2’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/k_rem_pio2.c:209:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘iq[<unknown>]’
#  207|   	ih = 0;
#  208|   	if(q0>0) {	/* need iq[jz-1] to determine n */
#  209|-> 	    i  = (iq[jz-1]>>(24-q0)); n += i;
#  210|   	    iq[jz-1] -= i<<(24-q0);
#  211|   	    ih = iq[jz-1]>>(23-q0);

Error: COMPILER_WARNING (CWE-483): [#def292]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/kf_rem_pio2.c: scope_hint: In function ‘__kernel_rem_pio2f’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/kf_rem_pio2.c:80:13: warning[-Wmisleading-indentation]: this ‘for’ clause does not guard...
#   80 |             for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j]; q[i] = fw;
#      |             ^~~
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/kf_rem_pio2.c:80:61: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
#   80 |             for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j]; q[i] = fw;
#      |                                                             ^
#   78|       /* compute q[0],q[1],...q[jk] */
#   79|   	for (i=0;i<=jk;i++) {
#   80|-> 	    for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j]; q[i] = fw;
#   81|   	}
#   82|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def293]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/kf_rem_pio2.c: scope_hint: In function ‘__kernel_rem_pio2f’
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/kf_rem_pio2.c:99:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘iq[<unknown>]’
#   97|   	ih = 0;
#   98|   	if(q0>0) {	/* need iq[jz-1] to determine n */
#   99|-> 	    i  = (iq[jz-1]>>(8-q0)); n += i;
#  100|   	    iq[jz-1] -= i<<(8-q0);
#  101|   	    ih = iq[jz-1]>>(7-q0);

Error: COMPILER_WARNING: [#def294]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/sf_cos.c:19:20: warning[-Wunused-const-variable=]: ‘one’ defined but not used
#   19 | static const float one=1.0;
#      |                    ^~~
#   17|   
#   18|   #ifdef __STDC__
#   19|-> static const float one=1.0;
#   20|   #else
#   21|   static float one=1.0;

Error: COMPILER_WARNING: [#def295]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/w_cabs.c:16:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#   16 | cabs(z)
#      | ^~~~
#   14|   
#   15|   double
#   16|-> cabs(z)
#   17|   	struct complex z;
#   18|   {

Error: COMPILER_WARNING: [#def296]
xen-4.19.0-build/xen-4.19.0/stubdom/newlib-1.16.0/newlib/libm/math/wf_cabs.c:16:1: warning[-Wstrict-prototypes]: function declaration isn’t a prototype
#   16 | cabsf(z)
#      | ^~~~~
#   14|   
#   15|   float
#   16|-> cabsf(z)
#   17|   	struct complex z;
#   18|   {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def297]
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/access.c: scope_hint: In function ‘pci_alloc’
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/access.c:73:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘a’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#   71|     int i;
#   72|   
#   73|->   memset(a, 0, sizeof(*a));
#   74|     pci_set_name_list_path(a, PCI_PATH_IDS_DIR "/" PCI_IDS, 0);
#   75|     for(i=0; i<PCI_ACCESS_MAX; i++)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def298]
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/access.c: scope_hint: In function ‘pci_generic_warn’
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/access.c:119:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
#  117|     vfprintf(stderr, msg, args);
#  118|     fputc('\n', stderr);
#  119|-> }
#  120|   
#  121|   static void

Error: GCC_ANALYZER_WARNING (CWE-688): [#def299]
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/access.c: scope_hint: In function ‘pci_alloc_dev’
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/access.c:205:3: warning[-Wanalyzer-null-argument]: use of NULL ‘d’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  203|     struct pci_dev *d = pci_malloc(a, sizeof(struct pci_dev));
#  204|   
#  205|->   memset(d, 0, sizeof(*d));
#  206|     d->access = a;
#  207|     d->methods = a->methods;

Error: COMPILER_WARNING (CWE-563): [#def300]
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/dump.c: scope_hint: In function ‘dump_validate’
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/dump.c:44:7: warning[-Wunused-value]: value computed is not used
#   44 |       *fmt++, *s++;
#      |       ^~~~~~
#   42|         if (*fmt == '#' ? !isxdigit(*s) : *fmt != *s)
#   43|   	return 0;
#   44|->       *fmt++, *s++;
#   45|       }
#   46|     return 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def301]
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/dump.c: scope_hint: In function ‘dump_init’
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/dump.c:67:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘z’
#   65|         if (!z)
#   66|   	a->error("dump: line too long or unterminated");
#   67|->       *z-- = 0;
#   68|         if (z >= buf && *z == '\r')
#   69|   	*z-- = 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def302]
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/dump.c:110:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
#  108|   	}
#  109|       }
#  110|-> }
#  111|   
#  112|   static void

Error: COMPILER_WARNING (CWE-563): [#def303]
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/generic.c: scope_hint: In function ‘pci_generic_fill_info’
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/generic.c:134:27: warning[-Wunused-variable]: unused variable ‘size’
#  134 |                       u32 size;
#      |                           ^~~~
#  132|                     if (flags & PCI_FILL_SIZES)
#  133|                       {
#  134|->                       u32 size;
#  135|                         pci_write_long(d, PCI_BASE_ADDRESS_0 + i*4, ~0);
#  136|                         d->size[i] = pci_size(x, pci_read_long(d, PCI_BASE_ADDRESS_0 + i*4), PCI_BASE_ADDRESS_IO_MASK);

Error: COMPILER_WARNING (CWE-563): [#def304]
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/generic.c:147:31: warning[-Wunused-variable]: unused variable ‘size’
#  147 |                           u32 size;
#      |                               ^~~~
#  145|                         if (flags & PCI_FILL_SIZES)
#  146|                           {
#  147|->                           u32 size;
#  148|                             pci_write_long(d, PCI_BASE_ADDRESS_0 + i*4, ~0);
#  149|                             d->size[i] = pci_read_long(d, PCI_BASE_ADDRESS_0 + i*4);

Error: COMPILER_WARNING (CWE-563): [#def305]
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/generic.c:179:35: warning[-Wunused-variable]: unused variable ‘size’
#  179 |                               u32 size;
#      |                                   ^~~~
#  177|                             if (flags & PCI_FILL_SIZES)
#  178|                               {
#  179|->                               u32 size;
#  180|                                 pci_write_long(d, PCI_BASE_ADDRESS_0 + (i-1)*4, ~0);
#  181|                                 d->size[i-1] = pci_size(x, pci_read_long(d, PCI_BASE_ADDRESS_0 + (i-1)*4), PCI_BASE_ADDRESS_MEM_MASK);

Error: COMPILER_WARNING (CWE-563): [#def306]
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/generic.c:212:23: warning[-Wunused-variable]: unused variable ‘size’
#  212 |                   u32 size;
#      |                       ^~~~
#  210|                 if (flags & PCI_FILL_SIZES)
#  211|                   {
#  212|->                   u32 size;
#  213|                     pci_write_long(d, reg, ~0);
#  214|                     d->rom_size = pci_read_long(d, reg);

Error: COMPILER_WARNING (CWE-563): [#def307]
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/minios.c: scope_hint: In function ‘minios_detect’
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/minios.c:15:34: warning[-Wunused-parameter]: unused parameter ‘a’
#   15 | minios_detect(struct pci_access *a)
#      |               ~~~~~~~~~~~~~~~~~~~^
#   13|   
#   14|   static int
#   15|-> minios_detect(struct pci_access *a)
#   16|   {
#   17|     return 1;

Error: COMPILER_WARNING (CWE-563): [#def308]
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/minios.c: scope_hint: In function ‘minios_init’
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/minios.c:21:32: warning[-Wunused-parameter]: unused parameter ‘a’
#   21 | minios_init(struct pci_access *a)
#      |             ~~~~~~~~~~~~~~~~~~~^
#   19|   
#   20|   static void
#   21|-> minios_init(struct pci_access *a)
#   22|   {
#   23|   }

Error: COMPILER_WARNING (CWE-563): [#def309]
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/minios.c: scope_hint: In function ‘minios_cleanup’
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/minios.c:26:35: warning[-Wunused-parameter]: unused parameter ‘a’
#   26 | minios_cleanup(struct pci_access *a)
#      |                ~~~~~~~~~~~~~~~~~~~^
#   24|   
#   25|   static void
#   26|-> minios_cleanup(struct pci_access *a)
#   27|   {
#   28|     shutdown_pcifront(NULL);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def310]
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/names.c: scope_hint: In function ‘pci_open’
xen-4.19.0-build/xen-4.19.0/stubdom/pciutils-x86_64/lib/names.c:36:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘new_name’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#   34|       return result;
#   35|     new_name = malloc(len - 2);
#   36|->   memcpy(new_name, a->id_file_name, len - 3);
#   37|     new_name[len - 3] = 0;
#   38|     pci_set_name_list_path(a, new_name, 1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def311]
xen-4.19.0-build/xen-4.19.0/tools/9pfsd/io.c: scope_hint: In function ‘fill_data_elem’
xen-4.19.0-build/xen-4.19.0/tools/9pfsd/io.c:378:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘array’
xen-4.19.0-build/xen-4.19.0/tools/9pfsd/io.c: scope_hint: In function ‘fill_data_elem’
xen-4.19.0-build/xen-4.19.0/tools/9pfsd/io.c:25: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/9pfsd/io.c: scope_hint: In function ‘fill_data_elem’
xen-4.19.0-build/xen-4.19.0/tools/include/xen-tools/common-macros.h:108:33: note: in expansion of macro ‘get_unaligned_t’
xen-4.19.0-build/xen-4.19.0/tools/9pfsd/io.c:492:19: note: in expansion of macro ‘get_unaligned’
xen-4.19.0-build/xen-4.19.0/tools/9pfsd/io.c: scope_hint: In function ‘fill_data_elem’
#  376|                              unsigned int elem_sz, void *data)
#  377|   {
#  378|->     if ( *array_sz && !*array )
#  379|       {
#  380|           *array = calloc(*array_sz, elem_sz);

Error: CPPCHECK_WARNING (CWE-909): [#def312]
xen-4.19.0-build/xen-4.19.0/tools/9pfsd/xen-9pfsd.c:256: error[uninitStructMember]: Uninitialized struct member: device.devid
#  254|       XEN_TAILQ_FOREACH( device, &devs, list )
#  255|       {
#  256|->         if ( domid == device->domid && devid == device->devid )
#  257|               return device;
#  258|       }

Error: CPPCHECK_WARNING (CWE-909): [#def313]
xen-4.19.0-build/xen-4.19.0/tools/9pfsd/xen-9pfsd.c:256: error[uninitStructMember]: Uninitialized struct member: device.domid
#  254|       XEN_TAILQ_FOREACH( device, &devs, list )
#  255|       {
#  256|->         if ( domid == device->domid && devid == device->devid )
#  257|               return device;
#  258|       }

Error: CPPCHECK_WARNING (CWE-457): [#def314]
xen-4.19.0-build/xen-4.19.0/tools/9pfsd/xen-9pfsd.c:256: error[uninitvar]: Uninitialized variable: device
#  254|       XEN_TAILQ_FOREACH( device, &devs, list )
#  255|       {
#  256|->         if ( domid == device->domid && devid == device->devid )
#  257|               return device;
#  258|       }

Error: CPPCHECK_WARNING (CWE-401): [#def315]
xen-4.19.0-build/xen-4.19.0/tools/9pfsd/xen-9pfsd.c:304: error[memleak]: Memory leak: device
#  302|                  domid, devid);
#  303|           free(device);
#  304|->         return NULL;
#  305|       }
#  306|   

Error: CPPCHECK_WARNING (CWE-909): [#def316]
xen-4.19.0-build/xen-4.19.0/tools/9pfsd/xen-9pfsd.c:617: error[uninitStructMember]: Uninitialized struct member: device.last_seen
#  615|       XEN_TAILQ_FOREACH_SAFE( device, &devs, list, tmp )
#  616|       {
#  617|->         if ( device->last_seen != now )
#  618|               remove_device(device);
#  619|       }

Error: CPPCHECK_WARNING (CWE-457): [#def317]
xen-4.19.0-build/xen-4.19.0/tools/9pfsd/xen-9pfsd.c:617: error[uninitvar]: Uninitialized variable: device
#  615|       XEN_TAILQ_FOREACH_SAFE( device, &devs, list, tmp )
#  616|       {
#  617|->         if ( device->last_seen != now )
#  618|               remove_device(device);
#  619|       }

Error: CPPCHECK_WARNING (CWE-909): [#def318]
xen-4.19.0-build/xen-4.19.0/tools/9pfsd/xen-9pfsd.c:688: error[uninitStructMember]: Uninitialized struct member: device.num_rings
#  686|       XEN_TAILQ_FOREACH( device, &devs, list )
#  687|       {
#  688|->         for ( ring_idx = 0; ring_idx < device->num_rings; ring_idx++ )
#  689|           {
#  690|               ring = device->ring[ring_idx];

Error: CPPCHECK_WARNING (CWE-457): [#def319]
xen-4.19.0-build/xen-4.19.0/tools/9pfsd/xen-9pfsd.c:688: error[uninitvar]: Uninitialized variable: device
#  686|       XEN_TAILQ_FOREACH( device, &devs, list )
#  687|       {
#  688|->         for ( ring_idx = 0; ring_idx < device->num_rings; ring_idx++ )
#  689|           {
#  690|               ring = device->ring[ring_idx];

Error: GCC_ANALYZER_WARNING (CWE-775): [#def320]
xen-4.19.0-build/xen-4.19.0/tools/console/client/main.c: scope_hint: In function ‘console_loop’
xen-4.19.0-build/xen-4.19.0/tools/console/client/main.c:200:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
/usr/include/sys/select.h:30: included_from: Included from here.
/usr/include/sys/types.h:179: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/console/client/main.c:21: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/console/client/main.c:27: included_from: Included from here.
#  198|   				continue;
#  199|   			}
#  200|-> 			return -1;
#  201|   		}
#  202|   

Error: CPPCHECK_WARNING (CWE-457): [#def321]
xen-4.19.0-build/xen-4.19.0/tools/console/daemon/io.c:204: warning[uninitvar]: Uninitialized variable: ret
#  202|   			break;
#  203|   	}
#  204|-> 	return ret;
#  205|   }
#  206|   

Error: CPPCHECK_WARNING (CWE-457): [#def322]
xen-4.19.0-build/xen-4.19.0/tools/console/daemon/io.c:226: warning[uninitvar]: Uninitialized variable: ret
#  224|   			break;
#  225|   	}
#  226|-> 	return ret;
#  227|   }
#  228|   

Error: CPPCHECK_WARNING (CWE-457): [#def323]
xen-4.19.0-build/xen-4.19.0/tools/console/daemon/io.c:1399: error[legacyUninitvar]: Uninitialized variable: poll_timeout
# 1397|   		}
# 1398|   
# 1399|-> 		ret = poll(fds, nr_fds, next_timeout ? poll_timeout : -1);
# 1400|   
# 1401|   		if (log_reload) {

Error: GCC_ANALYZER_WARNING: [#def324]
xen-4.19.0-build/xen-4.19.0/tools/console/daemon/utils.c: scope_hint: In function ‘daemonize’
xen-4.19.0-build/xen-4.19.0/tools/console/daemon/utils.c:75:17: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘i’
#   73|   	for (i = 0; i <= 2; i++) {
#   74|   		close(i);
#   75|-> 		dup2(fd, i);
#   76|   	}
#   77|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def325]
xen-4.19.0-build/xen-4.19.0/tools/debugger/gdbsx/gx/gx_comm.c: scope_hint: In function ‘gx_putpkt’
xen-4.19.0-build/xen-4.19.0/tools/debugger/gdbsx/gx/gx_comm.c:286:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf2’
#  284|   
#  285|       p = buf2;
#  286|->     *p++ = '$';
#  287|   
#  288|       for (i = 0; i < cnt; i++) {

Error: CPPCHECK_WARNING (CWE-823): [#def326]
xen-4.19.0-build/xen-4.19.0/tools/debugger/kdd/kdd.c:816: error[arrayIndexOutOfBounds]: Array 's->txb[56]' accessed at index 271, which is out of bounds.
#  814|           /* XXX debug pattern */
#  815|           for (i = 0; i < 0x100 ; i++) 
#  816|->             s->txb[sizeof (kdd_hdr) + i] = i;
#  817|       }
#  818|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def327]
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/hvmloader.c:22: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/hvmloader.c: scope_hint: In function ‘main’
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/hvmloader.c:331:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.h:40:28: note: in definition of macro ‘BUG_ON’
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.h:40:28: note: in definition of macro ‘BUG_ON’
#  329|   
#  330|       printf("HVM Loader\n");
#  331|->     BUG_ON(hvm_start_info->magic != XEN_HVM_START_MAGIC_VALUE);
#  332|   
#  333|       init_hypercalls();

Error: GCC_ANALYZER_WARNING (CWE-686): [#def328]
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c: scope_hint: In function ‘_doprint’
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c:520:23: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long unsigned int’ but received ‘char (*)[7]’ for variadic argument 1 of ‘ap’
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c:20: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c:721:9: note: in expansion of macro ‘BUG’
#  518|               if ( lflag )
#  519|               {
#  520|->                 value = va_arg(ap, unsigned long);
#  521|                   if ( (c == 'd') && ((long)value < 0) )
#  522|                   {

Error: GCC_ANALYZER_WARNING (CWE-685): [#def329]
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c:520:23: warning[-Wanalyzer-va-list-exhausted]: ‘ap’ has no more arguments (0 consumed)
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c: scope_hint: In function ‘_doprint’
#  518|               if ( lflag )
#  519|               {
#  520|->                 value = va_arg(ap, unsigned long);
#  521|                   if ( (c == 'd') && ((long)value < 0) )
#  522|                   {

Error: GCC_ANALYZER_WARNING (CWE-686): [#def330]
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c:529:23: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long unsigned int’ but received ‘char (*)[7]’ for variadic argument 1 of ‘ap’
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c:721:9: note: in expansion of macro ‘BUG’
#  527|               else
#  528|               {
#  529|->                 value = va_arg(ap, unsigned int);
#  530|                   if ( (c == 'd') && ((int)value < 0) )
#  531|                   {

Error: GCC_ANALYZER_WARNING (CWE-685): [#def331]
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c:529:23: warning[-Wanalyzer-va-list-exhausted]: ‘ap’ has no more arguments (0 consumed)
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c: scope_hint: In function ‘_doprint’
#  527|               else
#  528|               {
#  529|->                 value = va_arg(ap, unsigned int);
#  530|                   if ( (c == 'd') && ((int)value < 0) )
#  531|                   {

Error: GCC_ANALYZER_WARNING (CWE-686): [#def332]
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c:552:17: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘char *’ but received ‘int’ for variadic argument 2 of ‘ap’
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c:721:9: note: in expansion of macro ‘BUG’
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c: scope_hint: In function ‘_doprint’
#  550|           else if ( c == 's' )
#  551|           {
#  552|->             str = va_arg(ap, char *);
#  553|               slen = strlen(str);
#  554|               if ( nflag == 0 )

Error: GCC_ANALYZER_WARNING (CWE-685): [#def333]
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c:552:17: warning[-Wanalyzer-va-list-exhausted]: ‘ap’ has no more arguments (0 consumed)
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c: scope_hint: In function ‘_doprint’
#  550|           else if ( c == 's' )
#  551|           {
#  552|->             str = va_arg(ap, char *);
#  553|               slen = strlen(str);
#  554|               if ( nflag == 0 )

Error: GCC_ANALYZER_WARNING (CWE-686): [#def334]
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c:565:34: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘int’ but received ‘char (*)[7]’ for variadic argument 1 of ‘ap’
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c:721:9: note: in expansion of macro ‘BUG’
#  563|           else if ( c == 'c' )
#  564|           {
#  565|->             emit(arg, va_arg(ap, int));
#  566|           }
#  567|           else

Error: GCC_ANALYZER_WARNING (CWE-685): [#def335]
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c:565:34: warning[-Wanalyzer-va-list-exhausted]: ‘ap’ has no more arguments (0 consumed)
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/util.c: scope_hint: In function ‘_doprint’
#  563|           else if ( c == 'c' )
#  564|           {
#  565|->             emit(arg, va_arg(ap, int));
#  566|           }
#  567|           else

Error: GCC_ANALYZER_WARNING (CWE-457): [#def336]
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/xenbus.c: scope_hint: In function ‘ring_write.part.0’
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/xenbus.c:124:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data + done’
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/xenbus.c:28: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/xenbus.c:188:5: note: in expansion of macro ‘ASSERT’
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/xenbus.c: scope_hint: In function ‘ring_write.part.0’
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/xenbus.c:33: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/firmware/hvmloader/xenbus.c:118:43: note: in expansion of macro ‘MASK_XENSTORE_IDX’
#  122|               part = len;
#  123|   
#  124|->         memcpy(rings->req + MASK_XENSTORE_IDX(rings->req_prod),
#  125|                  data + done, part);
#  126|           barrier(); /* = wmb before prod write, rmb before next cons read */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def337]
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_switch_to_buffer’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:277:46: warning[-Wanalyzer-malloc-leak]: leak of ‘yy_create_buffer(zconf_fopen(*file.name), 16384)’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3724:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:4268:30: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:4268:30: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_switch_to_buffer’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3724:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3724:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3691:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_switch_to_buffer’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3594:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3724:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
#  275|    */
#  276|   #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
#  277|->                           ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
#  278|                             : NULL)
#  279|   /* Same as previous macro, but useful when we know that the buffer stack is not

Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_get_next_buffer’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3338:46: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3502:38: note: in expansion of macro ‘YY_CURRENT_BUFFER_LVALUE’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_get_next_buffer’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_get_next_buffer’
# 3336|   					b->yy_buf_size *= 2;
# 3337|   
# 3338|-> 				b->yy_ch_buf = (char *)
# 3339|   					/* Include room in for 2 EOB chars. */
# 3340|   					yyrealloc( (void *) b->yy_ch_buf,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def339]
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_switch_to_buffer’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3594:12: warning[-Wanalyzer-file-leak]: leak of FILE
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:4268:30: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:4268:30: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3724:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3691:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3691:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3594:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
# 3592|        */
# 3593|   	yyensure_buffer_stack ();
# 3594|-> 	if ( YY_CURRENT_BUFFER == new_buffer )
# 3595|   		return;
# 3596|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3594:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:4268:30: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:4268:30: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3724:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3691:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3691:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3594:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
# 3592|        */
# 3593|   	yyensure_buffer_stack ();
# 3594|-> 	if ( YY_CURRENT_BUFFER == new_buffer )
# 3595|   		return;
# 3596|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def341]
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_create_buffer’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3644:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:4268:30: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_create_buffer’
# 3642|   	 */
# 3643|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 3644|-> 	if ( ! b->yy_ch_buf )
# 3645|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 3646|   

Error: CPPCHECK_WARNING (CWE-476): [#def342]
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3684: warning[nullPointer]: Possible null pointer dereference: b
# 3682|   	yy_flush_buffer( b );
# 3683|   
# 3684|-> 	b->yy_input_file = file;
# 3685|   	b->yy_fill_buffer = 1;
# 3686|   

Error: CPPCHECK_WARNING (CWE-476): [#def343]
xen-4.19.0-build/xen-4.19.0/tools/firmware/xen-dir/xen-root/xen/tools/kconfig/lexer.lex.c:3685: warning[nullPointer]: Possible null pointer dereference: b
# 3683|   
# 3684|   	b->yy_input_file = file;
# 3685|-> 	b->yy_fill_buffer = 1;
# 3686|   
# 3687|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: GCC_ANALYZER_WARNING (CWE-775): [#def344]
xen-4.19.0-build/xen-4.19.0/tools/flask/utils/label-pci.c: scope_hint: In function ‘main’
xen-4.19.0-build/xen-4.19.0/tools/flask/utils/label-pci.c:78:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&buf, "r")’
#   76|   	}
#   77|   
#   78|-> 	ret = xc_flask_add_device(xch, sbdf, argv[2]);
#   79|   	if (ret) {
#   80|   		fprintf(stderr, "xc_flask_add_device: Unable to set context of PCI device %s (0x%x) to %s: %d\n",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
xen-4.19.0-build/xen-4.19.0/tools/flask/utils/label-pci.c:78:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&buf, "r")’
#   76|   	}
#   77|   
#   78|-> 	ret = xc_flask_add_device(xch, sbdf, argv[2]);
#   79|   	if (ret) {
#   80|   		fprintf(stderr, "xc_flask_add_device: Unable to set context of PCI device %s (0x%x) to %s: %d\n",

Error: GCC_ANALYZER_WARNING (CWE-688): [#def346]
xen-4.19.0-build/xen-4.19.0/tools/flask/utils/loadpolicy.c: scope_hint: In function ‘main’
xen-4.19.0-build/xen-4.19.0/tools/flask/utils/loadpolicy.c:81:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘polMemCp’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#   79|       }
#   80|   
#   81|->     memcpy(polMemCp, polMem, info.st_size);
#   82|   #else
#   83|       ret = read(polFd, polMemCp, info.st_size);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def347]
xen-4.19.0-build/xen-4.19.0/tools/fuzz/x86_instruction_emulator/afl-harness.c: scope_hint: In function ‘main’
xen-4.19.0-build/xen-4.19.0/tools/fuzz/x86_instruction_emulator/afl-harness.c:94:16: warning[-Wanalyzer-null-argument]: use of NULL ‘fp’ where non-null expected
xen-4.19.0-build/xen-4.19.0/tools/fuzz/x86_instruction_emulator/afl-harness.c:3: included_from: Included from here.
/usr/include/stdio.h:728:15: note: argument 4 of ‘fread’ must be non-null
#   92|   #endif
#   93|   
#   94|->         size = fread(input, 1, INPUT_SIZE, fp);
#   95|   
#   96|           if ( ferror(fp) )

Error: GCC_ANALYZER_WARNING (CWE-775): [#def348]
xen-4.19.0-build/xen-4.19.0/tools/helpers/init-xenstore-domain.c: scope_hint: In function ‘build’
xen-4.19.0-build/xen-4.19.0/tools/helpers/init-xenstore-domain.c:109:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/xen/xenbus_backend", 2)’
#  107|       }
#  108|   
#  109|->     if ( flask )
#  110|       {
#  111|           rv = xc_flask_context_to_sid(xch, flask, strlen(flask), &config.ssidref);

Error: CPPCHECK_WARNING (CWE-758): [#def349]
xen-4.19.0-build/xen-4.19.0/tools/libacpi/mk_dsdt.c:443: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  441|                   stmt("Name", "_ADR, %#06x0000", slot);
#  442|                   push_block("Method", "_EJ0,1"); {
#  443|->                     stmt("Store", "%#010x, B0EJ", 1 << slot);
#  444|                   } pop_block();
#  445|                   stmt("Name", "_SUN, %i", slot);

Error: CPPCHECK_WARNING (CWE-758): [#def350]
xen-4.19.0-build/xen-4.19.0/tools/libs/guest/xg_core_x86.c:79: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
#   77|   static inline bool is_canonical_address(uint64_t vaddr)
#   78|   {
#   79|->     return ((int64_t)vaddr >> 47) == ((int64_t)vaddr >> 63);
#   80|   }
#   81|   

Error: CPPCHECK_WARNING (CWE-401): [#def351]
xen-4.19.0-build/xen-4.19.0/tools/libs/guest/xg_sr_common.h:211: error[memleak]: Memory leak: ptr
#  209|       blob->size = size;
#  210|   
#  211|->     return 0;
#  212|   }
#  213|   

Error: CPPCHECK_WARNING (CWE-457): [#def352]
xen-4.19.0-build/xen-4.19.0/tools/libs/guest/xg_sr_restore_x86_pv.c:1006: warning[uninitvar]: Uninitialized variable: pfns
# 1004|       }
# 1005|   
# 1006|->     if ( to_populate && populate_pfns(ctx, to_populate, pfns, NULL) )
# 1007|           return -1;
# 1008|   

Error: CPPCHECK_WARNING (CWE-758): [#def353]
xen-4.19.0-build/xen-4.19.0/tools/libs/guest/xg_sr_save_x86_pv.c:9: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
#    7|   static inline bool is_canonical_address(xen_vaddr_t vaddr)
#    8|   {
#    9|->     return ((int64_t)vaddr >> 47) == ((int64_t)vaddr >> 63);
#   10|   }
#   11|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def354]
xen-4.19.0-build/xen-4.19.0/tools/libs/guest/xg_sr_save_x86_pv.c: scope_hint: In function ‘map_p2m_leaves’
xen-4.19.0-build/xen-4.19.0/tools/libs/guest/xg_sr_save_x86_pv.c:106:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
xen-4.19.0-build/xen-4.19.0/tools/libs/guest/xg_sr_common.h:6: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/libs/guest/xg_sr_common_x86.h:4: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/libs/guest/xg_sr_common_x86_pv.h:4: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/libs/guest/xg_sr_save_x86_pv.c:4: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/libs/guest/xg_sr_save_x86_pv.c:472:15: note: in expansion of macro ‘GET_FIELD’
xen-4.19.0-build/xen-4.19.0/tools/libs/guest/xg_private.h:47:48: note: in definition of macro ‘GET_FIELD’
xen-4.19.0-build/xen-4.19.0/tools/libs/guest/xg_sr_save_x86_pv.c:1: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/libs/guest/xg_private.h:30: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/libs/guest/xg_sr_save_x86_pv.c:369:5: note: in expansion of macro ‘DPRINTF’
#  104|       for ( x = 0; x < n_mfns; ++x )
#  105|       {
#  106|->         if ( !mfn_in_pseudophysmap(ctx, mfns[x]) )
#  107|           {
#  108|               ERROR("Bad mfn in p2m_frame_list[%u]", x);

Error: CPPCHECK_WARNING (CWE-401): [#def355]
xen-4.19.0-build/xen-4.19.0/tools/libs/hypfs/core.c:149: error[memleakOnRealloc]: Common realloc mistake: 'content' nulled but not freed upon failure
#  147|   
#  148|           out_sz = z.next_out - workbuf;
#  149|->         content = realloc(content, *sz + out_sz + 1);
#  150|           if (!content) {
#  151|               ret = Z_MEM_ERROR;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def356]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_aoutils.c: scope_hint: In function ‘datacopier_readable’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_aoutils.c:295:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_internal.h:26: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_aoutils.c:17: included_from: Included from here.
#  293|           }
#  294|           if (dc->log) {
#  295|->             int wrote = fwrite(buf->buf + buf->used, 1, r, dc->log);
#  296|               if (wrote != r) {
#  297|                   assert(ferror(dc->log));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def357]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_colo_proxy.c: scope_hint: In function ‘colo_proxy_setup’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_colo_proxy.c:298:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘h’
#  296|       if (size) {
#  297|           h = (struct nlmsghdr *)buff;
#  298|->         if (h->nlmsg_type == NLMSG_ERROR) {
#  299|               /* ack's type is NLMSG_ERROR */
#  300|               struct nlmsgerr *err = (struct nlmsgerr *)NLMSG_DATA(h);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def358]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c: scope_hint: In function ‘cpuid_find_match’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c:87:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘policy’
#   85|   
#   86|       list = &policy->cpuid;
#   87|->     if (*list != NULL) {
#   88|           for (i = 0; (*list)[i].input[0] != XEN_CPUID_INPUT_UNUSED; i++) {
#   89|               if ((*list)[i].input[0] == leaf && (*list)[i].input[1] == subleaf)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def359]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c: scope_hint: In function ‘cpuid_add’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c:137:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(unsigned int *)(&flags[4])’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c: scope_hint: In function ‘cpuid_add’
#  135|       if (!strcmp(flag->name, "family")) {
#  136|           if (num < 16) {
#  137|->             memcpy(resstr + (32 - 4) - flag->bit, flags + 4, 4);
#  138|               memcpy(resstr + (32 - 8) - 20, "00000000", 8);
#  139|           } else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def360]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c:149:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘resstr’
#  147|           }
#  148|       } else if (!strcmp(flag->name, "model")) {
#  149|->         memcpy(resstr + (32 - 4) - 16, flags, 4);
#  150|           memcpy(resstr + (32 - 4) - flag->bit, flags + 4, 4);
#  151|       } else {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def361]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c:150:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(unsigned int *)(&flags[4])’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c: scope_hint: In function ‘cpuid_add’
#  148|       } else if (!strcmp(flag->name, "model")) {
#  149|           memcpy(resstr + (32 - 4) - 16, flags, 4);
#  150|->         memcpy(resstr + (32 - 4) - flag->bit, flags + 4, 4);
#  151|       } else {
#  152|           memcpy(resstr + (32 - flag->length) - flag->bit, flags,

Error: GCC_ANALYZER_WARNING (CWE-688): [#def362]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c:152:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘resstr’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  150|           memcpy(resstr + (32 - 4) - flag->bit, flags + 4, 4);
#  151|       } else {
#  152|->         memcpy(resstr + (32 - flag->length) - flag->bit, flags,
#  153|                  flag->length);
#  154|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def363]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c: scope_hint: In function ‘msr_find_match’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c:168:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘policy’
#  166|           policy = *pl = calloc(1, sizeof(*policy));
#  167|   
#  168|->     if (policy->msr != NULL) {
#  169|           for (i = 0; policy->msr[i].index != XC_MSR_INPUT_UNUSED; i++) {
#  170|               if (policy->msr[i].index == idx) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def364]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c:177:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  175|   
#  176|       policy->msr = realloc(policy->msr, sizeof(struct xc_msr) * (i + 2));
#  177|->     policy->msr[i].index = idx;
#  178|       memset(policy->msr[i].policy, 'x', ARRAY_SIZE(policy->msr[0].policy) - 1);
#  179|       policy->msr[i].policy[ARRAY_SIZE(policy->msr[0].policy) - 1] = '\0';

Error: GCC_ANALYZER_WARNING (CWE-688): [#def365]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c: scope_hint: In function ‘libxl_cpuid_parse_config_xend’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c:459:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘calloc(33, 1)’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strncpy’ must be non-null
#  457|           }
#  458|           entry->policy[value] = calloc(32 + 1, 1);
#  459|->         strncpy(entry->policy[value], str, 32);
#  460|           entry->policy[value][32] = 0;
#  461|           if (*endptr == 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def366]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c: scope_hint: In function ‘libxl__cpuid_policy_list_parse_json’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c:669:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c: scope_hint: In function ‘libxl__cpuid_policy_list_parse_json’
#  667|   
#  668|       array = libxl__json_object_get_array(co);
#  669|->     if (!array->count)
#  670|           goto cpuid_empty;
#  671|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def367]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c:743:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c: scope_hint: In function ‘libxl__cpuid_policy_list_parse_json’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c: scope_hint: In function ‘libxl__cpuid_policy_list_parse_json’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c: scope_hint: In function ‘libxl__cpuid_policy_list_parse_json’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c: scope_hint: In function ‘libxl__cpuid_policy_list_parse_json’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c: scope_hint: In function ‘libxl__cpuid_policy_list_parse_json’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c: scope_hint: In function ‘libxl__cpuid_policy_list_parse_json’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c: scope_hint: In function ‘libxl__cpuid_policy_list_parse_json’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_cpuid.c: scope_hint: In function ‘libxl__cpuid_policy_list_parse_json’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
#  741|           r = libxl__json_map_get("policy", t, JSON_STRING);
#  742|           if (!r) return ERROR_FAIL;
#  743|->         if (strlen(libxl__json_object_get_string(r)) !=
#  744|               ARRAY_SIZE(msr[i].policy) - 1)
#  745|               return ERROR_FAIL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def368]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_device.c: scope_hint: In function ‘libxl__device_list’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_device.c:2143:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dir’
# 2141|   
# 2142|           if (dt->from_xenstore) {
# 2143|->             int nr = dt->get_num ? *num : atoi(*dir);
# 2144|               char *device_path = dt->get_num ? path :
# 2145|                   GCSPRINTF("%s/%d", path, nr);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def369]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_dm.c: scope_hint: In function ‘libxl__pre_open_qmp_socket’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_dm.c:1151:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘**dmss.build_state.dm_monitor_fd’
# 1149|       if (fd < 0) {
# 1150|           LOGED(ERROR, domid, "socket() failed");
# 1151|->         return ERROR_FAIL;
# 1152|       }
# 1153|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def370]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_dm.c: scope_hint: In function ‘device_model_qmp_cb’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_dm.c:3132:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_dm.c:20: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_dm.c: scope_hint: In function ‘device_model_qmp_cb’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_internal.h:38: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
# 3130|       else
# 3131|           expected_state = "paused";
# 3132|->     if (strcmp(status, expected_state)) {
# 3133|           LOGD(ERROR, ev->domid, "Unexpected QEMU status: %s", status);
# 3134|           rc = ERROR_NOT_READY;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def371]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_dm.c: scope_hint: In function ‘device_model_postconfig_vnc_passwd’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_dm.c:3355:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 3353|       rc = libxl__xs_printf(gc, XBT_NULL,
# 3354|                             GCSPRINTF("%s/console/vnc-pass", dompath),
# 3355|->                           "%s", vnc->passwd);
# 3356|   
# 3357|   out:

Error: GCC_ANALYZER_WARNING (CWE-415): [#def372]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_exec.c: scope_hint: In function ‘libxl__xenstore_child_wait_deprecated’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_exec.c:212:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘xs_read(xs_open(0), 0, path, & len)’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_internal.h:26: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_exec.c:20: included_from: Included from here.
/usr/include/sys/select.h:30: included_from: Included from here.
/usr/include/sys/types.h:179: included_from: Included from here.
/usr/include/uuid/uuid.h:38: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_osdeps.h:44: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_exec.c:18: included_from: Included from here.
#  210|           return rc;
#  211|   again:
#  212|->         free(p);
#  213|           FD_ZERO(&rfds);
#  214|           FD_SET(xs_fileno(xsh), &rfds);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def373]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_save_helper.c: scope_hint: In function ‘save_signal_handler’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_save_helper.c:159:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘r’
#  157|   
#  158|       errno = esave;
#  159|-> }
#  160|   
#  161|   static void setup_signals(void (*handler)(int))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def374]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_internal.h:45: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_utils.c:20: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_utils.c: scope_hint: In function ‘libxl_read_file_contents’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_utils.c:347:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
#  345|       }
#  346|   
#  347|->     if (!S_ISREG(stab.st_mode)) {
#  348|           LOGE(ERROR, "%s is not a plain file", filename);
#  349|           errno = ENOTTY;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_utils.c:347:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
#  345|       }
#  346|   
#  347|->     if (!S_ISREG(stab.st_mode)) {
#  348|           LOGE(ERROR, "%s is not a plain file", filename);
#  349|           errno = ENOTTY;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def376]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_utils.c: scope_hint: In function ‘libxl__sendmsg_fds’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_utils.c:1082:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cmsg’
/usr/include/sys/socket.h:33: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_internal.h:49: included_from: Included from here.
# 1080|       /* attach open fd */
# 1081|       cmsg = CMSG_FIRSTHDR(&msg);
# 1082|->     cmsg->cmsg_level = SOL_SOCKET;
# 1083|       cmsg->cmsg_type = SCM_RIGHTS;
# 1084|       cmsg->cmsg_len = CMSG_LEN(spaceneeded);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def377]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_utils.c: scope_hint: In function ‘libxl__recvmsg_fds’
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_utils.c:1143:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cmsg’
# 1141|           }
# 1142|           cmsg = CMSG_FIRSTHDR(&msg);
# 1143|->         if (cmsg->cmsg_len <= CMSG_LEN(0)) {
# 1144|               LOG(ERROR,"recvmsg got no control msg"
# 1145|                   " when expecting fds (%s)", what);

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def378]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/libxl_utils.c:1169:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘fd’
# 1167|                    i++, i+=sizeof(fd)) {
# 1168|                   memcpy(&fd, p, sizeof(fd));
# 1169|->                 close(fd);
# 1170|               }
# 1171|               return ERROR_FAIL;

Error: CPPCHECK_WARNING (CWE-401): [#def379]
xen-4.19.0-build/xen-4.19.0/tools/libs/light/test_common.c:41: error[memleakOnRealloc]: Common realloc mistake: 'poll_fds' nulled but not freed upon failure
#   39|   
#   40|           assert(poll_nfds > poll_nfds_allocd);
#   41|->         poll_fds = realloc(poll_fds, poll_nfds * sizeof(poll_fds[0]));
#   42|           assert(poll_fds);
#   43|           poll_nfds_allocd = poll_nfds;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def380]
xen-4.19.0-build/xen-4.19.0/tools/libs/stat/xenstat_linux.c: scope_hint: In function ‘getBridge’
xen-4.19.0-build/xen-4.19.0/tools/libs/stat/xenstat_linux.c:78:22: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘opendir("/sys/class/net")’ where non-null expected
xen-4.19.0-build/xen-4.19.0/tools/libs/stat/xenstat_linux.c:25: included_from: Included from here.
/usr/include/dirent.h:164:23: note: argument 1 of ‘readdir’ must be non-null
#   76|   
#   77|   	d = opendir("/sys/class/net");
#   78|-> 	while ((de = readdir(d)) != NULL) {
#   79|   		if ((strlen(de->d_name) > 0) && (de->d_name[0] != '.')
#   80|   			&& (strstr(de->d_name, excludeName) == NULL)) {

Error: CPPCHECK_WARNING (CWE-401): [#def381]
xen-4.19.0-build/xen-4.19.0/tools/libs/stat/xenstat_linux.c:169: error[memleakOnRealloc]: Common realloc mistake: 'tmp' nulled but not freed upon failure
#  167|   				/* Col variable contains current id of non-empty match */
#  168|   				col++;
#  169|-> 				tmp = (char *)realloc(tmp, (matches[i].rm_eo - 
#  170|   							matches[i].rm_so + 1) * sizeof(char));
#  171|   				for (x = matches[i].rm_so; x < matches[i].rm_eo; x++)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def382]
xen-4.19.0-build/xen-4.19.0/tools/libs/stat/xenstat_linux.c: scope_hint: In function ‘parseNetDevLine’
xen-4.19.0-build/xen-4.19.0/tools/libs/stat/xenstat_linux.c:231:54: warning[-Wanalyzer-null-argument]: use of NULL ‘tmp’ where non-null expected
xen-4.19.0-build/xen-4.19.0/tools/libs/stat/xenstat_linux.c: scope_hint: In function ‘parseNetDevLine’
xen-4.19.0-build/xen-4.19.0/tools/libs/stat/xenstat_linux.c:30: included_from: Included from here.
/usr/include/string.h:323:14: note: argument 1 of ‘strpbrk’ must be non-null
#  229|   				}
#  230|   				else if (iface != NULL) {
#  231|-> 					char *tmp2 = strpbrk(tmp, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789");
#  232|   					if (tmp2 != NULL)
#  233|   						strcpy(iface, tmp2);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def383]
xen-4.19.0-build/xen-4.19.0/tools/libs/stat/xenstat_qmp.c: scope_hint: In function ‘qmp_parse_stats’
xen-4.19.0-build/xen-4.19.0/tools/libs/stat/xenstat_qmp.c:220:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xen-4.19.0-build/xen-4.19.0/tools/libs/stat/xenstat_qmp.c:38: included_from: Included from here.
#  218|   
#  219|   	/* Array of devices */
#  220|-> 	for (i=0; i<YAJL_GET_ARRAY(ret_obj)->len; i++) {
#  221|   		memset(&vbd, 0, sizeof(xenstat_vbd));
#  222|   		qmp_devname = NULL;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def384]
xen-4.19.0-build/xen-4.19.0/tools/libs/store/xs.c: scope_hint: In function ‘get_handle’
xen-4.19.0-build/xen-4.19.0/tools/libs/store/xs.c:300:13: warning[-Wanalyzer-null-argument]: use of NULL ‘connect_to’ where non-null expected
xen-4.19.0-build/xen-4.19.0/tools/libs/store/xs.c: scope_hint: In function ‘get_handle’
xen-4.19.0-build/xen-4.19.0/tools/libs/store/xs.c:37: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/include/xen-tools/xenstore-common.h: scope_hint: In function ‘get_handle’
xen-4.19.0-build/xen-4.19.0/tools/include/xen-tools/xenstore-common.h: scope_hint: In function ‘get_handle’
/usr/include/bits/types/stack_t.h:23: included_from: Included from here.
/usr/include/signal.h:313: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/libs/store/xs.c:33: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/libs/store/xs.c: scope_hint: In function ‘get_handle’
xen-4.19.0-build/xen-4.19.0/tools/libs/store/xs.c:22: included_from: Included from here.
/usr/include/sys/stat.h:205:12: note: argument 1 of ‘stat’ must be non-null
#  298|   	xentoolcore__register_active_handle(&h->tc_ah);
#  299|   
#  300|-> 	if (stat(connect_to, &buf) != 0)
#  301|   		goto err;
#  302|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def385]
xen-4.19.0-build/xen-4.19.0/tools/libs/store/xs.c:306:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(connect_to, 524290)’
xen-4.19.0-build/xen-4.19.0/tools/libs/store/xs.c: scope_hint: In function ‘get_handle’
xen-4.19.0-build/xen-4.19.0/tools/libs/store/xs.c: scope_hint: In function ‘get_handle’
#  304|   		h->fd = get_socket(connect_to);
#  305|   	else
#  306|-> 		h->fd = get_dev(connect_to);
#  307|   
#  308|   	if (h->fd == -1)

Error: CPPCHECK_WARNING (CWE-401): [#def386]
xen-4.19.0-build/xen-4.19.0/tools/libs/store/xs.c:731: error[memleakOnRealloc]: Common realloc mistake: 'strings' nulled but not freed upon failure
#  729|   
#  730|   		result_len -= strlen(result) + 1;
#  731|-> 		strings = realloc(strings, off + result_len);
#  732|   		memcpy(strings + off, result + strlen(result) + 1, result_len);
#  733|   		free(result);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def387]
xen-4.19.0-build/xen-4.19.0/tools/libs/toolcore/handlereg.c: scope_hint: In function ‘xentoolcore__restrict_by_dup2_null’
xen-4.19.0-build/xen-4.19.0/tools/libs/toolcore/handlereg.c:87:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘r’
#   85|       if (r < 0) goto err;
#   86|   
#   87|->     close(nullfd);
#   88|       return 0;
#   89|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def388]
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c: scope_hint: In function ‘xlu__cfg_yy_create_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1721:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1707:21: note: in expansion of macro ‘yy_create_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1711:31: note: in expansion of macro ‘yyalloc’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c: scope_hint: In function ‘xlu__cfg_yy_create_buffer’
# 1719|   	 */
# 1720|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 1721|-> 	if ( ! b->yy_ch_buf )
# 1722|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 1723|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def389]
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c: scope_hint: In function ‘xlu__cfg_yy_create_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1721:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xlu__cfg_yyalloc(64, yyscanner)’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1707:21: note: in expansion of macro ‘yy_create_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1711:31: note: in expansion of macro ‘yyalloc’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:2344:7: note: in expansion of macro ‘yyalloc’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1711:31: note: in expansion of macro ‘yyalloc’
# 1719|   	 */
# 1720|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 1721|-> 	if ( ! b->yy_ch_buf )
# 1722|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 1723|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def390]
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c: scope_hint: In function ‘xlu__cfg_yy_init_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1763:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1454:40: note: in expansion of macro ‘YY_MORE_ADJ’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1457:25: note: in expansion of macro ‘yyrestart’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1457:25: note: in expansion of macro ‘yyrestart’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1642:10: note: in expansion of macro ‘yyrestart’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1652:9: note: in expansion of macro ‘yy_init_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1652:9: note: in expansion of macro ‘yy_init_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1652:9: note: in expansion of macro ‘yy_init_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1755:17: note: in expansion of macro ‘yy_init_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1761:9: note: in expansion of macro ‘yy_flush_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1784:10: note: in expansion of macro ‘yy_flush_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1761:9: note: in expansion of macro ‘yy_flush_buffer’
# 1761|   	yy_flush_buffer( b , yyscanner);
# 1762|   
# 1763|-> 	b->yy_input_file = file;
# 1764|   	b->yy_fill_buffer = 1;
# 1765|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def391]
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c: scope_hint: In function ‘xlu__cfg_yy_scan_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1981:32: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1965:17: note: in expansion of macro ‘yy_scan_bytes’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1974:24: note: in expansion of macro ‘yyalloc’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c: scope_hint: In function ‘xlu__cfg_yy_scan_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1983:13: note: in expansion of macro ‘yy_scan_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1915:17: note: in expansion of macro ‘yy_scan_buffer’
# 1979|   		buf[i] = yybytes[i];
# 1980|   
# 1981|-> 	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1982|   
# 1983|   	b = yy_scan_buffer( buf, n , yyscanner);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def392]
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c: scope_hint: In function ‘xlu__cfg_yy_scan_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1981:32: warning[-Wanalyzer-malloc-leak]: leak of ‘xlu__cfg_yyalloc(n,  yyscanner)’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1965:17: note: in expansion of macro ‘yy_scan_bytes’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1974:24: note: in expansion of macro ‘yyalloc’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:2344:7: note: in expansion of macro ‘yyalloc’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1974:24: note: in expansion of macro ‘yyalloc’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1983:13: note: in expansion of macro ‘yy_scan_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_l.c:1915:17: note: in expansion of macro ‘yy_scan_buffer’
# 1979|   		buf[i] = yybytes[i];
# 1980|   
# 1981|-> 	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1982|   
# 1983|   	b = yy_scan_buffer( buf, n , yyscanner);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def393]
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_y.c: scope_hint: In function ‘xlu__cfg_yyparse’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_y.c:383:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_y.c:368:9: note: in expansion of macro ‘YYCOPY’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_y.c:1275:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_y.c:383:25: note: in definition of macro ‘YYCOPY’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_y.c:1275:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_y.c:368:9: note: in expansion of macro ‘YYCOPY’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_y.c:1275:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  381|   #  if defined __GNUC__ && 1 < __GNUC__
#  382|   #   define YYCOPY(Dst, Src, Count) \
#  383|->       __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
#  384|   #  else
#  385|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-457): [#def394]
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_cfg_y.c:1394:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>.string’
# 1392|        unconditionally makes the parser a bit smaller, and it avoids a
# 1393|        GCC warning that YYVAL may be used uninitialized.  */
# 1394|->   yyval = yyvsp[1-yylen];
# 1395|   
# 1396|     /* Default location. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def395]
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c: scope_hint: In function ‘xlu__disk_yy_create_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2389:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2375:21: note: in expansion of macro ‘yy_create_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2379:24: note: in expansion of macro ‘yyalloc’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c: scope_hint: In function ‘xlu__disk_yy_create_buffer’
# 2387|   	 * we need to put in 2 end-of-buffer characters.
# 2388|   	 */
# 2389|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 2390|   	if ( ! b->yy_ch_buf )
# 2391|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def396]
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c: scope_hint: In function ‘xlu__disk_yy_create_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2389:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xlu__disk_yyalloc(64, yyscanner)’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2375:21: note: in expansion of macro ‘yy_create_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2379:24: note: in expansion of macro ‘yyalloc’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2996:7: note: in expansion of macro ‘yyalloc’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2379:24: note: in expansion of macro ‘yyalloc’
# 2387|   	 * we need to put in 2 end-of-buffer characters.
# 2388|   	 */
# 2389|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 2390|   	if ( ! b->yy_ch_buf )
# 2391|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def397]
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c: scope_hint: In function ‘xlu__disk_yy_init_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2431:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2134:40: note: in expansion of macro ‘YY_MORE_ADJ’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2137:25: note: in expansion of macro ‘yyrestart’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2137:25: note: in expansion of macro ‘yyrestart’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2310:10: note: in expansion of macro ‘yyrestart’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2320:2: note: in expansion of macro ‘yy_init_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2320:2: note: in expansion of macro ‘yy_init_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2320:2: note: in expansion of macro ‘yy_init_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2423:17: note: in expansion of macro ‘yy_init_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2429:2: note: in expansion of macro ‘yy_flush_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2452:10: note: in expansion of macro ‘yy_flush_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2429:2: note: in expansion of macro ‘yy_flush_buffer’
# 2429|   
# 2430|   	yy_flush_buffer( b , yyscanner);
# 2431|-> 
# 2432|   	b->yy_input_file = file;
# 2433|   	b->yy_fill_buffer = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def398]
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c: scope_hint: In function ‘xlu__disk_yy_scan_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2649:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2633:17: note: in expansion of macro ‘yy_scan_bytes’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2642:24: note: in expansion of macro ‘yyalloc’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c: scope_hint: In function ‘xlu__disk_yy_scan_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2651:6: note: in expansion of macro ‘yy_scan_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2583:17: note: in expansion of macro ‘yy_scan_buffer’
# 2647|   	for ( i = 0; i < _yybytes_len; ++i )
# 2648|   		buf[i] = yybytes[i];
# 2649|-> 
# 2650|   	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 2651|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def399]
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c: scope_hint: In function ‘xlu__disk_yy_scan_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2649:25: warning[-Wanalyzer-malloc-leak]: leak of ‘xlu__disk_yyalloc(n,  yyscanner)’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2633:17: note: in expansion of macro ‘yy_scan_bytes’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2642:24: note: in expansion of macro ‘yyalloc’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2996:7: note: in expansion of macro ‘yyalloc’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2642:24: note: in expansion of macro ‘yyalloc’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2651:6: note: in expansion of macro ‘yy_scan_buffer’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_disk_l.c:2583:17: note: in expansion of macro ‘yy_scan_buffer’
# 2647|   	for ( i = 0; i < _yybytes_len; ++i )
# 2648|   		buf[i] = yybytes[i];
# 2649|-> 
# 2650|   	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 2651|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def400]
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_pci.c: scope_hint: In function ‘xlu_pci_parse_spec_string’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_pci.c:211:1: warning[-Wanalyzer-malloc-leak]: leak of ‘key’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_pci.c:196:13: note: in expansion of macro ‘XLU__PCI_ERR’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_pci.c:196:13: note: in expansion of macro ‘XLU__PCI_ERR’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_pci.c:196:13: note: in expansion of macro ‘XLU__PCI_ERR’
#  209|   
#  210|       return 0;
#  211|-> }
#  212|   
#  213|   int xlu_rdm_parse(XLU_Config *cfg, libxl_rdm_reserve *rdm, const char *str)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_pci.c:211:1: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_pci.c:196:13: note: in expansion of macro ‘XLU__PCI_ERR’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_pci.c:196:13: note: in expansion of macro ‘XLU__PCI_ERR’
xen-4.19.0-build/xen-4.19.0/tools/libs/util/libxlu_pci.c:196:13: note: in expansion of macro ‘XLU__PCI_ERR’
#  209|   
#  210|       return 0;
#  211|-> }
#  212|   
#  213|   int xlu_rdm_parse(XLU_Config *cfg, libxl_rdm_reserve *rdm, const char *str)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def402]
xen-4.19.0-build/xen-4.19.0/tools/misc/xen-access.c: scope_hint: In function ‘xenaccess_init’
xen-4.19.0-build/xen-4.19.0/tools/misc/xen-access.c:209:26: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xenaccess’
xen-4.19.0-build/xen-4.19.0/tools/misc/xen-access.c:201:5: note: in expansion of macro ‘DPRINTF’
#  207|   
#  208|       /* Open connection to xen */
#  209|->     xenaccess->xc_handle = xch;
#  210|   
#  211|       /* Set domain id */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def403]
xen-4.19.0-build/xen-4.19.0/tools/misc/xencov.c: scope_hint: In function ‘cov_read’
xen-4.19.0-build/xen-4.19.0/tools/misc/xencov.c:83:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
xen-4.19.0-build/xen-4.19.0/tools/misc/xencov.c:25: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/include/xenctrl.h:322:17: note: in expansion of macro ‘HYPERCALL_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/include/xenctrl.h:330:5: note: in expansion of macro ‘set_xen_guest_handle_impl’
xen-4.19.0-build/xen-4.19.0/tools/misc/xencov.c:39:5: note: in expansion of macro ‘set_xen_guest_handle’
xen-4.19.0-build/xen-4.19.0/tools/misc/xencov.c:59:9: note: in expansion of macro ‘xc_hypercall_buffer_alloc’
xen-4.19.0-build/xen-4.19.0/tools/include/xenctrl.h:343:88: note: in expansion of macro ‘HYPERCALL_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/misc/xencov.c:59:9: note: in expansion of macro ‘xc_hypercall_buffer_alloc’
xen-4.19.0-build/xen-4.19.0/tools/include/xenctrl.h:345:79: note: in expansion of macro ‘HYPERCALL_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/misc/xencov.c:82:5: note: in expansion of macro ‘xc_hypercall_buffer_free’
#   81|   
#   82|       xc_hypercall_buffer_free(xch, p);
#   83|-> }
#   84|   
#   85|   static void cov_reset(void)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
xen-4.19.0-build/xen-4.19.0/tools/misc/xencov.c:83:1: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
xen-4.19.0-build/xen-4.19.0/tools/include/xenctrl.h:322:17: note: in expansion of macro ‘HYPERCALL_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/include/xenctrl.h:330:5: note: in expansion of macro ‘set_xen_guest_handle_impl’
xen-4.19.0-build/xen-4.19.0/tools/misc/xencov.c:39:5: note: in expansion of macro ‘set_xen_guest_handle’
xen-4.19.0-build/xen-4.19.0/tools/misc/xencov.c:59:9: note: in expansion of macro ‘xc_hypercall_buffer_alloc’
xen-4.19.0-build/xen-4.19.0/tools/include/xenctrl.h:343:88: note: in expansion of macro ‘HYPERCALL_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/misc/xencov.c:59:9: note: in expansion of macro ‘xc_hypercall_buffer_alloc’
xen-4.19.0-build/xen-4.19.0/tools/include/xenctrl.h:345:79: note: in expansion of macro ‘HYPERCALL_BUFFER’
xen-4.19.0-build/xen-4.19.0/tools/misc/xencov.c:82:5: note: in expansion of macro ‘xc_hypercall_buffer_free’
#   81|   
#   82|       xc_hypercall_buffer_free(xch, p);
#   83|-> }
#   84|   
#   85|   static void cov_reset(void)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def405]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c: scope_hint: In function ‘print_cxstat’
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:150:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cxstatinfo.pc’
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:26: included_from: Included from here.
#  148|       for ( i = 0; i < cxstat->nr; i++ )
#  149|       {
#  150|->         printf("C%-20d: transition [%20"PRIu64"]\n",
#  151|                  i, cxstat->triggers[i]);
#  152|           printf("                       residency  [%20"PRIu64" ms]\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def406]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:156:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cxstatinfo.pc’
#  154|       }
#  155|       for ( i = 0; i < MAX_PKG_RESIDENCIES && i < cxstat->nr_pc; ++i )
#  156|->         if ( cxstat->pc[i] )
#  157|              printf("pc%d                  : [%20"PRIu64" ms]\n", i + 1,
#  158|                     cxstat->pc[i] / 1000000UL);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def407]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:160:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cxstatinfo.pc’
#  158|                     cxstat->pc[i] / 1000000UL);
#  159|       for ( i = 0; i < MAX_CORE_RESIDENCIES && i < cxstat->nr_cc; ++i )
#  160|->         if ( cxstat->cc[i] )
#  161|              printf("cc%d                  : [%20"PRIu64" ms]\n", i + 1,
#  162|                     cxstat->cc[i] / 1000000UL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:187:22: warning[-Wanalyzer-malloc-leak]: leak of ‘*cxstat.cc’
#  185|       cxstat->cc = calloc(MAX_CORE_RESIDENCIES, sizeof(*cxstat->cc));
#  186|       if ( !cxstat->triggers || !cxstat->residencies ||
#  187|->          !cxstat->pc || !cxstat->cc )
#  188|       {
#  189|           free(cxstat->cc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def409]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:187:22: warning[-Wanalyzer-malloc-leak]: leak of ‘*cxstat.pc’
#  185|       cxstat->cc = calloc(MAX_CORE_RESIDENCIES, sizeof(*cxstat->cc));
#  186|       if ( !cxstat->triggers || !cxstat->residencies ||
#  187|->          !cxstat->pc || !cxstat->cc )
#  188|       {
#  189|           free(cxstat->cc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def410]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c: scope_hint: In function ‘get_cxstat_by_cpuid’
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:187:22: warning[-Wanalyzer-malloc-leak]: leak of ‘*cxstat.residencies’
#  185|       cxstat->cc = calloc(MAX_CORE_RESIDENCIES, sizeof(*cxstat->cc));
#  186|       if ( !cxstat->triggers || !cxstat->residencies ||
#  187|->          !cxstat->pc || !cxstat->cc )
#  188|       {
#  189|           free(cxstat->cc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:187:22: warning[-Wanalyzer-malloc-leak]: leak of ‘*cxstat.triggers’
#  185|       cxstat->cc = calloc(MAX_CORE_RESIDENCIES, sizeof(*cxstat->cc));
#  186|       if ( !cxstat->triggers || !cxstat->residencies ||
#  187|->          !cxstat->pc || !cxstat->cc )
#  188|       {
#  189|           free(cxstat->cc);

Error: GCC_ANALYZER_WARNING (CWE-479): [#def412]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:189:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  187|            !cxstat->pc || !cxstat->cc )
#  188|       {
#  189|->         free(cxstat->cc);
#  190|           free(cxstat->pc);
#  191|           free(cxstat->residencies);

Error: GCC_ANALYZER_WARNING (CWE-479): [#def413]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:190:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  188|       {
#  189|           free(cxstat->cc);
#  190|->         free(cxstat->pc);
#  191|           free(cxstat->residencies);
#  192|           free(cxstat->triggers);

Error: GCC_ANALYZER_WARNING (CWE-479): [#def414]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:191:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  189|           free(cxstat->cc);
#  190|           free(cxstat->pc);
#  191|->         free(cxstat->residencies);
#  192|           free(cxstat->triggers);
#  193|           return -ENOMEM;

Error: GCC_ANALYZER_WARNING (CWE-479): [#def415]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:192:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  190|           free(cxstat->pc);
#  191|           free(cxstat->residencies);
#  192|->         free(cxstat->triggers);
#  193|           return -ENOMEM;
#  194|       }

Error: GCC_ANALYZER_WARNING (CWE-479): [#def416]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:204:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  202|       {
#  203|           ret = -errno;
#  204|->         free(cxstat->triggers);
#  205|           free(cxstat->residencies);
#  206|           free(cxstat->pc);

Error: GCC_ANALYZER_WARNING (CWE-479): [#def417]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:205:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  203|           ret = -errno;
#  204|           free(cxstat->triggers);
#  205|->         free(cxstat->residencies);
#  206|           free(cxstat->pc);
#  207|           free(cxstat->cc);

Error: GCC_ANALYZER_WARNING (CWE-479): [#def418]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:206:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  204|           free(cxstat->triggers);
#  205|           free(cxstat->residencies);
#  206|->         free(cxstat->pc);
#  207|           free(cxstat->cc);
#  208|           cxstat->triggers = NULL;

Error: GCC_ANALYZER_WARNING (CWE-479): [#def419]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:207:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  205|           free(cxstat->residencies);
#  206|           free(cxstat->pc);
#  207|->         free(cxstat->cc);
#  208|           cxstat->triggers = NULL;
#  209|           cxstat->residencies = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def420]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c: scope_hint: In function ‘print_pxstat’
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:300:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pxstatinfo.pt’
#  298|           else
#  299|               printf("P%-10d", i);
#  300|->         printf("[%4"PRIu64" MHz]", pxstat->pt[i].freq);
#  301|           printf(": transition [%20"PRIu64"]\n",
#  302|                  pxstat->pt[i].count);

Error: GCC_ANALYZER_WARNING (CWE-479): [#def421]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c: scope_hint: In function ‘get_pxstat_by_cpuid’
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:322:24: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘malloc’ from within signal handler
#  320|           return -EINVAL;
#  321|   
#  322|->     pxstat->trans_pt = malloc(max_px_num * max_px_num *
#  323|                                 sizeof(uint64_t));
#  324|       if ( !pxstat->trans_pt )

Error: GCC_ANALYZER_WARNING (CWE-479): [#def422]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:326:18: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘malloc’ from within signal handler
#  324|       if ( !pxstat->trans_pt )
#  325|           return -ENOMEM;
#  326|->     pxstat->pt = malloc(max_px_num * sizeof(struct xc_px_val));
#  327|       if ( !pxstat->pt )
#  328|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def423]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:327:8: warning[-Wanalyzer-malloc-leak]: leak of ‘*pxstat.pt’
#  325|           return -ENOMEM;
#  326|       pxstat->pt = malloc(max_px_num * sizeof(struct xc_px_val));
#  327|->     if ( !pxstat->pt )
#  328|       {
#  329|           free(pxstat->trans_pt);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def424]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:327:8: warning[-Wanalyzer-malloc-leak]: leak of ‘*pxstat.trans_pt’
#  325|           return -ENOMEM;
#  326|       pxstat->pt = malloc(max_px_num * sizeof(struct xc_px_val));
#  327|->     if ( !pxstat->pt )
#  328|       {
#  329|           free(pxstat->trans_pt);

Error: GCC_ANALYZER_WARNING (CWE-479): [#def425]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:329:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  327|       if ( !pxstat->pt )
#  328|       {
#  329|->         free(pxstat->trans_pt);
#  330|           return -ENOMEM;
#  331|       }

Error: GCC_ANALYZER_WARNING (CWE-479): [#def426]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:337:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  335|       {
#  336|           ret = -errno;
#  337|->         free(pxstat->trans_pt);
#  338|           free(pxstat->pt);
#  339|           pxstat->trans_pt = NULL;

Error: GCC_ANALYZER_WARNING (CWE-479): [#def427]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:338:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  336|           ret = -errno;
#  337|           free(pxstat->trans_pt);
#  338|->         free(pxstat->pt);
#  339|           pxstat->trans_pt = NULL;
#  340|           pxstat->pt = NULL;

Error: GCC_ANALYZER_WARNING (CWE-479): [#def428]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c: scope_hint: In function ‘signal_int_handler’
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:455:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘fprintf’ from within signal handler
#  453|       if ( xc_cputopoinfo(xc_handle, &max_cpus, NULL) != 0 )
#  454|       {
#  455|->         fprintf(stderr, "failed to discover number of CPUs: %s\n",
#  456|                   strerror(errno));
#  457|           goto out;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def429]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:481:70: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  479|                   for ( j = 0; j < cxstat_end[i].nr; j++ )
#  480|                   {
#  481|->                     int64_t diff = (int64_t)cxstat_end[i].residencies[j] -
#  482|                           (int64_t)cxstat_start[i].residencies[j];
#  483|                       if ( diff >=0 )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def430]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:495:53: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  493|               if ( !get_pxstat_by_cpuid(xc_handle, i , &pxstat_end[i]) )
#  494|                   for ( j = 0; j < pxstat_end[i].total; j++ )
#  495|->                     sum_px[i] += pxstat_end[i].pt[j].residency -
#  496|                                    pxstat_start[i].pt[j].residency;
#  497|       }

Error: GCC_ANALYZER_WARNING (CWE-479): [#def431]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:502:5: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘printf’ from within signal handler
#  500|           get_avgfreq_by_cpuid(xc_handle, i, &avgfreq[i]);
#  501|   
#  502|->     printf("Elapsed time (ms): %"PRIu64"\n", (usec_end - usec_start) / 1000UL);
#  503|       for ( i = 0; i < max_cpu_nr; i++ )
#  504|       {

Error: GCC_ANALYZER_WARNING (CWE-479): [#def432]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:508:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘printf’ from within signal handler
#  506|           double avg_res;
#  507|   
#  508|->         printf("\nCPU%d:\tResidency(ms)\t\tAvg Res(ms)\n",i);
#  509|           if ( cx_cap && sum_cx[i] > 0 )
#  510|           {

Error: GCC_ANALYZER_WARNING (CWE-479): [#def433]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:637:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  635|       for ( i = 0; i < 2 * max_cpu_nr; i++ )
#  636|       {
#  637|->         free(cxstat[i].triggers);
#  638|           free(cxstat[i].residencies);
#  639|           free(cxstat[i].pc);

Error: GCC_ANALYZER_WARNING (CWE-479): [#def434]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:638:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  636|       {
#  637|           free(cxstat[i].triggers);
#  638|->         free(cxstat[i].residencies);
#  639|           free(cxstat[i].pc);
#  640|           free(cxstat[i].cc);

Error: GCC_ANALYZER_WARNING (CWE-479): [#def435]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:639:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  637|           free(cxstat[i].triggers);
#  638|           free(cxstat[i].residencies);
#  639|->         free(cxstat[i].pc);
#  640|           free(cxstat[i].cc);
#  641|           free(pxstat[i].trans_pt);

Error: GCC_ANALYZER_WARNING (CWE-479): [#def436]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:640:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  638|           free(cxstat[i].residencies);
#  639|           free(cxstat[i].pc);
#  640|->         free(cxstat[i].cc);
#  641|           free(pxstat[i].trans_pt);
#  642|           free(pxstat[i].pt);

Error: GCC_ANALYZER_WARNING (CWE-479): [#def437]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:641:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  639|           free(cxstat[i].pc);
#  640|           free(cxstat[i].cc);
#  641|->         free(pxstat[i].trans_pt);
#  642|           free(pxstat[i].pt);
#  643|       }

Error: GCC_ANALYZER_WARNING (CWE-479): [#def438]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:642:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  640|           free(cxstat[i].cc);
#  641|           free(pxstat[i].trans_pt);
#  642|->         free(pxstat[i].pt);
#  643|       }
#  644|       free(cxstat);

Error: GCC_ANALYZER_WARNING (CWE-479): [#def439]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:644:5: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  642|           free(pxstat[i].pt);
#  643|       }
#  644|->     free(cxstat);
#  645|       free(pxstat);
#  646|       free(sum);

Error: GCC_ANALYZER_WARNING (CWE-479): [#def440]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:645:5: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  643|       }
#  644|       free(cxstat);
#  645|->     free(pxstat);
#  646|       free(sum);
#  647|       free(avgfreq);

Error: GCC_ANALYZER_WARNING (CWE-479): [#def441]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:646:5: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  644|       free(cxstat);
#  645|       free(pxstat);
#  646|->     free(sum);
#  647|       free(avgfreq);
#  648|   out:

Error: GCC_ANALYZER_WARNING (CWE-479): [#def442]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:647:5: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  645|       free(pxstat);
#  646|       free(sum);
#  647|->     free(avgfreq);
#  648|   out:
#  649|       free(cputopo);

Error: GCC_ANALYZER_WARNING (CWE-479): [#def443]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:649:5: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘free’ from within signal handler
#  647|       free(avgfreq);
#  648|   out:
#  649|->     free(cputopo);
#  650|       xc_interface_close(xc_handle);
#  651|       exit(0);

Error: GCC_ANALYZER_WARNING (CWE-479): [#def444]
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:651:5: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
xen-4.19.0-build/xen-4.19.0/tools/misc/xenpm.c:651:5: note: ‘_exit’ is a possible signal-safe alternative for ‘exit’
#  649|       free(cputopo);
#  650|       xc_interface_close(xc_handle);
#  651|->     exit(0);
#  652|   }
#  653|   

Error: CPPCHECK_WARNING (CWE-768): [#def445]
xen-4.19.0-build/xen-4.19.0/tools/tests/cpu-policy/test-cpu-policy.c:319: error[unknownEvaluationOrder]: Expression '.leaf={.leaf=(0xdu+1)}' depends on order of evaluation of side effects
#  317|           {
#  318|               .name = "OoB basic leaf",
#  319|->             .leaf = { .leaf = CPUID_GUEST_NR_BASIC },
#  320|           },
#  321|           {

Error: CPPCHECK_WARNING (CWE-768): [#def446]
xen-4.19.0-build/xen-4.19.0/tools/tests/cpu-policy/test-cpu-policy.c:339: error[unknownEvaluationOrder]: Expression '.leaf={.leaf=0x80000000|((0x8u+1)>(0x21u+1)?(0x8u+1):(0x21u+1))}' depends on order of evaluation of side effects
#  337|           {
#  338|               .name = "OoB extd leaf",
#  339|->             .leaf = { .leaf = 0x80000000 | CPUID_GUEST_NR_EXTD },
#  340|           },
#  341|       };

Error: GCC_ANALYZER_WARNING: [#def447]
xen-4.19.0-build/xen-4.19.0/tools/vchan/vchan-socket-proxy.c: scope_hint: In function ‘main’
xen-4.19.0-build/xen-4.19.0/tools/vchan/vchan-socket-proxy.c:497:52: warning[-Wanalyzer-fd-type-mismatch]: ‘accept’ on non-stream-socket file descriptor ‘socket_fd’
#  495|               /* wait for local socket connection */
#  496|               if (strcmp(socket_path, "-") != 0)
#  497|->                 state.input_fd = state.output_fd = accept(socket_fd,
#  498|                                                             NULL, NULL);
#  499|               if (state.input_fd == -1) {

Error: GCC_ANALYZER_WARNING: [#def448]
xen-4.19.0-build/xen-4.19.0/tools/vchan/vchan-socket-proxy.c:497:52: warning[-Wanalyzer-fd-use-without-check]: ‘accept’ on possibly invalid file descriptor ‘socket_fd’
#  495|               /* wait for local socket connection */
#  496|               if (strcmp(socket_path, "-") != 0)
#  497|->                 state.input_fd = state.output_fd = accept(socket_fd,
#  498|                                                             NULL, NULL);
#  499|               if (state.input_fd == -1) {

Error: CPPCHECK_WARNING (CWE-457): [#def449]
xen-4.19.0-build/xen-4.19.0/tools/xenmon/xenbaked.c:413: warning[uninitvar]: Uninitialized variable: pfn_list
#  411|           tbufs.meta[i] = xc_map_foreign_pages(xc_handle, DOMID_XEN,
#  412|                                                PROT_READ | PROT_WRITE,
#  413|->                                              pfn_list,
#  414|                                                tbufs.t_info->tbuf_size);
#  415|           if ( tbufs.meta[i] == NULL )

Error: GCC_ANALYZER_WARNING (CWE-688): [#def450]
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c: scope_hint: In function ‘parse_symbol_file’
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c:312:12: warning[-Wanalyzer-null-argument]: use of NULL ‘fopen(fn, "rb")’ where non-null expected
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c:22: included_from: Included from here.
/usr/include/stdio.h:852:12: note: argument 1 of ‘feof’ must be non-null
#  310|           error(ERR_SYSTEM, NULL);
#  311|       }
#  312|->     while(!feof(symbol_file)) {
#  313|           /* Allocate a new struct if we need it */
#  314|           if(!*p) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def451]
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c:314:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fn, "rb")’
#  312|       while(!feof(symbol_file)) {
#  313|           /* Allocate a new struct if we need it */
#  314|->         if(!*p) {
#  315|               *p = malloc(sizeof(**p));
#  316|               if(!*p) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def452]
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c:314:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fn, "rb")’
#  312|       while(!feof(symbol_file)) {
#  313|           /* Allocate a new struct if we need it */
#  314|->         if(!*p) {
#  315|               *p = malloc(sizeof(**p));
#  316|               if(!*p) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def453]
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c:320:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘G.symbols’
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c: scope_hint: In function ‘parse_symbol_file’
#  318|                   error(ERR_SYSTEM, NULL);
#  319|               }
#  320|->             (*p)->count=0;
#  321|               (*p)->next=NULL;
#  322|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def454]
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c: scope_hint: In function ‘interval_list_add’
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c:2474:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c: scope_hint: In function ‘interval_list_add’
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c: scope_hint: In function ‘interval_list_add’
# 2472|       bzero(p, sizeof(*p));
# 2473|   
# 2474|->     p->elem = e;
# 2475|       strncpy(p->desc, desc, INTERVAL_DESC_MAX);
# 2476|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def455]
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c: scope_hint: In function ‘update_eip’
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c:2828:9: warning[-Wanalyzer-null-argument]: use of NULL ‘p’ where non-null expected
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c: scope_hint: In function ‘update_eip’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
# 2826|           }
# 2827|   
# 2828|->         bzero(p, sizeof(*p));
# 2829|   
# 2830|           p->eip=eip;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def456]
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c: scope_hint: In function ‘__hvm_set_summary_handler’
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c:3004:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c:4333:9: note: in expansion of macro ‘hvm_set_summary_handler’
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c: scope_hint: In function ‘__hvm_set_summary_handler’
# 3002|               error(ERR_SYSTEM, NULL);
# 3003|           }
# 3004|->         p->handler=s;
# 3005|           p->data = d;
# 3006|           p->next=*q;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def457]
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c: scope_hint: In function ‘update_io_address’
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c:3793:9: warning[-Wanalyzer-null-argument]: use of NULL ‘p’ where non-null expected
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c: scope_hint: In function ‘update_io_address’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
# 3791|           }
# 3792|   
# 3793|->         bzero(p, sizeof(*p));
# 3794|   
# 3795|           p->pa=pa;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def458]
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c: scope_hint: In function ‘cr3_dump_list.part.0’
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c:4034:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘qsort_array’
# 4032|       /* Point the array into it */
# 4033|       for(i=0, p=head; p; p=p->next, i++)
# 4034|->         qsort_array[i]=p;
# 4035|   
# 4036|       /* Sort the array by time */

Error: GCC_ANALYZER_WARNING (CWE-688): [#def459]
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c:4037:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘qsort_array’ where non-null expected
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c:23: included_from: Included from here.
/usr/include/stdlib.h:970:13: note: argument 1 of ‘qsort’ must be non-null
# 4035|   
# 4036|       /* Sort the array by time */
# 4037|->     qsort(qsort_array, N, sizeof(struct eip_list_struct *),
# 4038|             cr3_compare_start);
# 4039|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def460]
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c: scope_hint: In function ‘vcpu_create’
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c:6704:5: warning[-Wanalyzer-null-argument]: use of NULL ‘v’ where non-null expected
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c:40: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c: scope_hint: In function ‘vcpu_create’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
# 6702|       }
# 6703|   
# 6704|->     bzero(v, sizeof(*v));
# 6705|   
# 6706|       v->vid = vid;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def461]
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c: scope_hint: In function ‘domain_init’
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c:6725:5: warning[-Wanalyzer-null-argument]: use of NULL ‘d’ where non-null expected
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xenalyze.c: scope_hint: In function ‘domain_init’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
# 6723|   void domain_init(struct domain_data *d, int did)
# 6724|   {
# 6725|->     bzero(d, sizeof(*d));
# 6726|   
# 6727|       d->did = did;

Error: CPPCHECK_WARNING (CWE-457): [#def462]
xen-4.19.0-build/xen-4.19.0/tools/xentrace/xentrace.c:520: warning[uninitvar]: Uninitialized variable: pfn_list
#  518|           tbufs.meta[i] = xc_map_foreign_pages(xc_handle, DOMID_XEN,
#  519|                                                PROT_READ | PROT_WRITE,
#  520|->                                              pfn_list,
#  521|                                                tbufs.t_info->tbuf_size);
#  522|           if ( tbufs.meta[i] == NULL )

Error: GCC_ANALYZER_WARNING (CWE-457): [#def463]
xen-4.19.0-build/xen-4.19.0/tools/xl/xl_parse.c: scope_hint: In function ‘parse_vdispl_config’
xen-4.19.0-build/xen-4.19.0/tools/xl/xl_parse.c:840:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘resolution’
xen-4.19.0-build/xen-4.19.0/tools/xl/xl_parse.c:31: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/xl/xl_parse.c:823:16: note: in expansion of macro ‘MATCH_OPTION’
xen-4.19.0-build/xen-4.19.0/tools/xl/xl_parse.c:825:16: note: in expansion of macro ‘MATCH_OPTION’
xen-4.19.0-build/xen-4.19.0/tools/xl/xl.h:18: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/xl/xl_parse.c:29: included_from: Included from here.
#  838|                                           &resolution, NULL);
#  839|   
#  840|->             rc= sscanf(resolution, "%ux%u", &vdispl->connectors[i].width,
#  841|                          &vdispl->connectors[i].height);
#  842|               free(resolution);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def464]
xen-4.19.0-build/xen-4.19.0/tools/xl/xl_parse.c: scope_hint: In function ‘parse_config_data’
xen-4.19.0-build/xen-4.19.0/tools/xl/xl_parse.c:1629:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(buf)’
xen-4.19.0-build/xen-4.19.0/tools/xl/xl_parse.c:51:5: note: in expansion of macro ‘ARRAY_EXTEND_INIT__CORE’
xen-4.19.0-build/xen-4.19.0/tools/xl/xl_parse.c:1624:21: note: in expansion of macro ‘ARRAY_EXTEND_INIT_NODEVID’
# 1627|   
# 1628|               dtdev->path = strdup(buf);
# 1629|->             if (dtdev->path == NULL) {
# 1630|                   fprintf(stderr, "unable to duplicate string for dtdevs\n");
# 1631|                   exit(-1);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def465]
xen-4.19.0-build/xen-4.19.0/tools/xl/xl_vcpu.c: scope_hint: In function ‘main_vcpupin’
xen-4.19.0-build/xen-4.19.0/tools/xl/xl_vcpu.c:253:30: warning[-Wanalyzer-null-argument]: use of NULL ‘soft_str’ where non-null expected
xen-4.19.0-build/xen-4.19.0/tools/include/libxl.h:843: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/tools/xl/xl_vcpu.c:18: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  251|        * to pass NULL to libxl_set_vcpuaffinity() if it is not specified.
#  252|        */
#  253|->     if (argc <= optind+3 || !strcmp(soft_str, "-"))
#  254|           soft = NULL;
#  255|       else if (parse_cpurange(soft_str, soft))

Error: CPPCHECK_WARNING (CWE-909): [#def466]
xen-4.19.0-build/xen-4.19.0/tools/xl/xl_vmcontrol.c:805: error[uninitStructMember]: Uninitialized struct member: hdr.mandatory_flags
#  803|           }
#  804|           config_source = "<saved>";
#  805|->         config_in_json = !!(hdr.mandatory_flags & XL_MANDATORY_FLAG_JSON);
#  806|       }
#  807|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def467]
xen-4.19.0-build/xen-4.19.0/tools/xs-clients/xenstore_control.c: scope_hint: In function ‘add_to_buf’
xen-4.19.0-build/xen-4.19.0/tools/xs-clients/xenstore_control.c:20:10: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
#   18|           return -1;
#   19|   
#   20|->     *buf = realloc(*buf, len + vallen);
#   21|       if (!*buf)
#   22|           return -1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def468]
xen-4.19.0-build/xen-4.19.0/tools/xs-clients/xenstore_control.c: scope_hint: In function ‘live_update_start’
xen-4.19.0-build/xen-4.19.0/tools/xs-clients/xenstore_control.c:36:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
#   34|   
#   35|       if (asprintf(&ret, "%u", to) < 0)
#   36|->         return 1;
#   37|       len = add_to_buf(&buf, "-s", len);
#   38|       len = add_to_buf(&buf, "-t", len);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def469]
xen-4.19.0-build/xen-4.19.0/tools/xs-clients/xenstore_control.c: scope_hint: In function ‘send_kernel_blob’
xen-4.19.0-build/xen-4.19.0/tools/xs-clients/xenstore_control.c:113:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
#  111|       if (!xch) {
#  112|           fprintf(stderr, "xc_interface_open() failed\n");
#  113|->         return 1;
#  114|       }
#  115|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def470]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/domain_page.c: scope_hint: In function ‘unmap_domain_page’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/domain_page.c:192:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘v’
#  190|       ASSERT(v && is_pv_vcpu(v));
#  191|   
#  192|->     dcache = &v->domain->arch.pv.mapcache;
#  193|       ASSERT(dcache->inuse);
#  194|   

Error: GCC_ANALYZER_WARNING (CWE-469): [#def471]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/extable.c: scope_hint: In function ‘sort_exception_table’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/extable.c:55:22: warning[-Wanalyzer-undefined-behavior-ptrdiff]: undefined behavior when subtracting pointers
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/extable.c:8: included_from: Included from here.
#   53|                                    const struct exception_table_entry *stop)
#   54|   {
#   55|->     sort(start, stop - start,
#   56|            sizeof(struct exception_table_entry), cmp_ex, swap_ex);
#   57|   }

Error: GCC_ANALYZER_WARNING (CWE-469): [#def472]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/extable.c: scope_hint: In function ‘search_one_extable’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/extable.c:76:21: warning[-Wanalyzer-undefined-behavior-ptrdiff]: undefined behavior when subtracting pointers
#   74|       while ( first <= last )
#   75|       {
#   76|->         mid = (last - first) / 2 + first;
#   77|           diff = ex_addr(mid) - value;
#   78|           if (diff == 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def473]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/hvm/rtc.c: scope_hint: In function ‘rtc_timer_update’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/hvm/rtc.c:151:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘v’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/hvm/vlapic.h:13: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/hvm/vcpu.h:12: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/domain.h:6: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/domain.h:15: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/sched.h:11: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/hvm/rtc.c:25: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/hvm/rtc.c:46:25: note: in expansion of macro ‘pt_global_vcpu_target’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/hvm/rtc.c:127:22: note: in expansion of macro ‘vrtc_vcpu’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/spinlock.h:5: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/sched.h:6: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/hvm/rtc.c:148:32: note: in expansion of macro ‘NOW’
#  149|   
#  150|                   s->period = period;
#  151|->                 if ( v->domain->arch.hvm.params[HVM_PARAM_VPT_ALIGN] )
#  152|                       delta = 0;
#  153|                   else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def474]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/hvm/vioapic.c: scope_hint: In function ‘vioapic_write_indirect’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/hvm/vioapic.c:340:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘vioapic’
#  338|                       redir_index, vioapic->ioregsel & 1 ? "hi" : "lo", val);
#  339|   
#  340|->         if ( redir_index >= vioapic->nr_pins )
#  341|           {
#  342|               gdprintk(XENLOG_WARNING, "vioapic_write_indirect "

Error: GCC_ANALYZER_WARNING (CWE-476): [#def475]
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iocap.h:12: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:20: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iocap.h: scope_hint: In function ‘iomem_permit_access’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/iocap.h:19:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iocap.h:18:18: note: in expansion of macro ‘cache_flush_permitted’
xen-4.19.0-build/xen-4.19.0/xen/include/xsm/xsm.h:827: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/hypercall.h:22: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:25: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:13: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h: scope_hint: In function ‘iomem_permit_access’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘iomem_permit_access’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iocap.h:49:30: note: in definition of macro ‘iomem_access_permitted’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/current.h:100:32: note: in expansion of macro ‘get_current’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:687:38: note: in expansion of macro ‘current’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘iomem_permit_access’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iocap.h:18:18: note: in expansion of macro ‘cache_flush_permitted’
#   17|   
#   18|   #define cache_flush_permitted(d)                        \
#   19|->     (!rangeset_is_empty((d)->iomem_caps) ||             \
#   20|        !rangeset_is_empty((d)->arch.ioport_caps))
#   21|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def476]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/shared.h:31:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘v’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/domain.h:15:34: note: in definition of macro ‘has_32bit_shinfo’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/shared.h:81:1: note: in expansion of macro ‘GET_SET_VCPU’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/traps.c: scope_hint: In function ‘show_registers’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/regs.h:9:37: note: in expansion of macro ‘guest_cpu_user_regs’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/traps.c:133:10: note: in expansion of macro ‘guest_mode’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/x86_emulate.h:17: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/mm.h:11: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/mm.h:233: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/domain.h:4: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/traps.c: scope_hint: In function ‘show_registers’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/traps.c:133:10: note: in expansion of macro ‘guest_mode’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/traps.c:142:14: note: in expansion of macro ‘guest_mode’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/shared.h:81:1: note: in expansion of macro ‘GET_SET_VCPU’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/domain.h:15:34: note: in definition of macro ‘has_32bit_shinfo’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/shared.h:81:1: note: in expansion of macro ‘GET_SET_VCPU’
#   29|       const vcpu_info_t *vi = v->vcpu_info_area.map;              \
#   30|                                                                   \
#   31|->     return !has_32bit_shinfo(v->domain) ?                       \
#   32|              vi->native.arch.field : vi->compat.arch.field;       \
#   33|   }                                                               \

Error: GCC_ANALYZER_WARNING (CWE-457): [#def477]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/irq.c: scope_hint: In function ‘create_irq’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/irq.c:276:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘desc’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/pci.h:13: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/hvm/io.h:11: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/hvm/domain.h:16: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/domain.h:7: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/domain.h:15: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/sched.h:11: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/event.h:12: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/irq.c:11: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/irq.h:180:31: note: in expansion of macro ‘pirq_info’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/irq.h:209:37: note: in expansion of macro ‘pirq_field’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/irq.c:2173:15: note: in expansion of macro ‘domain_pirq_to_irq’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/config.h:17: included_from: Included from here.
<command-line>: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/compiler.h:20:43: note: in definition of macro ‘likely’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/irq.c:2193:18: note: in expansion of macro ‘irq_access_permitted’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/asm_defns.h:12: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/msr.h:13: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/time.h:5: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/time.h:78: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/spinlock.h:5: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/sched.h:6: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/irq.c:2224:15: note: in expansion of macro ‘cpu_has_apic’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/irq.c: scope_hint: In function ‘create_irq’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/irq.c:2242:9: note: in expansion of macro ‘spin_lock_irqsave’
#  274|            return -ENOSPC;
#  275|   
#  276|->     ret = init_one_irq_desc(desc);
#  277|       if (!ret)
#  278|       {

Error: GCC_ANALYZER_WARNING (CWE-469): [#def478]
xen-4.19.0-build/xen-4.19.0/xen/include/xen/lib.h:12: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/alternative.h:7: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/bitops.h:8: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/bitops.h:7: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/system.h:4: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:11: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/mm.h:68: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/domain_page.h:12: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/machine_kexec.c:19: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/machine_kexec.c: scope_hint: In function ‘machine_kexec_load’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/machine_kexec.c:120:52: warning[-Wanalyzer-undefined-behavior-ptrdiff]: undefined behavior when subtracting pointers
xen-4.19.0-build/xen-4.19.0/xen/include/xen/string.h:76:48: note: in definition of macro ‘memcpy’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/machine_kexec.c:25: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/x86_64/page.h:26: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/page.h:16: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/desc.h:4: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/processor.h:13: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/msr.h:15: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/time.h:5: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/time.h:78: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/spinlock.h:5: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/mm.h:69: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/pdx.h:214:24: note: in definition of macro ‘pdx_to_pfn’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/page.h:251:29: note: in expansion of macro ‘pdx_to_mfn’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/domain_page.h:47:54: note: in expansion of macro ‘page_to_mfn’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/machine_kexec.c:119:17: note: in expansion of macro ‘__map_domain_page’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/string.h:76:48: note: in definition of macro ‘memcpy’
#  118|   
#  119|       code_page = __map_domain_page(image->control_code_page);
#  120|->     memcpy(code_page, kexec_reloc, kexec_reloc_end - (char *)kexec_reloc);
#  121|       unmap_domain_page(code_page);
#  122|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def479]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/p2m.c: scope_hint: In function ‘relinquish_p2m_mapping’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/p2m.c:2117:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘order’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/config.h:17: included_from: Included from here.
<command-line>: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/compiler.h:21:43: note: in definition of macro ‘unlikely’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/p2m.c:2083:5: note: in expansion of macro ‘BUG_ON’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:10: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/pci.h:11: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iommu.h:25: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/p2m.c:14: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/p2m.c:2083:5: note: in expansion of macro ‘BUG_ON’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/p2m.c:32: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/p2m.c: scope_hint: In function ‘relinquish_p2m_mapping’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/grant_table.h:10: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/grant_table.h:31: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/p2m.c:18: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/paging.h:75:40: note: in definition of macro ‘paging_mode_translate’
# 2115|           }
# 2116|   
# 2117|->         gfn += 1UL << order;
# 2118|   
# 2119|           if ( !(++count & 0xff) && hypercall_preempt_check() )

Error: GCC_ANALYZER_WARNING (CWE-457): [#def480]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/shadow/hvm.c: scope_hint: In function ‘hvm_read’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/shadow/hvm.c:114:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘addr’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/shadow/hvm.c: scope_hint: In function ‘hvm_read’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/shadow/hvm.c: scope_hint: In function ‘hvm_read’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/shadow/hvm.c: scope_hint: In function ‘hvm_read’
#  112|           return rc;
#  113|   
#  114|->     rc = hvm_copy_from_guest_linear(p_data, addr, bytes,
#  115|                                       (access_type == hvm_access_insn_fetch
#  116|                                        ? PFEC_insn_fetch : 0),

Error: GCC_ANALYZER_WARNING (CWE-457): [#def481]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/shadow/hvm.c: scope_hint: In function ‘shadow_init_emulation’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/shadow/hvm.c:334:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘addr’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/shadow/hvm.c: scope_hint: In function ‘shadow_init_emulation’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/shadow/hvm.c: scope_hint: In function ‘shadow_init_emulation’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/shadow/hvm.c: scope_hint: In function ‘shadow_init_emulation’
#  332|               x86_seg_cs, regs->rip, sizeof(sh_ctxt->insn_buf),
#  333|               hvm_access_insn_fetch, sh_ctxt, &addr) &&
#  334|->          !hvm_copy_from_guest_linear(
#  335|                sh_ctxt->insn_buf, addr, sizeof(sh_ctxt->insn_buf),
#  336|                PFEC_insn_fetch, NULL))

Error: GCC_ANALYZER_WARNING (CWE-457): [#def482]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/shadow/hvm.c: scope_hint: In function ‘shadow_continue_emulation’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/shadow/hvm.c:365:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘addr’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/shadow/hvm.c: scope_hint: In function ‘shadow_continue_emulation’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/shadow/hvm.c: scope_hint: In function ‘shadow_continue_emulation’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/mm/shadow/hvm.c: scope_hint: In function ‘shadow_continue_emulation’
#  363|                   x86_seg_cs, regs->rip, sizeof(sh_ctxt->insn_buf),
#  364|                   hvm_access_insn_fetch, sh_ctxt, &addr) &&
#  365|->              !hvm_copy_from_guest_linear(
#  366|                    sh_ctxt->insn_buf, addr, sizeof(sh_ctxt->insn_buf),
#  367|                    PFEC_insn_fetch, NULL))

Error: GCC_ANALYZER_WARNING (CWE-469): [#def483]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/percpu.c: scope_hint: In function ‘init_percpu_area’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/percpu.c:16:62: warning[-Wanalyzer-undefined-behavior-ptrdiff]: undefined behavior when subtracting pointers
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/percpu.c:33:35: note: in expansion of macro ‘PERCPU_ORDER’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/generated/asm/percpu.h:1: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/percpu.h:30: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/percpu.c:1: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/percpu.c:33:35: note: in expansion of macro ‘PERCPU_ORDER’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/percpu.c:33:35: note: in expansion of macro ‘PERCPU_ORDER’
#   14|    */
#   15|   #define INVALID_PERCPU_AREA (0x8000000000000000UL - (unsigned long)__per_cpu_start)
#   16|-> #define PERCPU_ORDER get_order_from_bytes(__per_cpu_data_end - __per_cpu_start)
#   17|   
#   18|   void __init percpu_init_areas(void)

Error: GCC_ANALYZER_WARNING (CWE-469): [#def484]
xen-4.19.0-build/xen-4.19.0/xen/include/xen/lib.h:12: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/setup.c:2: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/setup.c: scope_hint: In function ‘move_xen’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/setup.c:495:45: warning[-Wanalyzer-undefined-behavior-ptrdiff]: undefined behavior when subtracting pointers
xen-4.19.0-build/xen-4.19.0/xen/include/xen/string.h:76:48: note: in definition of macro ‘memcpy’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/mm-frame.h:4: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/grant_table.h:26: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/setup.c:4: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/setup.c:1044:20: note: in expansion of macro ‘strstr’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/string.h:76:48: note: in definition of macro ‘memcpy’
#  493|        * This includes a snapshot of the current stack.
#  494|        */
#  495|->     memcpy(__va(__pa(_start)), _start, _end - _start);
#  496|   
#  497|       /*

Error: GCC_ANALYZER_WARNING (CWE-469): [#def485]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/setup.c: scope_hint: In function ‘__start_xen’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/setup.c:1355:56: warning[-Wanalyzer-undefined-behavior-ptrdiff]: undefined behavior when subtracting pointers
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/setup.c:49: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/setup.c:1044:20: note: in expansion of macro ‘strstr’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/desc.h:4: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/processor.h:13: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/msr.h:15: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/time.h:5: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/time.h:78: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/spinlock.h:5: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/rwlock.h:7: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/grant_table.h:27: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/page.h:246:30: note: in expansion of macro ‘virt_to_maddr’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/page.h:270:29: note: in expansion of macro ‘__virt_to_mfn’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/setup.c:1354:42: note: in expansion of macro ‘virt_to_mfn’
# 1353|            */
# 1354|           mod[mbi->mods_count].mod_start = virt_to_mfn(_stext);
# 1355|->         mod[mbi->mods_count].mod_end = __2M_rwdata_end - _stext;
# 1356|       }
# 1357|   

Error: GCC_ANALYZER_WARNING (CWE-127): [#def486]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/setup.c:1572:41: warning[-Wanalyzer-out-of-bounds]: buffer under-read
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/setup.c:1044:20: note: in expansion of macro ‘strstr’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/page.h:208:8: note: in definition of macro ‘l1_table_offset’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/setup.c: scope_hint: In function ‘__start_xen’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/x86_64/page.h:26: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/page.h:16: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/pdx.h:215:24: note: in definition of macro ‘pfn_to_pdx’
# 1570|                       ASSERT(j);
# 1571|                   }
# 1572|->                 map_e = boot_e820.map[j].addr + boot_e820.map[j].size;
# 1573|                   for ( j = 0; j < mbi->mods_count; ++j )
# 1574|                   {

Error: GCC_ANALYZER_WARNING (CWE-127): [#def487]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/setup.c:1572:65: warning[-Wanalyzer-out-of-bounds]: buffer under-read
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/setup.c:1044:20: note: in expansion of macro ‘strstr’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/page.h:208:8: note: in definition of macro ‘l1_table_offset’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/setup.c: scope_hint: In function ‘__start_xen’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/pdx.h:215:24: note: in definition of macro ‘pfn_to_pdx’
# 1570|                       ASSERT(j);
# 1571|                   }
# 1572|->                 map_e = boot_e820.map[j].addr + boot_e820.map[j].size;
# 1573|                   for ( j = 0; j < mbi->mods_count; ++j )
# 1574|                   {

Error: COMPILER_WARNING: [#def488]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c: scope_hint: Assembler messages
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:34: Error: bad expression
#   32|   {
#   33|       OFFSET(UREGS_r15, struct cpu_user_regs, r15);
#   34|->     OFFSET(UREGS_r14, struct cpu_user_regs, r14);
#   35|       OFFSET(UREGS_r13, struct cpu_user_regs, r13);
#   36|       OFFSET(UREGS_r12, struct cpu_user_regs, r12);

Error: COMPILER_WARNING: [#def489]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:34: Error: junk at end of line, first unrecognized character is `#'
#   32|   {
#   33|       OFFSET(UREGS_r15, struct cpu_user_regs, r15);
#   34|->     OFFSET(UREGS_r14, struct cpu_user_regs, r14);
#   35|       OFFSET(UREGS_r13, struct cpu_user_regs, r13);
#   36|       OFFSET(UREGS_r12, struct cpu_user_regs, r12);

Error: COMPILER_WARNING: [#def490]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:35: Error: symbol `.ascii' is already defined
#   33|       OFFSET(UREGS_r15, struct cpu_user_regs, r15);
#   34|       OFFSET(UREGS_r14, struct cpu_user_regs, r14);
#   35|->     OFFSET(UREGS_r13, struct cpu_user_regs, r13);
#   36|       OFFSET(UREGS_r12, struct cpu_user_regs, r12);
#   37|       OFFSET(UREGS_rbp, struct cpu_user_regs, rbp);

Error: COMPILER_WARNING: [#def491]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:36: Error: symbol `.ascii' is already defined
#   34|       OFFSET(UREGS_r14, struct cpu_user_regs, r14);
#   35|       OFFSET(UREGS_r13, struct cpu_user_regs, r13);
#   36|->     OFFSET(UREGS_r12, struct cpu_user_regs, r12);
#   37|       OFFSET(UREGS_rbp, struct cpu_user_regs, rbp);
#   38|       OFFSET(UREGS_rbx, struct cpu_user_regs, rbx);

Error: COMPILER_WARNING: [#def492]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:37: Error: symbol `.ascii' is already defined
#   35|       OFFSET(UREGS_r13, struct cpu_user_regs, r13);
#   36|       OFFSET(UREGS_r12, struct cpu_user_regs, r12);
#   37|->     OFFSET(UREGS_rbp, struct cpu_user_regs, rbp);
#   38|       OFFSET(UREGS_rbx, struct cpu_user_regs, rbx);
#   39|       OFFSET(UREGS_r11, struct cpu_user_regs, r11);

Error: COMPILER_WARNING: [#def493]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:38: Error: symbol `.ascii' is already defined
#   36|       OFFSET(UREGS_r12, struct cpu_user_regs, r12);
#   37|       OFFSET(UREGS_rbp, struct cpu_user_regs, rbp);
#   38|->     OFFSET(UREGS_rbx, struct cpu_user_regs, rbx);
#   39|       OFFSET(UREGS_r11, struct cpu_user_regs, r11);
#   40|       OFFSET(UREGS_r10, struct cpu_user_regs, r10);

Error: COMPILER_WARNING: [#def494]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:39: Error: symbol `.ascii' is already defined
#   37|       OFFSET(UREGS_rbp, struct cpu_user_regs, rbp);
#   38|       OFFSET(UREGS_rbx, struct cpu_user_regs, rbx);
#   39|->     OFFSET(UREGS_r11, struct cpu_user_regs, r11);
#   40|       OFFSET(UREGS_r10, struct cpu_user_regs, r10);
#   41|       OFFSET(UREGS_r9, struct cpu_user_regs, r9);

Error: COMPILER_WARNING: [#def495]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:40: Error: symbol `.ascii' is already defined
#   38|       OFFSET(UREGS_rbx, struct cpu_user_regs, rbx);
#   39|       OFFSET(UREGS_r11, struct cpu_user_regs, r11);
#   40|->     OFFSET(UREGS_r10, struct cpu_user_regs, r10);
#   41|       OFFSET(UREGS_r9, struct cpu_user_regs, r9);
#   42|       OFFSET(UREGS_r8, struct cpu_user_regs, r8);

Error: COMPILER_WARNING: [#def496]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:41: Error: symbol `.ascii' is already defined
#   39|       OFFSET(UREGS_r11, struct cpu_user_regs, r11);
#   40|       OFFSET(UREGS_r10, struct cpu_user_regs, r10);
#   41|->     OFFSET(UREGS_r9, struct cpu_user_regs, r9);
#   42|       OFFSET(UREGS_r8, struct cpu_user_regs, r8);
#   43|       OFFSET(UREGS_rax, struct cpu_user_regs, rax);

Error: COMPILER_WARNING: [#def497]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:42: Error: symbol `.ascii' is already defined
#   40|       OFFSET(UREGS_r10, struct cpu_user_regs, r10);
#   41|       OFFSET(UREGS_r9, struct cpu_user_regs, r9);
#   42|->     OFFSET(UREGS_r8, struct cpu_user_regs, r8);
#   43|       OFFSET(UREGS_rax, struct cpu_user_regs, rax);
#   44|       OFFSET(UREGS_rcx, struct cpu_user_regs, rcx);

Error: COMPILER_WARNING: [#def498]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:43: Error: symbol `.ascii' is already defined
#   41|       OFFSET(UREGS_r9, struct cpu_user_regs, r9);
#   42|       OFFSET(UREGS_r8, struct cpu_user_regs, r8);
#   43|->     OFFSET(UREGS_rax, struct cpu_user_regs, rax);
#   44|       OFFSET(UREGS_rcx, struct cpu_user_regs, rcx);
#   45|       OFFSET(UREGS_rdx, struct cpu_user_regs, rdx);

Error: COMPILER_WARNING: [#def499]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:44: Error: symbol `.ascii' is already defined
#   42|       OFFSET(UREGS_r8, struct cpu_user_regs, r8);
#   43|       OFFSET(UREGS_rax, struct cpu_user_regs, rax);
#   44|->     OFFSET(UREGS_rcx, struct cpu_user_regs, rcx);
#   45|       OFFSET(UREGS_rdx, struct cpu_user_regs, rdx);
#   46|       OFFSET(UREGS_rsi, struct cpu_user_regs, rsi);

Error: COMPILER_WARNING: [#def500]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:45: Error: symbol `.ascii' is already defined
#   43|       OFFSET(UREGS_rax, struct cpu_user_regs, rax);
#   44|       OFFSET(UREGS_rcx, struct cpu_user_regs, rcx);
#   45|->     OFFSET(UREGS_rdx, struct cpu_user_regs, rdx);
#   46|       OFFSET(UREGS_rsi, struct cpu_user_regs, rsi);
#   47|       OFFSET(UREGS_rdi, struct cpu_user_regs, rdi);

Error: COMPILER_WARNING: [#def501]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:46: Error: symbol `.ascii' is already defined
#   44|       OFFSET(UREGS_rcx, struct cpu_user_regs, rcx);
#   45|       OFFSET(UREGS_rdx, struct cpu_user_regs, rdx);
#   46|->     OFFSET(UREGS_rsi, struct cpu_user_regs, rsi);
#   47|       OFFSET(UREGS_rdi, struct cpu_user_regs, rdi);
#   48|       OFFSET(UREGS_error_code, struct cpu_user_regs, error_code);

Error: COMPILER_WARNING: [#def502]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:47: Error: symbol `.ascii' is already defined
#   45|       OFFSET(UREGS_rdx, struct cpu_user_regs, rdx);
#   46|       OFFSET(UREGS_rsi, struct cpu_user_regs, rsi);
#   47|->     OFFSET(UREGS_rdi, struct cpu_user_regs, rdi);
#   48|       OFFSET(UREGS_error_code, struct cpu_user_regs, error_code);
#   49|       OFFSET(UREGS_entry_vector, struct cpu_user_regs, entry_vector);

Error: COMPILER_WARNING: [#def503]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:48: Error: symbol `.ascii' is already defined
#   46|       OFFSET(UREGS_rsi, struct cpu_user_regs, rsi);
#   47|       OFFSET(UREGS_rdi, struct cpu_user_regs, rdi);
#   48|->     OFFSET(UREGS_error_code, struct cpu_user_regs, error_code);
#   49|       OFFSET(UREGS_entry_vector, struct cpu_user_regs, entry_vector);
#   50|       OFFSET(UREGS_rip, struct cpu_user_regs, rip);

Error: COMPILER_WARNING: [#def504]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:49: Error: symbol `.ascii' is already defined
#   47|       OFFSET(UREGS_rdi, struct cpu_user_regs, rdi);
#   48|       OFFSET(UREGS_error_code, struct cpu_user_regs, error_code);
#   49|->     OFFSET(UREGS_entry_vector, struct cpu_user_regs, entry_vector);
#   50|       OFFSET(UREGS_rip, struct cpu_user_regs, rip);
#   51|       OFFSET(UREGS_cs, struct cpu_user_regs, cs);

Error: COMPILER_WARNING: [#def505]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:50: Error: symbol `.ascii' is already defined
#   48|       OFFSET(UREGS_error_code, struct cpu_user_regs, error_code);
#   49|       OFFSET(UREGS_entry_vector, struct cpu_user_regs, entry_vector);
#   50|->     OFFSET(UREGS_rip, struct cpu_user_regs, rip);
#   51|       OFFSET(UREGS_cs, struct cpu_user_regs, cs);
#   52|       OFFSET(UREGS_eflags, struct cpu_user_regs, rflags);

Error: COMPILER_WARNING: [#def506]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:51: Error: symbol `.ascii' is already defined
#   49|       OFFSET(UREGS_entry_vector, struct cpu_user_regs, entry_vector);
#   50|       OFFSET(UREGS_rip, struct cpu_user_regs, rip);
#   51|->     OFFSET(UREGS_cs, struct cpu_user_regs, cs);
#   52|       OFFSET(UREGS_eflags, struct cpu_user_regs, rflags);
#   53|       OFFSET(UREGS_rsp, struct cpu_user_regs, rsp);

Error: COMPILER_WARNING: [#def507]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:52: Error: symbol `.ascii' is already defined
#   50|       OFFSET(UREGS_rip, struct cpu_user_regs, rip);
#   51|       OFFSET(UREGS_cs, struct cpu_user_regs, cs);
#   52|->     OFFSET(UREGS_eflags, struct cpu_user_regs, rflags);
#   53|       OFFSET(UREGS_rsp, struct cpu_user_regs, rsp);
#   54|       OFFSET(UREGS_ss, struct cpu_user_regs, ss);

Error: COMPILER_WARNING: [#def508]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:53: Error: symbol `.ascii' is already defined
#   51|       OFFSET(UREGS_cs, struct cpu_user_regs, cs);
#   52|       OFFSET(UREGS_eflags, struct cpu_user_regs, rflags);
#   53|->     OFFSET(UREGS_rsp, struct cpu_user_regs, rsp);
#   54|       OFFSET(UREGS_ss, struct cpu_user_regs, ss);
#   55|       OFFSET(UREGS_kernel_sizeof, struct cpu_user_regs, es);

Error: COMPILER_WARNING: [#def509]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:54: Error: symbol `.ascii' is already defined
#   52|       OFFSET(UREGS_eflags, struct cpu_user_regs, rflags);
#   53|       OFFSET(UREGS_rsp, struct cpu_user_regs, rsp);
#   54|->     OFFSET(UREGS_ss, struct cpu_user_regs, ss);
#   55|       OFFSET(UREGS_kernel_sizeof, struct cpu_user_regs, es);
#   56|       BLANK();

Error: COMPILER_WARNING: [#def510]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:55: Error: symbol `.ascii' is already defined
#   53|       OFFSET(UREGS_rsp, struct cpu_user_regs, rsp);
#   54|       OFFSET(UREGS_ss, struct cpu_user_regs, ss);
#   55|->     OFFSET(UREGS_kernel_sizeof, struct cpu_user_regs, es);
#   56|       BLANK();
#   57|   

Error: COMPILER_WARNING: [#def511]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:56: Error: symbol `.ascii' is already defined
#   54|       OFFSET(UREGS_ss, struct cpu_user_regs, ss);
#   55|       OFFSET(UREGS_kernel_sizeof, struct cpu_user_regs, es);
#   56|->     BLANK();
#   57|   
#   58|       /*

Error: COMPILER_WARNING: [#def512]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:57: Error: symbol `.ascii' is already defined
#   55|       OFFSET(UREGS_kernel_sizeof, struct cpu_user_regs, es);
#   56|       BLANK();
#   57|-> 
#   58|       /*
#   59|        * EFRAME_* is for the entry/exit logic where %rsp is pointing at

Error: COMPILER_WARNING: [#def513]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:67: Error: symbol `.ascii' is already defined
#   65|   
#   66|       OFFSET_EF(EFRAME_entry_vector,    entry_vector);
#   67|->     OFFSET_EF(EFRAME_rip,             rip);
#   68|       OFFSET_EF(EFRAME_cs,              cs);
#   69|       OFFSET_EF(EFRAME_eflags,          eflags);

Error: COMPILER_WARNING: [#def514]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:68: Error: symbol `.ascii' is already defined
#   66|       OFFSET_EF(EFRAME_entry_vector,    entry_vector);
#   67|       OFFSET_EF(EFRAME_rip,             rip);
#   68|->     OFFSET_EF(EFRAME_cs,              cs);
#   69|       OFFSET_EF(EFRAME_eflags,          eflags);
#   70|   

Error: COMPILER_WARNING: [#def515]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:69: Error: symbol `.ascii' is already defined
#   67|       OFFSET_EF(EFRAME_rip,             rip);
#   68|       OFFSET_EF(EFRAME_cs,              cs);
#   69|->     OFFSET_EF(EFRAME_eflags,          eflags);
#   70|   
#   71|       /*

Error: COMPILER_WARNING: [#def516]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:70: Error: symbol `.ascii' is already defined
#   68|       OFFSET_EF(EFRAME_cs,              cs);
#   69|       OFFSET_EF(EFRAME_eflags,          eflags);
#   70|-> 
#   71|       /*
#   72|        * These aren't real fields.  They're spare space, used by the IST

Error: COMPILER_WARNING: [#def517]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:76: Error: symbol `.ascii' is already defined
#   74|        */
#   75|       OFFSET_EF(EFRAME_shadow_scf,      eflags, +4);
#   76|->     OFFSET_EF(EFRAME_shadow_sel,      eflags, +6);
#   77|   
#   78|       OFFSET_EF(EFRAME_rsp,             rsp);

Error: COMPILER_WARNING: [#def518]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:77: Error: symbol `.ascii' is already defined
#   75|       OFFSET_EF(EFRAME_shadow_scf,      eflags, +4);
#   76|       OFFSET_EF(EFRAME_shadow_sel,      eflags, +6);
#   77|-> 
#   78|       OFFSET_EF(EFRAME_rsp,             rsp);
#   79|       BLANK();

Error: COMPILER_WARNING: [#def519]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:79: Error: symbol `.ascii' is already defined
#   77|   
#   78|       OFFSET_EF(EFRAME_rsp,             rsp);
#   79|->     BLANK();
#   80|   
#   81|   #undef OFFSET_EF

Error: COMPILER_WARNING: [#def520]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:80: Error: symbol `.ascii' is already defined
#   78|       OFFSET_EF(EFRAME_rsp,             rsp);
#   79|       BLANK();
#   80|-> 
#   81|   #undef OFFSET_EF
#   82|   

Error: COMPILER_WARNING: [#def521]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:84: Error: symbol `.ascii' is already defined
#   82|   
#   83|       OFFSET(VCPU_processor, struct vcpu, processor);
#   84|->     OFFSET(VCPU_domain, struct vcpu, domain);
#   85|       OFFSET(VCPU_vcpu_info, struct vcpu, vcpu_info_area.map);
#   86|       OFFSET(VCPU_trap_bounce, struct vcpu, arch.pv.trap_bounce);

Error: COMPILER_WARNING: [#def522]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:85: Error: symbol `.ascii' is already defined
#   83|       OFFSET(VCPU_processor, struct vcpu, processor);
#   84|       OFFSET(VCPU_domain, struct vcpu, domain);
#   85|->     OFFSET(VCPU_vcpu_info, struct vcpu, vcpu_info_area.map);
#   86|       OFFSET(VCPU_trap_bounce, struct vcpu, arch.pv.trap_bounce);
#   87|       OFFSET(VCPU_thread_flags, struct vcpu, arch.flags);

Error: COMPILER_WARNING: [#def523]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:86: Error: symbol `.ascii' is already defined
#   84|       OFFSET(VCPU_domain, struct vcpu, domain);
#   85|       OFFSET(VCPU_vcpu_info, struct vcpu, vcpu_info_area.map);
#   86|->     OFFSET(VCPU_trap_bounce, struct vcpu, arch.pv.trap_bounce);
#   87|       OFFSET(VCPU_thread_flags, struct vcpu, arch.flags);
#   88|       OFFSET(VCPU_event_addr, struct vcpu, arch.pv.event_callback_eip);

Error: COMPILER_WARNING: [#def524]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:87: Error: symbol `.ascii' is already defined
#   85|       OFFSET(VCPU_vcpu_info, struct vcpu, vcpu_info_area.map);
#   86|       OFFSET(VCPU_trap_bounce, struct vcpu, arch.pv.trap_bounce);
#   87|->     OFFSET(VCPU_thread_flags, struct vcpu, arch.flags);
#   88|       OFFSET(VCPU_event_addr, struct vcpu, arch.pv.event_callback_eip);
#   89|       OFFSET(VCPU_event_sel, struct vcpu, arch.pv.event_callback_cs);

Error: COMPILER_WARNING: [#def525]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:88: Error: symbol `.ascii' is already defined
#   86|       OFFSET(VCPU_trap_bounce, struct vcpu, arch.pv.trap_bounce);
#   87|       OFFSET(VCPU_thread_flags, struct vcpu, arch.flags);
#   88|->     OFFSET(VCPU_event_addr, struct vcpu, arch.pv.event_callback_eip);
#   89|       OFFSET(VCPU_event_sel, struct vcpu, arch.pv.event_callback_cs);
#   90|       OFFSET(VCPU_syscall_addr, struct vcpu, arch.pv.syscall_callback_eip);

Error: COMPILER_WARNING: [#def526]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:89: Error: symbol `.ascii' is already defined
#   87|       OFFSET(VCPU_thread_flags, struct vcpu, arch.flags);
#   88|       OFFSET(VCPU_event_addr, struct vcpu, arch.pv.event_callback_eip);
#   89|->     OFFSET(VCPU_event_sel, struct vcpu, arch.pv.event_callback_cs);
#   90|       OFFSET(VCPU_syscall_addr, struct vcpu, arch.pv.syscall_callback_eip);
#   91|       OFFSET(VCPU_syscall32_addr, struct vcpu, arch.pv.syscall32_callback_eip);

Error: COMPILER_WARNING: [#def527]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:90: Error: symbol `.ascii' is already defined
#   88|       OFFSET(VCPU_event_addr, struct vcpu, arch.pv.event_callback_eip);
#   89|       OFFSET(VCPU_event_sel, struct vcpu, arch.pv.event_callback_cs);
#   90|->     OFFSET(VCPU_syscall_addr, struct vcpu, arch.pv.syscall_callback_eip);
#   91|       OFFSET(VCPU_syscall32_addr, struct vcpu, arch.pv.syscall32_callback_eip);
#   92|       OFFSET(VCPU_syscall32_sel, struct vcpu, arch.pv.syscall32_callback_cs);

Error: COMPILER_WARNING: [#def528]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:91: Error: symbol `.ascii' is already defined
#   89|       OFFSET(VCPU_event_sel, struct vcpu, arch.pv.event_callback_cs);
#   90|       OFFSET(VCPU_syscall_addr, struct vcpu, arch.pv.syscall_callback_eip);
#   91|->     OFFSET(VCPU_syscall32_addr, struct vcpu, arch.pv.syscall32_callback_eip);
#   92|       OFFSET(VCPU_syscall32_sel, struct vcpu, arch.pv.syscall32_callback_cs);
#   93|       OFFSET(VCPU_syscall32_disables_events,

Error: COMPILER_WARNING: [#def529]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:92: Error: symbol `.ascii' is already defined
#   90|       OFFSET(VCPU_syscall_addr, struct vcpu, arch.pv.syscall_callback_eip);
#   91|       OFFSET(VCPU_syscall32_addr, struct vcpu, arch.pv.syscall32_callback_eip);
#   92|->     OFFSET(VCPU_syscall32_sel, struct vcpu, arch.pv.syscall32_callback_cs);
#   93|       OFFSET(VCPU_syscall32_disables_events,
#   94|              struct vcpu, arch.pv.syscall32_disables_events);

Error: COMPILER_WARNING: [#def530]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:93: Error: symbol `.ascii' is already defined
#   91|       OFFSET(VCPU_syscall32_addr, struct vcpu, arch.pv.syscall32_callback_eip);
#   92|       OFFSET(VCPU_syscall32_sel, struct vcpu, arch.pv.syscall32_callback_cs);
#   93|->     OFFSET(VCPU_syscall32_disables_events,
#   94|              struct vcpu, arch.pv.syscall32_disables_events);
#   95|       OFFSET(VCPU_sysenter_addr, struct vcpu, arch.pv.sysenter_callback_eip);

Error: COMPILER_WARNING: [#def531]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:94: Error: symbol `.ascii' is already defined
#   92|       OFFSET(VCPU_syscall32_sel, struct vcpu, arch.pv.syscall32_callback_cs);
#   93|       OFFSET(VCPU_syscall32_disables_events,
#   94|->            struct vcpu, arch.pv.syscall32_disables_events);
#   95|       OFFSET(VCPU_sysenter_addr, struct vcpu, arch.pv.sysenter_callback_eip);
#   96|       OFFSET(VCPU_sysenter_sel, struct vcpu, arch.pv.sysenter_callback_cs);

Error: COMPILER_WARNING: [#def532]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:96: Error: symbol `.ascii' is already defined
#   94|              struct vcpu, arch.pv.syscall32_disables_events);
#   95|       OFFSET(VCPU_sysenter_addr, struct vcpu, arch.pv.sysenter_callback_eip);
#   96|->     OFFSET(VCPU_sysenter_sel, struct vcpu, arch.pv.sysenter_callback_cs);
#   97|       OFFSET(VCPU_sysenter_disables_events,
#   98|              struct vcpu, arch.pv.sysenter_disables_events);

Error: COMPILER_WARNING: [#def533]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:97: Error: symbol `.ascii' is already defined
#   95|       OFFSET(VCPU_sysenter_addr, struct vcpu, arch.pv.sysenter_callback_eip);
#   96|       OFFSET(VCPU_sysenter_sel, struct vcpu, arch.pv.sysenter_callback_cs);
#   97|->     OFFSET(VCPU_sysenter_disables_events,
#   98|              struct vcpu, arch.pv.sysenter_disables_events);
#   99|       OFFSET(VCPU_trap_ctxt, struct vcpu, arch.pv.trap_ctxt);

Error: COMPILER_WARNING: [#def534]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:98: Error: symbol `.ascii' is already defined
#   96|       OFFSET(VCPU_sysenter_sel, struct vcpu, arch.pv.sysenter_callback_cs);
#   97|       OFFSET(VCPU_sysenter_disables_events,
#   98|->            struct vcpu, arch.pv.sysenter_disables_events);
#   99|       OFFSET(VCPU_trap_ctxt, struct vcpu, arch.pv.trap_ctxt);
#  100|       OFFSET(VCPU_kernel_sp, struct vcpu, arch.pv.kernel_sp);

Error: COMPILER_WARNING: [#def535]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:100: Error: symbol `.ascii' is already defined
#   98|              struct vcpu, arch.pv.sysenter_disables_events);
#   99|       OFFSET(VCPU_trap_ctxt, struct vcpu, arch.pv.trap_ctxt);
#  100|->     OFFSET(VCPU_kernel_sp, struct vcpu, arch.pv.kernel_sp);
#  101|       OFFSET(VCPU_kernel_ss, struct vcpu, arch.pv.kernel_ss);
#  102|       OFFSET(VCPU_iopl, struct vcpu, arch.pv.iopl);

Error: COMPILER_WARNING: [#def536]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:101: Error: symbol `.ascii' is already defined
#   99|       OFFSET(VCPU_trap_ctxt, struct vcpu, arch.pv.trap_ctxt);
#  100|       OFFSET(VCPU_kernel_sp, struct vcpu, arch.pv.kernel_sp);
#  101|->     OFFSET(VCPU_kernel_ss, struct vcpu, arch.pv.kernel_ss);
#  102|       OFFSET(VCPU_iopl, struct vcpu, arch.pv.iopl);
#  103|       OFFSET(VCPU_guest_context_flags, struct vcpu, arch.pv.vgc_flags);

Error: COMPILER_WARNING: [#def537]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:102: Error: symbol `.ascii' is already defined
#  100|       OFFSET(VCPU_kernel_sp, struct vcpu, arch.pv.kernel_sp);
#  101|       OFFSET(VCPU_kernel_ss, struct vcpu, arch.pv.kernel_ss);
#  102|->     OFFSET(VCPU_iopl, struct vcpu, arch.pv.iopl);
#  103|       OFFSET(VCPU_guest_context_flags, struct vcpu, arch.pv.vgc_flags);
#  104|       OFFSET(VCPU_cr3, struct vcpu, arch.cr3);

Error: COMPILER_WARNING: [#def538]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:103: Error: symbol `.ascii' is already defined
#  101|       OFFSET(VCPU_kernel_ss, struct vcpu, arch.pv.kernel_ss);
#  102|       OFFSET(VCPU_iopl, struct vcpu, arch.pv.iopl);
#  103|->     OFFSET(VCPU_guest_context_flags, struct vcpu, arch.pv.vgc_flags);
#  104|       OFFSET(VCPU_cr3, struct vcpu, arch.cr3);
#  105|       OFFSET(VCPU_arch_msrs, struct vcpu, arch.msrs);

Error: COMPILER_WARNING: [#def539]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:104: Error: symbol `.ascii' is already defined
#  102|       OFFSET(VCPU_iopl, struct vcpu, arch.pv.iopl);
#  103|       OFFSET(VCPU_guest_context_flags, struct vcpu, arch.pv.vgc_flags);
#  104|->     OFFSET(VCPU_cr3, struct vcpu, arch.cr3);
#  105|       OFFSET(VCPU_arch_msrs, struct vcpu, arch.msrs);
#  106|       OFFSET(VCPU_nmi_pending, struct vcpu, arch.nmi_pending);

Error: COMPILER_WARNING: [#def540]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:105: Error: symbol `.ascii' is already defined
#  103|       OFFSET(VCPU_guest_context_flags, struct vcpu, arch.pv.vgc_flags);
#  104|       OFFSET(VCPU_cr3, struct vcpu, arch.cr3);
#  105|->     OFFSET(VCPU_arch_msrs, struct vcpu, arch.msrs);
#  106|       OFFSET(VCPU_nmi_pending, struct vcpu, arch.nmi_pending);
#  107|       OFFSET(VCPU_mce_pending, struct vcpu, arch.mce_pending);

Error: COMPILER_WARNING: [#def541]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:106: Error: symbol `.ascii' is already defined
#  104|       OFFSET(VCPU_cr3, struct vcpu, arch.cr3);
#  105|       OFFSET(VCPU_arch_msrs, struct vcpu, arch.msrs);
#  106|->     OFFSET(VCPU_nmi_pending, struct vcpu, arch.nmi_pending);
#  107|       OFFSET(VCPU_mce_pending, struct vcpu, arch.mce_pending);
#  108|       OFFSET(VCPU_nmi_old_mask, struct vcpu, arch.nmi_state.old_mask);

Error: COMPILER_WARNING: [#def542]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:107: Error: symbol `.ascii' is already defined
#  105|       OFFSET(VCPU_arch_msrs, struct vcpu, arch.msrs);
#  106|       OFFSET(VCPU_nmi_pending, struct vcpu, arch.nmi_pending);
#  107|->     OFFSET(VCPU_mce_pending, struct vcpu, arch.mce_pending);
#  108|       OFFSET(VCPU_nmi_old_mask, struct vcpu, arch.nmi_state.old_mask);
#  109|       OFFSET(VCPU_mce_old_mask, struct vcpu, arch.mce_state.old_mask);

Error: COMPILER_WARNING: [#def543]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:108: Error: symbol `.ascii' is already defined
#  106|       OFFSET(VCPU_nmi_pending, struct vcpu, arch.nmi_pending);
#  107|       OFFSET(VCPU_mce_pending, struct vcpu, arch.mce_pending);
#  108|->     OFFSET(VCPU_nmi_old_mask, struct vcpu, arch.nmi_state.old_mask);
#  109|       OFFSET(VCPU_mce_old_mask, struct vcpu, arch.mce_state.old_mask);
#  110|       OFFSET(VCPU_async_exception_mask, struct vcpu, arch.async_exception_mask);

Error: COMPILER_WARNING: [#def544]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:109: Error: symbol `.ascii' is already defined
#  107|       OFFSET(VCPU_mce_pending, struct vcpu, arch.mce_pending);
#  108|       OFFSET(VCPU_nmi_old_mask, struct vcpu, arch.nmi_state.old_mask);
#  109|->     OFFSET(VCPU_mce_old_mask, struct vcpu, arch.mce_state.old_mask);
#  110|       OFFSET(VCPU_async_exception_mask, struct vcpu, arch.async_exception_mask);
#  111|       DEFINE(VCPU_TRAP_NMI, VCPU_TRAP_NMI);

Error: COMPILER_WARNING: [#def545]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:110: Error: symbol `.ascii' is already defined
#  108|       OFFSET(VCPU_nmi_old_mask, struct vcpu, arch.nmi_state.old_mask);
#  109|       OFFSET(VCPU_mce_old_mask, struct vcpu, arch.mce_state.old_mask);
#  110|->     OFFSET(VCPU_async_exception_mask, struct vcpu, arch.async_exception_mask);
#  111|       DEFINE(VCPU_TRAP_NMI, VCPU_TRAP_NMI);
#  112|       DEFINE(VCPU_TRAP_MCE, VCPU_TRAP_MCE);

Error: COMPILER_WARNING: [#def546]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:111: Error: symbol `.ascii' is already defined
#  109|       OFFSET(VCPU_mce_old_mask, struct vcpu, arch.mce_state.old_mask);
#  110|       OFFSET(VCPU_async_exception_mask, struct vcpu, arch.async_exception_mask);
#  111|->     DEFINE(VCPU_TRAP_NMI, VCPU_TRAP_NMI);
#  112|       DEFINE(VCPU_TRAP_MCE, VCPU_TRAP_MCE);
#  113|       DEFINE(_VGCF_syscall_disables_events,  _VGCF_syscall_disables_events);

Error: COMPILER_WARNING: [#def547]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:112: Error: symbol `.ascii' is already defined
#  110|       OFFSET(VCPU_async_exception_mask, struct vcpu, arch.async_exception_mask);
#  111|       DEFINE(VCPU_TRAP_NMI, VCPU_TRAP_NMI);
#  112|->     DEFINE(VCPU_TRAP_MCE, VCPU_TRAP_MCE);
#  113|       DEFINE(_VGCF_syscall_disables_events,  _VGCF_syscall_disables_events);
#  114|       BLANK();

Error: COMPILER_WARNING: [#def548]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:113: Error: symbol `.ascii' is already defined
#  111|       DEFINE(VCPU_TRAP_NMI, VCPU_TRAP_NMI);
#  112|       DEFINE(VCPU_TRAP_MCE, VCPU_TRAP_MCE);
#  113|->     DEFINE(_VGCF_syscall_disables_events,  _VGCF_syscall_disables_events);
#  114|       BLANK();
#  115|   

Error: COMPILER_WARNING: [#def549]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:114: Error: symbol `.ascii' is already defined
#  112|       DEFINE(VCPU_TRAP_MCE, VCPU_TRAP_MCE);
#  113|       DEFINE(_VGCF_syscall_disables_events,  _VGCF_syscall_disables_events);
#  114|->     BLANK();
#  115|   
#  116|   #ifdef CONFIG_HVM

Error: COMPILER_WARNING: [#def550]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:115: Error: symbol `.ascii' is already defined
#  113|       DEFINE(_VGCF_syscall_disables_events,  _VGCF_syscall_disables_events);
#  114|       BLANK();
#  115|-> 
#  116|   #ifdef CONFIG_HVM
#  117|       OFFSET(VCPU_svm_vmcb_pa, struct vcpu, arch.hvm.svm.vmcb_pa);

Error: COMPILER_WARNING: [#def551]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:118: Error: symbol `.ascii' is already defined
#  116|   #ifdef CONFIG_HVM
#  117|       OFFSET(VCPU_svm_vmcb_pa, struct vcpu, arch.hvm.svm.vmcb_pa);
#  118|->     OFFSET(VCPU_svm_vmcb, struct vcpu, arch.hvm.svm.vmcb);
#  119|       BLANK();
#  120|   

Error: COMPILER_WARNING: [#def552]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:119: Error: symbol `.ascii' is already defined
#  117|       OFFSET(VCPU_svm_vmcb_pa, struct vcpu, arch.hvm.svm.vmcb_pa);
#  118|       OFFSET(VCPU_svm_vmcb, struct vcpu, arch.hvm.svm.vmcb);
#  119|->     BLANK();
#  120|   
#  121|       OFFSET(VCPU_vmx_launched, struct vcpu, arch.hvm.vmx.launched);

Error: COMPILER_WARNING: [#def553]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:120: Error: symbol `.ascii' is already defined
#  118|       OFFSET(VCPU_svm_vmcb, struct vcpu, arch.hvm.svm.vmcb);
#  119|       BLANK();
#  120|-> 
#  121|       OFFSET(VCPU_vmx_launched, struct vcpu, arch.hvm.vmx.launched);
#  122|       OFFSET(VCPU_vmx_realmode, struct vcpu, arch.hvm.vmx.vmx_realmode);

Error: COMPILER_WARNING: [#def554]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:122: Error: symbol `.ascii' is already defined
#  120|   
#  121|       OFFSET(VCPU_vmx_launched, struct vcpu, arch.hvm.vmx.launched);
#  122|->     OFFSET(VCPU_vmx_realmode, struct vcpu, arch.hvm.vmx.vmx_realmode);
#  123|       OFFSET(VCPU_vmx_emulate, struct vcpu, arch.hvm.vmx.vmx_emulate);
#  124|       OFFSET(VCPU_vm86_seg_mask, struct vcpu, arch.hvm.vmx.vm86_segment_mask);

Error: COMPILER_WARNING: [#def555]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:123: Error: symbol `.ascii' is already defined
#  121|       OFFSET(VCPU_vmx_launched, struct vcpu, arch.hvm.vmx.launched);
#  122|       OFFSET(VCPU_vmx_realmode, struct vcpu, arch.hvm.vmx.vmx_realmode);
#  123|->     OFFSET(VCPU_vmx_emulate, struct vcpu, arch.hvm.vmx.vmx_emulate);
#  124|       OFFSET(VCPU_vm86_seg_mask, struct vcpu, arch.hvm.vmx.vm86_segment_mask);
#  125|       OFFSET(VCPU_hvm_guest_cr2, struct vcpu, arch.hvm.guest_cr[2]);

Error: COMPILER_WARNING: [#def556]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:124: Error: symbol `.ascii' is already defined
#  122|       OFFSET(VCPU_vmx_realmode, struct vcpu, arch.hvm.vmx.vmx_realmode);
#  123|       OFFSET(VCPU_vmx_emulate, struct vcpu, arch.hvm.vmx.vmx_emulate);
#  124|->     OFFSET(VCPU_vm86_seg_mask, struct vcpu, arch.hvm.vmx.vm86_segment_mask);
#  125|       OFFSET(VCPU_hvm_guest_cr2, struct vcpu, arch.hvm.guest_cr[2]);
#  126|       BLANK();

Error: COMPILER_WARNING: [#def557]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:125: Error: symbol `.ascii' is already defined
#  123|       OFFSET(VCPU_vmx_emulate, struct vcpu, arch.hvm.vmx.vmx_emulate);
#  124|       OFFSET(VCPU_vm86_seg_mask, struct vcpu, arch.hvm.vmx.vm86_segment_mask);
#  125|->     OFFSET(VCPU_hvm_guest_cr2, struct vcpu, arch.hvm.guest_cr[2]);
#  126|       BLANK();
#  127|   

Error: COMPILER_WARNING: [#def558]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:126: Error: symbol `.ascii' is already defined
#  124|       OFFSET(VCPU_vm86_seg_mask, struct vcpu, arch.hvm.vmx.vm86_segment_mask);
#  125|       OFFSET(VCPU_hvm_guest_cr2, struct vcpu, arch.hvm.guest_cr[2]);
#  126|->     BLANK();
#  127|   
#  128|       OFFSET(VCPU_nhvm_guestmode, struct vcpu, arch.hvm.nvcpu.nv_guestmode);

Error: COMPILER_WARNING: [#def559]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:127: Error: symbol `.ascii' is already defined
#  125|       OFFSET(VCPU_hvm_guest_cr2, struct vcpu, arch.hvm.guest_cr[2]);
#  126|       BLANK();
#  127|-> 
#  128|       OFFSET(VCPU_nhvm_guestmode, struct vcpu, arch.hvm.nvcpu.nv_guestmode);
#  129|       OFFSET(VCPU_nhvm_p2m, struct vcpu, arch.hvm.nvcpu.nv_p2m);

Error: COMPILER_WARNING: [#def560]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:129: Error: symbol `.ascii' is already defined
#  127|   
#  128|       OFFSET(VCPU_nhvm_guestmode, struct vcpu, arch.hvm.nvcpu.nv_guestmode);
#  129|->     OFFSET(VCPU_nhvm_p2m, struct vcpu, arch.hvm.nvcpu.nv_p2m);
#  130|       OFFSET(VCPU_nsvm_hap_enabled, struct vcpu, arch.hvm.nvcpu.u.nsvm.ns_hap_enabled);
#  131|       BLANK();

Error: COMPILER_WARNING: [#def561]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:130: Error: symbol `.ascii' is already defined
#  128|       OFFSET(VCPU_nhvm_guestmode, struct vcpu, arch.hvm.nvcpu.nv_guestmode);
#  129|       OFFSET(VCPU_nhvm_p2m, struct vcpu, arch.hvm.nvcpu.nv_p2m);
#  130|->     OFFSET(VCPU_nsvm_hap_enabled, struct vcpu, arch.hvm.nvcpu.u.nsvm.ns_hap_enabled);
#  131|       BLANK();
#  132|   #endif

Error: COMPILER_WARNING: [#def562]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:131: Error: symbol `.ascii' is already defined
#  129|       OFFSET(VCPU_nhvm_p2m, struct vcpu, arch.hvm.nvcpu.nv_p2m);
#  130|       OFFSET(VCPU_nsvm_hap_enabled, struct vcpu, arch.hvm.nvcpu.u.nsvm.ns_hap_enabled);
#  131|->     BLANK();
#  132|   #endif
#  133|   

Error: COMPILER_WARNING: [#def563]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:132: Error: symbol `.ascii' is already defined
#  130|       OFFSET(VCPU_nsvm_hap_enabled, struct vcpu, arch.hvm.nvcpu.u.nsvm.ns_hap_enabled);
#  131|       BLANK();
#  132|-> #endif
#  133|   
#  134|   #ifdef CONFIG_PV32

Error: COMPILER_WARNING: [#def564]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:136: Error: symbol `.ascii' is already defined
#  134|   #ifdef CONFIG_PV32
#  135|       OFFSET(DOMAIN_is_32bit_pv, struct domain, arch.pv.is_32bit);
#  136|->     BLANK();
#  137|   
#  138|       OFFSET(COMPAT_VCPUINFO_upcall_pending, struct compat_vcpu_info, evtchn_upcall_pending);

Error: COMPILER_WARNING: [#def565]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:137: Error: symbol `.ascii' is already defined
#  135|       OFFSET(DOMAIN_is_32bit_pv, struct domain, arch.pv.is_32bit);
#  136|       BLANK();
#  137|-> 
#  138|       OFFSET(COMPAT_VCPUINFO_upcall_pending, struct compat_vcpu_info, evtchn_upcall_pending);
#  139|       OFFSET(COMPAT_VCPUINFO_upcall_mask, struct compat_vcpu_info, evtchn_upcall_mask);

Error: COMPILER_WARNING: [#def566]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:139: Error: symbol `.ascii' is already defined
#  137|   
#  138|       OFFSET(COMPAT_VCPUINFO_upcall_pending, struct compat_vcpu_info, evtchn_upcall_pending);
#  139|->     OFFSET(COMPAT_VCPUINFO_upcall_mask, struct compat_vcpu_info, evtchn_upcall_mask);
#  140|       BLANK();
#  141|   #endif

Error: COMPILER_WARNING: [#def567]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:140: Error: symbol `.ascii' is already defined
#  138|       OFFSET(COMPAT_VCPUINFO_upcall_pending, struct compat_vcpu_info, evtchn_upcall_pending);
#  139|       OFFSET(COMPAT_VCPUINFO_upcall_mask, struct compat_vcpu_info, evtchn_upcall_mask);
#  140|->     BLANK();
#  141|   #endif
#  142|   

Error: COMPILER_WARNING: [#def568]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:141: Error: symbol `.ascii' is already defined
#  139|       OFFSET(COMPAT_VCPUINFO_upcall_mask, struct compat_vcpu_info, evtchn_upcall_mask);
#  140|       BLANK();
#  141|-> #endif
#  142|   
#  143|   #ifdef CONFIG_PV

Error: COMPILER_WARNING: [#def569]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:145: Error: symbol `.ascii' is already defined
#  143|   #ifdef CONFIG_PV
#  144|       OFFSET(VCPUINFO_upcall_pending, struct vcpu_info, evtchn_upcall_pending);
#  145|->     OFFSET(VCPUINFO_upcall_mask, struct vcpu_info, evtchn_upcall_mask);
#  146|       BLANK();
#  147|   #endif

Error: COMPILER_WARNING: [#def570]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:146: Error: symbol `.ascii' is already defined
#  144|       OFFSET(VCPUINFO_upcall_pending, struct vcpu_info, evtchn_upcall_pending);
#  145|       OFFSET(VCPUINFO_upcall_mask, struct vcpu_info, evtchn_upcall_mask);
#  146|->     BLANK();
#  147|   #endif
#  148|   

Error: COMPILER_WARNING: [#def571]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:147: Error: symbol `.ascii' is already defined
#  145|       OFFSET(VCPUINFO_upcall_mask, struct vcpu_info, evtchn_upcall_mask);
#  146|       BLANK();
#  147|-> #endif
#  148|   
#  149|       OFFSET(CPUINFO_guest_cpu_user_regs, struct cpu_info, guest_cpu_user_regs);

Error: COMPILER_WARNING: [#def572]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:150: Error: symbol `.ascii' is already defined
#  148|   
#  149|       OFFSET(CPUINFO_guest_cpu_user_regs, struct cpu_info, guest_cpu_user_regs);
#  150|->     OFFSET(CPUINFO_error_code, struct cpu_info, guest_cpu_user_regs.error_code);
#  151|       OFFSET(CPUINFO_rip, struct cpu_info, guest_cpu_user_regs.rip);
#  152|       OFFSET(CPUINFO_processor_id, struct cpu_info, processor_id);

Error: COMPILER_WARNING: [#def573]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:151: Error: symbol `.ascii' is already defined
#  149|       OFFSET(CPUINFO_guest_cpu_user_regs, struct cpu_info, guest_cpu_user_regs);
#  150|       OFFSET(CPUINFO_error_code, struct cpu_info, guest_cpu_user_regs.error_code);
#  151|->     OFFSET(CPUINFO_rip, struct cpu_info, guest_cpu_user_regs.rip);
#  152|       OFFSET(CPUINFO_processor_id, struct cpu_info, processor_id);
#  153|       OFFSET(CPUINFO_verw_sel, struct cpu_info, verw_sel);

Error: COMPILER_WARNING: [#def574]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:152: Error: symbol `.ascii' is already defined
#  150|       OFFSET(CPUINFO_error_code, struct cpu_info, guest_cpu_user_regs.error_code);
#  151|       OFFSET(CPUINFO_rip, struct cpu_info, guest_cpu_user_regs.rip);
#  152|->     OFFSET(CPUINFO_processor_id, struct cpu_info, processor_id);
#  153|       OFFSET(CPUINFO_verw_sel, struct cpu_info, verw_sel);
#  154|       OFFSET(CPUINFO_current_vcpu, struct cpu_info, current_vcpu);

Error: COMPILER_WARNING: [#def575]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:153: Error: symbol `.ascii' is already defined
#  151|       OFFSET(CPUINFO_rip, struct cpu_info, guest_cpu_user_regs.rip);
#  152|       OFFSET(CPUINFO_processor_id, struct cpu_info, processor_id);
#  153|->     OFFSET(CPUINFO_verw_sel, struct cpu_info, verw_sel);
#  154|       OFFSET(CPUINFO_current_vcpu, struct cpu_info, current_vcpu);
#  155|       OFFSET(CPUINFO_per_cpu_offset, struct cpu_info, per_cpu_offset);

Error: COMPILER_WARNING: [#def576]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:154: Error: symbol `.ascii' is already defined
#  152|       OFFSET(CPUINFO_processor_id, struct cpu_info, processor_id);
#  153|       OFFSET(CPUINFO_verw_sel, struct cpu_info, verw_sel);
#  154|->     OFFSET(CPUINFO_current_vcpu, struct cpu_info, current_vcpu);
#  155|       OFFSET(CPUINFO_per_cpu_offset, struct cpu_info, per_cpu_offset);
#  156|       OFFSET(CPUINFO_cr4, struct cpu_info, cr4);

Error: COMPILER_WARNING: [#def577]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:155: Error: symbol `.ascii' is already defined
#  153|       OFFSET(CPUINFO_verw_sel, struct cpu_info, verw_sel);
#  154|       OFFSET(CPUINFO_current_vcpu, struct cpu_info, current_vcpu);
#  155|->     OFFSET(CPUINFO_per_cpu_offset, struct cpu_info, per_cpu_offset);
#  156|       OFFSET(CPUINFO_cr4, struct cpu_info, cr4);
#  157|       OFFSET(CPUINFO_xen_cr3, struct cpu_info, xen_cr3);

Error: COMPILER_WARNING: [#def578]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:156: Error: symbol `.ascii' is already defined
#  154|       OFFSET(CPUINFO_current_vcpu, struct cpu_info, current_vcpu);
#  155|       OFFSET(CPUINFO_per_cpu_offset, struct cpu_info, per_cpu_offset);
#  156|->     OFFSET(CPUINFO_cr4, struct cpu_info, cr4);
#  157|       OFFSET(CPUINFO_xen_cr3, struct cpu_info, xen_cr3);
#  158|       OFFSET(CPUINFO_pv_cr3, struct cpu_info, pv_cr3);

Error: COMPILER_WARNING: [#def579]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:157: Error: symbol `.ascii' is already defined
#  155|       OFFSET(CPUINFO_per_cpu_offset, struct cpu_info, per_cpu_offset);
#  156|       OFFSET(CPUINFO_cr4, struct cpu_info, cr4);
#  157|->     OFFSET(CPUINFO_xen_cr3, struct cpu_info, xen_cr3);
#  158|       OFFSET(CPUINFO_pv_cr3, struct cpu_info, pv_cr3);
#  159|       OFFSET(CPUINFO_shadow_spec_ctrl, struct cpu_info, shadow_spec_ctrl);

Error: COMPILER_WARNING: [#def580]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:158: Error: symbol `.ascii' is already defined
#  156|       OFFSET(CPUINFO_cr4, struct cpu_info, cr4);
#  157|       OFFSET(CPUINFO_xen_cr3, struct cpu_info, xen_cr3);
#  158|->     OFFSET(CPUINFO_pv_cr3, struct cpu_info, pv_cr3);
#  159|       OFFSET(CPUINFO_shadow_spec_ctrl, struct cpu_info, shadow_spec_ctrl);
#  160|       OFFSET(CPUINFO_xen_spec_ctrl, struct cpu_info, xen_spec_ctrl);

Error: COMPILER_WARNING: [#def581]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:159: Error: symbol `.ascii' is already defined
#  157|       OFFSET(CPUINFO_xen_cr3, struct cpu_info, xen_cr3);
#  158|       OFFSET(CPUINFO_pv_cr3, struct cpu_info, pv_cr3);
#  159|->     OFFSET(CPUINFO_shadow_spec_ctrl, struct cpu_info, shadow_spec_ctrl);
#  160|       OFFSET(CPUINFO_xen_spec_ctrl, struct cpu_info, xen_spec_ctrl);
#  161|       OFFSET(CPUINFO_last_spec_ctrl, struct cpu_info, last_spec_ctrl);

Error: COMPILER_WARNING: [#def582]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:160: Error: symbol `.ascii' is already defined
#  158|       OFFSET(CPUINFO_pv_cr3, struct cpu_info, pv_cr3);
#  159|       OFFSET(CPUINFO_shadow_spec_ctrl, struct cpu_info, shadow_spec_ctrl);
#  160|->     OFFSET(CPUINFO_xen_spec_ctrl, struct cpu_info, xen_spec_ctrl);
#  161|       OFFSET(CPUINFO_last_spec_ctrl, struct cpu_info, last_spec_ctrl);
#  162|       OFFSET(CPUINFO_scf, struct cpu_info, scf);

Error: COMPILER_WARNING: [#def583]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:161: Error: symbol `.ascii' is already defined
#  159|       OFFSET(CPUINFO_shadow_spec_ctrl, struct cpu_info, shadow_spec_ctrl);
#  160|       OFFSET(CPUINFO_xen_spec_ctrl, struct cpu_info, xen_spec_ctrl);
#  161|->     OFFSET(CPUINFO_last_spec_ctrl, struct cpu_info, last_spec_ctrl);
#  162|       OFFSET(CPUINFO_scf, struct cpu_info, scf);
#  163|       OFFSET(CPUINFO_root_pgt_changed, struct cpu_info, root_pgt_changed);

Error: COMPILER_WARNING: [#def584]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:162: Error: symbol `.ascii' is already defined
#  160|       OFFSET(CPUINFO_xen_spec_ctrl, struct cpu_info, xen_spec_ctrl);
#  161|       OFFSET(CPUINFO_last_spec_ctrl, struct cpu_info, last_spec_ctrl);
#  162|->     OFFSET(CPUINFO_scf, struct cpu_info, scf);
#  163|       OFFSET(CPUINFO_root_pgt_changed, struct cpu_info, root_pgt_changed);
#  164|       OFFSET(CPUINFO_use_pv_cr3, struct cpu_info, use_pv_cr3);

Error: COMPILER_WARNING: [#def585]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:163: Error: symbol `.ascii' is already defined
#  161|       OFFSET(CPUINFO_last_spec_ctrl, struct cpu_info, last_spec_ctrl);
#  162|       OFFSET(CPUINFO_scf, struct cpu_info, scf);
#  163|->     OFFSET(CPUINFO_root_pgt_changed, struct cpu_info, root_pgt_changed);
#  164|       OFFSET(CPUINFO_use_pv_cr3, struct cpu_info, use_pv_cr3);
#  165|       DEFINE(CPUINFO_sizeof, sizeof(struct cpu_info));

Error: COMPILER_WARNING: [#def586]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:164: Error: symbol `.ascii' is already defined
#  162|       OFFSET(CPUINFO_scf, struct cpu_info, scf);
#  163|       OFFSET(CPUINFO_root_pgt_changed, struct cpu_info, root_pgt_changed);
#  164|->     OFFSET(CPUINFO_use_pv_cr3, struct cpu_info, use_pv_cr3);
#  165|       DEFINE(CPUINFO_sizeof, sizeof(struct cpu_info));
#  166|       BLANK();

Error: COMPILER_WARNING: [#def587]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:165: Error: symbol `.ascii' is already defined
#  163|       OFFSET(CPUINFO_root_pgt_changed, struct cpu_info, root_pgt_changed);
#  164|       OFFSET(CPUINFO_use_pv_cr3, struct cpu_info, use_pv_cr3);
#  165|->     DEFINE(CPUINFO_sizeof, sizeof(struct cpu_info));
#  166|       BLANK();
#  167|   

Error: COMPILER_WARNING: [#def588]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:166: Error: symbol `.ascii' is already defined
#  164|       OFFSET(CPUINFO_use_pv_cr3, struct cpu_info, use_pv_cr3);
#  165|       DEFINE(CPUINFO_sizeof, sizeof(struct cpu_info));
#  166|->     BLANK();
#  167|   
#  168|   #ifdef CONFIG_PV

Error: COMPILER_WARNING: [#def589]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:167: Error: symbol `.ascii' is already defined
#  165|       DEFINE(CPUINFO_sizeof, sizeof(struct cpu_info));
#  166|       BLANK();
#  167|-> 
#  168|   #ifdef CONFIG_PV
#  169|       OFFSET(TRAPINFO_eip, struct trap_info, address);

Error: COMPILER_WARNING: [#def590]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:170: Error: symbol `.ascii' is already defined
#  168|   #ifdef CONFIG_PV
#  169|       OFFSET(TRAPINFO_eip, struct trap_info, address);
#  170|->     OFFSET(TRAPINFO_cs, struct trap_info, cs);
#  171|       OFFSET(TRAPINFO_flags, struct trap_info, flags);
#  172|       DEFINE(TRAPINFO_sizeof, sizeof(struct trap_info));

Error: COMPILER_WARNING: [#def591]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:171: Error: symbol `.ascii' is already defined
#  169|       OFFSET(TRAPINFO_eip, struct trap_info, address);
#  170|       OFFSET(TRAPINFO_cs, struct trap_info, cs);
#  171|->     OFFSET(TRAPINFO_flags, struct trap_info, flags);
#  172|       DEFINE(TRAPINFO_sizeof, sizeof(struct trap_info));
#  173|       BLANK();

Error: COMPILER_WARNING: [#def592]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:172: Error: symbol `.ascii' is already defined
#  170|       OFFSET(TRAPINFO_cs, struct trap_info, cs);
#  171|       OFFSET(TRAPINFO_flags, struct trap_info, flags);
#  172|->     DEFINE(TRAPINFO_sizeof, sizeof(struct trap_info));
#  173|       BLANK();
#  174|   

Error: COMPILER_WARNING: [#def593]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:173: Error: symbol `.ascii' is already defined
#  171|       OFFSET(TRAPINFO_flags, struct trap_info, flags);
#  172|       DEFINE(TRAPINFO_sizeof, sizeof(struct trap_info));
#  173|->     BLANK();
#  174|   
#  175|       OFFSET(TRAPBOUNCE_error_code, struct trap_bounce, error_code);

Error: COMPILER_WARNING: [#def594]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:174: Error: symbol `.ascii' is already defined
#  172|       DEFINE(TRAPINFO_sizeof, sizeof(struct trap_info));
#  173|       BLANK();
#  174|-> 
#  175|       OFFSET(TRAPBOUNCE_error_code, struct trap_bounce, error_code);
#  176|       OFFSET(TRAPBOUNCE_flags, struct trap_bounce, flags);

Error: COMPILER_WARNING: [#def595]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:176: Error: symbol `.ascii' is already defined
#  174|   
#  175|       OFFSET(TRAPBOUNCE_error_code, struct trap_bounce, error_code);
#  176|->     OFFSET(TRAPBOUNCE_flags, struct trap_bounce, flags);
#  177|       OFFSET(TRAPBOUNCE_cs, struct trap_bounce, cs);
#  178|       OFFSET(TRAPBOUNCE_eip, struct trap_bounce, eip);

Error: COMPILER_WARNING: [#def596]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:177: Error: symbol `.ascii' is already defined
#  175|       OFFSET(TRAPBOUNCE_error_code, struct trap_bounce, error_code);
#  176|       OFFSET(TRAPBOUNCE_flags, struct trap_bounce, flags);
#  177|->     OFFSET(TRAPBOUNCE_cs, struct trap_bounce, cs);
#  178|       OFFSET(TRAPBOUNCE_eip, struct trap_bounce, eip);
#  179|       BLANK();

Error: COMPILER_WARNING: [#def597]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:178: Error: symbol `.ascii' is already defined
#  176|       OFFSET(TRAPBOUNCE_flags, struct trap_bounce, flags);
#  177|       OFFSET(TRAPBOUNCE_cs, struct trap_bounce, cs);
#  178|->     OFFSET(TRAPBOUNCE_eip, struct trap_bounce, eip);
#  179|       BLANK();
#  180|   #endif

Error: COMPILER_WARNING: [#def598]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:179: Error: symbol `.ascii' is already defined
#  177|       OFFSET(TRAPBOUNCE_cs, struct trap_bounce, cs);
#  178|       OFFSET(TRAPBOUNCE_eip, struct trap_bounce, eip);
#  179|->     BLANK();
#  180|   #endif
#  181|   

Error: COMPILER_WARNING: [#def599]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:180: Error: symbol `.ascii' is already defined
#  178|       OFFSET(TRAPBOUNCE_eip, struct trap_bounce, eip);
#  179|       BLANK();
#  180|-> #endif
#  181|   
#  182|       OFFSET(VCPUMSR_spec_ctrl_raw, struct vcpu_msrs, spec_ctrl.raw);

Error: COMPILER_WARNING: [#def600]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:183: Error: symbol `.ascii' is already defined
#  181|   
#  182|       OFFSET(VCPUMSR_spec_ctrl_raw, struct vcpu_msrs, spec_ctrl.raw);
#  183|->     BLANK();
#  184|   
#  185|   #ifdef CONFIG_PERF_COUNTERS

Error: COMPILER_WARNING: [#def601]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:184: Error: symbol `.ascii' is already defined
#  182|       OFFSET(VCPUMSR_spec_ctrl_raw, struct vcpu_msrs, spec_ctrl.raw);
#  183|       BLANK();
#  184|-> 
#  185|   #ifdef CONFIG_PERF_COUNTERS
#  186|       DEFINE(ASM_PERFC_exceptions, PERFC_exceptions);

Error: COMPILER_WARNING: [#def602]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:191: Error: symbol `.ascii' is already defined
#  189|   
#  190|       DEFINE(IRQSTAT_shift, ilog2(sizeof(irq_cpustat_t)));
#  191|->     OFFSET(IRQSTAT_softirq_pending, irq_cpustat_t, __softirq_pending);
#  192|       BLANK();
#  193|   

Error: COMPILER_WARNING: [#def603]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:192: Error: symbol `.ascii' is already defined
#  190|       DEFINE(IRQSTAT_shift, ilog2(sizeof(irq_cpustat_t)));
#  191|       OFFSET(IRQSTAT_softirq_pending, irq_cpustat_t, __softirq_pending);
#  192|->     BLANK();
#  193|   
#  194|       OFFSET(CPUINFO_features, struct cpuinfo_x86, x86_capability);

Error: COMPILER_WARNING: [#def604]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:193: Error: symbol `.ascii' is already defined
#  191|       OFFSET(IRQSTAT_softirq_pending, irq_cpustat_t, __softirq_pending);
#  192|       BLANK();
#  193|-> 
#  194|       OFFSET(CPUINFO_features, struct cpuinfo_x86, x86_capability);
#  195|       BLANK();

Error: COMPILER_WARNING: [#def605]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:195: Error: symbol `.ascii' is already defined
#  193|   
#  194|       OFFSET(CPUINFO_features, struct cpuinfo_x86, x86_capability);
#  195|->     BLANK();
#  196|   
#  197|       OFFSET(MB_flags, multiboot_info_t, flags);

Error: COMPILER_WARNING: [#def606]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:196: Error: symbol `.ascii' is already defined
#  194|       OFFSET(CPUINFO_features, struct cpuinfo_x86, x86_capability);
#  195|       BLANK();
#  196|-> 
#  197|       OFFSET(MB_flags, multiboot_info_t, flags);
#  198|       OFFSET(MB_cmdline, multiboot_info_t, cmdline);

Error: COMPILER_WARNING: [#def607]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:198: Error: symbol `.ascii' is already defined
#  196|   
#  197|       OFFSET(MB_flags, multiboot_info_t, flags);
#  198|->     OFFSET(MB_cmdline, multiboot_info_t, cmdline);
#  199|       OFFSET(MB_mem_lower, multiboot_info_t, mem_lower);
#  200|       BLANK();

Error: COMPILER_WARNING: [#def608]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:199: Error: symbol `.ascii' is already defined
#  197|       OFFSET(MB_flags, multiboot_info_t, flags);
#  198|       OFFSET(MB_cmdline, multiboot_info_t, cmdline);
#  199|->     OFFSET(MB_mem_lower, multiboot_info_t, mem_lower);
#  200|       BLANK();
#  201|   

Error: COMPILER_WARNING: [#def609]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:200: Error: symbol `.ascii' is already defined
#  198|       OFFSET(MB_cmdline, multiboot_info_t, cmdline);
#  199|       OFFSET(MB_mem_lower, multiboot_info_t, mem_lower);
#  200|->     BLANK();
#  201|   
#  202|       DEFINE(MB2_fixed_sizeof, sizeof(multiboot2_fixed_t));

Error: COMPILER_WARNING: [#def610]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:201: Error: symbol `.ascii' is already defined
#  199|       OFFSET(MB_mem_lower, multiboot_info_t, mem_lower);
#  200|       BLANK();
#  201|-> 
#  202|       DEFINE(MB2_fixed_sizeof, sizeof(multiboot2_fixed_t));
#  203|       OFFSET(MB2_fixed_total_size, multiboot2_fixed_t, total_size);

Error: COMPILER_WARNING: [#def611]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:203: Error: symbol `.ascii' is already defined
#  201|   
#  202|       DEFINE(MB2_fixed_sizeof, sizeof(multiboot2_fixed_t));
#  203|->     OFFSET(MB2_fixed_total_size, multiboot2_fixed_t, total_size);
#  204|       OFFSET(MB2_tag_type, multiboot2_tag_t, type);
#  205|       OFFSET(MB2_tag_size, multiboot2_tag_t, size);

Error: COMPILER_WARNING: [#def612]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:204: Error: symbol `.ascii' is already defined
#  202|       DEFINE(MB2_fixed_sizeof, sizeof(multiboot2_fixed_t));
#  203|       OFFSET(MB2_fixed_total_size, multiboot2_fixed_t, total_size);
#  204|->     OFFSET(MB2_tag_type, multiboot2_tag_t, type);
#  205|       OFFSET(MB2_tag_size, multiboot2_tag_t, size);
#  206|       OFFSET(MB2_load_base_addr, multiboot2_tag_load_base_addr_t, load_base_addr);

Error: COMPILER_WARNING: [#def613]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:205: Error: symbol `.ascii' is already defined
#  203|       OFFSET(MB2_fixed_total_size, multiboot2_fixed_t, total_size);
#  204|       OFFSET(MB2_tag_type, multiboot2_tag_t, type);
#  205|->     OFFSET(MB2_tag_size, multiboot2_tag_t, size);
#  206|       OFFSET(MB2_load_base_addr, multiboot2_tag_load_base_addr_t, load_base_addr);
#  207|       OFFSET(MB2_mem_lower, multiboot2_tag_basic_meminfo_t, mem_lower);

Error: COMPILER_WARNING: [#def614]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:206: Error: symbol `.ascii' is already defined
#  204|       OFFSET(MB2_tag_type, multiboot2_tag_t, type);
#  205|       OFFSET(MB2_tag_size, multiboot2_tag_t, size);
#  206|->     OFFSET(MB2_load_base_addr, multiboot2_tag_load_base_addr_t, load_base_addr);
#  207|       OFFSET(MB2_mem_lower, multiboot2_tag_basic_meminfo_t, mem_lower);
#  208|       OFFSET(MB2_efi64_st, multiboot2_tag_efi64_t, pointer);

Error: COMPILER_WARNING: [#def615]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:207: Error: symbol `.ascii' is already defined
#  205|       OFFSET(MB2_tag_size, multiboot2_tag_t, size);
#  206|       OFFSET(MB2_load_base_addr, multiboot2_tag_load_base_addr_t, load_base_addr);
#  207|->     OFFSET(MB2_mem_lower, multiboot2_tag_basic_meminfo_t, mem_lower);
#  208|       OFFSET(MB2_efi64_st, multiboot2_tag_efi64_t, pointer);
#  209|       OFFSET(MB2_efi64_ih, multiboot2_tag_efi64_ih_t, pointer);

Error: COMPILER_WARNING: [#def616]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:208: Error: symbol `.ascii' is already defined
#  206|       OFFSET(MB2_load_base_addr, multiboot2_tag_load_base_addr_t, load_base_addr);
#  207|       OFFSET(MB2_mem_lower, multiboot2_tag_basic_meminfo_t, mem_lower);
#  208|->     OFFSET(MB2_efi64_st, multiboot2_tag_efi64_t, pointer);
#  209|       OFFSET(MB2_efi64_ih, multiboot2_tag_efi64_ih_t, pointer);
#  210|       OFFSET(MB2_tag_string, multiboot2_tag_string_t, string);

Error: COMPILER_WARNING: [#def617]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:209: Error: symbol `.ascii' is already defined
#  207|       OFFSET(MB2_mem_lower, multiboot2_tag_basic_meminfo_t, mem_lower);
#  208|       OFFSET(MB2_efi64_st, multiboot2_tag_efi64_t, pointer);
#  209|->     OFFSET(MB2_efi64_ih, multiboot2_tag_efi64_ih_t, pointer);
#  210|       OFFSET(MB2_tag_string, multiboot2_tag_string_t, string);
#  211|       BLANK();

Error: COMPILER_WARNING: [#def618]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:210: Error: symbol `.ascii' is already defined
#  208|       OFFSET(MB2_efi64_st, multiboot2_tag_efi64_t, pointer);
#  209|       OFFSET(MB2_efi64_ih, multiboot2_tag_efi64_ih_t, pointer);
#  210|->     OFFSET(MB2_tag_string, multiboot2_tag_string_t, string);
#  211|       BLANK();
#  212|   

Error: COMPILER_WARNING: [#def619]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:211: Error: symbol `.ascii' is already defined
#  209|       OFFSET(MB2_efi64_ih, multiboot2_tag_efi64_ih_t, pointer);
#  210|       OFFSET(MB2_tag_string, multiboot2_tag_string_t, string);
#  211|->     BLANK();
#  212|   
#  213|       OFFSET(DOMAIN_vm_assist, struct domain, vm_assist);

Error: COMPILER_WARNING: [#def620]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:212: Error: symbol `.ascii' is already defined
#  210|       OFFSET(MB2_tag_string, multiboot2_tag_string_t, string);
#  211|       BLANK();
#  212|-> 
#  213|       OFFSET(DOMAIN_vm_assist, struct domain, vm_assist);
#  214|       BLANK();

Error: COMPILER_WARNING: [#def621]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:214: Error: symbol `.ascii' is already defined
#  212|   
#  213|       OFFSET(DOMAIN_vm_assist, struct domain, vm_assist);
#  214|->     BLANK();
#  215|   
#  216|   #ifdef CONFIG_VIDEO

Error: COMPILER_WARNING: [#def622]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:215: Error: symbol `.ascii' is already defined
#  213|       OFFSET(DOMAIN_vm_assist, struct domain, vm_assist);
#  214|       BLANK();
#  215|-> 
#  216|   #ifdef CONFIG_VIDEO
#  217|       OFFSET(BVI_cursor_pos,      struct boot_video_info, orig_x);

Error: COMPILER_WARNING: [#def623]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:218: Error: symbol `.ascii' is already defined
#  216|   #ifdef CONFIG_VIDEO
#  217|       OFFSET(BVI_cursor_pos,      struct boot_video_info, orig_x);
#  218|->     OFFSET(BVI_video_mode,      struct boot_video_info, orig_video_mode);
#  219|       OFFSET(BVI_video_cols,      struct boot_video_info, orig_video_cols);
#  220|       OFFSET(BVI_video_lines,     struct boot_video_info, orig_video_lines);

Error: COMPILER_WARNING: [#def624]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:219: Error: symbol `.ascii' is already defined
#  217|       OFFSET(BVI_cursor_pos,      struct boot_video_info, orig_x);
#  218|       OFFSET(BVI_video_mode,      struct boot_video_info, orig_video_mode);
#  219|->     OFFSET(BVI_video_cols,      struct boot_video_info, orig_video_cols);
#  220|       OFFSET(BVI_video_lines,     struct boot_video_info, orig_video_lines);
#  221|       OFFSET(BVI_have_vga,        struct boot_video_info, orig_video_isVGA);

Error: COMPILER_WARNING: [#def625]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:220: Error: symbol `.ascii' is already defined
#  218|       OFFSET(BVI_video_mode,      struct boot_video_info, orig_video_mode);
#  219|       OFFSET(BVI_video_cols,      struct boot_video_info, orig_video_cols);
#  220|->     OFFSET(BVI_video_lines,     struct boot_video_info, orig_video_lines);
#  221|       OFFSET(BVI_have_vga,        struct boot_video_info, orig_video_isVGA);
#  222|       OFFSET(BVI_font_points,     struct boot_video_info, orig_video_points);

Error: COMPILER_WARNING: [#def626]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:221: Error: symbol `.ascii' is already defined
#  219|       OFFSET(BVI_video_cols,      struct boot_video_info, orig_video_cols);
#  220|       OFFSET(BVI_video_lines,     struct boot_video_info, orig_video_lines);
#  221|->     OFFSET(BVI_have_vga,        struct boot_video_info, orig_video_isVGA);
#  222|       OFFSET(BVI_font_points,     struct boot_video_info, orig_video_points);
#  223|       OFFSET(BVI_capabilities,    struct boot_video_info, capabilities);

Error: COMPILER_WARNING: [#def627]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:222: Error: symbol `.ascii' is already defined
#  220|       OFFSET(BVI_video_lines,     struct boot_video_info, orig_video_lines);
#  221|       OFFSET(BVI_have_vga,        struct boot_video_info, orig_video_isVGA);
#  222|->     OFFSET(BVI_font_points,     struct boot_video_info, orig_video_points);
#  223|       OFFSET(BVI_capabilities,    struct boot_video_info, capabilities);
#  224|       OFFSET(BVI_lfb_linelength,  struct boot_video_info, lfb_linelength);

Error: COMPILER_WARNING: [#def628]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:223: Error: symbol `.ascii' is already defined
#  221|       OFFSET(BVI_have_vga,        struct boot_video_info, orig_video_isVGA);
#  222|       OFFSET(BVI_font_points,     struct boot_video_info, orig_video_points);
#  223|->     OFFSET(BVI_capabilities,    struct boot_video_info, capabilities);
#  224|       OFFSET(BVI_lfb_linelength,  struct boot_video_info, lfb_linelength);
#  225|       OFFSET(BVI_lfb_width,       struct boot_video_info, lfb_width);

Error: COMPILER_WARNING: [#def629]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:224: Error: symbol `.ascii' is already defined
#  222|       OFFSET(BVI_font_points,     struct boot_video_info, orig_video_points);
#  223|       OFFSET(BVI_capabilities,    struct boot_video_info, capabilities);
#  224|->     OFFSET(BVI_lfb_linelength,  struct boot_video_info, lfb_linelength);
#  225|       OFFSET(BVI_lfb_width,       struct boot_video_info, lfb_width);
#  226|       OFFSET(BVI_lfb_height,      struct boot_video_info, lfb_height);

Error: COMPILER_WARNING: [#def630]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:225: Error: symbol `.ascii' is already defined
#  223|       OFFSET(BVI_capabilities,    struct boot_video_info, capabilities);
#  224|       OFFSET(BVI_lfb_linelength,  struct boot_video_info, lfb_linelength);
#  225|->     OFFSET(BVI_lfb_width,       struct boot_video_info, lfb_width);
#  226|       OFFSET(BVI_lfb_height,      struct boot_video_info, lfb_height);
#  227|       OFFSET(BVI_lfb_depth,       struct boot_video_info, lfb_depth);

Error: COMPILER_WARNING: [#def631]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:226: Error: symbol `.ascii' is already defined
#  224|       OFFSET(BVI_lfb_linelength,  struct boot_video_info, lfb_linelength);
#  225|       OFFSET(BVI_lfb_width,       struct boot_video_info, lfb_width);
#  226|->     OFFSET(BVI_lfb_height,      struct boot_video_info, lfb_height);
#  227|       OFFSET(BVI_lfb_depth,       struct boot_video_info, lfb_depth);
#  228|       OFFSET(BVI_lfb_base,        struct boot_video_info, lfb_base);

Error: COMPILER_WARNING: [#def632]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:227: Error: symbol `.ascii' is already defined
#  225|       OFFSET(BVI_lfb_width,       struct boot_video_info, lfb_width);
#  226|       OFFSET(BVI_lfb_height,      struct boot_video_info, lfb_height);
#  227|->     OFFSET(BVI_lfb_depth,       struct boot_video_info, lfb_depth);
#  228|       OFFSET(BVI_lfb_base,        struct boot_video_info, lfb_base);
#  229|       OFFSET(BVI_lfb_size,        struct boot_video_info, lfb_size);

Error: COMPILER_WARNING: [#def633]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:228: Error: symbol `.ascii' is already defined
#  226|       OFFSET(BVI_lfb_height,      struct boot_video_info, lfb_height);
#  227|       OFFSET(BVI_lfb_depth,       struct boot_video_info, lfb_depth);
#  228|->     OFFSET(BVI_lfb_base,        struct boot_video_info, lfb_base);
#  229|       OFFSET(BVI_lfb_size,        struct boot_video_info, lfb_size);
#  230|       OFFSET(BVI_lfb_colors,      struct boot_video_info, colors);

Error: COMPILER_WARNING: [#def634]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:229: Error: symbol `.ascii' is already defined
#  227|       OFFSET(BVI_lfb_depth,       struct boot_video_info, lfb_depth);
#  228|       OFFSET(BVI_lfb_base,        struct boot_video_info, lfb_base);
#  229|->     OFFSET(BVI_lfb_size,        struct boot_video_info, lfb_size);
#  230|       OFFSET(BVI_lfb_colors,      struct boot_video_info, colors);
#  231|       OFFSET(BVI_vesapm_seg,      struct boot_video_info, vesapm.seg);

Error: COMPILER_WARNING: [#def635]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:230: Error: symbol `.ascii' is already defined
#  228|       OFFSET(BVI_lfb_base,        struct boot_video_info, lfb_base);
#  229|       OFFSET(BVI_lfb_size,        struct boot_video_info, lfb_size);
#  230|->     OFFSET(BVI_lfb_colors,      struct boot_video_info, colors);
#  231|       OFFSET(BVI_vesapm_seg,      struct boot_video_info, vesapm.seg);
#  232|       OFFSET(BVI_vesapm_off,      struct boot_video_info, vesapm.off);

Error: COMPILER_WARNING: [#def636]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:231: Error: symbol `.ascii' is already defined
#  229|       OFFSET(BVI_lfb_size,        struct boot_video_info, lfb_size);
#  230|       OFFSET(BVI_lfb_colors,      struct boot_video_info, colors);
#  231|->     OFFSET(BVI_vesapm_seg,      struct boot_video_info, vesapm.seg);
#  232|       OFFSET(BVI_vesapm_off,      struct boot_video_info, vesapm.off);
#  233|       OFFSET(BVI_vesa_attrib,     struct boot_video_info, vesa_attrib);

Error: COMPILER_WARNING: [#def637]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:232: Error: symbol `.ascii' is already defined
#  230|       OFFSET(BVI_lfb_colors,      struct boot_video_info, colors);
#  231|       OFFSET(BVI_vesapm_seg,      struct boot_video_info, vesapm.seg);
#  232|->     OFFSET(BVI_vesapm_off,      struct boot_video_info, vesapm.off);
#  233|       OFFSET(BVI_vesa_attrib,     struct boot_video_info, vesa_attrib);
#  234|       DEFINE(BVI_size,            sizeof(struct boot_video_info));

Error: COMPILER_WARNING: [#def638]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:233: Error: symbol `.ascii' is already defined
#  231|       OFFSET(BVI_vesapm_seg,      struct boot_video_info, vesapm.seg);
#  232|       OFFSET(BVI_vesapm_off,      struct boot_video_info, vesapm.off);
#  233|->     OFFSET(BVI_vesa_attrib,     struct boot_video_info, vesa_attrib);
#  234|       DEFINE(BVI_size,            sizeof(struct boot_video_info));
#  235|       BLANK();

Error: COMPILER_WARNING: [#def639]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:234: Error: symbol `.ascii' is already defined
#  232|       OFFSET(BVI_vesapm_off,      struct boot_video_info, vesapm.off);
#  233|       OFFSET(BVI_vesa_attrib,     struct boot_video_info, vesa_attrib);
#  234|->     DEFINE(BVI_size,            sizeof(struct boot_video_info));
#  235|       BLANK();
#  236|   #endif /* CONFIG_VIDEO */

Error: COMPILER_WARNING: [#def640]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:235: Error: symbol `.ascii' is already defined
#  233|       OFFSET(BVI_vesa_attrib,     struct boot_video_info, vesa_attrib);
#  234|       DEFINE(BVI_size,            sizeof(struct boot_video_info));
#  235|->     BLANK();
#  236|   #endif /* CONFIG_VIDEO */
#  237|   }

Error: COMPILER_WARNING: [#def641]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/asm-offsets.c:236: Error: symbol `.ascii' is already defined
#  234|       DEFINE(BVI_size,            sizeof(struct boot_video_info));
#  235|       BLANK();
#  236|-> #endif /* CONFIG_VIDEO */
#  237|   }

Error: GCC_ANALYZER_WARNING (CWE-469): [#def642]
xen-4.19.0-build/xen-4.19.0/xen/include/xen/pci.h:16: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/hvm/io.h:11: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/hvm/domain.h:16: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/domain.h:7: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/domain.h:15: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/sched.h:11: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/mm.c:24: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/mm.c: scope_hint: In function ‘zap_low_mappings’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/mm.c:725:44: warning[-Wanalyzer-undefined-behavior-ptrdiff]: undefined behavior when subtracting pointers
xen-4.19.0-build/xen-4.19.0/xen/include/xen/pfn.h:7:26: note: in definition of macro ‘PFN_UP’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/config.h:27: included_from: Included from here.
<command-line>: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/mm.h:64: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/mm.c:23: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/mm.c:717:5: note: in expansion of macro ‘BUG_ON’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/rwlock.h:9: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/mm.h:7: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/mm.h:233: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/x86_64/page.h:74:37: note: in expansion of macro ‘write_atomic’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/page.h:49:5: note: in expansion of macro ‘pte_write’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/mm.c:720:5: note: in expansion of macro ‘l4e_write’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/atomic.h:37:1: note: in expansion of macro ‘build_write_atomic’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/mm.c: scope_hint: In function ‘zap_low_mappings’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/pfn.h:7:26: note: in definition of macro ‘PFN_UP’
#  723|       /* Replace with mapping of the boot trampoline only. */
#  724|       map_pages_to_xen(trampoline_phys, maddr_to_mfn(trampoline_phys),
#  725|->                      PFN_UP(trampoline_end - trampoline_start),
#  726|                        __PAGE_HYPERVISOR_RX);
#  727|   }

Error: CPPCHECK_WARNING (CWE-758): [#def643]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_emulate/0f01.c:294: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
#  292|                                 &base, mode_64bit() ? 8 : 4, ctxt, ops)) )
#  293|               goto done;
#  294|->         generate_exception_if(!is_canonical_address(base), X86_EXC_GP, 0);
#  295|           sreg.base = base;
#  296|           sreg.limit = limit;

Error: CPPCHECK_WARNING (CWE-758): [#def644]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_emulate/0fae.c:193: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
#  191|               {
#  192|                   sreg.base = *dst->reg;
#  193|->                 generate_exception_if(!is_canonical_address(sreg.base),
#  194|                                         X86_EXC_GP, 0);
#  195|               }

Error: CPPCHECK_WARNING (CWE-758): [#def645]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_emulate/x86_emulate.c:990: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
#  988|               if ( (desc_hi.b & 0x00001f00) ||
#  989|                    (seg != x86_seg_none &&
#  990|->                   !is_canonical_address((uint64_t)desc_hi.a << 32)) )
#  991|                   goto raise_exn;
#  992|           }

Error: CPPCHECK_WARNING (CWE-758): [#def646]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_emulate/x86_emulate.c:2027: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 2025|           if ( (rc = ops->read_segment(x86_seg_cs, &sreg, ctxt)) ||
# 2026|                (rc = load_seg(x86_seg_cs, imm2, 0, &cs, ctxt, ops)) ||
# 2027|->              (validate_far_branch(&cs, imm1),
# 2028|                 src.val = sreg.sel,
# 2029|                 rc = ops->write(x86_seg_ss, sp_pre_dec(op_bytes),

Error: CPPCHECK_WARNING (CWE-758): [#def647]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_emulate/x86_emulate.c:2357: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 2355|                                 &src.val, op_bytes, ctxt, ops)) ||
# 2356|                (rc = load_seg(x86_seg_cs, src.val, 1, &cs, ctxt, ops)) ||
# 2357|->              (rc = commit_far_branch(&cs, dst.val)) )
# 2358|               goto done;
# 2359|           break;

Error: CPPCHECK_WARNING (CWE-758): [#def648]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_emulate/x86_emulate.c:2413: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 2411|           _regs.eflags |= (eflags & ~mask) | X86_EFLAGS_MBS;
# 2412|           if ( (rc = load_seg(x86_seg_cs, sel, 1, &cs, ctxt, ops)) ||
# 2413|->              (rc = commit_far_branch(&cs, (uint32_t)eip)) )
# 2414|               goto done;
# 2415|           break;

Error: CPPCHECK_WARNING (CWE-758): [#def649]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_emulate/x86_emulate.c:2532: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 2530|       far_jmp:
# 2531|           if ( (rc = load_seg(x86_seg_cs, imm2, 0, &cs, ctxt, ops)) ||
# 2532|->              (rc = commit_far_branch(&cs, imm1)) )
# 2533|               goto done;
# 2534|           break;

Error: CPPCHECK_WARNING (CWE-758): [#def650]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_emulate/x86_emulate.c:3077: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 3075|            * XSA-7 (CVE-2012-0217).
# 3076|            */
# 3077|->         generate_exception_if(ctxt->cpuid->x86_vendor == X86_VENDOR_INTEL &&
# 3078|                                 op_bytes == 8 && !is_canonical_address(_regs.rcx),
# 3079|                                 X86_EXC_GP, 0);

Error: CPPCHECK_WARNING (CWE-758): [#def651]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_emulate/x86_emulate.c:3874: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 3872|   
# 3873|           generate_exception_if(!(msr_val & 0xfffc), X86_EXC_GP, 0);
# 3874|->         generate_exception_if(op_bytes == 8 &&
# 3875|                                 (!is_canonical_address(_regs.r(dx)) ||
# 3876|                                  !is_canonical_address(_regs.r(cx))),

Error: CPPCHECK_WARNING (CWE-758): [#def652]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_emulate/x86_emulate.c:6281: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 6279|           {
# 6280|           case X86_INVPCID_INDIV_ADDR:
# 6281|->              generate_exception_if(!is_canonical_address(mmvalp->xmm[1]),
# 6282|                                      X86_EXC_GP, 0);
# 6283|                /* fall through */

Error: CPPCHECK_WARNING (CWE-758): [#def653]
xen-4.19.0-build/xen-4.19.0/xen/common/bunzip2.c:140: error[shiftTooManyBits]: Shifting 32-bit value by 32 bits is undefined behaviour
#  138|   	/* Calculate result */
#  139|   	bd->inbufBitCount -= bits_wanted;
#  140|-> 	bits |= (bd->inbufBits >> bd->inbufBitCount)&((1 << bits_wanted)-1);
#  141|   
#  142|   	return bits;

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def654]
xen-4.19.0-build/xen-4.19.0/xen/common/bunzip2.c: scope_hint: In function ‘get_bits’
xen-4.19.0-build/xen-4.19.0/xen/common/bunzip2.c:140:58: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘32’) >= precision of type (‘32’)
#  138|   	/* Calculate result */
#  139|   	bd->inbufBitCount -= bits_wanted;
#  140|-> 	bits |= (bd->inbufBits >> bd->inbufBitCount)&((1 << bits_wanted)-1);
#  141|   
#  142|   	return bits;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def655]
xen-4.19.0-build/xen-4.19.0/xen/include/xen/lib.h:11: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/domain.c:9: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/domain.c: scope_hint: In function ‘domain_create’
xen-4.19.0-build/xen-4.19.0/xen/common/domain.c:672:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘config’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/xmalloc.h:36:65: note: in definition of macro ‘xzalloc_array’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/config.h:17: included_from: Included from here.
<command-line>: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/trace.h:83:14: note: in expansion of macro ‘unlikely’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/trace.h:92:29: note: in expansion of macro ‘TRACE’
xen-4.19.0-build/xen-4.19.0/xen/common/domain.c:630:5: note: in expansion of macro ‘TRACE_TIME’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/xmalloc.h:36:65: note: in definition of macro ‘xzalloc_array’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/xmalloc.h:36:65: note: in definition of macro ‘xzalloc_array’
#  670|       {
#  671|           err = -ENOMEM;
#  672|->         d->vcpu = xzalloc_array(struct vcpu *, config->max_vcpus);
#  673|           if ( !d->vcpu )
#  674|               goto fail;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def656]
xen-4.19.0-build/xen-4.19.0/xen/common/domain.c:734:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘config’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/trace.h:83:14: note: in expansion of macro ‘unlikely’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/trace.h:92:29: note: in expansion of macro ‘TRACE’
xen-4.19.0-build/xen-4.19.0/xen/common/domain.c:630:5: note: in expansion of macro ‘TRACE_TIME’
xen-4.19.0-build/xen-4.19.0/xen/common/domain.c: scope_hint: In function ‘domain_create’
xen-4.19.0-build/xen-4.19.0/xen/common/domain.c:710:11: note: in expansion of macro ‘is_idle_domain’
#  732|           atomic_inc(&d->pause_count);
#  733|   
#  734|->         if ( (err = evtchn_init(d, config->max_evtchn_port)) != 0 )
#  735|               goto fail;
#  736|           init_status |= INIT_evtchn;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def657]
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘getdomaininfo’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:74:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h: scope_hint: In function ‘getdomaininfo’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘getdomaininfo’
#   72|       memset(info, 0, sizeof(*info));
#   73|   
#   74|->     info->domain = d->domain_id;
#   75|       info->max_vcpu_id = XEN_INVALID_MAX_VCPU_ID;
#   76|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def658]
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘vnuma_init’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:226:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h: scope_hint: In function ‘vnuma_init’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘vnuma_init’
#  224|       nr_vnodes = uinfo->nr_vnodes;
#  225|   
#  226|->     if ( uinfo->nr_vcpus != d->max_vcpus || uinfo->pad != 0 )
#  227|           return ERR_PTR(ret);
#  228|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def659]
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:348:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘do_domctl’
#  346|           ret = -EINVAL;
#  347|           if ( (d == current->domain) || /* no domain_pause() */
#  348|->              (vcpu >= d->max_vcpus) || ((v = d->vcpu[vcpu]) == NULL) )
#  349|               break;
#  350|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def660]
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:462:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘do_domctl’
#  460|           ret = -EINVAL;
#  461|           if ( (d == current->domain) || /* no domain_pause() */
#  462|->              (max != d->max_vcpus) )   /* max_vcpus set up in createdomain */
#  463|               break;
#  464|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def661]
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:556:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘do_domctl’
#  554|   
#  555|           ret = -EINVAL;
#  556|->         if ( op->u.vcpucontext.vcpu >= d->max_vcpus ||
#  557|                (v = d->vcpu[op->u.vcpucontext.vcpu]) == NULL ||
#  558|                v == current ) /* no vcpu_pause() */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def662]
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:605:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘do_domctl’
#  603|   
#  604|           ret = -EINVAL;
#  605|->         if ( op->u.getvcpuinfo.vcpu >= d->max_vcpus )
#  606|               break;
#  607|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def663]
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:634:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘do_domctl’
#  632|            * the meantime, while tot > max, all new allocations are disallowed.
#  633|            */
#  634|->         d->max_pages = min(new_max, (uint64_t)(typeof(d->max_pages))-1);
#  635|           nrspin_unlock(&d->page_alloc_lock);
#  636|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def664]
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:650:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/config.h:17: included_from: Included from here.
<command-line>: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/compiler.h:21:43: note: in definition of macro ‘unlikely’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/current.h:100:32: note: in expansion of macro ‘get_current’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:645:28: note: in expansion of macro ‘current’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘do_domctl’
#  648|           {
#  649|               domain_pause(d);
#  650|->             d->debugger_attached = !!op->u.setdebugging.enable;
#  651|               domain_unpause(d); /* causes guest to latch new status */
#  652|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def665]
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:772:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘do_domctl’
#  770|   
#  771|           ret = -EINVAL;
#  772|->         if ( (d == e) || (d->target != NULL) )
#  773|           {
#  774|               put_domain(e);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def666]
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:793:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘do_domctl’
#  791|   
#  792|       case XEN_DOMCTL_subscribe:
#  793|->         d->suspend_evtchn = op->u.subscribe.port;
#  794|           break;
#  795|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def667]
xen-4.19.0-build/xen-4.19.0/xen/common/earlycpio.c: scope_hint: In function ‘find_cpio_data’
xen-4.19.0-build/xen-4.19.0/xen/common/earlycpio.c:123:40: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ch[12]’
xen-4.19.0-build/xen-4.19.0/xen/common/earlycpio.c:33:23: note: in definition of macro ‘ALIGN’
xen-4.19.0-build/xen-4.19.0/xen/common/earlycpio.c:123:24: note: in expansion of macro ‘PTR_ALIGN’
xen-4.19.0-build/xen-4.19.0/xen/common/earlycpio.c:33:23: note: in definition of macro ‘ALIGN’
xen-4.19.0-build/xen-4.19.0/xen/common/earlycpio.c:123:24: note: in expansion of macro ‘PTR_ALIGN’
#  121|   		len -= cpio_header_len;
#  122|   
#  123|-> 		dptr = PTR_ALIGN(p + ch[C_NAMESIZE], 4);
#  124|   		nptr = PTR_ALIGN(dptr + ch[C_FILESIZE], 4);
#  125|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def668]
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c: scope_hint: In function ‘gnttab_usage_print’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c:4323:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sha’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/sched.h:7: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c:408:5: note: in expansion of macro ‘percpu_read_lock’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/rwlock.h: scope_hint: In function ‘gnttab_usage_print’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/rwlock.h: scope_hint: In function ‘gnttab_usage_print’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c:408:5: note: in expansion of macro ‘percpu_read_lock’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c: scope_hint: In function ‘gnttab_usage_print’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c:466:12: note: in expansion of macro ‘_active_entry’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c: scope_hint: In function ‘gnttab_usage_print’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c: scope_hint: In function ‘gnttab_usage_print’
# 4321|           if ( gt->gt_version == 1 )
# 4322|           {
# 4323|->             status = sha->flags;
# 4324|               frame = shared_entry_v1(gt, ref).frame;
# 4325|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def669]
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c:4337:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sha’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c:408:5: note: in expansion of macro ‘percpu_read_lock’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/rwlock.h: scope_hint: In function ‘gnttab_usage_print’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/rwlock.h: scope_hint: In function ‘gnttab_usage_print’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c:408:5: note: in expansion of macro ‘percpu_read_lock’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c: scope_hint: In function ‘gnttab_usage_print’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c:466:12: note: in expansion of macro ‘_active_entry’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c: scope_hint: In function ‘gnttab_usage_print’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c: scope_hint: In function ‘gnttab_usage_print’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c:4328:21: note: in expansion of macro ‘shared_entry_v2’
# 4335|           printk("[0x%03x]  %5d 0x%"PRI_mfn" 0x%08x      %5d 0x%06"PRIx64" 0x%02x\n",
# 4336|                  ref, act->domid, mfn_x(act->mfn), act->pin,
# 4337|->                sha->domid, frame, status);
# 4338|           active_entry_release(act);
# 4339|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def670]
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c:194:15: warning[-Wanalyzer-null-argument]: use of NULL ‘str’ where non-null expected
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c:590:14: note: in expansion of macro ‘elf_uval’
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c:597:13: note: in expansion of macro ‘elf_uval’
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-private.h:43: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  192|           break;
#  193|       case XEN_ELFNOTE_PAE_MODE:
#  194|->         if ( !strcmp(str, "yes") )
#  195|               parms->pae = XEN_PAE_EXTCR3;
#  196|           if ( strstr(str, "bimodal") )

Error: GCC_ANALYZER_WARNING (CWE-688): [#def671]
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c:200:15: warning[-Wanalyzer-null-argument]: use of NULL ‘str’ where non-null expected
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c:590:14: note: in expansion of macro ‘elf_uval’
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c:597:13: note: in expansion of macro ‘elf_uval’
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  198|           break;
#  199|       case XEN_ELFNOTE_BSD_SYMTAB:
#  200|->         if ( !strcmp(str, "yes") )
#  201|               parms->bsd_symtab = 1;
#  202|           break;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def672]
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c:18: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c: scope_hint: In function ‘elf_xen_parse_note’
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-private.h:89:6: warning[-Wanalyzer-null-argument]: use of NULL ‘str’ where non-null expected
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c:182:9: note: in expansion of macro ‘safe_strcpy’
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-private.h:73: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c:590:14: note: in expansion of macro ‘elf_uval’
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c:597:13: note: in expansion of macro ‘elf_uval’
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c:182:9: note: in expansion of macro ‘safe_strcpy’
<built-in>: note: argument 2 of ‘__builtin_strncpy’ must be non-null
#   87|   
#   88|   #define safe_strcpy(d,s)                        \
#   89|-> do { strncpy((d),(s),sizeof((d))-1);            \
#   90|        (d)[sizeof((d))-1] = '\0';                 \
#   91|   } while (0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def673]
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c: scope_hint: In function ‘rangeset_add_range’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:152:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:50:5: note: in expansion of macro ‘list_for_each_entry’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/msr.h:9: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/time.h:5: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/time.h:78: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/spinlock.h:5: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/sched.h:6: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:387:5: note: in expansion of macro ‘container_of’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:495:18: note: in expansion of macro ‘list_entry’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:50:5: note: in expansion of macro ‘list_for_each_entry’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c: scope_hint: In function ‘rangeset_add_range’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/sched.h:5: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:65:16: note: in expansion of macro ‘NULL’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c: scope_hint: In function ‘rangeset_add_range’
#  150|           {
#  151|               x = first_range(r);
#  152|->             x->s = s;
#  153|           }
#  154|           else if ( (x->e < s) && ((x->e + 1) != s) )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def674]
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:152:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘x’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/rwlock.h: scope_hint: In function ‘rangeset_add_range’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c: scope_hint: In function ‘rangeset_add_range’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/rwlock.h: scope_hint: In function ‘rangeset_add_range’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c: scope_hint: In function ‘rangeset_add_range’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:50:5: note: in expansion of macro ‘list_for_each_entry’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:387:5: note: in expansion of macro ‘container_of’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:495:18: note: in expansion of macro ‘list_entry’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:50:5: note: in expansion of macro ‘list_for_each_entry’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c: scope_hint: In function ‘rangeset_add_range’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:50:5: note: in expansion of macro ‘list_for_each_entry’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c: scope_hint: In function ‘rangeset_add_range’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:65:16: note: in expansion of macro ‘NULL’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c: scope_hint: In function ‘rangeset_add_range’
#  150|           {
#  151|               x = first_range(r);
#  152|->             x->s = s;
#  153|           }
#  154|           else if ( (x->e < s) && ((x->e + 1) != s) )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def675]
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:157:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:50:5: note: in expansion of macro ‘list_for_each_entry’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:387:5: note: in expansion of macro ‘container_of’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:495:18: note: in expansion of macro ‘list_entry’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:50:5: note: in expansion of macro ‘list_for_each_entry’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c: scope_hint: In function ‘rangeset_add_range’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:50:5: note: in expansion of macro ‘list_for_each_entry’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:387:5: note: in expansion of macro ‘container_of’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:495:18: note: in expansion of macro ‘list_entry’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:50:5: note: in expansion of macro ‘list_for_each_entry’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c: scope_hint: In function ‘rangeset_add_range’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:74:16: note: in expansion of macro ‘NULL’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c: scope_hint: In function ‘rangeset_add_range’
#  155|           {
#  156|               x = next_range(r, x);
#  157|->             x->s = s;
#  158|           }
#  159|           

Error: GCC_ANALYZER_WARNING (CWE-476): [#def676]
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:157:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘x’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:50:5: note: in expansion of macro ‘list_for_each_entry’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:387:5: note: in expansion of macro ‘container_of’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:495:18: note: in expansion of macro ‘list_entry’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:50:5: note: in expansion of macro ‘list_for_each_entry’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c: scope_hint: In function ‘rangeset_add_range’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c: scope_hint: In function ‘rangeset_add_range’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:74:16: note: in expansion of macro ‘NULL’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c: scope_hint: In function ‘rangeset_add_range’
#  155|           {
#  156|               x = next_range(r, x);
#  157|->             x->s = s;
#  158|           }
#  159|           

Error: GCC_ANALYZER_WARNING (CWE-476): [#def677]
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:160:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘x’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:50:5: note: in expansion of macro ‘list_for_each_entry’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:387:5: note: in expansion of macro ‘container_of’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:495:18: note: in expansion of macro ‘list_entry’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c:50:5: note: in expansion of macro ‘list_for_each_entry’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c: scope_hint: In function ‘rangeset_add_range’
xen-4.19.0-build/xen-4.19.0/xen/common/rangeset.c: scope_hint: In function ‘rangeset_add_range’
#  158|           }
#  159|           
#  160|->         x->e = (y->e > e) ? y->e : e;
#  161|   
#  162|           for ( ; ; )

Error: GCC_ANALYZER_WARNING (CWE-835): [#def678]
xen-4.19.0-build/xen-4.19.0/xen/common/sched/cpupool.c: scope_hint: In function ‘cpupool_gran_init’
xen-4.19.0-build/xen-4.19.0/xen/common/sched/cpupool.c:137:16: warning[-Wanalyzer-infinite-loop]: infinite loop
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/smp.h:10: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/smp.h:4: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/processor.h:10: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/msr.h:15: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/time.h:5: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/time.h:78: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/spinlock.h:5: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/cpu.h:5: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/sched/cpupool.c:14: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/msr.h:9: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/kernel.h:34:40: note: in definition of macro ‘min_t’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/bitops.h:348:36: note: in expansion of macro ‘find_next_bit’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/cpumask.h:212:39: note: in expansion of macro ‘find_first_bit’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/cpumask.h:212:16: note: in expansion of macro ‘min_t’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/cpumask.h:459:36: note: in expansion of macro ‘for_each_cpu’
xen-4.19.0-build/xen-4.19.0/xen/common/sched/cpupool.c:117:5: note: in expansion of macro ‘for_each_online_cpu’
#  135|       while ( gran == 0 )
#  136|       {
#  137|->         gran = cpupool_check_granularity(opt_sched_granularity);
#  138|   
#  139|           if ( gran == 0 )

Error: GCC_ANALYZER_WARNING (CWE-457): [#def679]
xen-4.19.0-build/xen-4.19.0/tools/libs/guest/xg_dom_decompress_unsafe_lzma.c:8: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/unlzma.c: scope_hint: In function ‘unlzma’
xen-4.19.0-build/xen-4.19.0/xen/common/unlzma.c:575:49: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*rc.ptr’
#  573|   		if (rc.ptr >= rc.buffer_end)
#  574|   			rc_read(&rc);
#  575|-> 		((unsigned char *)&header)[i] = *rc.ptr++;
#  576|   	}
#  577|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def680]
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/pci.c: scope_hint: In function ‘assign_device’
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/pci.c:1486:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pdev’
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/pci.c:17: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h: scope_hint: In function ‘assign_device’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/pci.c: scope_hint: In function ‘assign_device’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/hvm/io.h:11: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/hvm/domain.h:16: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/domain.h:7: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/domain.h:15: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/sched.h:11: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/pci.h:37:20: note: in expansion of macro ‘PCI_SBDF4_’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/pci.h:41:25: note: in expansion of macro ‘PCI_SBDF3_’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/pci.h:42:25: note: in expansion of macro ‘PCI__’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/pci.h:46:30: note: in expansion of macro ‘PCI_’
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/pci.c:1480:31: note: in expansion of macro ‘PCI_SBDF’
# 1484|       /* Do not allow broken devices to be assigned to guests. */
# 1485|       rc = -EBADF;
# 1486|->     if ( pdev->broken && d != hardware_domain && d != dom_io )
# 1487|           goto done;
# 1488|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def681]
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/x86/hvm.c: scope_hint: In function ‘pt_pirq_iterate’
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/x86/hvm.c:744:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pirqs[i]’
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/x86/hvm.c:742:47: note: in expansion of macro ‘pirq_dpci’
#  742|               struct hvm_pirq_dpci *pirq_dpci = pirq_dpci(pirqs[i]);
#  743|   
#  744|->             pirq = pirqs[i]->pirq;
#  745|               if ( (pirq_dpci->flags & HVM_IRQ_DPCI_MAPPED) )
#  746|               {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def682]
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/x86/hvm.c:745:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/x86/hvm.c:742:47: note: in expansion of macro ‘pirq_dpci’
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/x86/hvm.c:742:47: note: in expansion of macro ‘pirq_dpci’
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/x86/hvm.c:35:12: note: in expansion of macro ‘pirq_dpci’
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/x86/hvm.c:35:12: note: in expansion of macro ‘pirq_dpci’
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/x86/hvm.c: scope_hint: In function ‘pt_pirq_iterate’
#  743|   
#  744|               pirq = pirqs[i]->pirq;
#  745|->             if ( (pirq_dpci->flags & HVM_IRQ_DPCI_MAPPED) )
#  746|               {
#  747|                   rc = cb(d, pirq_dpci, arg);

Error: GCC_ANALYZER_WARNING (CWE-469): [#def683]
xen-4.19.0-build/xen-4.19.0/xen/drivers/vpci/vpci.c: scope_hint: In function ‘vpci_assign_device’
xen-4.19.0-build/xen-4.19.0/xen/drivers/vpci/vpci.c:41:41: warning[-Wanalyzer-undefined-behavior-ptrdiff]: undefined behavior when subtracting pointers
xen-4.19.0-build/xen-4.19.0/xen/drivers/vpci/vpci.c:162:22: note: in expansion of macro ‘NUM_VPCI_INIT’
xen-4.19.0-build/xen-4.19.0/xen/drivers/vpci/vpci.c:162:22: note: in expansion of macro ‘NUM_VPCI_INIT’
#   39|   extern vpci_register_init_t *const __start_vpci_array[];
#   40|   extern vpci_register_init_t *const __end_vpci_array[];
#   41|-> #define NUM_VPCI_INIT (__end_vpci_array - __start_vpci_array)
#   42|   
#   43|   #ifdef CONFIG_HAS_VPCI_GUEST_SUPPORT

Error: GCC_ANALYZER_WARNING (CWE-476): [#def684]
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iocap.h: scope_hint: In function ‘iomem_deny_access’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iocap.h:35:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h: scope_hint: In function ‘iomem_deny_access’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘iomem_deny_access’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iocap.h:49:30: note: in definition of macro ‘iomem_access_permitted’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/current.h:100:32: note: in expansion of macro ‘get_current’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:687:38: note: in expansion of macro ‘current’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘iomem_deny_access’
#   33|                                       unsigned long e)
#   34|   {
#   35|->     int ret = rangeset_remove_range(d->iomem_caps, s, e);
#   36|   
#   37|       if ( !ret && !is_iommu_enabled(d) && !cache_flush_permitted(d) )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def685]
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iocap.h:49:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:721:15: note: in expansion of macro ‘iomem_access_permitted’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iocap.h:49:30: note: in definition of macro ‘iomem_access_permitted’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/current.h:100:32: note: in expansion of macro ‘get_current’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:720:38: note: in expansion of macro ‘current’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:721:15: note: in expansion of macro ‘iomem_access_permitted’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:721:15: note: in expansion of macro ‘iomem_access_permitted’
#   47|   
#   48|   #define iomem_access_permitted(d, s, e)                 \
#   49|->     rangeset_contains_range((d)->iomem_caps, s, e)
#   50|   
#   51|   #define irq_permit_access(d, i)                         \

Error: GCC_ANALYZER_WARNING (CWE-476): [#def686]
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iocap.h:52:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:670:19: note: in expansion of macro ‘irq_permit_access’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iocap.h:63:27: note: in definition of macro ‘pirq_access_permitted’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/current.h:100:32: note: in expansion of macro ‘get_current’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:666:37: note: in expansion of macro ‘current’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/pci.h:13: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/hvm/io.h:11: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/hvm/domain.h:16: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/domain.h:7: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/domain.h:15: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/sched.h:11: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/irq.h:209:37: note: in expansion of macro ‘pirq_field’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iocap.h:64:17: note: in expansion of macro ‘domain_pirq_to_irq’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:666:15: note: in expansion of macro ‘pirq_access_permitted’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:670:19: note: in expansion of macro ‘irq_permit_access’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:670:19: note: in expansion of macro ‘irq_permit_access’
#   50|   
#   51|   #define irq_permit_access(d, i)                         \
#   52|->     rangeset_add_singleton((d)->irq_caps, i)
#   53|   #define irq_deny_access(d, i)                           \
#   54|       rangeset_remove_singleton((d)->irq_caps, i)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def687]
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iocap.h:54:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:672:19: note: in expansion of macro ‘irq_deny_access’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iocap.h:63:27: note: in definition of macro ‘pirq_access_permitted’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/current.h:100:32: note: in expansion of macro ‘get_current’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:666:37: note: in expansion of macro ‘current’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/irq.h:209:37: note: in expansion of macro ‘pirq_field’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iocap.h:64:17: note: in expansion of macro ‘domain_pirq_to_irq’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:666:15: note: in expansion of macro ‘pirq_access_permitted’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:672:19: note: in expansion of macro ‘irq_deny_access’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:672:19: note: in expansion of macro ‘irq_deny_access’
#   52|       rangeset_add_singleton((d)->irq_caps, i)
#   53|   #define irq_deny_access(d, i)                           \
#   54|->     rangeset_remove_singleton((d)->irq_caps, i)
#   55|   #define irqs_permit_access(d, s, e)                     \
#   56|       rangeset_add_range((d)->irq_caps, s, e)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def688]
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/alternative.h:7: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:7: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/nospec.h:12: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/spinlock.h:4: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/sched.h:6: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iocap.h:10: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c:27: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c: scope_hint: In function ‘gnttab_prepare_for_transfer’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/lib.h:17:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘raw_shah’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c:2218:18: note: in expansion of macro ‘ACCESS_ONCE’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c:3813: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/config.h:17: included_from: Included from here.
<command-line>: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/compiler.h:21:43: note: in definition of macro ‘unlikely’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/current.h:100:32: note: in expansion of macro ‘get_current’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/guest_access.h:33:18: note: in expansion of macro ‘current’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/guest_access.h:152:5: note: in expansion of macro ‘__raw_copy_from_guest’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/guest_access.h:181:5: note: in expansion of macro ‘__copy_from_guest_offset’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c:2282:23: note: in expansion of macro ‘__copy_from_guest’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c: scope_hint: In function ‘gnttab_prepare_for_transfer’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/iocap.h:13: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/iocap.h:12: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c:2293:19: note: in expansion of macro ‘get_gfn_unshare’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/desc.h:4: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/processor.h:13: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/msr.h:15: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c:2312:16: note: in expansion of macro ‘mfn_to_page’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/compiler.h:21:43: note: in definition of macro ‘unlikely’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/compiler.h:21:43: note: in definition of macro ‘unlikely’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c: scope_hint: In function ‘gnttab_prepare_for_transfer’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c:2388:14: note: in expansion of macro ‘unlikely’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/compiler.h:21:43: note: in definition of macro ‘unlikely’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/compiler.h:21:43: note: in definition of macro ‘unlikely’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c: scope_hint: In function ‘gnttab_prepare_for_transfer’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/compiler.h:21:43: note: in definition of macro ‘unlikely’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c: scope_hint: In function ‘gnttab_prepare_for_transfer’
xen-4.19.0-build/xen-4.19.0/xen/common/grant_table.c:2218:18: note: in expansion of macro ‘ACCESS_ONCE’
#   15|               (void)(typeof(x))0; /* Scalar typecheck. */ \
#   16|               (volatile typeof(x) *)&(x); })
#   17|-> #define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
#   18|   
#   19|   struct domain;

Error: GCC_ANALYZER_WARNING (CWE-835): [#def689]
xen-4.19.0-build/xen-4.19.0/xen/include/xen/timer.h:14: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/sched.h:9: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/physdev.c:5: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/physdev.c: scope_hint: In function ‘physdev_hvm_map_pirq’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:494:10: warning[-Wanalyzer-infinite-loop]: infinite loop
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/physdev.c:58:13: note: in expansion of macro ‘list_for_each_entry’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/sched.h:7: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/physdev.c:58:13: note: in expansion of macro ‘list_for_each_entry’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/physdev.c:58:13: note: in expansion of macro ‘list_for_each_entry’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/msr.h:9: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/time.h:5: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/time.h:78: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/spinlock.h:5: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/sched.h:6: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:387:5: note: in expansion of macro ‘container_of’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:495:18: note: in expansion of macro ‘list_entry’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/physdev.c:58:13: note: in expansion of macro ‘list_for_each_entry’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/physdev.c:58:13: note: in expansion of macro ‘list_for_each_entry’
#  492|   #define list_for_each_entry(pos, head, member)                          \
#  493|       for ((pos) = list_entry((head)->next, typeof(*(pos)), member);      \
#  494|->          &(pos)->member != (head);                                      \
#  495|            (pos) = list_entry((pos)->member.next, typeof(*(pos)), member))
#  496|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def690]
xen-4.19.0-build/xen-4.19.0/xen/include/xen/sched.h:1170:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/emul-i8254.c: scope_hint: In function ‘get_count’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/emul-i8254.c:53:17: note: in definition of macro ‘get_guest_time’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/emul-i8254.c:44:25: note: in expansion of macro ‘pt_global_vcpu_target’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/emul-i8254.c:59:35: note: in expansion of macro ‘vpit_vcpu’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/emul-i8254.c:59:20: note: in expansion of macro ‘get_guest_time’
# 1168|   static always_inline bool is_hvm_vcpu(const struct vcpu *v)
# 1169|   {
# 1170|->     return is_hvm_domain(v->domain);
# 1171|   }
# 1172|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def691]
xen-4.19.0-build/xen-4.19.0/xen/include/xen/sched.h:1170:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘v’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/traps.c: scope_hint: In function ‘show_registers’
xen-4.19.0-build/xen-4.19.0/xen/include/asm-generic/percpu.h:8: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/generated/asm/percpu.h:1: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/percpu.h:30: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/msr.h:7: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/time.h:5: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/time.h:78: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/spinlock.h:5: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/sched.h:6: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/regs.h:9:37: note: in expansion of macro ‘guest_cpu_user_regs’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/traps.c:133:10: note: in expansion of macro ‘guest_mode’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/x86_64/traps.c: scope_hint: In function ‘show_registers’
# 1168|   static always_inline bool is_hvm_vcpu(const struct vcpu *v)
# 1169|   {
# 1170|->     return is_hvm_domain(v->domain);
# 1171|   }
# 1172|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def692]
xen-4.19.0-build/xen-4.19.0/xen/include/xen/lib.h:12: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-private.h:20: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c:18: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c: scope_hint: In function ‘elf_xen_parse_note’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/string.h:40:24: warning[-Wanalyzer-null-argument]: use of NULL ‘str’ where non-null expected
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c:194:15: note: in expansion of macro ‘strcmp’
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-private.h:21: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c:590:14: note: in expansion of macro ‘elf_uval’
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c:597:13: note: in expansion of macro ‘elf_uval’
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c:301:14: note: in expansion of macro ‘strcmp’
xen-4.19.0-build/xen-4.19.0/xen/common/libelf/libelf-dominfo.c:194:15: note: in expansion of macro ‘strcmp’
<built-in>: note: argument 1 of ‘__builtin_strcmp’ must be non-null
#   38|   
#   39|   #ifndef __HAVE_ARCH_STRCMP
#   40|-> #define strcmp(s1, s2) __builtin_strcmp(s1, s2)
#   41|   #endif
#   42|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def693]
xen-4.19.0-build/xen-4.19.0/xen/include/xen/lib.h:12: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/alternative.h:7: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/bitops.h:8: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/bitops.h:7: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/system.h:4: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:11: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/acpi.h:41: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/amd/iommu_acpi.c:20: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/amd/iommu_acpi.c: scope_hint: In function ‘parse_ivhd_device_special’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/string.h:72:25: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/amd/iommu_acpi.c:841:17: note: in expansion of macro ‘memset’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/list.h:10: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/amd/iommu_acpi.c:1081:5: note: in expansion of macro ‘BUG_ON’
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/amd/iommu.h:153:5: note: in expansion of macro ‘list_for_each_entry’
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/amd/iommu_acpi.c:114:5: note: in expansion of macro ‘for_each_amd_iommu’
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/amd/iommu_acpi.c:27: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/amd/iommu_acpi.c:765:5: note: in expansion of macro ‘AMD_IOMMU_DEBUG’
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/amd/iommu_acpi.c:23: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/amd/iommu_acpi.c:798:18: note: in expansion of macro ‘IO_APIC_ID’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/lib.h:11: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/amd/iommu_acpi.c:833:46: note: in expansion of macro ‘xmalloc_array’
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/amd/iommu_acpi.c: scope_hint: In function ‘parse_ivhd_device_special’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/string.h:72:48: note: in definition of macro ‘memset’
xen-4.19.0-build/xen-4.19.0/xen/drivers/passthrough/amd/iommu_acpi.c:841:17: note: in expansion of macro ‘memset’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#   70|   
#   71|   #ifndef __HAVE_ARCH_MEMSET
#   72|-> #define memset(s, c, n) __builtin_memset(s, c, n)
#   73|   #endif
#   74|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def694]
xen-4.19.0-build/xen-4.19.0/xen/include/xen/lib.h:12: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:10: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/include/xen/string.h:76:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:640:9: note: in expansion of macro ‘memcpy’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/arch/x86/include/asm/nospec.h:13:5: note: in expansion of macro ‘alternative’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c: scope_hint: In function ‘do_domctl’
xen-4.19.0-build/xen-4.19.0/xen/common/domctl.c:640:9: note: in expansion of macro ‘memcpy’
#   74|   
#   75|   #ifndef __HAVE_ARCH_MEMCPY
#   76|-> #define memcpy(d, s, n) __builtin_memcpy(d, s, n)
#   77|   #endif
#   78|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def695]
xen-4.19.0-build/xen-4.19.0/xen/lib/list-sort.c: scope_hint: In function ‘merge_and_restore_back_links’
xen-4.19.0-build/xen-4.19.0/xen/lib/list-sort.c:92:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘list’
xen-4.19.0-build/xen-4.19.0/xen/include/xen/lib.h:12: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/lib/list-sort.c:18: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/lib/list-sort.c:127:9: note: in expansion of macro ‘memset’
#   90|   			(*cmp)(priv, tail->next, tail->next);
#   91|   
#   92|-> 		tail->next->prev = tail;
#   93|   		tail = tail->next;
#   94|   	} while (tail->next);

Error: CPPCHECK_WARNING (CWE-457): [#def696]
xen-4.19.0-build/xen-4.19.0/xen/lib/x86/cpuid.c:468: error[uninitvar]: Uninitialized variable: data.leaf
#  466|           l = (struct cpuid_leaf){ data.a, data.b, data.c, data.d };
#  467|   
#  468|->         switch ( data.leaf )
#  469|           {
#  470|           case 0 ... ARRAY_SIZE(p->basic.raw) - 1:

Error: CPPCHECK_WARNING (CWE-457): [#def697]
xen-4.19.0-build/xen-4.19.0/xen/lib/x86/msr.c:80: error[uninitvar]: Uninitialized variable: data.flags
#   78|               return -EFAULT;
#   79|   
#   80|->         if ( data.flags ) /* .flags MBZ */
#   81|           {
#   82|               rc = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def698]
xen-4.19.0-build/xen-4.19.0/xen/tools/fixdep.c: scope_hint: In function ‘parse_dep_file’
xen-4.19.0-build/xen-4.19.0/xen/tools/fixdep.c:327:30: warning[-Wanalyzer-out-of-bounds]: heap-based buffer under-read
#  325|   		is_last = (*p == '\0');
#  326|   		/* Is the token we found a target name? */
#  327|-> 		is_target = (*(p-1) == ':');
#  328|   		/* Don't write any target names into the dependency file */
#  329|   		if (is_target) {

Error: GCC_ANALYZER_WARNING (CWE-126): [#def699]
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/confdata.c: scope_hint: In function ‘make_parent_dir’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/confdata.c:96:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lkc.h:9: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/confdata.c:19: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/confdata.c:1001:9: note: in expansion of macro ‘for_all_symbols’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/confdata.c:9: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/confdata.c:96:9: note: read of 1 byte from after the end of ‘depfile_path’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/confdata.c:96:9: note: valid subscripts for ‘depfile_path’ are ‘[0]’ to ‘[4095]’
#   94|   	char *p;
#   95|   
#   96|-> 	strncpy(tmp, path, sizeof(tmp));
#   97|   	tmp[sizeof(tmp) - 1] = 0;
#   98|   

Error: CPPCHECK_WARNING (CWE-404): [#def700]
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/confdata.c:1090: error[resourceLeak]: Resource leak: tristate
# 1088|   		fclose(out);
# 1089|   		fclose(tristate);
# 1090|-> 		return 1;
# 1091|   	}
# 1092|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def701]
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lkc.h:9: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c:12: included_from: Included from here.
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c: scope_hint: In function ‘sym_check_choice_deps’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/expr.h:52:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c:1218:9: note: in expansion of macro ‘expr_list_for_each_sym’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c: scope_hint: In function ‘sym_check_choice_deps’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/expr.h:207:30: note: in definition of macro ‘for_all_properties’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c:72:9: note: in expansion of macro ‘for_all_choices’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/expr.h:210:34: note: in expansion of macro ‘for_all_properties’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c:72:9: note: in expansion of macro ‘for_all_choices’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c: scope_hint: In function ‘sym_check_choice_deps’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c: scope_hint: In function ‘sym_check_choice_deps’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c: scope_hint: In function ‘sym_check_choice_deps’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/expr.h:207:30: note: in definition of macro ‘for_all_properties’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c:72:9: note: in expansion of macro ‘for_all_choices’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/expr.h:210:34: note: in expansion of macro ‘for_all_properties’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c:72:9: note: in expansion of macro ‘for_all_choices’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c: scope_hint: In function ‘sym_check_choice_deps’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c: scope_hint: In function ‘sym_check_choice_deps’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c: scope_hint: In function ‘sym_check_choice_deps’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c: scope_hint: In function ‘sym_check_choice_deps’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c:1218:9: note: in expansion of macro ‘expr_list_for_each_sym’
#   50|   
#   51|   #define expr_list_for_each_sym(l, e, s) \
#   52|-> 	for (e = (l); e && (s = e->right.sym); e = e->left.expr)
#   53|   
#   54|   struct expr_value {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def702]
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_switch_to_buffer’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:277:46: warning[-Wanalyzer-malloc-leak]: leak of ‘yy_create_buffer(zconf_fopen(*file.name), 16384)’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3724:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:4268:30: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:4268:30: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_switch_to_buffer’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3724:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3724:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3691:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_switch_to_buffer’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3594:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3724:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
#  275|    */
#  276|   #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
#  277|->                           ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
#  278|                             : NULL)
#  279|   /* Same as previous macro, but useful when we know that the buffer stack is not

Error: GCC_ANALYZER_WARNING (CWE-401): [#def703]
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_get_next_buffer’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3338:46: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3502:38: note: in expansion of macro ‘YY_CURRENT_BUFFER_LVALUE’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_get_next_buffer’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_get_next_buffer’
# 3336|   					b->yy_buf_size *= 2;
# 3337|   
# 3338|-> 				b->yy_ch_buf = (char *)
# 3339|   					/* Include room in for 2 EOB chars. */
# 3340|   					yyrealloc( (void *) b->yy_ch_buf,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def704]
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_switch_to_buffer’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3594:12: warning[-Wanalyzer-file-leak]: leak of FILE
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:4268:30: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:4268:30: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3724:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3691:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3691:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3594:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
# 3592|        */
# 3593|   	yyensure_buffer_stack ();
# 3594|-> 	if ( YY_CURRENT_BUFFER == new_buffer )
# 3595|   		return;
# 3596|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def705]
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3594:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:4268:30: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:4268:30: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_switch_to_buffer’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3724:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3724:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3691:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_switch_to_buffer’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3594:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
# 3592|        */
# 3593|   	yyensure_buffer_stack ();
# 3594|-> 	if ( YY_CURRENT_BUFFER == new_buffer )
# 3595|   		return;
# 3596|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def706]
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_create_buffer’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3644:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:4268:30: note: in expansion of macro ‘YY_CURRENT_BUFFER’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c: scope_hint: In function ‘yy_create_buffer’
# 3642|   	 */
# 3643|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 3644|-> 	if ( ! b->yy_ch_buf )
# 3645|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 3646|   

Error: CPPCHECK_WARNING (CWE-476): [#def707]
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3684: warning[nullPointer]: Possible null pointer dereference: b
# 3682|   	yy_flush_buffer( b );
# 3683|   
# 3684|-> 	b->yy_input_file = file;
# 3685|   	b->yy_fill_buffer = 1;
# 3686|   

Error: CPPCHECK_WARNING (CWE-476): [#def708]
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/lexer.lex.c:3685: warning[nullPointer]: Possible null pointer dereference: b
# 3683|   
# 3684|   	b->yy_input_file = file;
# 3685|-> 	b->yy_fill_buffer = 1;
# 3686|   
# 3687|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: GCC_ANALYZER_WARNING (CWE-476): [#def709]
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c: scope_hint: In function ‘sym_check_print_recursive’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c:1073:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘prop’
# 1071|   		}
# 1072|   		if (stack->sym == last_sym)
# 1073|-> 			fprintf(stderr, "%s:%d:error: recursive dependency detected!\n",
# 1074|   				prop->file->name, prop->lineno);
# 1075|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def710]
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c: scope_hint: In function ‘sym_check_deps’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c:1250:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c: scope_hint: In function ‘sym_check_deps’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/expr.h:207:30: note: in definition of macro ‘for_all_properties’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c:72:9: note: in expansion of macro ‘for_all_choices’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/expr.h:210:34: note: in expansion of macro ‘for_all_properties’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c:72:9: note: in expansion of macro ‘for_all_choices’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c: scope_hint: In function ‘sym_check_deps’
# 1248|   	struct property *prop;
# 1249|   
# 1250|-> 	if (sym->flags & SYMBOL_CHECK) {
# 1251|   		sym_check_print_recursive(sym);
# 1252|   		return sym;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def711]
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c:1300:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c: scope_hint: In function ‘sym_check_deps’
xen-4.19.0-build/xen-4.19.0/xen/tools/kconfig/symbol.c: scope_hint: In function ‘sym_check_deps’
# 1298|   struct symbol *prop_get_symbol(struct property *prop)
# 1299|   {
# 1300|-> 	if (prop->expr && (prop->expr->type == E_SYMBOL ||
# 1301|   			   prop->expr->type == E_LIST))
# 1302|   		return prop->expr->left.sym;

Error: GCC_ANALYZER_WARNING (CWE-415): [#def712]
xen-4.19.0-build/xen-4.19.0/xen/tools/symbols.c: scope_hint: In function ‘read_symbol’
xen-4.19.0-build/xen-4.19.0/xen/tools/symbols.c:120:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘0’
#  118|   	     input_format == fmt_sysv && !*type && stype == '?' && sym &&
#  119|   	     sym[1] && strchr("cSsoh", sym[1]) && !sym[2])) {
#  120|-> 		free(filename);
#  121|   		filename = *str ? strdup(str) : NULL;
#  122|   		goto skip_tail;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def713]
xen-4.19.0-build/xen-4.19.0/xen/tools/symbols.c:175:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*s.sym’
#  173|   		s->type = stype; /* As s->sym[0] ends mangled. */
#  174|   	}
#  175|-> 	s->sym[0] = stype;
#  176|   	rc = 0;
#  177|   

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-123.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namexen-4.19.0-4.fc42
store-results-to/tmp/tmpsul8ghsh/xen-4.19.0-4.fc42.tar.xz
time-created2024-11-13 03:52:32
time-finished2024-11-13 04:08:11
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpsul8ghsh/xen-4.19.0-4.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpsul8ghsh/xen-4.19.0-4.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9