postgresql16-16.3-6.fc42

List of Findings

Error: SHELLCHECK_WARNING (CWE-457): [#def1]
/usr/bin/postgresql-setup:9:18: warning[SC2154]: var_content is referenced but not assigned.
#    7|       for v in PGSETUP_DEBUG PGSETUP_INITDB_OPTIONS PGSETUP_PGUPGRADE_OPTIONS; do
#    8|           eval var_content=\$$v
#    9|->         test -z "$var_content" && continue
#   10|           cmd+=$v="$(printf %q "$var_content") "
#   11|       done

Error: SHELLCHECK_WARNING (CWE-571): [#def2]
/usr/bin/postgresql-setup:223:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  221|   
#  222|       # must see previous version in PG_VERSION
#  223|->     local old_data_version="`cat "$upgradefrom_data/PG_VERSION"`"
#  224|       if [ ! -f "$upgradefrom_data/PG_VERSION" -o \
#  225|            x"$old_data_version" != x"$upgradefrom_major" ]

Error: SHELLCHECK_WARNING (CWE-477): [#def3]
/usr/bin/postgresql-setup:224:46: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#  222|       # must see previous version in PG_VERSION
#  223|       local old_data_version="`cat "$upgradefrom_data/PG_VERSION"`"
#  224|->     if [ ! -f "$upgradefrom_data/PG_VERSION" -o \
#  225|            x"$old_data_version" != x"$upgradefrom_major" ]
#  226|       then

Error: SHELLCHECK_WARNING (CWE-457): [#def4]
/usr/bin/postgresql-setup:225:36: warning[SC2154]: upgradefrom_major is referenced but not assigned.
#  223|       local old_data_version="`cat "$upgradefrom_data/PG_VERSION"`"
#  224|       if [ ! -f "$upgradefrom_data/PG_VERSION" -o \
#  225|->          x"$old_data_version" != x"$upgradefrom_major" ]
#  226|       then
#  227|           error $"Cannot upgrade because the database in $upgradefrom_data is of"

Error: SHELLCHECK_WARNING (CWE-457): [#def5]
/usr/bin/postgresql-setup:231:16: warning[SC2154]: upgradefrom_engine is referenced but not assigned.
#  229|           exit 1
#  230|       fi
#  231|->     if [ ! -x "$upgradefrom_engine/postgres" ]; then
#  232|           error $"Please install the $upgradefrom_package package."
#  233|           exit 5

Error: SHELLCHECK_WARNING (CWE-457): [#def6]
/usr/bin/postgresql-setup:232:36: warning[SC2154]: upgradefrom_package is referenced but not assigned.
#  230|       fi
#  231|       if [ ! -x "$upgradefrom_engine/postgres" ]; then
#  232|->         error $"Please install the $upgradefrom_package package."
#  233|           exit 5
#  234|       fi

Error: SHELLCHECK_WARNING (CWE-457): [#def7]
/usr/bin/postgresql-setup:278:14: warning[SC2154]: upgradefrom_scls is referenced but not assigned.
#  276|   
#  277|       scls_upgrade_hacks=
#  278|->     test -n "$upgradefrom_scls" && {
#  279|           debug "scls [$upgradefrom_scls] will be enabled"
#  280|           scls_upgrade_hacks="source scl_source enable $upgradefrom_scls"

Error: SHELLCHECK_WARNING (CWE-457): [#def8]
/usr/bin/postgresql-setup:283:12: warning[SC2154]: upgradefrom_redhat_sockets_hack is referenced but not assigned.
#  281|       }
#  282|   
#  283|->     test x"$upgradefrom_redhat_sockets_hack" = xyes && {
#  284|           debug "upgrading from redhat server"
#  285|           socket_hacks="export REDHAT_PGUPGRADE_FROM_RHEL=yes"

Error: SHELLCHECK_WARNING (CWE-457): [#def9]
/usr/bin/postgresql-setup:288:14: warning[SC2154]: upgradefrom_pghost_override is referenced but not assigned.
#  286|       }
#  287|   
#  288|->     test -n "$upgradefrom_pghost_override" && {
#  289|           pghost_override="export PGHOST='$upgradefrom_pghost_override'"
#  290|       }

Error: SHELLCHECK_WARNING (CWE-252): [#def10]
/usr/bin/postgresql-setup:307:9: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
#  305|           # After creating the empty new-format database, do the upgrade
#  306|           (
#  307|->         cd # pg_upgrade writes to $PWD
#  308|           eval "
#  309|               $scls_upgrade_hacks

Error: SHELLCHECK_WARNING (CWE-457): [#def11]
/usr/bin/postgresql-setup:324:14: warning[SC2154]: add_options is referenced but not assigned.
#  322|               --new-port="$PGPORT" \
#  323|               --username=postgres \
#  324|->             "${add_options[@]}" \
#  325|               >>"$upgrade_log" 2>>"$upgrade_log"
#  326|           )

Error: SHELLCHECK_WARNING (CWE-571): [#def12]
/usr/bin/postgresql-setup:366:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  364|       test 0 = 1 && return 0
#  365|   
#  366|->     local nr_out="`systemctl show -p $nr_option $option_service.service 2>/dev/null`"
#  367|       if [[ "$nr_out" != "$nr_option=no" ]]; then
#  368|           error   $"Note that systemd configuration for '$option_service' changed."

Error: SHELLCHECK_WARNING (CWE-571): [#def13]
/usr/bin/postgresql-setup:380:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  378|       local service="$1"
#  379|   
#  380|->     local systemd_env="$(systemctl show -p Environment "${service}.service")" \
#  381|           || { return; }
#  382|   

Error: SHELLCHECK_WARNING (CWE-571): [#def14]
/usr/bin/postgresql-setup:427:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  425|       local service="$2"
#  426|   
#  427|->     local envfiles="$(systemctl show -p EnvironmentFiles "${service}.service")"\
#  428|           || return
#  429|   

Error: SHELLCHECK_WARNING (CWE-563): [#def15]
/usr/bin/postgresql-setup:470:11: warning[SC2034]: port appears unused. Verify use (or export if used externally).
#  468|   {
#  469|       local data=
#  470|->     local port=
#  471|       local unit_pgport=
#  472|       local unit_pgdata=

Error: SHELLCHECK_WARNING (CWE-563): [#def16]
/usr/bin/postgresql-setup:630:13: warning[SC2034]: option_debug appears unused. Verify use (or export if used externally).
#  628|   
#  629|           --debug)
#  630|->             option_debug=1
#  631|               shift
#  632|               ;;

Error: SHELLCHECK_WARNING (CWE-457): [#def17]
/usr/bin/postgresql-setup:705:23: warning[SC2154]: upgradefrom_data_default is referenced but not assigned.
#  703|   
#  704|   if test upgrade = "$option_mode"; then
#  705|->     upgradefrom_data="$upgradefrom_data_default"
#  706|   
#  707|       if test -z "$option_upgradefrom_unit"; then

Error: SHELLCHECK_WARNING (CWE-457): [#def18]
/usr/bin/postgresql-setup:716:37: warning[SC2154]: upgradefrom_id is referenced but not assigned.
#  714|               # a different one, e.g. from postgresql92 to postgresql93, or from
#  715|               # postgresql (system version) to postgresql94 (scl).
#  716|->             option_upgradefrom_unit=$upgradefrom_id
#  717|   
#  718|               # Try to predict situations: postgresql93@second -> postgresql94@second

Error: SHELLCHECK_WARNING (CWE-398): [#def19]
/usr/bin/postgresql-setup:744:13: warning[SC2247]: Flip leading $ and " if this should be a quoted substitution.
#  742|       error_q $"In order to use this script, please remove data_directory entry from"
#  743|       error_q $"configuration file and make sure that the default location"
#  744|->     error_q $"(PGDATA) in .service file is valid."
#  745|       exit 1
#  746|   fi

Error: SHELLCHECK_WARNING (CWE-457): [#def20]
/usr/bin/postgresql-upgrade:149:33: warning[SC2154]: upgradefrom_major is referenced but not assigned.
#  147|   old_data_version="$(cat "$version_file")"
#  148|   
#  149|-> if test "$old_data_version" != "$upgradefrom_major"; then
#  150|       error   "Cannot upgrade because the database in $option_datadir of"
#  151|       error_q "version $old_data_version but it should be $upgradefrom_major"

Error: SHELLCHECK_WARNING (CWE-457): [#def21]
/usr/bin/postgresql-upgrade:155:12: warning[SC2154]: upgradefrom_engine is referenced but not assigned.
#  153|   fi
#  154|   
#  155|-> if [ ! -x "$upgradefrom_engine/postgres" ]; then
#  156|       error "Please install the $upgradefrom_package package."
#  157|       exit 1

Error: SHELLCHECK_WARNING (CWE-457): [#def22]
/usr/bin/postgresql-upgrade:156:31: warning[SC2154]: upgradefrom_package is referenced but not assigned.
#  154|   
#  155|   if [ ! -x "$upgradefrom_engine/postgres" ]; then
#  156|->     error "Please install the $upgradefrom_package package."
#  157|       exit 1
#  158|   fi

Error: SHELLCHECK_WARNING (CWE-457): [#def23]
/usr/bin/postgresql-upgrade:167:26: warning[SC2154]: data is referenced but not assigned.
#  165|   test -r "$conffile" || {
#  166|       error "config file $conffile is not readable or does not exist"
#  167|->     die "Old cluster in '$data' does not seem to be initialized"
#  168|   }
#  169|   

Error: SHELLCHECK_WARNING (CWE-456): [#def24]
/usr/lib64/pgsql/pgxs/config/install-sh:53:3: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
#   51|   doit=${DOITPROG-}
#   52|   if test -z "$doit"; then
#   53|->   doit_exec=exec
#   54|   else
#   55|     doit_exec=$doit

Error: SHELLCHECK_WARNING: [#def25]
/usr/lib64/pgsql/pgxs/config/install-sh:142:33: warning[SC2320]: This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
#  140|   	shift;;
#  141|   
#  142|->     --help) echo "$usage"; exit $?;;
#  143|   
#  144|       -m) mode=$2

Error: SHELLCHECK_WARNING: [#def26]
/usr/lib64/pgsql/pgxs/config/install-sh:167:47: warning[SC2320]: This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
#  165|       -T) no_target_directory=true;;
#  166|   
#  167|->     --version) echo "$0 $scriptversion"; exit $?;;
#  168|   
#  169|       --)	shift

Error: SHELLCHECK_WARNING (CWE-456): [#def27]
/usr/lib64/pgsql/pgxs/config/install-sh:188:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  186|       if test -n "$dst_arg"; then
#  187|         # $@ is not empty: it contains at least $arg.
#  188|->       set fnord "$@" "$dst_arg"
#  189|         shift # fnord
#  190|       fi

Error: SHELLCHECK_WARNING (CWE-569): [#def28]
/usr/lib64/pgsql/pgxs/config/install-sh:212:18: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#  210|   if test -z "$dir_arg"; then
#  211|     do_exit='(exit $ret); exit $ret'
#  212|->   trap "ret=129; $do_exit" 1
#  213|     trap "ret=130; $do_exit" 2
#  214|     trap "ret=141; $do_exit" 13

Error: SHELLCHECK_WARNING (CWE-569): [#def29]
/usr/lib64/pgsql/pgxs/config/install-sh:213:18: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#  211|     do_exit='(exit $ret); exit $ret'
#  212|     trap "ret=129; $do_exit" 1
#  213|->   trap "ret=130; $do_exit" 2
#  214|     trap "ret=141; $do_exit" 13
#  215|     trap "ret=143; $do_exit" 15

Error: SHELLCHECK_WARNING (CWE-569): [#def30]
/usr/lib64/pgsql/pgxs/config/install-sh:214:18: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#  212|     trap "ret=129; $do_exit" 1
#  213|     trap "ret=130; $do_exit" 2
#  214|->   trap "ret=141; $do_exit" 13
#  215|     trap "ret=143; $do_exit" 15
#  216|   

Error: SHELLCHECK_WARNING (CWE-398): [#def31]
/usr/lib64/pgsql/pgxs/config/install-sh:214:28: warning[SC2172]: Trapping signals by number is not well defined. Prefer signal names.
#  212|     trap "ret=129; $do_exit" 1
#  213|     trap "ret=130; $do_exit" 2
#  214|->   trap "ret=141; $do_exit" 13
#  215|     trap "ret=143; $do_exit" 15
#  216|   

Error: SHELLCHECK_WARNING (CWE-569): [#def32]
/usr/lib64/pgsql/pgxs/config/install-sh:215:18: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#  213|     trap "ret=130; $do_exit" 2
#  214|     trap "ret=141; $do_exit" 13
#  215|->   trap "ret=143; $do_exit" 15
#  216|   
#  217|     # Set umask so as not to create temps with too-generous modes.

Error: SHELLCHECK_WARNING: [#def33]
/usr/lib64/pgsql/pgxs/config/install-sh:348:31: warning[SC3028]: In POSIX sh, RANDOM is undefined.
#  346|   	    ;;
#  347|   	  *)
#  348|-> 	    tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
#  349|   	    trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
#  350|   

Error: SHELLCHECK_WARNING (CWE-457): [#def34]
/usr/lib64/pgsql/pgxs/config/install-sh:349:11: warning[SC2154]: ret is referenced but not assigned.
#  347|   	  *)
#  348|   	    tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
#  349|-> 	    trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
#  350|   
#  351|   	    if (umask $mkdir_umask &&

Error: SHELLCHECK_WARNING (CWE-456): [#def35]
/usr/lib64/pgsql/pgxs/config/install-sh:404:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  402|         IFS=/
#  403|         $posix_glob set -f
#  404|->       set fnord $dstdir
#  405|         shift
#  406|         $posix_glob set +f

Error: SHELLCHECK_WARNING (CWE-456): [#def36]
/usr/lib64/pgsql/pgxs/config/install-sh:480:12: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  478|          eval "$initialize_posix_glob" &&
#  479|          $posix_glob set -f &&
#  480|->        set X $old && old=:$2:$4:$5:$6 &&
#  481|          set X $new && new=:$2:$4:$5:$6 &&
#  482|          $posix_glob set +f &&

Error: SHELLCHECK_WARNING (CWE-456): [#def37]
/usr/lib64/pgsql/pgxs/config/install-sh:481:12: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  479|          $posix_glob set -f &&
#  480|          set X $old && old=:$2:$4:$5:$6 &&
#  481|->        set X $new && new=:$2:$4:$5:$6 &&
#  482|          $posix_glob set +f &&
#  483|   

Error: SHELLCHECK_WARNING (CWE-456): [#def38]
/usr/lib64/pgsql/postgresql-15/lib/pgxs/config/install-sh:53:3: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
#   51|   doit=${DOITPROG-}
#   52|   if test -z "$doit"; then
#   53|->   doit_exec=exec
#   54|   else
#   55|     doit_exec=$doit

Error: SHELLCHECK_WARNING: [#def39]
/usr/lib64/pgsql/postgresql-15/lib/pgxs/config/install-sh:142:33: warning[SC2320]: This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
#  140|   	shift;;
#  141|   
#  142|->     --help) echo "$usage"; exit $?;;
#  143|   
#  144|       -m) mode=$2

Error: SHELLCHECK_WARNING: [#def40]
/usr/lib64/pgsql/postgresql-15/lib/pgxs/config/install-sh:167:47: warning[SC2320]: This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
#  165|       -T) no_target_directory=true;;
#  166|   
#  167|->     --version) echo "$0 $scriptversion"; exit $?;;
#  168|   
#  169|       --)	shift

Error: SHELLCHECK_WARNING (CWE-456): [#def41]
/usr/lib64/pgsql/postgresql-15/lib/pgxs/config/install-sh:188:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  186|       if test -n "$dst_arg"; then
#  187|         # $@ is not empty: it contains at least $arg.
#  188|->       set fnord "$@" "$dst_arg"
#  189|         shift # fnord
#  190|       fi

Error: SHELLCHECK_WARNING (CWE-569): [#def42]
/usr/lib64/pgsql/postgresql-15/lib/pgxs/config/install-sh:212:18: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#  210|   if test -z "$dir_arg"; then
#  211|     do_exit='(exit $ret); exit $ret'
#  212|->   trap "ret=129; $do_exit" 1
#  213|     trap "ret=130; $do_exit" 2
#  214|     trap "ret=141; $do_exit" 13

Error: SHELLCHECK_WARNING (CWE-569): [#def43]
/usr/lib64/pgsql/postgresql-15/lib/pgxs/config/install-sh:213:18: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#  211|     do_exit='(exit $ret); exit $ret'
#  212|     trap "ret=129; $do_exit" 1
#  213|->   trap "ret=130; $do_exit" 2
#  214|     trap "ret=141; $do_exit" 13
#  215|     trap "ret=143; $do_exit" 15

Error: SHELLCHECK_WARNING (CWE-569): [#def44]
/usr/lib64/pgsql/postgresql-15/lib/pgxs/config/install-sh:214:18: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#  212|     trap "ret=129; $do_exit" 1
#  213|     trap "ret=130; $do_exit" 2
#  214|->   trap "ret=141; $do_exit" 13
#  215|     trap "ret=143; $do_exit" 15
#  216|   

Error: SHELLCHECK_WARNING (CWE-398): [#def45]
/usr/lib64/pgsql/postgresql-15/lib/pgxs/config/install-sh:214:28: warning[SC2172]: Trapping signals by number is not well defined. Prefer signal names.
#  212|     trap "ret=129; $do_exit" 1
#  213|     trap "ret=130; $do_exit" 2
#  214|->   trap "ret=141; $do_exit" 13
#  215|     trap "ret=143; $do_exit" 15
#  216|   

Error: SHELLCHECK_WARNING (CWE-569): [#def46]
/usr/lib64/pgsql/postgresql-15/lib/pgxs/config/install-sh:215:18: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#  213|     trap "ret=130; $do_exit" 2
#  214|     trap "ret=141; $do_exit" 13
#  215|->   trap "ret=143; $do_exit" 15
#  216|   
#  217|     # Set umask so as not to create temps with too-generous modes.

Error: SHELLCHECK_WARNING: [#def47]
/usr/lib64/pgsql/postgresql-15/lib/pgxs/config/install-sh:348:31: warning[SC3028]: In POSIX sh, RANDOM is undefined.
#  346|   	    ;;
#  347|   	  *)
#  348|-> 	    tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
#  349|   	    trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
#  350|   

Error: SHELLCHECK_WARNING (CWE-457): [#def48]
/usr/lib64/pgsql/postgresql-15/lib/pgxs/config/install-sh:349:11: warning[SC2154]: ret is referenced but not assigned.
#  347|   	  *)
#  348|   	    tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
#  349|-> 	    trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
#  350|   
#  351|   	    if (umask $mkdir_umask &&

Error: SHELLCHECK_WARNING (CWE-456): [#def49]
/usr/lib64/pgsql/postgresql-15/lib/pgxs/config/install-sh:404:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  402|         IFS=/
#  403|         $posix_glob set -f
#  404|->       set fnord $dstdir
#  405|         shift
#  406|         $posix_glob set +f

Error: SHELLCHECK_WARNING (CWE-456): [#def50]
/usr/lib64/pgsql/postgresql-15/lib/pgxs/config/install-sh:480:12: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  478|          eval "$initialize_posix_glob" &&
#  479|          $posix_glob set -f &&
#  480|->        set X $old && old=:$2:$4:$5:$6 &&
#  481|          set X $new && new=:$2:$4:$5:$6 &&
#  482|          $posix_glob set +f &&

Error: SHELLCHECK_WARNING (CWE-456): [#def51]
/usr/lib64/pgsql/postgresql-15/lib/pgxs/config/install-sh:481:12: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  479|          $posix_glob set -f &&
#  480|          set X $old && old=:$2:$4:$5:$6 &&
#  481|->        set X $new && new=:$2:$4:$5:$6 &&
#  482|          $posix_glob set +f &&
#  483|   

Error: SHELLCHECK_WARNING (CWE-758): [#def52]
/usr/share/postgresql-setup/library.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> die()     { echo >&2 $"FATAL: $@" ; exit 1 ; }
#    2|   error()   { echo >&2 $"ERROR: $@" ; }
#    3|   error_q() { echo >&2 $"       $@" ; }

Error: SHELLCHECK_WARNING (CWE-457): [#def53]
/usr/share/postgresql-setup/library.sh:8:19: warning[SC2154]: option_debug is referenced but not assigned.
#    6|   info()    { echo >&2 $" * $@" ; }
#    7|   info_q()  { echo >&2 $"   $@" ; }
#    8|-> debug()   { test "$option_debug" != "1" || echo >&2 $"DEBUG: $@";  }
#    9|   
#   10|   

Error: SHELLCHECK_WARNING (CWE-563): [#def54]
/usr/share/postgresql-setup/library.sh:67:11: warning[SC2034]: id appears unused. Verify use (or export if used externally).
#   65|       local action="$1"
#   66|       local expected_id="$2"
#   67|->     local id temp_major temp_engine temp_data_default temp_description
#   68|   
#   69|       local upgrade_confdir="/etc/postgresql-setup/upgrade"

Error: SHELLCHECK_WARNING (CWE-563): [#def55]
/usr/share/postgresql-setup/library.sh:67:14: warning[SC2034]: temp_major appears unused. Verify use (or export if used externally).
#   65|       local action="$1"
#   66|       local expected_id="$2"
#   67|->     local id temp_major temp_engine temp_data_default temp_description
#   68|   
#   69|       local upgrade_confdir="/etc/postgresql-setup/upgrade"

Error: SHELLCHECK_WARNING (CWE-563): [#def56]
/usr/share/postgresql-setup/library.sh:67:25: warning[SC2034]: temp_engine appears unused. Verify use (or export if used externally).
#   65|       local action="$1"
#   66|       local expected_id="$2"
#   67|->     local id temp_major temp_engine temp_data_default temp_description
#   68|   
#   69|       local upgrade_confdir="/etc/postgresql-setup/upgrade"

Error: SHELLCHECK_WARNING (CWE-563): [#def57]
/usr/share/postgresql-setup/library.sh:67:37: warning[SC2034]: temp_data_default appears unused. Verify use (or export if used externally).
#   65|       local action="$1"
#   66|       local expected_id="$2"
#   67|->     local id temp_major temp_engine temp_data_default temp_description
#   68|   
#   69|       local upgrade_confdir="/etc/postgresql-setup/upgrade"

Error: SHELLCHECK_WARNING (CWE-563): [#def58]
/usr/share/postgresql-setup/library.sh:67:55: warning[SC2034]: temp_description appears unused. Verify use (or export if used externally).
#   65|       local action="$1"
#   66|       local expected_id="$2"
#   67|->     local id temp_major temp_engine temp_data_default temp_description
#   68|   
#   69|       local upgrade_confdir="/etc/postgresql-setup/upgrade"

Error: SHELLCHECK_WARNING (CWE-457): [#def59]
/usr/share/postgresql-setup/library.sh:81:19: warning[SC2154]: __pg_conf_id is referenced but not assigned.
#   79|   
#   80|           if test help = "$action"; then
#   81|->             echo "$__pg_conf_id - $__pg_conf_description"
#   82|           elif test list = "$action"; then
#   83|               echo "$__pg_conf_id $__pg_conf_major"

Error: SHELLCHECK_WARNING (CWE-457): [#def60]
/usr/share/postgresql-setup/library.sh:81:35: warning[SC2154]: __pg_conf_description is referenced but not assigned.
#   79|   
#   80|           if test help = "$action"; then
#   81|->             echo "$__pg_conf_id - $__pg_conf_description"
#   82|           elif test list = "$action"; then
#   83|               echo "$__pg_conf_id $__pg_conf_major"

Error: SHELLCHECK_WARNING (CWE-457): [#def61]
/usr/share/postgresql-setup/library.sh:83:33: warning[SC2154]: __pg_conf_major is referenced but not assigned.
#   81|               echo "$__pg_conf_id - $__pg_conf_description"
#   82|           elif test list = "$action"; then
#   83|->             echo "$__pg_conf_id $__pg_conf_major"
#   84|           elif test config = "$action"; then
#   85|               test "$__pg_conf_id" = "$expected_id" || continue

Error: SHELLCHECK_WARNING (CWE-457): [#def62]
/usr/share/postgresql-setup/library.sh:95:30: warning[SC2154]: upgrade_from_scls is referenced but not assigned.
#   93|                   case "$i" in
#   94|                   scls)
#   95|->                     test -z "$upgrade_from_scls" \
#   96|                           || [[ $upgrade_from_scls =~ ^[-a-zA-Z0-9_\ ]+$ ]] \
#   97|                           || die "$cm: bad '$i' value '$upgrade_from_scls'"

Error: SHELLCHECK_WARNING (CWE-457): [#def63]
/usr/share/postgresql-setup/library.sh:100:27: warning[SC2154]: upgradefrom_redhat_sockets_hack is referenced but not assigned.
#   98|                       ;;
#   99|                   redhat_sockets_hack)
#  100|->                     case "$upgradefrom_redhat_sockets_hack" in
#  101|                       yes|no|'')
#  102|                           ;;

Error: SHELLCHECK_WARNING: [#def64]
/usr/share/postgresql-setup/postgresql_pkg_tests.sh:9:11: warning[SC3028]: In POSIX sh, RANDOM is undefined.
#    7|   try_random_port ()
#    8|   {
#    9|->     _port=$RANDOM
#   10|       if test -n "$_port" && eval '_port=$(( $_port + 32000 ))' 2>/dev/null; then
#   11|           echo "$_port"

Error: SHELLCHECK_WARNING: [#def65]
/usr/share/postgresql-setup/postgresql_pkg_tests.sh:86:9: warning[SC3011]: In POSIX sh, here-strings are undefined.
#   84|   {
#   85|       psql -d postgres --set=user="$1" --set=pass="$2" -tA \
#   86|->         <<<"ALTER USER :\"user\" WITH ENCRYPTED PASSWORD :'pass';"
#   87|   }
#   88|   

Error: CPPCHECK_WARNING (CWE-457): [#def66]
postgresql16-16.3-build/postgresql-16.3/contrib/bloom/blvacuum.c:153: warning[uninitvar]: Uninitialized variable: notFullPage
#  151|   
#  152|   	metaData = BloomPageGetMeta(page);
#  153|-> 	memcpy(metaData->notFullPage, notFullPage, sizeof(BlockNumber) * countPage);
#  154|   	metaData->nStart = 0;
#  155|   	metaData->nEnd = countPage;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def67]
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubeparse.c: scope_hint: In function ‘cube_yyparse’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubeparse.c:454:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubeparse.c:439:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubeparse.c:979:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubeparse.c:439:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubeparse.c:979:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubeparse.c:439:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubeparse.c:979:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  452|   #  if defined __GNUC__ && 1 < __GNUC__
#  453|   #   define YYCOPY(Dst, Src, Count) \
#  454|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  455|   #  else
#  456|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c:1299:46: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c:1301:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c:1301:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c: scope_hint: In function ‘yy_get_next_buffer’
# 1297|   					b->yy_buf_size *= 2;
# 1298|   
# 1299|-> 				b->yy_ch_buf = (char *)
# 1300|   					/* Include room in for 2 EOB chars. */
# 1301|   					yyrealloc( (void *) b->yy_ch_buf,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c: scope_hint: In function ‘cube_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c:1584:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c:1570:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c:1574:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c: scope_hint: In function ‘cube_yy_create_buffer’
# 1582|   	 */
# 1583|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1584|-> 	if ( ! b->yy_ch_buf )
# 1585|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 1586|   

Error: CPPCHECK_WARNING (CWE-476): [#def70]
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c:1624: warning[nullPointer]: Possible null pointer dereference: b
# 1622|   	yy_flush_buffer( b );
# 1623|   
# 1624|-> 	b->yy_input_file = file;
# 1625|   	b->yy_fill_buffer = 1;
# 1626|   

Error: CPPCHECK_WARNING (CWE-476): [#def71]
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c:1625: warning[nullPointer]: Possible null pointer dereference: b
# 1623|   
# 1624|   	b->yy_input_file = file;
# 1625|-> 	b->yy_fill_buffer = 1;
# 1626|   
# 1627|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c: scope_hint: In function ‘cube_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c:1838:45: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c:1822:17: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c:1831:24: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c: scope_hint: In function ‘cube_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c:1840:13: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/contrib/cube/cubescan.c:1772:17: note: in expansion of macro ‘yy_scan_buffer’
# 1836|   		buf[i] = yybytes[i];
# 1837|   
# 1838|-> 	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1839|   
# 1840|   	b = yy_scan_buffer( buf, n );

Error: CPPCHECK_WARNING (CWE-457): [#def73]
postgresql16-16.3-build/postgresql-16.3/contrib/dblink/dblink.c:673: error[legacyUninitvar]: Uninitialized variable: conn
#  671|   
#  672|   	/* async query send */
#  673|-> 	retval = PQsendQuery(conn, sql);
#  674|   	if (retval != 1)
#  675|   		elog(NOTICE, "could not send query: %s", pchomp(PQerrorMessage(conn)));

Error: CPPCHECK_WARNING (CWE-457): [#def74]
postgresql16-16.3-build/postgresql-16.3/contrib/dblink/dblink.c:673: error[legacyUninitvar]: Uninitialized variable: sql
#  671|   
#  672|   	/* async query send */
#  673|-> 	retval = PQsendQuery(conn, sql);
#  674|   	if (retval != 1)
#  675|   		elog(NOTICE, "could not send query: %s", pchomp(PQerrorMessage(conn)));

Error: CPPCHECK_WARNING (CWE-768): [#def75]
postgresql16-16.3-build/postgresql-16.3/contrib/hstore/hstore_io.c:466: error[unknownEvaluationOrder]: Expression '(entry)++->entry' depends on order of evaluation of side effects
#  464|   
#  465|   	for (i = 0; i < pcount; i++)
#  466|-> 		HS_ADDITEM(entry, buf, ptr, pairs[i]);
#  467|   
#  468|   	HS_FINALIZE(out, pcount, buf, ptr);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
postgresql16-16.3-build/postgresql-16.3/contrib/hstore/hstore_op.c: scope_hint: In function ‘hstore_delete_array’
postgresql16-16.3-build/postgresql-16.3/contrib/hstore/hstore_op.c:341:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/contrib/hstore/hstore_op.c:10: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/contrib/hstore/hstore.h:28:29: note: in definition of macro ‘HSE_ISFIRST’
postgresql16-16.3-build/postgresql-16.3/contrib/hstore/hstore.h:81:42: note: in expansion of macro ‘HSE_LEN’
postgresql16-16.3-build/postgresql-16.3/contrib/hstore/hstore_op.c:339:59: note: in expansion of macro ‘HSTORE_KEYLEN’
#  339|   			int			skeylen = HSTORE_KEYLEN(es, i);
#  340|   
#  341|-> 			if (skeylen == key_pairs[j].keylen)
#  342|   				difference = memcmp(HSTORE_KEY(es, ps, i),
#  343|   									key_pairs[j].key,

Error: CPPCHECK_WARNING (CWE-476): [#def77]
postgresql16-16.3-build/postgresql-16.3/contrib/intarray/_intbig_gist.c:172: warning[nullPointer]: Possible null pointer dereference: ptr
#  170|   		while (num--)
#  171|   		{
#  172|-> 			HASH(GETSIGN(res), *ptr, siglen);
#  173|   			ptr++;
#  174|   		}

Error: CPPCHECK_WARNING (CWE-682): [#def78]
postgresql16-16.3-build/postgresql-16.3/contrib/intarray/_intbig_gist.c:173: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
#  171|   		{
#  172|   			HASH(GETSIGN(res), *ptr, siglen);
#  173|-> 			ptr++;
#  174|   		}
#  175|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def79]
postgresql16-16.3-build/postgresql-16.3/contrib/ltree/ltree_gist.c: scope_hint: In function ‘ltree_gist_alloc’
postgresql16-16.3-build/postgresql-16.3/contrib/ltree/ltree_gist.c:76:17: warning[-Wanalyzer-null-argument]: use of NULL ‘left’ where non-null expected
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#   74|   		Assert(left);
#   75|   		result->flag = LTG_ONENODE;
#   76|-> 		memcpy(LTG_NODE(result), left, VARSIZE(left));
#   77|   	}
#   78|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def80]
postgresql16-16.3-build/postgresql-16.3/contrib/ltree/ltree_io.c: scope_hint: In function ‘parse_lquery’
postgresql16-16.3-build/postgresql-16.3/contrib/ltree/ltree_io.c:346:53: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lptr’
#  344|   				{
#  345|   					lptr++;
#  346|-> 					lptr->start = ptr;
#  347|   					state = LQPRS_WAITDELIM;
#  348|   					curqlevel->numvar++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def81]
postgresql16-16.3-build/postgresql-16.3/contrib/ltree/ltree_io.c:356:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lptr’
#  354|   				if (t_iseq(ptr, '@'))
#  355|   				{
#  356|-> 					lptr->flag |= LVAR_INCASE;
#  357|   					curqlevel->flag |= LVAR_INCASE;
#  358|   				}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def82]
postgresql16-16.3-build/postgresql-16.3/contrib/ltree/ltree_io.c:361:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lptr’
#  359|   				else if (t_iseq(ptr, '*'))
#  360|   				{
#  361|-> 					lptr->flag |= LVAR_ANYEND;
#  362|   					curqlevel->flag |= LVAR_ANYEND;
#  363|   				}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def83]
postgresql16-16.3-build/postgresql-16.3/contrib/ltree/ltree_io.c:366:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lptr’
#  364|   				else if (t_iseq(ptr, '%'))
#  365|   				{
#  366|-> 					lptr->flag |= LVAR_SUBLEXEME;
#  367|   					curqlevel->flag |= LVAR_SUBLEXEME;
#  368|   				}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def84]
postgresql16-16.3-build/postgresql-16.3/contrib/ltree/ltree_io.c:392:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lptr’
postgresql16-16.3-build/postgresql-16.3/contrib/ltree/ltree_io.c:12: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/contrib/ltree/ltree_io.c:389:42: note: in expansion of macro ‘ISLABEL’
#  390|   				{
#  391|   					/* disallow more chars after a flag */
#  392|-> 					if (lptr->flag)
#  393|   						UNCHAR;
#  394|   				}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def85]
postgresql16-16.3-build/postgresql-16.3/contrib/ltree/ltree_io.c: scope_hint: In function ‘finish_nodeitem’
postgresql16-16.3-build/postgresql-16.3/contrib/ltree/ltree_io.c:595:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lptr’
#  593|   		 * position.
#  594|   		 */
#  595|-> 		while (ptr > lptr->start && strchr("@*%", ptr[-1]) != NULL)
#  596|   		{
#  597|   			ptr--;

Error: CPPCHECK_WARNING (CWE-476): [#def86]
postgresql16-16.3-build/postgresql-16.3/contrib/pg_trgm/trgm_gin.c:144: warning[nullPointer]: Possible null pointer dereference: (union varattrib_4b*)(trg)
#  142|   	}
#  143|   
#  144|-> 	trglen = ARRNELEM(trg);
#  145|   	*nentries = trglen;
#  146|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
postgresql16-16.3-build/postgresql-16.3/contrib/pg_trgm/trgm_regexp.c: scope_hint: In function ‘packGraph’
postgresql16-16.3-build/postgresql-16.3/contrib/pg_trgm/trgm_regexp.c:1999:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/src/include/access/tupdesc.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/itup.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/gist.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/contrib/pg_trgm/trgm.h:7: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/contrib/pg_trgm/trgm_regexp.c:195: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/contrib/pg_trgm/trgm_regexp.c:1977:17: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/contrib/pg_trgm/trgm_regexp.c:1977:17: note: in expansion of macro ‘foreach’
# 1997|   				arcs[arcIndex].sourceState = source->snumber;
# 1998|   				arcs[arcIndex].targetState = target->snumber;
# 1999|-> 				arcs[arcIndex].colorTrgm = ctrgm->cnumber;
# 2000|   				arcIndex++;
# 2001|   			}

Error: CPPCHECK_WARNING (CWE-457): [#def88]
postgresql16-16.3-build/postgresql-16.3/contrib/pgcrypto/pgp-pgsql.c:403: error[uninitvar]: Uninitialized variable: tmp
#  401|   	 * reserve room for header
#  402|   	 */
#  403|-> 	mbuf_append(dst, tmp, VARHDRSZ);
#  404|   
#  405|   	/*

Error: CPPCHECK_WARNING (CWE-457): [#def89]
postgresql16-16.3-build/postgresql-16.3/contrib/pgcrypto/pgp-pgsql.c:482: error[uninitvar]: Uninitialized variable: tmp
#  480|   	 * reserve room for header
#  481|   	 */
#  482|-> 	mbuf_append(dst, tmp, VARHDRSZ);
#  483|   
#  484|   	/*

Error: CPPCHECK_WARNING (CWE-768): [#def90]
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:1408: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(sql.data))},(union ListCell){.ptr_value=(retrieved_attrs)}' depends on order of evaluation of side effects
# 1406|   	 * Items in the list must match order in enum FdwScanPrivateIndex.
# 1407|   	 */
# 1408|-> 	fdw_private = list_make3(makeString(sql.data),
# 1409|   							 retrieved_attrs,
# 1410|   							 makeInteger(fpinfo->fetch_size));

Error: CPPCHECK_WARNING (CWE-768): [#def91]
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:1408: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(sql.data))},(union ListCell){.ptr_value=(retrieved_attrs)},(union ListCell){.ptr_value=(makeInteger(fpinfo->fetch_size))}' depends on order of evaluation of side effects
# 1406|   	 * Items in the list must match order in enum FdwScanPrivateIndex.
# 1407|   	 */
# 1408|-> 	fdw_private = list_make3(makeString(sql.data),
# 1409|   							 retrieved_attrs,
# 1410|   							 makeInteger(fpinfo->fetch_size));

Error: CPPCHECK_WARNING (CWE-768): [#def92]
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:1886: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(sql.data))},(union ListCell){.ptr_value=(targetAttrs)}' depends on order of evaluation of side effects
# 1884|   	 * Items in the list must match enum FdwModifyPrivateIndex, above.
# 1885|   	 */
# 1886|-> 	return list_make5(makeString(sql.data),
# 1887|   					  targetAttrs,
# 1888|   					  makeInteger(values_end_len),

Error: CPPCHECK_WARNING (CWE-768): [#def93]
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:1886: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(sql.data))},(union ListCell){.ptr_value=(targetAttrs)},(union ListCell){.ptr_value=(makeInteger(values_end_len))}' depends on order of evaluation of side effects
# 1884|   	 * Items in the list must match enum FdwModifyPrivateIndex, above.
# 1885|   	 */
# 1886|-> 	return list_make5(makeString(sql.data),
# 1887|   					  targetAttrs,
# 1888|   					  makeInteger(values_end_len),

Error: CPPCHECK_WARNING (CWE-768): [#def94]
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:1886: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(sql.data))},(union ListCell){.ptr_value=(targetAttrs)},(union ListCell){.ptr_value=(makeInteger(values_end_len))},(union ListCell){.ptr_value=(makeBoolean(retrieved_attrs!=((struct List*)NULL)))}' depends on order of evaluation of side effects
# 1884|   	 * Items in the list must match enum FdwModifyPrivateIndex, above.
# 1885|   	 */
# 1886|-> 	return list_make5(makeString(sql.data),
# 1887|   					  targetAttrs,
# 1888|   					  makeInteger(values_end_len),

Error: CPPCHECK_WARNING (CWE-768): [#def95]
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:1886: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(sql.data))},(union ListCell){.ptr_value=(targetAttrs)},(union ListCell){.ptr_value=(makeInteger(values_end_len))},(union ListCell){.ptr_value=(makeBoolean(retrieved_attrs!=((struct List*)NULL)))},(union ListCell){.ptr_value=(retrieved_attrs)}' depends on order of evaluation of side effects
# 1884|   	 * Items in the list must match enum FdwModifyPrivateIndex, above.
# 1885|   	 */
# 1886|-> 	return list_make5(makeString(sql.data),
# 1887|   					  targetAttrs,
# 1888|   					  makeInteger(values_end_len),

Error: CPPCHECK_WARNING (CWE-768): [#def96]
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:2595: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(sql.data))},(union ListCell){.ptr_value=(makeBoolean(retrieved_attrs!=((struct List*)NULL)))}' depends on order of evaluation of side effects
# 2593|   	 * Items in the list must match enum FdwDirectModifyPrivateIndex, above.
# 2594|   	 */
# 2595|-> 	fscan->fdw_private = list_make4(makeString(sql.data),
# 2596|   									makeBoolean((retrieved_attrs != NIL)),
# 2597|   									retrieved_attrs,

Error: CPPCHECK_WARNING (CWE-768): [#def97]
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:2595: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(sql.data))},(union ListCell){.ptr_value=(makeBoolean(retrieved_attrs!=((struct List*)NULL)))},(union ListCell){.ptr_value=(retrieved_attrs)}' depends on order of evaluation of side effects
# 2593|   	 * Items in the list must match enum FdwDirectModifyPrivateIndex, above.
# 2594|   	 */
# 2595|-> 	fscan->fdw_private = list_make4(makeString(sql.data),
# 2596|   									makeBoolean((retrieved_attrs != NIL)),
# 2597|   									retrieved_attrs,

Error: CPPCHECK_WARNING (CWE-768): [#def98]
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:2595: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(sql.data))},(union ListCell){.ptr_value=(makeBoolean(retrieved_attrs!=((struct List*)NULL)))},(union ListCell){.ptr_value=(retrieved_attrs)},(union ListCell){.ptr_value=(makeBoolean(plan->canSetTag))}' depends on order of evaluation of side effects
# 2593|   	 * Items in the list must match enum FdwDirectModifyPrivateIndex, above.
# 2594|   	 */
# 2595|-> 	fscan->fdw_private = list_make4(makeString(sql.data),
# 2596|   									makeBoolean((retrieved_attrs != NIL)),
# 2597|   									retrieved_attrs,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def99]
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c: scope_hint: In function ‘estimate_path_cost_size’
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:3470:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘fpextra’
postgresql16-16.3-build/postgresql-16.3/src/include/access/tupdesc.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/htup_details.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:207:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:940:48: note: in expansion of macro ‘list_make1’
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:6051:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:6051:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/include/foreign/fdwapi.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:26: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:3466:29: note: in expansion of macro ‘IS_UPPER_REL’
# 3468|   				Assert(foreignrel->reloptkind == RELOPT_UPPER_REL &&
# 3469|   					   fpinfo->stage == UPPERREL_GROUP_AGG);
# 3470|-> 				adjust_foreign_grouping_path_cost(root, pathkeys,
# 3471|   												  retrieved_rows, width,
# 3472|   												  fpextra->limit_tuples,

Error: CPPCHECK_WARNING (CWE-768): [#def100]
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:6860: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeBoolean(true))},(union ListCell){.ptr_value=(makeBoolean(false))}' depends on order of evaluation of side effects
# 6858|   	 * Items in the list must match order in enum FdwPathPrivateIndex.
# 6859|   	 */
# 6860|-> 	fdw_private = list_make2(makeBoolean(true), makeBoolean(false));
# 6861|   
# 6862|   	/* Create foreign ordering path */

Error: CPPCHECK_WARNING (CWE-768): [#def101]
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:7091: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeBoolean(has_final_sort))},(union ListCell){.ptr_value=(makeBoolean(extra->limit_needed))}' depends on order of evaluation of side effects
# 7089|   	 * Items in the list must match order in enum FdwPathPrivateIndex.
# 7090|   	 */
# 7091|-> 	fdw_private = list_make2(makeBoolean(has_final_sort),
# 7092|   							 makeBoolean(extra->limit_needed));
# 7093|   

Error: CPPCHECK_WARNING (CWE-476): [#def102]
postgresql16-16.3-build/postgresql-16.3/contrib/postgres_fdw/postgres_fdw.c:7457: warning[nullPointer]: Possible null pointer dereference: fsstate
# 7455|   	{
# 7456|   		Assert(fsstate);
# 7457|-> 		tupdesc = fsstate->ss.ss_ScanTupleSlot->tts_tupleDescriptor;
# 7458|   	}
# 7459|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def103]
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segparse.c: scope_hint: In function ‘seg_yyparse’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segparse.c:457:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segparse.c:442:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segparse.c:979:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segparse.c:442:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segparse.c:979:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segparse.c:442:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segparse.c:979:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  455|   #  if defined __GNUC__ && 1 < __GNUC__
#  456|   #   define YYCOPY(Dst, Src, Count) \
#  457|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  458|   #  else
#  459|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c:1281:46: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c:1283:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c:1283:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c: scope_hint: In function ‘yy_get_next_buffer’
# 1279|   					b->yy_buf_size *= 2;
# 1280|   
# 1281|-> 				b->yy_ch_buf = (char *)
# 1282|   					/* Include room in for 2 EOB chars. */
# 1283|   					yyrealloc( (void *) b->yy_ch_buf,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c: scope_hint: In function ‘seg_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c:1566:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c:1552:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c:1556:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c: scope_hint: In function ‘seg_yy_create_buffer’
# 1564|   	 */
# 1565|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1566|-> 	if ( ! b->yy_ch_buf )
# 1567|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 1568|   

Error: CPPCHECK_WARNING (CWE-476): [#def106]
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c:1606: warning[nullPointer]: Possible null pointer dereference: b
# 1604|   	yy_flush_buffer( b );
# 1605|   
# 1606|-> 	b->yy_input_file = file;
# 1607|   	b->yy_fill_buffer = 1;
# 1608|   

Error: CPPCHECK_WARNING (CWE-476): [#def107]
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c:1607: warning[nullPointer]: Possible null pointer dereference: b
# 1605|   
# 1606|   	b->yy_input_file = file;
# 1607|-> 	b->yy_fill_buffer = 1;
# 1608|   
# 1609|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c: scope_hint: In function ‘seg_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c:1820:45: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c:1804:17: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c:1813:24: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c: scope_hint: In function ‘seg_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c:1822:13: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/contrib/seg/segscan.c:1754:17: note: in expansion of macro ‘yy_scan_buffer’
# 1818|   		buf[i] = yybytes[i];
# 1819|   
# 1820|-> 	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1821|   
# 1822|   	b = yy_scan_buffer( buf, n );

Error: CPPCHECK_WARNING (CWE-457): [#def109]
postgresql16-16.3-build/postgresql-16.3/contrib/sepgsql/label.c:605: warning[uninitvar]: Uninitialized variable: result
#  603|   	PG_END_TRY();
#  604|   
#  605|-> 	PG_RETURN_TEXT_P(cstring_to_text(result));
#  606|   }
#  607|   

Error: CPPCHECK_WARNING (CWE-457): [#def110]
postgresql16-16.3-build/postgresql-16.3/contrib/sepgsql/label.c:643: warning[uninitvar]: Uninitialized variable: result
#  641|   	PG_END_TRY();
#  642|   
#  643|-> 	PG_RETURN_TEXT_P(cstring_to_text(result));
#  644|   }
#  645|   

Error: CPPCHECK_WARNING (CWE-457): [#def111]
postgresql16-16.3-build/postgresql-16.3/contrib/sepgsql/selinux.c:887: warning[uninitvar]: Uninitialized variable: result
#  885|   	PG_END_TRY();
#  886|   
#  887|-> 	return result;
#  888|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
postgresql16-16.3-build/postgresql-16.3/contrib/spi/refint.c: scope_hint: In function ‘check_primary_key’
postgresql16-16.3-build/postgresql-16.3/contrib/spi/refint.c:160:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘argtypes’
postgresql16-16.3-build/postgresql-16.3/contrib/spi/refint.c:12: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/commands/trigger.h:123:11: note: in definition of macro ‘TRIGGER_FIRED_FOR_ROW’
postgresql16-16.3-build/postgresql-16.3/contrib/spi/refint.c:85:13: note: in expansion of macro ‘TRIGGER_FIRED_BY_INSERT’
#  158|   
#  159|   		if (plan->nplans <= 0)	/* Get typeId of column */
#  160|-> 			argtypes[i] = SPI_gettypeid(tupdesc, fnumber);
#  161|   	}
#  162|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def113]
postgresql16-16.3-build/postgresql-16.3/contrib/spi/refint.c: scope_hint: In function ‘check_foreign_key’
postgresql16-16.3-build/postgresql-16.3/contrib/spi/refint.c:407:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘argtypes’
postgresql16-16.3-build/postgresql-16.3/src/include/commands/trigger.h:123:11: note: in definition of macro ‘TRIGGER_FIRED_FOR_ROW’
postgresql16-16.3-build/postgresql-16.3/contrib/spi/refint.c:285:13: note: in expansion of macro ‘TRIGGER_FIRED_BY_INSERT’
postgresql16-16.3-build/postgresql-16.3/src/include/port.h:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:1375: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/postgres.h:45: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/contrib/spi/refint.c:8: included_from: Included from here.
#  405|   
#  406|   		if (plan->nplans <= 0)	/* Get typeId of column */
#  407|-> 			argtypes[i] = SPI_gettypeid(tupdesc, fnumber);
#  408|   	}
#  409|   	args_temp = args;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def114]
postgresql16-16.3-build/postgresql-16.3/contrib/unaccent/unaccent.c: scope_hint: In function ‘placeChar’
postgresql16-16.3-build/postgresql-16.3/contrib/unaccent/unaccent.c:78:25: warning[-Wanalyzer-null-argument]: use of NULL ‘replaceTo’ where non-null expected
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/postgres.h:46: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/contrib/unaccent/unaccent.c:14: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/contrib/unaccent/unaccent.c:119:17: note: in expansion of macro ‘PG_TRY’
postgresql16-16.3-build/postgresql-16.3/contrib/unaccent/unaccent.c:119:17: note: in expansion of macro ‘PG_TRY’
postgresql16-16.3-build/postgresql-16.3/contrib/unaccent/unaccent.c:119:17: note: in expansion of macro ‘PG_TRY’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#   76|   			curnode->replacelen = replacelen;
#   77|   			curnode->replaceTo = (char *) palloc(replacelen);
#   78|-> 			memcpy(curnode->replaceTo, replaceTo, replacelen);
#   79|   		}
#   80|   	}

Error: CPPCHECK_WARNING (CWE-457): [#def115]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/bloom/blvacuum.c:153: warning[uninitvar]: Uninitialized variable: notFullPage
#  151|   
#  152|   	metaData = BloomPageGetMeta(page);
#  153|-> 	memcpy(metaData->notFullPage, notFullPage, sizeof(BlockNumber) * countPage);
#  154|   	metaData->nStart = 0;
#  155|   	metaData->nEnd = countPage;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubeparse.y:269: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1291:46: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1277:45: note: in expansion of macro ‘YY_CURRENT_BUFFER_LVALUE’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1293:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:2031:7: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1293:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1277:45: note: in expansion of macro ‘YY_CURRENT_BUFFER_LVALUE’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1293:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:2031:7: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1293:41: note: in expansion of macro ‘yyrealloc’
# 1289|   					b->yy_buf_size *= 2;
# 1290|   
# 1291|-> 				b->yy_ch_buf = (char *)
# 1292|   					/* Include room in for 2 EOB chars. */
# 1293|   					yyrealloc( (void *) b->yy_ch_buf,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c: scope_hint: In function ‘cube_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1576:12: warning[-Wanalyzer-malloc-leak]: leak of ‘cube_yyalloc(64)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1562:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1566:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:2026:7: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1566:31: note: in expansion of macro ‘yyalloc’
# 1574|   	 */
# 1575|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1576|-> 	if ( ! b->yy_ch_buf )
# 1577|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 1578|   

Error: CPPCHECK_WARNING (CWE-476): [#def118]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1616: warning[nullPointer]: Possible null pointer dereference: b
# 1614|   	yy_flush_buffer( b );
# 1615|   
# 1616|-> 	b->yy_input_file = file;
# 1617|   	b->yy_fill_buffer = 1;
# 1618|   

Error: CPPCHECK_WARNING (CWE-476): [#def119]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1617: warning[nullPointer]: Possible null pointer dereference: b
# 1615|   
# 1616|   	b->yy_input_file = file;
# 1617|-> 	b->yy_fill_buffer = 1;
# 1618|   
# 1619|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c: scope_hint: In function ‘cube_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1830:45: warning[-Wanalyzer-malloc-leak]: leak of ‘cube_yyalloc(n)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1814:17: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1823:24: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:2026:7: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1823:24: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1832:13: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/cube/cubescan.c:1764:17: note: in expansion of macro ‘yy_scan_buffer’
# 1828|   		buf[i] = yybytes[i];
# 1829|   
# 1830|-> 	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1831|   
# 1832|   	b = yy_scan_buffer( buf, n );

Error: CPPCHECK_WARNING (CWE-457): [#def121]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/dblink/dblink.c:721: error[legacyUninitvar]: Uninitialized variable: conn
#  719|   
#  720|   	/* async query send */
#  721|-> 	retval = PQsendQuery(conn, sql);
#  722|   	if (retval != 1)
#  723|   		elog(NOTICE, "could not send query: %s", pchomp(PQerrorMessage(conn)));

Error: CPPCHECK_WARNING (CWE-457): [#def122]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/dblink/dblink.c:721: error[legacyUninitvar]: Uninitialized variable: sql
#  719|   
#  720|   	/* async query send */
#  721|-> 	retval = PQsendQuery(conn, sql);
#  722|   	if (retval != 1)
#  723|   		elog(NOTICE, "could not send query: %s", pchomp(PQerrorMessage(conn)));

Error: CPPCHECK_WARNING (CWE-768): [#def123]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/hstore/hstore_io.c:410: error[unknownEvaluationOrder]: Expression '(entry)++->entry' depends on order of evaluation of side effects
#  408|   
#  409|   	for (i = 0; i < pcount; i++)
#  410|-> 		HS_ADDITEM(entry, buf, ptr, pairs[i]);
#  411|   
#  412|   	HS_FINALIZE(out, pcount, buf, ptr);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def124]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/hstore/hstore_op.c: scope_hint: In function ‘hstore_delete_array’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/hstore/hstore_op.c:343:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/hstore/hstore_op.c:10: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/hstore/hstore.h:28:29: note: in definition of macro ‘HSE_ISFIRST’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/hstore/hstore.h:81:42: note: in expansion of macro ‘HSE_LEN’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/hstore/hstore_op.c:341:59: note: in expansion of macro ‘HSTORE_KEYLEN’
#  341|   			int			skeylen = HSTORE_KEYLEN(es, i);
#  342|   
#  343|-> 			if (skeylen == key_pairs[j].keylen)
#  344|   				difference = memcmp(HSTORE_KEY(es, ps, i),
#  345|   									key_pairs[j].key,

Error: CPPCHECK_WARNING (CWE-476): [#def125]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/intarray/_intbig_gist.c:168: warning[nullPointer]: Possible null pointer dereference: ptr
#  166|   		while (num--)
#  167|   		{
#  168|-> 			HASH(GETSIGN(res), *ptr, siglen);
#  169|   			ptr++;
#  170|   		}

Error: CPPCHECK_WARNING (CWE-682): [#def126]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/intarray/_intbig_gist.c:169: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
#  167|   		{
#  168|   			HASH(GETSIGN(res), *ptr, siglen);
#  169|-> 			ptr++;
#  170|   		}
#  171|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def127]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/ltree/ltree_gist.c: scope_hint: In function ‘ltree_gist_alloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/ltree/ltree_gist.c:73:17: warning[-Wanalyzer-null-argument]: use of NULL ‘left’ where non-null expected
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#   71|   		Assert(left);
#   72|   		result->flag = LTG_ONENODE;
#   73|-> 		memcpy(LTG_NODE(result), left, VARSIZE(left));
#   74|   	}
#   75|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def128]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/ltree/ltree_io.c: scope_hint: In function ‘parse_lquery’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/ltree/ltree_io.c:339:53: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lptr’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/ltree/ltree_io.c:12: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/ltree/ltree_io.c:313:37: note: in expansion of macro ‘ISALNUM’
#  337|   				{
#  338|   					lptr++;
#  339|-> 					lptr->start = ptr;
#  340|   					state = LQPRS_WAITDELIM;
#  341|   					curqlevel->numvar++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def129]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/ltree/ltree_io.c:349:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lptr’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/ltree/ltree_io.c:313:37: note: in expansion of macro ‘ISALNUM’
#  347|   				if (t_iseq(ptr, '@'))
#  348|   				{
#  349|-> 					lptr->flag |= LVAR_INCASE;
#  350|   					curqlevel->flag |= LVAR_INCASE;
#  351|   				}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def130]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/ltree/ltree_io.c:354:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lptr’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/ltree/ltree_io.c:313:37: note: in expansion of macro ‘ISALNUM’
#  352|   				else if (t_iseq(ptr, '*'))
#  353|   				{
#  354|-> 					lptr->flag |= LVAR_ANYEND;
#  355|   					curqlevel->flag |= LVAR_ANYEND;
#  356|   				}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def131]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/ltree/ltree_io.c:359:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lptr’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/ltree/ltree_io.c:313:37: note: in expansion of macro ‘ISALNUM’
#  357|   				else if (t_iseq(ptr, '%'))
#  358|   				{
#  359|-> 					lptr->flag |= LVAR_SUBLEXEME;
#  360|   					curqlevel->flag |= LVAR_SUBLEXEME;
#  361|   				}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def132]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/ltree/ltree_io.c:382:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lptr’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/ltree/ltree_io.c:313:37: note: in expansion of macro ‘ISALNUM’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/ltree/ltree_io.c:379:42: note: in expansion of macro ‘ISALNUM’
#  380|   				{
#  381|   					/* disallow more chars after a flag */
#  382|-> 					if (lptr->flag)
#  383|   						UNCHAR;
#  384|   				}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def133]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/ltree/ltree_io.c: scope_hint: In function ‘finish_nodeitem’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/ltree/ltree_io.c:581:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lptr’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/ltree/ltree_io.c:313:37: note: in expansion of macro ‘ISALNUM’
#  579|   		 * position.
#  580|   		 */
#  581|-> 		while (ptr > lptr->start && strchr("@*%", ptr[-1]) != NULL)
#  582|   		{
#  583|   			ptr--;

Error: CPPCHECK_WARNING (CWE-476): [#def134]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/pg_trgm/trgm_gin.c:143: warning[nullPointer]: Possible null pointer dereference: (union varattrib_4b*)(trg)
#  141|   	}
#  142|   
#  143|-> 	trglen = ARRNELEM(trg);
#  144|   	*nentries = trglen;
#  145|   

Error: CPPCHECK_WARNING (CWE-457): [#def135]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/pg_trgm/trgm_regexp.c:570: warning[uninitvar]: Uninitialized variables: trg.vl_len_, trg.flag
#  568|   	MemoryContextDelete(tmpcontext);
#  569|   
#  570|-> 	return trg;
#  571|   }
#  572|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def136]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/pg_trgm/trgm_regexp.c: scope_hint: In function ‘packGraph’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/pg_trgm/trgm_regexp.c:2011:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/tupdesc.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/itup.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/gist.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/pg_trgm/trgm.h:7: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/pg_trgm/trgm_regexp.c:195: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/pg_trgm/trgm_regexp.c:1989:17: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/pg_trgm/trgm_regexp.c:1989:17: note: in expansion of macro ‘foreach’
# 2009|   				arcs[arcIndex].sourceState = source->snumber;
# 2010|   				arcs[arcIndex].targetState = target->snumber;
# 2011|-> 				arcs[arcIndex].colorTrgm = ctrgm->cnumber;
# 2012|   				arcIndex++;
# 2013|   			}

Error: CPPCHECK_WARNING (CWE-768): [#def137]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:1410: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(sql.data))},(union ListCell){.ptr_value=(retrieved_attrs)}' depends on order of evaluation of side effects
# 1408|   	 * Items in the list must match order in enum FdwScanPrivateIndex.
# 1409|   	 */
# 1410|-> 	fdw_private = list_make3(makeString(sql.data),
# 1411|   							 retrieved_attrs,
# 1412|   							 makeInteger(fpinfo->fetch_size));

Error: CPPCHECK_WARNING (CWE-768): [#def138]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:1410: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(sql.data))},(union ListCell){.ptr_value=(retrieved_attrs)},(union ListCell){.ptr_value=(makeInteger(fpinfo->fetch_size))}' depends on order of evaluation of side effects
# 1408|   	 * Items in the list must match order in enum FdwScanPrivateIndex.
# 1409|   	 */
# 1410|-> 	fdw_private = list_make3(makeString(sql.data),
# 1411|   							 retrieved_attrs,
# 1412|   							 makeInteger(fpinfo->fetch_size));

Error: CPPCHECK_WARNING (CWE-768): [#def139]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:1890: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(sql.data))},(union ListCell){.ptr_value=(targetAttrs)}' depends on order of evaluation of side effects
# 1888|   	 * Items in the list must match enum FdwModifyPrivateIndex, above.
# 1889|   	 */
# 1890|-> 	return list_make5(makeString(sql.data),
# 1891|   					  targetAttrs,
# 1892|   					  makeInteger(values_end_len),

Error: CPPCHECK_WARNING (CWE-768): [#def140]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:1890: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(sql.data))},(union ListCell){.ptr_value=(targetAttrs)},(union ListCell){.ptr_value=(makeInteger(values_end_len))}' depends on order of evaluation of side effects
# 1888|   	 * Items in the list must match enum FdwModifyPrivateIndex, above.
# 1889|   	 */
# 1890|-> 	return list_make5(makeString(sql.data),
# 1891|   					  targetAttrs,
# 1892|   					  makeInteger(values_end_len),

Error: CPPCHECK_WARNING (CWE-768): [#def141]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:1890: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(sql.data))},(union ListCell){.ptr_value=(targetAttrs)},(union ListCell){.ptr_value=(makeInteger(values_end_len))},(union ListCell){.ptr_value=(makeBoolean(retrieved_attrs!=((struct List*)NULL)))}' depends on order of evaluation of side effects
# 1888|   	 * Items in the list must match enum FdwModifyPrivateIndex, above.
# 1889|   	 */
# 1890|-> 	return list_make5(makeString(sql.data),
# 1891|   					  targetAttrs,
# 1892|   					  makeInteger(values_end_len),

Error: CPPCHECK_WARNING (CWE-768): [#def142]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:1890: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(sql.data))},(union ListCell){.ptr_value=(targetAttrs)},(union ListCell){.ptr_value=(makeInteger(values_end_len))},(union ListCell){.ptr_value=(makeBoolean(retrieved_attrs!=((struct List*)NULL)))},(union ListCell){.ptr_value=(retrieved_attrs)}' depends on order of evaluation of side effects
# 1888|   	 * Items in the list must match enum FdwModifyPrivateIndex, above.
# 1889|   	 */
# 1890|-> 	return list_make5(makeString(sql.data),
# 1891|   					  targetAttrs,
# 1892|   					  makeInteger(values_end_len),

Error: CPPCHECK_WARNING (CWE-768): [#def143]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:2591: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(sql.data))},(union ListCell){.ptr_value=(makeBoolean(retrieved_attrs!=((struct List*)NULL)))}' depends on order of evaluation of side effects
# 2589|   	 * Items in the list must match enum FdwDirectModifyPrivateIndex, above.
# 2590|   	 */
# 2591|-> 	fscan->fdw_private = list_make4(makeString(sql.data),
# 2592|   									makeBoolean((retrieved_attrs != NIL)),
# 2593|   									retrieved_attrs,

Error: CPPCHECK_WARNING (CWE-768): [#def144]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:2591: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(sql.data))},(union ListCell){.ptr_value=(makeBoolean(retrieved_attrs!=((struct List*)NULL)))},(union ListCell){.ptr_value=(retrieved_attrs)}' depends on order of evaluation of side effects
# 2589|   	 * Items in the list must match enum FdwDirectModifyPrivateIndex, above.
# 2590|   	 */
# 2591|-> 	fscan->fdw_private = list_make4(makeString(sql.data),
# 2592|   									makeBoolean((retrieved_attrs != NIL)),
# 2593|   									retrieved_attrs,

Error: CPPCHECK_WARNING (CWE-768): [#def145]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:2591: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(sql.data))},(union ListCell){.ptr_value=(makeBoolean(retrieved_attrs!=((struct List*)NULL)))},(union ListCell){.ptr_value=(retrieved_attrs)},(union ListCell){.ptr_value=(makeBoolean(plan->canSetTag))}' depends on order of evaluation of side effects
# 2589|   	 * Items in the list must match enum FdwDirectModifyPrivateIndex, above.
# 2590|   	 */
# 2591|-> 	fscan->fdw_private = list_make4(makeString(sql.data),
# 2592|   									makeBoolean((retrieved_attrs != NIL)),
# 2593|   									retrieved_attrs,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def146]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c: scope_hint: In function ‘estimate_path_cost_size’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:3469:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘fpextra’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/tupdesc.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/htup_details.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:202:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:940:48: note: in expansion of macro ‘list_make1’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:5847:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:5847:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/foreign/fdwapi.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:26: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:3465:29: note: in expansion of macro ‘IS_UPPER_REL’
# 3467|   				Assert(foreignrel->reloptkind == RELOPT_UPPER_REL &&
# 3468|   					   fpinfo->stage == UPPERREL_GROUP_AGG);
# 3469|-> 				adjust_foreign_grouping_path_cost(root, pathkeys,
# 3470|   												  retrieved_rows, width,
# 3471|   												  fpextra->limit_tuples,

Error: CPPCHECK_WARNING (CWE-768): [#def147]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:6654: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeBoolean(true))},(union ListCell){.ptr_value=(makeBoolean(false))}' depends on order of evaluation of side effects
# 6652|   	 * Items in the list must match order in enum FdwPathPrivateIndex.
# 6653|   	 */
# 6654|-> 	fdw_private = list_make2(makeBoolean(true), makeBoolean(false));
# 6655|   
# 6656|   	/* Create foreign ordering path */

Error: CPPCHECK_WARNING (CWE-768): [#def148]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:6885: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeBoolean(has_final_sort))},(union ListCell){.ptr_value=(makeBoolean(extra->limit_needed))}' depends on order of evaluation of side effects
# 6883|   	 * Items in the list must match order in enum FdwPathPrivateIndex.
# 6884|   	 */
# 6885|-> 	fdw_private = list_make2(makeBoolean(has_final_sort),
# 6886|   							 makeBoolean(extra->limit_needed));
# 6887|   

Error: CPPCHECK_WARNING (CWE-476): [#def149]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/postgres_fdw/postgres_fdw.c:7251: warning[nullPointer]: Possible null pointer dereference: fsstate
# 7249|   	{
# 7250|   		Assert(fsstate);
# 7251|-> 		tupdesc = fsstate->ss.ss_ScanTupleSlot->tts_tupleDescriptor;
# 7252|   	}
# 7253|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segparse.y:177: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1272:46: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1258:45: note: in expansion of macro ‘YY_CURRENT_BUFFER_LVALUE’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1274:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:2012:7: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1274:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1258:45: note: in expansion of macro ‘YY_CURRENT_BUFFER_LVALUE’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1274:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:2012:7: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1274:41: note: in expansion of macro ‘yyrealloc’
# 1270|   					b->yy_buf_size *= 2;
# 1271|   
# 1272|-> 				b->yy_ch_buf = (char *)
# 1273|   					/* Include room in for 2 EOB chars. */
# 1274|   					yyrealloc( (void *) b->yy_ch_buf,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c: scope_hint: In function ‘seg_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1557:12: warning[-Wanalyzer-malloc-leak]: leak of ‘seg_yyalloc(64)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1543:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1547:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:2007:7: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1547:31: note: in expansion of macro ‘yyalloc’
# 1555|   	 */
# 1556|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1557|-> 	if ( ! b->yy_ch_buf )
# 1558|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 1559|   

Error: CPPCHECK_WARNING (CWE-476): [#def152]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1597: warning[nullPointer]: Possible null pointer dereference: b
# 1595|   	yy_flush_buffer( b );
# 1596|   
# 1597|-> 	b->yy_input_file = file;
# 1598|   	b->yy_fill_buffer = 1;
# 1599|   

Error: CPPCHECK_WARNING (CWE-476): [#def153]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1598: warning[nullPointer]: Possible null pointer dereference: b
# 1596|   
# 1597|   	b->yy_input_file = file;
# 1598|-> 	b->yy_fill_buffer = 1;
# 1599|   
# 1600|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c: scope_hint: In function ‘seg_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1811:45: warning[-Wanalyzer-malloc-leak]: leak of ‘seg_yyalloc(n)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1795:17: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1804:24: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:2007:7: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1804:24: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1813:13: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/seg/segscan.c:1745:17: note: in expansion of macro ‘yy_scan_buffer’
# 1809|   		buf[i] = yybytes[i];
# 1810|   
# 1811|-> 	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1812|   
# 1813|   	b = yy_scan_buffer( buf, n );

Error: CPPCHECK_WARNING (CWE-457): [#def155]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/sepgsql/label.c:605: warning[uninitvar]: Uninitialized variable: result
#  603|   	PG_END_TRY();
#  604|   
#  605|-> 	PG_RETURN_TEXT_P(cstring_to_text(result));
#  606|   }
#  607|   

Error: CPPCHECK_WARNING (CWE-457): [#def156]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/sepgsql/label.c:643: warning[uninitvar]: Uninitialized variable: result
#  641|   	PG_END_TRY();
#  642|   
#  643|-> 	PG_RETURN_TEXT_P(cstring_to_text(result));
#  644|   }
#  645|   

Error: CPPCHECK_WARNING (CWE-457): [#def157]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/sepgsql/selinux.c:887: warning[uninitvar]: Uninitialized variable: result
#  885|   	PG_END_TRY();
#  886|   
#  887|-> 	return result;
#  888|   }
#  889|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def158]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/spi/refint.c: scope_hint: In function ‘check_primary_key’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/spi/refint.c:160:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘argtypes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/spi/refint.c:12: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/commands/trigger.h:123:11: note: in definition of macro ‘TRIGGER_FIRED_FOR_ROW’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/spi/refint.c:85:13: note: in expansion of macro ‘TRIGGER_FIRED_BY_INSERT’
#  158|   
#  159|   		if (plan->nplans <= 0)	/* Get typeId of column */
#  160|-> 			argtypes[i] = SPI_gettypeid(tupdesc, fnumber);
#  161|   	}
#  162|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def159]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/spi/refint.c: scope_hint: In function ‘check_foreign_key’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/spi/refint.c:407:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘argtypes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/commands/trigger.h:123:11: note: in definition of macro ‘TRIGGER_FIRED_FOR_ROW’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/spi/refint.c:285:13: note: in expansion of macro ‘TRIGGER_FIRED_BY_INSERT’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/port.h:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:1415: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:46: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/spi/refint.c:8: included_from: Included from here.
#  405|   
#  406|   		if (plan->nplans <= 0)	/* Get typeId of column */
#  407|-> 			argtypes[i] = SPI_gettypeid(tupdesc, fnumber);
#  408|   	}
#  409|   	args_temp = args;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def160]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/unaccent/unaccent.c: scope_hint: In function ‘placeChar’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/unaccent/unaccent.c:78:25: warning[-Wanalyzer-null-argument]: use of NULL ‘replaceTo’ where non-null expected
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:47: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/unaccent/unaccent.c:14: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/unaccent/unaccent.c:119:17: note: in expansion of macro ‘PG_TRY’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/unaccent/unaccent.c:119:17: note: in expansion of macro ‘PG_TRY’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/unaccent/unaccent.c:119:17: note: in expansion of macro ‘PG_TRY’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#   76|   			curnode->replacelen = replacelen;
#   77|   			curnode->replaceTo = (char *) palloc(replacelen);
#   78|-> 			memcpy(curnode->replaceTo, replaceTo, replacelen);
#   79|   		}
#   80|   	}

Error: GCC_ANALYZER_WARNING (CWE-688): [#def161]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_minmax_multi.c: scope_hint: In function ‘brin_range_deserialize’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_minmax_multi.c:815:25: warning[-Wanalyzer-null-argument]: use of NULL ‘dataptr’ where non-null expected
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_minmax_multi.c:57: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_minmax_multi.c:813:44: note: in expansion of macro ‘PointerGetDatum’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  813|   			range->values[i] = PointerGetDatum(dataptr);
#  814|   
#  815|-> 			memcpy(dataptr, ptr, typlen);
#  816|   			dataptr += MAXALIGN(typlen);
#  817|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def162]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_minmax_multi.c:824:25: warning[-Wanalyzer-null-argument]: use of NULL ‘dataptr’ where non-null expected
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_minmax_multi.c:822:44: note: in expansion of macro ‘PointerGetDatum’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  822|   			range->values[i] = PointerGetDatum(dataptr);
#  823|   
#  824|-> 			memcpy(dataptr, ptr, VARSIZE_ANY(ptr));
#  825|   			dataptr += MAXALIGN(VARSIZE_ANY(ptr));
#  826|   			ptr += VARSIZE_ANY(ptr);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def163]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_minmax_multi.c:834:25: warning[-Wanalyzer-null-argument]: use of NULL ‘dataptr’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  832|   			range->values[i] = PointerGetDatum(dataptr);
#  833|   
#  834|-> 			memcpy(dataptr, ptr, slen);
#  835|   			dataptr += MAXALIGN(slen);
#  836|   			ptr += slen;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def164]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_minmax_multi.c: scope_hint: In function ‘reduce_expanded_ranges’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_minmax_multi.c:1519:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘distances’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:544:37: note: in definition of macro ‘DatumGetObjectId’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_minmax_multi.c:79: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_minmax_multi.c:1654:15: note: in expansion of macro ‘AllocSetContextCreate’
# 1517|   	{
# 1518|   		/* index of the gap between (index) and (index+1) ranges */
# 1519|-> 		int			index = distances[i].index;
# 1520|   
# 1521|   		Assert((index >= 0) && ((index + 1) < neranges));

Error: CPPCHECK_WARNING (CWE-476): [#def165]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/common/heaptuple.c:971: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
#  969|   		len += targetDataLen;
#  970|   
#  971|-> 		*targetMinimalTuple = (MinimalTuple) palloc0(len);
#  972|   		(*targetMinimalTuple)->t_len = len;
#  973|   		(*targetMinimalTuple)->t_hoff = hoff + MINIMAL_TUPLE_OFFSET;

Error: CPPCHECK_WARNING (CWE-476): [#def166]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/common/heaptuple.c:972: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
#  970|   
#  971|   		*targetMinimalTuple = (MinimalTuple) palloc0(len);
#  972|-> 		(*targetMinimalTuple)->t_len = len;
#  973|   		(*targetMinimalTuple)->t_hoff = hoff + MINIMAL_TUPLE_OFFSET;
#  974|   		(*targetMinimalTuple)->t_infomask = sourceTHeader->t_infomask;

Error: CPPCHECK_WARNING (CWE-476): [#def167]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/common/heaptuple.c:973: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
#  971|   		*targetMinimalTuple = (MinimalTuple) palloc0(len);
#  972|   		(*targetMinimalTuple)->t_len = len;
#  973|-> 		(*targetMinimalTuple)->t_hoff = hoff + MINIMAL_TUPLE_OFFSET;
#  974|   		(*targetMinimalTuple)->t_infomask = sourceTHeader->t_infomask;
#  975|   		/* Same macro works for MinimalTuples */

Error: CPPCHECK_WARNING (CWE-476): [#def168]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/common/heaptuple.c:974: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
#  972|   		(*targetMinimalTuple)->t_len = len;
#  973|   		(*targetMinimalTuple)->t_hoff = hoff + MINIMAL_TUPLE_OFFSET;
#  974|-> 		(*targetMinimalTuple)->t_infomask = sourceTHeader->t_infomask;
#  975|   		/* Same macro works for MinimalTuples */
#  976|   		HeapTupleHeaderSetNatts(*targetMinimalTuple, natts);

Error: CPPCHECK_WARNING (CWE-476): [#def169]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/common/heaptuple.c:976: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
#  974|   		(*targetMinimalTuple)->t_infomask = sourceTHeader->t_infomask;
#  975|   		/* Same macro works for MinimalTuples */
#  976|-> 		HeapTupleHeaderSetNatts(*targetMinimalTuple, natts);
#  977|   		if (targetNullLen > 0)
#  978|   			nullBits = (bits8 *) ((char *) *targetMinimalTuple

Error: CPPCHECK_WARNING (CWE-476): [#def170]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/common/heaptuple.c:980: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
#  978|   			nullBits = (bits8 *) ((char *) *targetMinimalTuple
#  979|   								  + offsetof(MinimalTupleData, t_bits));
#  980|-> 		targetData = (char *) *targetMinimalTuple + hoff;
#  981|   		infoMask = &((*targetMinimalTuple)->t_infomask);
#  982|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def171]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/common/heaptuple.c:981: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
#  979|   								  + offsetof(MinimalTupleData, t_bits));
#  980|   		targetData = (char *) *targetMinimalTuple + hoff;
#  981|-> 		infoMask = &((*targetMinimalTuple)->t_infomask);
#  982|   	}
#  983|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def172]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:579:25: warning[-Wanalyzer-null-argument]: use of NULL ‘newrootpg’ where non-null expected
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/ginblock.h:111:50: note: in expansion of macro ‘PageGetSpecialPointer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/ginblock.h:128:43: note: in expansion of macro ‘GinPageGetOpaque’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:701:21: note: in expansion of macro ‘GinPageIsIncompleteSplit’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/buf.h:37:35: note: in definition of macro ‘BufferIsLocal’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufmgr.h:169:38: note: in expansion of macro ‘BufferGetBlock’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:705:24: note: in expansion of macro ‘BufferGetPage’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/ginblock.h:111:50: note: in expansion of macro ‘PageGetSpecialPointer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:479:34: note: in expansion of macro ‘GinPageGetOpaque’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  577|   			/* Splitting the root, three pages to update */
#  578|   			MarkBufferDirty(lbuffer);
#  579|-> 			memcpy(page, newrootpg, BLCKSZ);
#  580|   			memcpy(BufferGetPage(lbuffer), newlpage, BLCKSZ);
#  581|   			memcpy(BufferGetPage(rbuffer), newrpage, BLCKSZ);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def173]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginxlog.c: scope_hint: In function ‘ginRedoRecompress’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginxlog.c:284:33: warning[-Wanalyzer-null-argument]: use of NULL ‘newseg’ where non-null expected
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufmgr.h:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/bufmask.h:21: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginxlog.c:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufmgr.h:139:9: note: in expansion of macro ‘BufferIsLocal’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufmgr.h:169:38: note: in expansion of macro ‘BufferGetBlock’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginxlog.c:378:40: note: in expansion of macro ‘BufferGetPage’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  282|   				/* copy the new segment in place */
#  283|   				Assert(writePtr + newsegsize <= PageGetSpecialPointer(page));
#  284|-> 				memcpy(writePtr, newseg, newsegsize);
#  285|   				writePtr += newsegsize;
#  286|   				break;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def174]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginxlog.c:291:33: warning[-Wanalyzer-null-argument]: use of NULL ‘newseg’ where non-null expected
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufmgr.h:139:9: note: in expansion of macro ‘BufferIsLocal’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufmgr.h:169:38: note: in expansion of macro ‘BufferGetBlock’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginxlog.c:378:40: note: in expansion of macro ‘BufferGetPage’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  289|   				/* copy the new version of segment in place */
#  290|   				Assert(writePtr + newsegsize <= PageGetSpecialPointer(page));
#  291|-> 				memcpy(writePtr, newseg, newsegsize);
#  292|   				writePtr += newsegsize;
#  293|   				segptr += segsize;

Error: CPPCHECK_WARNING (CWE-457): [#def175]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/hash/hashfunc.c:321: error[legacyUninitvar]: Uninitialized variable: result
#  319|   	PG_FREE_IF_COPY(key, 0);
#  320|   
#  321|-> 	return result;
#  322|   }
#  323|   

Error: CPPCHECK_WARNING (CWE-457): [#def176]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/hash/hashfunc.c:378: error[legacyUninitvar]: Uninitialized variable: result
#  376|   	PG_FREE_IF_COPY(key, 0);
#  377|   
#  378|-> 	return result;
#  379|   }
#  380|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def177]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/hash/hashpage.c: scope_hint: In function ‘_hash_getcachedmetap’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/hash/hashpage.c:1531:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/hash.h:26: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/hash/hashpage.c:31: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufmgr.h:126:10: note: in definition of macro ‘BufferIsValid’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1529|   		if (rel->rd_amcache == NULL)
# 1530|   			rel->rd_amcache = cache;
# 1531|-> 		memcpy(rel->rd_amcache, HashPageGetMeta(page),
# 1532|   			   sizeof(HashMetaPageData));
# 1533|   

Error: CPPCHECK_WARNING (CWE-457): [#def178]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/heap/heapam.c:5597: error[legacyUninitvar]: Uninitialized variable: status
# 5595|   				}
# 5596|   
# 5597|-> 				result = test_lockmode_for_conflict(status, rawxmax, mode,
# 5598|   													&mytup, &needwait);
# 5599|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def179]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/heap/heapam.c: scope_hint: In function ‘heap_xlog_update’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/heap/heapam.c:9556:76: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘<unknown>’
# 9554|   
# 9555|   			/* copy prefix from old tuple */
# 9556|-> 			memcpy(newp, (char *) oldtup.t_data + oldtup.t_data->t_hoff, prefixlen);
# 9557|   			newp += prefixlen;
# 9558|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def180]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtsplitloc.c: scope_hint: In function ‘_bt_split_lastleft’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtsplitloc.c:1168:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘split’
# 1166|   	ItemId		itemid;
# 1167|   
# 1168|-> 	if (split->newitemonleft && split->firstrightoff == state->newitemoff)
# 1169|   		return state->newitem;
# 1170|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def181]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtsplitloc.c: scope_hint: In function ‘_bt_split_firstright’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtsplitloc.c:1184:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘split’
# 1182|   	ItemId		itemid;
# 1183|   
# 1184|-> 	if (!split->newitemonleft && split->firstrightoff == state->newitemoff)
# 1185|   		return state->newitem;
# 1186|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def182]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/spgist/spgscan.c: scope_hint: In function ‘spgAllocSearchItem’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/spgist/spgscan.c:123:17: warning[-Wanalyzer-null-argument]: use of NULL ‘distances’ where non-null expected
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/itemptr.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/tidbitmap.h:25: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/genam.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/spgist/spgscan.c:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/itemptr.h:91:9: note: in expansion of macro ‘BlockIdGetBlockNumber’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/itemptr.h:101:9: note: in expansion of macro ‘ItemPointerGetBlockNumberNoCheck’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/spgist/spgscan.c:845:45: note: in expansion of macro ‘ItemPointerGetBlockNumber’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/spgist/spgscan.c:23: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/spgist/spgscan.c:864:32: note: in expansion of macro ‘BufferGetPage’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufmgr.h:169:38: note: in expansion of macro ‘BufferGetBlock’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/spgist/spgscan.c:864:32: note: in expansion of macro ‘BufferGetPage’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/htup_details.h:21: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/relscan.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/spgist/spgscan.c:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/spgist/spgscan.c:872:52: note: in expansion of macro ‘PageGetMaxOffsetNumber’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  121|   
#  122|   	if (!isnull && so->numberOfNonNullOrderBys > 0)
#  123|-> 		memcpy(item->distances, distances,
#  124|   			   sizeof(item->distances[0]) * so->numberOfNonNullOrderBys);
#  125|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def183]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/spgist/spgutils.c:790:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/spgist/spgutils.c: scope_hint: In function ‘spgFormInnerTuple’
#  788|   	if (att->attbyval)
#  789|   	{
#  790|-> 		memcpy(target, &datum, sizeof(Datum));
#  791|   	}
#  792|   	else

Error: GCC_ANALYZER_WARNING (CWE-688): [#def184]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/spgist/spgutils.c: scope_hint: In function ‘memcpyInnerDatum.part.0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/spgist/spgutils.c:795:17: warning[-Wanalyzer-null-argument]: use of NULL ‘target’ where non-null expected
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/spgist/spgutils.c: scope_hint: In function ‘memcpyInnerDatum.part.0’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  793|   	{
#  794|   		size = (att->attlen > 0) ? att->attlen : VARSIZE_ANY(datum);
#  795|-> 		memcpy(target, DatumGetPointer(datum), size);
#  796|   	}
#  797|   }

Error: CPPCHECK_WARNING (CWE-476): [#def185]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/transam/twophase.c:1033: error[ctunullpointer]: Null pointer dereference: data
# 1031|   	}
# 1032|   
# 1033|-> 	memcpy(((char *) records.tail->data) + records.tail->len, data, len);
# 1034|   	records.tail->len += padlen;
# 1035|   	records.bytes_free -= padlen;

Error: CPPCHECK_WARNING (CWE-682): [#def186]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/transam/xlog.c:1552: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
# 1550|   		Assert(((XLogPageHeader) cachedPos)->xlp_magic == XLOG_PAGE_MAGIC);
# 1551|   		Assert(((XLogPageHeader) cachedPos)->xlp_pageaddr == ptr - (ptr % XLOG_BLCKSZ));
# 1552|-> 		return cachedPos + ptr % XLOG_BLCKSZ;
# 1553|   	}
# 1554|   

Error: GCC_ANALYZER_WARNING (CWE-131): [#def187]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/transam/xloginsert.c: scope_hint: In function ‘XLogResetInsertion’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/transam/xloginsert.c:233:24: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/probes.h:10: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/pg_trace.h:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/transam/xloginsert.c:38: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/transam/xloginsert.c:460:9: note: in expansion of macro ‘TRACE_POSTGRESQL_WAL_INSERT’
#  231|   	max_registered_block_id = 0;
#  232|   	mainrdata_len = 0;
#  233|-> 	mainrdata_last = (XLogRecData *) &mainrdata_head;
#  234|   	curinsert_flags = 0;
#  235|   	begininsert_called = false;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootparse.y:492: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c:1489:46: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c:1491:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c:1491:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c: scope_hint: In function ‘yy_get_next_buffer’
# 1487|   					b->yy_buf_size *= 2;
# 1488|   
# 1489|-> 				b->yy_ch_buf = (char *)
# 1490|   					/* Include room in for 2 EOB chars. */
# 1491|   					yyrealloc( (void *) b->yy_ch_buf,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c: scope_hint: In function ‘boot_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c:1777:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c:1763:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c:1767:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c: scope_hint: In function ‘boot_yy_create_buffer’
# 1775|   	 */
# 1776|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1777|-> 	if ( ! b->yy_ch_buf )
# 1778|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 1779|   

Error: CPPCHECK_WARNING (CWE-476): [#def190]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c:1817: warning[nullPointer]: Possible null pointer dereference: b
# 1815|   	yy_flush_buffer( b );
# 1816|   
# 1817|-> 	b->yy_input_file = file;
# 1818|   	b->yy_fill_buffer = 1;
# 1819|   

Error: CPPCHECK_WARNING (CWE-476): [#def191]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c:1818: warning[nullPointer]: Possible null pointer dereference: b
# 1816|   
# 1817|   	b->yy_input_file = file;
# 1818|-> 	b->yy_fill_buffer = 1;
# 1819|   
# 1820|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c: scope_hint: In function ‘boot_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c:2031:45: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c:2015:17: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c:2024:24: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c: scope_hint: In function ‘boot_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c:2033:13: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/bootstrap/bootscanner.c:1965:17: note: in expansion of macro ‘yy_scan_buffer’
# 2029|   		buf[i] = yybytes[i];
# 2030|   
# 2031|-> 	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 2032|   
# 2033|   	b = yy_scan_buffer( buf, n );

Error: CPPCHECK_WARNING (CWE-768): [#def193]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/objectaddress.c:2341: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(typename)},((union ListCell){.ptr_value=(list_nth_cell(args,0)->ptr_value)})' depends on order of evaluation of side effects
# 2339|   		case OBJECT_DOMCONSTRAINT:
# 2340|   		case OBJECT_TRANSFORM:
# 2341|-> 			objnode = (Node *) list_make2(typename, linitial(args));
# 2342|   			break;
# 2343|   		case OBJECT_PUBLICATION_REL:

Error: CPPCHECK_WARNING (CWE-768): [#def194]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/objectaddress.c:2344: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(name)},((union ListCell){.ptr_value=(list_nth_cell(args,0)->ptr_value)})' depends on order of evaluation of side effects
# 2342|   			break;
# 2343|   		case OBJECT_PUBLICATION_REL:
# 2344|-> 			objnode = (Node *) list_make2(name, linitial(args));
# 2345|   			break;
# 2346|   		case OBJECT_PUBLICATION_NAMESPACE:

Error: CPPCHECK_WARNING (CWE-768): [#def195]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/objectaddress.c:2348: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(list_nth_cell(name,0)->ptr_value)}),((union ListCell){.ptr_value=(list_nth_cell(args,0)->ptr_value)})' depends on order of evaluation of side effects
# 2346|   		case OBJECT_PUBLICATION_NAMESPACE:
# 2347|   		case OBJECT_USER_MAPPING:
# 2348|-> 			objnode = (Node *) list_make2(linitial(name), linitial(args));
# 2349|   			break;
# 2350|   		case OBJECT_DEFACL:

Error: CPPCHECK_WARNING (CWE-768): [#def196]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/objectaddress.c:2355: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(name)},(union ListCell){.ptr_value=(args)}' depends on order of evaluation of side effects
# 2353|   		case OBJECT_AMOP:
# 2354|   		case OBJECT_AMPROC:
# 2355|-> 			objnode = (Node *) list_make2(name, args);
# 2356|   			break;
# 2357|   		case OBJECT_FUNCTION:

Error: CPPCHECK_WARNING (CWE-768): [#def197]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/objectaddress.c:4920: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(schema)},(union ListCell){.ptr_value=(pstrdup(coll->collname.data))}' depends on order of evaluation of side effects
# 4918|   																  NameStr(coll->collname)));
# 4919|   				if (objname)
# 4920|-> 					*objname = list_make2(schema,
# 4921|   										  pstrdup(NameStr(coll->collname)));
# 4922|   				ReleaseSysCache(collTup);

Error: CPPCHECK_WARNING (CWE-768): [#def198]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/objectaddress.c:4994: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(schema)},(union ListCell){.ptr_value=(pstrdup(conForm->conname.data))}' depends on order of evaluation of side effects
# 4992|   																  NameStr(conForm->conname)));
# 4993|   				if (objname)
# 4994|-> 					*objname = list_make2(schema,
# 4995|   										  pstrdup(NameStr(conForm->conname)));
# 4996|   				ReleaseSysCache(conTup);

Error: CPPCHECK_WARNING (CWE-768): [#def199]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/objectaddress.c:5099: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(pstrdup(amForm->amname.data))},(union ListCell){.ptr_value=(schema)}' depends on order of evaluation of side effects
# 5097|   								 quote_identifier(NameStr(amForm->amname)));
# 5098|   				if (objname)
# 5099|-> 					*objname = list_make3(pstrdup(NameStr(amForm->amname)),
# 5100|   										  schema,
# 5101|   										  pstrdup(NameStr(opcForm->opcname)));

Error: CPPCHECK_WARNING (CWE-768): [#def200]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/objectaddress.c:5099: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(pstrdup(amForm->amname.data))},(union ListCell){.ptr_value=(schema)},(union ListCell){.ptr_value=(pstrdup(opcForm->opcname.data))}' depends on order of evaluation of side effects
# 5097|   								 quote_identifier(NameStr(amForm->amname)));
# 5098|   				if (objname)
# 5099|-> 					*objname = list_make3(pstrdup(NameStr(amForm->amname)),
# 5100|   										  schema,
# 5101|   										  pstrdup(NameStr(opcForm->opcname)));

Error: CPPCHECK_WARNING (CWE-768): [#def201]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/objectaddress.c:5179: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(ltype)},(union ListCell){.ptr_value=(rtype)}' depends on order of evaluation of side effects
# 5177|   					*objname = lappend(*objname,
# 5178|   									   psprintf("%d", amopForm->amopstrategy));
# 5179|-> 					*objargs = list_make2(ltype, rtype);
# 5180|   				}
# 5181|   

Error: CPPCHECK_WARNING (CWE-768): [#def202]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/objectaddress.c:5241: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(ltype)},(union ListCell){.ptr_value=(rtype)}' depends on order of evaluation of side effects
# 5239|   					*objname = lappend(*objname,
# 5240|   									   psprintf("%d", amprocForm->amprocnum));
# 5241|-> 					*objargs = list_make2(ltype, rtype);
# 5242|   				}
# 5243|   

Error: CPPCHECK_WARNING (CWE-768): [#def203]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/objectaddress.c:5361: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(schema)},(union ListCell){.ptr_value=(pstrdup(formStatistic->stxname.data))}' depends on order of evaluation of side effects
# 5359|   																  NameStr(formStatistic->stxname)));
# 5360|   				if (objname)
# 5361|-> 					*objname = list_make2(schema,
# 5362|   										  pstrdup(NameStr(formStatistic->stxname)));
# 5363|   				ReleaseSysCache(tup);

Error: CPPCHECK_WARNING (CWE-768): [#def204]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/objectaddress.c:5388: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(schema)},(union ListCell){.ptr_value=(pstrdup(formParser->prsname.data))}' depends on order of evaluation of side effects
# 5386|   																  NameStr(formParser->prsname)));
# 5387|   				if (objname)
# 5388|-> 					*objname = list_make2(schema,
# 5389|   										  pstrdup(NameStr(formParser->prsname)));
# 5390|   				ReleaseSysCache(tup);

Error: CPPCHECK_WARNING (CWE-768): [#def205]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/objectaddress.c:5415: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(schema)},(union ListCell){.ptr_value=(pstrdup(formDict->dictname.data))}' depends on order of evaluation of side effects
# 5413|   																  NameStr(formDict->dictname)));
# 5414|   				if (objname)
# 5415|-> 					*objname = list_make2(schema,
# 5416|   										  pstrdup(NameStr(formDict->dictname)));
# 5417|   				ReleaseSysCache(tup);

Error: CPPCHECK_WARNING (CWE-768): [#def206]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/objectaddress.c:5442: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(schema)},(union ListCell){.ptr_value=(pstrdup(formTmpl->tmplname.data))}' depends on order of evaluation of side effects
# 5440|   																  NameStr(formTmpl->tmplname)));
# 5441|   				if (objname)
# 5442|-> 					*objname = list_make2(schema,
# 5443|   										  pstrdup(NameStr(formTmpl->tmplname)));
# 5444|   				ReleaseSysCache(tup);

Error: CPPCHECK_WARNING (CWE-768): [#def207]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/objectaddress.c:5469: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(schema)},(union ListCell){.ptr_value=(pstrdup(formCfg->cfgname.data))}' depends on order of evaluation of side effects
# 5467|   																  NameStr(formCfg->cfgname)));
# 5468|   				if (objname)
# 5469|-> 					*objname = list_make2(schema,
# 5470|   										  pstrdup(NameStr(formCfg->cfgname)));
# 5471|   				ReleaseSysCache(tup);

Error: CPPCHECK_WARNING (CWE-768): [#def208]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/objectaddress.c:5976: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(pstrdup(amForm->amname.data))},(union ListCell){.ptr_value=(pstrdup(schema))}' depends on order of evaluation of side effects
# 5974|   
# 5975|   	if (object)
# 5976|-> 		*object = list_make3(pstrdup(NameStr(amForm->amname)),
# 5977|   							 pstrdup(schema),
# 5978|   							 pstrdup(NameStr(opfForm->opfname)));

Error: CPPCHECK_WARNING (CWE-768): [#def209]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/objectaddress.c:5976: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(pstrdup(amForm->amname.data))},(union ListCell){.ptr_value=(pstrdup(schema))},(union ListCell){.ptr_value=(pstrdup(opfForm->opfname.data))}' depends on order of evaluation of side effects
# 5974|   
# 5975|   	if (object)
# 5976|-> 		*object = list_make3(pstrdup(NameStr(amForm->amname)),
# 5977|   							 pstrdup(schema),
# 5978|   							 pstrdup(NameStr(opfForm->opfname)));

Error: CPPCHECK_WARNING (CWE-768): [#def210]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/objectaddress.c:6014: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(schema)},(union ListCell){.ptr_value=(pstrdup(relForm->relname.data))}' depends on order of evaluation of side effects
# 6012|   													  NameStr(relForm->relname)));
# 6013|   	if (object)
# 6014|-> 		*object = list_make2(schema, pstrdup(NameStr(relForm->relname)));
# 6015|   
# 6016|   	ReleaseSysCache(relTup);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def211]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/partition.c: scope_hint: In function ‘has_partition_attrs’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/partition.c:286:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘partexprs_item’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/partition.c: scope_hint: In function ‘has_partition_attrs’
#  284|   		{
#  285|   			/* Arbitrary expression */
#  286|-> 			Node	   *expr = (Node *) lfirst(partexprs_item);
#  287|   			Bitmapset  *expr_attrs = NULL;
#  288|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def212]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/pg_proc.c: scope_hint: In function ‘ProcedureCreate’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/pg_proc.c:538:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘newlc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/pg_proc.c:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/pg_proc.c:368:55: note: in expansion of macro ‘GETSTRUCT’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/pg_proc.c: scope_hint: In function ‘ProcedureCreate’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/pg_proc.c:535:25: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/pg_proc.c:535:25: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/pg_proc.c: scope_hint: In function ‘ProcedureCreate’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/pg_proc.c:535:25: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/pg_proc.c:535:25: note: in expansion of macro ‘foreach’
#  536|   			{
#  537|   				Node	   *oldDef = (Node *) lfirst(oldlc);
#  538|-> 				Node	   *newDef = (Node *) lfirst(newlc);
#  539|   
#  540|   				if (exprType(oldDef) != exprType(newDef))

Error: CPPCHECK_WARNING (CWE-768): [#def213]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/catalog/toasting.c:327: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=("chunk_id")},(union ListCell){.ptr_value=("chunk_seq")}' depends on order of evaluation of side effects
#  325|   				 InvalidOid, InvalidOid,
#  326|   				 indexInfo,
#  327|-> 				 list_make2("chunk_id", "chunk_seq"),
#  328|   				 BTREE_AM_OID,
#  329|   				 rel->rd_rel->reltablespace,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def214]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/analyze.c: scope_hint: In function ‘do_analyze_rel’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/analyze.c:611:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘thisdata’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/analyze.c: scope_hint: In function ‘do_analyze_rel’
#  609|   			AnlIndexData *thisdata = &indexdata[ind];
#  610|   
#  611|-> 			update_attstats(RelationGetRelid(Irel[ind]), false,
#  612|   							thisdata->attr_cnt, thisdata->vacattrstats);
#  613|   		}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def215]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/analyze.c:657:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘thisdata’
#  655|   			double		totalindexrows;
#  656|   
#  657|-> 			totalindexrows = ceil(thisdata->tupleFract * totalrows);
#  658|   			vac_update_relstats(Irel[ind],
#  659|   								RelationGetNumberOfBlocks(Irel[ind]),

Error: GCC_ANALYZER_WARNING (CWE-476): [#def216]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/analyze.c: scope_hint: In function ‘compute_index_stats’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/analyze.c:850:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘thisdata’
#  848|   	{
#  849|   		AnlIndexData *thisdata = &indexdata[ind];
#  850|-> 		IndexInfo  *indexInfo = thisdata->indexInfo;
#  851|   		int			attr_cnt = thisdata->attr_cnt;
#  852|   		TupleTableSlot *slot;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def217]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/copy.c: scope_hint: In function ‘DoCopy’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/copy.c:301:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rel’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:48: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/copy.c:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:569:28: note: in expansion of macro ‘palloc0fast’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:593:53: note: in expansion of macro ‘newNode’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/copy.c:285:25: note: in expansion of macro ‘makeNode’
#  299|   
#  300|   		/* check read-only transaction and parallel mode */
#  301|-> 		if (XactReadOnly && !rel->rd_islocaltemp)
#  302|   			PreventCommandIfReadOnly("COPY FROM");
#  303|   

Error: CPPCHECK_WARNING (CWE-476): [#def218]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/extension.c:310: error[ctunullpointer]: Null pointer dereference: versionname
#  308|   check_valid_version_name(const char *versionname)
#  309|   {
#  310|-> 	int			namelen = strlen(versionname);
#  311|   
#  312|   	/*

Error: CPPCHECK_WARNING (CWE-476): [#def219]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/extension.c:310: warning[nullPointer]: Possible null pointer dereference: versionname
#  308|   check_valid_version_name(const char *versionname)
#  309|   {
#  310|-> 	int			namelen = strlen(versionname);
#  311|   
#  312|   	/*

Error: CPPCHECK_WARNING (CWE-476): [#def220]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/extension.c:3020: warning[nullPointer]: Possible null pointer dereference: versionName
# 3018|   	 * If we're already at that version, just say so
# 3019|   	 */
# 3020|-> 	if (strcmp(oldVersionName, versionName) == 0)
# 3021|   	{
# 3022|   		ereport(NOTICE,

Error: CPPCHECK_WARNING (CWE-457): [#def221]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/policy.c:131: error[legacyUninitvar]: Uninitialized variable: polcmd
#  129|   		elog(ERROR, "unrecognized policy command");
#  130|   
#  131|-> 	return polcmd;
#  132|   }
#  133|   

Error: CPPCHECK_WARNING (CWE-786): [#def222]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/tablecmds.c:4826: error[negativeIndex]: Array 'tab->subcmds[11]' accessed at index -1, which is out of bounds.
# 4824|   
# 4825|   	/* Add the subcommand to the appropriate list for phase 2 */
# 4826|-> 	tab->subcmds[pass] = lappend(tab->subcmds[pass], cmd);
# 4827|   }
# 4828|   

Error: CPPCHECK_WARNING (CWE-457): [#def223]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/tablecmds.c:12063: error[legacyUninitvar]: Uninitialized variable: contype
#12061|   	 * the dependency mechanism, so we're done here.
#12062|   	 */
#12063|-> 	if (contype != CONSTRAINT_CHECK &&
#12064|   		rel->rd_rel->relkind == RELKIND_PARTITIONED_TABLE)
#12065|   	{

Error: CPPCHECK_WARNING (CWE-768): [#def224]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/tablecmds.c:13633: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(get_namespace_name(rel->rd_rel->relnamespace)))},(union ListCell){.ptr_value=(makeString(pstrdup((rel->rd_rel->relname).data)))}' depends on order of evaluation of side effects
#13631|   		cmd->objtype = OBJECT_TABCONSTRAINT;
#13632|   		cmd->object = (Node *)
#13633|-> 			list_make3(makeString(get_namespace_name(RelationGetNamespace(rel))),
#13634|   					   makeString(pstrdup(RelationGetRelationName(rel))),
#13635|   					   makeString(pstrdup(conname)));

Error: CPPCHECK_WARNING (CWE-768): [#def225]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/tablecmds.c:13633: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(get_namespace_name(rel->rd_rel->relnamespace)))},(union ListCell){.ptr_value=(makeString(pstrdup((rel->rd_rel->relname).data)))},(union ListCell){.ptr_value=(makeString(pstrdup(conname)))}' depends on order of evaluation of side effects
#13631|   		cmd->objtype = OBJECT_TABCONSTRAINT;
#13632|   		cmd->object = (Node *)
#13633|-> 			list_make3(makeString(get_namespace_name(RelationGetNamespace(rel))),
#13634|   					   makeString(pstrdup(RelationGetRelationName(rel))),
#13635|   					   makeString(pstrdup(conname)));

Error: CPPCHECK_WARNING (CWE-768): [#def226]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/tablecmds.c:13641: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeTypeNameFromNameList((typeof(domname))copyObjectImpl(domname)))},(union ListCell){.ptr_value=(makeString(pstrdup(conname)))}' depends on order of evaluation of side effects
#13639|   		cmd->objtype = OBJECT_DOMCONSTRAINT;
#13640|   		cmd->object = (Node *)
#13641|-> 			list_make2(makeTypeNameFromNameList(copyObject(domname)),
#13642|   					   makeString(pstrdup(conname)));
#13643|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def227]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/tsearchcmds.c: scope_hint: In function ‘buildDefItem’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/commands/tsearchcmds.c:1761:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘val’
# 1759|   {
# 1760|   	/* If input was quoted, always emit as string */
# 1761|-> 	if (!was_quoted && val[0] != '\0')
# 1762|   	{
# 1763|   		int			v;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def228]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/execExprInterp.c: scope_hint: In function ‘ExecEvalStepOp.part.0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/execExprInterp.c:2336:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/execExprInterp.c: scope_hint: In function ‘ExecEvalStepOp.part.0’
# 2334|   					  dispatch_compare_ptr);
# 2335|   		Assert(res);			/* unknown ops shouldn't get looked up */
# 2336|-> 		return res->op;
# 2337|   	}
# 2338|   #endif

Error: GCC_ANALYZER_WARNING (CWE-476): [#def229]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/execJunk.c: scope_hint: In function ‘ExecInitJunkFilterConversion’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/execJunk.c:176:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
#  174|   			for (;;)
#  175|   			{
#  176|-> 				TargetEntry *tle = lfirst(t);
#  177|   
#  178|   				t = lnext(targetList, t);

Error: CPPCHECK_WARNING (CWE-476): [#def230]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/execProcnode.c:391: warning[nullPointer]: Possible null pointer dereference: result
#  389|   	}
#  390|   
#  391|-> 	ExecSetExecProcNode(result, result->ExecProcNode);
#  392|   
#  393|   	/*

Error: CPPCHECK_WARNING (CWE-476): [#def231]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/execProcnode.c:407: warning[nullPointer]: Possible null pointer dereference: result
#  405|   		subps = lappend(subps, sstate);
#  406|   	}
#  407|-> 	result->initPlan = subps;
#  408|   
#  409|   	/* Set up instrumentation for this node if requested */

Error: CPPCHECK_WARNING (CWE-476): [#def232]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/execProcnode.c:433: error[ctunullpointer]: Null pointer dereference: node
#  431|   	 * means we'll superfluously execute ExecProcNodeFirst, but that seems ok.
#  432|   	 */
#  433|-> 	node->ExecProcNodeReal = function;
#  434|   	node->ExecProcNode = ExecProcNodeFirst;
#  435|   }

Error: CPPCHECK_WARNING (CWE-476): [#def233]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/execProcnode.c:433: warning[nullPointer]: Possible null pointer dereference: node
#  431|   	 * means we'll superfluously execute ExecProcNodeFirst, but that seems ok.
#  432|   	 */
#  433|-> 	node->ExecProcNodeReal = function;
#  434|   	node->ExecProcNode = ExecProcNodeFirst;
#  435|   }

Error: CPPCHECK_WARNING (CWE-476): [#def234]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/execProcnode.c:434: warning[nullPointer]: Possible null pointer dereference: node
#  432|   	 */
#  433|   	node->ExecProcNodeReal = function;
#  434|-> 	node->ExecProcNode = ExecProcNodeFirst;
#  435|   }
#  436|   

Error: CPPCHECK_WARNING (CWE-457): [#def235]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/execScan.c:338: error[legacyUninitvar]: Uninitialized variable: relids
#  336|   					 (int) nodeTag(node->ps.plan));
#  337|   
#  338|-> 			while ((rtindex = bms_next_member(relids, rtindex)) >= 0)
#  339|   			{
#  340|   				Assert(rtindex > 0);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def236]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/execTuples.c: scope_hint: In function ‘do_tup_output’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/execTuples.c:2285:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘isnull’
# 2283|   	/* insert data */
# 2284|   	memcpy(slot->tts_values, values, natts * sizeof(Datum));
# 2285|-> 	memcpy(slot->tts_isnull, isnull, natts * sizeof(bool));
# 2286|   
# 2287|   	/* mark slot as containing a virtual tuple */

Error: CPPCHECK_WARNING (CWE-457): [#def237]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/nodeAppend.c:1063: warning[uninitvar]: Uninitialized variable: noccurred
# 1061|   	}
# 1062|   	PG_END_TRY();
# 1063|-> 	if (noccurred == 0)
# 1064|   		return;
# 1065|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def238]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/nodeHash.c: scope_hint: In function ‘ExecParallelHashRepartitionFirst’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/nodeHash.c:1345:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1343|   											   HJTUPLE_OVERHEAD + tuple->t_len,
# 1344|   											   &shared);
# 1345|-> 				copyTuple->hashvalue = hashTuple->hashvalue;
# 1346|   				memcpy(HJTUPLE_MINTUPLE(copyTuple), tuple, tuple->t_len);
# 1347|   				ExecParallelHashPushTuple(&hashtable->buckets.shared[bucketno],

Error: CPPCHECK_WARNING (CWE-457): [#def239]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/lib/dshash.c:969: error[uninitvar]: Uninitialized variable: *bucket_head
#  967|   		dshash_table_item *item;
#  968|   
#  969|-> 		item = dsa_get_address(hash_table->area, *bucket_head);
#  970|   
#  971|   		if (equal_keys(hash_table, key, ENTRY_FROM_ITEM(item)))

Error: CPPCHECK_WARNING (CWE-457): [#def240]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/lib/dshash.c:998: error[uninitvar]: Uninitialized variable: *bucket_head
#  996|   		dshash_table_item *bucket_item;
#  997|   
#  998|-> 		bucket_item = dsa_get_address(hash_table->area, *bucket_head);
#  999|   
# 1000|   		if (bucket_item == item)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def241]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/lib/pairingheap.c: scope_hint: In function ‘merge_children.part.0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/lib/pairingheap.c:275:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pairs’
#  273|   	 */
#  274|   	newroot = pairs;
#  275|-> 	next = pairs->next_sibling;
#  276|   	while (next)
#  277|   	{

Error: GCC_ANALYZER_WARNING (CWE-457): [#def242]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c: scope_hint: In function ‘radius_add_attribute’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c:2903:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c: scope_hint: In function ‘radius_add_attribute’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c: scope_hint: In function ‘radius_add_attribute’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c:32: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c:682:17: note: in expansion of macro ‘pq_flush’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:47: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:158:9: note: in expansion of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:233:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c:754:9: note: in expansion of macro ‘elog’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c: scope_hint: In function ‘radius_add_attribute’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c: scope_hint: In function ‘radius_add_attribute’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c: scope_hint: In function ‘radius_add_attribute’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:353:45: note: in definition of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c:2955:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c:2955:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c:2958:100: note: in expansion of macro ‘lfirst’
# 2901|   	attr->attribute = type;
# 2902|   	attr->length = len + 2;		/* total size includes type and length */
# 2903|-> 	memcpy(attr->data, data, len);
# 2904|   	packet->length += attr->length;
# 2905|   }

Error: CPPCHECK_WARNING (CWE-457): [#def243]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c:3119: warning[uninitvar]: Uninitialized variable: encryptedpassword
# 3117|   	pfree(cryptvector);
# 3118|   
# 3119|-> 	radius_add_attribute(packet, RADIUS_PASSWORD, encryptedpassword, encryptedpasswordlen);
# 3120|   
# 3121|   	/* Length needs to be in network order on the wire */

Error: CPPCHECK_WARNING (CWE-457): [#def244]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/be-fsstubs.c:503: warning[uninitvar]: Uninitialized variable: fd
#  501|   	}
#  502|   	PG_END_TRY();
#  503|-> 	if (fd < 0)
#  504|   		ereport(ERROR,
#  505|   				(errcode_for_file_access(),

Error: GCC_ANALYZER_WARNING (CWE-476): [#def245]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/hba.c: scope_hint: In function ‘parse_hba_line’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/hba.c:960:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/tupdesc.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/htup_details.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/hba.c:28: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/hba.c:2237:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/hba.c:2237:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/hba.c: scope_hint: In function ‘parse_hba_line’
#  958|   	Assert(tok_line->fields != NIL);
#  959|   	field = list_head(tok_line->fields);
#  960|-> 	tokens = lfirst(field);
#  961|   	if (tokens->length > 1)
#  962|   	{

Error: GCC_ANALYZER_WARNING (CWE-476): [#def246]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/hba.c: scope_hint: In function ‘parse_ident_line’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/hba.c:2331:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/hba.c: scope_hint: In function ‘parse_ident_line’
# 2329|   
# 2330|   	/* Get the map token (must exist) */
# 2331|-> 	tokens = lfirst(field);
# 2332|   	IDENT_MULTI_VALUE(tokens);
# 2333|   	token = linitial(tokens);

Error: CPPCHECK_WARNING (CWE-768): [#def247]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/nodes/makefuncs.c:623: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftop)},(union ListCell){.ptr_value=(rightop)}' depends on order of evaluation of side effects
#  621|   	expr->inputcollid = inputcollid;
#  622|   	if (rightop)
#  623|-> 		expr->args = list_make2(leftop, rightop);
#  624|   	else
#  625|   		expr->args = list_make1(leftop);

Error: CPPCHECK_WARNING (CWE-768): [#def248]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/nodes/makefuncs.c:695: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(qual1)},(union ListCell){.ptr_value=(qual2)}' depends on order of evaluation of side effects
#  693|   	if (qual2 == NULL)
#  694|   		return qual1;
#  695|-> 	return (Node *) make_andclause(list_make2(qual1, qual2));
#  696|   }
#  697|   

Error: CPPCHECK_WARNING (CWE-768): [#def249]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/path/indxpath.c:3272: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(rightop)},(union ListCell){.ptr_value=(leftop)}' depends on order of evaluation of side effects
# 3270|   		newclause->opno = expr_op;
# 3271|   		newclause->opfuncid = InvalidOid;
# 3272|-> 		newclause->args = list_make2(rightop, leftop);
# 3273|   
# 3274|   		clause = (Expr *) newclause;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def250]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/path/joinrels.c: scope_hint: In function ‘try_partitionwise_join’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/path/joinrels.c:1431:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lcr1’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/optimizer/appendinfo.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/path/joinrels.c:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/path/joinrels.c:1384:14: note: in expansion of macro ‘IS_PARTITIONED_REL’
# 1429|   		if (joinrel->partbounds_merged)
# 1430|   		{
# 1431|-> 			child_rel1 = lfirst_node(RelOptInfo, lcr1);
# 1432|   			child_rel2 = lfirst_node(RelOptInfo, lcr2);
# 1433|   			lcr1 = lnext(parts1, lcr1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def251]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/path/joinrels.c:1432:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lcr2’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/path/joinrels.c:1384:14: note: in expansion of macro ‘IS_PARTITIONED_REL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/path/joinrels.c: scope_hint: In function ‘try_partitionwise_join’
# 1430|   		{
# 1431|   			child_rel1 = lfirst_node(RelOptInfo, lcr1);
# 1432|-> 			child_rel2 = lfirst_node(RelOptInfo, lcr2);
# 1433|   			lcr1 = lnext(parts1, lcr1);
# 1434|   			lcr2 = lnext(parts2, lcr2);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def252]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/path/pathkeys.c: scope_hint: In function ‘pathkey_is_redundant’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/path/pathkeys.c:137:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_pathkey’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/tupdesc.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/attmap.h:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/tupconvert.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/execnodes.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/makefuncs.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/path/pathkeys.c:22: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/path/pathkeys.c:1132:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/path/pathkeys.c:1132:9: note: in expansion of macro ‘foreach’
#  135|   pathkey_is_redundant(PathKey *new_pathkey, List *pathkeys)
#  136|   {
#  137|-> 	EquivalenceClass *new_ec = new_pathkey->pk_eclass;
#  138|   	ListCell   *lc;
#  139|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def253]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/analyzejoins.c: scope_hint: In function ‘query_is_distinct_for’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/analyzejoins.c:899:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lg’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/primnodes.h:22: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/parsenodes.h:27: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodeFuncs.h:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/analyzejoins.c:25: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/analyzejoins.c:684:17: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/analyzejoins.c: scope_hint: In function ‘query_is_distinct_for’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:353:45: note: in definition of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/analyzejoins.c:889:25: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/analyzejoins.c:889:25: note: in expansion of macro ‘foreach’
#  897|   				/* non-resjunk columns should have grouping clauses */
#  898|   				Assert(lg != NULL);
#  899|-> 				sgc = (SortGroupClause *) lfirst(lg);
#  900|   				lg = lnext(topop->groupClauses, lg);
#  901|   

Error: CPPCHECK_WARNING (CWE-768): [#def254]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/initsplan.c:1035: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftjoinlist)},(union ListCell){.ptr_value=(rightjoinlist)}' depends on order of evaluation of side effects
# 1033|   		{
# 1034|   			/* force the join order exactly at this node */
# 1035|-> 			joinlist = list_make1(list_make2(leftjoinlist, rightjoinlist));
# 1036|   		}
# 1037|   		else if (list_length(leftjoinlist) + list_length(rightjoinlist) <=

Error: CPPCHECK_WARNING (CWE-768): [#def255]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/initsplan.c:1058: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftpart)},(union ListCell){.ptr_value=(rightpart)}' depends on order of evaluation of side effects
# 1056|   			else
# 1057|   				rightpart = (Node *) rightjoinlist;
# 1058|-> 			joinlist = list_make2(leftpart, rightpart);
# 1059|   		}
# 1060|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def256]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/initsplan.c: scope_hint: In function ‘distribute_qual_to_rels’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/initsplan.c:1648:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘postponed_qual_list’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/primnodes.h:22: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/parsenodes.h:27: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/catalog/objectaddress.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/catalog/pg_type.h:22: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/initsplan.c:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/initsplan.c:1098:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/initsplan.c:1098:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/initsplan.c:1103:17: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/initsplan.c:1103:17: note: in expansion of macro ‘foreach’
# 1646|   		pq->qual = clause;
# 1647|   		pq->relids = relids;
# 1648|-> 		*postponed_qual_list = lappend(*postponed_qual_list, pq);
# 1649|   		return;
# 1650|   	}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def257]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/setrefs.c: scope_hint: In function ‘fix_expr_common’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/setrefs.c:1908:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*root.grouping_map’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:40: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/primnodes.h:22: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/parsenodes.h:27: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/catalog/objectaddress.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/catalog/pg_type.h:22: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/setrefs.c:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:596:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/setrefs.c:3336:13: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:550:57: note: in definition of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/setrefs.c:3349:29: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:596:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/setrefs.c:3336:13: note: in expansion of macro ‘IsA’
# 1906|   	{
# 1907|   		GroupingFunc *g = (GroupingFunc *) node;
# 1908|-> 		AttrNumber *grouping_map = root->grouping_map;
# 1909|   
# 1910|   		/* If there are no grouping sets, we don't need this. */

Error: CPPCHECK_WARNING (CWE-476): [#def258]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/setrefs.c:2004: warning[nullPointer]: Possible null pointer dereference: bestplan
# 2002|   
# 2003|   	/* Mark the subplan we selected */
# 2004|-> 	root->isUsedSubplan[bestplan->plan_id - 1] = true;
# 2005|   
# 2006|   	return (Node *) bestplan;

Error: CPPCHECK_WARNING (CWE-768): [#def259]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/subselect.c:303: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(result)},(union ListCell){.ptr_value=(hashplan)}' depends on order of evaluation of side effects
#  301|   				/* Leave it to setrefs.c to decide which plan to use */
#  302|   				asplan = makeNode(AlternativeSubPlan);
#  303|-> 				asplan->subplans = list_make2(result, hashplan);
#  304|   				result = (Node *) asplan;
#  305|   				root->hasAlternativeSubPlans = true;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def260]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/preptlist.c: scope_hint: In function ‘preprocess_targetlist’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/preptlist.c:119:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘target_rte’
#  117|   	if ((command_type == CMD_UPDATE || command_type == CMD_DELETE ||
#  118|   		 command_type == CMD_MERGE) &&
#  119|-> 		!target_rte->inh)
#  120|   	{
#  121|   		/* row-identity logic expects to add stuff to processed_tlist */

Error: CPPCHECK_WARNING (CWE-768): [#def261]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c:482: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lpath_tlist)},(union ListCell){.ptr_value=(rpath_tlist)}' depends on order of evaluation of side effects
#  480|   	 */
#  481|   	tlist = generate_append_tlist(setOp->colTypes, setOp->colCollations, false,
#  482|-> 								  list_make2(lpath_tlist, rpath_tlist),
#  483|   								  refnames_tlist);
#  484|   

Error: CPPCHECK_WARNING (CWE-768): [#def262]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c:757: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lpath)},(union ListCell){.ptr_value=(rpath)}' depends on order of evaluation of side effects
#  755|   	if (op->op == SETOP_EXCEPT || dLeftGroups <= dRightGroups)
#  756|   	{
#  757|-> 		pathlist = list_make2(lpath, rpath);
#  758|   		tlist_list = list_make2(lpath_tlist, rpath_tlist);
#  759|   		firstFlag = 0;

Error: CPPCHECK_WARNING (CWE-768): [#def263]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c:758: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lpath_tlist)},(union ListCell){.ptr_value=(rpath_tlist)}' depends on order of evaluation of side effects
#  756|   	{
#  757|   		pathlist = list_make2(lpath, rpath);
#  758|-> 		tlist_list = list_make2(lpath_tlist, rpath_tlist);
#  759|   		firstFlag = 0;
#  760|   	}

Error: CPPCHECK_WARNING (CWE-768): [#def264]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c:763: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(rpath)},(union ListCell){.ptr_value=(lpath)}' depends on order of evaluation of side effects
#  761|   	else
#  762|   	{
#  763|-> 		pathlist = list_make2(rpath, lpath);
#  764|   		tlist_list = list_make2(rpath_tlist, lpath_tlist);
#  765|   		firstFlag = 1;

Error: CPPCHECK_WARNING (CWE-768): [#def265]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c:764: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(rpath_tlist)},(union ListCell){.ptr_value=(lpath_tlist)}' depends on order of evaluation of side effects
#  762|   	{
#  763|   		pathlist = list_make2(rpath, lpath);
#  764|-> 		tlist_list = list_make2(rpath_tlist, lpath_tlist);
#  765|   		firstFlag = 1;
#  766|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def266]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c: scope_hint: In function ‘generate_setop_grouplist’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c:1412:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lg’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c: scope_hint: In function ‘generate_setop_grouplist’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c:1395:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c:1395:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c:1395:9: note: in expansion of macro ‘foreach’
# 1410|   		/* non-resjunk columns should have grouping clauses */
# 1411|   		Assert(lg != NULL);
# 1412|-> 		sgc = (SortGroupClause *) lfirst(lg);
# 1413|   		lg = lnext(grouplist, lg);
# 1414|   		Assert(sgc->tleSortGroupRef == 0);

Error: CPPCHECK_WARNING (CWE-768): [#def267]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/util/clauses.c:2891: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(simple)},((union ListCell){.ptr_value=(makeConst(26,-1,(unsigned int)0,sizeof(unsigned int),(unsigned long)(intypioparam),false,true))})' depends on order of evaluation of side effects
# 2889|   					 * complain.
# 2890|   					 */
# 2891|-> 					args = list_make3(simple,
# 2892|   									  makeConst(OIDOID,
# 2893|   												-1,

Error: CPPCHECK_WARNING (CWE-768): [#def268]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/util/clauses.c:2891: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(simple)},((union ListCell){.ptr_value=(makeConst(26,-1,(unsigned int)0,sizeof(unsigned int),(unsigned long)(intypioparam),false,true))}),((union ListCell){.ptr_value=(makeConst(23,-1,(unsigned int)0,sizeof(int32),(unsigned long)(-1),false,true))})' depends on order of evaluation of side effects
# 2889|   					 * complain.
# 2890|   					 */
# 2891|-> 					args = list_make3(simple,
# 2892|   									  makeConst(OIDOID,
# 2893|   												-1,

Error: CPPCHECK_WARNING (CWE-457): [#def269]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/util/clauses.c:4279: warning[uninitvar]: Uninitialized variable: actual_arg_types
# 4277|   	Assert(nargs == pronargs);
# 4278|   	memcpy(declared_arg_types, proargtypes, pronargs * sizeof(Oid));
# 4279|-> 	rettype = enforce_generic_type_consistency(actual_arg_types,
# 4280|   											   declared_arg_types,
# 4281|   											   nargs,

Error: CPPCHECK_WARNING (CWE-768): [#def270]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/util/relnode.c:2021: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(larg)},(union ListCell){.ptr_value=(rarg)}' depends on order of evaluation of side effects
# 2019|   						c->coalescetype = exprType(larg);
# 2020|   						c->coalescecollid = exprCollation(larg);
# 2021|-> 						c->args = list_make2(larg, rarg);
# 2022|   						c->location = -1;
# 2023|   						nullable_partexpr = lappend(nullable_partexpr, c);

Error: CPPCHECK_WARNING (CWE-768): [#def271]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/util/restrictinfo.c:342: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(list_nth_cell(clause->args,1)->ptr_value)}),((union ListCell){.ptr_value=(list_nth_cell(clause->args,0)->ptr_value)})' depends on order of evaluation of side effects
#  340|   	newclause->opno = comm_op;
#  341|   	newclause->opfuncid = InvalidOid;
#  342|-> 	newclause->args = list_make2(lsecond(clause->args),
#  343|   								 linitial(clause->args));
#  344|   

Error: CPPCHECK_WARNING (CWE-768): [#def272]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/analyze.c:2195: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lcolnode)},(union ListCell){.ptr_value=(rcolnode)}' depends on order of evaluation of side effects
# 2193|   			/* select common type, same as CASE et al */
# 2194|   			rescoltype = select_common_type(pstate,
# 2195|-> 											list_make2(lcolnode, rcolnode),
# 2196|   											context,
# 2197|   											&bestexpr);

Error: CPPCHECK_WARNING (CWE-768): [#def273]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/analyze.c:2250: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lcolnode)},(union ListCell){.ptr_value=(rcolnode)}' depends on order of evaluation of side effects
# 2248|   
# 2249|   			rescoltypmod = select_common_typmod(pstate,
# 2250|-> 												list_make2(lcolnode, rcolnode),
# 2251|   												rescoltype);
# 2252|   

Error: CPPCHECK_WARNING (CWE-768): [#def274]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/analyze.c:2263: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lcolnode)},(union ListCell){.ptr_value=(rcolnode)}' depends on order of evaluation of side effects
# 2261|   			 */
# 2262|   			rescolcoll = select_common_collation(pstate,
# 2263|-> 												 list_make2(lcolnode, rcolnode),
# 2264|   												 (op->op == SETOP_UNION && op->all));
# 2265|   

Error: CPPCHECK_WARNING (CWE-768): [#def275]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:1790: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeIntConst(0x7FFF,-1))}),((union ListCell){.ptr_value=(makeIntConst(yyvsp[-2].ival,yylsp[-2]))})' depends on order of evaluation of side effects
# 1788|   					TypeName   *t = $1;
# 1789|   
# 1790|-> 					t->typmods = list_make2(makeIntConst(INTERVAL_FULL_RANGE, -1),
# 1791|   											makeIntConst($3, @3));
# 1792|   					$$ = makeStringConstCast($5, @5, t);

Error: CPPCHECK_WARNING (CWE-768): [#def276]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:4194: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].ielem)},(union ListCell){.ptr_value=(yyvsp[0].list)}' depends on order of evaluation of side effects
# 4192|   ExclusionConstraintElem: index_elem WITH any_operator
# 4193|   			{
# 4194|-> 				$$ = list_make2($1, $3);
# 4195|   			}
# 4196|   			/* allow OPERATOR() decoration for the benefit of ruleutils.c */

Error: CPPCHECK_WARNING (CWE-768): [#def277]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:4199: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-5].ielem)},(union ListCell){.ptr_value=(yyvsp[-1].list)}' depends on order of evaluation of side effects
# 4197|   			| index_elem WITH OPERATOR '(' any_operator ')'
# 4198|   			{
# 4199|-> 				$$ = list_make2($1, $5);
# 4200|   			}
# 4201|   		;

Error: CPPCHECK_WARNING (CWE-768): [#def278]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:5057: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-3].typnam)},(union ListCell){.ptr_value=(yyvsp[-1].typnam)}' depends on order of evaluation of side effects
# 5055|   					n->action = $4;
# 5056|   					n->objtype = OBJECT_CAST;
# 5057|-> 					n->object = (Node *) list_make2($7, $9);
# 5058|   					$$ = (Node *) n;
# 5059|   				}

Error: CPPCHECK_WARNING (CWE-768): [#def279]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:5137: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].typnam)},(union ListCell){.ptr_value=(makeString(yyvsp[0].str))}' depends on order of evaluation of side effects
# 5135|   					n->action = $4;
# 5136|   					n->objtype = OBJECT_TRANSFORM;
# 5137|-> 					n->object = (Node *) list_make2($7, makeString($9));
# 5138|   					$$ = (Node *) n;
# 5139|   				}

Error: CPPCHECK_WARNING (CWE-768): [#def280]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:5803: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeInteger(events1|events2))},((union ListCell){.ptr_value=(list_concat(columns1,columns2))})' depends on order of evaluation of side effects
# 5801|   					 * should just ignore the columns for non-UPDATE events.
# 5802|   					 */
# 5803|-> 					$$ = list_make2(makeInteger(events1 | events2),
# 5804|   									list_concat(columns1, columns2));
# 5805|   				}

Error: CPPCHECK_WARNING (CWE-768): [#def281]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:5810: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeInteger(1<<2))},(union ListCell){.ptr_value=((struct List*)NULL)}' depends on order of evaluation of side effects
# 5808|   TriggerOneEvent:
# 5809|   			INSERT
# 5810|-> 				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_INSERT), NIL); }
# 5811|   			| DELETE_P
# 5812|   				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_DELETE), NIL); }

Error: CPPCHECK_WARNING (CWE-768): [#def282]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:5812: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeInteger(1<<3))},(union ListCell){.ptr_value=((struct List*)NULL)}' depends on order of evaluation of side effects
# 5810|   				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_INSERT), NIL); }
# 5811|   			| DELETE_P
# 5812|-> 				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_DELETE), NIL); }
# 5813|   			| UPDATE
# 5814|   				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_UPDATE), NIL); }

Error: CPPCHECK_WARNING (CWE-768): [#def283]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:5814: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeInteger(1<<4))},(union ListCell){.ptr_value=((struct List*)NULL)}' depends on order of evaluation of side effects
# 5812|   				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_DELETE), NIL); }
# 5813|   			| UPDATE
# 5814|-> 				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_UPDATE), NIL); }
# 5815|   			| UPDATE OF columnList
# 5816|   				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_UPDATE), $3); }

Error: CPPCHECK_WARNING (CWE-768): [#def284]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:5816: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeInteger(1<<4))},(union ListCell){.ptr_value=(yyvsp[0].list)}' depends on order of evaluation of side effects
# 5814|   				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_UPDATE), NIL); }
# 5815|   			| UPDATE OF columnList
# 5816|-> 				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_UPDATE), $3); }
# 5817|   			| TRUNCATE
# 5818|   				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_TRUNCATE), NIL); }

Error: CPPCHECK_WARNING (CWE-768): [#def285]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:5818: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeInteger(1<<5))},(union ListCell){.ptr_value=((struct List*)NULL)}' depends on order of evaluation of side effects
# 5816|   				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_UPDATE), $3); }
# 5817|   			| TRUNCATE
# 5818|-> 				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_TRUNCATE), NIL); }
# 5819|   		;
# 5820|   

Error: CPPCHECK_WARNING (CWE-768): [#def286]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:6937: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeTypeNameFromNameList(yyvsp[-2].list))},(union ListCell){.ptr_value=(makeString(yyvsp[-5].str))}' depends on order of evaluation of side effects
# 6935|   					 * up here.
# 6936|   					 */
# 6937|-> 					n->object = (Node *) list_make2(makeTypeNameFromNameList($7), makeString($4));
# 6938|   					n->comment = $9;
# 6939|   					$$ = (Node *) n;

Error: CPPCHECK_WARNING (CWE-768): [#def287]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:6973: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].typnam)},(union ListCell){.ptr_value=(makeString(yyvsp[-2].str))}' depends on order of evaluation of side effects
# 6971|   
# 6972|   					n->objtype = OBJECT_TRANSFORM;
# 6973|-> 					n->object = (Node *) list_make2($5, makeString($7));
# 6974|   					n->comment = $9;
# 6975|   					$$ = (Node *) n;

Error: CPPCHECK_WARNING (CWE-768): [#def288]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:7009: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-5].typnam)},(union ListCell){.ptr_value=(yyvsp[-3].typnam)}' depends on order of evaluation of side effects
# 7007|   
# 7008|   					n->objtype = OBJECT_CAST;
# 7009|-> 					n->object = (Node *) list_make2($5, $7);
# 7010|   					n->comment = $10;
# 7011|   					$$ = (Node *) n;

Error: CPPCHECK_WARNING (CWE-768): [#def289]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:8345: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=((struct List*)NULL)},(union ListCell){.ptr_value=(makeInteger(-1))}' depends on order of evaluation of side effects
# 8343|   aggr_args:	'(' '*' ')'
# 8344|   				{
# 8345|-> 					$$ = list_make2(NIL, makeInteger(-1));
# 8346|   				}
# 8347|   			| '(' aggr_args_list ')'

Error: CPPCHECK_WARNING (CWE-768): [#def290]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:8349: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-1].list)},(union ListCell){.ptr_value=(makeInteger(-1))}' depends on order of evaluation of side effects
# 8347|   			| '(' aggr_args_list ')'
# 8348|   				{
# 8349|-> 					$$ = list_make2($2, makeInteger(-1));
# 8350|   				}
# 8351|   			| '(' ORDER BY aggr_args_list ')'

Error: CPPCHECK_WARNING (CWE-768): [#def291]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:8353: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-1].list)},(union ListCell){.ptr_value=(makeInteger(0))}' depends on order of evaluation of side effects
# 8351|   			| '(' ORDER BY aggr_args_list ')'
# 8352|   				{
# 8353|-> 					$$ = list_make2($4, makeInteger(0));
# 8354|   				}
# 8355|   			| '(' aggr_args_list ORDER BY aggr_args_list ')'

Error: CPPCHECK_WARNING (CWE-768): [#def292]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:8497: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(yyvsp[-2].str))},(union ListCell){.ptr_value=(makeString(yyvsp[0].str))}' depends on order of evaluation of side effects
# 8495|   			| Sconst ',' Sconst
# 8496|   				{
# 8497|-> 					$$ = list_make2(makeString($1), makeString($3));
# 8498|   				}
# 8499|   		;

Error: CPPCHECK_WARNING (CWE-768): [#def293]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:8776: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-3].typnam)},(union ListCell){.ptr_value=(yyvsp[-1].typnam)}' depends on order of evaluation of side effects
# 8774|   				}
# 8775|   			| '(' Typename ',' Typename ')'
# 8776|-> 					{ $$ = list_make2($2, $4); }
# 8777|   			| '(' NONE ',' Typename ')'					/* left unary */
# 8778|   					{ $$ = list_make2(NULL, $4); }

Error: CPPCHECK_WARNING (CWE-768): [#def294]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:8778: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(NULL)},(union ListCell){.ptr_value=(yyvsp[-1].typnam)}' depends on order of evaluation of side effects
# 8776|   					{ $$ = list_make2($2, $4); }
# 8777|   			| '(' NONE ',' Typename ')'					/* left unary */
# 8778|-> 					{ $$ = list_make2(NULL, $4); }
# 8779|   			| '(' Typename ',' NONE ')'					/* right unary */
# 8780|   					{ $$ = list_make2($2, NULL); }

Error: CPPCHECK_WARNING (CWE-768): [#def295]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:8780: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-3].typnam)},(union ListCell){.ptr_value=(NULL)}' depends on order of evaluation of side effects
# 8778|   					{ $$ = list_make2(NULL, $4); }
# 8779|   			| '(' Typename ',' NONE ')'					/* right unary */
# 8780|-> 					{ $$ = list_make2($2, NULL); }
# 8781|   		;
# 8782|   

Error: CPPCHECK_WARNING (CWE-768): [#def296]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:8896: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].typnam)},(union ListCell){.ptr_value=(yyvsp[-2].typnam)}' depends on order of evaluation of side effects
# 8894|   
# 8895|   					n->removeType = OBJECT_CAST;
# 8896|-> 					n->objects = list_make1(list_make2($5, $7));
# 8897|   					n->behavior = $9;
# 8898|   					n->missing_ok = $3;

Error: CPPCHECK_WARNING (CWE-768): [#def297]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:8930: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-6].objwithargs)},(union ListCell){.ptr_value=(yyvsp[0].objwithargs)}' depends on order of evaluation of side effects
# 8928|   transform_element_list: FROM SQL_P WITH FUNCTION function_with_argtypes ',' TO SQL_P WITH FUNCTION function_with_argtypes
# 8929|   				{
# 8930|-> 					$$ = list_make2($5, $11);
# 8931|   				}
# 8932|   				| TO SQL_P WITH FUNCTION function_with_argtypes ',' FROM SQL_P WITH FUNCTION function_with_argtypes

Error: CPPCHECK_WARNING (CWE-768): [#def298]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:8934: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[0].objwithargs)},(union ListCell){.ptr_value=(yyvsp[-6].objwithargs)}' depends on order of evaluation of side effects
# 8932|   				| TO SQL_P WITH FUNCTION function_with_argtypes ',' FROM SQL_P WITH FUNCTION function_with_argtypes
# 8933|   				{
# 8934|-> 					$$ = list_make2($11, $5);
# 8935|   				}
# 8936|   				| FROM SQL_P WITH FUNCTION function_with_argtypes

Error: CPPCHECK_WARNING (CWE-768): [#def299]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:8938: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[0].objwithargs)},(union ListCell){.ptr_value=(NULL)}' depends on order of evaluation of side effects
# 8936|   				| FROM SQL_P WITH FUNCTION function_with_argtypes
# 8937|   				{
# 8938|-> 					$$ = list_make2($5, NULL);
# 8939|   				}
# 8940|   				| TO SQL_P WITH FUNCTION function_with_argtypes

Error: CPPCHECK_WARNING (CWE-768): [#def300]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:8942: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(NULL)},(union ListCell){.ptr_value=(yyvsp[0].objwithargs)}' depends on order of evaluation of side effects
# 8940|   				| TO SQL_P WITH FUNCTION function_with_argtypes
# 8941|   				{
# 8942|-> 					$$ = list_make2(NULL, $5);
# 8943|   				}
# 8944|   		;

Error: CPPCHECK_WARNING (CWE-768): [#def301]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:8952: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-3].typnam)},(union ListCell){.ptr_value=(makeString(yyvsp[-1].str))}' depends on order of evaluation of side effects
# 8950|   
# 8951|   					n->removeType = OBJECT_TRANSFORM;
# 8952|-> 					n->objects = list_make1(list_make2($5, makeString($7)));
# 8953|   					n->behavior = $8;
# 8954|   					n->missing_ok = $3;

Error: CPPCHECK_WARNING (CWE-768): [#def302]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:11423: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].list)},(union ListCell){.ptr_value=(yyvsp[0].list)}' depends on order of evaluation of side effects
#11421|   					n->cfgname = $5;
#11422|   					n->tokentype = NIL;
#11423|-> 					n->dicts = list_make2($9,$11);
#11424|   					n->override = false;
#11425|   					n->replace = true;

Error: CPPCHECK_WARNING (CWE-768): [#def303]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:11435: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].list)},(union ListCell){.ptr_value=(yyvsp[0].list)}' depends on order of evaluation of side effects
#11433|   					n->cfgname = $5;
#11434|   					n->tokentype = $9;
#11435|-> 					n->dicts = list_make2($11,$13);
#11436|   					n->override = false;
#11437|   					n->replace = true;

Error: CPPCHECK_WARNING (CWE-768): [#def304]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:13462: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[0].alias)},(union ListCell){.ptr_value=((struct List*)NULL)}' depends on order of evaluation of side effects
#13460|   			alias_clause
#13461|   				{
#13462|-> 					$$ = list_make2($1, NIL);
#13463|   				}
#13464|   			| AS '(' TableFuncElementList ')'

Error: CPPCHECK_WARNING (CWE-768): [#def305]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:13466: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(NULL)},(union ListCell){.ptr_value=(yyvsp[-1].list)}' depends on order of evaluation of side effects
#13464|   			| AS '(' TableFuncElementList ')'
#13465|   				{
#13466|-> 					$$ = list_make2(NULL, $3);
#13467|   				}
#13468|   			| AS ColId '(' TableFuncElementList ')'

Error: CPPCHECK_WARNING (CWE-768): [#def306]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:13473: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(a)},(union ListCell){.ptr_value=(yyvsp[-1].list)}' depends on order of evaluation of side effects
#13471|   
#13472|   					a->aliasname = $2;
#13473|-> 					$$ = list_make2(a, $4);
#13474|   				}
#13475|   			| ColId '(' TableFuncElementList ')'

Error: CPPCHECK_WARNING (CWE-768): [#def307]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:13480: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(a)},(union ListCell){.ptr_value=(yyvsp[-1].list)}' depends on order of evaluation of side effects
#13478|   
#13479|   					a->aliasname = $1;
#13480|-> 					$$ = list_make2(a, $3);
#13481|   				}
#13482|   			| /*EMPTY*/

Error: CPPCHECK_WARNING (CWE-768): [#def308]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:13484: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(NULL)},(union ListCell){.ptr_value=((struct List*)NULL)}' depends on order of evaluation of side effects
#13482|   			| /*EMPTY*/
#13483|   				{
#13484|-> 					$$ = list_make2(NULL, NIL);
#13485|   				}
#13486|   		;

Error: CPPCHECK_WARNING (CWE-768): [#def309]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:13513: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].list)},(union ListCell){.ptr_value=(yyvsp[0].alias)}' depends on order of evaluation of side effects
#13511|   join_qual: USING '(' name_list ')' opt_alias_clause_for_join_using
#13512|   				{
#13513|-> 					$$ = (Node *) list_make2($3, $5);
#13514|   				}
#13515|   			| ON a_expr

Error: CPPCHECK_WARNING (CWE-768): [#def310]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:13639: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-1].node)},(union ListCell){.ptr_value=((struct List*)NULL)}' depends on order of evaluation of side effects
#13637|   					n->ordinality = $2;
#13638|   					n->is_rowsfrom = false;
#13639|-> 					n->functions = list_make1(list_make2($1, NIL));
#13640|   					/* alias and coldeflist are set by table_ref production */
#13641|   					$$ = (Node *) n;

Error: CPPCHECK_WARNING (CWE-768): [#def311]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:13657: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-1].node)},(union ListCell){.ptr_value=(yyvsp[0].list)}' depends on order of evaluation of side effects
#13655|   
#13656|   rowsfrom_item: func_expr_windowless opt_col_def_list
#13657|-> 				{ $$ = list_make2($1, $2); }
#13658|   		;
#13659|   

Error: CPPCHECK_WARNING (CWE-768): [#def312]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:13963: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeIntConst(0x7FFF,-1))}),((union ListCell){.ptr_value=(makeIntConst(yyvsp[-1].ival,yylsp[-1]))})' depends on order of evaluation of side effects
#13961|   				{
#13962|   					$$ = $1;
#13963|-> 					$$->typmods = list_make2(makeIntConst(INTERVAL_FULL_RANGE, -1),
#13964|   											 makeIntConst($3, @3));
#13965|   				}

Error: CPPCHECK_WARNING (CWE-768): [#def313]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:14347: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeIntConst(1<<12,yylsp[-3]))}),((union ListCell){.ptr_value=(makeIntConst(yyvsp[-1].ival,yylsp[-1]))})' depends on order of evaluation of side effects
#14345|   			| SECOND_P '(' Iconst ')'
#14346|   				{
#14347|-> 					$$ = list_make2(makeIntConst(INTERVAL_MASK(SECOND), @1),
#14348|   									makeIntConst($3, @3));
#14349|   				}

Error: CPPCHECK_WARNING (CWE-768): [#def314]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:14396: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[0].node)},(union ListCell){.ptr_value=(yyvsp[-4].node)}' depends on order of evaluation of side effects
#14394|   				{
#14395|   					$$ = (Node *) makeFuncCall(SystemFuncName("timezone"),
#14396|-> 											   list_make2($5, $1),
#14397|   											   COERCE_SQL_SYNTAX,
#14398|   											   @2);

Error: CPPCHECK_WARNING (CWE-768): [#def315]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:14460: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14458|   				{
#14459|   					FuncCall   *n = makeFuncCall(SystemFuncName("like_escape"),
#14460|-> 												 list_make2($3, $5),
#14461|   												 COERCE_EXPLICIT_CALL,
#14462|   												 @2);

Error: CPPCHECK_WARNING (CWE-768): [#def316]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:14474: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14472|   				{
#14473|   					FuncCall   *n = makeFuncCall(SystemFuncName("like_escape"),
#14474|-> 												 list_make2($4, $6),
#14475|   												 COERCE_EXPLICIT_CALL,
#14476|   												 @2);

Error: CPPCHECK_WARNING (CWE-768): [#def317]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:14488: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14486|   				{
#14487|   					FuncCall   *n = makeFuncCall(SystemFuncName("like_escape"),
#14488|-> 												 list_make2($3, $5),
#14489|   												 COERCE_EXPLICIT_CALL,
#14490|   												 @2);

Error: CPPCHECK_WARNING (CWE-768): [#def318]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:14502: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14500|   				{
#14501|   					FuncCall   *n = makeFuncCall(SystemFuncName("like_escape"),
#14502|-> 												 list_make2($4, $6),
#14503|   												 COERCE_EXPLICIT_CALL,
#14504|   												 @2);

Error: CPPCHECK_WARNING (CWE-768): [#def319]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:14521: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14519|   				{
#14520|   					FuncCall   *n = makeFuncCall(SystemFuncName("similar_to_escape"),
#14521|-> 												 list_make2($4, $6),
#14522|   												 COERCE_EXPLICIT_CALL,
#14523|   												 @2);

Error: CPPCHECK_WARNING (CWE-768): [#def320]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:14539: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14537|   				{
#14538|   					FuncCall   *n = makeFuncCall(SystemFuncName("similar_to_escape"),
#14539|-> 												 list_make2($5, $7),
#14540|   												 COERCE_EXPLICIT_CALL,
#14541|   												 @2);

Error: CPPCHECK_WARNING (CWE-768): [#def321]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:14675: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14673|   												   "BETWEEN",
#14674|   												   $1,
#14675|-> 												   (Node *) list_make2($4, $6),
#14676|   												   @2);
#14677|   				}

Error: CPPCHECK_WARNING (CWE-768): [#def322]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:14683: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14681|   												   "NOT BETWEEN",
#14682|   												   $1,
#14683|-> 												   (Node *) list_make2($5, $7),
#14684|   												   @2);
#14685|   				}

Error: CPPCHECK_WARNING (CWE-768): [#def323]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:14691: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14689|   												   "BETWEEN SYMMETRIC",
#14690|   												   $1,
#14691|-> 												   (Node *) list_make2($4, $6),
#14692|   												   @2);
#14693|   				}

Error: CPPCHECK_WARNING (CWE-768): [#def324]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:14699: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14697|   												   "NOT BETWEEN SYMMETRIC",
#14698|   												   $1,
#14699|-> 												   (Node *) list_make2($5, $7),
#14700|   												   @2);
#14701|   				}

Error: CPPCHECK_WARNING (CWE-768): [#def325]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:14802: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-3].node)},((union ListCell){.ptr_value=(makeStringConst(yyvsp[-1].str,yylsp[-1]))})' depends on order of evaluation of side effects
#14800|   				{
#14801|   					$$ = (Node *) makeFuncCall(SystemFuncName("is_normalized"),
#14802|-> 											   list_make2($1, makeStringConst($3, @3)),
#14803|   											   COERCE_SQL_SYNTAX,
#14804|   											   @2);

Error: CPPCHECK_WARNING (CWE-768): [#def326]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:14817: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},((union ListCell){.ptr_value=(makeStringConst(yyvsp[-1].str,yylsp[-1]))})' depends on order of evaluation of side effects
#14815|   				{
#14816|   					$$ = makeNotExpr((Node *) makeFuncCall(SystemFuncName("is_normalized"),
#14817|-> 														   list_make2($1, makeStringConst($4, @4)),
#14818|   														   COERCE_SQL_SYNTAX,
#14819|   														   @2),

Error: CPPCHECK_WARNING (CWE-768): [#def327]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:15280: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-3].node)},((union ListCell){.ptr_value=(makeStringConst(yyvsp[-1].str,yylsp[-1]))})' depends on order of evaluation of side effects
#15278|   				{
#15279|   					$$ = (Node *) makeFuncCall(SystemFuncName("normalize"),
#15280|-> 											   list_make2($3, makeStringConst($5, @5)),
#15281|   											   COERCE_SQL_SYNTAX,
#15282|   											   @1);

Error: CPPCHECK_WARNING (CWE-768): [#def328]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:15439: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[-1].node)}' depends on order of evaluation of side effects
#15437|   					 * converted to xmlexists(A, B)*/
#15438|   					$$ = (Node *) makeFuncCall(SystemFuncName("xmlexists"),
#15439|-> 											   list_make2($3, $4),
#15440|   											   COERCE_SQL_SYNTAX,
#15441|   											   @1);

Error: CPPCHECK_WARNING (CWE-768): [#def329]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:15451: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},((union ListCell){.ptr_value=(makeBoolAConst(yyvsp[-1].boolean,-1))})' depends on order of evaluation of side effects
#15449|   					XmlExpr *x = (XmlExpr *)
#15450|   						makeXmlExpr(IS_XMLPARSE, NULL, NIL,
#15451|-> 									list_make2($4, makeBoolAConst($5, -1)),
#15452|   									@1);
#15453|   

Error: CPPCHECK_WARNING (CWE-768): [#def330]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:15468: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)}' depends on order of evaluation of side effects
#15466|   				{
#15467|   					$$ = makeXmlExpr(IS_XMLROOT, NULL, NIL,
#15468|-> 									 list_make3($3, $5, $6), @1);
#15469|   				}
#15470|   			| XMLSERIALIZE '(' document_or_content a_expr AS SimpleTypename ')'

Error: CPPCHECK_WARNING (CWE-768): [#def331]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:15468: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[-1].node)}' depends on order of evaluation of side effects
#15466|   				{
#15467|   					$$ = makeXmlExpr(IS_XMLROOT, NULL, NIL,
#15468|-> 									 list_make3($3, $5, $6), @1);
#15469|   				}
#15470|   			| XMLSERIALIZE '(' document_or_content a_expr AS SimpleTypename ')'

Error: CPPCHECK_WARNING (CWE-768): [#def332]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:15973: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeStringConst(yyvsp[-2].str,yylsp[-2]))}),(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#15971|   			extract_arg FROM a_expr
#15972|   				{
#15973|-> 					$$ = list_make2(makeStringConst($1, @1), $3);
#15974|   				}
#15975|   		;

Error: CPPCHECK_WARNING (CWE-768): [#def333]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:16003: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-6].node)},(union ListCell){.ptr_value=(yyvsp[-4].node)}' depends on order of evaluation of side effects
#16001|   				{
#16002|   					/* overlay(A PLACING B FROM C FOR D) is converted to overlay(A, B, C, D) */
#16003|-> 					$$ = list_make4($1, $3, $5, $7);
#16004|   				}
#16005|   			| a_expr PLACING a_expr FROM a_expr

Error: CPPCHECK_WARNING (CWE-768): [#def334]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:16003: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-6].node)},(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)}' depends on order of evaluation of side effects
#16001|   				{
#16002|   					/* overlay(A PLACING B FROM C FOR D) is converted to overlay(A, B, C, D) */
#16003|-> 					$$ = list_make4($1, $3, $5, $7);
#16004|   				}
#16005|   			| a_expr PLACING a_expr FROM a_expr

Error: CPPCHECK_WARNING (CWE-768): [#def335]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:16003: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-6].node)},(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#16001|   				{
#16002|   					/* overlay(A PLACING B FROM C FOR D) is converted to overlay(A, B, C, D) */
#16003|-> 					$$ = list_make4($1, $3, $5, $7);
#16004|   				}
#16005|   			| a_expr PLACING a_expr FROM a_expr

Error: CPPCHECK_WARNING (CWE-768): [#def336]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:16008: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)}' depends on order of evaluation of side effects
#16006|   				{
#16007|   					/* overlay(A PLACING B FROM C) is converted to overlay(A, B, C) */
#16008|-> 					$$ = list_make3($1, $3, $5);
#16009|   				}
#16010|   		;

Error: CPPCHECK_WARNING (CWE-768): [#def337]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:16008: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#16006|   				{
#16007|   					/* overlay(A PLACING B FROM C) is converted to overlay(A, B, C) */
#16008|-> 					$$ = list_make3($1, $3, $5);
#16009|   				}
#16010|   		;

Error: CPPCHECK_WARNING (CWE-768): [#def338]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:16014: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[0].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)}' depends on order of evaluation of side effects
#16012|   /* position_list uses b_expr not a_expr to avoid conflict with general IN */
#16013|   position_list:
#16014|-> 			b_expr IN_P b_expr						{ $$ = list_make2($3, $1); }
#16015|   		;
#16016|   

Error: CPPCHECK_WARNING (CWE-768): [#def339]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:16037: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)}' depends on order of evaluation of side effects
#16035|   			a_expr FROM a_expr FOR a_expr
#16036|   				{
#16037|-> 					$$ = list_make3($1, $3, $5);
#16038|   				}
#16039|   			| a_expr FOR a_expr FROM a_expr

Error: CPPCHECK_WARNING (CWE-768): [#def340]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:16037: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#16035|   			a_expr FROM a_expr FOR a_expr
#16036|   				{
#16037|-> 					$$ = list_make3($1, $3, $5);
#16038|   				}
#16039|   			| a_expr FOR a_expr FROM a_expr

Error: CPPCHECK_WARNING (CWE-768): [#def341]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:16042: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#16040|   				{
#16041|   					/* not legal per SQL, but might as well allow it */
#16042|-> 					$$ = list_make3($1, $5, $3);
#16043|   				}
#16044|   			| a_expr FROM a_expr

Error: CPPCHECK_WARNING (CWE-768): [#def342]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:16042: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[0].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)}' depends on order of evaluation of side effects
#16040|   				{
#16041|   					/* not legal per SQL, but might as well allow it */
#16042|-> 					$$ = list_make3($1, $5, $3);
#16043|   				}
#16044|   			| a_expr FROM a_expr

Error: CPPCHECK_WARNING (CWE-768): [#def343]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:16053: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#16051|   					 * such a call in regular function call syntax.
#16052|   					 */
#16053|-> 					$$ = list_make2($1, $3);
#16054|   				}
#16055|   			| a_expr FOR a_expr

Error: CPPCHECK_WARNING (CWE-768): [#def344]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:16068: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},((union ListCell){.ptr_value=(makeIntConst(1,-1))})' depends on order of evaluation of side effects
#16066|   					 * is unknown or doesn't have an implicit cast to int4.
#16067|   					 */
#16068|-> 					$$ = list_make3($1, makeIntConst(1, -1),
#16069|   									makeTypeCast($3,
#16070|   												 SystemTypeName("int4"), -1));

Error: CPPCHECK_WARNING (CWE-768): [#def345]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:16068: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},((union ListCell){.ptr_value=(makeIntConst(1,-1))}),((union ListCell){.ptr_value=(makeTypeCast(yyvsp[0].node,SystemTypeName("int4"),-1))})' depends on order of evaluation of side effects
#16066|   					 * is unknown or doesn't have an implicit cast to int4.
#16067|   					 */
#16068|-> 					$$ = list_make3($1, makeIntConst(1, -1),
#16069|   									makeTypeCast($3,
#16070|   												 SystemTypeName("int4"), -1));

Error: CPPCHECK_WARNING (CWE-768): [#def346]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:16074: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)}' depends on order of evaluation of side effects
#16072|   			| a_expr SIMILAR a_expr ESCAPE a_expr
#16073|   				{
#16074|-> 					$$ = list_make3($1, $3, $5);
#16075|   				}
#16076|   		;

Error: CPPCHECK_WARNING (CWE-768): [#def347]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:16074: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#16072|   			| a_expr SIMILAR a_expr ESCAPE a_expr
#16073|   				{
#16074|-> 					$$ = list_make3($1, $3, $5);
#16075|   				}
#16076|   		;

Error: CPPCHECK_WARNING (CWE-768): [#def348]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:16398: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeIntConst(0x7FFF,-1))}),((union ListCell){.ptr_value=(makeIntConst(yyvsp[-2].ival,yylsp[-2]))})' depends on order of evaluation of side effects
#16396|   					TypeName   *t = $1;
#16397|   
#16398|-> 					t->typmods = list_make2(makeIntConst(INTERVAL_FULL_RANGE, -1),
#16399|   											makeIntConst($3, @3));
#16400|   					$$ = makeStringConstCast($5, @5, t);

Error: CPPCHECK_WARNING (CWE-457): [#def349]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:16492: error[legacyUninitvar]: Uninitialized variable: n
#16490|   						n->rolename = pstrdup($1);
#16491|   					}
#16492|-> 					$$ = n;
#16493|   				}
#16494|   			| CURRENT_ROLE

Error: CPPCHECK_WARNING (CWE-768): [#def350]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:17923: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(list_concat(directargs,orderedargs))}),(union ListCell){.ptr_value=(ndirectargs)}' depends on order of evaluation of side effects
#17921|   	ndirectargs = makeInteger(list_length(directargs));
#17922|   
#17923|-> 	return list_make2(list_concat(directargs, orderedargs),
#17924|   					  ndirectargs);
#17925|   }

Error: CPPCHECK_WARNING (CWE-768): [#def351]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:18030: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString("pg_catalog"))},(union ListCell){.ptr_value=(makeString(name))}' depends on order of evaluation of side effects
#18028|   SystemFuncName(char *name)
#18029|   {
#18030|-> 	return list_make2(makeString("pg_catalog"), makeString(name));
#18031|   }
#18032|   

Error: CPPCHECK_WARNING (CWE-768): [#def352]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:18042: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString("pg_catalog"))},(union ListCell){.ptr_value=(makeString(name))}' depends on order of evaluation of side effects
#18040|   SystemTypeName(char *name)
#18041|   {
#18042|-> 	return makeTypeNameFromNameList(list_make2(makeString("pg_catalog"),
#18043|   											   makeString(name)));
#18044|   }

Error: CPPCHECK_WARNING (CWE-768): [#def353]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:18111: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lexpr)},(union ListCell){.ptr_value=(rexpr)}' depends on order of evaluation of side effects
#18109|   		}
#18110|   	}
#18111|-> 	return (Node *) makeBoolExpr(AND_EXPR, list_make2(lexpr, rexpr), location);
#18112|   }
#18113|   

Error: CPPCHECK_WARNING (CWE-768): [#def354]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/gram.y:18128: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lexpr)},(union ListCell){.ptr_value=(rexpr)}' depends on order of evaluation of side effects
#18126|   		}
#18127|   	}
#18128|-> 	return (Node *) makeBoolExpr(OR_EXPR, list_make2(lexpr, rexpr), location);
#18129|   }
#18130|   

Error: CPPCHECK_WARNING (CWE-768): [#def355]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_agg.c:2077: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(make_agg_arg(17,(unsigned int)0))}),((union ListCell){.ptr_value=(make_agg_arg(2281,(unsigned int)0))})' depends on order of evaluation of side effects
# 2075|   
# 2076|   	/* deserialfn always takes BYTEA, INTERNAL and returns INTERNAL */
# 2077|-> 	args = list_make2(make_agg_arg(BYTEAOID, InvalidOid),
# 2078|   					  make_agg_arg(INTERNALOID, InvalidOid));
# 2079|   

Error: CPPCHECK_WARNING (CWE-768): [#def356]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_clause.c:1591: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(l_colvar)},(union ListCell){.ptr_value=(r_colvar)}' depends on order of evaluation of side effects
# 1589|   
# 1590|   	outcoltype = select_common_type(pstate,
# 1591|-> 									list_make2(l_colvar, r_colvar),
# 1592|   									"JOIN/USING",
# 1593|   									NULL);

Error: CPPCHECK_WARNING (CWE-768): [#def357]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_clause.c:1595: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(l_colvar)},(union ListCell){.ptr_value=(r_colvar)}' depends on order of evaluation of side effects
# 1593|   									NULL);
# 1594|   	outcoltypmod = select_common_typmod(pstate,
# 1595|-> 										list_make2(l_colvar, r_colvar),
# 1596|   										outcoltype);
# 1597|   

Error: CPPCHECK_WARNING (CWE-768): [#def358]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_clause.c:1663: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(l_node)},(union ListCell){.ptr_value=(r_node)}' depends on order of evaluation of side effects
# 1661|   				c->coalescetype = outcoltype;
# 1662|   				/* coalescecollid will get set below */
# 1663|-> 				c->args = list_make2(l_node, r_node);
# 1664|   				c->location = -1;
# 1665|   				res_node = (Node *) c;

Error: CPPCHECK_WARNING (CWE-768): [#def359]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_collate.c:377: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(le)},(union ListCell){.ptr_value=(re)}' depends on order of evaluation of side effects
#  375|   
#  376|   					coll = select_common_collation(context->pstate,
#  377|-> 												   list_make2(le, re),
#  378|   												   true);
#  379|   					colls = lappend_oid(colls, coll);

Error: CPPCHECK_WARNING (CWE-768): [#def360]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_cte.c:276: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(cycle_clause->cycle_mark_value)},(union ListCell){.ptr_value=(cycle_clause->cycle_mark_default)}' depends on order of evaluation of side effects
#  274|   		cycle_clause->cycle_mark_type =
#  275|   			select_common_type(pstate,
#  276|-> 							   list_make2(cycle_clause->cycle_mark_value,
#  277|   										  cycle_clause->cycle_mark_default),
#  278|   							   "CYCLE", NULL);

Error: CPPCHECK_WARNING (CWE-768): [#def361]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_cte.c:292: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(cycle_clause->cycle_mark_value)},(union ListCell){.ptr_value=(cycle_clause->cycle_mark_default)}' depends on order of evaluation of side effects
#  290|   		cycle_clause->cycle_mark_typmod =
#  291|   			select_common_typmod(pstate,
#  292|-> 								 list_make2(cycle_clause->cycle_mark_value,
#  293|   											cycle_clause->cycle_mark_default),
#  294|   								 cycle_clause->cycle_mark_type);

Error: CPPCHECK_WARNING (CWE-768): [#def362]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_cte.c:298: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(cycle_clause->cycle_mark_value)},(union ListCell){.ptr_value=(cycle_clause->cycle_mark_default)}' depends on order of evaluation of side effects
#  296|   		cycle_clause->cycle_mark_collation =
#  297|   			select_common_collation(pstate,
#  298|-> 									list_make2(cycle_clause->cycle_mark_value,
#  299|   											   cycle_clause->cycle_mark_default),
#  300|   									true);

Error: CPPCHECK_WARNING (CWE-768): [#def363]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_expr.c:1213: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(result)},(union ListCell){.ptr_value=(cmp)}' depends on order of evaluation of side effects
# 1211|   		else
# 1212|   			result = (Node *) makeBoolExpr(useOr ? OR_EXPR : AND_EXPR,
# 1213|-> 										   list_make2(result, cmp),
# 1214|   										   a->location);
# 1215|   	}

Error: CPPCHECK_WARNING (CWE-768): [#def364]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_expr.c:1252: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,">=",aexpr,bexpr,a->location))}),((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,"<=",(typeof(aexpr))copyObjectImpl(aexpr),cexpr,a->location))})' depends on order of evaluation of side effects
# 1250|   	{
# 1251|   		case AEXPR_BETWEEN:
# 1252|-> 			args = list_make2(makeSimpleA_Expr(AEXPR_OP, ">=",
# 1253|   											   aexpr, bexpr,
# 1254|   											   a->location),

Error: CPPCHECK_WARNING (CWE-768): [#def365]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_expr.c:1261: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,"<",aexpr,bexpr,a->location))}),((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,">",(typeof(aexpr))copyObjectImpl(aexpr),cexpr,a->location))})' depends on order of evaluation of side effects
# 1259|   			break;
# 1260|   		case AEXPR_NOT_BETWEEN:
# 1261|-> 			args = list_make2(makeSimpleA_Expr(AEXPR_OP, "<",
# 1262|   											   aexpr, bexpr,
# 1263|   											   a->location),

Error: CPPCHECK_WARNING (CWE-768): [#def366]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_expr.c:1270: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,">=",aexpr,bexpr,a->location))}),((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,"<=",(typeof(aexpr))copyObjectImpl(aexpr),cexpr,a->location))})' depends on order of evaluation of side effects
# 1268|   			break;
# 1269|   		case AEXPR_BETWEEN_SYM:
# 1270|-> 			args = list_make2(makeSimpleA_Expr(AEXPR_OP, ">=",
# 1271|   											   aexpr, bexpr,
# 1272|   											   a->location),

Error: CPPCHECK_WARNING (CWE-768): [#def367]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_expr.c:1277: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,">=",(typeof(aexpr))copyObjectImpl(aexpr),(typeof(cexpr))copyObjectImpl(cexpr),a->location))}),((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,"<=",(typeof(aexpr))copyObjectImpl(aexpr),(typeof(bexpr))copyObjectImpl(bexpr),a->location))})' depends on order of evaluation of side effects
# 1275|   											   a->location));
# 1276|   			sub1 = (Node *) makeBoolExpr(AND_EXPR, args, a->location);
# 1277|-> 			args = list_make2(makeSimpleA_Expr(AEXPR_OP, ">=",
# 1278|   											   copyObject(aexpr), copyObject(cexpr),
# 1279|   											   a->location),

Error: CPPCHECK_WARNING (CWE-768): [#def368]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_expr.c:1284: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(sub1)},(union ListCell){.ptr_value=(sub2)}' depends on order of evaluation of side effects
# 1282|   											   a->location));
# 1283|   			sub2 = (Node *) makeBoolExpr(AND_EXPR, args, a->location);
# 1284|-> 			args = list_make2(sub1, sub2);
# 1285|   			result = (Node *) makeBoolExpr(OR_EXPR, args, a->location);
# 1286|   			break;

Error: CPPCHECK_WARNING (CWE-768): [#def369]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_expr.c:1288: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,"<",aexpr,bexpr,a->location))}),((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,">",(typeof(aexpr))copyObjectImpl(aexpr),cexpr,a->location))})' depends on order of evaluation of side effects
# 1286|   			break;
# 1287|   		case AEXPR_NOT_BETWEEN_SYM:
# 1288|-> 			args = list_make2(makeSimpleA_Expr(AEXPR_OP, "<",
# 1289|   											   aexpr, bexpr,
# 1290|   											   a->location),

Error: CPPCHECK_WARNING (CWE-768): [#def370]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_expr.c:1295: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,"<",(typeof(aexpr))copyObjectImpl(aexpr),(typeof(cexpr))copyObjectImpl(cexpr),a->location))}),((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,">",(typeof(aexpr))copyObjectImpl(aexpr),(typeof(bexpr))copyObjectImpl(bexpr),a->location))})' depends on order of evaluation of side effects
# 1293|   											   a->location));
# 1294|   			sub1 = (Node *) makeBoolExpr(OR_EXPR, args, a->location);
# 1295|-> 			args = list_make2(makeSimpleA_Expr(AEXPR_OP, "<",
# 1296|   											   copyObject(aexpr), copyObject(cexpr),
# 1297|   											   a->location),

Error: CPPCHECK_WARNING (CWE-768): [#def371]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_expr.c:1302: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(sub1)},(union ListCell){.ptr_value=(sub2)}' depends on order of evaluation of side effects
# 1300|   											   a->location));
# 1301|   			sub2 = (Node *) makeBoolExpr(OR_EXPR, args, a->location);
# 1302|-> 			args = list_make2(sub1, sub2);
# 1303|   			result = (Node *) makeBoolExpr(AND_EXPR, args, a->location);
# 1304|   			break;

Error: CPPCHECK_WARNING (CWE-768): [#def372]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_expr.c:2942: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(result)},(union ListCell){.ptr_value=(cmp)}' depends on order of evaluation of side effects
# 2940|   		else
# 2941|   			result = (Node *) makeBoolExpr(OR_EXPR,
# 2942|-> 										   list_make2(result, cmp),
# 2943|   										   location);
# 2944|   	}

Error: CPPCHECK_WARNING (CWE-768): [#def373]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_func.c:1781: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(aarg->ptr_value)},(union ListCell){.ptr_value=(harg->ptr_value)}' depends on order of evaluation of side effects
# 1779|   		 */
# 1780|   		commontype = select_common_type(pstate,
# 1781|-> 										list_make2(lfirst(aarg), lfirst(harg)),
# 1782|   										"WITHIN GROUP",
# 1783|   										NULL);

Error: CPPCHECK_WARNING (CWE-768): [#def374]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_func.c:1785: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(aarg->ptr_value)},(union ListCell){.ptr_value=(harg->ptr_value)}' depends on order of evaluation of side effects
# 1783|   										NULL);
# 1784|   		commontypmod = select_common_typmod(pstate,
# 1785|-> 											list_make2(lfirst(aarg), lfirst(harg)),
# 1786|   											commontype);
# 1787|   

Error: CPPCHECK_WARNING (CWE-457): [#def375]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_func.c:2272: warning[uninitvar]: Uninitialized variable: argoids
# 2270|   	 */
# 2271|   	oid = LookupFuncNameInternal(func->args_unspecified ? objtype : OBJECT_ROUTINE,
# 2272|-> 								 func->objname, nargs, argoids,
# 2273|   								 false, missing_ok,
# 2274|   								 &lookupError);

Error: CPPCHECK_WARNING (CWE-768): [#def376]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_oper.c:733: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(ltree)},(union ListCell){.ptr_value=(rtree)}' depends on order of evaluation of side effects
#  731|   	{
#  732|   		/* otherwise, binary operator */
#  733|-> 		args = list_make2(ltree, rtree);
#  734|   		actual_arg_types[0] = ltypeId;
#  735|   		actual_arg_types[1] = rtypeId;

Error: CPPCHECK_WARNING (CWE-768): [#def377]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_oper.c:835: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(ltree)},(union ListCell){.ptr_value=(rtree)}' depends on order of evaluation of side effects
#  833|   				 parser_errposition(pstate, location)));
#  834|   
#  835|-> 	args = list_make2(ltree, rtree);
#  836|   	actual_arg_types[0] = ltypeId;
#  837|   	actual_arg_types[1] = rtypeId;

Error: CPPCHECK_WARNING (CWE-768): [#def378]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_utilcmd.c:516: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(snamespace))},(union ListCell){.ptr_value=(makeString(cxt->relation->relname))}' depends on order of evaluation of side effects
#  514|   	altseqstmt = makeNode(AlterSeqStmt);
#  515|   	altseqstmt->sequence = makeRangeVar(snamespace, sname, -1);
#  516|-> 	attnamelist = list_make3(makeString(snamespace),
#  517|   							 makeString(cxt->relation->relname),
#  518|   							 makeString(column->colname));

Error: CPPCHECK_WARNING (CWE-768): [#def379]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_utilcmd.c:516: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(snamespace))},(union ListCell){.ptr_value=(makeString(cxt->relation->relname))},(union ListCell){.ptr_value=(makeString(column->colname))}' depends on order of evaluation of side effects
#  514|   	altseqstmt = makeNode(AlterSeqStmt);
#  515|   	altseqstmt->sequence = makeRangeVar(snamespace, sname, -1);
#  516|-> 	attnamelist = list_make3(makeString(snamespace),
#  517|   							 makeString(cxt->relation->relname),
#  518|   							 makeString(column->colname));

Error: CPPCHECK_WARNING (CWE-768): [#def380]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_utilcmd.c:1125: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(cxt->relation->schemaname))},(union ListCell){.ptr_value=(makeString(cxt->relation->relname))}' depends on order of evaluation of side effects
# 1123|   
# 1124|   			stmt->objtype = OBJECT_COLUMN;
# 1125|-> 			stmt->object = (Node *) list_make3(makeString(cxt->relation->schemaname),
# 1126|   											   makeString(cxt->relation->relname),
# 1127|   											   makeString(def->colname));

Error: CPPCHECK_WARNING (CWE-768): [#def381]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_utilcmd.c:1125: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(cxt->relation->schemaname))},(union ListCell){.ptr_value=(makeString(cxt->relation->relname))},(union ListCell){.ptr_value=(makeString(def->colname))}' depends on order of evaluation of side effects
# 1123|   
# 1124|   			stmt->objtype = OBJECT_COLUMN;
# 1125|-> 			stmt->object = (Node *) list_make3(makeString(cxt->relation->schemaname),
# 1126|   											   makeString(cxt->relation->relname),
# 1127|   											   makeString(def->colname));

Error: CPPCHECK_WARNING (CWE-768): [#def382]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_utilcmd.c:1386: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(heapRel->schemaname))},(union ListCell){.ptr_value=(makeString(heapRel->relname))}' depends on order of evaluation of side effects
# 1384|   
# 1385|   				stmt->objtype = OBJECT_TABCONSTRAINT;
# 1386|-> 				stmt->object = (Node *) list_make3(makeString(heapRel->schemaname),
# 1387|   												   makeString(heapRel->relname),
# 1388|   												   makeString(n->conname));

Error: CPPCHECK_WARNING (CWE-768): [#def383]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_utilcmd.c:1386: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(heapRel->schemaname))},(union ListCell){.ptr_value=(makeString(heapRel->relname))},(union ListCell){.ptr_value=(makeString(n->conname))}' depends on order of evaluation of side effects
# 1384|   
# 1385|   				stmt->objtype = OBJECT_TABCONSTRAINT;
# 1386|-> 				stmt->object = (Node *) list_make3(makeString(heapRel->schemaname),
# 1387|   												   makeString(heapRel->relname),
# 1388|   												   makeString(n->conname));

Error: CPPCHECK_WARNING (CWE-768): [#def384]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_utilcmd.c:1687: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(nspname))},(union ListCell){.ptr_value=(makeString(oprname))}' depends on order of evaluation of side effects
# 1685|   					/* For simplicity we always schema-qualify the op name */
# 1686|   					nspname = get_namespace_name(operform->oprnamespace);
# 1687|-> 					namelist = list_make2(makeString(nspname),
# 1688|   										  makeString(oprname));
# 1689|   					index->excludeOpNames = lappend(index->excludeOpNames,

Error: CPPCHECK_WARNING (CWE-768): [#def385]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_utilcmd.c:2031: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(nsp_name))},(union ListCell){.ptr_value=(makeString(coll_name))}' depends on order of evaluation of side effects
# 2029|   	nsp_name = get_namespace_name(coll_rec->collnamespace);
# 2030|   	coll_name = pstrdup(NameStr(coll_rec->collname));
# 2031|-> 	result = list_make2(makeString(nsp_name), makeString(coll_name));
# 2032|   
# 2033|   	ReleaseSysCache(ht_coll);

Error: CPPCHECK_WARNING (CWE-768): [#def386]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_utilcmd.c:2061: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(nsp_name))},(union ListCell){.ptr_value=(makeString(opc_name))}' depends on order of evaluation of side effects
# 2059|   		char	   *opc_name = pstrdup(NameStr(opc_rec->opcname));
# 2060|   
# 2061|-> 		result = list_make2(makeString(nsp_name), makeString(opc_name));
# 2062|   	}
# 2063|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def387]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c: scope_hint: In function ‘core_yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7489:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7368:10: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7373:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7591:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7373:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7375:13: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7433:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7452:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7481:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7487:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7510:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7487:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7452:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7375:13: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7378:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7378:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7378:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7481:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7487:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7510:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/scan.c:7487:9: note: in expansion of macro ‘yy_flush_buffer’
# 7487|   	yy_flush_buffer( b , yyscanner);
# 7488|   
# 7489|-> 	b->yy_input_file = file;
# 7490|   	b->yy_fill_buffer = 1;
# 7491|   

Error: CPPCHECK_WARNING (CWE-768): [#def388]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partbounds.c:3944: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(arg1)},(union ListCell){.ptr_value=(arrexpr)}' depends on order of evaluation of side effects
# 3942|   					saopexpr->useOr = true;
# 3943|   					saopexpr->inputcollid = key->partcollation[keynum];
# 3944|-> 					saopexpr->args = list_make2(arg1, arrexpr);
# 3945|   					saopexpr->location = -1;
# 3946|   

Error: CPPCHECK_WARNING (CWE-768): [#def389]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partbounds.c:4036: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(relidConst)},(union ListCell){.ptr_value=(modulusConst)}' depends on order of evaluation of side effects
# 4034|   										true);
# 4035|   
# 4036|-> 	args = list_make3(relidConst, modulusConst, remainderConst);
# 4037|   	partexprs_item = list_head(key->partexprs);
# 4038|   

Error: CPPCHECK_WARNING (CWE-768): [#def390]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partbounds.c:4036: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(relidConst)},(union ListCell){.ptr_value=(modulusConst)},(union ListCell){.ptr_value=(remainderConst)}' depends on order of evaluation of side effects
# 4034|   										true);
# 4035|   
# 4036|-> 	args = list_make3(relidConst, modulusConst, remainderConst);
# 4037|   	partexprs_item = list_head(key->partexprs);
# 4038|   

Error: CPPCHECK_WARNING (CWE-768): [#def391]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partbounds.c:4207: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(nulltest)},(union ListCell){.ptr_value=(opexpr)}' depends on order of evaluation of side effects
# 4205|   		nulltest->location = -1;
# 4206|   
# 4207|-> 		result = opexpr ? list_make2(nulltest, opexpr) : list_make1(nulltest);
# 4208|   	}
# 4209|   	else

Error: CPPCHECK_WARNING (CWE-768): [#def392]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partbounds.c:4225: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(nulltest)},(union ListCell){.ptr_value=(opexpr)}' depends on order of evaluation of side effects
# 4223|   			Expr	   *or;
# 4224|   
# 4225|-> 			or = makeBoolExpr(OR_EXPR, list_make2(nulltest, opexpr), -1);
# 4226|   			result = list_make1(or);
# 4227|   		}

Error: CPPCHECK_WARNING (CWE-768): [#def393]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partprune.c:1852: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(new_booltest)},(union ListCell){.ptr_value=(nulltest)}' depends on order of evaluation of side effects
# 1850|   			nulltest->location = -1;
# 1851|   
# 1852|-> 			new_clauses = list_make2(new_booltest, nulltest);
# 1853|   			or_clause = list_make1(makeBoolExpr(OR_EXPR, new_clauses, -1));
# 1854|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def394]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partprune.c: scope_hint: In function ‘perform_pruning_base_step’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partprune.c:3478:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lc2’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partprune.c: scope_hint: In function ‘perform_pruning_base_step’
# 3476|   
# 3477|   			/* Set up the stepcmpfuncs entry, unless we already did */
# 3478|-> 			cmpfn = lfirst_oid(lc2);
# 3479|   			Assert(OidIsValid(cmpfn));
# 3480|   			if (cmpfn != context->stepcmpfuncs[stateidx].fn_oid)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def395]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partprune.c:3522:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘values[0]’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partprune.c: scope_hint: In function ‘perform_pruning_base_step’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partprune.c:54: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/partitioning/partprune.h:71:11: note: in definition of macro ‘PruneCxtStateIdx’
# 3520|   
# 3521|   		case PARTITION_STRATEGY_LIST:
# 3522|-> 			return get_matching_list_bounds(context,
# 3523|   											opstep->opstrategy,
# 3524|   											values[0], nvalues,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def396]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/postmaster/postmaster.c: scope_hint: In function ‘ProcessStartupPacket’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/postmaster/postmaster.c:2345:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/port/pg_crc32c.h:36: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/xlogrecord.h:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/xlogreader.h:41: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/xlog.h:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/postmaster/postmaster.c:97: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/port/pg_bswap.h:125:33: note: in expansion of macro ‘pg_bswap32’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/postmaster/postmaster.c:2044:15: note: in expansion of macro ‘pg_ntoh32’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/port/pg_bswap.h:125:33: note: in expansion of macro ‘pg_bswap32’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/postmaster/postmaster.c:2044:15: note: in expansion of macro ‘pg_ntoh32’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/common/ip.h:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/postmaster/postmaster.c:101: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/postmaster/postmaster.c:2320:21: note: in expansion of macro ‘PG_PROTOCOL_MINOR’
# 2343|   		if (strchr(port->user_name, '@') ==
# 2344|   			port->user_name + strlen(port->user_name) - 1)
# 2345|-> 			*strchr(port->user_name, '@') = '\0';
# 2346|   		else
# 2347|   		{

Error: GCC_ANALYZER_WARNING: [#def397]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/postmaster/syslogger.c: scope_hint: In function ‘SysLoggerMain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/postmaster/syslogger.c:213:32: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
#  211|   		{
#  212|   			(void) dup2(fd, STDOUT_FILENO);
#  213|-> 			(void) dup2(fd, STDERR_FILENO);
#  214|   			close(fd);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def398]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/regex/regexec.c:1506: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/regex/rege_dfa.c: scope_hint: In function ‘getladfa’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/regex/rege_dfa.c:613:35: warning[-Wanalyzer-malloc-leak]: leak of ‘newdfa(v, &*sub.cnfa, &*v_15(D)->g.cmap, 0)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/regex/regguts.h:40: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/regex/regexec.c:34: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/regex/rege_dfa.c:643:36: note: in expansion of macro ‘MALLOC’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/regex/rege_dfa.c:649:44: note: in expansion of macro ‘MALLOC’
#  611|   {
#  612|   	struct dfa *d;
#  613|-> 	size_t		nss = cnfa->nstates * 2;
#  614|   	int			wordsper = (cnfa->nstates + UBITS - 1) / UBITS;
#  615|   	bool		ismalloced = false;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def399]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/regex/rege_dfa.c: scope_hint: In function ‘newdfa’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/regex/rege_dfa.c:680:20: warning[-Wanalyzer-malloc-leak]: leak of ‘sml’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/regex/rege_dfa.c:624:51: note: in expansion of macro ‘MALLOC’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/regex/rege_dfa.c:624:51: note: in expansion of macro ‘MALLOC’
#  678|   	d->search = d->ssets;
#  679|   	d->backno = -1;				/* may be set by caller */
#  680|-> 	d->backmin = d->backmax = 0;
#  681|   
#  682|   	/* initialization of sset fields is done as needed */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def400]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/regex/rege_dfa.c: scope_hint: In function ‘getvacant’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/regex/rege_dfa.c:1025:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘<unknown>’
# 1023|   				lastap = ap;
# 1024|   			assert(ap.ss != NULL);
# 1025|-> 			lastap.ss->inchain[lastap.co] = ss->inchain[i];
# 1026|   		}
# 1027|   		ss->outs[i] = NULL;

Error: CPPCHECK_WARNING (CWE-457): [#def401]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/regex/regexec.c:226: warning[uninitvar]: Uninitialized variable: v->pmatch
#  224|   		else
#  225|   			v->pmatch = (regmatch_t *) MALLOC(v->nmatch * sizeof(regmatch_t));
#  226|-> 		if (v->pmatch == NULL)
#  227|   			return REG_ESPACE;
#  228|   		zapallsubs(v->pmatch, v->nmatch);

Error: CPPCHECK_WARNING (CWE-457): [#def402]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/logical/reorderbuffer.c:4609: error[legacyUninitvar]: Uninitialized variable: chunksize
# 4607|   		elog(ERROR, "unexpected type of toast chunk");
# 4608|   
# 4609|-> 	ent->size += chunksize;
# 4610|   	ent->last_chunk_seq = chunk_seq;
# 4611|   	ent->num_chunks++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_gram.y:420: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c: scope_hint: In function ‘replication_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c:1963:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c:1130:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c:1150:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c:1174:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c:1174:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c:2102:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c:1174:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c:1176:33: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c:1949:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c:1953:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c: scope_hint: In function ‘replication_yy_create_buffer’
# 1961|   	 */
# 1962|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1963|-> 	if ( ! b->yy_ch_buf )
# 1964|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 1965|   

Error: CPPCHECK_WARNING (CWE-476): [#def404]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c:2003: warning[nullPointer]: Possible null pointer dereference: b
# 2001|   	yy_flush_buffer( b );
# 2002|   
# 2003|-> 	b->yy_input_file = file;
# 2004|   	b->yy_fill_buffer = 1;
# 2005|   

Error: CPPCHECK_WARNING (CWE-476): [#def405]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c:2004: warning[nullPointer]: Possible null pointer dereference: b
# 2002|   
# 2003|   	b->yy_input_file = file;
# 2004|-> 	b->yy_fill_buffer = 1;
# 2005|   
# 2006|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c: scope_hint: In function ‘replication_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c:2217:45: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c:2201:17: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c:2210:24: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c: scope_hint: In function ‘replication_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c:2219:13: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/repl_scanner.c:2151:17: note: in expansion of macro ‘yy_scan_buffer’
# 2215|   		buf[i] = yybytes[i];
# 2216|   
# 2217|-> 	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 2218|   
# 2219|   	b = yy_scan_buffer( buf, n );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def407]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_gram.y:116: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c:1353:46: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c:1355:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c:1355:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c: scope_hint: In function ‘yy_get_next_buffer’
# 1351|   					b->yy_buf_size *= 2;
# 1352|   
# 1353|-> 				b->yy_ch_buf = (char *)
# 1354|   					/* Include room in for 2 EOB chars. */
# 1355|   					yyrealloc( (void *) b->yy_ch_buf,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c: scope_hint: In function ‘syncrep_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c:1638:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c:1624:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c:1628:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c: scope_hint: In function ‘syncrep_yy_create_buffer’
# 1636|   	 */
# 1637|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1638|-> 	if ( ! b->yy_ch_buf )
# 1639|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 1640|   

Error: CPPCHECK_WARNING (CWE-476): [#def409]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c:1678: warning[nullPointer]: Possible null pointer dereference: b
# 1676|   	yy_flush_buffer( b );
# 1677|   
# 1678|-> 	b->yy_input_file = file;
# 1679|   	b->yy_fill_buffer = 1;
# 1680|   

Error: CPPCHECK_WARNING (CWE-476): [#def410]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c:1679: warning[nullPointer]: Possible null pointer dereference: b
# 1677|   
# 1678|   	b->yy_input_file = file;
# 1679|-> 	b->yy_fill_buffer = 1;
# 1680|   
# 1681|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c: scope_hint: In function ‘syncrep_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c:1892:45: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c:1876:17: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c:1885:24: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c: scope_hint: In function ‘syncrep_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c:1894:13: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/replication/syncrep_scanner.c:1826:17: note: in expansion of macro ‘yy_scan_buffer’
# 1890|   		buf[i] = yybytes[i];
# 1891|   
# 1892|-> 	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1893|   
# 1894|   	b = yy_scan_buffer( buf, n );

Error: CPPCHECK_WARNING (CWE-768): [#def412]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/rewrite/rewriteSearchCycle.c:192: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeVar(1,path_varattno,2287,-1,0,0))}),(union ListCell){.ptr_value=(arr)}' depends on order of evaluation of side effects
#  190|   
#  191|   	fexpr = makeFuncExpr(F_ARRAY_CAT, RECORDARRAYOID,
#  192|-> 						 list_make2(makeVar(1, path_varattno, RECORDARRAYOID, -1, 0, 0),
#  193|   									arr),
#  194|   						 InvalidOid, InvalidOid, COERCE_EXPLICIT_CALL);

Error: CPPCHECK_WARNING (CWE-768): [#def413]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/rewrite/rewriteSearchCycle.c:558: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(cycle_col_rowexpr)},((union ListCell){.ptr_value=(makeVar(1,cpa_attno,2287,-1,0,0))})' depends on order of evaluation of side effects
#  556|   		saoe->opno = RECORD_EQ_OP;
#  557|   		saoe->useOr = true;
#  558|-> 		saoe->args = list_make2(cycle_col_rowexpr,
#  559|   								makeVar(1, cpa_attno, RECORDARRAYOID, -1, 0, 0));
#  560|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def414]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/statistics/mvdistinct.c: scope_hint: In function ‘pg_ndistinct_out’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/statistics/mvdistinct.c:366:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  364|   	appendStringInfoChar(&str, '{');
#  365|   
#  366|-> 	for (i = 0; i < ndist->nitems; i++)
#  367|   	{
#  368|   		int			j;

Error: CPPCHECK_WARNING (CWE-909): [#def415]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/lmgr/lmgr.c:731: error[uninitStructMember]: Uninitialized struct member: callback.previous
#  729|   
#  730|   	if (oper != XLTW_None)
#  731|-> 		error_context_stack = callback.previous;
#  732|   }
#  733|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def416]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/lmgr/proc.c: scope_hint: In function ‘ProcLockWakeup’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/lmgr/proc.c:1730:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘proc’
# 1728|   	while (queue_size-- > 0)
# 1729|   	{
# 1730|-> 		LOCKMODE	lockmode = proc->waitLockMode;
# 1731|   
# 1732|   		/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def417]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/page/bufpage.c: scope_hint: In function ‘compactify_tuples’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/page/bufpage.c:524:47: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*itemidptr.itemoff’
#  522|   		{
#  523|   			itemidptr = &itemidbase[i];
#  524|-> 			if (upper != itemidptr->itemoff + itemidptr->alignedlen)
#  525|   				break;
#  526|   			upper -= itemidptr->alignedlen;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def418]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/page/bufpage.c:544:59: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*itemidptr.offsetindex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufpage.h:236:53: note: in definition of macro ‘PageGetItemId’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/page/bufpage.c:736:17: note: in expansion of macro ‘PageGetMaxOffsetNumber’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/page/bufpage.c:742:22: note: in expansion of macro ‘PageGetItemId’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/page/bufpage.c:742:22: note: in expansion of macro ‘PageGetItemId’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/page/bufpage.c:745:29: note: in expansion of macro ‘ItemIdHasStorage’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufpage.h:236:53: note: in definition of macro ‘PageGetItemId’
#  542|   
#  543|   			itemidptr = &itemidbase[i];
#  544|-> 			lp = PageGetItemId(page, itemidptr->offsetindex + 1);
#  545|   
#  546|   			if (copy_head != itemidptr->itemoff + itemidptr->alignedlen)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def419]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/page/bufpage.c:622:55: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*itemidptr.itemoff’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/page/bufpage.c:736:17: note: in expansion of macro ‘PageGetMaxOffsetNumber’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/page/bufpage.c:742:22: note: in expansion of macro ‘PageGetItemId’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/page/bufpage.c:742:22: note: in expansion of macro ‘PageGetItemId’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/page/bufpage.c:745:29: note: in expansion of macro ‘ItemIdHasStorage’
#  620|   			{
#  621|   				itemidptr = &itemidbase[i];
#  622|-> 				if (upper != itemidptr->itemoff + itemidptr->alignedlen)
#  623|   					break;
#  624|   				upper -= itemidptr->alignedlen;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def420]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/page/bufpage.c:648:59: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*itemidptr.offsetindex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufpage.h:236:53: note: in definition of macro ‘PageGetItemId’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/page/bufpage.c:736:17: note: in expansion of macro ‘PageGetMaxOffsetNumber’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/page/bufpage.c:742:22: note: in expansion of macro ‘PageGetItemId’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/page/bufpage.c:742:22: note: in expansion of macro ‘PageGetItemId’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/page/bufpage.c:745:29: note: in expansion of macro ‘ItemIdHasStorage’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufpage.h:236:53: note: in definition of macro ‘PageGetItemId’
#  646|   
#  647|   			itemidptr = &itemidbase[i];
#  648|-> 			lp = PageGetItemId(page, itemidptr->offsetindex + 1);
#  649|   
#  650|   			/* copy pending tuples when we detect a gap */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def421]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/smgr/md.c: scope_hint: In function ‘mdextend’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/storage/smgr/md.c:483:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  481|   	Assert(seekpos < (off_t) BLCKSZ * RELSEG_SIZE);
#  482|   
#  483|-> 	if ((nbytes = FileWrite(v->mdfd_vfd, buffer, BLCKSZ, seekpos, WAIT_EVENT_DATA_FILE_EXTEND)) != BLCKSZ)
#  484|   	{
#  485|   		if (nbytes < 0)

Error: CPPCHECK_WARNING (CWE-457): [#def422]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/dict_synonym.c:230: error[uninitvar]: Uninitialized variables: &key.outlen, &key.flags
#  228|   	key.out = NULL;
#  229|   
#  230|-> 	found = (Syn *) bsearch(&key, d->syn, d->len, sizeof(Syn), compareSyn);
#  231|   	pfree(key.in);
#  232|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def423]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/ts_parse.c:81:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘res’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/ts_parse.c: scope_hint: In function ‘RemoveHead’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/ts_parse.c: scope_hint: In function ‘RemoveHead’
#   79|   	else
#   80|   		list->head = list->tail = newpl;
#   81|-> 	newpl->next = NULL;
#   82|   }
#   83|   

Error: CPPCHECK_WARNING (CWE-476): [#def424]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:453: error[ctunullpointer]: Null pointer dereference: prs
#  451|    * an alpha character, but not a member of other char classes.
#  452|    */
#  453|-> p_iswhat(alnum, 1)
#  454|   p_iswhat(alpha, 1)
#  455|   p_iswhat(digit, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def425]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:453: warning[nullPointer]: Possible null pointer dereference: prs
#  451|    * an alpha character, but not a member of other char classes.
#  452|    */
#  453|-> p_iswhat(alnum, 1)
#  454|   p_iswhat(alpha, 1)
#  455|   p_iswhat(digit, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def426]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:454: error[ctunullpointer]: Null pointer dereference: prs
#  452|    */
#  453|   p_iswhat(alnum, 1)
#  454|-> p_iswhat(alpha, 1)
#  455|   p_iswhat(digit, 0)
#  456|   p_iswhat(lower, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def427]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:454: warning[nullPointer]: Possible null pointer dereference: prs
#  452|    */
#  453|   p_iswhat(alnum, 1)
#  454|-> p_iswhat(alpha, 1)
#  455|   p_iswhat(digit, 0)
#  456|   p_iswhat(lower, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def428]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:455: error[ctunullpointer]: Null pointer dereference: prs
#  453|   p_iswhat(alnum, 1)
#  454|   p_iswhat(alpha, 1)
#  455|-> p_iswhat(digit, 0)
#  456|   p_iswhat(lower, 0)
#  457|   p_iswhat(print, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def429]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:455: warning[nullPointer]: Possible null pointer dereference: prs
#  453|   p_iswhat(alnum, 1)
#  454|   p_iswhat(alpha, 1)
#  455|-> p_iswhat(digit, 0)
#  456|   p_iswhat(lower, 0)
#  457|   p_iswhat(print, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def430]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:456: error[ctunullpointer]: Null pointer dereference: prs
#  454|   p_iswhat(alpha, 1)
#  455|   p_iswhat(digit, 0)
#  456|-> p_iswhat(lower, 0)
#  457|   p_iswhat(print, 0)
#  458|   p_iswhat(punct, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def431]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:456: warning[nullPointer]: Possible null pointer dereference: prs
#  454|   p_iswhat(alpha, 1)
#  455|   p_iswhat(digit, 0)
#  456|-> p_iswhat(lower, 0)
#  457|   p_iswhat(print, 0)
#  458|   p_iswhat(punct, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def432]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:457: error[ctunullpointer]: Null pointer dereference: prs
#  455|   p_iswhat(digit, 0)
#  456|   p_iswhat(lower, 0)
#  457|-> p_iswhat(print, 0)
#  458|   p_iswhat(punct, 0)
#  459|   p_iswhat(space, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def433]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:457: warning[nullPointer]: Possible null pointer dereference: prs
#  455|   p_iswhat(digit, 0)
#  456|   p_iswhat(lower, 0)
#  457|-> p_iswhat(print, 0)
#  458|   p_iswhat(punct, 0)
#  459|   p_iswhat(space, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def434]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:458: error[ctunullpointer]: Null pointer dereference: prs
#  456|   p_iswhat(lower, 0)
#  457|   p_iswhat(print, 0)
#  458|-> p_iswhat(punct, 0)
#  459|   p_iswhat(space, 0)
#  460|   p_iswhat(upper, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def435]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:458: warning[nullPointer]: Possible null pointer dereference: prs
#  456|   p_iswhat(lower, 0)
#  457|   p_iswhat(print, 0)
#  458|-> p_iswhat(punct, 0)
#  459|   p_iswhat(space, 0)
#  460|   p_iswhat(upper, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def436]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:459: error[ctunullpointer]: Null pointer dereference: prs
#  457|   p_iswhat(print, 0)
#  458|   p_iswhat(punct, 0)
#  459|-> p_iswhat(space, 0)
#  460|   p_iswhat(upper, 0)
#  461|   p_iswhat(xdigit, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def437]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:459: warning[nullPointer]: Possible null pointer dereference: prs
#  457|   p_iswhat(print, 0)
#  458|   p_iswhat(punct, 0)
#  459|-> p_iswhat(space, 0)
#  460|   p_iswhat(upper, 0)
#  461|   p_iswhat(xdigit, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def438]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:460: error[ctunullpointer]: Null pointer dereference: prs
#  458|   p_iswhat(punct, 0)
#  459|   p_iswhat(space, 0)
#  460|-> p_iswhat(upper, 0)
#  461|   p_iswhat(xdigit, 0)
#  462|   

Error: CPPCHECK_WARNING (CWE-476): [#def439]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:460: warning[nullPointer]: Possible null pointer dereference: prs
#  458|   p_iswhat(punct, 0)
#  459|   p_iswhat(space, 0)
#  460|-> p_iswhat(upper, 0)
#  461|   p_iswhat(xdigit, 0)
#  462|   

Error: CPPCHECK_WARNING (CWE-476): [#def440]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:461: error[ctunullpointer]: Null pointer dereference: prs
#  459|   p_iswhat(space, 0)
#  460|   p_iswhat(upper, 0)
#  461|-> p_iswhat(xdigit, 0)
#  462|   
#  463|   /* p_iseq should be used only for ascii symbols */

Error: CPPCHECK_WARNING (CWE-476): [#def441]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:461: warning[nullPointer]: Possible null pointer dereference: prs
#  459|   p_iswhat(space, 0)
#  460|   p_iswhat(upper, 0)
#  461|-> p_iswhat(xdigit, 0)
#  462|   
#  463|   /* p_iseq should be used only for ascii symbols */

Error: CPPCHECK_WARNING (CWE-476): [#def442]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:469: error[ctunullpointer]: Null pointer dereference: prs
#  467|   {
#  468|   	Assert(prs->state);
#  469|-> 	return ((prs->state->charlen == 1 && *(prs->str + prs->state->posbyte) == c)) ? 1 : 0;
#  470|   }
#  471|   

Error: CPPCHECK_WARNING (CWE-476): [#def443]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:469: warning[nullPointer]: Possible null pointer dereference: prs
#  467|   {
#  468|   	Assert(prs->state);
#  469|-> 	return ((prs->state->charlen == 1 && *(prs->str + prs->state->posbyte) == c)) ? 1 : 0;
#  470|   }
#  471|   

Error: CPPCHECK_WARNING (CWE-476): [#def444]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:476: error[ctunullpointer]: Null pointer dereference: prs
#  474|   {
#  475|   	Assert(prs->state);
#  476|-> 	return (prs->state->posbyte == prs->lenstr || prs->state->charlen == 0) ? 1 : 0;
#  477|   }
#  478|   

Error: CPPCHECK_WARNING (CWE-476): [#def445]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:476: warning[nullPointer]: Possible null pointer dereference: prs
#  474|   {
#  475|   	Assert(prs->state);
#  476|-> 	return (prs->state->posbyte == prs->lenstr || prs->state->charlen == 0) ? 1 : 0;
#  477|   }
#  478|   

Error: CPPCHECK_WARNING (CWE-476): [#def446]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:482: warning[nullPointer]: Possible null pointer dereference: prs
#  480|   p_iseqC(TParser *prs)
#  481|   {
#  482|-> 	return p_iseq(prs, prs->c);
#  483|   }
#  484|   

Error: CPPCHECK_WARNING (CWE-476): [#def447]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/tsearch/wparser_def.c:488: warning[nullPointer]: Possible null pointer dereference: prs
#  486|   p_isneC(TParser *prs)
#  487|   {
#  488|-> 	return !p_iseq(prs, prs->c);
#  489|   }
#  490|   

Error: CPPCHECK_WARNING (CWE-457): [#def448]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/arrayfuncs.c:1352: warning[uninitvar]: Uninitialized variable: dim
# 1350|   
# 1351|   	/* This checks for overflow of array dimensions */
# 1352|-> 	nitems = ArrayGetNItems(ndim, dim);
# 1353|   	ArrayCheckBounds(ndim, dim, lBound);
# 1354|   

Error: CPPCHECK_WARNING (CWE-457): [#def449]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/arrayfuncs.c:1353: warning[uninitvar]: Uninitialized variable: lBound
# 1351|   	/* This checks for overflow of array dimensions */
# 1352|   	nitems = ArrayGetNItems(ndim, dim);
# 1353|-> 	ArrayCheckBounds(ndim, dim, lBound);
# 1354|   
# 1355|   	/*

Error: CPPCHECK_WARNING (CWE-457): [#def450]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/arrayfuncs.c:1709: warning[uninitvar]: Uninitialized variable: buf
# 1707|   	}
# 1708|   
# 1709|-> 	PG_RETURN_TEXT_P(cstring_to_text(buf));
# 1710|   }
# 1711|   

Error: CPPCHECK_WARNING (CWE-457): [#def451]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/arrayfuncs.c:2907: warning[uninitvar]: Uninitialized variable: dim
# 2905|   
# 2906|   		/* complain if too few source items; we ignore extras, however */
# 2907|-> 		if (nelems < ArrayGetNItems(nSubscripts, dim))
# 2908|   			ereport(ERROR,
# 2909|   					(errcode(ERRCODE_ARRAY_SUBSCRIPT_ERROR),

Error: GCC_ANALYZER_WARNING (CWE-476): [#def452]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/arrayfuncs.c: scope_hint: In function ‘array_contains_nulls’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/arrayfuncs.c:3622:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bitmap’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/arrayfuncs.c:29: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/arrayfuncs.c:3617:18: note: in expansion of macro ‘ARR_NULLBITMAP’
# 3620|   	while (nelems >= 8)
# 3621|   	{
# 3622|-> 		if (*bitmap != 0xFF)
# 3623|   			return true;
# 3624|   		bitmap++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def453]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/arrayfuncs.c:3632:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bitmap’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/arrayfuncs.c:3617:18: note: in expansion of macro ‘ARR_NULLBITMAP’
# 3630|   	while (nelems > 0)
# 3631|   	{
# 3632|-> 		if ((*bitmap & bitmask) == 0)
# 3633|   			return true;
# 3634|   		bitmask <<= 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def454]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/arrayfuncs.c: scope_hint: In function ‘array_bitmap_copy’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/arrayfuncs.c:4818:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘destbitmap’
# 4816|   	destbitmap += destoffset / 8;
# 4817|   	destbitmask = 1 << (destoffset % 8);
# 4818|-> 	destbitval = *destbitmap;
# 4819|   	if (srcbitmap)
# 4820|   	{

Error: CPPCHECK_WARNING (CWE-457): [#def455]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/dbsize.c:590: warning[uninitvar]: Uninitialized variable: buf
#  588|   	}
#  589|   
#  590|-> 	PG_RETURN_TEXT_P(cstring_to_text(buf));
#  591|   }
#  592|   

Error: CPPCHECK_WARNING (CWE-457): [#def456]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/inet_cidr_ntop.c:285: warning[uninitvar]: Uninitialized variable: outbuf
#  283|   	/* Format CIDR /width. */
#  284|   	(void) SPRINTF((cp, "/%u", bits));
#  285|-> 	if (strlen(outbuf) + 1 > size)
#  286|   		goto emsgsize;
#  287|   	strcpy(dst, outbuf);

Error: CPPCHECK_WARNING (CWE-457): [#def457]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonb.c:125: error[legacyUninitvar]: Uninitialized variable: nbytes
#  123|   		elog(ERROR, "unsupported jsonb version number %d", version);
#  124|   
#  125|-> 	return jsonb_from_cstring(str, nbytes);
#  126|   }
#  127|   

Error: CPPCHECK_WARNING (CWE-457): [#def458]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonb.c:125: error[legacyUninitvar]: Uninitialized variable: str
#  123|   		elog(ERROR, "unsupported jsonb version number %d", version);
#  124|   
#  125|-> 	return jsonb_from_cstring(str, nbytes);
#  126|   }
#  127|   

Error: CPPCHECK_WARNING (CWE-457): [#def459]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonbsubs.c:155: error[legacyUninitvar]: Uninitialized variable: subExpr
#  153|   		}
#  154|   
#  155|-> 		upperIndexpr = lappend(upperIndexpr, subExpr);
#  156|   	}
#  157|   

Error: CPPCHECK_WARNING (CWE-476): [#def460]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonfuncs.c:5430: warning[nullPointer]: Possible null pointer dereference: res
# 5428|   	}
# 5429|   
# 5430|-> 	if (res->type == jbvArray)
# 5431|   		res->val.array.rawScalar = is_scalar;
# 5432|   

Error: CPPCHECK_WARNING (CWE-457): [#def461]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath.c:122: error[legacyUninitvar]: Uninitialized variable: nbytes
#  120|   		elog(ERROR, "unsupported jsonpath version number: %d", version);
#  121|   
#  122|-> 	return jsonPathFromCstring(str, nbytes);
#  123|   }
#  124|   

Error: CPPCHECK_WARNING (CWE-457): [#def462]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath.c:122: error[legacyUninitvar]: Uninitialized variable: str
#  120|   		elog(ERROR, "unsupported jsonpath version number: %d", version);
#  121|   
#  122|-> 	return jsonPathFromCstring(str, nbytes);
#  123|   }
#  124|   

Error: CPPCHECK_WARNING (CWE-768): [#def463]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_exec.c:2453: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(jvl->singleton)},(union ListCell){.ptr_value=(jbv)}' depends on order of evaluation of side effects
# 2451|   	if (jvl->singleton)
# 2452|   	{
# 2453|-> 		jvl->list = list_make2(jvl->singleton, jbv);
# 2454|   		jvl->singleton = NULL;
# 2455|   	}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def464]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_gram.c: scope_hint: In function ‘jsonpath_yyparse’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_gram.c:646:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_gram.c:631:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_gram.c:1310:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_gram.y:606: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.l:396:25: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4258:17: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4258:17: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4282:9: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4011:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4019:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4209:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4239:63: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4239:63: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4019:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4020:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4282:9: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.l:396:25: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_gram.c:1190:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_gram.c:631:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_gram.c:1310:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_gram.c:631:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_gram.c:1310:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  644|   #  if defined __GNUC__ && 1 < __GNUC__
#  645|   #   define YYCOPY(Dst, Src, Count) \
#  646|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  647|   #  else
#  648|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-476): [#def465]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c: scope_hint: In function ‘jsonpath_yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4110:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.l:396:25: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4258:17: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4258:17: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4282:9: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4011:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4019:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4209:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4239:63: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4239:63: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4019:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4020:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4282:9: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.l:396:25: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_gram.c:1190:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_gram.c:1355:16: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_gram.c:1355:16: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:3165:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:3186:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:3841:25: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:3841:25: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:3994:10: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:3998:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4000:13: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4056:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4075:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4103:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4108:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4131:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4108:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4075:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4000:13: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4003:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4003:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4003:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4103:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4108:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4131:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/jsonpath_scan.c:4108:9: note: in expansion of macro ‘yy_flush_buffer’
# 4108|   	yy_flush_buffer( b );
# 4109|   
# 4110|-> 	b->yy_input_file = file;
# 4111|   	b->yy_fill_buffer = 1;
# 4112|   

Error: CPPCHECK_WARNING (CWE-476): [#def466]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/lockfuncs.c:490: warning[nullPointer]: Possible null pointer dereference: blocked_instance
#  488|   
#  489|   		lockMethodTable = GetLockTagsMethodTable(&(blocked_instance->locktag));
#  490|-> 		conflictMask = lockMethodTable->conflictTab[blocked_instance->waitLockMode];
#  491|   
#  492|   		/* Now scan the PROCLOCK data for conflicting procs */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def467]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/lockfuncs.c: scope_hint: In function ‘pg_blocking_pids’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/lockfuncs.c:490:77: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘blocked_instance’
#  488|   
#  489|   		lockMethodTable = GetLockTagsMethodTable(&(blocked_instance->locktag));
#  490|-> 		conflictMask = lockMethodTable->conflictTab[blocked_instance->waitLockMode];
#  491|   
#  492|   		/* Now scan the PROCLOCK data for conflicting procs */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def468]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/regexp.c: scope_hint: In function ‘RE_compile_and_cache’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/regexp.c:171:32: warning[-Wanalyzer-malloc-leak]: leak of ‘re_temp.cre_pat’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:46: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/regexp.c:30: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/regexp.c:218:34: note: in expansion of macro ‘Max’
#  169|   			}
#  170|   
#  171|-> 			return &re_array[0].cre_re;
#  172|   		}
#  173|   	}

Error: CPPCHECK_WARNING (CWE-768): [#def469]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/regproc.c:442: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(get_namespace_name_or_temp(procform->pronamespace))},(union ListCell){.ptr_value=(pstrdup(procform->proname.data))}' depends on order of evaluation of side effects
#  440|   	nargs = procform->pronargs;
#  441|   
#  442|-> 	*objnames = list_make2(get_namespace_name_or_temp(procform->pronamespace),
#  443|   						   pstrdup(NameStr(procform->proname)));
#  444|   	*objargs = NIL;

Error: CPPCHECK_WARNING (CWE-768): [#def470]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/regproc.c:881: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(get_namespace_name_or_temp(oprForm->oprnamespace))},(union ListCell){.ptr_value=(pstrdup(oprForm->oprname.data))}' depends on order of evaluation of side effects
#  879|   
#  880|   	oprForm = (Form_pg_operator) GETSTRUCT(opertup);
#  881|-> 	*objnames = list_make2(get_namespace_name_or_temp(oprForm->oprnamespace),
#  882|   						   pstrdup(NameStr(oprForm->oprname)));
#  883|   	*objargs = NIL;

Error: CPPCHECK_WARNING (CWE-768): [#def471]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/ri_triggers.c:1421: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(fkrte)},(union ListCell){.ptr_value=(pkrte)}' depends on order of evaluation of side effects
# 1419|   	}
# 1420|   
# 1421|-> 	if (!ExecCheckRTPerms(list_make2(fkrte, pkrte), false))
# 1422|   		return false;
# 1423|   

Error: CPPCHECK_WARNING (CWE-768): [#def472]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/ruleutils.c:1058: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(oldrte)},(union ListCell){.ptr_value=(newrte)}' depends on order of evaluation of side effects
# 1056|   		/* Build two-element rtable */
# 1057|   		memset(&dpns, 0, sizeof(dpns));
# 1058|-> 		dpns.rtable = list_make2(oldrte, newrte);
# 1059|   		dpns.subplans = NIL;
# 1060|   		dpns.ctes = NIL;

Error: CPPCHECK_WARNING (CWE-562): [#def473]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/ruleutils.c:11605: error[returnDanglingLifetime]: Returning pointer to local variable 'buf' that will be invalid when returning.
#11603|   	get_opclass_name(opclass, InvalidOid, &buf);
#11604|   
#11605|-> 	return &buf.data[1];		/* get_opclass_name() prepends space */
#11606|   }
#11607|   

Error: CPPCHECK_WARNING (CWE-768): [#def474]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/selfuncs.c:1962: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftop)},((union ListCell){.ptr_value=(makeConst(nominal_element_type,-1,nominal_element_collation,elmlen,elem_values[i],elem_nulls[i],elmbyval))})' depends on order of evaluation of side effects
# 1960|   			Selectivity s2;
# 1961|   
# 1962|-> 			args = list_make2(leftop,
# 1963|   							  makeConst(nominal_element_type,
# 1964|   										-1,

Error: CPPCHECK_WARNING (CWE-768): [#def475]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/selfuncs.c:2036: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftop)},(union ListCell){.ptr_value=(elem)}' depends on order of evaluation of side effects
# 2034|   			 * estimation function would really care ...
# 2035|   			 */
# 2036|-> 			args = list_make2(leftop, elem);
# 2037|   			if (is_join_clause)
# 2038|   				s2 = DatumGetFloat8(FunctionCall5Coll(&oprselproc,

Error: CPPCHECK_WARNING (CWE-768): [#def476]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/selfuncs.c:2088: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftop)},(union ListCell){.ptr_value=(dummyexpr)}' depends on order of evaluation of side effects
# 2086|   		dummyexpr->typeMod = -1;
# 2087|   		dummyexpr->collation = clause->inputcollid;
# 2088|-> 		args = list_make2(leftop, dummyexpr);
# 2089|   		if (is_join_clause)
# 2090|   			s2 = DatumGetFloat8(FunctionCall5Coll(&oprselproc,

Error: CPPCHECK_WARNING (CWE-768): [#def477]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/selfuncs.c:2181: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(list_nth_cell(clause->largs,0)->ptr_value)}),((union ListCell){.ptr_value=(list_nth_cell(clause->rargs,0)->ptr_value)})' depends on order of evaluation of side effects
# 2179|   
# 2180|   	/* Build equivalent arg list for single operator */
# 2181|-> 	opargs = list_make2(linitial(clause->largs), linitial(clause->rargs));
# 2182|   
# 2183|   	/*

Error: CPPCHECK_WARNING (CWE-190): [#def478]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/tsgistidx.c:191: error[integerOverflow]: Signed integer overflow for expression '*(int32*)&c'.
#  189|   			FIN_LEGACY_CRC32(c);
#  190|   
#  191|-> 			*arr = *(int32 *) &c;
#  192|   			arr++;
#  193|   			ptr++;

Error: CPPCHECK_WARNING (CWE-476): [#def479]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/varlena.c:465: warning[nullPointer]: Possible null pointer dereference: rp
#  463|   		rp = result = NULL;		/* keep compiler quiet */
#  464|   	}
#  465|-> 	*rp = '\0';
#  466|   	PG_RETURN_CSTRING(result);
#  467|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def480]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/varlena.c: scope_hint: In function ‘text_position_next_internal’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/varlena.c:1382:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*state.skiptablemask’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/varlena.c:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:355:10: note: in expansion of macro ‘VARATT_IS_1B_E’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/varlena.c:4642:27: note: in expansion of macro ‘VARSIZE_ANY_EXHDR’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:134:11: note: in definition of macro ‘VARTAG_SIZE’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:321:57: note: in expansion of macro ‘VARTAG_1B_E’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:322:90: note: in expansion of macro ‘VARTAG_EXTERNAL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:355:32: note: in expansion of macro ‘VARSIZE_EXTERNAL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/varlena.c:4642:27: note: in expansion of macro ‘VARSIZE_ANY_EXHDR’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:134:11: note: in definition of macro ‘VARTAG_SIZE’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:321:57: note: in expansion of macro ‘VARTAG_1B_E’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:322:90: note: in expansion of macro ‘VARTAG_EXTERNAL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:355:32: note: in expansion of macro ‘VARSIZE_EXTERNAL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/varlena.c:1196:40: note: in expansion of macro ‘VARSIZE_ANY_EXHDR’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/varlena.c: scope_hint: In function ‘text_position_next_internal’
# 1380|   	int			haystack_len = state->len1;
# 1381|   	int			needle_len = state->len2;
# 1382|-> 	int			skiptablemask = state->skiptablemask;
# 1383|   	const char *haystack = state->str1;
# 1384|   	const char *needle = state->str2;

Error: CPPCHECK_WARNING (CWE-768): [#def481]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/adt/xml.c:599: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=((struct xmltype*)pg_detoast_datum((struct varlena*)((charPointer)(fcinfo->args[0].value))))},(union ListCell){.ptr_value=((struct xmltype*)pg_detoast_datum((struct varlena*)((charPointer)(fcinfo->args[1].value))))}' depends on order of evaluation of side effects
#  597|   		PG_RETURN_XML_P(PG_GETARG_XML_P(0));
#  598|   	else
#  599|-> 		PG_RETURN_XML_P(xmlconcat(list_make2(PG_GETARG_XML_P(0),
#  600|   											 PG_GETARG_XML_P(1))));
#  601|   }

Error: CPPCHECK_WARNING (CWE-476): [#def482]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/cache/catcache.c:2030: warning[nullPointer]: Possible null pointer dereference: srckeys
# 2028|   		int			attnum = attnos[i];
# 2029|   		Form_pg_attribute att = TupleDescAttr(tupdesc, attnum - 1);
# 2030|-> 		Datum		src = srckeys[i];
# 2031|   		NameData	srcname;
# 2032|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def483]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/cache/plancache.c: scope_hint: In function ‘PlanCacheComputeResultDesc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/cache/plancache.c:1931:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1929|   			query = QueryListGetPrimaryStmt(stmt_list);
# 1930|   			Assert(query->returningList);
# 1931|-> 			return ExecCleanTypeFromTL(query->returningList);
# 1932|   
# 1933|   		case PORTAL_UTIL_SELECT:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def484]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/cache/ts_cache.c: scope_hint: In function ‘lookup_ts_config_cache’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/cache/ts_cache.c:503:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&mapdicts’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/cache/ts_cache.c:30: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/cache/ts_cache.c:427:43: note: in expansion of macro ‘GETSTRUCT’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/cache/ts_cache.c:487:80: note: in expansion of macro ‘GETSTRUCT’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/cache/ts_cache.c:487:80: note: in expansion of macro ‘GETSTRUCT’
#  501|   						MemoryContextAlloc(CacheMemoryContext,
#  502|   										   sizeof(Oid) * ndicts);
#  503|-> 					memcpy(maplists[maxtokentype].dictIds, mapdicts,
#  504|   						   sizeof(Oid) * ndicts);
#  505|   				}

Error: CPPCHECK_WARNING (CWE-457): [#def485]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/cache/typcache.c:2711: warning[uninitvar]: Uninitialized variable: &srch.sort_order
# 2709|   
# 2710|   	srch.enum_oid = arg;
# 2711|-> 	return bsearch(&srch, enumdata->enum_values, enumdata->num_values,
# 2712|   				   sizeof(EnumItem), enum_oid_cmp);
# 2713|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def486]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/init/postinit.c: scope_hint: In function ‘process_startup_options’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/init/postinit.c:1224:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/init/postinit.c: scope_hint: In function ‘process_startup_options’
# 1222|   		gucopts = lnext(port->guc_options, gucopts);
# 1223|   
# 1224|-> 		value = lfirst(gucopts);
# 1225|   		gucopts = lnext(port->guc_options, gucopts);
# 1226|   

Error: CPPCHECK_WARNING (CWE-476): [#def487]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/misc/guc-file.c:1676: warning[nullPointer]: Possible null pointer dereference: b
# 1674|   	yy_flush_buffer( b );
# 1675|   
# 1676|-> 	b->yy_input_file = file;
# 1677|   	b->yy_fill_buffer = 1;
# 1678|   

Error: CPPCHECK_WARNING (CWE-476): [#def488]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/misc/guc-file.c:1677: warning[nullPointer]: Possible null pointer dereference: b
# 1675|   
# 1676|   	b->yy_input_file = file;
# 1677|-> 	b->yy_fill_buffer = 1;
# 1678|   
# 1679|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: COMPILER_WARNING: [#def489]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/misc/guc.c:5727:38: warning[-Warray-bounds=]: array subscript ‘const struct config_generic[0]’ is partly outside array bounds of ‘const char[8]’
# 5727 |         return guc_name_compare(confa->name, confb->name);
#      |                                 ~~~~~^~~~~~
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/misc/guc.c: scope_hint: In function ‘find_option’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/misc/guc.c:5627:25: note: object ‘name’ of size 8
# 5627 | find_option(const char *name, bool create_placeholders, bool skip_errors,
#      |             ~~~~~~~~~~~~^~~~
# 5725|   	const struct config_generic *confb = *(struct config_generic *const *) b;
# 5726|   
# 5727|-> 	return guc_name_compare(confa->name, confb->name);
# 5728|   }
# 5729|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def490]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/mmgr/aset.c: scope_hint: In function ‘AllocSetAlloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/mmgr/aset.c:931:46: warning[-Wanalyzer-malloc-leak]: leak of ‘block’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/mmgr/aset.c: scope_hint: In function ‘AllocSetAlloc’
#  929|   			if (blksize < required_size)
#  930|   				break;
#  931|-> 			block = (AllocBlock) malloc(blksize);
#  932|   		}
#  933|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def491]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/mmgr/aset.c:934:20: warning[-Wanalyzer-malloc-leak]: leak of ‘block’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/mmgr/aset.c: scope_hint: In function ‘AllocSetAlloc’
#  932|   		}
#  933|   
#  934|-> 		if (block == NULL)
#  935|   			return NULL;
#  936|   

Error: CPPCHECK_WARNING (CWE-401): [#def492]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/mmgr/aset.c:1130: error[memleakOnRealloc]: Common realloc mistake: 'block' nulled but not freed upon failure
# 1128|   		oldblksize = block->endptr - ((char *) block);
# 1129|   
# 1130|-> 		block = (AllocBlock) realloc(block, blksize);
# 1131|   		if (block == NULL)
# 1132|   		{

Error: GCC_ANALYZER_WARNING (CWE-476): [#def493]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/mmgr/dsa.c: scope_hint: In function ‘destroy_superblock’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/mmgr/dsa.c:1812:50: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1810|   {
# 1811|   	dsa_area_span *span = dsa_get_address(area, span_pointer);
# 1812|-> 	int			size_class = span->size_class;
# 1813|   	dsa_segment_map *segment_map;
# 1814|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def494]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/mmgr/freepage.c: scope_hint: In function ‘FreePageManagerGetInternal’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/mmgr/freepage.c:1441:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘result.index’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/freepage.h:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/mmgr/freepage.c:58: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/mmgr/freepage.c:1525:30: note: in expansion of macro ‘relptr_is_null’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/mmgr/freepage.c:1343:21: note: in expansion of macro ‘relptr_is_null’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/mmgr/freepage.c:1380:16: note: in expansion of macro ‘relptr_access’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/mmgr/freepage.c:1388:23: note: in expansion of macro ‘fpm_pointer_to_page’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/mmgr/freepage.c:1068:30: note: in expansion of macro ‘relptr_access’
# 1439|   		Assert(result.found);
# 1440|   		if (victim->npages == npages)
# 1441|-> 			FreePageBtreeRemove(fpm, result.page, result.index);
# 1442|   		else
# 1443|   		{

Error: CPPCHECK_WARNING (CWE-457): [#def495]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/mmgr/freepage.c:1538: error[legacyUninitvar]: Uninitialized variable: root
# 1536|   
# 1537|   			/* Create the btree and move the preexisting range into it. */
# 1538|-> 			root->hdr.magic = FREE_PAGE_LEAF_MAGIC;
# 1539|   			root->hdr.nused = 1;
# 1540|   			relptr_store(base, root->hdr.parent, (FreePageBtree *) NULL);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def496]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/sort/sharedtuplestore.c: scope_hint: In function ‘sts_parallel_scan_next’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/sort/sharedtuplestore.c:569:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘read_page’
#  567|   
#  568|   			/* Seek and load the chunk header. */
#  569|-> 			if (BufFileSeekBlock(accessor->read_file, read_page) != 0)
#  570|   				ereport(ERROR,
#  571|   						(errcode_for_file_access(),

Error: GCC_ANALYZER_WARNING (CWE-775): [#def497]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_basebackup/bbstreamer_file.c: scope_hint: In function ‘create_file_for_extract’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_basebackup/bbstreamer_file.c:342:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "wb")’
#  340|   
#  341|   #ifndef WIN32
#  342|-> 	if (chmod(filename, mode))
#  343|   		pg_fatal("could not set permissions on file \"%s\": %m",
#  344|   				 filename);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def498]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_basebackup/bbstreamer_file.c:342:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "wb")’
#  340|   
#  341|   #ifndef WIN32
#  342|-> 	if (chmod(filename, mode))
#  343|   		pg_fatal("could not set permissions on file \"%s\": %m",
#  344|   				 filename);

Error: CPPCHECK_WARNING (CWE-476): [#def499]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_dump/parallel.c:506: warning[nullPointer]: Possible null pointer dereference: slot
#  504|   		/* On all platforms, update workerStatus and te[] as well */
#  505|   		Assert(j < pstate->numWorkers);
#  506|-> 		slot->workerStatus = WRKR_TERMINATED;
#  507|   		pstate->te[j] = NULL;
#  508|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def500]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_dump/parallel.c: scope_hint: In function ‘WaitForTerminatingWorkers’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_dump/parallel.c:506:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘slot’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_dump/parallel.c:86:11: note: in definition of macro ‘WORKER_IS_RUNNING’
#  504|   		/* On all platforms, update workerStatus and te[] as well */
#  505|   		Assert(j < pstate->numWorkers);
#  506|-> 		slot->workerStatus = WRKR_TERMINATED;
#  507|   		pstate->te[j] = NULL;
#  508|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def501]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_dump/pg_backup_archiver.c:2186: warning[nullPointer]: Possible null pointer dereference: fh
# 2184|   	}
# 2185|   
# 2186|-> 	if ((cnt = fread(sig, 1, 5, fh)) != 5)
# 2187|   	{
# 2188|   		if (ferror(fh))

Error: CPPCHECK_WARNING (CWE-457): [#def502]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_dump/pg_dump.c:1292: error[legacyUninitvar]: Uninitialized variable: archiveFormat
# 1290|   	else
# 1291|   		pg_fatal("invalid output format \"%s\" specified", format);
# 1292|-> 	return archiveFormat;
# 1293|   }
# 1294|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def503]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_dump/pg_dump.c: scope_hint: In function ‘dumpFunc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_dump/pg_dump.c:11829:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘probin’
#11827|   		appendPQExpBufferStr(asPart, prosqlbody);
#11828|   	}
#11829|-> 	else if (probin[0] != '\0')
#11830|   	{
#11831|   		appendPQExpBufferStr(asPart, "AS ");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def504]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_dump/pg_dump.c: scope_hint: In function ‘dumpCollation’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_dump/pg_dump.c:13293:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘collcollate’
#13291|   	if (fout->remoteVersion < 150000)
#13292|   	{
#13293|-> 		if (collcollate[0] == '\0')
#13294|   			collcollate = NULL;
#13295|   		if (collctype[0] == '\0')

Error: GCC_ANALYZER_WARNING (CWE-476): [#def505]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_dump/pg_dump.c:13295:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘collctype’
#13293|   		if (collcollate[0] == '\0')
#13294|   			collcollate = NULL;
#13295|-> 		if (collctype[0] == '\0')
#13296|   			collctype = NULL;
#13297|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def506]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_dump/pg_dump.c: scope_hint: In function ‘dumpSequence’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_dump/pg_dump.c:16970:57: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘owning_tab’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_dump/pg_dump.c:16943:51: note: in expansion of macro ‘fmtQualifiedDumpable’
#16968|   	{
#16969|   		appendPQExpBufferStr(query, "\n);\n");
#16970|-> 		if (tbinfo->relpersistence != owning_tab->relpersistence)
#16971|   			appendPQExpBuffer(query,
#16972|   							  "ALTER SEQUENCE %s SET %s;\n",

Error: GCC_ANALYZER_WARNING (CWE-775): [#def507]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_resetwal/pg_resetwal.c: scope_hint: In function ‘CheckDataVersion’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_resetwal/pg_resetwal.c:524:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("PG_VERSION", "r")’
#  522|   	if (!fgets(rawline, sizeof(rawline), ver_fd))
#  523|   	{
#  524|-> 		if (!ferror(ver_fd))
#  525|   			pg_fatal("unexpected empty file \"%s\"", ver_file);
#  526|   		else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def508]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_resetwal/pg_resetwal.c:524:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("PG_VERSION", "r")’
#  522|   	if (!fgets(rawline, sizeof(rawline), ver_fd))
#  523|   	{
#  524|-> 		if (!ferror(ver_fd))
#  525|   			pg_fatal("unexpected empty file \"%s\"", ver_file);
#  526|   		else

Error: GCC_ANALYZER_WARNING (CWE-775): [#def509]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_resetwal/pg_resetwal.c:533:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("PG_VERSION", "r")’
#  531|   	(void) pg_strip_crlf(rawline);
#  532|   
#  533|-> 	if (strcmp(rawline, PG_MAJORVERSION) != 0)
#  534|   	{
#  535|   		pg_log_error("data directory is of wrong version");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def510]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_resetwal/pg_resetwal.c:533:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("PG_VERSION", "r")’
#  531|   	(void) pg_strip_crlf(rawline);
#  532|   
#  533|-> 	if (strcmp(rawline, PG_MAJORVERSION) != 0)
#  534|   	{
#  535|   		pg_log_error("data directory is of wrong version");

Error: CPPCHECK_WARNING (CWE-457): [#def511]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_rewind/pg_rewind.c:836: error[legacyUninitvar]: Uninitialized variable: histfile
#  834|   			pg_fatal("invalid control file");
#  835|   
#  836|-> 		history = rewind_parseTimeLineHistory(histfile, tli, nentries);
#  837|   		pg_free(histfile);
#  838|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def512]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/controldata.c: scope_hint: In function ‘get_control_data’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/controldata.c:138:36: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
#  136|   				p = strchr(p, ':');
#  137|   
#  138|-> 				if (p == NULL || strlen(p) <= 1)
#  139|   					pg_fatal("%d: database cluster state problem\n", __LINE__);
#  140|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def513]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/controldata.c:138:47: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
#  136|   				p = strchr(p, ':');
#  137|   
#  138|-> 				if (p == NULL || strlen(p) <= 1)
#  139|   					pg_fatal("%d: database cluster state problem\n", __LINE__);
#  140|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def514]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/controldata.c:152:40: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
#  150|   				 */
#  151|   				/* remove leading spaces */
#  152|-> 				while (*p == ' ')
#  153|   					p++;
#  154|   				if (strcmp(p, "shut down in recovery\n") == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def515]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/controldata.c:14: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/controldata.c:200:38: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/pg_upgrade.h:26:35: note: in definition of macro ‘GET_MAJOR_VERSION’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/pg_upgrade.h:26:35: note: in definition of macro ‘GET_MAJOR_VERSION’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:1415: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres_fe.h:25: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/controldata.c:10: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/controldata.c:188:9: note: in expansion of macro ‘snprintf’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/controldata.c:188:9: note: in expansion of macro ‘snprintf’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/pg_upgrade.h:26:35: note: in definition of macro ‘GET_MAJOR_VERSION’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/pg_upgrade.h:26:35: note: in definition of macro ‘GET_MAJOR_VERSION’
#  198|   
#  199|   	/* Only in <= 9.2 */
#  200|-> 	if (GET_MAJOR_VERSION(cluster->major_version) <= 902)
#  201|   	{
#  202|   		cluster->controldata.data_checksum_version = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def516]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/exec.c: scope_hint: In function ‘get_bin_version’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/exec.c:43:48: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:1415: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres_fe.h:25: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/exec.c:10: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/exec.c:439:9: note: in expansion of macro ‘snprintf’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/exec.c:439:9: note: in expansion of macro ‘snprintf’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/exec.c:439:9: note: in expansion of macro ‘snprintf’
#   41|   	snprintf(cmd, sizeof(cmd), "\"%s/pg_ctl\" --version", cluster->bindir);
#   42|   
#   43|-> 	if ((output = popen(cmd, "r")) == NULL ||
#   44|   		fgets(cmd_output, sizeof(cmd_output), output) == NULL)
#   45|   		pg_fatal("could not get pg_ctl version data using %s: %s\n",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def517]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/option.c: scope_hint: In function ‘adjust_data_dir’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/option.c:420:48: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
#  418|   			 cluster->bindir, cluster->pgconfig);
#  419|   
#  420|-> 	if ((output = popen(cmd, "r")) == NULL ||
#  421|   		fgets(cmd_output, sizeof(cmd_output), output) == NULL)
#  422|   		pg_fatal("could not get data directory using %s: %s\n",

Error: GCC_ANALYZER_WARNING (CWE-775): [#def518]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/option.c: scope_hint: In function ‘get_sock_dir’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/option.c:472:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename, "r")’
#  470|   			 lineno++)
#  471|   		{
#  472|-> 			if (fgets(line, sizeof(line), fp) == NULL)
#  473|   				pg_fatal("could not read line %d from file \"%s\": %s\n",
#  474|   						 lineno, filename, strerror(errno));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def519]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pg_upgrade/option.c:472:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&filename, "r")’
#  470|   			 lineno++)
#  471|   		{
#  472|-> 			if (fgets(line, sizeof(line), fp) == NULL)
#  473|   				pg_fatal("could not read line %d from file \"%s\": %s\n",
#  474|   						 lineno, filename, strerror(errno));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def520]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprparse.y:546: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c: scope_hint: In function ‘expr_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1993:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.l:333:14: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1014:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1035:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.l:211:55: note: in expansion of macro ‘yytext’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.l:285:31: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1014:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1035:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1064:33: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1979:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1983:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c: scope_hint: In function ‘expr_yy_create_buffer’
# 1991|   	 */
# 1992|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 1993|-> 	if ( ! b->yy_ch_buf )
# 1994|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 1995|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def521]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c: scope_hint: In function ‘expr_yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:2035:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.l:333:14: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1014:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1035:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1736:25: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1736:25: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1914:10: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1924:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1924:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1924:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:2027:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:2033:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:2056:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:2033:9: note: in expansion of macro ‘yy_flush_buffer’
# 2033|   	yy_flush_buffer( b , yyscanner);
# 2034|   
# 2035|-> 	b->yy_input_file = file;
# 2036|   	b->yy_fill_buffer = 1;
# 2037|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def522]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c: scope_hint: In function ‘expr_yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:2157:42: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(8)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.l:325:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.l:325:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1932:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1941:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:2137:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:2149:66: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c: scope_hint: In function ‘expr_yyensure_buffer_stack’
# 2155|   		memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
# 2156|   
# 2157|-> 		yyg->yy_buffer_stack_max = num_to_alloc;
# 2158|   		yyg->yy_buffer_stack_top = 0;
# 2159|   		return;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def523]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:2177:42: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.l:325:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.l:325:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1932:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:1941:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:2137:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c:2168:66: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/exprscan.c: scope_hint: In function ‘expr_yyensure_buffer_stack’
# 2175|   		/* zero only the new slots.*/
# 2176|   		memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
# 2177|-> 		yyg->yy_buffer_stack_max = num_to_alloc;
# 2178|   	}
# 2179|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def524]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/pgbench.c: scope_hint: In function ‘coerceToInt’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/pgbench.c:2065:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pval.type’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/pgbench.c: scope_hint: In function ‘coerceToInt’
# 2063|   coerceToInt(PgBenchValue *pval, int64 *ival)
# 2064|   {
# 2065|-> 	if (pval->type == PGBT_INT)
# 2066|   	{
# 2067|   		*ival = pval->u.ival;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def525]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/pgbench.c: scope_hint: In function ‘coerceToDouble’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/pgbench.c:2093:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pval.type’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/pgbench/pgbench.c: scope_hint: In function ‘coerceToDouble’
# 2091|   coerceToDouble(PgBenchValue *pval, double *dval)
# 2092|   {
# 2093|-> 	if (pval->type == PGBT_DOUBLE)
# 2094|   	{
# 2095|   		*dval = pval->u.dval;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def526]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/copy.c: scope_hint: In function ‘do_copy’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/copy.c:353:25: warning[-Wanalyzer-mismatching-deallocation]: ‘copystream’ should have been deallocated with ‘pclose’ but was deallocated with ‘fclose’
#  351|   		if (result < 0 || S_ISDIR(st.st_mode))
#  352|   		{
#  353|-> 			fclose(copystream);
#  354|   			free_copy_options(options);
#  355|   			return false;

Error: CPPCHECK_WARNING (CWE-457): [#def527]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/crosstabview.c:362: error[uninitvar]: Uninitialized variables: &elt.sort_value, &elt.rank
#  360|   		else
#  361|   			elt.name = NULL;
#  362|-> 		rp = (pivot_field *) bsearch(&elt,
#  363|   									 piv_rows,
#  364|   									 num_rows,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def528]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/crosstabview.c: scope_hint: In function ‘printCrosstab’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/crosstabview.c:368:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  366|   									 pivotFieldCompare);
#  367|   		Assert(rp != NULL);
#  368|-> 		row_number = rp->rank;
#  369|   
#  370|   		/* Find target column */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def529]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/crosstabview.c:382:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/crosstabview.c: scope_hint: In function ‘printCrosstab’
#  380|   									 pivotFieldCompare);
#  381|   		Assert(cp != NULL);
#  382|-> 		col_number = cp->rank;
#  383|   
#  384|   		/* Place value into cell */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def530]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:515:53: warning[-Wanalyzer-malloc-leak]: leak of ‘slash_yy_create_buffer(*(struct yyguts_t *)yyscanner.yyin_r, 16384,  yyscanner)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2567:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.l:680:3: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2423:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2432:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2628:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2432:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2433:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.l:680:3: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.l:686:2: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1435:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1456:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1482:24: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1483:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1483:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2628:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1483:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1485:33: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2470:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2474:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2489:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2518:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2524:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2547:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2567:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2567:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2524:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2533:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2533:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2489:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1485:33: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2567:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
#  513|    */
#  514|   #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
#  515|->                           ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
#  516|                             : NULL)
#  517|   /* Same as previous macro, but useful when we know that the buffer stack is not

Error: GCC_ANALYZER_WARNING (CWE-401): [#def531]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1484:50: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.l:680:3: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2423:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2432:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2628:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2432:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2433:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.l:680:3: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.l:686:2: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1435:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1456:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1482:24: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1483:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1483:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2628:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1483:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1485:33: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2470:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2483:33: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2489:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2518:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2524:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2547:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2567:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2567:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2524:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2533:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2533:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2489:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1485:33: note: in expansion of macro ‘yy_create_buffer’
# 1482|   		if ( ! YY_CURRENT_BUFFER ) {
# 1483|   			yyensure_buffer_stack (yyscanner);
# 1484|-> 			YY_CURRENT_BUFFER_LVALUE =
# 1485|   				yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
# 1486|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def532]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2484:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.l:678:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2423:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2432:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2628:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2432:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2433:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.l:678:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.l:686:2: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1435:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1456:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1482:24: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1483:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1483:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2628:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1483:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1485:33: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2470:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2474:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yy_create_buffer’
# 2482|   	 */
# 2483|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 2484|-> 	if ( ! b->yy_ch_buf )
# 2485|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 2486|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def533]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2526:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.l:678:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2423:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2432:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2628:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2432:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2433:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.l:678:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.l:686:2: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1435:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:1456:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2252:25: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2252:25: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2405:10: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2415:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2415:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2415:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2518:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2524:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2547:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2524:9: note: in expansion of macro ‘yy_flush_buffer’
# 2524|   	yy_flush_buffer( b , yyscanner);
# 2525|   
# 2526|-> 	b->yy_input_file = file;
# 2527|   	b->yy_fill_buffer = 1;
# 2528|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def534]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2648:42: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(8)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.l:575:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.l:575:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2423:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2432:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2628:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2640:66: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yyensure_buffer_stack’
# 2646|   		memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
# 2647|   
# 2648|-> 		yyg->yy_buffer_stack_max = num_to_alloc;
# 2649|   		yyg->yy_buffer_stack_top = 0;
# 2650|   		return;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def535]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2668:42: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.l:575:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.l:575:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2423:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2432:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2628:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c:2659:66: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yyensure_buffer_stack’
# 2666|   		/* zero only the new slots.*/
# 2667|   		memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
# 2668|-> 		yyg->yy_buffer_stack_max = num_to_alloc;
# 2669|   	}
# 2670|   }

Error: CPPCHECK_WARNING (CWE-562): [#def536]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.l:497: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  495|   	/* Set current output target */
#  496|   	state->output_buf = &mybuf;
#  497|-> 
#  498|   	/* Set input source */
#  499|   	if (state->buffer_stack != NULL)

Error: CPPCHECK_WARNING (CWE-562): [#def537]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/psql/psqlscanslash.l:571: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  569|   	/* Set current output target */
#  570|   	state->output_buf = &mybuf;
#  571|-> 
#  572|   	/* Set input source */
#  573|   	if (state->buffer_stack != NULL)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def538]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/scripts/vacuumdb.c: scope_hint: In function ‘vacuum_one_database’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/bin/scripts/vacuumdb.c:707:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cell’
#  705|   						   echo, tabname);
#  706|   
#  707|-> 		cell = cell->next;
#  708|   	} while (cell != NULL);
#  709|   

Error: CPPCHECK_WARNING (CWE-457): [#def539]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/common/encnames.c:541: warning[uninitvar]: Uninitialized variable: newkey
#  539|   	}
#  540|   	*np = '\0';
#  541|-> 	return newkey;
#  542|   }
#  543|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def540]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/common/sprompt.c: scope_hint: In function ‘simple_prompt_extended’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/common/sprompt.c:180:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
#  178|   	}
#  179|   
#  180|-> 	return result;
#  181|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def541]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/common/sprompt.c:180:16: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
#  178|   	}
#  179|   
#  180|-> 	return result;
#  181|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def542]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/print.c: scope_hint: In function ‘print_aligned_text’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/print.c:909:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘width_header’
#  907|   			 * display across multiple lines.  We check for both cases below.
#  908|   			 */
#  909|-> 			if (width > 0 && width_wrap[i])
#  910|   			{
#  911|   				unsigned int extra_lines;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def543]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/print.c:1040:17: warning[-Wanalyzer-null-argument]: use of NULL ‘bytes_output’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
# 1038|   		}
# 1039|   
# 1040|-> 		memset(bytes_output, 0, col_count * sizeof(int));
# 1041|   
# 1042|   		/*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def544]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/print.c:1219:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:59: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres_fe.h:25: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/print.c:18: included_from: Included from here.
# 1217|   	free(wrap);
# 1218|   
# 1219|-> 	if (is_local_pager)
# 1220|   		ClosePager(fout);
# 1221|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def545]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c: scope_hint: In function ‘psql_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3869:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.l:1094:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3808:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3817:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:4013:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3817:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.l:1094:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.l:1099:14: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:2440:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:2461:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3637:25: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3637:25: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3790:10: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3795:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3797:13: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3855:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3859:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c: scope_hint: In function ‘psql_yy_create_buffer’
# 3867|   	 */
# 3868|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 3869|-> 	if ( ! b->yy_ch_buf )
# 3870|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 3871|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def546]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c: scope_hint: In function ‘psql_yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3911:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.l:1094:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3808:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3817:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:4013:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3817:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.l:1094:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.l:1099:14: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:2440:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:2461:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3637:25: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3637:25: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3790:10: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3800:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3800:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3800:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3903:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3909:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3932:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/psqlscan.c:3909:9: note: in expansion of macro ‘yy_flush_buffer’
# 3909|   	yy_flush_buffer( b , yyscanner);
# 3910|   
# 3911|-> 	b->yy_input_file = file;
# 3912|   	b->yy_fill_buffer = 1;
# 3913|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def547]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/recovery_gen.c: scope_hint: In function ‘WriteRecoveryConfig’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/recovery_gen.c:123:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename,  <unknown>)’
#  121|   		pg_fatal("could not open file \"%s\": %m", filename);
#  122|   
#  123|-> 	if (fwrite(contents->data, contents->len, 1, cf) != 1)
#  124|   		pg_fatal("could not write to file \"%s\": %m", filename);
#  125|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def548]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/fe_utils/recovery_gen.c:123:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&filename,  <unknown>)’
#  121|   		pg_fatal("could not open file \"%s\": %m", filename);
#  122|   
#  123|-> 	if (fwrite(contents->data, contents->len, 1, cf) != 1)
#  124|   		pg_fatal("could not write to file \"%s\": %m", filename);
#  125|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def549]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/cache/relcache.c:33: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/cache/relcache.c: scope_hint: In function ‘RelationReloadNailed’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/htup_details.h:654:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/cache/relcache.c:2383:48: note: in expansion of macro ‘GETSTRUCT’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/tableam.h:24: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/nbtree.h:20: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/cache/relcache.c:35: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/cache/relcache.c:5440:14: note: in expansion of macro ‘RelationGetForm’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/cache/relcache.c:2064:9: note: in expansion of macro ‘RelationIdCacheLookup’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/cache/relcache.c:2064:9: note: in expansion of macro ‘RelationIdCacheLookup’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/utils/cache/relcache.c:2383:48: note: in expansion of macro ‘GETSTRUCT’
#  652|    * GETSTRUCT - given a HeapTuple pointer, return address of the user data
#  653|    */
#  654|-> #define GETSTRUCT(TUP) ((char *) ((TUP)->t_data) + (TUP)->t_data->t_hoff)
#  655|   
#  656|   /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def550]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufmgr.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/bufmask.h:21: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtxlog.c:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtxlog.c: scope_hint: In function ‘btree_xlog_split’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/itup.h:71:56: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nposting’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufpage.h:417:41: note: in definition of macro ‘PageAddItem’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:785:41: note: in expansion of macro ‘TYPEALIGN’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtxlog.c:390:65: note: in expansion of macro ‘MAXALIGN’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtxlog.c:390:74: note: in expansion of macro ‘IndexTupleSize’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufmgr.h:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufmgr.h:139:9: note: in expansion of macro ‘BufferIsLocal’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufmgr.h:169:38: note: in expansion of macro ‘BufferGetBlock’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtxlog.c:319:51: note: in expansion of macro ‘BufferGetPage’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:46: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtxlog.c:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:779:24: note: in definition of macro ‘TYPEALIGN’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtxlog.c:363:32: note: in expansion of macro ‘MAXALIGN’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtxlog.c:363:41: note: in expansion of macro ‘IndexTupleSize’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtxlog.c:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/nbtree.h:371:34: note: in expansion of macro ‘P_RIGHTMOST’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtxlog.c:378:28: note: in expansion of macro ‘P_FIRSTDATAKEY’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtxlog.c:406:34: note: in expansion of macro ‘PageGetItemId’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufpage.h:20: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtxlog.c:412:35: note: in expansion of macro ‘OffsetNumberNext’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtxlog.c:406:34: note: in expansion of macro ‘PageGetItemId’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtxlog.c:412:35: note: in expansion of macro ‘OffsetNumberNext’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtxlog.c:389:37: note: in expansion of macro ‘PageAddItem’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufpage.h:417:41: note: in definition of macro ‘PageAddItem’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:785:41: note: in expansion of macro ‘TYPEALIGN’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtxlog.c:390:65: note: in expansion of macro ‘MAXALIGN’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtxlog.c:390:74: note: in expansion of macro ‘IndexTupleSize’
#   69|   #define INDEX_NULL_MASK 0x8000
#   70|   
#   71|-> #define IndexTupleSize(itup)		((Size) ((itup)->t_info & INDEX_SIZE_MASK))
#   72|   #define IndexTupleHasNulls(itup)	((((IndexTuple) (itup))->t_info & INDEX_NULL_MASK))
#   73|   #define IndexTupleHasVarwidths(itup) ((((IndexTuple) (itup))->t_info & INDEX_VAR_MASK))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def551]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/tableam.h:24: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/heapam.h:22: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/heap/heapam_handler.c:23: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/tableam.h: scope_hint: In function ‘table_scan_getnextslot’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/tableam.h:1036:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sscan’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/rel.h:488:38: note: in definition of macro ‘RelationGetRelid’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/rel.h:488:38: note: in definition of macro ‘RelationGetRelid’
# 1034|   table_scan_getnextslot(TableScanDesc sscan, ScanDirection direction, TupleTableSlot *slot)
# 1035|   {
# 1036|-> 	slot->tts_tableOid = RelationGetRelid(sscan->rs_rd);
# 1037|   
# 1038|   	/*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def552]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/htup_details.h:20: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/heaptoast.h:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_tuple.c:36: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_tuple.c: scope_hint: In function ‘brin_deconstruct_tuple’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/tupmacs.h:25:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nullbits’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_tuple.c:667:46: note: in expansion of macro ‘att_isnull’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_tuple.c:34: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_tuple.c:572:14: note: in expansion of macro ‘BrinTupleIsEmptyRange’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_tuple.c:667:46: note: in expansion of macro ‘att_isnull’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_tuple.c:667:46: note: in expansion of macro ‘att_isnull’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/brin/brin_tuple.c:667:46: note: in expansion of macro ‘att_isnull’
#   23|    * non-null.
#   24|    */
#   25|-> #define att_isnull(ATT, BITS) (!((BITS)[(ATT) >> 3] & (1 << ((ATT) & 0x07))))
#   26|   
#   27|   /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def553]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/lib/ilist.h:596:25: warning[-Wanalyzer-malloc-leak]: leak of ‘rw’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/postmaster/bgworker.c: scope_hint: In function ‘RegisterBackgroundWorker’
#  594|   {
#  595|   	node->next = head->head.next;
#  596|-> 	head->head.next = node;
#  597|   
#  598|   	slist_check(head);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def554]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:40: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/tupdesc.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/attmap.h:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/tupconvert.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/execnodes.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/foreign/fdwapi.h:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c:23: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c: scope_hint: In function ‘fix_indexqual_clause’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:550:66: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:596:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c:5061:13: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c: scope_hint: In function ‘fix_indexqual_clause’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c: scope_hint: In function ‘fix_indexqual_clause’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:596:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c:5061:13: note: in expansion of macro ‘IsA’
#  548|   } Node;
#  549|   
#  550|-> #define nodeTag(nodeptr)		(((const Node*)(nodeptr))->type)
#  551|   
#  552|   /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def555]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:40: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/tupdesc.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/htup_details.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/statistics/dependencies.c:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/statistics/dependencies.c: scope_hint: In function ‘dependency_is_compatible_clause’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:550:66: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘clause’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:596:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/statistics/dependencies.c:797:18: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/statistics/dependencies.c: scope_hint: In function ‘dependency_is_compatible_clause’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/statistics/dependencies.c:1432:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/statistics/dependencies.c:1432:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/statistics/dependencies.c: scope_hint: In function ‘dependency_is_compatible_clause’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:596:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/statistics/dependencies.c:797:18: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:596:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/statistics/dependencies.c:797:18: note: in expansion of macro ‘IsA’
#  548|   } Node;
#  549|   
#  550|-> #define nodeTag(nodeptr)		(((const Node*)(nodeptr))->type)
#  551|   
#  552|   /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def556]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:40: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/tupdesc.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/relcache.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/genam.h:21: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/amapi.h:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/nbtree.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/nodeIndexscan.c:32: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/nodeIndexscan.c: scope_hint: In function ‘ExecIndexBuildScanKeys’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:550:66: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘leftop’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:596:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/nodeIndexscan.c:1229:31: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/nodeIndexscan.c:1194:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/nodeIndexscan.c:1194:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:596:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/nodeIndexscan.c:1229:31: note: in expansion of macro ‘IsA’
#  548|   } Node;
#  549|   
#  550|-> #define nodeTag(nodeptr)		(((const Node*)(nodeptr))->type)
#  551|   
#  552|   /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def557]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c: scope_hint: In function ‘fix_indexqual_operand’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:550:66: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘node’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:596:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c:5130:13: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c:4990:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c:4990:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c:4996:17: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c:4996:17: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c: scope_hint: In function ‘fix_indexqual_operand’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:596:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c:4899:13: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c: scope_hint: In function ‘fix_indexqual_operand’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:448:18: note: in expansion of macro ‘multi_for_advance_cell’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c:5078:17: note: in expansion of macro ‘forboth’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c:4996:17: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c:4996:17: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c: scope_hint: In function ‘fix_indexqual_operand’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:596:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c:4899:13: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c: scope_hint: In function ‘fix_indexqual_operand’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:596:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/plan/createplan.c:5130:13: note: in expansion of macro ‘IsA’
#  548|   } Node;
#  549|   
#  550|-> #define nodeTag(nodeptr)		(((const Node*)(nodeptr))->type)
#  551|   
#  552|   /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def558]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:550:66: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rightop’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:596:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/nodeIndexscan.c:1261:29: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/nodeIndexscan.c:1194:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/nodeIndexscan.c:1194:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodeFuncs.h: scope_hint: In function ‘ExecIndexBuildScanKeys’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:169:51: note: in definition of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodeFuncs.h:78:33: note: in expansion of macro ‘linitial’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/nodeIndexscan.c: scope_hint: In function ‘ExecIndexBuildScanKeys’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:596:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/nodeIndexscan.c:1224:39: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:596:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/executor/nodeIndexscan.c:1261:29: note: in expansion of macro ‘IsA’
#  548|   } Node;
#  549|   
#  550|-> #define nodeTag(nodeptr)		(((const Node*)(nodeptr))->type)
#  551|   
#  552|   /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def559]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_func.c: scope_hint: In function ‘funcname_signature_string’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:169:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_func.c:2015:70: note: in expansion of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_func.c: scope_hint: In function ‘funcname_signature_string’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_func.c:2015:70: note: in expansion of macro ‘lfirst’
#  167|    * in the second list cell.
#  168|    */
#  169|-> #define lfirst(lc)				((lc)->ptr_value)
#  170|   #define lfirst_int(lc)			((lc)->int_value)
#  171|   #define lfirst_oid(lc)			((lc)->oid_value)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def560]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:40: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partbounds.c: scope_hint: In function ‘get_qual_for_hash’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:169:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘partexprs_item’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:659:55: note: in definition of macro ‘copyObject’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partbounds.c:4056:54: note: in expansion of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:659:55: note: in definition of macro ‘copyObject’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partbounds.c:4056:54: note: in expansion of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/nodes.h:659:55: note: in definition of macro ‘copyObject’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partbounds.c:4056:54: note: in expansion of macro ‘lfirst’
#  167|    * in the second list cell.
#  168|    */
#  169|-> #define lfirst(lc)				((lc)->ptr_value)
#  170|   #define lfirst_int(lc)			((lc)->int_value)
#  171|   #define lfirst_oid(lc)			((lc)->oid_value)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def561]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c: scope_hint: In function ‘CheckRADIUSAuth’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:169:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘secrets’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c:2958:100: note: in expansion of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c: scope_hint: In function ‘CheckRADIUSAuth’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c: scope_hint: In function ‘CheckRADIUSAuth’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c:682:17: note: in expansion of macro ‘pq_flush’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:158:9: note: in expansion of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:233:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c:754:9: note: in expansion of macro ‘elog’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c: scope_hint: In function ‘CheckRADIUSAuth’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c: scope_hint: In function ‘CheckRADIUSAuth’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c: scope_hint: In function ‘CheckRADIUSAuth’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:353:45: note: in definition of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c:2955:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c:2955:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c:2958:100: note: in expansion of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/libpq/auth.c:2958:100: note: in expansion of macro ‘lfirst’
#  167|    * in the second list cell.
#  168|    */
#  169|-> #define lfirst(lc)				((lc)->ptr_value)
#  170|   #define lfirst_int(lc)			((lc)->int_value)
#  171|   #define lfirst_oid(lc)			((lc)->oid_value)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def562]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/tupdesc.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/relcache.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/genam.h:21: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/amapi.h:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/hash.h:20: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partprune.c:38: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partprune.c: scope_hint: In function ‘get_steps_using_prefix_recurse’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:169:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘start’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partprune.c:2506:41: note: in expansion of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partprune.c:2520:17: note: in expansion of macro ‘for_each_cell’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partprune.c: scope_hint: In function ‘get_steps_using_prefix_recurse’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partprune.c:2520:17: note: in expansion of macro ‘for_each_cell’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partprune.c:2536:17: note: in expansion of macro ‘for_each_cell’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partprune.c:2536:17: note: in expansion of macro ‘for_each_cell’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partprune.c:2506:41: note: in expansion of macro ‘lfirst’
#  167|    * in the second list cell.
#  168|    */
#  169|-> #define lfirst(lc)				((lc)->ptr_value)
#  170|   #define lfirst_int(lc)			((lc)->int_value)
#  171|   #define lfirst_oid(lc)			((lc)->oid_value)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def563]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/tupdesc.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/htup_details.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c:26: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c: scope_hint: In function ‘generate_append_tlist’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:171:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘curColType’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c:1298:64: note: in expansion of macro ‘lfirst_oid’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c:1284:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c:1284:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c: scope_hint: In function ‘generate_append_tlist’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c:1291:17: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c:1291:17: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c:1291:17: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/prepunion.c:1298:64: note: in expansion of macro ‘lfirst_oid’
#  169|   #define lfirst(lc)				((lc)->ptr_value)
#  170|   #define lfirst_int(lc)			((lc)->int_value)
#  171|-> #define lfirst_oid(lc)			((lc)->oid_value)
#  172|   #define lfirst_node(type,lc)	castNode(type, lfirst(lc))
#  173|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def564]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:260:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘elemops’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partbounds.c: scope_hint: In function ‘make_partition_op_expr’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:169:51: note: in definition of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partbounds.c:3968:100: note: in expansion of macro ‘linitial’
#  258|   	Assert(list != NIL);
#  259|   	Assert(n >= 0 && n < list->length);
#  260|-> 	return &list->elements[n];
#  261|   }
#  262|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def565]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:260:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘expanded_groups’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_agg.c: scope_hint: In function ‘expand_grouping_sets’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_agg.c:1807:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:353:45: note: in definition of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:174:49: note: in expansion of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_agg.c:1830:30: note: in expansion of macro ‘linitial’
#  258|   	Assert(list != NIL);
#  259|   	Assert(n >= 0 && n < list->length);
#  260|-> 	return &list->elements[n];
#  261|   }
#  262|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def566]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:260:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘fargs’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_func.c: scope_hint: In function ‘unify_hypothetical_args’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_func.c: scope_hint: In function ‘unify_hypothetical_args’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_func.c:155:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_func.c:155:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_func.c:179:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:46: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_func.c:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:738:41: note: in definition of macro ‘OidIsValid’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_func.c:1626:40: note: in expansion of macro ‘GETSTRUCT’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_func.c:370:49: note: in expansion of macro ‘GETSTRUCT’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_func.c: scope_hint: In function ‘unify_hypothetical_args’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/parser/parse_func.c: scope_hint: In function ‘unify_hypothetical_args’
#  258|   	Assert(list != NIL);
#  259|   	Assert(n >= 0 && n < list->length);
#  260|-> 	return &list->elements[n];
#  261|   }
#  262|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def567]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:260:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘or_expr_args’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partbounds.c: scope_hint: In function ‘get_qual_for_range’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partbounds.c:34: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partbounds.c:4344:46: note: in expansion of macro ‘TextDatumGetCString’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partbounds.c: scope_hint: In function ‘get_qual_for_range’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:448:18: note: in expansion of macro ‘multi_for_advance_cell’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partbounds.c:4413:9: note: in expansion of macro ‘forboth’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partbounds.c: scope_hint: In function ‘get_qual_for_range’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:169:51: note: in definition of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/partitioning/partbounds.c:4360:78: note: in expansion of macro ‘linitial’
#  258|   	Assert(list != NIL);
#  259|   	Assert(n >= 0 && n < list->length);
#  260|-> 	return &list->elements[n];
#  261|   }
#  262|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def568]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:1415: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:46: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/pgstattuple/pgstattuple.c:25: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/pgstattuple/pgstattuple.c: scope_hint: In function ‘build_pgstattuple_type’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/port.h:229:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘values[1]’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/pgstattuple/pgstattuple.c:137:9: note: in expansion of macro ‘snprintf’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/pgstattuple/pgstattuple.c: scope_hint: In function ‘build_pgstattuple_type’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/miscadmin.h:113:10: note: in expansion of macro ‘unlikely’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/miscadmin.h:123:13: note: in expansion of macro ‘INTERRUPTS_PENDING_CONDITION’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/pgstattuple/pgstattuple.c:342:17: note: in expansion of macro ‘CHECK_FOR_INTERRUPTS’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/miscadmin.h:113:10: note: in expansion of macro ‘unlikely’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/miscadmin.h:123:13: note: in expansion of macro ‘INTERRUPTS_PENDING_CONDITION’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/pgstattuple/pgstattuple.c:342:17: note: in expansion of macro ‘CHECK_FOR_INTERRUPTS’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/pgstattuple/pgstattuple.c: scope_hint: In function ‘build_pgstattuple_type’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/pgstattuple/pgstattuple.c:136:9: note: in expansion of macro ‘snprintf’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/contrib/pgstattuple/pgstattuple.c:137:9: note: in expansion of macro ‘snprintf’
#  227|    */
#  228|   #define vsnprintf		pg_vsnprintf
#  229|-> #define snprintf		pg_snprintf
#  230|   #define vsprintf		pg_vsprintf
#  231|   #define sprintf			pg_sprintf

Error: GCC_ANALYZER_WARNING (CWE-401): [#def569]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:1415: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres_fe.h:25: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/ecpglib/misc.c:4: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/port.h:233:33: warning[-Wanalyzer-malloc-leak]: leak of ‘ECPGget_sqlca()’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/ecpglib/misc.c:304:17: note: in expansion of macro ‘fprintf’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/ecpglib/misc.c:304:17: note: in expansion of macro ‘fprintf’
#  231|   #define sprintf			pg_sprintf
#  232|   #define vfprintf		pg_vfprintf
#  233|-> #define fprintf			pg_fprintf
#  234|   #define vprintf			pg_vprintf
#  235|   #define printf(...)		pg_printf(__VA_ARGS__)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def570]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/executor/instrument.h:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/transam/xlog.c:72: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/transam/xlog.c: scope_hint: In function ‘issue_xlog_fsync.part.0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/portability/instr_time.h:108:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start.tv_sec’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/transam/xlog.c:8069:17: note: in expansion of macro ‘INSTR_TIME_SUBTRACT’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/transam/xlog.c:73: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/transam/xlog.c:2542:9: note: in expansion of macro ‘START_CRIT_SECTION’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/spin.h:54: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/condition_variable.h:26: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/replication/slot.h:14: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/replication/logical.h:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/transam/xlog.c:81: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/s_lock.h:210:23: note: in definition of macro ‘TAS’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/spin.h:62:31: note: in expansion of macro ‘S_LOCK’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/transam/xlog.c:1449:9: note: in expansion of macro ‘SpinLockAcquire’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/transam/xlog.c:59: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/xlog_internal.h:107:11: note: in definition of macro ‘XLogSegmentOffset’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/transam/xlog.c: scope_hint: In function ‘issue_xlog_fsync.part.0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/transam/xlog.c: scope_hint: In function ‘issue_xlog_fsync.part.0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/transam/xlog.c:8068:17: note: in expansion of macro ‘INSTR_TIME_SET_CURRENT’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/transam/xlog.c:8069:17: note: in expansion of macro ‘INSTR_TIME_SUBTRACT’
#  106|   #define INSTR_TIME_SUBTRACT(x,y) \
#  107|   	do { \
#  108|-> 		(x).tv_sec -= (y).tv_sec; \
#  109|   		(x).tv_nsec -= (y).tv_nsec; \
#  110|   		/* Normalize */ \

Error: GCC_ANALYZER_WARNING (CWE-476): [#def571]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_exec.c:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_exec.c: scope_hint: In function ‘exec_assign_value’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:257:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:326:57: note: in expansion of macro ‘VARATT_IS_1B_E’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:334:10: note: in expansion of macro ‘VARATT_IS_EXTERNAL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_exec.c:5120:50: note: in expansion of macro ‘VARATT_IS_EXTERNAL_EXPANDED_RW’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:269:43: note: in definition of macro ‘likely’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_exec.c: scope_hint: In function ‘exec_assign_value’
/usr/include/dirent.h:247: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/fd.h:46: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/sharedtuplestore.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/execnodes.h:30: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/executor/nodeAgg.h:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/executor/execExpr.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_exec.c:27: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:326:57: note: in expansion of macro ‘VARATT_IS_1B_E’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:334:10: note: in expansion of macro ‘VARATT_IS_EXTERNAL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_exec.c:5120:50: note: in expansion of macro ‘VARATT_IS_EXTERNAL_EXPANDED_RW’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:326:57: note: in expansion of macro ‘VARATT_IS_1B_E’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:334:10: note: in expansion of macro ‘VARATT_IS_EXTERNAL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_exec.c:5120:50: note: in expansion of macro ‘VARATT_IS_EXTERNAL_EXPANDED_RW’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:326:57: note: in expansion of macro ‘VARATT_IS_1B_E’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:334:10: note: in expansion of macro ‘VARATT_IS_EXTERNAL’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_exec.c:5120:50: note: in expansion of macro ‘VARATT_IS_EXTERNAL_EXPANDED_RW’
#  255|   	((((varattrib_1b *) (PTR))->va_header & 0x01) == 0x01)
#  256|   #define VARATT_IS_1B_E(PTR) \
#  257|-> 	((((varattrib_1b *) (PTR))->va_header) == 0x01)
#  258|   #define VARATT_NOT_PAD_BYTE(PTR) \
#  259|   	(*((uint8 *) (PTR)) != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def572]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/ginblock.h:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/gin_private.h:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c: scope_hint: In function ‘ginPlaceToPage’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufpage.h:329:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘childpage’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/ginblock.h:111:50: note: in expansion of macro ‘PageGetSpecialPointer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:417:25: note: in expansion of macro ‘GinPageGetOpaque’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/ginblock.h:111:50: note: in expansion of macro ‘PageGetSpecialPointer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/ginblock.h:128:43: note: in expansion of macro ‘GinPageGetOpaque’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:701:21: note: in expansion of macro ‘GinPageIsIncompleteSplit’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/ginblock.h:111:50: note: in expansion of macro ‘PageGetSpecialPointer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/ginblock.h:128:43: note: in expansion of macro ‘GinPageGetOpaque’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:701:21: note: in expansion of macro ‘GinPageIsIncompleteSplit’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufpage.h:329:29: note: in definition of macro ‘PageGetSpecialPointer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/ginblock.h:128:43: note: in expansion of macro ‘GinPageGetOpaque’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:701:21: note: in expansion of macro ‘GinPageIsIncompleteSplit’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufmgr.h:169:38: note: in expansion of macro ‘BufferGetBlock’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:701:46: note: in expansion of macro ‘BufferGetPage’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/snapshot.h:20: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/genam.h:22: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/amapi.h:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/gin_private.h:13: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/buf.h:37:35: note: in definition of macro ‘BufferIsLocal’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufmgr.h:169:38: note: in expansion of macro ‘BufferGetBlock’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:705:24: note: in expansion of macro ‘BufferGetPage’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/gin_private.h:20: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:705:24: note: in expansion of macro ‘BufferGetPage’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufmgr.h:169:38: note: in expansion of macro ‘BufferGetBlock’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:705:24: note: in expansion of macro ‘BufferGetPage’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/ginblock.h:111:50: note: in expansion of macro ‘PageGetSpecialPointer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:731:31: note: in expansion of macro ‘GinPageGetOpaque’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufpage.h:329:29: note: in definition of macro ‘PageGetSpecialPointer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:731:31: note: in expansion of macro ‘GinPageGetOpaque’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/bufmgr.h:169:38: note: in expansion of macro ‘BufferGetBlock’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:731:48: note: in expansion of macro ‘BufferGetPage’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:20: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:398:17: note: in expansion of macro ‘START_CRIT_SECTION’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/ginblock.h:111:50: note: in expansion of macro ‘PageGetSpecialPointer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:417:25: note: in expansion of macro ‘GinPageGetOpaque’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/ginblock.h:111:50: note: in expansion of macro ‘PageGetSpecialPointer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/gin/ginbtree.c:417:25: note: in expansion of macro ‘GinPageGetOpaque’
#  327|   ( \
#  328|   	AssertMacro(PageValidateSpecialPointer(page)), \
#  329|-> 	(char *) ((char *) (page) + ((PageHeader) (page))->pd_special) \
#  330|   )
#  331|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def573]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:47: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c: scope_hint: In function ‘_bt_check_third_page’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/itemptr.h:119:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c:2682:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c:2692:44: note: in expansion of macro ‘ItemPointerGetOffsetNumber’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:158:9: note: in expansion of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c:2682:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:158:9: note: in expansion of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c:2682:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c:2682:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c:2682:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/itemptr.h:120:9: note: in expansion of macro ‘ItemPointerGetOffsetNumberNoCheck’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c:2692:44: note: in expansion of macro ‘ItemPointerGetOffsetNumber’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/nbtree.h:638:22: note: in expansion of macro ‘ItemPointerGetOffsetNumberNoCheck’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c:2682:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/itemptr.h:120:9: note: in expansion of macro ‘ItemPointerGetOffsetNumberNoCheck’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c:2692:44: note: in expansion of macro ‘ItemPointerGetOffsetNumber’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c:2682:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c:2692:44: note: in expansion of macro ‘ItemPointerGetOffsetNumber’
#  117|   #define ItemPointerGetOffsetNumber(pointer) \
#  118|   ( \
#  119|-> 	AssertMacro(ItemPointerIsValid(pointer)), \
#  120|   	ItemPointerGetOffsetNumberNoCheck(pointer) \
#  121|   )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def574]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/tidbitmap.h:25: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/genam.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/amapi.h:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/nbtree.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c:20: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c: scope_hint: In function ‘_bt_truncate’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/itemptr.h:164:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c:2306:9: note: in expansion of macro ‘ItemPointerCopy’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:46: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:779:24: note: in definition of macro ‘TYPEALIGN’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c:2284:19: note: in expansion of macro ‘MAXALIGN’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c:2284:28: note: in expansion of macro ‘IndexTupleSize’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/access/nbtree.h:638:22: note: in expansion of macro ‘ItemPointerGetOffsetNumberNoCheck’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/access/nbtree/nbtutils.c:2306:9: note: in expansion of macro ‘ItemPointerCopy’
#  162|   ( \
#  163|   	AssertMacro(PointerIsValid(toPointer)), \
#  164|-> 	AssertMacro(PointerIsValid(fromPointer)), \
#  165|   	*(toPointer) = *(fromPointer) \
#  166|   )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def575]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/preptlist.c:47: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/preptlist.c: scope_hint: In function ‘expand_insert_targetlist’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/rel.h:494:60: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rel’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/preptlist.c:371:20: note: in expansion of macro ‘RelationGetNumberOfAttributes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/preptlist.c: scope_hint: In function ‘expand_insert_targetlist’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/preptlist.c:371:20: note: in expansion of macro ‘RelationGetNumberOfAttributes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/backend/optimizer/prep/preptlist.c:371:20: note: in expansion of macro ‘RelationGetNumberOfAttributes’
#  492|    *		Returns the total number of attributes in a relation.
#  493|    */
#  494|-> #define RelationGetNumberOfAttributes(relation) ((relation)->rd_rel->relnatts)
#  495|   
#  496|   /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def576]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/ecpglib/connect.c: scope_hint: In function ‘ECPGsetcommit’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/ecpglib/connect.c:179:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  177|   		return false;
#  178|   
#  179|-> 	ecpg_log("ECPGsetcommit on line %d: action \"%s\"; connection \"%s\"\n", lineno, mode, con->name);
#  180|   
#  181|   	if (con->autocommit && strncmp(mode, "off", strlen("off")) == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def577]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/ecpglib/memory.c: scope_hint: In function ‘ecpg_add_mem’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/ecpglib/memory.c:21:36: warning[-Wanalyzer-malloc-leak]: leak of ‘ecpg_alloc(16, lineno)’
#   19|   ecpg_alloc(long size, int lineno)
#   20|   {
#   21|-> 	char	   *new = (char *) calloc(1L, size);
#   22|   
#   23|   	if (!new)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def578]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/ecpglib/misc.c: scope_hint: In function ‘ecpg_log’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/ecpglib/misc.c:155:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ECPGget_sqlca()’
#  153|   			return NULL;
#  154|   		ecpg_init_sqlca(sqlca);
#  155|-> 		pthread_setspecific(sqlca_key, sqlca);
#  156|   	}
#  157|   	return sqlca;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def579]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c: scope_hint: In function ‘base_yy_scan_string’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:41:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<return-value>’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4607:16: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.l:1799:31: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.l:1799:31: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.l:1805:17: note: in expansion of macro ‘yy_scan_string’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4604:17: note: in expansion of macro ‘yy_scan_string’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4607:16: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4617:17: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4635:13: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4567:17: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4567:17: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4577:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c: scope_hint: In function ‘base_yy_scan_string’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4591:9: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4320:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4328:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4518:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4328:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4329:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4591:9: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4635:13: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4607:16: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4607:16: note: in expansion of macro ‘yy_scan_bytes’
#   39|   #define yy_scan_buffer base_yy_scan_buffer
#   40|   #define yy_scan_string base_yy_scan_string
#   41|-> #define yy_scan_bytes base_yy_scan_bytes
#   42|   #define yy_init_buffer base_yy_init_buffer
#   43|   #define yy_flush_buffer base_yy_flush_buffer

Error: GCC_ANALYZER_WARNING (CWE-401): [#def580]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:41:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4607:16: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.l:1799:31: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.l:1799:31: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.l:1805:17: note: in expansion of macro ‘yy_scan_string’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4604:17: note: in expansion of macro ‘yy_scan_string’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4607:16: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4617:17: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4626:24: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c: scope_hint: In function ‘base_yy_scan_string’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4635:13: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4567:17: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4567:17: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4591:9: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4320:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4328:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4518:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4328:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4329:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4591:9: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4635:13: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4607:16: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4607:16: note: in expansion of macro ‘yy_scan_bytes’
#   39|   #define yy_scan_buffer base_yy_scan_buffer
#   40|   #define yy_scan_string base_yy_scan_string
#   41|-> #define yy_scan_bytes base_yy_scan_bytes
#   42|   #define yy_init_buffer base_yy_init_buffer
#   43|   #define yy_flush_buffer base_yy_flush_buffer

Error: GCC_ANALYZER_WARNING (CWE-401): [#def581]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c: scope_hint: In function ‘base_yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:567:46: warning[-Wanalyzer-malloc-leak]: leak of ‘base_yy_create_buffer(base_yyin, 16384)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4459:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.l:1630:22: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.l:1630:22: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.l:1711:9: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4365:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4369:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c: scope_hint: In function ‘base_yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4384:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4412:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4417:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4440:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4459:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4459:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4417:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4426:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4426:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4384:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.l:1711:9: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.l:1711:9: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4320:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4328:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4518:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4548:63: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c: scope_hint: In function ‘base_yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4328:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4329:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4459:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
#  565|    */
#  566|   #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
#  567|->                           ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
#  568|                             : NULL)
#  569|   /* Same as previous macro, but useful when we know that the buffer stack is not

Error: GCC_ANALYZER_WARNING (CWE-401): [#def582]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4048:46: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4050:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4050:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c: scope_hint: In function ‘yy_get_next_buffer’
# 4046|   					b->yy_buf_size *= 2;
# 4047|   
# 4048|-> 				b->yy_ch_buf = (char *)
# 4049|   					/* Include room in for 2 EOB chars. */
# 4050|   					yyrealloc( (void *) b->yy_ch_buf,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def583]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c: scope_hint: In function ‘base_yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4329:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.l:1630:22: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.l:1630:22: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.l:1711:9: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4365:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4378:33: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c: scope_hint: In function ‘base_yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4384:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4412:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4417:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4440:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4459:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4459:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4417:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4426:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4426:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4384:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.l:1711:9: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.l:1711:9: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4320:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4328:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4518:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4548:63: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c: scope_hint: In function ‘base_yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4328:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4329:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
# 4327|        */
# 4328|   	yyensure_buffer_stack ();
# 4329|-> 	if ( YY_CURRENT_BUFFER == new_buffer )
# 4330|   		return;
# 4331|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def584]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c: scope_hint: In function ‘base_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4379:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4365:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4369:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c: scope_hint: In function ‘base_yy_create_buffer’
# 4377|   	 */
# 4378|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 4379|-> 	if ( ! b->yy_ch_buf )
# 4380|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 4381|   

Error: CPPCHECK_WARNING (CWE-476): [#def585]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4419: warning[nullPointer]: Possible null pointer dereference: b
# 4417|   	yy_flush_buffer( b );
# 4418|   
# 4419|-> 	b->yy_input_file = file;
# 4420|   	b->yy_fill_buffer = 1;
# 4421|   

Error: CPPCHECK_WARNING (CWE-476): [#def586]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4420: warning[nullPointer]: Possible null pointer dereference: b
# 4418|   
# 4419|   	b->yy_input_file = file;
# 4420|-> 	b->yy_fill_buffer = 1;
# 4421|   
# 4422|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: GCC_ANALYZER_WARNING (CWE-401): [#def587]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c: scope_hint: In function ‘base_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4633:45: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4617:17: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4626:24: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c: scope_hint: In function ‘base_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4635:13: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.c:4567:17: note: in expansion of macro ‘yy_scan_buffer’
# 4631|   		buf[i] = yybytes[i];
# 4632|   
# 4633|-> 	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 4634|   
# 4635|   	b = yy_scan_buffer( buf, n );

Error: CPPCHECK_WARNING (CWE-401): [#def588]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.l:1574: error[memleakOnRealloc]: Common realloc mistake: 'literalbuf' nulled but not freed upon failure
# 1572|   		while ((literallen+yleng) >= literalalloc);
# 1573|   		literalbuf = (char *) realloc(literalbuf, literalalloc);
# 1574|-> 	}
# 1575|   	/* append new data, add trailing null */
# 1576|   	memcpy(literalbuf+literallen, ytext, yleng);

Error: CPPCHECK_WARNING (CWE-401): [#def589]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/pgc.l:1589: error[memleakOnRealloc]: Common realloc mistake: 'literalbuf' nulled but not freed upon failure
# 1587|   		literalalloc *= 2;
# 1588|   		literalbuf = (char *) realloc(literalbuf, literalalloc);
# 1589|-> 	}
# 1590|   	/* append new data, add trailing null */
# 1591|   	literalbuf[literallen] = ychar;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def590]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/preproc.c: scope_hint: In function ‘base_yyparse’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/preproc.c:2422:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/preproc.c:2407:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/preproc.c:37030:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/preproc.c:2422:25: note: in definition of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/preproc.c:37030:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/preproc.c:2407:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/preproc.c:37030:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
# 2420|   #  if defined __GNUC__ && 1 < __GNUC__
# 2421|   #   define YYCOPY(Dst, Src, Count) \
# 2422|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
# 2423|   #  else
# 2424|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-457): [#def591]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/ecpg/preproc/preproc.c:37160:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
#37158|        unconditionally makes the parser a bit smaller, and it avoids a
#37159|        GCC warning that YYVAL may be used uninitialized.  */
#37160|->   yyval = yyvsp[1-yylen];
#37161|   
#37162|     /* Default location. */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def592]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/libpq/fe-exec.c: scope_hint: In function ‘PQclear.part.0’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/interfaces/libpq/fe-exec.c:734:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  732|   	{
#  733|   		/* only send DESTROY to successfully-initialized event procs */
#  734|-> 		if (res->events[i].resultInitialized)
#  735|   		{
#  736|   			PGEventResultDestroy evt;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def593]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_comp.c: scope_hint: In function ‘resolve_column_ref’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_comp.c:1308:45: warning[-Wanalyzer-null-argument]: use of NULL ‘colname’ where non-null expected
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_comp.c: scope_hint: In function ‘resolve_column_ref’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:61: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:46: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_comp.c:16: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
# 1306|   					Assert(fld->dtype == PLPGSQL_DTYPE_RECFIELD &&
# 1307|   						   fld->recparentno == nse->itemno);
# 1308|-> 					if (strcmp(fld->fieldname, colname) == 0)
# 1309|   					{
# 1310|   						return make_datum_param(expr, i, cref->location);

Error: CPPCHECK_WARNING (CWE-768): [#def594]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_comp.c:1458: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(word1))},(union ListCell){.ptr_value=(makeString(word2))}' depends on order of evaluation of side effects
# 1456|   	int			nnames;
# 1457|   
# 1458|-> 	idents = list_make2(makeString(word1),
# 1459|   						makeString(word2));
# 1460|   

Error: CPPCHECK_WARNING (CWE-768): [#def595]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_comp.c:1575: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(word1))},(union ListCell){.ptr_value=(makeString(word2))}' depends on order of evaluation of side effects
# 1573|   							 */
# 1574|   							new = plpgsql_build_recfield(rec, word2);
# 1575|-> 							idents = list_make2(makeString(word1),
# 1576|   												makeString(word2));
# 1577|   						}

Error: CPPCHECK_WARNING (CWE-768): [#def596]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_comp.c:1582: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(word1))},(union ListCell){.ptr_value=(makeString(word2))}' depends on order of evaluation of side effects
# 1580|   							/* Block-qualified reference to record variable. */
# 1581|   							new = plpgsql_build_recfield(rec, word3);
# 1582|-> 							idents = list_make3(makeString(word1),
# 1583|   												makeString(word2),
# 1584|   												makeString(word3));

Error: CPPCHECK_WARNING (CWE-768): [#def597]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_comp.c:1582: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(word1))},(union ListCell){.ptr_value=(makeString(word2))},(union ListCell){.ptr_value=(makeString(word3))}' depends on order of evaluation of side effects
# 1580|   							/* Block-qualified reference to record variable. */
# 1581|   							new = plpgsql_build_recfield(rec, word3);
# 1582|-> 							idents = list_make3(makeString(word1),
# 1583|   												makeString(word2),
# 1584|   												makeString(word3));

Error: CPPCHECK_WARNING (CWE-768): [#def598]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_comp.c:1600: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(word1))},(union ListCell){.ptr_value=(makeString(word2))}' depends on order of evaluation of side effects
# 1598|   
# 1599|   	/* Nothing found */
# 1600|-> 	idents = list_make3(makeString(word1),
# 1601|   						makeString(word2),
# 1602|   						makeString(word3));

Error: CPPCHECK_WARNING (CWE-768): [#def599]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_comp.c:1600: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(word1))},(union ListCell){.ptr_value=(makeString(word2))},(union ListCell){.ptr_value=(makeString(word3))}' depends on order of evaluation of side effects
# 1598|   
# 1599|   	/* Nothing found */
# 1600|-> 	idents = list_make3(makeString(word1),
# 1601|   						makeString(word2),
# 1602|   						makeString(word3));

Error: CPPCHECK_WARNING (CWE-476): [#def600]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_exec.c:8534: warning[nullPointer]: Possible null pointer dereference: (struct varattrib_1b*)((charPointer)(newvalue))
# 8532|   	 */
# 8533|   	if (!estate->atomic && !isnull && var->datatype->typlen == -1 &&
# 8534|-> 		VARATT_IS_EXTERNAL_NON_EXPANDED(DatumGetPointer(newvalue)))
# 8535|   	{
# 8536|   		MemoryContext oldcxt;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def601]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c: scope_hint: In function ‘plpgsql_yyparse’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:750:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:735:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:1888:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:750:25: note: in definition of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:1888:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:735:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:1888:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  748|   #  if defined __GNUC__ && 1 < __GNUC__
#  749|   #   define YYCOPY(Dst, Src, Count) \
#  750|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  751|   #  else
#  752|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-127): [#def602]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:47: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:56:34: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:485:49: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:488:66: note: in expansion of macro ‘parser_errposition’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:158:9: note: in expansion of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:485:49: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:485:49: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:485:49: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:488:66: note: in expansion of macro ‘parser_errposition’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:56:34: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:485:49: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:488:66: note: in expansion of macro ‘parser_errposition’
#   54|   } sql_error_callback_arg;
#   55|   
#   56|-> #define parser_errposition(pos)  plpgsql_scanner_errposition(pos)
#   57|   
#   58|   union YYSTYPE;					/* need forward reference for tok_is_keyword */

Error: GCC_ANALYZER_WARNING (CWE-127): [#def603]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:363:105: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:363:105: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  361|   pl_function		: comp_options pl_block opt_semi
#  362|   					{
#  363|-> 						plpgsql_parse_result = (PLpgSQL_stmt_block *) $2;
#  364|   					}
#  365|   				;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def604]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:377:69: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.str’
#  375|   				| '#' K_PRINT_STRICT_PARAMS option_value
#  376|   					{
#  377|-> 						if (strcmp($3, "on") == 0)
#  378|   							plpgsql_curr_compile->print_strict_params = true;
#  379|   						else if (strcmp($3, "off") == 0)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def605]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:400:70: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.word.ident’
#  398|   option_value : T_WORD
#  399|   				{
#  400|-> 					$$ = $1.ident;
#  401|   				}
#  402|   			 | unreserved_keyword

Error: GCC_ANALYZER_WARNING (CWE-457): [#def606]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:404:55: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.keyword’
#  402|   			 | unreserved_keyword
#  403|   				{
#  404|-> 					$$ = pstrdup($1);
#  405|   				}
#  406|   

Error: GCC_ANALYZER_WARNING (CWE-127): [#def607]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:418:75: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:418:75: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
#  416|   
#  417|   						new->cmd_type	= PLPGSQL_STMT_BLOCK;
#  418|-> 						new->lineno		= plpgsql_location_to_lineno(@2);
#  419|   						new->stmtid		= ++plpgsql_curr_compile->nstatements;
#  420|   						new->label		= $1.label;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def608]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:420:94: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:420:94: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  418|   						new->lineno		= plpgsql_location_to_lineno(@2);
#  419|   						new->stmtid		= ++plpgsql_curr_compile->nstatements;
#  420|-> 						new->label		= $1.label;
#  421|   						new->n_initvars = $1.n_initvars;
#  422|   						new->initvarnos = $1.initvarnos;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def609]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:421:86: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:421:86: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  419|   						new->stmtid		= ++plpgsql_curr_compile->nstatements;
#  420|   						new->label		= $1.label;
#  421|-> 						new->n_initvars = $1.n_initvars;
#  422|   						new->initvarnos = $1.initvarnos;
#  423|   						new->body		= $3;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def610]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:422:86: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:422:86: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  420|   						new->label		= $1.label;
#  421|   						new->n_initvars = $1.n_initvars;
#  422|-> 						new->initvarnos = $1.initvarnos;
#  423|   						new->body		= $3;
#  424|   						new->exceptions	= $4;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def611]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:423:85: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:423:85: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  421|   						new->n_initvars = $1.n_initvars;
#  422|   						new->initvarnos = $1.initvarnos;
#  423|-> 						new->body		= $3;
#  424|   						new->exceptions	= $4;
#  425|   

Error: GCC_ANALYZER_WARNING (CWE-127): [#def612]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:424:77: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:424:77: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  422|   						new->initvarnos = $1.initvarnos;
#  423|   						new->body		= $3;
#  424|-> 						new->exceptions	= $4;
#  425|   
#  426|   						check_labels($1.label, $6, @6);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def613]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:426:98: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.str’
#  424|   						new->exceptions	= $4;
#  425|   
#  426|-> 						check_labels($1.label, $6, @6);
#  427|   						plpgsql_ns_pop();
#  428|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def614]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:438:91: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.str’
#  436|   						/* done with decls, so resume identifier lookup */
#  437|   						plpgsql_IdentifierLookup = IDENTIFIER_LOOKUP_NORMAL;
#  438|-> 						$$.label	  = $1;
#  439|   						$$.n_initvars = 0;
#  440|   						$$.initvarnos = NULL;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def615]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:445:92: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:445:92: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  443|   					{
#  444|   						plpgsql_IdentifierLookup = IDENTIFIER_LOOKUP_NORMAL;
#  445|-> 						$$.label	  = $1;
#  446|   						$$.n_initvars = 0;
#  447|   						$$.initvarnos = NULL;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def616]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:452:92: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:452:92: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  450|   					{
#  451|   						plpgsql_IdentifierLookup = IDENTIFIER_LOOKUP_NORMAL;
#  452|-> 						$$.label	  = $1;
#  453|   						/* Remember variables declared in decl_stmts */
#  454|   						$$.n_initvars = plpgsql_add_initdatums(&($$.initvarnos));

Error: GCC_ANALYZER_WARNING (CWE-127): [#def617]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/postgres.h:46: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:502:74: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:738:41: note: in definition of macro ‘OidIsValid’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:738:41: note: in definition of macro ‘OidIsValid’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:502:74: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:738:41: note: in definition of macro ‘OidIsValid’
#  500|   						 * variables.
#  501|   						 */
#  502|-> 						if (OidIsValid($4))
#  503|   						{
#  504|   							if (!OidIsValid($3->collation))

Error: GCC_ANALYZER_WARNING (CWE-127): [#def618]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:504:83: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:738:41: note: in definition of macro ‘OidIsValid’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:738:41: note: in definition of macro ‘OidIsValid’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:738:41: note: in definition of macro ‘OidIsValid’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:504:83: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:738:41: note: in definition of macro ‘OidIsValid’
#  502|   						if (OidIsValid($4))
#  503|   						{
#  504|-> 							if (!OidIsValid($3->collation))
#  505|   								ereport(ERROR,
#  506|   										(errcode(ERRCODE_DATATYPE_MISMATCH),

Error: GCC_ANALYZER_WARNING (CWE-127): [#def619]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:508:122: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:505:65: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/c.h:738:41: note: in definition of macro ‘OidIsValid’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:158:9: note: in expansion of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:505:65: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:158:9: note: in expansion of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:505:65: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:505:65: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:505:65: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:508:122: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:505:65: note: in expansion of macro ‘ereport’
#  506|   										(errcode(ERRCODE_DATATYPE_MISMATCH),
#  507|   										 errmsg("collations are not supported by type %s",
#  508|-> 												format_type_be($3->typoid)),
#  509|   										 parser_errposition(@4)));
#  510|   							$3->collation = $4;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def620]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:513:55: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:513:55: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  511|   						}
#  512|   
#  513|-> 						var = plpgsql_build_variable($1.name, $1.lineno,
#  514|   													 $3, true);
#  515|   						var->isconst = $2;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def621]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:513:97: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:513:97: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  511|   						}
#  512|   
#  513|-> 						var = plpgsql_build_variable($1.name, $1.lineno,
#  514|   													 $3, true);
#  515|   						var->isconst = $2;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def622]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:515:74: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:515:74: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  513|   						var = plpgsql_build_variable($1.name, $1.lineno,
#  514|   													 $3, true);
#  515|-> 						var->isconst = $2;
#  516|   						var->notnull = $5;
#  517|   						var->default_val = $6;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def623]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:516:74: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:516:74: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  514|   													 $3, true);
#  515|   						var->isconst = $2;
#  516|-> 						var->notnull = $5;
#  517|   						var->default_val = $6;
#  518|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def624]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:517:77: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.expr’
#  515|   						var->isconst = $2;
#  516|   						var->notnull = $5;
#  517|-> 						var->default_val = $6;
#  518|   
#  519|   						/*

Error: GCC_ANALYZER_WARNING (CWE-127): [#def625]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:533:94: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:533:94: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  531|   					{
#  532|   						plpgsql_ns_additem($4->itemtype,
#  533|-> 										   $4->itemno, $1.name);
#  534|   					}
#  535|   				| decl_varname opt_scrollable K_CURSOR

Error: GCC_ANALYZER_WARNING (CWE-127): [#def626]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:533:131: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:533:131: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  531|   					{
#  532|   						plpgsql_ns_additem($4->itemtype,
#  533|-> 										   $4->itemno, $1.name);
#  534|   					}
#  535|   				| decl_varname opt_scrollable K_CURSOR

Error: GCC_ANALYZER_WARNING (CWE-127): [#def627]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:536:113: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:536:113: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  534|   					}
#  535|   				| decl_varname opt_scrollable K_CURSOR
#  536|-> 					{ plpgsql_ns_push($1.name, PLPGSQL_LABEL_OTHER); }
#  537|   				  decl_cursor_args decl_is_for decl_cursor_query
#  538|   					{

Error: GCC_ANALYZER_WARNING (CWE-127): [#def628]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:549:57: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:549:57: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  547|   
#  548|   						new = (PLpgSQL_var *)
#  549|-> 							plpgsql_build_variable($1.name, $1.lineno,
#  550|   												   plpgsql_build_datatype(REFCURSOROID,
#  551|   																		  -1,

Error: GCC_ANALYZER_WARNING (CWE-127): [#def629]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:549:99: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:549:99: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  547|   
#  548|   						new = (PLpgSQL_var *)
#  549|-> 							plpgsql_build_variable($1.name, $1.lineno,
#  550|   												   plpgsql_build_datatype(REFCURSOROID,
#  551|   																		  -1,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def630]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:579:86: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.expr’
#  577|   						new->default_val = curname_def;
#  578|   
#  579|-> 						new->cursor_explicit_expr = $7;
#  580|   						if ($5 == NULL)
#  581|   							new->cursor_explicit_argrow = -1;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def631]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:621:63: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:621:63: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
#  619|   						new->dtype = PLPGSQL_DTYPE_ROW;
#  620|   						new->refname = "(unnamed row)";
#  621|-> 						new->lineno = plpgsql_location_to_lineno(@1);
#  622|   						new->rowtupdesc = NULL;
#  623|   						new->nfields = list_length($2);

Error: GCC_ANALYZER_WARNING (CWE-127): [#def632]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:623:86: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:623:86: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  621|   						new->lineno = plpgsql_location_to_lineno(@1);
#  622|   						new->rowtupdesc = NULL;
#  623|-> 						new->nfields = list_length($2);
#  624|   						new->fieldnames = palloc(new->nfields * sizeof(char *));
#  625|   						new->varnos = palloc(new->nfields * sizeof(int));

Error: GCC_ANALYZER_WARNING (CWE-127): [#def633]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/primnodes.h:22: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/catalog/namespace.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:628:71: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:353:45: note: in definition of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:353:45: note: in definition of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:628:71: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:353:45: note: in definition of macro ‘foreach’
#  626|   
#  627|   						i = 0;
#  628|-> 						foreach (l, $2)
#  629|   						{
#  630|   							PLpgSQL_variable *arg = (PLpgSQL_variable *) lfirst(l);

Error: GCC_ANALYZER_WARNING (CWE-127): [#def634]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:636:49: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:636:49: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  634|   							i++;
#  635|   						}
#  636|-> 						list_free($2);
#  637|   
#  638|   						plpgsql_adddatum((PLpgSQL_datum *) new);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def635]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:645:84: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.datum’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:202:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:645:64: note: in expansion of macro ‘list_make1’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:202:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:645:64: note: in expansion of macro ‘list_make1’
#  643|   decl_cursor_arglist : decl_cursor_arg
#  644|   					{
#  645|-> 						$$ = list_make1($1);
#  646|   					}
#  647|   				| decl_cursor_arglist ',' decl_cursor_arg

Error: GCC_ANALYZER_WARNING (CWE-457): [#def636]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:649:99: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.datum’
#  647|   				| decl_cursor_arglist ',' decl_cursor_arg
#  648|   					{
#  649|-> 						$$ = lappend($1, $3);
#  650|   					}
#  651|   				;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def637]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:656:57: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.dtype’
#  654|   					{
#  655|   						$$ = (PLpgSQL_datum *)
#  656|-> 							plpgsql_build_variable($1.name, $1.lineno,
#  657|   												   $2, true);
#  658|   					}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def638]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:669:112: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.word.ident’
#  667|   
#  668|   						nsi = plpgsql_ns_lookup(plpgsql_ns_top(), false,
#  669|-> 												$1.ident, NULL, NULL,
#  670|   												NULL);
#  671|   						if (nsi == NULL)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def639]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:683:55: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.keyword’
#  681|   						PLpgSQL_nsitem *nsi;
#  682|   
#  683|-> 						nsi = plpgsql_ns_lookup(plpgsql_ns_top(), false,
#  684|   												$1, NULL, NULL,
#  685|   												NULL);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def640]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:698:81: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.cword.idents’
#  696|   						PLpgSQL_nsitem *nsi;
#  697|   
#  698|-> 						if (list_length($1.idents) == 2)
#  699|   							nsi = plpgsql_ns_lookup(plpgsql_ns_top(), false,
#  700|   													strVal(linitial($1.idents)),

Error: GCC_ANALYZER_WARNING (CWE-457): [#def641]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:724:87: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.word.ident’
#  722|   decl_varname	: T_WORD
#  723|   					{
#  724|-> 						$$.name = $1.ident;
#  725|   						$$.lineno = plpgsql_location_to_lineno(@1);
#  726|   						/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def642]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:752:72: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.keyword’
#  750|   				| unreserved_keyword
#  751|   					{
#  752|-> 						$$.name = pstrdup($1);
#  753|   						$$.lineno = plpgsql_location_to_lineno(@1);
#  754|   						/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def643]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:801:92: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.word.ident’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:202:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:801:81: note: in expansion of macro ‘list_make1’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:202:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:801:81: note: in expansion of macro ‘list_make1’
#  799|   				| K_COLLATE T_WORD
#  800|   					{
#  801|-> 						$$ = get_collation_oid(list_make1(makeString($2.ident)),
#  802|   											   false);
#  803|   					}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def644]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:806:92: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.keyword’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:202:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:806:81: note: in expansion of macro ‘list_make1’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:202:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:806:81: note: in expansion of macro ‘list_make1’
#  804|   				| K_COLLATE unreserved_keyword
#  805|   					{
#  806|-> 						$$ = get_collation_oid(list_make1(makeString(pstrdup($2))),
#  807|   											   false);
#  808|   					}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def645]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:811:63: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.cword.idents’
#  809|   				| K_COLLATE T_CWORD
#  810|   					{
#  811|-> 						$$ = get_collation_oid($2.idents, false);
#  812|   					}
#  813|   				;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def646]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:847:62: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  845|   					{
#  846|   						/* don't bother linking null statements into list */
#  847|-> 						if ($2 == NULL)
#  848|   							$$ = $1;
#  849|   						else

Error: GCC_ANALYZER_WARNING (CWE-127): [#def647]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:855:118: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:855:118: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  853|   
#  854|   proc_stmt		: pl_block ';'
#  855|-> 						{ $$ = $1; }
#  856|   				| stmt_assign
#  857|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def648]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:857:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  855|   						{ $$ = $1; }
#  856|   				| stmt_assign
#  857|-> 						{ $$ = $1; }
#  858|   				| stmt_if
#  859|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def649]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:859:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  857|   						{ $$ = $1; }
#  858|   				| stmt_if
#  859|-> 						{ $$ = $1; }
#  860|   				| stmt_case
#  861|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def650]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:861:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  859|   						{ $$ = $1; }
#  860|   				| stmt_case
#  861|-> 						{ $$ = $1; }
#  862|   				| stmt_loop
#  863|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def651]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:863:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  861|   						{ $$ = $1; }
#  862|   				| stmt_loop
#  863|-> 						{ $$ = $1; }
#  864|   				| stmt_while
#  865|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def652]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:865:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  863|   						{ $$ = $1; }
#  864|   				| stmt_while
#  865|-> 						{ $$ = $1; }
#  866|   				| stmt_for
#  867|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def653]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:867:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  865|   						{ $$ = $1; }
#  866|   				| stmt_for
#  867|-> 						{ $$ = $1; }
#  868|   				| stmt_foreach_a
#  869|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def654]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:869:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  867|   						{ $$ = $1; }
#  868|   				| stmt_foreach_a
#  869|-> 						{ $$ = $1; }
#  870|   				| stmt_exit
#  871|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def655]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:871:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  869|   						{ $$ = $1; }
#  870|   				| stmt_exit
#  871|-> 						{ $$ = $1; }
#  872|   				| stmt_return
#  873|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def656]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:873:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  871|   						{ $$ = $1; }
#  872|   				| stmt_return
#  873|-> 						{ $$ = $1; }
#  874|   				| stmt_raise
#  875|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def657]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:875:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  873|   						{ $$ = $1; }
#  874|   				| stmt_raise
#  875|-> 						{ $$ = $1; }
#  876|   				| stmt_assert
#  877|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def658]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:877:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  875|   						{ $$ = $1; }
#  876|   				| stmt_assert
#  877|-> 						{ $$ = $1; }
#  878|   				| stmt_execsql
#  879|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def659]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:879:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  877|   						{ $$ = $1; }
#  878|   				| stmt_execsql
#  879|-> 						{ $$ = $1; }
#  880|   				| stmt_dynexecute
#  881|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def660]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:881:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  879|   						{ $$ = $1; }
#  880|   				| stmt_dynexecute
#  881|-> 						{ $$ = $1; }
#  882|   				| stmt_perform
#  883|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def661]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:883:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  881|   						{ $$ = $1; }
#  882|   				| stmt_perform
#  883|-> 						{ $$ = $1; }
#  884|   				| stmt_call
#  885|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def662]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:885:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  883|   						{ $$ = $1; }
#  884|   				| stmt_call
#  885|-> 						{ $$ = $1; }
#  886|   				| stmt_getdiag
#  887|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def663]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:887:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  885|   						{ $$ = $1; }
#  886|   				| stmt_getdiag
#  887|-> 						{ $$ = $1; }
#  888|   				| stmt_open
#  889|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def664]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:889:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  887|   						{ $$ = $1; }
#  888|   				| stmt_open
#  889|-> 						{ $$ = $1; }
#  890|   				| stmt_fetch
#  891|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def665]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:891:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  889|   						{ $$ = $1; }
#  890|   				| stmt_fetch
#  891|-> 						{ $$ = $1; }
#  892|   				| stmt_move
#  893|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def666]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:893:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  891|   						{ $$ = $1; }
#  892|   				| stmt_move
#  893|-> 						{ $$ = $1; }
#  894|   				| stmt_close
#  895|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def667]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:895:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  893|   						{ $$ = $1; }
#  894|   				| stmt_close
#  895|-> 						{ $$ = $1; }
#  896|   				| stmt_null
#  897|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def668]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:897:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  895|   						{ $$ = $1; }
#  896|   				| stmt_null
#  897|-> 						{ $$ = $1; }
#  898|   				| stmt_commit
#  899|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def669]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:899:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  897|   						{ $$ = $1; }
#  898|   				| stmt_commit
#  899|-> 						{ $$ = $1; }
#  900|   				| stmt_rollback
#  901|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def670]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:901:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  899|   						{ $$ = $1; }
#  900|   				| stmt_rollback
#  901|-> 						{ $$ = $1; }
#  902|   				;
#  903|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def671]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:985:74: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.wdatum.ident’
#  983|   
#  984|   						/* see how many names identify the datum */
#  985|-> 						switch ($1.ident ? 1 : list_length($1.idents))
#  986|   						{
#  987|   							case 1:

Error: GCC_ANALYZER_WARNING (CWE-127): [#def672]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1025:63: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1025:63: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1023|   						new = palloc0(sizeof(PLpgSQL_stmt_getdiag));
# 1024|   						new->cmd_type = PLPGSQL_STMT_GETDIAG;
# 1025|-> 						new->lineno = plpgsql_location_to_lineno(@1);
# 1026|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1027|   						new->is_stacked = $2;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def673]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1027:77: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1027:77: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1025|   						new->lineno = plpgsql_location_to_lineno(@1);
# 1026|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1027|-> 						new->is_stacked = $2;
# 1028|   						new->diag_items = $4;
# 1029|   

Error: GCC_ANALYZER_WARNING (CWE-127): [#def674]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1028:77: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1028:77: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1026|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1027|   						new->is_stacked = $2;
# 1028|-> 						new->diag_items = $4;
# 1029|   
# 1030|   						/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def675]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1096:99: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.diagitem’
# 1094|   getdiag_list : getdiag_list ',' getdiag_list_item
# 1095|   					{
# 1096|-> 						$$ = lappend($1, $3);
# 1097|   					}
# 1098|   				| getdiag_list_item

Error: GCC_ANALYZER_WARNING (CWE-457): [#def676]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1100:84: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.diagitem’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:202:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1100:64: note: in expansion of macro ‘list_make1’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:202:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1100:64: note: in expansion of macro ‘list_make1’
# 1098|   				| getdiag_list_item
# 1099|   					{
# 1100|-> 						$$ = list_make1($1);
# 1101|   					}
# 1102|   				;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def677]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1109:73: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1109:73: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1107|   
# 1108|   						new = palloc(sizeof(PLpgSQL_diag_item));
# 1109|-> 						new->target = $1->dno;
# 1110|   						new->kind = $3;
# 1111|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def678]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1110:70: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.ival’
# 1108|   						new = palloc(sizeof(PLpgSQL_diag_item));
# 1109|   						new->target = $1->dno;
# 1110|-> 						new->kind = $3;
# 1111|   
# 1112|   						$$ = new;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def679]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1168:70: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.wdatum.datum’
# 1166|   						 * just throw an error if next token is '['.
# 1167|   						 */
# 1168|-> 						if ($1.datum->dtype == PLPGSQL_DTYPE_ROW ||
# 1169|   							$1.datum->dtype == PLPGSQL_DTYPE_REC ||
# 1170|   							plpgsql_peek() == '[')

Error: GCC_ANALYZER_WARNING (CWE-127): [#def680]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1197:63: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1197:63: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1195|   						new = palloc0(sizeof(PLpgSQL_stmt_if));
# 1196|   						new->cmd_type = PLPGSQL_STMT_IF;
# 1197|-> 						new->lineno = plpgsql_location_to_lineno(@1);
# 1198|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1199|   						new->cond = $2;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def681]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1199:71: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1199:71: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1197|   						new->lineno = plpgsql_location_to_lineno(@1);
# 1198|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1199|-> 						new->cond = $2;
# 1200|   						new->then_body = $3;
# 1201|   						new->elsif_list = $4;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def682]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1200:76: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1200:76: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1198|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1199|   						new->cond = $2;
# 1200|-> 						new->then_body = $3;
# 1201|   						new->elsif_list = $4;
# 1202|   						new->else_body = $5;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def683]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1201:77: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1201:77: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1199|   						new->cond = $2;
# 1200|   						new->then_body = $3;
# 1201|-> 						new->elsif_list = $4;
# 1202|   						new->else_body = $5;
# 1203|   

Error: GCC_ANALYZER_WARNING (CWE-127): [#def684]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1202:76: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1202:76: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1200|   						new->then_body = $3;
# 1201|   						new->elsif_list = $4;
# 1202|-> 						new->else_body = $5;
# 1203|   
# 1204|   						$$ = (PLpgSQL_stmt *) new;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def685]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1217:63: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1217:63: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1215|   
# 1216|   						new = palloc0(sizeof(PLpgSQL_if_elsif));
# 1217|-> 						new->lineno = plpgsql_location_to_lineno(@2);
# 1218|   						new->cond = $3;
# 1219|   						new->stmts = $4;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def686]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1218:71: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1218:71: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1216|   						new = palloc0(sizeof(PLpgSQL_if_elsif));
# 1217|   						new->lineno = plpgsql_location_to_lineno(@2);
# 1218|-> 						new->cond = $3;
# 1219|   						new->stmts = $4;
# 1220|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def687]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1219:71: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.list’
# 1217|   						new->lineno = plpgsql_location_to_lineno(@2);
# 1218|   						new->cond = $3;
# 1219|-> 						new->stmts = $4;
# 1220|   
# 1221|   						$$ = lappend($1, new);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def688]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1231:73: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.list’
# 1229|   				| K_ELSE proc_sect
# 1230|   					{
# 1231|-> 						$$ = $2;
# 1232|   					}
# 1233|   				;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def689]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1237:64: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1237:64: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1235|   stmt_case		: K_CASE opt_expr_until_when case_when_list opt_case_else K_END K_CASE ';'
# 1236|   					{
# 1237|-> 						$$ = make_case(@1, $2, $3, $4);
# 1238|   					}
# 1239|   				;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def690]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1258:99: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.casewhen’
# 1256|   case_when_list	: case_when_list case_when
# 1257|   					{
# 1258|-> 						$$ = lappend($1, $2);
# 1259|   					}
# 1260|   				| case_when

Error: GCC_ANALYZER_WARNING (CWE-457): [#def691]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1262:84: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.casewhen’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:202:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1262:64: note: in expansion of macro ‘list_make1’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/pg_list.h:202:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1262:64: note: in expansion of macro ‘list_make1’
# 1260|   				| case_when
# 1261|   					{
# 1262|-> 						$$ = list_make1($1);
# 1263|   					}
# 1264|   				;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def692]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1270:67: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1270:67: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1268|   						PLpgSQL_case_when *new = palloc(sizeof(PLpgSQL_case_when));
# 1269|   
# 1270|-> 						new->lineno	= plpgsql_location_to_lineno(@1);
# 1271|   						new->expr = $2;
# 1272|   						new->stmts = $3;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def693]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1271:71: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1271:71: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1269|   
# 1270|   						new->lineno	= plpgsql_location_to_lineno(@1);
# 1271|-> 						new->expr = $2;
# 1272|   						new->stmts = $3;
# 1273|   						$$ = new;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def694]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1272:71: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.list’
# 1270|   						new->lineno	= plpgsql_location_to_lineno(@1);
# 1271|   						new->expr = $2;
# 1272|-> 						new->stmts = $3;
# 1273|   						$$ = new;
# 1274|   					}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def695]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1289:62: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.list’
# 1287|   						 * pointer, which make_case() must take care of.
# 1288|   						 */
# 1289|-> 						if ($2 != NIL)
# 1290|   							$$ = $2;
# 1291|   						else

Error: GCC_ANALYZER_WARNING (CWE-127): [#def696]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1302:63: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1302:63: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1300|   						new = palloc0(sizeof(PLpgSQL_stmt_loop));
# 1301|   						new->cmd_type = PLPGSQL_STMT_LOOP;
# 1302|-> 						new->lineno = plpgsql_location_to_lineno(@2);
# 1303|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1304|   						new->label = $1;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def697]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1304:72: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1304:72: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1302|   						new->lineno = plpgsql_location_to_lineno(@2);
# 1303|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1304|-> 						new->label = $1;
# 1305|   						new->body = $3.stmts;
# 1306|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def698]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1305:81: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.loop_body.stmts’
# 1303|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1304|   						new->label = $1;
# 1305|-> 						new->body = $3.stmts;
# 1306|   
# 1307|   						check_labels($1, $3.end_label, $3.end_label_location);

Error: GCC_ANALYZER_WARNING (CWE-127): [#def699]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1320:63: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1320:63: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1318|   						new = palloc0(sizeof(PLpgSQL_stmt_while));
# 1319|   						new->cmd_type = PLPGSQL_STMT_WHILE;
# 1320|-> 						new->lineno = plpgsql_location_to_lineno(@2);
# 1321|   						new->stmtid	= ++plpgsql_curr_compile->nstatements;
# 1322|   						new->label = $1;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def700]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1322:72: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1322:72: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1320|   						new->lineno = plpgsql_location_to_lineno(@2);
# 1321|   						new->stmtid	= ++plpgsql_curr_compile->nstatements;
# 1322|-> 						new->label = $1;
# 1323|   						new->cond = $3;
# 1324|   						new->body = $4.stmts;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def701]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1323:71: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1323:71: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1321|   						new->stmtid	= ++plpgsql_curr_compile->nstatements;
# 1322|   						new->label = $1;
# 1323|-> 						new->cond = $3;
# 1324|   						new->body = $4.stmts;
# 1325|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def702]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1324:81: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.loop_body.stmts’
# 1322|   						new->label = $1;
# 1323|   						new->cond = $3;
# 1324|-> 						new->body = $4.stmts;
# 1325|   
# 1326|   						check_labels($1, $4.end_label, $4.end_label_location);

Error: GCC_ANALYZER_WARNING (CWE-127): [#def703]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1336:63: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1336:63: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1334|   					{
# 1335|   						/* This runs after we've scanned the loop body */
# 1336|-> 						if ($3->cmd_type == PLPGSQL_STMT_FORI)
# 1337|   						{
# 1338|   							PLpgSQL_stmt_fori *new;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def704]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1341:71: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1341:71: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1339|   
# 1340|   							new = (PLpgSQL_stmt_fori *) $3;
# 1341|-> 							new->lineno = plpgsql_location_to_lineno(@2);
# 1342|   							new->label = $1;
# 1343|   							new->body = $4.stmts;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def705]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1342:80: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1342:80: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1340|   							new = (PLpgSQL_stmt_fori *) $3;
# 1341|   							new->lineno = plpgsql_location_to_lineno(@2);
# 1342|-> 							new->label = $1;
# 1343|   							new->body = $4.stmts;
# 1344|   							$$ = (PLpgSQL_stmt *) new;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def706]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1343:89: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.loop_body.stmts’
# 1341|   							new->lineno = plpgsql_location_to_lineno(@2);
# 1342|   							new->label = $1;
# 1343|-> 							new->body = $4.stmts;
# 1344|   							$$ = (PLpgSQL_stmt *) new;
# 1345|   						}

Error: GCC_ANALYZER_WARNING (CWE-127): [#def707]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1355:71: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1355:71: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1353|   							/* forq is the common supertype of all three */
# 1354|   							new = (PLpgSQL_stmt_forq *) $3;
# 1355|-> 							new->lineno = plpgsql_location_to_lineno(@2);
# 1356|   							new->label = $1;
# 1357|   							new->body = $4.stmts;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def708]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1356:80: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1356:80: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1354|   							new = (PLpgSQL_stmt_forq *) $3;
# 1355|   							new->lineno = plpgsql_location_to_lineno(@2);
# 1356|-> 							new->label = $1;
# 1357|   							new->body = $4.stmts;
# 1358|   							$$ = (PLpgSQL_stmt *) new;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def709]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1357:89: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.loop_body.stmts’
# 1355|   							new->lineno = plpgsql_location_to_lineno(@2);
# 1356|   							new->label = $1;
# 1357|-> 							new->body = $4.stmts;
# 1358|   							$$ = (PLpgSQL_stmt *) new;
# 1359|   						}

Error: GCC_ANALYZER_WARNING (CWE-127): [#def710]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1386:84: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:1768:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1386:84: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1384|   							new->cmd_type = PLPGSQL_STMT_DYNFORS;
# 1385|   							new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1386|-> 							if ($1.row)
# 1387|   							{
# 1388|   								new->var = (PLpgSQL_variable *) $1.row;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def711]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1389:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:1768:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1389:65: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1387|   							{
# 1388|   								new->var = (PLpgSQL_variable *) $1.row;
# 1389|-> 								check_assignable($1.row, @1);
# 1390|   							}
# 1391|   							else if ($1.scalar)

Error: GCC_ANALYZER_WARNING (CWE-127): [#def712]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1391:89: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:1768:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1391:89: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1389|   								check_assignable($1.row, @1);
# 1390|   							}
# 1391|-> 							else if ($1.scalar)
# 1392|   							{
# 1393|   								/* convert single scalar to list */

Error: GCC_ANALYZER_WARNING (CWE-127): [#def713]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1395:73: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:1768:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1395:73: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1393|   								/* convert single scalar to list */
# 1394|   								new->var = (PLpgSQL_variable *)
# 1395|-> 									make_scalar_list1($1.name, $1.scalar,
# 1396|   													  $1.lineno, @1);
# 1397|   								/* make_scalar_list1 did check_assignable */

Error: GCC_ANALYZER_WARNING (CWE-127): [#def714]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1435:84: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1435:84: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1433|   
# 1434|   							/* Should have had a single variable name */
# 1435|-> 							if ($1.scalar && $1.row)
# 1436|   								ereport(ERROR,
# 1437|   										(errcode(ERRCODE_SYNTAX_ERROR),

Error: GCC_ANALYZER_WARNING (CWE-127): [#def715]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1435:118: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1435:118: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1433|   
# 1434|   							/* Should have had a single variable name */
# 1435|-> 							if ($1.scalar && $1.row)
# 1436|   								ereport(ERROR,
# 1437|   										(errcode(ERRCODE_SYNTAX_ERROR),

Error: GCC_ANALYZER_WARNING (CWE-127): [#def716]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1454:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:1768:1: note: in expansion of macro ‘yyparse’
/usr/include/dirent.h:247: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/storage/fd.h:46: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/sharedtuplestore.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/nodes/execnodes.h:30: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/commands/trigger.h:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/plpgsql.h:21: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:27: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1454:65: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1452|   							/* create loop's private RECORD variable */
# 1453|   							new->var = (PLpgSQL_variable *)
# 1454|-> 								plpgsql_build_record($1.name,
# 1455|   													 $1.lineno,
# 1456|   													 NULL,

Error: GCC_ANALYZER_WARNING (CWE-127): [#def717]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1454:109: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:1768:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1454:109: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1452|   							/* create loop's private RECORD variable */
# 1453|   							new->var = (PLpgSQL_variable *)
# 1454|-> 								plpgsql_build_record($1.name,
# 1455|   													 $1.lineno,
# 1456|   													 NULL,

Error: GCC_ANALYZER_WARNING (CWE-127): [#def718]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1532:92: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:1768:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1532:92: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1530|   
# 1531|   								/* Should have had a single variable name */
# 1532|-> 								if ($1.scalar && $1.row)
# 1533|   									ereport(ERROR,
# 1534|   											(errcode(ERRCODE_SYNTAX_ERROR),

Error: GCC_ANALYZER_WARNING (CWE-127): [#def719]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1532:126: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:1768:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1532:126: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1530|   
# 1531|   								/* Should have had a single variable name */
# 1532|-> 								if ($1.scalar && $1.row)
# 1533|   									ereport(ERROR,
# 1534|   											(errcode(ERRCODE_SYNTAX_ERROR),

Error: GCC_ANALYZER_WARNING (CWE-127): [#def720]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1540:73: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:1768:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1540:73: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1538|   								/* create loop's private variable */
# 1539|   								fvar = (PLpgSQL_var *)
# 1540|-> 									plpgsql_build_variable($1.name,
# 1541|   														   $1.lineno,
# 1542|   														   plpgsql_build_datatype(INT4OID,

Error: GCC_ANALYZER_WARNING (CWE-127): [#def721]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1540:119: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:1768:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1540:119: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1538|   								/* create loop's private variable */
# 1539|   								fvar = (PLpgSQL_var *)
# 1540|-> 									plpgsql_build_variable($1.name,
# 1541|   														   $1.lineno,
# 1542|   														   plpgsql_build_datatype(INT4OID,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def722]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1655:91: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.word.ident’
# 1653|   						int			tok;
# 1654|   
# 1655|-> 						$$.name = $1.ident;
# 1656|   						$$.lineno = plpgsql_location_to_lineno(@1);
# 1657|   						$$.scalar = NULL;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def723]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1678:63: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1678:63: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1676|   						new = palloc0(sizeof(PLpgSQL_stmt_foreach_a));
# 1677|   						new->cmd_type = PLPGSQL_STMT_FOREACH_A;
# 1678|-> 						new->lineno = plpgsql_location_to_lineno(@2);
# 1679|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1680|   						new->label = $1;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def724]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1680:72: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1680:72: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1678|   						new->lineno = plpgsql_location_to_lineno(@2);
# 1679|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1680|-> 						new->label = $1;
# 1681|   						new->slice = $4;
# 1682|   						new->expr = $7;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def725]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1681:72: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1681:72: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1679|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1680|   						new->label = $1;
# 1681|-> 						new->slice = $4;
# 1682|   						new->expr = $7;
# 1683|   						new->body = $8.stmts;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def726]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1682:71: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1682:71: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1680|   						new->label = $1;
# 1681|   						new->slice = $4;
# 1682|-> 						new->expr = $7;
# 1683|   						new->body = $8.stmts;
# 1684|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def727]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1683:81: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.loop_body.stmts’
# 1681|   						new->slice = $4;
# 1682|   						new->expr = $7;
# 1683|-> 						new->body = $8.stmts;
# 1684|   
# 1685|   						if ($3.row)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def728]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1716:73: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.ival’
# 1714|   				| K_SLICE ICONST
# 1715|   					{
# 1716|-> 						$$ = $2;
# 1717|   					}
# 1718|   				;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def729]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1727:74: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1727:74: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1725|   						new->cmd_type = PLPGSQL_STMT_EXIT;
# 1726|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1727|-> 						new->is_exit = $1;
# 1728|   						new->lineno	= plpgsql_location_to_lineno(@1);
# 1729|   						new->label = $2;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def730]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1728:67: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1728:67: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1726|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1727|   						new->is_exit = $1;
# 1728|-> 						new->lineno	= plpgsql_location_to_lineno(@1);
# 1729|   						new->label = $2;
# 1730|   						new->cond = $3;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def731]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1729:72: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1729:72: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1727|   						new->is_exit = $1;
# 1728|   						new->lineno	= plpgsql_location_to_lineno(@1);
# 1729|-> 						new->label = $2;
# 1730|   						new->cond = $3;
# 1731|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def732]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:1730:70: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.expr’
# 1728|   						new->lineno	= plpgsql_location_to_lineno(@1);
# 1729|   						new->label = $2;
# 1730|-> 						new->cond = $3;
# 1731|   
# 1732|   						if ($2)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def733]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y: scope_hint: In function ‘word_is_not_variable’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:2626:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*word.ident’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:2624:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:1768:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:158:9: note: in expansion of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:2624:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:2624:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:2624:9: note: in expansion of macro ‘ereport’
# 2624|   	ereport(ERROR,
# 2625|   			(errcode(ERRCODE_SYNTAX_ERROR),
# 2626|-> 			 errmsg("\"%s\" is not a known variable",
# 2627|   					word->ident),
# 2628|   			 parser_errposition(location)));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def734]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y: scope_hint: In function ‘cword_is_not_variable’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:2637:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*cword.idents’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:2635:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c:1768:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:158:9: note: in expansion of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:2635:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:2635:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/include/utils/elog.h:141:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:2635:9: note: in expansion of macro ‘ereport’
# 2635|   	ereport(ERROR,
# 2636|   			(errcode(ERRCODE_SYNTAX_ERROR),
# 2637|-> 			 errmsg("\"%s\" is not a known variable",
# 2638|   					NameListToString(cword->idents)),
# 2639|   			 parser_errposition(location)));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def735]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.y:3480:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(PLwdatum *)yyvsp.ident’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/plpgsql/src/pl_gram.c: scope_hint: In function ‘plpgsql_yyparse’
# 3478|   NameOfDatum(PLwdatum *wdatum)
# 3479|   {
# 3480|-> 	if (wdatum->ident)
# 3481|   		return wdatum->ident;
# 3482|   	Assert(wdatum->idents != NIL);

Error: CPPCHECK_WARNING (CWE-476): [#def736]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/pl/tcl/pltcl.c:3197: warning[nullPointer]: Possible null pointer dereference: tupdesc
# 3195|   	}
# 3196|   
# 3197|-> 	values = (char **) palloc0(tupdesc->natts * sizeof(char *));
# 3198|   
# 3199|   	if (kvObjc % 2 != 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def737]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specparse.y:280: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c:1436:46: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c:1438:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c:1438:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c: scope_hint: In function ‘yy_get_next_buffer’
# 1434|   					b->yy_buf_size *= 2;
# 1435|   
# 1436|-> 				b->yy_ch_buf = (char *)
# 1437|   					/* Include room in for 2 EOB chars. */
# 1438|   					yyrealloc( (void *) b->yy_ch_buf,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def738]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c: scope_hint: In function ‘spec_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c:1721:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c:1707:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c:1711:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c: scope_hint: In function ‘spec_yy_create_buffer’
# 1719|   	 */
# 1720|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1721|-> 	if ( ! b->yy_ch_buf )
# 1722|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 1723|   

Error: CPPCHECK_WARNING (CWE-476): [#def739]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c:1761: warning[nullPointer]: Possible null pointer dereference: b
# 1759|   	yy_flush_buffer( b );
# 1760|   
# 1761|-> 	b->yy_input_file = file;
# 1762|   	b->yy_fill_buffer = 1;
# 1763|   

Error: CPPCHECK_WARNING (CWE-476): [#def740]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c:1762: warning[nullPointer]: Possible null pointer dereference: b
# 1760|   
# 1761|   	b->yy_input_file = file;
# 1762|-> 	b->yy_fill_buffer = 1;
# 1763|   
# 1764|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: GCC_ANALYZER_WARNING (CWE-401): [#def741]
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c: scope_hint: In function ‘spec_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c:1975:45: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c:1959:17: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c:1968:24: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c: scope_hint: In function ‘spec_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c:1977:13: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/postgresql-15.7/src/test/isolation/specscanner.c:1909:17: note: in expansion of macro ‘yy_scan_buffer’
# 1973|   		buf[i] = yybytes[i];
# 1974|   
# 1975|-> 	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1976|   
# 1977|   	b = yy_scan_buffer( buf, n );

Error: GCC_ANALYZER_WARNING (CWE-688): [#def742]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/brin/brin_minmax_multi.c: scope_hint: In function ‘brin_range_deserialize’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/brin/brin_minmax_multi.c:815:25: warning[-Wanalyzer-null-argument]: use of NULL ‘dataptr’ where non-null expected
postgresql16-16.3-build/postgresql-16.3/src/backend/access/brin/brin_minmax_multi.c: scope_hint: In function ‘brin_range_deserialize’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  813|   			range->values[i] = PointerGetDatum(dataptr);
#  814|   
#  815|-> 			memcpy(dataptr, ptr, typlen);
#  816|   			dataptr += MAXALIGN(typlen);
#  817|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def743]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/brin/brin_minmax_multi.c:824:25: warning[-Wanalyzer-null-argument]: use of NULL ‘dataptr’ where non-null expected
postgresql16-16.3-build/postgresql-16.3/src/backend/access/brin/brin_minmax_multi.c: scope_hint: In function ‘brin_range_deserialize’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  822|   			range->values[i] = PointerGetDatum(dataptr);
#  823|   
#  824|-> 			memcpy(dataptr, ptr, VARSIZE_ANY(ptr));
#  825|   			dataptr += MAXALIGN(VARSIZE_ANY(ptr));
#  826|   			ptr += VARSIZE_ANY(ptr);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def744]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/brin/brin_minmax_multi.c:834:25: warning[-Wanalyzer-null-argument]: use of NULL ‘dataptr’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  832|   			range->values[i] = PointerGetDatum(dataptr);
#  833|   
#  834|-> 			memcpy(dataptr, ptr, slen);
#  835|   			dataptr += MAXALIGN(slen);
#  836|   			ptr += slen;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def745]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/brin/brin_minmax_multi.c: scope_hint: In function ‘reduce_expanded_ranges’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/brin/brin_minmax_multi.c:1519:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘distances’
# 1517|   	{
# 1518|   		/* index of the gap between (index) and (index+1) ranges */
# 1519|-> 		int			index = distances[i].index;
# 1520|   
# 1521|   		Assert((index >= 0) && ((index + 1) < neranges));

Error: CPPCHECK_WARNING (CWE-476): [#def746]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/common/heaptuple.c:971: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
#  969|   		len += targetDataLen;
#  970|   
#  971|-> 		*targetMinimalTuple = (MinimalTuple) palloc0(len);
#  972|   		(*targetMinimalTuple)->t_len = len;
#  973|   		(*targetMinimalTuple)->t_hoff = hoff + MINIMAL_TUPLE_OFFSET;

Error: CPPCHECK_WARNING (CWE-476): [#def747]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/common/heaptuple.c:972: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
#  970|   
#  971|   		*targetMinimalTuple = (MinimalTuple) palloc0(len);
#  972|-> 		(*targetMinimalTuple)->t_len = len;
#  973|   		(*targetMinimalTuple)->t_hoff = hoff + MINIMAL_TUPLE_OFFSET;
#  974|   		(*targetMinimalTuple)->t_infomask = sourceTHeader->t_infomask;

Error: CPPCHECK_WARNING (CWE-476): [#def748]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/common/heaptuple.c:973: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
#  971|   		*targetMinimalTuple = (MinimalTuple) palloc0(len);
#  972|   		(*targetMinimalTuple)->t_len = len;
#  973|-> 		(*targetMinimalTuple)->t_hoff = hoff + MINIMAL_TUPLE_OFFSET;
#  974|   		(*targetMinimalTuple)->t_infomask = sourceTHeader->t_infomask;
#  975|   		/* Same macro works for MinimalTuples */

Error: CPPCHECK_WARNING (CWE-476): [#def749]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/common/heaptuple.c:974: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
#  972|   		(*targetMinimalTuple)->t_len = len;
#  973|   		(*targetMinimalTuple)->t_hoff = hoff + MINIMAL_TUPLE_OFFSET;
#  974|-> 		(*targetMinimalTuple)->t_infomask = sourceTHeader->t_infomask;
#  975|   		/* Same macro works for MinimalTuples */
#  976|   		HeapTupleHeaderSetNatts(*targetMinimalTuple, natts);

Error: CPPCHECK_WARNING (CWE-476): [#def750]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/common/heaptuple.c:976: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
#  974|   		(*targetMinimalTuple)->t_infomask = sourceTHeader->t_infomask;
#  975|   		/* Same macro works for MinimalTuples */
#  976|-> 		HeapTupleHeaderSetNatts(*targetMinimalTuple, natts);
#  977|   		if (targetNullLen > 0)
#  978|   			nullBits = (bits8 *) ((char *) *targetMinimalTuple

Error: CPPCHECK_WARNING (CWE-476): [#def751]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/common/heaptuple.c:980: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
#  978|   			nullBits = (bits8 *) ((char *) *targetMinimalTuple
#  979|   								  + offsetof(MinimalTupleData, t_bits));
#  980|-> 		targetData = (char *) *targetMinimalTuple + hoff;
#  981|   		infoMask = &((*targetMinimalTuple)->t_infomask);
#  982|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def752]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/common/heaptuple.c:981: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
#  979|   								  + offsetof(MinimalTupleData, t_bits));
#  980|   		targetData = (char *) *targetMinimalTuple + hoff;
#  981|-> 		infoMask = &((*targetMinimalTuple)->t_infomask);
#  982|   	}
#  983|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def753]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/gin/ginbtree.c: scope_hint: In function ‘ginPlaceToPage’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/gin/ginbtree.c:579:25: warning[-Wanalyzer-null-argument]: use of NULL ‘newrootpg’ where non-null expected
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  577|   			/* Splitting the root, three pages to update */
#  578|   			MarkBufferDirty(lbuffer);
#  579|-> 			memcpy(page, newrootpg, BLCKSZ);
#  580|   			memcpy(BufferGetPage(lbuffer), newlpage, BLCKSZ);
#  581|   			memcpy(BufferGetPage(rbuffer), newrpage, BLCKSZ);

Error: CPPCHECK_WARNING (CWE-457): [#def754]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/gin/ginentrypage.c:628: error[legacyUninitvar]: Uninitialized variable: tupstore
#  626|   	 */
#  627|   	maxoff = PageGetMaxOffsetNumber(lpage);
#  628|-> 	ptr = tupstore[0].data;
#  629|   	for (i = FirstOffsetNumber; i <= maxoff; i++)
#  630|   	{

Error: GCC_ANALYZER_WARNING (CWE-688): [#def755]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/gin/ginxlog.c: scope_hint: In function ‘ginRedoRecompress’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/gin/ginxlog.c:284:33: warning[-Wanalyzer-null-argument]: use of NULL ‘newseg’ where non-null expected
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  282|   				/* copy the new segment in place */
#  283|   				Assert(writePtr + newsegsize <= PageGetSpecialPointer(page));
#  284|-> 				memcpy(writePtr, newseg, newsegsize);
#  285|   				writePtr += newsegsize;
#  286|   				break;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def756]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/gin/ginxlog.c:291:33: warning[-Wanalyzer-null-argument]: use of NULL ‘newseg’ where non-null expected
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  289|   				/* copy the new version of segment in place */
#  290|   				Assert(writePtr + newsegsize <= PageGetSpecialPointer(page));
#  291|-> 				memcpy(writePtr, newseg, newsegsize);
#  292|   				writePtr += newsegsize;
#  293|   				segptr += segsize;

Error: CPPCHECK_WARNING (CWE-457): [#def757]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/gist/gistutil.c:207: error[uninitvar]: Uninitialized variable: &attrsize
#  205|   										giststate->supportCollation[i],
#  206|   										PointerGetDatum(evec),
#  207|-> 										PointerGetDatum(&attrsize));
#  208|   
#  209|   			isnull[i] = false;

Error: CPPCHECK_WARNING (CWE-457): [#def758]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/gist/gistutil.c:276: error[uninitvar]: Uninitialized variable: &dstsize
#  274|   								 giststate->supportCollation[attno],
#  275|   								 PointerGetDatum(evec),
#  276|-> 								 PointerGetDatum(&dstsize));
#  277|   	}
#  278|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def759]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/hash/hashpage.c: scope_hint: In function ‘_hash_getcachedmetap’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/hash/hashpage.c:1531:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1529|   		if (rel->rd_amcache == NULL)
# 1530|   			rel->rd_amcache = cache;
# 1531|-> 		memcpy(rel->rd_amcache, HashPageGetMeta(page),
# 1532|   			   sizeof(HashMetaPageData));
# 1533|   

Error: CPPCHECK_WARNING (CWE-457): [#def760]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/heap/heapam.c:5490: error[legacyUninitvar]: Uninitialized variable: status
# 5488|   				}
# 5489|   
# 5490|-> 				result = test_lockmode_for_conflict(status, rawxmax, mode,
# 5491|   													&mytup, &needwait);
# 5492|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def761]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/heap/heapam.c: scope_hint: In function ‘heap_xlog_update’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/heap/heapam.c:9699:76: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘<unknown>’
# 9697|   
# 9698|   			/* copy prefix from old tuple */
# 9699|-> 			memcpy(newp, (char *) oldtup.t_data + oldtup.t_data->t_hoff, prefixlen);
# 9700|   			newp += prefixlen;
# 9701|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def762]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/heap/vacuumlazy.c: scope_hint: In function ‘lazy_scan_prune’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/heap/vacuumlazy.c:1903:69: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘deadoffsets[i]’
# 1901|   		for (int i = 0; i < lpdead_items; i++)
# 1902|   		{
# 1903|-> 			ItemPointerSetOffsetNumber(&tmp, deadoffsets[i]);
# 1904|   			dead_items->items[dead_items->num_items++] = tmp;
# 1905|   		}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def763]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtsplitloc.c: scope_hint: In function ‘_bt_split_lastleft’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtsplitloc.c:1168:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘split’
# 1166|   	ItemId		itemid;
# 1167|   
# 1168|-> 	if (split->newitemonleft && split->firstrightoff == state->newitemoff)
# 1169|   		return state->newitem;
# 1170|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def764]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtsplitloc.c: scope_hint: In function ‘_bt_split_firstright’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtsplitloc.c:1184:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘split’
# 1182|   	ItemId		itemid;
# 1183|   
# 1184|-> 	if (!split->newitemonleft && split->firstrightoff == state->newitemoff)
# 1185|   		return state->newitem;
# 1186|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def765]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/spgist/spgscan.c: scope_hint: In function ‘spgAllocSearchItem’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/spgist/spgscan.c:123:17: warning[-Wanalyzer-null-argument]: use of NULL ‘distances’ where non-null expected
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/tidbitmap.h:25: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/genam.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/access/spgist/spgscan.c:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/access/spgist/spgscan.c: scope_hint: In function ‘spgAllocSearchItem’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/spgist/spgscan.c:20: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/access/spgist/spgscan.c: scope_hint: In function ‘spgAllocSearchItem’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/spgist/spgscan.c:874:37: note: in expansion of macro ‘SpGistBlockIsRoot’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  121|   
#  122|   	if (!isnull && so->numberOfNonNullOrderBys > 0)
#  123|-> 		memcpy(item->distances, distances,
#  124|   			   sizeof(item->distances[0]) * so->numberOfNonNullOrderBys);
#  125|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def766]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/spgist/spgutils.c:782:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/spgist/spgutils.c: scope_hint: In function ‘spgFormInnerTuple’
#  780|   	if (att->attbyval)
#  781|   	{
#  782|-> 		memcpy(target, &datum, sizeof(Datum));
#  783|   	}
#  784|   	else

Error: GCC_ANALYZER_WARNING (CWE-688): [#def767]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/spgist/spgutils.c: scope_hint: In function ‘memcpyInnerDatum.part.0’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/spgist/spgutils.c:787:17: warning[-Wanalyzer-null-argument]: use of NULL ‘target’ where non-null expected
postgresql16-16.3-build/postgresql-16.3/src/backend/access/spgist/spgutils.c: scope_hint: In function ‘memcpyInnerDatum.part.0’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  785|   	{
#  786|   		size = (att->attlen > 0) ? att->attlen : VARSIZE_ANY(datum);
#  787|-> 		memcpy(target, DatumGetPointer(datum), size);
#  788|   	}
#  789|   }

Error: CPPCHECK_WARNING (CWE-476): [#def768]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/transam/twophase.c:1031: error[ctunullpointer]: Null pointer dereference: data
# 1029|   	}
# 1030|   
# 1031|-> 	memcpy(((char *) records.tail->data) + records.tail->len, data, len);
# 1032|   	records.tail->len += padlen;
# 1033|   	records.bytes_free -= padlen;

Error: CPPCHECK_WARNING (CWE-682): [#def769]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/transam/xlog.c:1555: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
# 1553|   		Assert(((XLogPageHeader) cachedPos)->xlp_magic == XLOG_PAGE_MAGIC);
# 1554|   		Assert(((XLogPageHeader) cachedPos)->xlp_pageaddr == ptr - (ptr % XLOG_BLCKSZ));
# 1555|-> 		return cachedPos + ptr % XLOG_BLCKSZ;
# 1556|   	}
# 1557|   

Error: GCC_ANALYZER_WARNING (CWE-131): [#def770]
postgresql16-16.3-build/postgresql-16.3/src/backend/access/transam/xloginsert.c: scope_hint: In function ‘XLogResetInsertion’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/transam/xloginsert.c:233:24: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/probes.h:10: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/pg_trace.h:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/access/transam/xloginsert.c:38: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/access/transam/xloginsert.c:478:9: note: in expansion of macro ‘TRACE_POSTGRESQL_WAL_INSERT’
#  231|   	max_registered_block_id = 0;
#  232|   	mainrdata_len = 0;
#  233|-> 	mainrdata_last = (XLogRecData *) &mainrdata_head;
#  234|   	curinsert_flags = 0;
#  235|   	begininsert_called = false;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def771]
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootparse.c: scope_hint: In function ‘boot_yyparse’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootparse.c:541:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootparse.c:526:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootparse.c:1152:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootparse.c:526:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootparse.c:1152:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootparse.c:526:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootparse.c:1152:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  539|   #  if defined __GNUC__ && 1 < __GNUC__
#  540|   #   define YYCOPY(Dst, Src, Count) \
#  541|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  542|   #  else
#  543|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def772]
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c:1492:46: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c:1494:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c:1494:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c: scope_hint: In function ‘yy_get_next_buffer’
# 1490|   					b->yy_buf_size *= 2;
# 1491|   
# 1492|-> 				b->yy_ch_buf = (char *)
# 1493|   					/* Include room in for 2 EOB chars. */
# 1494|   					yyrealloc( (void *) b->yy_ch_buf,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def773]
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c: scope_hint: In function ‘boot_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c:1780:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c:1766:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c:1770:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c: scope_hint: In function ‘boot_yy_create_buffer’
# 1778|   	 */
# 1779|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1780|-> 	if ( ! b->yy_ch_buf )
# 1781|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 1782|   

Error: CPPCHECK_WARNING (CWE-476): [#def774]
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c:1820: warning[nullPointer]: Possible null pointer dereference: b
# 1818|   	yy_flush_buffer( b );
# 1819|   
# 1820|-> 	b->yy_input_file = file;
# 1821|   	b->yy_fill_buffer = 1;
# 1822|   

Error: CPPCHECK_WARNING (CWE-476): [#def775]
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c:1821: warning[nullPointer]: Possible null pointer dereference: b
# 1819|   
# 1820|   	b->yy_input_file = file;
# 1821|-> 	b->yy_fill_buffer = 1;
# 1822|   
# 1823|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: GCC_ANALYZER_WARNING (CWE-401): [#def776]
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c: scope_hint: In function ‘boot_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c:2034:45: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c:2018:17: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c:2027:24: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c: scope_hint: In function ‘boot_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c:2036:13: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/bootstrap/bootscanner.c:1968:17: note: in expansion of macro ‘yy_scan_buffer’
# 2032|   		buf[i] = yybytes[i];
# 2033|   
# 2034|-> 	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 2035|   
# 2036|   	b = yy_scan_buffer( buf, n );

Error: CPPCHECK_WARNING (CWE-768): [#def777]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/objectaddress.c:2356: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(typename)},((union ListCell){.ptr_value=(list_nth_cell(args,0)->ptr_value)})' depends on order of evaluation of side effects
# 2354|   		case OBJECT_DOMCONSTRAINT:
# 2355|   		case OBJECT_TRANSFORM:
# 2356|-> 			objnode = (Node *) list_make2(typename, linitial(args));
# 2357|   			break;
# 2358|   		case OBJECT_PUBLICATION_REL:

Error: CPPCHECK_WARNING (CWE-768): [#def778]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/objectaddress.c:2359: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(name)},((union ListCell){.ptr_value=(list_nth_cell(args,0)->ptr_value)})' depends on order of evaluation of side effects
# 2357|   			break;
# 2358|   		case OBJECT_PUBLICATION_REL:
# 2359|-> 			objnode = (Node *) list_make2(name, linitial(args));
# 2360|   			break;
# 2361|   		case OBJECT_PUBLICATION_NAMESPACE:

Error: CPPCHECK_WARNING (CWE-768): [#def779]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/objectaddress.c:2363: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(list_nth_cell(name,0)->ptr_value)}),((union ListCell){.ptr_value=(list_nth_cell(args,0)->ptr_value)})' depends on order of evaluation of side effects
# 2361|   		case OBJECT_PUBLICATION_NAMESPACE:
# 2362|   		case OBJECT_USER_MAPPING:
# 2363|-> 			objnode = (Node *) list_make2(linitial(name), linitial(args));
# 2364|   			break;
# 2365|   		case OBJECT_DEFACL:

Error: CPPCHECK_WARNING (CWE-768): [#def780]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/objectaddress.c:2370: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(name)},(union ListCell){.ptr_value=(args)}' depends on order of evaluation of side effects
# 2368|   		case OBJECT_AMOP:
# 2369|   		case OBJECT_AMPROC:
# 2370|-> 			objnode = (Node *) list_make2(name, args);
# 2371|   			break;
# 2372|   		case OBJECT_FUNCTION:

Error: CPPCHECK_WARNING (CWE-768): [#def781]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/objectaddress.c:4902: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(schema)},(union ListCell){.ptr_value=(pstrdup(coll->collname.data))}' depends on order of evaluation of side effects
# 4900|   																  NameStr(coll->collname)));
# 4901|   				if (objname)
# 4902|-> 					*objname = list_make2(schema,
# 4903|   										  pstrdup(NameStr(coll->collname)));
# 4904|   				ReleaseSysCache(collTup);

Error: CPPCHECK_WARNING (CWE-768): [#def782]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/objectaddress.c:4976: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(schema)},(union ListCell){.ptr_value=(pstrdup(conForm->conname.data))}' depends on order of evaluation of side effects
# 4974|   																  NameStr(conForm->conname)));
# 4975|   				if (objname)
# 4976|-> 					*objname = list_make2(schema,
# 4977|   										  pstrdup(NameStr(conForm->conname)));
# 4978|   				ReleaseSysCache(conTup);

Error: CPPCHECK_WARNING (CWE-768): [#def783]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/objectaddress.c:5081: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(pstrdup(amForm->amname.data))},(union ListCell){.ptr_value=(schema)}' depends on order of evaluation of side effects
# 5079|   								 quote_identifier(NameStr(amForm->amname)));
# 5080|   				if (objname)
# 5081|-> 					*objname = list_make3(pstrdup(NameStr(amForm->amname)),
# 5082|   										  schema,
# 5083|   										  pstrdup(NameStr(opcForm->opcname)));

Error: CPPCHECK_WARNING (CWE-768): [#def784]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/objectaddress.c:5081: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(pstrdup(amForm->amname.data))},(union ListCell){.ptr_value=(schema)},(union ListCell){.ptr_value=(pstrdup(opcForm->opcname.data))}' depends on order of evaluation of side effects
# 5079|   								 quote_identifier(NameStr(amForm->amname)));
# 5080|   				if (objname)
# 5081|-> 					*objname = list_make3(pstrdup(NameStr(amForm->amname)),
# 5082|   										  schema,
# 5083|   										  pstrdup(NameStr(opcForm->opcname)));

Error: CPPCHECK_WARNING (CWE-768): [#def785]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/objectaddress.c:5161: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(ltype)},(union ListCell){.ptr_value=(rtype)}' depends on order of evaluation of side effects
# 5159|   					*objname = lappend(*objname,
# 5160|   									   psprintf("%d", amopForm->amopstrategy));
# 5161|-> 					*objargs = list_make2(ltype, rtype);
# 5162|   				}
# 5163|   

Error: CPPCHECK_WARNING (CWE-768): [#def786]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/objectaddress.c:5223: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(ltype)},(union ListCell){.ptr_value=(rtype)}' depends on order of evaluation of side effects
# 5221|   					*objname = lappend(*objname,
# 5222|   									   psprintf("%d", amprocForm->amprocnum));
# 5223|-> 					*objargs = list_make2(ltype, rtype);
# 5224|   				}
# 5225|   

Error: CPPCHECK_WARNING (CWE-768): [#def787]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/objectaddress.c:5343: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(schema)},(union ListCell){.ptr_value=(pstrdup(formStatistic->stxname.data))}' depends on order of evaluation of side effects
# 5341|   																  NameStr(formStatistic->stxname)));
# 5342|   				if (objname)
# 5343|-> 					*objname = list_make2(schema,
# 5344|   										  pstrdup(NameStr(formStatistic->stxname)));
# 5345|   				ReleaseSysCache(tup);

Error: CPPCHECK_WARNING (CWE-768): [#def788]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/objectaddress.c:5370: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(schema)},(union ListCell){.ptr_value=(pstrdup(formParser->prsname.data))}' depends on order of evaluation of side effects
# 5368|   																  NameStr(formParser->prsname)));
# 5369|   				if (objname)
# 5370|-> 					*objname = list_make2(schema,
# 5371|   										  pstrdup(NameStr(formParser->prsname)));
# 5372|   				ReleaseSysCache(tup);

Error: CPPCHECK_WARNING (CWE-768): [#def789]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/objectaddress.c:5397: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(schema)},(union ListCell){.ptr_value=(pstrdup(formDict->dictname.data))}' depends on order of evaluation of side effects
# 5395|   																  NameStr(formDict->dictname)));
# 5396|   				if (objname)
# 5397|-> 					*objname = list_make2(schema,
# 5398|   										  pstrdup(NameStr(formDict->dictname)));
# 5399|   				ReleaseSysCache(tup);

Error: CPPCHECK_WARNING (CWE-768): [#def790]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/objectaddress.c:5424: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(schema)},(union ListCell){.ptr_value=(pstrdup(formTmpl->tmplname.data))}' depends on order of evaluation of side effects
# 5422|   																  NameStr(formTmpl->tmplname)));
# 5423|   				if (objname)
# 5424|-> 					*objname = list_make2(schema,
# 5425|   										  pstrdup(NameStr(formTmpl->tmplname)));
# 5426|   				ReleaseSysCache(tup);

Error: CPPCHECK_WARNING (CWE-768): [#def791]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/objectaddress.c:5451: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(schema)},(union ListCell){.ptr_value=(pstrdup(formCfg->cfgname.data))}' depends on order of evaluation of side effects
# 5449|   																  NameStr(formCfg->cfgname)));
# 5450|   				if (objname)
# 5451|-> 					*objname = list_make2(schema,
# 5452|   										  pstrdup(NameStr(formCfg->cfgname)));
# 5453|   				ReleaseSysCache(tup);

Error: CPPCHECK_WARNING (CWE-768): [#def792]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/objectaddress.c:5998: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(pstrdup(amForm->amname.data))},(union ListCell){.ptr_value=(pstrdup(schema))}' depends on order of evaluation of side effects
# 5996|   
# 5997|   	if (object)
# 5998|-> 		*object = list_make3(pstrdup(NameStr(amForm->amname)),
# 5999|   							 pstrdup(schema),
# 6000|   							 pstrdup(NameStr(opfForm->opfname)));

Error: CPPCHECK_WARNING (CWE-768): [#def793]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/objectaddress.c:5998: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(pstrdup(amForm->amname.data))},(union ListCell){.ptr_value=(pstrdup(schema))},(union ListCell){.ptr_value=(pstrdup(opfForm->opfname.data))}' depends on order of evaluation of side effects
# 5996|   
# 5997|   	if (object)
# 5998|-> 		*object = list_make3(pstrdup(NameStr(amForm->amname)),
# 5999|   							 pstrdup(schema),
# 6000|   							 pstrdup(NameStr(opfForm->opfname)));

Error: CPPCHECK_WARNING (CWE-768): [#def794]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/objectaddress.c:6036: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(schema)},(union ListCell){.ptr_value=(pstrdup(relForm->relname.data))}' depends on order of evaluation of side effects
# 6034|   													  NameStr(relForm->relname)));
# 6035|   	if (object)
# 6036|-> 		*object = list_make2(schema, pstrdup(NameStr(relForm->relname)));
# 6037|   
# 6038|   	ReleaseSysCache(relTup);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def795]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/partition.c: scope_hint: In function ‘has_partition_attrs’
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/partition.c:287:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘partexprs_item’
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/partition.c: scope_hint: In function ‘has_partition_attrs’
#  285|   		{
#  286|   			/* Arbitrary expression */
#  287|-> 			Node	   *expr = (Node *) lfirst(partexprs_item);
#  288|   			Bitmapset  *expr_attrs = NULL;
#  289|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def796]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/pg_proc.c: scope_hint: In function ‘ProcedureCreate’
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/pg_proc.c:536:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘newlc’
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/pg_proc.c:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/pg_proc.c:368:55: note: in expansion of macro ‘GETSTRUCT’
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/pg_proc.c: scope_hint: In function ‘ProcedureCreate’
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/pg_proc.c:533:25: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/pg_proc.c:533:25: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/pg_proc.c: scope_hint: In function ‘ProcedureCreate’
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/pg_proc.c:533:25: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/pg_proc.c:533:25: note: in expansion of macro ‘foreach’
#  534|   			{
#  535|   				Node	   *oldDef = (Node *) lfirst(oldlc);
#  536|-> 				Node	   *newDef = (Node *) lfirst(newlc);
#  537|   
#  538|   				if (exprType(oldDef) != exprType(newDef))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def797]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/pg_publication.c: scope_hint: In function ‘pg_get_publication_tables’
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/pg_publication.c:1103:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/pg_publication.c:37: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/pg_publication.c:1075:27: note: in expansion of macro ‘SRF_FIRSTCALL_INIT’
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/pg_publication.c:40: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/utils/builtins.h:95:73: note: in definition of macro ‘TextDatumGetCString’
# 1101|   			 * those. Otherwise, get the partitioned table itself.
# 1102|   			 */
# 1103|-> 			if (pub_elem->alltables)
# 1104|   				pub_elem_tables = GetAllTablesPublicationRelations(pub_elem->pubviaroot);
# 1105|   			else

Error: CPPCHECK_WARNING (CWE-768): [#def798]
postgresql16-16.3-build/postgresql-16.3/src/backend/catalog/toasting.c:327: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=("chunk_id")},(union ListCell){.ptr_value=("chunk_seq")}' depends on order of evaluation of side effects
#  325|   				 InvalidOid, InvalidOid,
#  326|   				 indexInfo,
#  327|-> 				 list_make2("chunk_id", "chunk_seq"),
#  328|   				 BTREE_AM_OID,
#  329|   				 rel->rd_rel->reltablespace,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def799]
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/analyze.c: scope_hint: In function ‘do_analyze_rel’
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/analyze.c:610:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘thisdata’
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/analyze.c: scope_hint: In function ‘do_analyze_rel’
#  608|   			AnlIndexData *thisdata = &indexdata[ind];
#  609|   
#  610|-> 			update_attstats(RelationGetRelid(Irel[ind]), false,
#  611|   							thisdata->attr_cnt, thisdata->vacattrstats);
#  612|   		}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def800]
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/analyze.c:656:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘thisdata’
#  654|   			double		totalindexrows;
#  655|   
#  656|-> 			totalindexrows = ceil(thisdata->tupleFract * totalrows);
#  657|   			vac_update_relstats(Irel[ind],
#  658|   								RelationGetNumberOfBlocks(Irel[ind]),

Error: GCC_ANALYZER_WARNING (CWE-476): [#def801]
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/analyze.c: scope_hint: In function ‘compute_index_stats’
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/analyze.c:850:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘thisdata’
#  848|   	{
#  849|   		AnlIndexData *thisdata = &indexdata[ind];
#  850|-> 		IndexInfo  *indexInfo = thisdata->indexInfo;
#  851|   		int			attr_cnt = thisdata->attr_cnt;
#  852|   		TupleTableSlot *slot;

Error: CPPCHECK_WARNING (CWE-457): [#def802]
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/conversioncmds.c:117: error[uninitvar]: Uninitialized variable: result
#  115|   	 * perform the requested conversion.
#  116|   	 */
#  117|-> 	funcresult = OidFunctionCall6(funcoid,
#  118|   								  Int32GetDatum(from_encoding),
#  119|   								  Int32GetDatum(to_encoding),

Error: GCC_ANALYZER_WARNING (CWE-476): [#def803]
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/copy.c: scope_hint: In function ‘DoCopy’
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/copy.c:308:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rel’
postgresql16-16.3-build/postgresql-16.3/src/include/postgres.h:47: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/copy.c:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:152:28: note: in expansion of macro ‘palloc0fast’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:176:53: note: in expansion of macro ‘newNode’
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/copy.c:292:25: note: in expansion of macro ‘makeNode’
#  306|   
#  307|   		/* check read-only transaction and parallel mode */
#  308|-> 		if (XactReadOnly && !rel->rd_islocaltemp)
#  309|   			PreventCommandIfReadOnly("COPY FROM");
#  310|   

Error: CPPCHECK_WARNING (CWE-476): [#def804]
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/extension.c:314: error[ctunullpointer]: Null pointer dereference: versionname
#  312|   check_valid_version_name(const char *versionname)
#  313|   {
#  314|-> 	int			namelen = strlen(versionname);
#  315|   
#  316|   	/*

Error: CPPCHECK_WARNING (CWE-476): [#def805]
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/extension.c:314: warning[nullPointer]: Possible null pointer dereference: versionname
#  312|   check_valid_version_name(const char *versionname)
#  313|   {
#  314|-> 	int			namelen = strlen(versionname);
#  315|   
#  316|   	/*

Error: CPPCHECK_WARNING (CWE-476): [#def806]
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/extension.c:3099: warning[nullPointer]: Possible null pointer dereference: versionName
# 3097|   	 * If we're already at that version, just say so
# 3098|   	 */
# 3099|-> 	if (strcmp(oldVersionName, versionName) == 0)
# 3100|   	{
# 3101|   		ereport(NOTICE,

Error: CPPCHECK_WARNING (CWE-457): [#def807]
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/policy.c:131: error[legacyUninitvar]: Uninitialized variable: polcmd
#  129|   		elog(ERROR, "unrecognized policy command");
#  130|   
#  131|-> 	return polcmd;
#  132|   }
#  133|   

Error: CPPCHECK_WARNING (CWE-786): [#def808]
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/tablecmds.c:4921: error[negativeIndex]: Array 'tab->subcmds[11]' accessed at index -1, which is out of bounds.
# 4919|   
# 4920|   	/* Add the subcommand to the appropriate list for phase 2 */
# 4921|-> 	tab->subcmds[pass] = lappend(tab->subcmds[pass], cmd);
# 4922|   }
# 4923|   

Error: CPPCHECK_WARNING (CWE-457): [#def809]
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/tablecmds.c:12089: error[legacyUninitvar]: Uninitialized variable: contype
#12087|   	 * the dependency mechanism, so we're done here.
#12088|   	 */
#12089|-> 	if (contype != CONSTRAINT_CHECK &&
#12090|   		rel->rd_rel->relkind == RELKIND_PARTITIONED_TABLE)
#12091|   	{

Error: CPPCHECK_WARNING (CWE-768): [#def810]
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/tablecmds.c:13661: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(get_namespace_name(rel->rd_rel->relnamespace)))},(union ListCell){.ptr_value=(makeString(pstrdup((rel->rd_rel->relname).data)))}' depends on order of evaluation of side effects
#13659|   		cmd->objtype = OBJECT_TABCONSTRAINT;
#13660|   		cmd->object = (Node *)
#13661|-> 			list_make3(makeString(get_namespace_name(RelationGetNamespace(rel))),
#13662|   					   makeString(pstrdup(RelationGetRelationName(rel))),
#13663|   					   makeString(pstrdup(conname)));

Error: CPPCHECK_WARNING (CWE-768): [#def811]
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/tablecmds.c:13661: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(get_namespace_name(rel->rd_rel->relnamespace)))},(union ListCell){.ptr_value=(makeString(pstrdup((rel->rd_rel->relname).data)))},(union ListCell){.ptr_value=(makeString(pstrdup(conname)))}' depends on order of evaluation of side effects
#13659|   		cmd->objtype = OBJECT_TABCONSTRAINT;
#13660|   		cmd->object = (Node *)
#13661|-> 			list_make3(makeString(get_namespace_name(RelationGetNamespace(rel))),
#13662|   					   makeString(pstrdup(RelationGetRelationName(rel))),
#13663|   					   makeString(pstrdup(conname)));

Error: CPPCHECK_WARNING (CWE-768): [#def812]
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/tablecmds.c:13669: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeTypeNameFromNameList((typeof(domname))copyObjectImpl(domname)))},(union ListCell){.ptr_value=(makeString(pstrdup(conname)))}' depends on order of evaluation of side effects
#13667|   		cmd->objtype = OBJECT_DOMCONSTRAINT;
#13668|   		cmd->object = (Node *)
#13669|-> 			list_make2(makeTypeNameFromNameList(copyObject(domname)),
#13670|   					   makeString(pstrdup(conname)));
#13671|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def813]
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/tsearchcmds.c: scope_hint: In function ‘buildDefItem’
postgresql16-16.3-build/postgresql-16.3/src/backend/commands/tsearchcmds.c:1837:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘val’
# 1835|   {
# 1836|   	/* If input was quoted, always emit as string */
# 1837|-> 	if (!was_quoted && val[0] != '\0')
# 1838|   	{
# 1839|   		int			v;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def814]
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/execExprInterp.c: scope_hint: In function ‘ExecEvalStepOp.part.0’
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/execExprInterp.c:2380:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/execExprInterp.c: scope_hint: In function ‘ExecEvalStepOp.part.0’
# 2378|   					  dispatch_compare_ptr);
# 2379|   		Assert(res);			/* unknown ops shouldn't get looked up */
# 2380|-> 		return res->op;
# 2381|   	}
# 2382|   #endif

Error: GCC_ANALYZER_WARNING (CWE-476): [#def815]
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/execJunk.c: scope_hint: In function ‘ExecInitJunkFilterConversion’
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/execJunk.c:176:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
#  174|   			for (;;)
#  175|   			{
#  176|-> 				TargetEntry *tle = lfirst(t);
#  177|   
#  178|   				t = lnext(targetList, t);

Error: CPPCHECK_WARNING (CWE-476): [#def816]
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/execProcnode.c:391: warning[nullPointer]: Possible null pointer dereference: result
#  389|   	}
#  390|   
#  391|-> 	ExecSetExecProcNode(result, result->ExecProcNode);
#  392|   
#  393|   	/*

Error: CPPCHECK_WARNING (CWE-476): [#def817]
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/execProcnode.c:407: warning[nullPointer]: Possible null pointer dereference: result
#  405|   		subps = lappend(subps, sstate);
#  406|   	}
#  407|-> 	result->initPlan = subps;
#  408|   
#  409|   	/* Set up instrumentation for this node if requested */

Error: CPPCHECK_WARNING (CWE-476): [#def818]
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/execProcnode.c:433: error[ctunullpointer]: Null pointer dereference: node
#  431|   	 * means we'll superfluously execute ExecProcNodeFirst, but that seems ok.
#  432|   	 */
#  433|-> 	node->ExecProcNodeReal = function;
#  434|   	node->ExecProcNode = ExecProcNodeFirst;
#  435|   }

Error: CPPCHECK_WARNING (CWE-476): [#def819]
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/execProcnode.c:433: warning[nullPointer]: Possible null pointer dereference: node
#  431|   	 * means we'll superfluously execute ExecProcNodeFirst, but that seems ok.
#  432|   	 */
#  433|-> 	node->ExecProcNodeReal = function;
#  434|   	node->ExecProcNode = ExecProcNodeFirst;
#  435|   }

Error: CPPCHECK_WARNING (CWE-476): [#def820]
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/execProcnode.c:434: warning[nullPointer]: Possible null pointer dereference: node
#  432|   	 */
#  433|   	node->ExecProcNodeReal = function;
#  434|-> 	node->ExecProcNode = ExecProcNodeFirst;
#  435|   }
#  436|   

Error: CPPCHECK_WARNING (CWE-457): [#def821]
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/execScan.c:338: error[legacyUninitvar]: Uninitialized variable: relids
#  336|   					 (int) nodeTag(node->ps.plan));
#  337|   
#  338|-> 			while ((rtindex = bms_next_member(relids, rtindex)) >= 0)
#  339|   			{
#  340|   				Assert(rtindex > 0);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def822]
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/execTuples.c: scope_hint: In function ‘do_tup_output’
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/execTuples.c:2286:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘isnull’
# 2284|   	/* insert data */
# 2285|   	memcpy(slot->tts_values, values, natts * sizeof(Datum));
# 2286|-> 	memcpy(slot->tts_isnull, isnull, natts * sizeof(bool));
# 2287|   
# 2288|   	/* mark slot as containing a virtual tuple */

Error: CPPCHECK_WARNING (CWE-457): [#def823]
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/nodeAppend.c:1072: warning[uninitvar]: Uninitialized variable: noccurred
# 1070|   	}
# 1071|   	PG_END_TRY();
# 1072|-> 	if (noccurred == 0)
# 1073|   		return;
# 1074|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def824]
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/nodeHash.c: scope_hint: In function ‘ExecParallelHashRepartitionFirst’
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/nodeHash.c:1343:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1341|   											   HJTUPLE_OVERHEAD + tuple->t_len,
# 1342|   											   &shared);
# 1343|-> 				copyTuple->hashvalue = hashTuple->hashvalue;
# 1344|   				memcpy(HJTUPLE_MINTUPLE(copyTuple), tuple, tuple->t_len);
# 1345|   				ExecParallelHashPushTuple(&hashtable->buckets.shared[bucketno],

Error: CPPCHECK_WARNING (CWE-457): [#def825]
postgresql16-16.3-build/postgresql-16.3/src/backend/lib/dshash.c:969: error[uninitvar]: Uninitialized variable: *bucket_head
#  967|   		dshash_table_item *item;
#  968|   
#  969|-> 		item = dsa_get_address(hash_table->area, *bucket_head);
#  970|   
#  971|   		if (equal_keys(hash_table, key, ENTRY_FROM_ITEM(item)))

Error: CPPCHECK_WARNING (CWE-457): [#def826]
postgresql16-16.3-build/postgresql-16.3/src/backend/lib/dshash.c:998: error[uninitvar]: Uninitialized variable: *bucket_head
#  996|   		dshash_table_item *bucket_item;
#  997|   
#  998|-> 		bucket_item = dsa_get_address(hash_table->area, *bucket_head);
#  999|   
# 1000|   		if (bucket_item == item)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def827]
postgresql16-16.3-build/postgresql-16.3/src/backend/lib/pairingheap.c: scope_hint: In function ‘merge_children.part.0’
postgresql16-16.3-build/postgresql-16.3/src/backend/lib/pairingheap.c:275:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pairs’
#  273|   	 */
#  274|   	newroot = pairs;
#  275|-> 	next = pairs->next_sibling;
#  276|   	while (next)
#  277|   	{

Error: CPPCHECK_WARNING (CWE-457): [#def828]
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth-scram.c:1181: warning[uninitvar]: Uninitialized variable: ClientKey
# 1179|   
# 1180|   	/* Hash it one more time, and compare with StoredKey */
# 1181|-> 	if (scram_H(ClientKey, state->hash_type, state->key_length,
# 1182|   				client_StoredKey, &errstr) < 0)
# 1183|   		elog(ERROR, "could not hash stored key: %s", errstr);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def829]
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c: scope_hint: In function ‘radius_add_attribute’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c:2850:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c:31: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c:681:17: note: in expansion of macro ‘pq_flush’
postgresql16-16.3-build/postgresql-16.3/src/include/postgres.h:46: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:164:9: note: in expansion of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:239:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c:753:9: note: in expansion of macro ‘elog’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c: scope_hint: In function ‘radius_add_attribute’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c: scope_hint: In function ‘radius_add_attribute’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c: scope_hint: In function ‘radius_add_attribute’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:374:45: note: in definition of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c:2902:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c:2902:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c:2905:100: note: in expansion of macro ‘lfirst’
# 2848|   	attr->attribute = type;
# 2849|   	attr->length = len + 2;		/* total size includes type and length */
# 2850|-> 	memcpy(attr->data, data, len);
# 2851|   	packet->length += attr->length;
# 2852|   }

Error: CPPCHECK_WARNING (CWE-457): [#def830]
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c:3061: warning[uninitvar]: Uninitialized variable: encryptedpassword
# 3059|   	pfree(cryptvector);
# 3060|   
# 3061|-> 	radius_add_attribute(packet, RADIUS_PASSWORD, encryptedpassword, encryptedpasswordlen);
# 3062|   
# 3063|   	/* Length needs to be in network order on the wire */

Error: CPPCHECK_WARNING (CWE-457): [#def831]
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/be-fsstubs.c:518: warning[uninitvar]: Uninitialized variable: fd
#  516|   	}
#  517|   	PG_END_TRY();
#  518|-> 	if (fd < 0)
#  519|   		ereport(ERROR,
#  520|   				(errcode_for_file_access(),

Error: GCC_ANALYZER_WARNING (CWE-476): [#def832]
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/hba.c: scope_hint: In function ‘parse_hba_line’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/hba.c:1352:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/src/include/executor/executor.h:21: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/funcapi.h:21: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/hba.c:34: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/hba.c:650:36: note: in expansion of macro ‘AllocSetContextCreate’
postgresql16-16.3-build/postgresql-16.3/src/include/access/tupdesc.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/htup_details.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/hba.c:29: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/hba.c:2625:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/hba.c:2625:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/hba.c: scope_hint: In function ‘parse_hba_line’
# 1350|   	Assert(tok_line->fields != NIL);
# 1351|   	field = list_head(tok_line->fields);
# 1352|-> 	tokens = lfirst(field);
# 1353|   	if (tokens->length > 1)
# 1354|   	{

Error: GCC_ANALYZER_WARNING (CWE-476): [#def833]
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/hba.c: scope_hint: In function ‘parse_ident_line’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/hba.c:2723:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/hba.c: scope_hint: In function ‘parse_ident_line’
# 2721|   
# 2722|   	/* Get the map token (must exist) */
# 2723|-> 	tokens = lfirst(field);
# 2724|   	IDENT_MULTI_VALUE(tokens);
# 2725|   	token = linitial(tokens);

Error: CPPCHECK_WARNING (CWE-768): [#def834]
postgresql16-16.3-build/postgresql-16.3/src/backend/nodes/makefuncs.c:626: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftop)},(union ListCell){.ptr_value=(rightop)}' depends on order of evaluation of side effects
#  624|   	expr->inputcollid = inputcollid;
#  625|   	if (rightop)
#  626|-> 		expr->args = list_make2(leftop, rightop);
#  627|   	else
#  628|   		expr->args = list_make1(leftop);

Error: CPPCHECK_WARNING (CWE-768): [#def835]
postgresql16-16.3-build/postgresql-16.3/src/backend/nodes/makefuncs.c:698: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(qual1)},(union ListCell){.ptr_value=(qual2)}' depends on order of evaluation of side effects
#  696|   	if (qual2 == NULL)
#  697|   		return qual1;
#  698|-> 	return (Node *) make_andclause(list_make2(qual1, qual2));
#  699|   }
#  700|   

Error: CPPCHECK_WARNING (CWE-768): [#def836]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/path/indxpath.c:3260: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(rightop)},(union ListCell){.ptr_value=(leftop)}' depends on order of evaluation of side effects
# 3258|   		newclause->opno = expr_op;
# 3259|   		newclause->opfuncid = InvalidOid;
# 3260|-> 		newclause->args = list_make2(rightop, leftop);
# 3261|   
# 3262|   		clause = (Expr *) newclause;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def837]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/path/joinrels.c: scope_hint: In function ‘try_partitionwise_join’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/path/joinrels.c:1551:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lcr1’
postgresql16-16.3-build/postgresql-16.3/src/include/optimizer/appendinfo.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/path/joinrels.c:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/path/joinrels.c:1505:14: note: in expansion of macro ‘IS_PARTITIONED_REL’
# 1549|   		if (joinrel->partbounds_merged)
# 1550|   		{
# 1551|-> 			child_rel1 = lfirst_node(RelOptInfo, lcr1);
# 1552|   			child_rel2 = lfirst_node(RelOptInfo, lcr2);
# 1553|   			lcr1 = lnext(parts1, lcr1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def838]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/path/joinrels.c:1552:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lcr2’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/path/joinrels.c:1505:14: note: in expansion of macro ‘IS_PARTITIONED_REL’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/path/joinrels.c: scope_hint: In function ‘try_partitionwise_join’
# 1550|   		{
# 1551|   			child_rel1 = lfirst_node(RelOptInfo, lcr1);
# 1552|-> 			child_rel2 = lfirst_node(RelOptInfo, lcr2);
# 1553|   			lcr1 = lnext(parts1, lcr1);
# 1554|   			lcr2 = lnext(parts2, lcr2);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def839]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/path/pathkeys.c: scope_hint: In function ‘pathkey_is_redundant’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/path/pathkeys.c:159:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_pathkey’
postgresql16-16.3-build/postgresql-16.3/src/include/access/tupdesc.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/attmap.h:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/tupconvert.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/execnodes.h:32: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/makefuncs.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/path/pathkeys.c:22: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/path/pathkeys.c:1178:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/path/pathkeys.c:1178:9: note: in expansion of macro ‘foreach’
#  157|   pathkey_is_redundant(PathKey *new_pathkey, List *pathkeys)
#  158|   {
#  159|-> 	EquivalenceClass *new_ec = new_pathkey->pk_eclass;
#  160|   	ListCell   *lc;
#  161|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def840]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/analyzejoins.c: scope_hint: In function ‘query_is_distinct_for’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/analyzejoins.c:1100:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lg’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/analyzejoins.c: scope_hint: In function ‘query_is_distinct_for’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:374:45: note: in definition of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/analyzejoins.c:1090:25: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/analyzejoins.c:1090:25: note: in expansion of macro ‘foreach’
# 1098|   				/* non-resjunk columns should have grouping clauses */
# 1099|   				Assert(lg != NULL);
# 1100|-> 				sgc = (SortGroupClause *) lfirst(lg);
# 1101|   				lg = lnext(topop->groupClauses, lg);
# 1102|   

Error: CPPCHECK_WARNING (CWE-768): [#def841]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/initsplan.c:1074: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftjoinlist)},(union ListCell){.ptr_value=(rightjoinlist)}' depends on order of evaluation of side effects
# 1072|   		{
# 1073|   			/* force the join order exactly at this node */
# 1074|-> 			joinlist = list_make1(list_make2(leftjoinlist, rightjoinlist));
# 1075|   		}
# 1076|   		else if (list_length(leftjoinlist) + list_length(rightjoinlist) <=

Error: CPPCHECK_WARNING (CWE-768): [#def842]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/initsplan.c:1097: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftpart)},(union ListCell){.ptr_value=(rightpart)}' depends on order of evaluation of side effects
# 1095|   			else
# 1096|   				rightpart = (Node *) rightjoinlist;
# 1097|-> 			joinlist = list_make2(leftpart, rightpart);
# 1098|   		}
# 1099|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def843]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/planner.c: scope_hint: In function ‘create_ordinary_grouping_paths’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/planner.c:4005:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘partially_grouped_rel’
# 4003|   		Assert(partially_grouped_rel);
# 4004|   
# 4005|-> 		if (partially_grouped_rel->pathlist)
# 4006|   			set_cheapest(partially_grouped_rel);
# 4007|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def844]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/setrefs.c: scope_hint: In function ‘fix_expr_common’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/setrefs.c:2001:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*root.grouping_map’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/bitmapset.h:21: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/parsenodes.h:26: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/catalog/objectaddress.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/catalog/pg_type.h:22: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/setrefs.c:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:179:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/setrefs.c:3532:13: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:133:57: note: in definition of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/setrefs.c:3545:29: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:179:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/setrefs.c:3532:13: note: in expansion of macro ‘IsA’
# 1999|   	{
# 2000|   		GroupingFunc *g = (GroupingFunc *) node;
# 2001|-> 		AttrNumber *grouping_map = root->grouping_map;
# 2002|   
# 2003|   		/* If there are no grouping sets, we don't need this. */

Error: CPPCHECK_WARNING (CWE-476): [#def845]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/setrefs.c:2097: warning[nullPointer]: Possible null pointer dereference: bestplan
# 2095|   
# 2096|   	/* Mark the subplan we selected */
# 2097|-> 	root->isUsedSubplan[bestplan->plan_id - 1] = true;
# 2098|   
# 2099|   	return (Node *) bestplan;

Error: CPPCHECK_WARNING (CWE-768): [#def846]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/subselect.c:303: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(result)},(union ListCell){.ptr_value=(hashplan)}' depends on order of evaluation of side effects
#  301|   				/* Leave it to setrefs.c to decide which plan to use */
#  302|   				asplan = makeNode(AlternativeSubPlan);
#  303|-> 				asplan->subplans = list_make2(result, hashplan);
#  304|   				result = (Node *) asplan;
#  305|   				root->hasAlternativeSubPlans = true;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def847]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/preptlist.c: scope_hint: In function ‘preprocess_targetlist’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/preptlist.c:119:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘target_rte’
#  117|   	if ((command_type == CMD_UPDATE || command_type == CMD_DELETE ||
#  118|   		 command_type == CMD_MERGE) &&
#  119|-> 		!target_rte->inh)
#  120|   	{
#  121|   		/* row-identity logic expects to add stuff to processed_tlist */

Error: CPPCHECK_WARNING (CWE-768): [#def848]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c:489: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lpath_tlist)},(union ListCell){.ptr_value=(rpath_tlist)}' depends on order of evaluation of side effects
#  487|   	 */
#  488|   	tlist = generate_append_tlist(setOp->colTypes, setOp->colCollations, false,
#  489|-> 								  list_make2(lpath_tlist, rpath_tlist),
#  490|   								  refnames_tlist);
#  491|   

Error: CPPCHECK_WARNING (CWE-768): [#def849]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c:764: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lpath)},(union ListCell){.ptr_value=(rpath)}' depends on order of evaluation of side effects
#  762|   	if (op->op == SETOP_EXCEPT || dLeftGroups <= dRightGroups)
#  763|   	{
#  764|-> 		pathlist = list_make2(lpath, rpath);
#  765|   		tlist_list = list_make2(lpath_tlist, rpath_tlist);
#  766|   		firstFlag = 0;

Error: CPPCHECK_WARNING (CWE-768): [#def850]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c:765: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lpath_tlist)},(union ListCell){.ptr_value=(rpath_tlist)}' depends on order of evaluation of side effects
#  763|   	{
#  764|   		pathlist = list_make2(lpath, rpath);
#  765|-> 		tlist_list = list_make2(lpath_tlist, rpath_tlist);
#  766|   		firstFlag = 0;
#  767|   	}

Error: CPPCHECK_WARNING (CWE-768): [#def851]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c:770: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(rpath)},(union ListCell){.ptr_value=(lpath)}' depends on order of evaluation of side effects
#  768|   	else
#  769|   	{
#  770|-> 		pathlist = list_make2(rpath, lpath);
#  771|   		tlist_list = list_make2(rpath_tlist, lpath_tlist);
#  772|   		firstFlag = 1;

Error: CPPCHECK_WARNING (CWE-768): [#def852]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c:771: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(rpath_tlist)},(union ListCell){.ptr_value=(lpath_tlist)}' depends on order of evaluation of side effects
#  769|   	{
#  770|   		pathlist = list_make2(rpath, lpath);
#  771|-> 		tlist_list = list_make2(rpath_tlist, lpath_tlist);
#  772|   		firstFlag = 1;
#  773|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def853]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c: scope_hint: In function ‘generate_setop_grouplist’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c:1431:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lg’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c: scope_hint: In function ‘generate_setop_grouplist’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c:1414:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c:1414:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c:1414:9: note: in expansion of macro ‘foreach’
# 1429|   		/* non-resjunk columns should have grouping clauses */
# 1430|   		Assert(lg != NULL);
# 1431|-> 		sgc = (SortGroupClause *) lfirst(lg);
# 1432|   		lg = lnext(grouplist, lg);
# 1433|   		Assert(sgc->tleSortGroupRef == 0);

Error: CPPCHECK_WARNING (CWE-768): [#def854]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/util/clauses.c:2980: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(simple)},((union ListCell){.ptr_value=(makeConst(26,-1,(unsigned int)0,sizeof(unsigned int),ObjectIdGetDatum(intypioparam),false,true))})' depends on order of evaluation of side effects
# 2978|   					 * complain.
# 2979|   					 */
# 2980|-> 					args = list_make3(simple,
# 2981|   									  makeConst(OIDOID,
# 2982|   												-1,

Error: CPPCHECK_WARNING (CWE-768): [#def855]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/util/clauses.c:2980: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(simple)},((union ListCell){.ptr_value=(makeConst(26,-1,(unsigned int)0,sizeof(unsigned int),ObjectIdGetDatum(intypioparam),false,true))}),((union ListCell){.ptr_value=(makeConst(23,-1,(unsigned int)0,sizeof(int32),Int32GetDatum(-1),false,true))})' depends on order of evaluation of side effects
# 2978|   					 * complain.
# 2979|   					 */
# 2980|-> 					args = list_make3(simple,
# 2981|   									  makeConst(OIDOID,
# 2982|   												-1,

Error: CPPCHECK_WARNING (CWE-457): [#def856]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/util/clauses.c:4370: warning[uninitvar]: Uninitialized variable: actual_arg_types
# 4368|   	Assert(nargs == pronargs);
# 4369|   	memcpy(declared_arg_types, proargtypes, pronargs * sizeof(Oid));
# 4370|-> 	rettype = enforce_generic_type_consistency(actual_arg_types,
# 4371|   											   declared_arg_types,
# 4372|   											   nargs,

Error: CPPCHECK_WARNING (CWE-768): [#def857]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/util/relnode.c:2379: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(larg)},(union ListCell){.ptr_value=(rarg)}' depends on order of evaluation of side effects
# 2377|   						c->coalescetype = exprType(larg);
# 2378|   						c->coalescecollid = exprCollation(larg);
# 2379|-> 						c->args = list_make2(larg, rarg);
# 2380|   						c->location = -1;
# 2381|   						nullable_partexpr = lappend(nullable_partexpr, c);

Error: CPPCHECK_WARNING (CWE-768): [#def858]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/util/restrictinfo.c:374: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(list_nth_cell(clause->args,1)->ptr_value)}),((union ListCell){.ptr_value=(list_nth_cell(clause->args,0)->ptr_value)})' depends on order of evaluation of side effects
#  372|   	newclause->opno = comm_op;
#  373|   	newclause->opfuncid = InvalidOid;
#  374|-> 	newclause->args = list_make2(lsecond(clause->args),
#  375|   								 linitial(clause->args));
#  376|   

Error: CPPCHECK_WARNING (CWE-768): [#def859]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/analyze.c:2205: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lcolnode)},(union ListCell){.ptr_value=(rcolnode)}' depends on order of evaluation of side effects
# 2203|   			/* select common type, same as CASE et al */
# 2204|   			rescoltype = select_common_type(pstate,
# 2205|-> 											list_make2(lcolnode, rcolnode),
# 2206|   											context,
# 2207|   											&bestexpr);

Error: CPPCHECK_WARNING (CWE-768): [#def860]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/analyze.c:2260: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lcolnode)},(union ListCell){.ptr_value=(rcolnode)}' depends on order of evaluation of side effects
# 2258|   
# 2259|   			rescoltypmod = select_common_typmod(pstate,
# 2260|-> 												list_make2(lcolnode, rcolnode),
# 2261|   												rescoltype);
# 2262|   

Error: CPPCHECK_WARNING (CWE-768): [#def861]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/analyze.c:2273: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lcolnode)},(union ListCell){.ptr_value=(rcolnode)}' depends on order of evaluation of side effects
# 2271|   			 */
# 2272|   			rescolcoll = select_common_collation(pstate,
# 2273|-> 												 list_make2(lcolnode, rcolnode),
# 2274|   												 (op->op == SETOP_UNION && op->all));
# 2275|   

Error: CPPCHECK_WARNING (CWE-768): [#def862]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:1836: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeIntConst(0x7FFF,-1))}),((union ListCell){.ptr_value=(makeIntConst(yyvsp[-2].ival,yylsp[-2]))})' depends on order of evaluation of side effects
# 1834|   					TypeName   *t = $1;
# 1835|   
# 1836|-> 					t->typmods = list_make2(makeIntConst(INTERVAL_FULL_RANGE, -1),
# 1837|   											makeIntConst($3, @3));
# 1838|   					$$ = makeStringConstCast($5, @5, t);

Error: CPPCHECK_WARNING (CWE-768): [#def863]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:4245: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].ielem)},(union ListCell){.ptr_value=(yyvsp[0].list)}' depends on order of evaluation of side effects
# 4243|   ExclusionConstraintElem: index_elem WITH any_operator
# 4244|   			{
# 4245|-> 				$$ = list_make2($1, $3);
# 4246|   			}
# 4247|   			/* allow OPERATOR() decoration for the benefit of ruleutils.c */

Error: CPPCHECK_WARNING (CWE-768): [#def864]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:4250: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-5].ielem)},(union ListCell){.ptr_value=(yyvsp[-1].list)}' depends on order of evaluation of side effects
# 4248|   			| index_elem WITH OPERATOR '(' any_operator ')'
# 4249|   			{
# 4250|-> 				$$ = list_make2($1, $5);
# 4251|   			}
# 4252|   		;

Error: CPPCHECK_WARNING (CWE-768): [#def865]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:5110: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-3].typnam)},(union ListCell){.ptr_value=(yyvsp[-1].typnam)}' depends on order of evaluation of side effects
# 5108|   					n->action = $4;
# 5109|   					n->objtype = OBJECT_CAST;
# 5110|-> 					n->object = (Node *) list_make2($7, $9);
# 5111|   					$$ = (Node *) n;
# 5112|   				}

Error: CPPCHECK_WARNING (CWE-768): [#def866]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:5190: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].typnam)},(union ListCell){.ptr_value=(makeString(yyvsp[0].str))}' depends on order of evaluation of side effects
# 5188|   					n->action = $4;
# 5189|   					n->objtype = OBJECT_TRANSFORM;
# 5190|-> 					n->object = (Node *) list_make2($7, makeString($9));
# 5191|   					$$ = (Node *) n;
# 5192|   				}

Error: CPPCHECK_WARNING (CWE-768): [#def867]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:5856: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeInteger(events1|events2))},((union ListCell){.ptr_value=(list_concat(columns1,columns2))})' depends on order of evaluation of side effects
# 5854|   					 * should just ignore the columns for non-UPDATE events.
# 5855|   					 */
# 5856|-> 					$$ = list_make2(makeInteger(events1 | events2),
# 5857|   									list_concat(columns1, columns2));
# 5858|   				}

Error: CPPCHECK_WARNING (CWE-768): [#def868]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:5863: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeInteger(1<<2))},(union ListCell){.ptr_value=((struct List*)NULL)}' depends on order of evaluation of side effects
# 5861|   TriggerOneEvent:
# 5862|   			INSERT
# 5863|-> 				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_INSERT), NIL); }
# 5864|   			| DELETE_P
# 5865|   				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_DELETE), NIL); }

Error: CPPCHECK_WARNING (CWE-768): [#def869]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:5865: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeInteger(1<<3))},(union ListCell){.ptr_value=((struct List*)NULL)}' depends on order of evaluation of side effects
# 5863|   				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_INSERT), NIL); }
# 5864|   			| DELETE_P
# 5865|-> 				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_DELETE), NIL); }
# 5866|   			| UPDATE
# 5867|   				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_UPDATE), NIL); }

Error: CPPCHECK_WARNING (CWE-768): [#def870]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:5867: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeInteger(1<<4))},(union ListCell){.ptr_value=((struct List*)NULL)}' depends on order of evaluation of side effects
# 5865|   				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_DELETE), NIL); }
# 5866|   			| UPDATE
# 5867|-> 				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_UPDATE), NIL); }
# 5868|   			| UPDATE OF columnList
# 5869|   				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_UPDATE), $3); }

Error: CPPCHECK_WARNING (CWE-768): [#def871]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:5869: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeInteger(1<<4))},(union ListCell){.ptr_value=(yyvsp[0].list)}' depends on order of evaluation of side effects
# 5867|   				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_UPDATE), NIL); }
# 5868|   			| UPDATE OF columnList
# 5869|-> 				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_UPDATE), $3); }
# 5870|   			| TRUNCATE
# 5871|   				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_TRUNCATE), NIL); }

Error: CPPCHECK_WARNING (CWE-768): [#def872]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:5871: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeInteger(1<<5))},(union ListCell){.ptr_value=((struct List*)NULL)}' depends on order of evaluation of side effects
# 5869|   				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_UPDATE), $3); }
# 5870|   			| TRUNCATE
# 5871|-> 				{ $$ = list_make2(makeInteger(TRIGGER_TYPE_TRUNCATE), NIL); }
# 5872|   		;
# 5873|   

Error: CPPCHECK_WARNING (CWE-768): [#def873]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:6990: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeTypeNameFromNameList(yyvsp[-2].list))},(union ListCell){.ptr_value=(makeString(yyvsp[-5].str))}' depends on order of evaluation of side effects
# 6988|   					 * up here.
# 6989|   					 */
# 6990|-> 					n->object = (Node *) list_make2(makeTypeNameFromNameList($7), makeString($4));
# 6991|   					n->comment = $9;
# 6992|   					$$ = (Node *) n;

Error: CPPCHECK_WARNING (CWE-768): [#def874]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:7026: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].typnam)},(union ListCell){.ptr_value=(makeString(yyvsp[-2].str))}' depends on order of evaluation of side effects
# 7024|   
# 7025|   					n->objtype = OBJECT_TRANSFORM;
# 7026|-> 					n->object = (Node *) list_make2($5, makeString($7));
# 7027|   					n->comment = $9;
# 7028|   					$$ = (Node *) n;

Error: CPPCHECK_WARNING (CWE-768): [#def875]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:7062: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-5].typnam)},(union ListCell){.ptr_value=(yyvsp[-3].typnam)}' depends on order of evaluation of side effects
# 7060|   
# 7061|   					n->objtype = OBJECT_CAST;
# 7062|-> 					n->object = (Node *) list_make2($5, $7);
# 7063|   					n->comment = $10;
# 7064|   					$$ = (Node *) n;

Error: CPPCHECK_WARNING (CWE-768): [#def876]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:8415: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=((struct List*)NULL)},(union ListCell){.ptr_value=(makeInteger(-1))}' depends on order of evaluation of side effects
# 8413|   aggr_args:	'(' '*' ')'
# 8414|   				{
# 8415|-> 					$$ = list_make2(NIL, makeInteger(-1));
# 8416|   				}
# 8417|   			| '(' aggr_args_list ')'

Error: CPPCHECK_WARNING (CWE-768): [#def877]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:8419: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-1].list)},(union ListCell){.ptr_value=(makeInteger(-1))}' depends on order of evaluation of side effects
# 8417|   			| '(' aggr_args_list ')'
# 8418|   				{
# 8419|-> 					$$ = list_make2($2, makeInteger(-1));
# 8420|   				}
# 8421|   			| '(' ORDER BY aggr_args_list ')'

Error: CPPCHECK_WARNING (CWE-768): [#def878]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:8423: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-1].list)},(union ListCell){.ptr_value=(makeInteger(0))}' depends on order of evaluation of side effects
# 8421|   			| '(' ORDER BY aggr_args_list ')'
# 8422|   				{
# 8423|-> 					$$ = list_make2($4, makeInteger(0));
# 8424|   				}
# 8425|   			| '(' aggr_args_list ORDER BY aggr_args_list ')'

Error: CPPCHECK_WARNING (CWE-768): [#def879]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:8567: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(yyvsp[-2].str))},(union ListCell){.ptr_value=(makeString(yyvsp[0].str))}' depends on order of evaluation of side effects
# 8565|   			| Sconst ',' Sconst
# 8566|   				{
# 8567|-> 					$$ = list_make2(makeString($1), makeString($3));
# 8568|   				}
# 8569|   		;

Error: CPPCHECK_WARNING (CWE-768): [#def880]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:8846: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-3].typnam)},(union ListCell){.ptr_value=(yyvsp[-1].typnam)}' depends on order of evaluation of side effects
# 8844|   				}
# 8845|   			| '(' Typename ',' Typename ')'
# 8846|-> 					{ $$ = list_make2($2, $4); }
# 8847|   			| '(' NONE ',' Typename ')'					/* left unary */
# 8848|   					{ $$ = list_make2(NULL, $4); }

Error: CPPCHECK_WARNING (CWE-768): [#def881]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:8848: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(NULL)},(union ListCell){.ptr_value=(yyvsp[-1].typnam)}' depends on order of evaluation of side effects
# 8846|   					{ $$ = list_make2($2, $4); }
# 8847|   			| '(' NONE ',' Typename ')'					/* left unary */
# 8848|-> 					{ $$ = list_make2(NULL, $4); }
# 8849|   			| '(' Typename ',' NONE ')'					/* right unary */
# 8850|   					{ $$ = list_make2($2, NULL); }

Error: CPPCHECK_WARNING (CWE-768): [#def882]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:8850: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-3].typnam)},(union ListCell){.ptr_value=(NULL)}' depends on order of evaluation of side effects
# 8848|   					{ $$ = list_make2(NULL, $4); }
# 8849|   			| '(' Typename ',' NONE ')'					/* right unary */
# 8850|-> 					{ $$ = list_make2($2, NULL); }
# 8851|   		;
# 8852|   

Error: CPPCHECK_WARNING (CWE-768): [#def883]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:8966: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].typnam)},(union ListCell){.ptr_value=(yyvsp[-2].typnam)}' depends on order of evaluation of side effects
# 8964|   
# 8965|   					n->removeType = OBJECT_CAST;
# 8966|-> 					n->objects = list_make1(list_make2($5, $7));
# 8967|   					n->behavior = $9;
# 8968|   					n->missing_ok = $3;

Error: CPPCHECK_WARNING (CWE-768): [#def884]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:9000: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-6].objwithargs)},(union ListCell){.ptr_value=(yyvsp[0].objwithargs)}' depends on order of evaluation of side effects
# 8998|   transform_element_list: FROM SQL_P WITH FUNCTION function_with_argtypes ',' TO SQL_P WITH FUNCTION function_with_argtypes
# 8999|   				{
# 9000|-> 					$$ = list_make2($5, $11);
# 9001|   				}
# 9002|   				| TO SQL_P WITH FUNCTION function_with_argtypes ',' FROM SQL_P WITH FUNCTION function_with_argtypes

Error: CPPCHECK_WARNING (CWE-768): [#def885]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:9004: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[0].objwithargs)},(union ListCell){.ptr_value=(yyvsp[-6].objwithargs)}' depends on order of evaluation of side effects
# 9002|   				| TO SQL_P WITH FUNCTION function_with_argtypes ',' FROM SQL_P WITH FUNCTION function_with_argtypes
# 9003|   				{
# 9004|-> 					$$ = list_make2($11, $5);
# 9005|   				}
# 9006|   				| FROM SQL_P WITH FUNCTION function_with_argtypes

Error: CPPCHECK_WARNING (CWE-768): [#def886]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:9008: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[0].objwithargs)},(union ListCell){.ptr_value=(NULL)}' depends on order of evaluation of side effects
# 9006|   				| FROM SQL_P WITH FUNCTION function_with_argtypes
# 9007|   				{
# 9008|-> 					$$ = list_make2($5, NULL);
# 9009|   				}
# 9010|   				| TO SQL_P WITH FUNCTION function_with_argtypes

Error: CPPCHECK_WARNING (CWE-768): [#def887]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:9012: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(NULL)},(union ListCell){.ptr_value=(yyvsp[0].objwithargs)}' depends on order of evaluation of side effects
# 9010|   				| TO SQL_P WITH FUNCTION function_with_argtypes
# 9011|   				{
# 9012|-> 					$$ = list_make2(NULL, $5);
# 9013|   				}
# 9014|   		;

Error: CPPCHECK_WARNING (CWE-768): [#def888]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:9022: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-3].typnam)},(union ListCell){.ptr_value=(makeString(yyvsp[-1].str))}' depends on order of evaluation of side effects
# 9020|   
# 9021|   					n->removeType = OBJECT_TRANSFORM;
# 9022|-> 					n->objects = list_make1(list_make2($5, makeString($7)));
# 9023|   					n->behavior = $8;
# 9024|   					n->missing_ok = $3;

Error: CPPCHECK_WARNING (CWE-768): [#def889]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:11484: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].list)},(union ListCell){.ptr_value=(yyvsp[0].list)}' depends on order of evaluation of side effects
#11482|   					n->cfgname = $5;
#11483|   					n->tokentype = NIL;
#11484|-> 					n->dicts = list_make2($9,$11);
#11485|   					n->override = false;
#11486|   					n->replace = true;

Error: CPPCHECK_WARNING (CWE-768): [#def890]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:11496: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].list)},(union ListCell){.ptr_value=(yyvsp[0].list)}' depends on order of evaluation of side effects
#11494|   					n->cfgname = $5;
#11495|   					n->tokentype = $9;
#11496|-> 					n->dicts = list_make2($11,$13);
#11497|   					n->override = false;
#11498|   					n->replace = true;

Error: CPPCHECK_WARNING (CWE-768): [#def891]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:13480: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[0].alias)},(union ListCell){.ptr_value=((struct List*)NULL)}' depends on order of evaluation of side effects
#13478|   			alias_clause
#13479|   				{
#13480|-> 					$$ = list_make2($1, NIL);
#13481|   				}
#13482|   			| AS '(' TableFuncElementList ')'

Error: CPPCHECK_WARNING (CWE-768): [#def892]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:13484: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(NULL)},(union ListCell){.ptr_value=(yyvsp[-1].list)}' depends on order of evaluation of side effects
#13482|   			| AS '(' TableFuncElementList ')'
#13483|   				{
#13484|-> 					$$ = list_make2(NULL, $3);
#13485|   				}
#13486|   			| AS ColId '(' TableFuncElementList ')'

Error: CPPCHECK_WARNING (CWE-768): [#def893]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:13491: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(a)},(union ListCell){.ptr_value=(yyvsp[-1].list)}' depends on order of evaluation of side effects
#13489|   
#13490|   					a->aliasname = $2;
#13491|-> 					$$ = list_make2(a, $4);
#13492|   				}
#13493|   			| ColId '(' TableFuncElementList ')'

Error: CPPCHECK_WARNING (CWE-768): [#def894]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:13498: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(a)},(union ListCell){.ptr_value=(yyvsp[-1].list)}' depends on order of evaluation of side effects
#13496|   
#13497|   					a->aliasname = $1;
#13498|-> 					$$ = list_make2(a, $3);
#13499|   				}
#13500|   			| /*EMPTY*/

Error: CPPCHECK_WARNING (CWE-768): [#def895]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:13502: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(NULL)},(union ListCell){.ptr_value=((struct List*)NULL)}' depends on order of evaluation of side effects
#13500|   			| /*EMPTY*/
#13501|   				{
#13502|-> 					$$ = list_make2(NULL, NIL);
#13503|   				}
#13504|   		;

Error: CPPCHECK_WARNING (CWE-768): [#def896]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:13531: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].list)},(union ListCell){.ptr_value=(yyvsp[0].alias)}' depends on order of evaluation of side effects
#13529|   join_qual: USING '(' name_list ')' opt_alias_clause_for_join_using
#13530|   				{
#13531|-> 					$$ = (Node *) list_make2($3, $5);
#13532|   				}
#13533|   			| ON a_expr

Error: CPPCHECK_WARNING (CWE-768): [#def897]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:13657: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-1].node)},(union ListCell){.ptr_value=((struct List*)NULL)}' depends on order of evaluation of side effects
#13655|   					n->ordinality = $2;
#13656|   					n->is_rowsfrom = false;
#13657|-> 					n->functions = list_make1(list_make2($1, NIL));
#13658|   					/* alias and coldeflist are set by table_ref production */
#13659|   					$$ = (Node *) n;

Error: CPPCHECK_WARNING (CWE-768): [#def898]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:13675: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-1].node)},(union ListCell){.ptr_value=(yyvsp[0].list)}' depends on order of evaluation of side effects
#13673|   
#13674|   rowsfrom_item: func_expr_windowless opt_col_def_list
#13675|-> 				{ $$ = list_make2($1, $2); }
#13676|   		;
#13677|   

Error: CPPCHECK_WARNING (CWE-768): [#def899]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:13981: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeIntConst(0x7FFF,-1))}),((union ListCell){.ptr_value=(makeIntConst(yyvsp[-1].ival,yylsp[-1]))})' depends on order of evaluation of side effects
#13979|   				{
#13980|   					$$ = $1;
#13981|-> 					$$->typmods = list_make2(makeIntConst(INTERVAL_FULL_RANGE, -1),
#13982|   											 makeIntConst($3, @3));
#13983|   				}

Error: CPPCHECK_WARNING (CWE-768): [#def900]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:14365: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeIntConst(1<<12,yylsp[-3]))}),((union ListCell){.ptr_value=(makeIntConst(yyvsp[-1].ival,yylsp[-1]))})' depends on order of evaluation of side effects
#14363|   			| SECOND_P '(' Iconst ')'
#14364|   				{
#14365|-> 					$$ = list_make2(makeIntConst(INTERVAL_MASK(SECOND), @1),
#14366|   									makeIntConst($3, @3));
#14367|   				}

Error: CPPCHECK_WARNING (CWE-768): [#def901]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:14414: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[0].node)},(union ListCell){.ptr_value=(yyvsp[-4].node)}' depends on order of evaluation of side effects
#14412|   				{
#14413|   					$$ = (Node *) makeFuncCall(SystemFuncName("timezone"),
#14414|-> 											   list_make2($5, $1),
#14415|   											   COERCE_SQL_SYNTAX,
#14416|   											   @2);

Error: CPPCHECK_WARNING (CWE-768): [#def902]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:14478: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14476|   				{
#14477|   					FuncCall   *n = makeFuncCall(SystemFuncName("like_escape"),
#14478|-> 												 list_make2($3, $5),
#14479|   												 COERCE_EXPLICIT_CALL,
#14480|   												 @2);

Error: CPPCHECK_WARNING (CWE-768): [#def903]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:14492: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14490|   				{
#14491|   					FuncCall   *n = makeFuncCall(SystemFuncName("like_escape"),
#14492|-> 												 list_make2($4, $6),
#14493|   												 COERCE_EXPLICIT_CALL,
#14494|   												 @2);

Error: CPPCHECK_WARNING (CWE-768): [#def904]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:14506: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14504|   				{
#14505|   					FuncCall   *n = makeFuncCall(SystemFuncName("like_escape"),
#14506|-> 												 list_make2($3, $5),
#14507|   												 COERCE_EXPLICIT_CALL,
#14508|   												 @2);

Error: CPPCHECK_WARNING (CWE-768): [#def905]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:14520: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14518|   				{
#14519|   					FuncCall   *n = makeFuncCall(SystemFuncName("like_escape"),
#14520|-> 												 list_make2($4, $6),
#14521|   												 COERCE_EXPLICIT_CALL,
#14522|   												 @2);

Error: CPPCHECK_WARNING (CWE-768): [#def906]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:14539: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14537|   				{
#14538|   					FuncCall   *n = makeFuncCall(SystemFuncName("similar_to_escape"),
#14539|-> 												 list_make2($4, $6),
#14540|   												 COERCE_EXPLICIT_CALL,
#14541|   												 @2);

Error: CPPCHECK_WARNING (CWE-768): [#def907]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:14557: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14555|   				{
#14556|   					FuncCall   *n = makeFuncCall(SystemFuncName("similar_to_escape"),
#14557|-> 												 list_make2($5, $7),
#14558|   												 COERCE_EXPLICIT_CALL,
#14559|   												 @2);

Error: CPPCHECK_WARNING (CWE-768): [#def908]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:14693: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14691|   												   "BETWEEN",
#14692|   												   $1,
#14693|-> 												   (Node *) list_make2($4, $6),
#14694|   												   @2);
#14695|   				}

Error: CPPCHECK_WARNING (CWE-768): [#def909]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:14701: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14699|   												   "NOT BETWEEN",
#14700|   												   $1,
#14701|-> 												   (Node *) list_make2($5, $7),
#14702|   												   @2);
#14703|   				}

Error: CPPCHECK_WARNING (CWE-768): [#def910]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:14709: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14707|   												   "BETWEEN SYMMETRIC",
#14708|   												   $1,
#14709|-> 												   (Node *) list_make2($4, $6),
#14710|   												   @2);
#14711|   				}

Error: CPPCHECK_WARNING (CWE-768): [#def911]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:14717: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#14715|   												   "NOT BETWEEN SYMMETRIC",
#14716|   												   $1,
#14717|-> 												   (Node *) list_make2($5, $7),
#14718|   												   @2);
#14719|   				}

Error: CPPCHECK_WARNING (CWE-768): [#def912]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:14820: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-3].node)},((union ListCell){.ptr_value=(makeStringConst(yyvsp[-1].str,yylsp[-1]))})' depends on order of evaluation of side effects
#14818|   				{
#14819|   					$$ = (Node *) makeFuncCall(SystemFuncName("is_normalized"),
#14820|-> 											   list_make2($1, makeStringConst($3, @3)),
#14821|   											   COERCE_SQL_SYNTAX,
#14822|   											   @2);

Error: CPPCHECK_WARNING (CWE-768): [#def913]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:14835: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},((union ListCell){.ptr_value=(makeStringConst(yyvsp[-1].str,yylsp[-1]))})' depends on order of evaluation of side effects
#14833|   				{
#14834|   					$$ = makeNotExpr((Node *) makeFuncCall(SystemFuncName("is_normalized"),
#14835|-> 														   list_make2($1, makeStringConst($4, @4)),
#14836|   														   COERCE_SQL_SYNTAX,
#14837|   														   @2),

Error: CPPCHECK_WARNING (CWE-768): [#def914]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:15354: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-3].node)},((union ListCell){.ptr_value=(makeStringConst(yyvsp[-1].str,yylsp[-1]))})' depends on order of evaluation of side effects
#15352|   				{
#15353|   					$$ = (Node *) makeFuncCall(SystemFuncName("normalize"),
#15354|-> 											   list_make2($3, makeStringConst($5, @5)),
#15355|   											   COERCE_SQL_SYNTAX,
#15356|   											   @1);

Error: CPPCHECK_WARNING (CWE-768): [#def915]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:15513: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[-1].node)}' depends on order of evaluation of side effects
#15511|   					 * converted to xmlexists(A, B)*/
#15512|   					$$ = (Node *) makeFuncCall(SystemFuncName("xmlexists"),
#15513|-> 											   list_make2($3, $4),
#15514|   											   COERCE_SQL_SYNTAX,
#15515|   											   @1);

Error: CPPCHECK_WARNING (CWE-768): [#def916]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:15525: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},((union ListCell){.ptr_value=(makeBoolAConst(yyvsp[-1].boolean,-1))})' depends on order of evaluation of side effects
#15523|   					XmlExpr *x = (XmlExpr *)
#15524|   						makeXmlExpr(IS_XMLPARSE, NULL, NIL,
#15525|-> 									list_make2($4, makeBoolAConst($5, -1)),
#15526|   									@1);
#15527|   

Error: CPPCHECK_WARNING (CWE-768): [#def917]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:15542: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)}' depends on order of evaluation of side effects
#15540|   				{
#15541|   					$$ = makeXmlExpr(IS_XMLROOT, NULL, NIL,
#15542|-> 									 list_make3($3, $5, $6), @1);
#15543|   				}
#15544|   			| XMLSERIALIZE '(' document_or_content a_expr AS SimpleTypename xml_indent_option ')'

Error: CPPCHECK_WARNING (CWE-768): [#def918]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:15542: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[-1].node)}' depends on order of evaluation of side effects
#15540|   				{
#15541|   					$$ = makeXmlExpr(IS_XMLROOT, NULL, NIL,
#15542|-> 									 list_make3($3, $5, $6), @1);
#15543|   				}
#15544|   			| XMLSERIALIZE '(' document_or_content a_expr AS SimpleTypename xml_indent_option ')'

Error: CPPCHECK_WARNING (CWE-768): [#def919]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:16126: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeStringConst(yyvsp[-2].str,yylsp[-2]))}),(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#16124|   			extract_arg FROM a_expr
#16125|   				{
#16126|-> 					$$ = list_make2(makeStringConst($1, @1), $3);
#16127|   				}
#16128|   		;

Error: CPPCHECK_WARNING (CWE-768): [#def920]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:16156: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-6].node)},(union ListCell){.ptr_value=(yyvsp[-4].node)}' depends on order of evaluation of side effects
#16154|   				{
#16155|   					/* overlay(A PLACING B FROM C FOR D) is converted to overlay(A, B, C, D) */
#16156|-> 					$$ = list_make4($1, $3, $5, $7);
#16157|   				}
#16158|   			| a_expr PLACING a_expr FROM a_expr

Error: CPPCHECK_WARNING (CWE-768): [#def921]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:16156: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-6].node)},(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)}' depends on order of evaluation of side effects
#16154|   				{
#16155|   					/* overlay(A PLACING B FROM C FOR D) is converted to overlay(A, B, C, D) */
#16156|-> 					$$ = list_make4($1, $3, $5, $7);
#16157|   				}
#16158|   			| a_expr PLACING a_expr FROM a_expr

Error: CPPCHECK_WARNING (CWE-768): [#def922]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:16156: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-6].node)},(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#16154|   				{
#16155|   					/* overlay(A PLACING B FROM C FOR D) is converted to overlay(A, B, C, D) */
#16156|-> 					$$ = list_make4($1, $3, $5, $7);
#16157|   				}
#16158|   			| a_expr PLACING a_expr FROM a_expr

Error: CPPCHECK_WARNING (CWE-768): [#def923]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:16161: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)}' depends on order of evaluation of side effects
#16159|   				{
#16160|   					/* overlay(A PLACING B FROM C) is converted to overlay(A, B, C) */
#16161|-> 					$$ = list_make3($1, $3, $5);
#16162|   				}
#16163|   		;

Error: CPPCHECK_WARNING (CWE-768): [#def924]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:16161: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#16159|   				{
#16160|   					/* overlay(A PLACING B FROM C) is converted to overlay(A, B, C) */
#16161|-> 					$$ = list_make3($1, $3, $5);
#16162|   				}
#16163|   		;

Error: CPPCHECK_WARNING (CWE-768): [#def925]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:16167: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[0].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)}' depends on order of evaluation of side effects
#16165|   /* position_list uses b_expr not a_expr to avoid conflict with general IN */
#16166|   position_list:
#16167|-> 			b_expr IN_P b_expr						{ $$ = list_make2($3, $1); }
#16168|   		;
#16169|   

Error: CPPCHECK_WARNING (CWE-768): [#def926]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:16190: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)}' depends on order of evaluation of side effects
#16188|   			a_expr FROM a_expr FOR a_expr
#16189|   				{
#16190|-> 					$$ = list_make3($1, $3, $5);
#16191|   				}
#16192|   			| a_expr FOR a_expr FROM a_expr

Error: CPPCHECK_WARNING (CWE-768): [#def927]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:16190: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#16188|   			a_expr FROM a_expr FOR a_expr
#16189|   				{
#16190|-> 					$$ = list_make3($1, $3, $5);
#16191|   				}
#16192|   			| a_expr FOR a_expr FROM a_expr

Error: CPPCHECK_WARNING (CWE-768): [#def928]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:16195: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#16193|   				{
#16194|   					/* not legal per SQL, but might as well allow it */
#16195|-> 					$$ = list_make3($1, $5, $3);
#16196|   				}
#16197|   			| a_expr FROM a_expr

Error: CPPCHECK_WARNING (CWE-768): [#def929]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:16195: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[0].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)}' depends on order of evaluation of side effects
#16193|   				{
#16194|   					/* not legal per SQL, but might as well allow it */
#16195|-> 					$$ = list_make3($1, $5, $3);
#16196|   				}
#16197|   			| a_expr FROM a_expr

Error: CPPCHECK_WARNING (CWE-768): [#def930]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:16206: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#16204|   					 * such a call in regular function call syntax.
#16205|   					 */
#16206|-> 					$$ = list_make2($1, $3);
#16207|   				}
#16208|   			| a_expr FOR a_expr

Error: CPPCHECK_WARNING (CWE-768): [#def931]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:16221: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},((union ListCell){.ptr_value=(makeIntConst(1,-1))})' depends on order of evaluation of side effects
#16219|   					 * is unknown or doesn't have an implicit cast to int4.
#16220|   					 */
#16221|-> 					$$ = list_make3($1, makeIntConst(1, -1),
#16222|   									makeTypeCast($3,
#16223|   												 SystemTypeName("int4"), -1));

Error: CPPCHECK_WARNING (CWE-768): [#def932]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:16221: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},((union ListCell){.ptr_value=(makeIntConst(1,-1))}),((union ListCell){.ptr_value=(makeTypeCast(yyvsp[0].node,SystemTypeName("int4"),-1))})' depends on order of evaluation of side effects
#16219|   					 * is unknown or doesn't have an implicit cast to int4.
#16220|   					 */
#16221|-> 					$$ = list_make3($1, makeIntConst(1, -1),
#16222|   									makeTypeCast($3,
#16223|   												 SystemTypeName("int4"), -1));

Error: CPPCHECK_WARNING (CWE-768): [#def933]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:16227: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)}' depends on order of evaluation of side effects
#16225|   			| a_expr SIMILAR a_expr ESCAPE a_expr
#16226|   				{
#16227|-> 					$$ = list_make3($1, $3, $5);
#16228|   				}
#16229|   		;

Error: CPPCHECK_WARNING (CWE-768): [#def934]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:16227: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-4].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(yyvsp[0].node)}' depends on order of evaluation of side effects
#16225|   			| a_expr SIMILAR a_expr ESCAPE a_expr
#16226|   				{
#16227|-> 					$$ = list_make3($1, $3, $5);
#16228|   				}
#16229|   		;

Error: CPPCHECK_WARNING (CWE-768): [#def935]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:16687: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeIntConst(0x7FFF,-1))}),((union ListCell){.ptr_value=(makeIntConst(yyvsp[-2].ival,yylsp[-2]))})' depends on order of evaluation of side effects
#16685|   					TypeName   *t = $1;
#16686|   
#16687|-> 					t->typmods = list_make2(makeIntConst(INTERVAL_FULL_RANGE, -1),
#16688|   											makeIntConst($3, @3));
#16689|   					$$ = makeStringConstCast($5, @5, t);

Error: CPPCHECK_WARNING (CWE-457): [#def936]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:16781: error[legacyUninitvar]: Uninitialized variable: n
#16779|   						n->rolename = pstrdup($1);
#16780|   					}
#16781|-> 					$$ = n;
#16782|   				}
#16783|   			| CURRENT_ROLE

Error: CPPCHECK_WARNING (CWE-768): [#def937]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:18234: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(list_concat(directargs,orderedargs))}),(union ListCell){.ptr_value=(ndirectargs)}' depends on order of evaluation of side effects
#18232|   	ndirectargs = makeInteger(list_length(directargs));
#18233|   
#18234|-> 	return list_make2(list_concat(directargs, orderedargs),
#18235|   					  ndirectargs);
#18236|   }

Error: CPPCHECK_WARNING (CWE-768): [#def938]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:18341: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString("pg_catalog"))},(union ListCell){.ptr_value=(makeString(name))}' depends on order of evaluation of side effects
#18339|   SystemFuncName(char *name)
#18340|   {
#18341|-> 	return list_make2(makeString("pg_catalog"), makeString(name));
#18342|   }
#18343|   

Error: CPPCHECK_WARNING (CWE-768): [#def939]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:18353: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString("pg_catalog"))},(union ListCell){.ptr_value=(makeString(name))}' depends on order of evaluation of side effects
#18351|   SystemTypeName(char *name)
#18352|   {
#18353|-> 	return makeTypeNameFromNameList(list_make2(makeString("pg_catalog"),
#18354|   											   makeString(name)));
#18355|   }

Error: CPPCHECK_WARNING (CWE-768): [#def940]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:18422: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lexpr)},(union ListCell){.ptr_value=(rexpr)}' depends on order of evaluation of side effects
#18420|   		}
#18421|   	}
#18422|-> 	return (Node *) makeBoolExpr(AND_EXPR, list_make2(lexpr, rexpr), location);
#18423|   }
#18424|   

Error: CPPCHECK_WARNING (CWE-768): [#def941]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/gram.y:18439: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lexpr)},(union ListCell){.ptr_value=(rexpr)}' depends on order of evaluation of side effects
#18437|   		}
#18438|   	}
#18439|-> 	return (Node *) makeBoolExpr(OR_EXPR, list_make2(lexpr, rexpr), location);
#18440|   }
#18441|   

Error: CPPCHECK_WARNING (CWE-768): [#def942]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_agg.c:2116: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(make_agg_arg(17,(unsigned int)0))}),((union ListCell){.ptr_value=(make_agg_arg(2281,(unsigned int)0))})' depends on order of evaluation of side effects
# 2114|   
# 2115|   	/* deserialfn always takes BYTEA, INTERNAL and returns INTERNAL */
# 2116|-> 	args = list_make2(make_agg_arg(BYTEAOID, InvalidOid),
# 2117|   					  make_agg_arg(INTERNALOID, InvalidOid));
# 2118|   

Error: CPPCHECK_WARNING (CWE-768): [#def943]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_clause.c:1670: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(l_colvar)},(union ListCell){.ptr_value=(r_colvar)}' depends on order of evaluation of side effects
# 1668|   
# 1669|   	outcoltype = select_common_type(pstate,
# 1670|-> 									list_make2(l_colvar, r_colvar),
# 1671|   									"JOIN/USING",
# 1672|   									NULL);

Error: CPPCHECK_WARNING (CWE-768): [#def944]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_clause.c:1674: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(l_colvar)},(union ListCell){.ptr_value=(r_colvar)}' depends on order of evaluation of side effects
# 1672|   									NULL);
# 1673|   	outcoltypmod = select_common_typmod(pstate,
# 1674|-> 										list_make2(l_colvar, r_colvar),
# 1675|   										outcoltype);
# 1676|   

Error: CPPCHECK_WARNING (CWE-768): [#def945]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_clause.c:1742: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(l_node)},(union ListCell){.ptr_value=(r_node)}' depends on order of evaluation of side effects
# 1740|   				c->coalescetype = outcoltype;
# 1741|   				/* coalescecollid will get set below */
# 1742|-> 				c->args = list_make2(l_node, r_node);
# 1743|   				c->location = -1;
# 1744|   				res_node = (Node *) c;

Error: CPPCHECK_WARNING (CWE-768): [#def946]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_collate.c:377: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(le)},(union ListCell){.ptr_value=(re)}' depends on order of evaluation of side effects
#  375|   
#  376|   					coll = select_common_collation(context->pstate,
#  377|-> 												   list_make2(le, re),
#  378|   												   true);
#  379|   					colls = lappend_oid(colls, coll);

Error: CPPCHECK_WARNING (CWE-768): [#def947]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_cte.c:276: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(cycle_clause->cycle_mark_value)},(union ListCell){.ptr_value=(cycle_clause->cycle_mark_default)}' depends on order of evaluation of side effects
#  274|   		cycle_clause->cycle_mark_type =
#  275|   			select_common_type(pstate,
#  276|-> 							   list_make2(cycle_clause->cycle_mark_value,
#  277|   										  cycle_clause->cycle_mark_default),
#  278|   							   "CYCLE", NULL);

Error: CPPCHECK_WARNING (CWE-768): [#def948]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_cte.c:292: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(cycle_clause->cycle_mark_value)},(union ListCell){.ptr_value=(cycle_clause->cycle_mark_default)}' depends on order of evaluation of side effects
#  290|   		cycle_clause->cycle_mark_typmod =
#  291|   			select_common_typmod(pstate,
#  292|-> 								 list_make2(cycle_clause->cycle_mark_value,
#  293|   											cycle_clause->cycle_mark_default),
#  294|   								 cycle_clause->cycle_mark_type);

Error: CPPCHECK_WARNING (CWE-768): [#def949]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_cte.c:298: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(cycle_clause->cycle_mark_value)},(union ListCell){.ptr_value=(cycle_clause->cycle_mark_default)}' depends on order of evaluation of side effects
#  296|   		cycle_clause->cycle_mark_collation =
#  297|   			select_common_collation(pstate,
#  298|-> 									list_make2(cycle_clause->cycle_mark_value,
#  299|   											   cycle_clause->cycle_mark_default),
#  300|   									true);

Error: CPPCHECK_WARNING (CWE-768): [#def950]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_expr.c:1239: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(result)},(union ListCell){.ptr_value=(cmp)}' depends on order of evaluation of side effects
# 1237|   		else
# 1238|   			result = (Node *) makeBoolExpr(useOr ? OR_EXPR : AND_EXPR,
# 1239|-> 										   list_make2(result, cmp),
# 1240|   										   a->location);
# 1241|   	}

Error: CPPCHECK_WARNING (CWE-768): [#def951]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_expr.c:1278: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,">=",aexpr,bexpr,a->location))}),((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,"<=",(typeof(aexpr))copyObjectImpl(aexpr),cexpr,a->location))})' depends on order of evaluation of side effects
# 1276|   	{
# 1277|   		case AEXPR_BETWEEN:
# 1278|-> 			args = list_make2(makeSimpleA_Expr(AEXPR_OP, ">=",
# 1279|   											   aexpr, bexpr,
# 1280|   											   a->location),

Error: CPPCHECK_WARNING (CWE-768): [#def952]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_expr.c:1287: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,"<",aexpr,bexpr,a->location))}),((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,">",(typeof(aexpr))copyObjectImpl(aexpr),cexpr,a->location))})' depends on order of evaluation of side effects
# 1285|   			break;
# 1286|   		case AEXPR_NOT_BETWEEN:
# 1287|-> 			args = list_make2(makeSimpleA_Expr(AEXPR_OP, "<",
# 1288|   											   aexpr, bexpr,
# 1289|   											   a->location),

Error: CPPCHECK_WARNING (CWE-768): [#def953]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_expr.c:1296: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,">=",aexpr,bexpr,a->location))}),((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,"<=",(typeof(aexpr))copyObjectImpl(aexpr),cexpr,a->location))})' depends on order of evaluation of side effects
# 1294|   			break;
# 1295|   		case AEXPR_BETWEEN_SYM:
# 1296|-> 			args = list_make2(makeSimpleA_Expr(AEXPR_OP, ">=",
# 1297|   											   aexpr, bexpr,
# 1298|   											   a->location),

Error: CPPCHECK_WARNING (CWE-768): [#def954]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_expr.c:1303: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,">=",(typeof(aexpr))copyObjectImpl(aexpr),(typeof(cexpr))copyObjectImpl(cexpr),a->location))}),((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,"<=",(typeof(aexpr))copyObjectImpl(aexpr),(typeof(bexpr))copyObjectImpl(bexpr),a->location))})' depends on order of evaluation of side effects
# 1301|   											   a->location));
# 1302|   			sub1 = (Node *) makeBoolExpr(AND_EXPR, args, a->location);
# 1303|-> 			args = list_make2(makeSimpleA_Expr(AEXPR_OP, ">=",
# 1304|   											   copyObject(aexpr), copyObject(cexpr),
# 1305|   											   a->location),

Error: CPPCHECK_WARNING (CWE-768): [#def955]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_expr.c:1310: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(sub1)},(union ListCell){.ptr_value=(sub2)}' depends on order of evaluation of side effects
# 1308|   											   a->location));
# 1309|   			sub2 = (Node *) makeBoolExpr(AND_EXPR, args, a->location);
# 1310|-> 			args = list_make2(sub1, sub2);
# 1311|   			result = (Node *) makeBoolExpr(OR_EXPR, args, a->location);
# 1312|   			break;

Error: CPPCHECK_WARNING (CWE-768): [#def956]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_expr.c:1314: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,"<",aexpr,bexpr,a->location))}),((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,">",(typeof(aexpr))copyObjectImpl(aexpr),cexpr,a->location))})' depends on order of evaluation of side effects
# 1312|   			break;
# 1313|   		case AEXPR_NOT_BETWEEN_SYM:
# 1314|-> 			args = list_make2(makeSimpleA_Expr(AEXPR_OP, "<",
# 1315|   											   aexpr, bexpr,
# 1316|   											   a->location),

Error: CPPCHECK_WARNING (CWE-768): [#def957]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_expr.c:1321: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,"<",(typeof(aexpr))copyObjectImpl(aexpr),(typeof(cexpr))copyObjectImpl(cexpr),a->location))}),((union ListCell){.ptr_value=(makeSimpleA_Expr(AEXPR_OP,">",(typeof(aexpr))copyObjectImpl(aexpr),(typeof(bexpr))copyObjectImpl(bexpr),a->location))})' depends on order of evaluation of side effects
# 1319|   											   a->location));
# 1320|   			sub1 = (Node *) makeBoolExpr(OR_EXPR, args, a->location);
# 1321|-> 			args = list_make2(makeSimpleA_Expr(AEXPR_OP, "<",
# 1322|   											   copyObject(aexpr), copyObject(cexpr),
# 1323|   											   a->location),

Error: CPPCHECK_WARNING (CWE-768): [#def958]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_expr.c:1328: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(sub1)},(union ListCell){.ptr_value=(sub2)}' depends on order of evaluation of side effects
# 1326|   											   a->location));
# 1327|   			sub2 = (Node *) makeBoolExpr(OR_EXPR, args, a->location);
# 1328|-> 			args = list_make2(sub1, sub2);
# 1329|   			result = (Node *) makeBoolExpr(AND_EXPR, args, a->location);
# 1330|   			break;

Error: CPPCHECK_WARNING (CWE-768): [#def959]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_expr.c:2974: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(result)},(union ListCell){.ptr_value=(cmp)}' depends on order of evaluation of side effects
# 2972|   		else
# 2973|   			result = (Node *) makeBoolExpr(OR_EXPR,
# 2974|-> 										   list_make2(result, cmp),
# 2975|   										   location);
# 2976|   	}

Error: CPPCHECK_WARNING (CWE-768): [#def960]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_expr.c:3196: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(expr)},(union ListCell){.ptr_value=(encoding)}' depends on order of evaluation of side effects
# 3194|   	Const	   *encoding = getJsonEncodingConst(format);
# 3195|   	FuncExpr   *fexpr = makeFuncExpr(F_CONVERT_FROM, TEXTOID,
# 3196|-> 									 list_make2(expr, encoding),
# 3197|   									 InvalidOid, InvalidOid,
# 3198|   									 COERCE_EXPLICIT_CALL);

Error: CPPCHECK_WARNING (CWE-768): [#def961]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_expr.c:3477: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(texpr)},(union ListCell){.ptr_value=(enc)}' depends on order of evaluation of side effects
# 3475|   		Const	   *enc = getJsonEncodingConst(returning->format);
# 3476|   		FuncExpr   *fexpr = makeFuncExpr(F_CONVERT_TO, BYTEAOID,
# 3477|-> 										 list_make2(texpr, enc),
# 3478|   										 InvalidOid, InvalidOid,
# 3479|   										 COERCE_EXPLICIT_CALL);

Error: CPPCHECK_WARNING (CWE-768): [#def962]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_expr.c:3633: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(pstrdup("q")))},(union ListCell){.ptr_value=(makeString(pstrdup("a")))}' depends on order of evaluation of side effects
# 3631|   	free_parsestate(qpstate);
# 3632|   
# 3633|-> 	colref->fields = list_make2(makeString(pstrdup("q")),
# 3634|   								makeString(pstrdup("a")));
# 3635|   	colref->location = ctor->location;

Error: CPPCHECK_WARNING (CWE-768): [#def963]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_expr.c:3775: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(key)},(union ListCell){.ptr_value=(val)}' depends on order of evaluation of side effects
# 3773|   								 agg->arg->value,
# 3774|   								 JS_FORMAT_DEFAULT);
# 3775|-> 	args = list_make2(key, val);
# 3776|   
# 3777|   	returning = transformJsonConstructorOutput(pstate, agg->constructor->output,

Error: CPPCHECK_WARNING (CWE-768): [#def964]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_func.c:1779: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(aarg->ptr_value)},(union ListCell){.ptr_value=(harg->ptr_value)}' depends on order of evaluation of side effects
# 1777|   		 */
# 1778|   		commontype = select_common_type(pstate,
# 1779|-> 										list_make2(lfirst(aarg), lfirst(harg)),
# 1780|   										"WITHIN GROUP",
# 1781|   										NULL);

Error: CPPCHECK_WARNING (CWE-768): [#def965]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_func.c:1783: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(aarg->ptr_value)},(union ListCell){.ptr_value=(harg->ptr_value)}' depends on order of evaluation of side effects
# 1781|   										NULL);
# 1782|   		commontypmod = select_common_typmod(pstate,
# 1783|-> 											list_make2(lfirst(aarg), lfirst(harg)),
# 1784|   											commontype);
# 1785|   

Error: CPPCHECK_WARNING (CWE-457): [#def966]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_func.c:2270: warning[uninitvar]: Uninitialized variable: argoids
# 2268|   	 */
# 2269|   	oid = LookupFuncNameInternal(func->args_unspecified ? objtype : OBJECT_ROUTINE,
# 2270|-> 								 func->objname, nargs, argoids,
# 2271|   								 false, missing_ok,
# 2272|   								 &lookupError);

Error: CPPCHECK_WARNING (CWE-768): [#def967]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_oper.c:733: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(ltree)},(union ListCell){.ptr_value=(rtree)}' depends on order of evaluation of side effects
#  731|   	{
#  732|   		/* otherwise, binary operator */
#  733|-> 		args = list_make2(ltree, rtree);
#  734|   		actual_arg_types[0] = ltypeId;
#  735|   		actual_arg_types[1] = rtypeId;

Error: CPPCHECK_WARNING (CWE-768): [#def968]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_oper.c:835: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(ltree)},(union ListCell){.ptr_value=(rtree)}' depends on order of evaluation of side effects
#  833|   				 parser_errposition(pstate, location)));
#  834|   
#  835|-> 	args = list_make2(ltree, rtree);
#  836|   	actual_arg_types[0] = ltypeId;
#  837|   	actual_arg_types[1] = rtypeId;

Error: CPPCHECK_WARNING (CWE-768): [#def969]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_utilcmd.c:516: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(snamespace))},(union ListCell){.ptr_value=(makeString(cxt->relation->relname))}' depends on order of evaluation of side effects
#  514|   	altseqstmt = makeNode(AlterSeqStmt);
#  515|   	altseqstmt->sequence = makeRangeVar(snamespace, sname, -1);
#  516|-> 	attnamelist = list_make3(makeString(snamespace),
#  517|   							 makeString(cxt->relation->relname),
#  518|   							 makeString(column->colname));

Error: CPPCHECK_WARNING (CWE-768): [#def970]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_utilcmd.c:516: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(snamespace))},(union ListCell){.ptr_value=(makeString(cxt->relation->relname))},(union ListCell){.ptr_value=(makeString(column->colname))}' depends on order of evaluation of side effects
#  514|   	altseqstmt = makeNode(AlterSeqStmt);
#  515|   	altseqstmt->sequence = makeRangeVar(snamespace, sname, -1);
#  516|-> 	attnamelist = list_make3(makeString(snamespace),
#  517|   							 makeString(cxt->relation->relname),
#  518|   							 makeString(column->colname));

Error: CPPCHECK_WARNING (CWE-768): [#def971]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_utilcmd.c:1120: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(cxt->relation->schemaname))},(union ListCell){.ptr_value=(makeString(cxt->relation->relname))}' depends on order of evaluation of side effects
# 1118|   
# 1119|   			stmt->objtype = OBJECT_COLUMN;
# 1120|-> 			stmt->object = (Node *) list_make3(makeString(cxt->relation->schemaname),
# 1121|   											   makeString(cxt->relation->relname),
# 1122|   											   makeString(def->colname));

Error: CPPCHECK_WARNING (CWE-768): [#def972]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_utilcmd.c:1120: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(cxt->relation->schemaname))},(union ListCell){.ptr_value=(makeString(cxt->relation->relname))},(union ListCell){.ptr_value=(makeString(def->colname))}' depends on order of evaluation of side effects
# 1118|   
# 1119|   			stmt->objtype = OBJECT_COLUMN;
# 1120|-> 			stmt->object = (Node *) list_make3(makeString(cxt->relation->schemaname),
# 1121|   											   makeString(cxt->relation->relname),
# 1122|   											   makeString(def->colname));

Error: CPPCHECK_WARNING (CWE-768): [#def973]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_utilcmd.c:1382: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(heapRel->schemaname))},(union ListCell){.ptr_value=(makeString(heapRel->relname))}' depends on order of evaluation of side effects
# 1380|   
# 1381|   				stmt->objtype = OBJECT_TABCONSTRAINT;
# 1382|-> 				stmt->object = (Node *) list_make3(makeString(heapRel->schemaname),
# 1383|   												   makeString(heapRel->relname),
# 1384|   												   makeString(n->conname));

Error: CPPCHECK_WARNING (CWE-768): [#def974]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_utilcmd.c:1382: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(heapRel->schemaname))},(union ListCell){.ptr_value=(makeString(heapRel->relname))},(union ListCell){.ptr_value=(makeString(n->conname))}' depends on order of evaluation of side effects
# 1380|   
# 1381|   				stmt->objtype = OBJECT_TABCONSTRAINT;
# 1382|-> 				stmt->object = (Node *) list_make3(makeString(heapRel->schemaname),
# 1383|   												   makeString(heapRel->relname),
# 1384|   												   makeString(n->conname));

Error: CPPCHECK_WARNING (CWE-768): [#def975]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_utilcmd.c:1673: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(nspname))},(union ListCell){.ptr_value=(makeString(oprname))}' depends on order of evaluation of side effects
# 1671|   					/* For simplicity we always schema-qualify the op name */
# 1672|   					nspname = get_namespace_name(operform->oprnamespace);
# 1673|-> 					namelist = list_make2(makeString(nspname),
# 1674|   										  makeString(oprname));
# 1675|   					index->excludeOpNames = lappend(index->excludeOpNames,

Error: CPPCHECK_WARNING (CWE-768): [#def976]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_utilcmd.c:2016: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(nsp_name))},(union ListCell){.ptr_value=(makeString(coll_name))}' depends on order of evaluation of side effects
# 2014|   	nsp_name = get_namespace_name(coll_rec->collnamespace);
# 2015|   	coll_name = pstrdup(NameStr(coll_rec->collname));
# 2016|-> 	result = list_make2(makeString(nsp_name), makeString(coll_name));
# 2017|   
# 2018|   	ReleaseSysCache(ht_coll);

Error: CPPCHECK_WARNING (CWE-768): [#def977]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_utilcmd.c:2046: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(nsp_name))},(union ListCell){.ptr_value=(makeString(opc_name))}' depends on order of evaluation of side effects
# 2044|   		char	   *opc_name = pstrdup(NameStr(opc_rec->opcname));
# 2045|   
# 2046|-> 		result = list_make2(makeString(nsp_name), makeString(opc_name));
# 2047|   	}
# 2048|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def978]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c: scope_hint: In function ‘core_yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8207:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8086:10: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8091:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8309:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8091:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8093:13: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8151:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8170:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8199:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8205:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8228:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8205:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8170:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8093:13: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8096:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8096:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8096:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8199:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8205:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8228:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/scan.c:8205:9: note: in expansion of macro ‘yy_flush_buffer’
# 8205|   	yy_flush_buffer( b , yyscanner);
# 8206|   
# 8207|-> 	b->yy_input_file = file;
# 8208|   	b->yy_fill_buffer = 1;
# 8209|   

Error: CPPCHECK_WARNING (CWE-768): [#def979]
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partbounds.c:3928: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(arg1)},(union ListCell){.ptr_value=(arrexpr)}' depends on order of evaluation of side effects
# 3926|   					saopexpr->useOr = true;
# 3927|   					saopexpr->inputcollid = key->partcollation[keynum];
# 3928|-> 					saopexpr->args = list_make2(arg1, arrexpr);
# 3929|   					saopexpr->location = -1;
# 3930|   

Error: CPPCHECK_WARNING (CWE-768): [#def980]
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partbounds.c:4020: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(relidConst)},(union ListCell){.ptr_value=(modulusConst)}' depends on order of evaluation of side effects
# 4018|   										true);
# 4019|   
# 4020|-> 	args = list_make3(relidConst, modulusConst, remainderConst);
# 4021|   	partexprs_item = list_head(key->partexprs);
# 4022|   

Error: CPPCHECK_WARNING (CWE-768): [#def981]
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partbounds.c:4020: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(relidConst)},(union ListCell){.ptr_value=(modulusConst)},(union ListCell){.ptr_value=(remainderConst)}' depends on order of evaluation of side effects
# 4018|   										true);
# 4019|   
# 4020|-> 	args = list_make3(relidConst, modulusConst, remainderConst);
# 4021|   	partexprs_item = list_head(key->partexprs);
# 4022|   

Error: CPPCHECK_WARNING (CWE-768): [#def982]
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partbounds.c:4191: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(nulltest)},(union ListCell){.ptr_value=(opexpr)}' depends on order of evaluation of side effects
# 4189|   		nulltest->location = -1;
# 4190|   
# 4191|-> 		result = opexpr ? list_make2(nulltest, opexpr) : list_make1(nulltest);
# 4192|   	}
# 4193|   	else

Error: CPPCHECK_WARNING (CWE-768): [#def983]
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partbounds.c:4209: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(nulltest)},(union ListCell){.ptr_value=(opexpr)}' depends on order of evaluation of side effects
# 4207|   			Expr	   *or;
# 4208|   
# 4209|-> 			or = makeBoolExpr(OR_EXPR, list_make2(nulltest, opexpr), -1);
# 4210|   			result = list_make1(or);
# 4211|   		}

Error: CPPCHECK_WARNING (CWE-768): [#def984]
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partprune.c:1852: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(new_booltest)},(union ListCell){.ptr_value=(nulltest)}' depends on order of evaluation of side effects
# 1850|   			nulltest->location = -1;
# 1851|   
# 1852|-> 			new_clauses = list_make2(new_booltest, nulltest);
# 1853|   			or_clause = list_make1(makeBoolExpr(OR_EXPR, new_clauses, -1));
# 1854|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def985]
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partprune.c: scope_hint: In function ‘perform_pruning_base_step’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partprune.c:3477:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lc2’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partprune.c: scope_hint: In function ‘perform_pruning_base_step’
# 3475|   
# 3476|   			/* Set up the stepcmpfuncs entry, unless we already did */
# 3477|-> 			cmpfn = lfirst_oid(lc2);
# 3478|   			Assert(OidIsValid(cmpfn));
# 3479|   			if (cmpfn != context->stepcmpfuncs[stateidx].fn_oid)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def986]
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partprune.c:3521:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘values[0]’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partprune.c: scope_hint: In function ‘perform_pruning_base_step’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partprune.c:54: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/partitioning/partprune.h:71:11: note: in definition of macro ‘PruneCxtStateIdx’
# 3519|   
# 3520|   		case PARTITION_STRATEGY_LIST:
# 3521|-> 			return get_matching_list_bounds(context,
# 3522|   											opstep->opstrategy,
# 3523|   											values[0], nvalues,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def987]
postgresql16-16.3-build/postgresql-16.3/src/backend/postmaster/postmaster.c: scope_hint: In function ‘ProcessStartupPacket’
postgresql16-16.3-build/postgresql-16.3/src/backend/postmaster/postmaster.c:2288:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/src/include/port/pg_crc32c.h:36: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/xlogrecord.h:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/xlogreader.h:41: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/xlogrecovery.h:14: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/postmaster/postmaster.c:94: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/port/pg_bswap.h:125:33: note: in expansion of macro ‘pg_bswap32’
postgresql16-16.3-build/postgresql-16.3/src/backend/postmaster/postmaster.c:1991:15: note: in expansion of macro ‘pg_ntoh32’
postgresql16-16.3-build/postgresql-16.3/src/include/port/pg_bswap.h:125:33: note: in expansion of macro ‘pg_bswap32’
postgresql16-16.3-build/postgresql-16.3/src/backend/postmaster/postmaster.c:1991:15: note: in expansion of macro ‘pg_ntoh32’
postgresql16-16.3-build/postgresql-16.3/src/include/common/ip.h:20: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/postmaster/postmaster.c:97: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/postmaster/postmaster.c:2263:21: note: in expansion of macro ‘PG_PROTOCOL_MINOR’
# 2286|   		if (strchr(port->user_name, '@') ==
# 2287|   			port->user_name + strlen(port->user_name) - 1)
# 2288|-> 			*strchr(port->user_name, '@') = '\0';
# 2289|   		else
# 2290|   		{

Error: GCC_ANALYZER_WARNING: [#def988]
postgresql16-16.3-build/postgresql-16.3/src/backend/postmaster/syslogger.c: scope_hint: In function ‘SysLoggerMain’
postgresql16-16.3-build/postgresql-16.3/src/backend/postmaster/syslogger.c:213:32: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
#  211|   		{
#  212|   			(void) dup2(fd, STDOUT_FILENO);
#  213|-> 			(void) dup2(fd, STDERR_FILENO);
#  214|   			close(fd);
#  215|   		}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def989]
postgresql16-16.3-build/postgresql-16.3/src/backend/regex/regexec.c:1514: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/regex/rege_dfa.c: scope_hint: In function ‘getvacant’
postgresql16-16.3-build/postgresql-16.3/src/backend/regex/rege_dfa.c:1021:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘<unknown>’
# 1019|   				lastap = ap;
# 1020|   			assert(ap.ss != NULL);
# 1021|-> 			lastap.ss->inchain[lastap.co] = ss->inchain[i];
# 1022|   		}
# 1023|   		ss->outs[i] = NULL;

Error: CPPCHECK_WARNING (CWE-457): [#def990]
postgresql16-16.3-build/postgresql-16.3/src/backend/regex/regexec.c:235: warning[uninitvar]: Uninitialized variable: v->pmatch
#  233|   		else
#  234|   			v->pmatch = (regmatch_t *) MALLOC(v->nmatch * sizeof(regmatch_t));
#  235|-> 		if (v->pmatch == NULL)
#  236|   			return REG_ESPACE;
#  237|   		zapallsubs(v->pmatch, v->nmatch);

Error: CPPCHECK_WARNING (CWE-457): [#def991]
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/logical/reorderbuffer.c:4701: error[legacyUninitvar]: Uninitialized variable: chunksize
# 4699|   		elog(ERROR, "unexpected type of toast chunk");
# 4700|   
# 4701|-> 	ent->size += chunksize;
# 4702|   	ent->last_chunk_seq = chunk_seq;
# 4703|   	ent->num_chunks++;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def992]
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_gram.c: scope_hint: In function ‘replication_yyparse’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_gram.c:507:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_gram.c:492:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_gram.c:1105:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_gram.c:492:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_gram.c:1105:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_gram.c:492:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_gram.c:1105:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  505|   #  if defined __GNUC__ && 1 < __GNUC__
#  506|   #   define YYCOPY(Dst, Src, Count) \
#  507|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  508|   #  else
#  509|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def993]
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_scanner.c: scope_hint: In function ‘replication_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_scanner.c:1971:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_scanner.c:1138:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_scanner.c:1158:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_scanner.c:1182:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_scanner.c:1182:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_scanner.c:2110:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_scanner.c:1182:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_scanner.c:1184:33: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_scanner.c:1957:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_scanner.c:1961:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_scanner.c: scope_hint: In function ‘replication_yy_create_buffer’
# 1969|   	 */
# 1970|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1971|-> 	if ( ! b->yy_ch_buf )
# 1972|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 1973|   

Error: CPPCHECK_WARNING (CWE-476): [#def994]
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_scanner.c:2011: warning[nullPointer]: Possible null pointer dereference: b
# 2009|   	yy_flush_buffer( b );
# 2010|   
# 2011|-> 	b->yy_input_file = file;
# 2012|   	b->yy_fill_buffer = 1;
# 2013|   

Error: CPPCHECK_WARNING (CWE-476): [#def995]
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/repl_scanner.c:2012: warning[nullPointer]: Possible null pointer dereference: b
# 2010|   
# 2011|   	b->yy_input_file = file;
# 2012|-> 	b->yy_fill_buffer = 1;
# 2013|   
# 2014|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: GCC_ANALYZER_WARNING (CWE-457): [#def996]
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_gram.c: scope_hint: In function ‘syncrep_yyparse’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_gram.c:461:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_gram.c:446:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_gram.c:989:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_gram.c:446:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_gram.c:989:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_gram.c:446:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_gram.c:989:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  459|   #  if defined __GNUC__ && 1 < __GNUC__
#  460|   #   define YYCOPY(Dst, Src, Count) \
#  461|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  462|   #  else
#  463|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def997]
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c:1361:46: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c:1363:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c:1363:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c: scope_hint: In function ‘yy_get_next_buffer’
# 1359|   					b->yy_buf_size *= 2;
# 1360|   
# 1361|-> 				b->yy_ch_buf = (char *)
# 1362|   					/* Include room in for 2 EOB chars. */
# 1363|   					yyrealloc( (void *) b->yy_ch_buf,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def998]
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c: scope_hint: In function ‘syncrep_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c:1646:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c:1632:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c:1636:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c: scope_hint: In function ‘syncrep_yy_create_buffer’
# 1644|   	 */
# 1645|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1646|-> 	if ( ! b->yy_ch_buf )
# 1647|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 1648|   

Error: CPPCHECK_WARNING (CWE-476): [#def999]
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c:1686: warning[nullPointer]: Possible null pointer dereference: b
# 1684|   	yy_flush_buffer( b );
# 1685|   
# 1686|-> 	b->yy_input_file = file;
# 1687|   	b->yy_fill_buffer = 1;
# 1688|   

Error: CPPCHECK_WARNING (CWE-476): [#def1000]
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c:1687: warning[nullPointer]: Possible null pointer dereference: b
# 1685|   
# 1686|   	b->yy_input_file = file;
# 1687|-> 	b->yy_fill_buffer = 1;
# 1688|   
# 1689|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1001]
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c: scope_hint: In function ‘syncrep_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c:1900:45: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c:1884:17: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c:1893:24: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c: scope_hint: In function ‘syncrep_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c:1902:13: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/replication/syncrep_scanner.c:1834:17: note: in expansion of macro ‘yy_scan_buffer’
# 1898|   		buf[i] = yybytes[i];
# 1899|   
# 1900|-> 	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1901|   
# 1902|   	b = yy_scan_buffer( buf, n );

Error: CPPCHECK_WARNING (CWE-768): [#def1002]
postgresql16-16.3-build/postgresql-16.3/src/backend/rewrite/rewriteSearchCycle.c:192: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(makeVar(1,path_varattno,2287,-1,0,0))}),(union ListCell){.ptr_value=(arr)}' depends on order of evaluation of side effects
#  190|   
#  191|   	fexpr = makeFuncExpr(F_ARRAY_CAT, RECORDARRAYOID,
#  192|-> 						 list_make2(makeVar(1, path_varattno, RECORDARRAYOID, -1, 0, 0),
#  193|   									arr),
#  194|   						 InvalidOid, InvalidOid, COERCE_EXPLICIT_CALL);

Error: CPPCHECK_WARNING (CWE-768): [#def1003]
postgresql16-16.3-build/postgresql-16.3/src/backend/rewrite/rewriteSearchCycle.c:558: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(cycle_col_rowexpr)},((union ListCell){.ptr_value=(makeVar(1,cpa_attno,2287,-1,0,0))})' depends on order of evaluation of side effects
#  556|   		saoe->opno = RECORD_EQ_OP;
#  557|   		saoe->useOr = true;
#  558|-> 		saoe->args = list_make2(cycle_col_rowexpr,
#  559|   								makeVar(1, cpa_attno, RECORDARRAYOID, -1, 0, 0));
#  560|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1004]
postgresql16-16.3-build/postgresql-16.3/src/backend/statistics/mvdistinct.c: scope_hint: In function ‘pg_ndistinct_out’
postgresql16-16.3-build/postgresql-16.3/src/backend/statistics/mvdistinct.c:366:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  364|   	appendStringInfoChar(&str, '{');
#  365|   
#  366|-> 	for (i = 0; i < ndist->nitems; i++)
#  367|   	{
#  368|   		int			j;

Error: CPPCHECK_WARNING (CWE-909): [#def1005]
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/lmgr/lmgr.c:731: error[uninitStructMember]: Uninitialized struct member: callback.previous
#  729|   
#  730|   	if (oper != XLTW_None)
#  731|-> 		error_context_stack = callback.previous;
#  732|   }
#  733|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1006]
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c: scope_hint: In function ‘compactify_tuples’
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c:524:47: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*itemidptr.itemoff’
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c: scope_hint: In function ‘compactify_tuples’
#  522|   		{
#  523|   			itemidptr = &itemidbase[i];
#  524|-> 			if (upper != itemidptr->itemoff + itemidptr->alignedlen)
#  525|   				break;
#  526|   			upper -= itemidptr->alignedlen;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1007]
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c:544:59: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*itemidptr.offsetindex’
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c: scope_hint: In function ‘compactify_tuples’
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c: scope_hint: In function ‘compactify_tuples’
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c: scope_hint: In function ‘compactify_tuples’
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c:745:29: note: in expansion of macro ‘ItemIdHasStorage’
#  542|   
#  543|   			itemidptr = &itemidbase[i];
#  544|-> 			lp = PageGetItemId(page, itemidptr->offsetindex + 1);
#  545|   
#  546|   			if (copy_head != itemidptr->itemoff + itemidptr->alignedlen)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1008]
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c:622:55: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*itemidptr.itemoff’
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c: scope_hint: In function ‘compactify_tuples’
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c: scope_hint: In function ‘compactify_tuples’
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c: scope_hint: In function ‘compactify_tuples’
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c:745:29: note: in expansion of macro ‘ItemIdHasStorage’
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c: scope_hint: In function ‘compactify_tuples’
#  620|   			{
#  621|   				itemidptr = &itemidbase[i];
#  622|-> 				if (upper != itemidptr->itemoff + itemidptr->alignedlen)
#  623|   					break;
#  624|   				upper -= itemidptr->alignedlen;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1009]
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c:648:59: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*itemidptr.offsetindex’
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c: scope_hint: In function ‘compactify_tuples’
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c: scope_hint: In function ‘compactify_tuples’
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c: scope_hint: In function ‘compactify_tuples’
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c:745:29: note: in expansion of macro ‘ItemIdHasStorage’
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/page/bufpage.c: scope_hint: In function ‘compactify_tuples’
#  646|   
#  647|   			itemidptr = &itemidbase[i];
#  648|-> 			lp = PageGetItemId(page, itemidptr->offsetindex + 1);
#  649|   
#  650|   			/* copy pending tuples when we detect a gap */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1010]
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/smgr/md.c: scope_hint: In function ‘mdextend’
postgresql16-16.3-build/postgresql-16.3/src/backend/storage/smgr/md.c:497:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  495|   	Assert(seekpos < (off_t) BLCKSZ * RELSEG_SIZE);
#  496|   
#  497|-> 	if ((nbytes = FileWrite(v->mdfd_vfd, buffer, BLCKSZ, seekpos, WAIT_EVENT_DATA_FILE_EXTEND)) != BLCKSZ)
#  498|   	{
#  499|   		if (nbytes < 0)

Error: CPPCHECK_WARNING (CWE-457): [#def1011]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/dict_synonym.c:230: error[uninitvar]: Uninitialized variables: &key.outlen, &key.flags
#  228|   	key.out = NULL;
#  229|   
#  230|-> 	found = (Syn *) bsearch(&key, d->syn, d->len, sizeof(Syn), compareSyn);
#  231|   	pfree(key.in);
#  232|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1012]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/ts_parse.c:82:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘res’
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/ts_parse.c: scope_hint: In function ‘RemoveHead’
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/ts_parse.c: scope_hint: In function ‘RemoveHead’
#   80|   	else
#   81|   		list->head = list->tail = newpl;
#   82|-> 	newpl->next = NULL;
#   83|   }
#   84|   

Error: CPPCHECK_WARNING (CWE-476): [#def1013]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser.c:198: error[nullPointer]: Null pointer dereference
#  196|   		}
#  197|   		st->list[st->cur].lexeme = palloc(llen + 1);
#  198|-> 		memcpy(st->list[st->cur].lexeme, lex, llen);
#  199|   		st->list[st->cur].lexeme[llen] = '\0';
#  200|   		st->list[st->cur].type = type;

Error: CPPCHECK_WARNING (CWE-476): [#def1014]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser.c:198: error[nullPointer]: Null pointer dereference: lex
#  196|   		}
#  197|   		st->list[st->cur].lexeme = palloc(llen + 1);
#  198|-> 		memcpy(st->list[st->cur].lexeme, lex, llen);
#  199|   		st->list[st->cur].lexeme[llen] = '\0';
#  200|   		st->list[st->cur].type = type;

Error: CPPCHECK_WARNING (CWE-476): [#def1015]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:453: error[ctunullpointer]: Null pointer dereference: prs
#  451|    * an alpha character, but not a member of other char classes.
#  452|    */
#  453|-> p_iswhat(alnum, 1)
#  454|   p_iswhat(alpha, 1)
#  455|   p_iswhat(digit, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def1016]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:453: warning[nullPointer]: Possible null pointer dereference: prs
#  451|    * an alpha character, but not a member of other char classes.
#  452|    */
#  453|-> p_iswhat(alnum, 1)
#  454|   p_iswhat(alpha, 1)
#  455|   p_iswhat(digit, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def1017]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:454: error[ctunullpointer]: Null pointer dereference: prs
#  452|    */
#  453|   p_iswhat(alnum, 1)
#  454|-> p_iswhat(alpha, 1)
#  455|   p_iswhat(digit, 0)
#  456|   p_iswhat(lower, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def1018]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:454: warning[nullPointer]: Possible null pointer dereference: prs
#  452|    */
#  453|   p_iswhat(alnum, 1)
#  454|-> p_iswhat(alpha, 1)
#  455|   p_iswhat(digit, 0)
#  456|   p_iswhat(lower, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def1019]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:455: error[ctunullpointer]: Null pointer dereference: prs
#  453|   p_iswhat(alnum, 1)
#  454|   p_iswhat(alpha, 1)
#  455|-> p_iswhat(digit, 0)
#  456|   p_iswhat(lower, 0)
#  457|   p_iswhat(print, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def1020]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:455: warning[nullPointer]: Possible null pointer dereference: prs
#  453|   p_iswhat(alnum, 1)
#  454|   p_iswhat(alpha, 1)
#  455|-> p_iswhat(digit, 0)
#  456|   p_iswhat(lower, 0)
#  457|   p_iswhat(print, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def1021]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:456: error[ctunullpointer]: Null pointer dereference: prs
#  454|   p_iswhat(alpha, 1)
#  455|   p_iswhat(digit, 0)
#  456|-> p_iswhat(lower, 0)
#  457|   p_iswhat(print, 0)
#  458|   p_iswhat(punct, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def1022]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:456: warning[nullPointer]: Possible null pointer dereference: prs
#  454|   p_iswhat(alpha, 1)
#  455|   p_iswhat(digit, 0)
#  456|-> p_iswhat(lower, 0)
#  457|   p_iswhat(print, 0)
#  458|   p_iswhat(punct, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def1023]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:457: error[ctunullpointer]: Null pointer dereference: prs
#  455|   p_iswhat(digit, 0)
#  456|   p_iswhat(lower, 0)
#  457|-> p_iswhat(print, 0)
#  458|   p_iswhat(punct, 0)
#  459|   p_iswhat(space, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def1024]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:457: warning[nullPointer]: Possible null pointer dereference: prs
#  455|   p_iswhat(digit, 0)
#  456|   p_iswhat(lower, 0)
#  457|-> p_iswhat(print, 0)
#  458|   p_iswhat(punct, 0)
#  459|   p_iswhat(space, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def1025]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:458: error[ctunullpointer]: Null pointer dereference: prs
#  456|   p_iswhat(lower, 0)
#  457|   p_iswhat(print, 0)
#  458|-> p_iswhat(punct, 0)
#  459|   p_iswhat(space, 0)
#  460|   p_iswhat(upper, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def1026]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:458: warning[nullPointer]: Possible null pointer dereference: prs
#  456|   p_iswhat(lower, 0)
#  457|   p_iswhat(print, 0)
#  458|-> p_iswhat(punct, 0)
#  459|   p_iswhat(space, 0)
#  460|   p_iswhat(upper, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def1027]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:459: error[ctunullpointer]: Null pointer dereference: prs
#  457|   p_iswhat(print, 0)
#  458|   p_iswhat(punct, 0)
#  459|-> p_iswhat(space, 0)
#  460|   p_iswhat(upper, 0)
#  461|   p_iswhat(xdigit, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def1028]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:459: warning[nullPointer]: Possible null pointer dereference: prs
#  457|   p_iswhat(print, 0)
#  458|   p_iswhat(punct, 0)
#  459|-> p_iswhat(space, 0)
#  460|   p_iswhat(upper, 0)
#  461|   p_iswhat(xdigit, 0)

Error: CPPCHECK_WARNING (CWE-476): [#def1029]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:460: error[ctunullpointer]: Null pointer dereference: prs
#  458|   p_iswhat(punct, 0)
#  459|   p_iswhat(space, 0)
#  460|-> p_iswhat(upper, 0)
#  461|   p_iswhat(xdigit, 0)
#  462|   

Error: CPPCHECK_WARNING (CWE-476): [#def1030]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:460: warning[nullPointer]: Possible null pointer dereference: prs
#  458|   p_iswhat(punct, 0)
#  459|   p_iswhat(space, 0)
#  460|-> p_iswhat(upper, 0)
#  461|   p_iswhat(xdigit, 0)
#  462|   

Error: CPPCHECK_WARNING (CWE-476): [#def1031]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:461: error[ctunullpointer]: Null pointer dereference: prs
#  459|   p_iswhat(space, 0)
#  460|   p_iswhat(upper, 0)
#  461|-> p_iswhat(xdigit, 0)
#  462|   
#  463|   /* p_iseq should be used only for ascii symbols */

Error: CPPCHECK_WARNING (CWE-476): [#def1032]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:461: warning[nullPointer]: Possible null pointer dereference: prs
#  459|   p_iswhat(space, 0)
#  460|   p_iswhat(upper, 0)
#  461|-> p_iswhat(xdigit, 0)
#  462|   
#  463|   /* p_iseq should be used only for ascii symbols */

Error: CPPCHECK_WARNING (CWE-476): [#def1033]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:469: error[ctunullpointer]: Null pointer dereference: prs
#  467|   {
#  468|   	Assert(prs->state);
#  469|-> 	return ((prs->state->charlen == 1 && *(prs->str + prs->state->posbyte) == c)) ? 1 : 0;
#  470|   }
#  471|   

Error: CPPCHECK_WARNING (CWE-476): [#def1034]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:469: warning[nullPointer]: Possible null pointer dereference: prs
#  467|   {
#  468|   	Assert(prs->state);
#  469|-> 	return ((prs->state->charlen == 1 && *(prs->str + prs->state->posbyte) == c)) ? 1 : 0;
#  470|   }
#  471|   

Error: CPPCHECK_WARNING (CWE-476): [#def1035]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:476: error[ctunullpointer]: Null pointer dereference: prs
#  474|   {
#  475|   	Assert(prs->state);
#  476|-> 	return (prs->state->posbyte == prs->lenstr || prs->state->charlen == 0) ? 1 : 0;
#  477|   }
#  478|   

Error: CPPCHECK_WARNING (CWE-476): [#def1036]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:476: warning[nullPointer]: Possible null pointer dereference: prs
#  474|   {
#  475|   	Assert(prs->state);
#  476|-> 	return (prs->state->posbyte == prs->lenstr || prs->state->charlen == 0) ? 1 : 0;
#  477|   }
#  478|   

Error: CPPCHECK_WARNING (CWE-476): [#def1037]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:482: warning[nullPointer]: Possible null pointer dereference: prs
#  480|   p_iseqC(TParser *prs)
#  481|   {
#  482|-> 	return p_iseq(prs, prs->c);
#  483|   }
#  484|   

Error: CPPCHECK_WARNING (CWE-476): [#def1038]
postgresql16-16.3-build/postgresql-16.3/src/backend/tsearch/wparser_def.c:488: warning[nullPointer]: Possible null pointer dereference: prs
#  486|   p_isneC(TParser *prs)
#  487|   {
#  488|-> 	return !p_iseq(prs, prs->c);
#  489|   }
#  490|   

Error: CPPCHECK_WARNING (CWE-457): [#def1039]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/activity/backend_status.c:1127: error[uninitvar]: Uninitialized variables: &key.backendStatus, &key.backend_xid, &key.backend_xmin, &key.backend_subxact_count, &key.backend_subxact_overflowed
# 1125|   	 */
# 1126|   	key.backend_id = beid;
# 1127|-> 	return bsearch(&key, localBackendStatusTable, localNumBackends,
# 1128|   				   sizeof(LocalPgBackendStatus), cmp_lbestatus);
# 1129|   }

Error: CPPCHECK_WARNING (CWE-457): [#def1040]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/arrayfuncs.c:1376: warning[uninitvar]: Uninitialized variable: dim
# 1374|   
# 1375|   	/* This checks for overflow of array dimensions */
# 1376|-> 	nitems = ArrayGetNItems(ndim, dim);
# 1377|   	ArrayCheckBounds(ndim, dim, lBound);
# 1378|   

Error: CPPCHECK_WARNING (CWE-457): [#def1041]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/arrayfuncs.c:1377: warning[uninitvar]: Uninitialized variable: lBound
# 1375|   	/* This checks for overflow of array dimensions */
# 1376|   	nitems = ArrayGetNItems(ndim, dim);
# 1377|-> 	ArrayCheckBounds(ndim, dim, lBound);
# 1378|   
# 1379|   	/*

Error: CPPCHECK_WARNING (CWE-457): [#def1042]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/arrayfuncs.c:1733: warning[uninitvar]: Uninitialized variable: buf
# 1731|   	}
# 1732|   
# 1733|-> 	PG_RETURN_TEXT_P(cstring_to_text(buf));
# 1734|   }
# 1735|   

Error: CPPCHECK_WARNING (CWE-457): [#def1043]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/arrayfuncs.c:2931: warning[uninitvar]: Uninitialized variable: dim
# 2929|   
# 2930|   		/* complain if too few source items; we ignore extras, however */
# 2931|-> 		if (nelems < ArrayGetNItems(nSubscripts, dim))
# 2932|   			ereport(ERROR,
# 2933|   					(errcode(ERRCODE_ARRAY_SUBSCRIPT_ERROR),

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1044]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/arrayfuncs.c: scope_hint: In function ‘array_contains_nulls’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/arrayfuncs.c:3801:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bitmap’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/arrayfuncs.c:29: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/arrayfuncs.c:3796:18: note: in expansion of macro ‘ARR_NULLBITMAP’
# 3799|   	while (nelems >= 8)
# 3800|   	{
# 3801|-> 		if (*bitmap != 0xFF)
# 3802|   			return true;
# 3803|   		bitmap++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1045]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/arrayfuncs.c:3811:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bitmap’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/arrayfuncs.c:3796:18: note: in expansion of macro ‘ARR_NULLBITMAP’
# 3809|   	while (nelems > 0)
# 3810|   	{
# 3811|-> 		if ((*bitmap & bitmask) == 0)
# 3812|   			return true;
# 3813|   		bitmask <<= 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1046]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/arrayfuncs.c: scope_hint: In function ‘array_bitmap_copy’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/arrayfuncs.c:4997:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘destbitmap’
# 4995|   	destbitmap += destoffset / 8;
# 4996|   	destbitmask = 1 << (destoffset % 8);
# 4997|-> 	destbitval = *destbitmap;
# 4998|   	if (srcbitmap)
# 4999|   	{

Error: CPPCHECK_WARNING (CWE-457): [#def1047]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/dbsize.c:604: warning[uninitvar]: Uninitialized variable: buf
#  602|   	}
#  603|   
#  604|-> 	PG_RETURN_TEXT_P(cstring_to_text(buf));
#  605|   }
#  606|   

Error: CPPCHECK_WARNING (CWE-457): [#def1048]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/inet_cidr_ntop.c:285: warning[uninitvar]: Uninitialized variable: outbuf
#  283|   	/* Format CIDR /width. */
#  284|   	(void) SPRINTF((cp, "/%u", bits));
#  285|-> 	if (strlen(outbuf) + 1 > size)
#  286|   		goto emsgsize;
#  287|   	strcpy(dst, outbuf);

Error: CPPCHECK_WARNING (CWE-457): [#def1049]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonb.c:127: error[legacyUninitvar]: Uninitialized variable: nbytes
#  125|   		elog(ERROR, "unsupported jsonb version number %d", version);
#  126|   
#  127|-> 	return jsonb_from_cstring(str, nbytes, NULL);
#  128|   }
#  129|   

Error: CPPCHECK_WARNING (CWE-457): [#def1050]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonb.c:127: error[legacyUninitvar]: Uninitialized variable: str
#  125|   		elog(ERROR, "unsupported jsonb version number %d", version);
#  126|   
#  127|-> 	return jsonb_from_cstring(str, nbytes, NULL);
#  128|   }
#  129|   

Error: CPPCHECK_WARNING (CWE-457): [#def1051]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonbsubs.c:155: error[legacyUninitvar]: Uninitialized variable: subExpr
#  153|   		}
#  154|   
#  155|-> 		upperIndexpr = lappend(upperIndexpr, subExpr);
#  156|   	}
#  157|   

Error: CPPCHECK_WARNING (CWE-476): [#def1052]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonfuncs.c:5538: warning[nullPointer]: Possible null pointer dereference: res
# 5536|   	}
# 5537|   
# 5538|-> 	if (res->type == jbvArray)
# 5539|   		res->val.array.rawScalar = is_scalar;
# 5540|   

Error: CPPCHECK_WARNING (CWE-457): [#def1053]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath.c:125: error[legacyUninitvar]: Uninitialized variable: nbytes
#  123|   		elog(ERROR, "unsupported jsonpath version number: %d", version);
#  124|   
#  125|-> 	return jsonPathFromCstring(str, nbytes, NULL);
#  126|   }
#  127|   

Error: CPPCHECK_WARNING (CWE-457): [#def1054]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath.c:125: error[legacyUninitvar]: Uninitialized variable: str
#  123|   		elog(ERROR, "unsupported jsonpath version number: %d", version);
#  124|   
#  125|-> 	return jsonPathFromCstring(str, nbytes, NULL);
#  126|   }
#  127|   

Error: CPPCHECK_WARNING (CWE-768): [#def1055]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_exec.c:2455: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(jvl->singleton)},(union ListCell){.ptr_value=(jbv)}' depends on order of evaluation of side effects
# 2453|   	if (jvl->singleton)
# 2454|   	{
# 2455|-> 		jvl->list = list_make2(jvl->singleton, jbv);
# 2456|   		jvl->singleton = NULL;
# 2457|   	}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1056]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_gram.c: scope_hint: In function ‘jsonpath_yyparse’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_gram.c:543:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_gram.c:528:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_gram.c:1209:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_gram.c:528:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_gram.c:1209:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_gram.c:528:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_gram.c:1209:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  541|   #  if defined __GNUC__ && 1 < __GNUC__
#  542|   #   define YYCOPY(Dst, Src, Count) \
#  543|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  544|   #  else
#  545|   #   define YYCOPY(Dst, Src, Count)              \

Error: CPPCHECK_WARNING (CWE-768): [#def1057]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_gram.y:201: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].value)},(union ListCell){.ptr_value=(yyvsp[0].value)}' depends on order of evaluation of side effects
#  199|   accessor_expr:
#  200|   	path_primary					{ $$ = list_make1($1); }
#  201|-> 	| '(' expr ')' accessor_op		{ $$ = list_make2($2, $4); }
#  202|   	| '(' predicate ')' accessor_op	{ $$ = list_make2($2, $4); }
#  203|   	| accessor_expr accessor_op		{ $$ = lappend($1, $2); }

Error: CPPCHECK_WARNING (CWE-768): [#def1058]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_gram.y:202: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].value)},(union ListCell){.ptr_value=(yyvsp[0].value)}' depends on order of evaluation of side effects
#  200|   	path_primary					{ $$ = list_make1($1); }
#  201|   	| '(' expr ')' accessor_op		{ $$ = list_make2($2, $4); }
#  202|-> 	| '(' predicate ')' accessor_op	{ $$ = list_make2($2, $4); }
#  203|   	| accessor_expr accessor_op		{ $$ = lappend($1, $2); }
#  204|   	;

Error: CPPCHECK_WARNING (CWE-476): [#def1059]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5370: warning[nullPointer]: Possible null pointer dereference: b
# 5368|   	yy_flush_buffer( b );
# 5369|   
# 5370|-> 	b->yy_input_file = file;
# 5371|   	b->yy_fill_buffer = 1;
# 5372|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1060]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c: scope_hint: In function ‘jsonpath_yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5370:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5254:10: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5258:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5469:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5258:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5260:13: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5316:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5335:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5363:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5368:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5391:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5368:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5335:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5260:13: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5263:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5263:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5263:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5363:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5368:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5391:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5368:9: note: in expansion of macro ‘yy_flush_buffer’
# 5368|   	yy_flush_buffer( b );
# 5369|   
# 5370|-> 	b->yy_input_file = file;
# 5371|   	b->yy_fill_buffer = 1;
# 5372|   

Error: CPPCHECK_WARNING (CWE-476): [#def1061]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/jsonpath_scan.c:5371: warning[nullPointer]: Possible null pointer dereference: b
# 5369|   
# 5370|   	b->yy_input_file = file;
# 5371|-> 	b->yy_fill_buffer = 1;
# 5372|   
# 5373|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: CPPCHECK_WARNING (CWE-476): [#def1062]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/lockfuncs.c:510: warning[nullPointer]: Possible null pointer dereference: blocked_instance
#  508|   
#  509|   		lockMethodTable = GetLockTagsMethodTable(&(blocked_instance->locktag));
#  510|-> 		conflictMask = lockMethodTable->conflictTab[blocked_instance->waitLockMode];
#  511|   
#  512|   		/* Now scan the PROCLOCK data for conflicting procs */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1063]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/lockfuncs.c: scope_hint: In function ‘pg_blocking_pids’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/lockfuncs.c:510:77: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘blocked_instance’
#  508|   
#  509|   		lockMethodTable = GetLockTagsMethodTable(&(blocked_instance->locktag));
#  510|-> 		conflictMask = lockMethodTable->conflictTab[blocked_instance->waitLockMode];
#  511|   
#  512|   		/* Now scan the PROCLOCK data for conflicting procs */

Error: CPPCHECK_WARNING (CWE-457): [#def1064]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/pg_locale.c:2025: error[legacyUninitvar]: Uninitialized variable: result
# 2023|   		PGLOCALE_SUPPORT_ERROR(locale->provider);
# 2024|   
# 2025|-> 	return result;
# 2026|   }
# 2027|   

Error: CPPCHECK_WARNING (CWE-457): [#def1065]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/pg_locale.c:2061: error[legacyUninitvar]: Uninitialized variable: result
# 2059|   		PGLOCALE_SUPPORT_ERROR(locale->provider);
# 2060|   
# 2061|-> 	return result;
# 2062|   }
# 2063|   

Error: CPPCHECK_WARNING (CWE-768): [#def1066]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/regproc.c:418: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(get_namespace_name_or_temp(procform->pronamespace))},(union ListCell){.ptr_value=(pstrdup(procform->proname.data))}' depends on order of evaluation of side effects
#  416|   	nargs = procform->pronargs;
#  417|   
#  418|-> 	*objnames = list_make2(get_namespace_name_or_temp(procform->pronamespace),
#  419|   						   pstrdup(NameStr(procform->proname)));
#  420|   	*objargs = NIL;

Error: CPPCHECK_WARNING (CWE-768): [#def1067]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/regproc.c:822: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(get_namespace_name_or_temp(oprForm->oprnamespace))},(union ListCell){.ptr_value=(pstrdup(oprForm->oprname.data))}' depends on order of evaluation of side effects
#  820|   
#  821|   	oprForm = (Form_pg_operator) GETSTRUCT(opertup);
#  822|-> 	*objnames = list_make2(get_namespace_name_or_temp(oprForm->oprnamespace),
#  823|   						   pstrdup(NameStr(oprForm->oprname)));
#  824|   	*objargs = NIL;

Error: CPPCHECK_WARNING (CWE-768): [#def1068]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/ruleutils.c:1073: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(oldrte)},(union ListCell){.ptr_value=(newrte)}' depends on order of evaluation of side effects
# 1071|   		/* Build two-element rtable */
# 1072|   		memset(&dpns, 0, sizeof(dpns));
# 1073|-> 		dpns.rtable = list_make2(oldrte, newrte);
# 1074|   		dpns.subplans = NIL;
# 1075|   		dpns.ctes = NIL;

Error: CPPCHECK_WARNING (CWE-562): [#def1069]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/ruleutils.c:11815: error[returnDanglingLifetime]: Returning pointer to local variable 'buf' that will be invalid when returning.
#11813|   	get_opclass_name(opclass, InvalidOid, &buf);
#11814|   
#11815|-> 	return &buf.data[1];		/* get_opclass_name() prepends space */
#11816|   }
#11817|   

Error: CPPCHECK_WARNING (CWE-768): [#def1070]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/selfuncs.c:1964: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftop)},((union ListCell){.ptr_value=(makeConst(nominal_element_type,-1,nominal_element_collation,elmlen,elem_values[i],elem_nulls[i],elmbyval))})' depends on order of evaluation of side effects
# 1962|   			Selectivity s2;
# 1963|   
# 1964|-> 			args = list_make2(leftop,
# 1965|   							  makeConst(nominal_element_type,
# 1966|   										-1,

Error: CPPCHECK_WARNING (CWE-768): [#def1071]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/selfuncs.c:2038: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftop)},(union ListCell){.ptr_value=(elem)}' depends on order of evaluation of side effects
# 2036|   			 * estimation function would really care ...
# 2037|   			 */
# 2038|-> 			args = list_make2(leftop, elem);
# 2039|   			if (is_join_clause)
# 2040|   				s2 = DatumGetFloat8(FunctionCall5Coll(&oprselproc,

Error: CPPCHECK_WARNING (CWE-768): [#def1072]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/selfuncs.c:2090: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftop)},(union ListCell){.ptr_value=(dummyexpr)}' depends on order of evaluation of side effects
# 2088|   		dummyexpr->typeMod = -1;
# 2089|   		dummyexpr->collation = clause->inputcollid;
# 2090|-> 		args = list_make2(leftop, dummyexpr);
# 2091|   		if (is_join_clause)
# 2092|   			s2 = DatumGetFloat8(FunctionCall5Coll(&oprselproc,

Error: CPPCHECK_WARNING (CWE-768): [#def1073]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/selfuncs.c:2183: error[unknownEvaluationOrder]: Expression 'T_List,((union ListCell){.ptr_value=(list_nth_cell(clause->largs,0)->ptr_value)}),((union ListCell){.ptr_value=(list_nth_cell(clause->rargs,0)->ptr_value)})' depends on order of evaluation of side effects
# 2181|   
# 2182|   	/* Build equivalent arg list for single operator */
# 2183|-> 	opargs = list_make2(linitial(clause->largs), linitial(clause->rargs));
# 2184|   
# 2185|   	/*

Error: CPPCHECK_WARNING (CWE-190): [#def1074]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/tsgistidx.c:193: error[integerOverflow]: Signed integer overflow for expression '*(int32*)&c'.
#  191|   			FIN_LEGACY_CRC32(c);
#  192|   
#  193|-> 			*arr = *(int32 *) &c;
#  194|   			arr++;
#  195|   			ptr++;

Error: CPPCHECK_WARNING (CWE-476): [#def1075]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/varlena.c:461: warning[nullPointer]: Possible null pointer dereference: rp
#  459|   		rp = result = NULL;		/* keep compiler quiet */
#  460|   	}
#  461|-> 	*rp = '\0';
#  462|   	PG_RETURN_CSTRING(result);
#  463|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1076]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/varlena.c: scope_hint: In function ‘text_position_next_internal’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/varlena.c:1401:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*state.skiptablemask’
postgresql16-16.3-build/postgresql-16.3/src/include/access/htup_details.h:22: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/executor/tuptable.h:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/tupconvert.h:20: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/execnodes.h:32: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/executor/execdesc.h:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/executor/executor.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/funcapi.h:21: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/varlena.c:27: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/varatt.h:318:10: note: in expansion of macro ‘VARATT_IS_1B_E’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/varlena.c:4384:27: note: in expansion of macro ‘VARSIZE_ANY_EXHDR’
postgresql16-16.3-build/postgresql-16.3/src/include/varatt.h:97:11: note: in definition of macro ‘VARTAG_SIZE’
postgresql16-16.3-build/postgresql-16.3/src/include/varatt.h:284:57: note: in expansion of macro ‘VARTAG_1B_E’
postgresql16-16.3-build/postgresql-16.3/src/include/varatt.h:285:90: note: in expansion of macro ‘VARTAG_EXTERNAL’
postgresql16-16.3-build/postgresql-16.3/src/include/varatt.h:318:32: note: in expansion of macro ‘VARSIZE_EXTERNAL’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/varlena.c:4384:27: note: in expansion of macro ‘VARSIZE_ANY_EXHDR’
postgresql16-16.3-build/postgresql-16.3/src/include/varatt.h:97:11: note: in definition of macro ‘VARTAG_SIZE’
postgresql16-16.3-build/postgresql-16.3/src/include/varatt.h:284:57: note: in expansion of macro ‘VARTAG_1B_E’
postgresql16-16.3-build/postgresql-16.3/src/include/varatt.h:285:90: note: in expansion of macro ‘VARTAG_EXTERNAL’
postgresql16-16.3-build/postgresql-16.3/src/include/varatt.h:318:32: note: in expansion of macro ‘VARSIZE_EXTERNAL’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/varlena.c:1215:40: note: in expansion of macro ‘VARSIZE_ANY_EXHDR’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/varlena.c: scope_hint: In function ‘text_position_next_internal’
# 1399|   	int			haystack_len = state->len1;
# 1400|   	int			needle_len = state->len2;
# 1401|-> 	int			skiptablemask = state->skiptablemask;
# 1402|   	const char *haystack = state->str1;
# 1403|   	const char *needle = state->str2;

Error: CPPCHECK_WARNING (CWE-768): [#def1077]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/adt/xml.c:610: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(DatumGetXmlP(fcinfo->args[0].value))},(union ListCell){.ptr_value=(DatumGetXmlP(fcinfo->args[1].value))}' depends on order of evaluation of side effects
#  608|   		PG_RETURN_XML_P(PG_GETARG_XML_P(0));
#  609|   	else
#  610|-> 		PG_RETURN_XML_P(xmlconcat(list_make2(PG_GETARG_XML_P(0),
#  611|   											 PG_GETARG_XML_P(1))));
#  612|   }

Error: CPPCHECK_WARNING (CWE-476): [#def1078]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/catcache.c:2125: warning[nullPointer]: Possible null pointer dereference: srckeys
# 2123|   		int			attnum = attnos[i];
# 2124|   		Form_pg_attribute att = TupleDescAttr(tupdesc, attnum - 1);
# 2125|-> 		Datum		src = srckeys[i];
# 2126|   		NameData	srcname;
# 2127|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1079]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/plancache.c: scope_hint: In function ‘PlanCacheComputeResultDesc’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/plancache.c:1940:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1938|   			query = QueryListGetPrimaryStmt(stmt_list);
# 1939|   			Assert(query->returningList);
# 1940|-> 			return ExecCleanTypeFromTL(query->returningList);
# 1941|   
# 1942|   		case PORTAL_UTIL_SELECT:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1080]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/ts_cache.c: scope_hint: In function ‘lookup_ts_config_cache’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/ts_cache.c:503:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&mapdicts’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/ts_cache.c:30: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/ts_cache.c:427:43: note: in expansion of macro ‘GETSTRUCT’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/ts_cache.c:487:80: note: in expansion of macro ‘GETSTRUCT’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/ts_cache.c:487:80: note: in expansion of macro ‘GETSTRUCT’
#  501|   						MemoryContextAlloc(CacheMemoryContext,
#  502|   										   sizeof(Oid) * ndicts);
#  503|-> 					memcpy(maplists[maxtokentype].dictIds, mapdicts,
#  504|   						   sizeof(Oid) * ndicts);
#  505|   				}

Error: CPPCHECK_WARNING (CWE-457): [#def1081]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/typcache.c:2711: warning[uninitvar]: Uninitialized variable: &srch.sort_order
# 2709|   
# 2710|   	srch.enum_oid = arg;
# 2711|-> 	return bsearch(&srch, enumdata->enum_values, enumdata->num_values,
# 2712|   				   sizeof(EnumItem), enum_oid_cmp);
# 2713|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1082]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/init/postinit.c: scope_hint: In function ‘process_startup_options’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/init/postinit.c:1298:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/init/postinit.c: scope_hint: In function ‘process_startup_options’
# 1296|   		gucopts = lnext(port->guc_options, gucopts);
# 1297|   
# 1298|-> 		value = lfirst(gucopts);
# 1299|   		gucopts = lnext(port->guc_options, gucopts);
# 1300|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1083]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.l: scope_hint: In function ‘ParseConfigFp’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:37:29: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.l:385:9: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.l:384:22: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1617:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1630:33: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c: scope_hint: In function ‘ParseConfigFp’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1636:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1664:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1669:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1692:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1669:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1636:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.l:384:22: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.l:385:9: note: in expansion of macro ‘yy_switch_to_buffer’
#   35|   #define yy_flush_buffer GUC_yy_flush_buffer
#   36|   #define yy_load_buffer_state GUC_yy_load_buffer_state
#   37|-> #define yy_switch_to_buffer GUC_yy_switch_to_buffer
#   38|   #define yypush_buffer_state GUC_yypush_buffer_state
#   39|   #define yypop_buffer_state GUC_yypop_buffer_state

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1084]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:37:29: warning[-Wanalyzer-malloc-leak]: leak of ‘GUC_yy_create_buffer(fp, 16384)’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.l:385:9: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.l:384:22: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1617:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1621:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c: scope_hint: In function ‘ParseConfigFp’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1636:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1664:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1669:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1692:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1669:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1636:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.l:384:22: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.l:385:9: note: in expansion of macro ‘yy_switch_to_buffer’
#   35|   #define yy_flush_buffer GUC_yy_flush_buffer
#   36|   #define yy_load_buffer_state GUC_yy_load_buffer_state
#   37|-> #define yy_switch_to_buffer GUC_yy_switch_to_buffer
#   38|   #define yypush_buffer_state GUC_yypush_buffer_state
#   39|   #define yypop_buffer_state GUC_yypop_buffer_state

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1085]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c: scope_hint: In function ‘GUC_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1631:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/postgres.h:46: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:10: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.l:384:22: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1617:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1621:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c: scope_hint: In function ‘GUC_yy_create_buffer’
# 1629|   	 */
# 1630|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1631|-> 	if ( ! b->yy_ch_buf )
# 1632|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 1633|   

Error: CPPCHECK_WARNING (CWE-476): [#def1086]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1671: warning[nullPointer]: Possible null pointer dereference: b
# 1669|   	yy_flush_buffer( b );
# 1670|   
# 1671|-> 	b->yy_input_file = file;
# 1672|   	b->yy_fill_buffer = 1;
# 1673|   

Error: CPPCHECK_WARNING (CWE-476): [#def1087]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/misc/guc-file.c:1672: warning[nullPointer]: Possible null pointer dereference: b
# 1670|   
# 1671|   	b->yy_input_file = file;
# 1672|-> 	b->yy_fill_buffer = 1;
# 1673|   
# 1674|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1088]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/aset.c: scope_hint: In function ‘AllocSetAlloc’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/aset.c:935:46: warning[-Wanalyzer-malloc-leak]: leak of ‘block’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/aset.c: scope_hint: In function ‘AllocSetAlloc’
#  933|   			if (blksize < required_size)
#  934|   				break;
#  935|-> 			block = (AllocBlock) malloc(blksize);
#  936|   		}
#  937|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1089]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/aset.c:938:20: warning[-Wanalyzer-malloc-leak]: leak of ‘block’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/aset.c: scope_hint: In function ‘AllocSetAlloc’
#  936|   		}
#  937|   
#  938|-> 		if (block == NULL)
#  939|   			return NULL;
#  940|   

Error: CPPCHECK_WARNING (CWE-401): [#def1090]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/aset.c:1159: error[memleakOnRealloc]: Common realloc mistake: 'block' nulled but not freed upon failure
# 1157|   		oldblksize = block->endptr - ((char *) block);
# 1158|   
# 1159|-> 		block = (AllocBlock) realloc(block, blksize);
# 1160|   		if (block == NULL)
# 1161|   		{

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1091]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/dsa.c: scope_hint: In function ‘dsa_free’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/dsa.c:852:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/dsa.c:54: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/dsa.c: scope_hint: In function ‘dsa_free’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/dsa.c:149:23: note: in expansion of macro ‘pg_leftmost_one_pos_size_t’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/dsa.c: scope_hint: In function ‘dsa_free’
#  850|   	span_pointer = segment_map->pagemap[pageno];
#  851|   	span = dsa_get_address(area, span_pointer);
#  852|-> 	superblock = dsa_get_address(area, span->start);
#  853|   	object = dsa_get_address(area, dp);
#  854|   	size_class = span->size_class;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1092]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/dsa.c: scope_hint: In function ‘destroy_superblock’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/dsa.c:1824:50: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1822|   {
# 1823|   	dsa_area_span *span = dsa_get_address(area, span_pointer);
# 1824|-> 	int			size_class = span->size_class;
# 1825|   	dsa_segment_map *segment_map;
# 1826|   

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def1093]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/dsa.c: scope_hint: In function ‘get_best_segment’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/dsa.c:2013:33: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘4294967295’) >= precision of type (‘64’)
postgresql16-16.3-build/postgresql-16.3/src/include/postgres.h:45: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/dsa.c:51: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/dsa.c:151:16: note: in expansion of macro ‘Min’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/dsa.c: scope_hint: In function ‘get_best_segment’
# 2011|   		 * have.  We'll re-bin if we see segments with fewer.
# 2012|   		 */
# 2013|-> 		size_t		threshold = (size_t) 1 << (bin - 1);
# 2014|   		dsa_segment_index segment_index;
# 2015|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1094]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/freepage.c: scope_hint: In function ‘FreePageManagerGetInternal’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/freepage.c:1441:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘result.index’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/freepage.h:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/freepage.c:58: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/freepage.c:1525:30: note: in expansion of macro ‘relptr_is_null’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/freepage.c:1343:21: note: in expansion of macro ‘relptr_is_null’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/freepage.c:1380:16: note: in expansion of macro ‘relptr_access’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/freepage.c:1388:23: note: in expansion of macro ‘fpm_pointer_to_page’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/freepage.c:1068:30: note: in expansion of macro ‘relptr_access’
# 1439|   		Assert(result.found);
# 1440|   		if (victim->npages == npages)
# 1441|-> 			FreePageBtreeRemove(fpm, result.page, result.index);
# 1442|   		else
# 1443|   		{

Error: CPPCHECK_WARNING (CWE-457): [#def1095]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/mmgr/freepage.c:1538: error[legacyUninitvar]: Uninitialized variable: root
# 1536|   
# 1537|   			/* Create the btree and move the preexisting range into it. */
# 1538|-> 			root->hdr.magic = FREE_PAGE_LEAF_MAGIC;
# 1539|   			root->hdr.nused = 1;
# 1540|   			relptr_store(base, root->hdr.parent, (FreePageBtree *) NULL);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1096]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/sort/sharedtuplestore.c: scope_hint: In function ‘sts_parallel_scan_next’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/sort/sharedtuplestore.c:546:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘read_page’
#  544|   
#  545|   			/* Seek and load the chunk header. */
#  546|-> 			if (BufFileSeekBlock(accessor->read_file, read_page) != 0)
#  547|   				ereport(ERROR,
#  548|   						(errcode_for_file_access(),

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1097]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_basebackup/bbstreamer_file.c: scope_hint: In function ‘create_file_for_extract’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_basebackup/bbstreamer_file.c:363:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "wb")’
#  361|   
#  362|   #ifndef WIN32
#  363|-> 	if (chmod(filename, mode))
#  364|   		pg_fatal("could not set permissions on file \"%s\": %m",
#  365|   				 filename);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1098]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_basebackup/bbstreamer_file.c:363:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "wb")’
#  361|   
#  362|   #ifndef WIN32
#  363|-> 	if (chmod(filename, mode))
#  364|   		pg_fatal("could not set permissions on file \"%s\": %m",
#  365|   				 filename);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1099]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_dump/compress_lz4.c: scope_hint: In function ‘LZ4Stream_open’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_dump/compress_lz4.c:727:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
#  725|   	}
#  726|   
#  727|-> 	state->fp = fp;
#  728|   
#  729|   	return true;

Error: CPPCHECK_WARNING (CWE-476): [#def1100]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_dump/parallel.c:504: warning[nullPointer]: Possible null pointer dereference: slot
#  502|   		/* On all platforms, update workerStatus and te[] as well */
#  503|   		Assert(j < pstate->numWorkers);
#  504|-> 		slot->workerStatus = WRKR_TERMINATED;
#  505|   		pstate->te[j] = NULL;
#  506|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1101]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_dump/parallel.c: scope_hint: In function ‘WaitForTerminatingWorkers’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_dump/parallel.c:504:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘slot’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_dump/parallel.c:84:11: note: in definition of macro ‘WORKER_IS_RUNNING’
#  502|   		/* On all platforms, update workerStatus and te[] as well */
#  503|   		Assert(j < pstate->numWorkers);
#  504|-> 		slot->workerStatus = WRKR_TERMINATED;
#  505|   		pstate->te[j] = NULL;
#  506|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def1102]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_dump/pg_backup_archiver.c:2161: warning[nullPointer]: Possible null pointer dereference: fh
# 2159|   	}
# 2160|   
# 2161|-> 	if ((cnt = fread(sig, 1, 5, fh)) != 5)
# 2162|   	{
# 2163|   		if (ferror(fh))

Error: CPPCHECK_WARNING (CWE-457): [#def1103]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_dump/pg_dump.c:1369: error[legacyUninitvar]: Uninitialized variable: archiveFormat
# 1367|   	else
# 1368|   		pg_fatal("invalid output format \"%s\" specified", format);
# 1369|-> 	return archiveFormat;
# 1370|   }
# 1371|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1104]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_dump/pg_dump.c: scope_hint: In function ‘dumpFunc’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_dump/pg_dump.c:11990:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘probin’
#11988|   		appendPQExpBufferStr(asPart, prosqlbody);
#11989|   	}
#11990|-> 	else if (probin[0] != '\0')
#11991|   	{
#11992|   		appendPQExpBufferStr(asPart, "AS ");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1105]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_dump/pg_dump.c: scope_hint: In function ‘dumpCollation’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_dump/pg_dump.c:13462:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘collcollate’
#13460|   	if (fout->remoteVersion < 150000)
#13461|   	{
#13462|-> 		if (collcollate[0] == '\0')
#13463|   			collcollate = NULL;
#13464|   		if (collctype[0] == '\0')

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1106]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_dump/pg_dump.c:13464:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘collctype’
#13462|   		if (collcollate[0] == '\0')
#13463|   			collcollate = NULL;
#13464|-> 		if (collctype[0] == '\0')
#13465|   			collctype = NULL;
#13466|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1107]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_dump/pg_dump.c: scope_hint: In function ‘dumpSequence’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_dump/pg_dump.c:17152:57: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘owning_tab’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_dump/pg_dump.c:17125:51: note: in expansion of macro ‘fmtQualifiedDumpable’
#17150|   	{
#17151|   		appendPQExpBufferStr(query, "\n);\n");
#17152|-> 		if (tbinfo->relpersistence != owning_tab->relpersistence)
#17153|   			appendPQExpBuffer(query,
#17154|   							  "ALTER SEQUENCE %s SET %s;\n",

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1108]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_resetwal/pg_resetwal.c: scope_hint: In function ‘CheckDataVersion’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_resetwal/pg_resetwal.c:524:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("PG_VERSION", "r")’
#  522|   	if (!fgets(rawline, sizeof(rawline), ver_fd))
#  523|   	{
#  524|-> 		if (!ferror(ver_fd))
#  525|   			pg_fatal("unexpected empty file \"%s\"", ver_file);
#  526|   		else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1109]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_resetwal/pg_resetwal.c:524:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("PG_VERSION", "r")’
#  522|   	if (!fgets(rawline, sizeof(rawline), ver_fd))
#  523|   	{
#  524|-> 		if (!ferror(ver_fd))
#  525|   			pg_fatal("unexpected empty file \"%s\"", ver_file);
#  526|   		else

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1110]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_resetwal/pg_resetwal.c:533:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("PG_VERSION", "r")’
#  531|   	(void) pg_strip_crlf(rawline);
#  532|   
#  533|-> 	if (strcmp(rawline, PG_MAJORVERSION) != 0)
#  534|   	{
#  535|   		pg_log_error("data directory is of wrong version");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1111]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_resetwal/pg_resetwal.c:533:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("PG_VERSION", "r")’
#  531|   	(void) pg_strip_crlf(rawline);
#  532|   
#  533|-> 	if (strcmp(rawline, PG_MAJORVERSION) != 0)
#  534|   	{
#  535|   		pg_log_error("data directory is of wrong version");

Error: GCC_ANALYZER_WARNING (CWE-835): [#def1112]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_test_fsync/pg_test_fsync.c: scope_hint: In function ‘test_sync’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_test_fsync/pg_test_fsync.c:312:47: warning[-Wanalyzer-infinite-loop]: infinite loop
#  310|   	{
#  311|   		START_TIMER;
#  312|-> 		for (ops = 0; alarm_triggered == false; ops++)
#  313|   		{
#  314|   			for (writes = 0; writes < writes_per_op; writes++)

Error: GCC_ANALYZER_WARNING (CWE-835): [#def1113]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_test_fsync/pg_test_fsync.c:415:47: warning[-Wanalyzer-infinite-loop]: infinite loop
#  413|   	{
#  414|   		START_TIMER;
#  415|-> 		for (ops = 0; alarm_triggered == false; ops++)
#  416|   		{
#  417|   			for (writes = 0; writes < writes_per_op; writes++)

Error: GCC_ANALYZER_WARNING (CWE-835): [#def1114]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_test_fsync/pg_test_fsync.c: scope_hint: In function ‘test_open_sync’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_test_fsync/pg_test_fsync.c:480:47: warning[-Wanalyzer-infinite-loop]: infinite loop
#  478|   	{
#  479|   		START_TIMER;
#  480|-> 		for (ops = 0; alarm_triggered == false; ops++)
#  481|   		{
#  482|   			for (writes = 0; writes < 16 / writes_size; writes++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1115]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/controldata.c: scope_hint: In function ‘get_control_data’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/controldata.c:139:36: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
#  137|   				p = strchr(p, ':');
#  138|   
#  139|-> 				if (p == NULL || strlen(p) <= 1)
#  140|   					pg_fatal("%d: database cluster state problem", __LINE__);
#  141|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1116]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/controldata.c:139:47: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
#  137|   				p = strchr(p, ':');
#  138|   
#  139|-> 				if (p == NULL || strlen(p) <= 1)
#  140|   					pg_fatal("%d: database cluster state problem", __LINE__);
#  141|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1117]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/controldata.c:153:40: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
#  151|   				 */
#  152|   				/* remove leading spaces */
#  153|-> 				while (*p == ' ')
#  154|   					p++;
#  155|   				if (strcmp(p, "shut down in recovery\n") == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1118]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/controldata.c:14: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/controldata.c:203:38: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/pg_upgrade.h:27:35: note: in definition of macro ‘GET_MAJOR_VERSION’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/pg_upgrade.h:27:35: note: in definition of macro ‘GET_MAJOR_VERSION’
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:1375: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/postgres_fe.h:25: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/controldata.c:10: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/controldata.c:192:9: note: in expansion of macro ‘snprintf’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/controldata.c:192:9: note: in expansion of macro ‘snprintf’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/pg_upgrade.h:27:35: note: in definition of macro ‘GET_MAJOR_VERSION’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/pg_upgrade.h:27:35: note: in definition of macro ‘GET_MAJOR_VERSION’
#  201|   
#  202|   	/* Only in <= 9.2 */
#  203|-> 	if (GET_MAJOR_VERSION(cluster->major_version) <= 902)
#  204|   	{
#  205|   		cluster->controldata.data_checksum_version = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1119]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/exec.c: scope_hint: In function ‘get_bin_version’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/exec.c:45:48: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:1375: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/postgres_fe.h:25: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/exec.c:10: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/exec.c:443:9: note: in expansion of macro ‘snprintf’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/exec.c:443:9: note: in expansion of macro ‘snprintf’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/exec.c:443:9: note: in expansion of macro ‘snprintf’
#   43|   	fflush(NULL);
#   44|   
#   45|-> 	if ((output = popen(cmd, "r")) == NULL ||
#   46|   		fgets(cmd_output, sizeof(cmd_output), output) == NULL)
#   47|   		pg_fatal("could not get pg_ctl version data using %s: %s",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1120]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/option.c: scope_hint: In function ‘adjust_data_dir’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/option.c:428:48: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
#  426|   	fflush(NULL);
#  427|   
#  428|-> 	if ((output = popen(cmd, "r")) == NULL ||
#  429|   		fgets(cmd_output, sizeof(cmd_output), output) == NULL)
#  430|   		pg_fatal("could not get data directory using %s: %s",

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1121]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/option.c: scope_hint: In function ‘get_sock_dir’
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/option.c:483:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename, "r")’
#  481|   			 lineno++)
#  482|   		{
#  483|-> 			if (fgets(line, sizeof(line), fp) == NULL)
#  484|   				pg_fatal("could not read line %d from file \"%s\": %s",
#  485|   						 lineno, filename, strerror(errno));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1122]
postgresql16-16.3-build/postgresql-16.3/src/bin/pg_upgrade/option.c:483:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&filename, "r")’
#  481|   			 lineno++)
#  482|   		{
#  483|-> 			if (fgets(line, sizeof(line), fp) == NULL)
#  484|   				pg_fatal("could not read line %d from file \"%s\": %s",
#  485|   						 lineno, filename, strerror(errno));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1123]
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c: scope_hint: In function ‘expr_yyparse’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:436:21: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:122:40: note: in definition of macro ‘YY_CAST’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:422:25: note: in expansion of macro ‘YYMALLOC’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:1126:20: note: in expansion of macro ‘YYSTACK_ALLOC’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:1174:16: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:1195:17: note: in expansion of macro ‘YYTRANSLATE’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:122:40: note: in definition of macro ‘YY_CAST’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:422:25: note: in expansion of macro ‘YYMALLOC’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:1126:20: note: in expansion of macro ‘YYSTACK_ALLOC’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:481:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:1129:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:1174:16: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:122:40: note: in definition of macro ‘YY_CAST’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:422:25: note: in expansion of macro ‘YYMALLOC’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:1126:20: note: in expansion of macro ‘YYSTACK_ALLOC’
#  434|   #  endif
#  435|   #  ifndef YYMALLOC
#  436|-> #   define YYMALLOC malloc
#  437|   #   if ! defined malloc && ! defined EXIT_SUCCESS
#  438|   void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1124]
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:496:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:481:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:1129:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:481:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:1129:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:481:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprparse.c:1129:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  494|   #  if defined __GNUC__ && 1 < __GNUC__
#  495|   #   define YYCOPY(Dst, Src, Count) \
#  496|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  497|   #  else
#  498|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1125]
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c: scope_hint: In function ‘expr_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:2001:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.l:343:14: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1022:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1043:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.l:221:55: note: in expansion of macro ‘yytext’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.l:295:31: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1022:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1043:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1072:33: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1987:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1991:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c: scope_hint: In function ‘expr_yy_create_buffer’
# 1999|   	 */
# 2000|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 2001|-> 	if ( ! b->yy_ch_buf )
# 2002|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 2003|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1126]
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c: scope_hint: In function ‘expr_yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:2043:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.l:343:14: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1022:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1043:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1744:25: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1744:25: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1922:10: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1932:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1932:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1932:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:2035:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:2041:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:2064:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:2041:9: note: in expansion of macro ‘yy_flush_buffer’
# 2041|   	yy_flush_buffer( b , yyscanner);
# 2042|   
# 2043|-> 	b->yy_input_file = file;
# 2044|   	b->yy_fill_buffer = 1;
# 2045|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1127]
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c: scope_hint: In function ‘expr_yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:2165:42: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(8)’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.l:335:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.l:335:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1940:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1949:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:2145:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:2157:66: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c: scope_hint: In function ‘expr_yyensure_buffer_stack’
# 2163|   		memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
# 2164|   
# 2165|-> 		yyg->yy_buffer_stack_max = num_to_alloc;
# 2166|   		yyg->yy_buffer_stack_top = 0;
# 2167|   		return;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1128]
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:2185:42: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.l:335:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.l:335:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1940:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:1949:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:2145:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c:2176:66: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/exprscan.c: scope_hint: In function ‘expr_yyensure_buffer_stack’
# 2183|   		/* zero only the new slots.*/
# 2184|   		memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
# 2185|-> 		yyg->yy_buffer_stack_max = num_to_alloc;
# 2186|   	}
# 2187|   }

Error: CPPCHECK_WARNING (CWE-457): [#def1129]
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/pgbench.c:1617: warning[uninitvar]: Uninitialized variables: &key.svalue, &key.value
# 1615|   	/* Now we can search */
# 1616|   	key.name = name;
# 1617|-> 	return (Variable *) bsearch(&key,
# 1618|   								variables->vars,
# 1619|   								variables->nvars,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1130]
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/pgbench.c: scope_hint: In function ‘coerceToInt’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/pgbench.c:2042:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pval.type’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/pgbench.c: scope_hint: In function ‘coerceToInt’
# 2040|   coerceToInt(PgBenchValue *pval, int64 *ival)
# 2041|   {
# 2042|-> 	if (pval->type == PGBT_INT)
# 2043|   	{
# 2044|   		*ival = pval->u.ival;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1131]
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/pgbench.c: scope_hint: In function ‘coerceToDouble’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/pgbench.c:2070:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pval.type’
postgresql16-16.3-build/postgresql-16.3/src/bin/pgbench/pgbench.c: scope_hint: In function ‘coerceToDouble’
# 2068|   coerceToDouble(PgBenchValue *pval, double *dval)
# 2069|   {
# 2070|-> 	if (pval->type == PGBT_DOUBLE)
# 2071|   	{
# 2072|   		*dval = pval->u.dval;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1132]
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/common.c: scope_hint: In function ‘ExecQueryUsingCursor’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/common.c:1858:30: warning[-Wanalyzer-file-leak]: leak of FILE ‘fout’
# 1856|   			 * only one pager instance is used for the whole mess
# 1857|   			 */
# 1858|-> 			fout = PageOutput(INT_MAX, &(my_popt.topt));
# 1859|   			is_pager = true;
# 1860|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1133]
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/common.c:1858:30: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
# 1856|   			 * only one pager instance is used for the whole mess
# 1857|   			 */
# 1858|-> 			fout = PageOutput(INT_MAX, &(my_popt.topt));
# 1859|   			is_pager = true;
# 1860|   		}

Error: GCC_ANALYZER_WARNING (CWE-762): [#def1134]
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/copy.c: scope_hint: In function ‘do_copy’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/copy.c:351:25: warning[-Wanalyzer-mismatching-deallocation]: ‘copystream’ should have been deallocated with ‘pclose’ but was deallocated with ‘fclose’
#  349|   		if (result < 0 || S_ISDIR(st.st_mode))
#  350|   		{
#  351|-> 			fclose(copystream);
#  352|   			free_copy_options(options);
#  353|   			return false;

Error: CPPCHECK_WARNING (CWE-457): [#def1135]
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/crosstabview.c:362: error[uninitvar]: Uninitialized variables: &elt.sort_value, &elt.rank
#  360|   		else
#  361|   			elt.name = NULL;
#  362|-> 		rp = (pivot_field *) bsearch(&elt,
#  363|   									 piv_rows,
#  364|   									 num_rows,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1136]
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/crosstabview.c: scope_hint: In function ‘printCrosstab’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/crosstabview.c:368:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  366|   									 pivotFieldCompare);
#  367|   		Assert(rp != NULL);
#  368|-> 		row_number = rp->rank;
#  369|   
#  370|   		/* Find target column */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1137]
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/crosstabview.c:382:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/crosstabview.c: scope_hint: In function ‘printCrosstab’
#  380|   									 pivotFieldCompare);
#  381|   		Assert(cp != NULL);
#  382|-> 		col_number = cp->rank;
#  383|   
#  384|   		/* Place value into cell */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1138]
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:517:53: warning[-Wanalyzer-malloc-leak]: leak of ‘slash_yy_create_buffer(*(struct yyguts_t *)yyscanner.yyin_r, 16384,  yyscanner)’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2569:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.l:682:3: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2425:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2434:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2630:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2434:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2435:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.l:682:3: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.l:688:2: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1437:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1458:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1484:24: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1485:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1485:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2630:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1485:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1487:33: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2472:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2476:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2491:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2520:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2526:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2549:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2569:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2569:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2526:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2535:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2535:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2491:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1487:33: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2569:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
#  515|    */
#  516|   #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
#  517|->                           ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
#  518|                             : NULL)
#  519|   /* Same as previous macro, but useful when we know that the buffer stack is not

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1139]
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1486:50: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.l:682:3: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2425:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2434:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2630:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2434:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2435:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.l:682:3: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.l:688:2: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1437:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1458:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1484:24: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1485:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1485:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2630:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1485:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1487:33: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2472:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2485:33: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2491:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2520:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2526:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2549:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2569:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2569:19: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2526:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2535:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2535:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2491:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1487:33: note: in expansion of macro ‘yy_create_buffer’
# 1484|   		if ( ! YY_CURRENT_BUFFER ) {
# 1485|   			yyensure_buffer_stack (yyscanner);
# 1486|-> 			YY_CURRENT_BUFFER_LVALUE =
# 1487|   				yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
# 1488|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1140]
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2486:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.l:680:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2425:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2434:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2630:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2434:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2435:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.l:680:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.l:688:2: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1437:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1458:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1484:24: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1485:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1485:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2630:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1485:25: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1487:33: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2472:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2476:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yy_create_buffer’
# 2484|   	 */
# 2485|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 2486|-> 	if ( ! b->yy_ch_buf )
# 2487|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 2488|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1141]
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2528:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.l:680:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2425:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2434:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2630:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2434:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2435:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.l:680:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.l:688:2: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1437:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:1458:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2254:25: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2254:25: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2407:10: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2417:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2417:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2417:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2520:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2526:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2549:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2526:9: note: in expansion of macro ‘yy_flush_buffer’
# 2526|   	yy_flush_buffer( b , yyscanner);
# 2527|   
# 2528|-> 	b->yy_input_file = file;
# 2529|   	b->yy_fill_buffer = 1;
# 2530|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1142]
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2650:42: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(8)’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.l:577:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.l:577:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2425:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2434:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2630:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2642:66: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yyensure_buffer_stack’
# 2648|   		memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
# 2649|   
# 2650|-> 		yyg->yy_buffer_stack_max = num_to_alloc;
# 2651|   		yyg->yy_buffer_stack_top = 0;
# 2652|   		return;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1143]
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2670:42: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.l:577:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.l:577:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2425:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2434:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2630:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c:2661:66: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.c: scope_hint: In function ‘slash_yyensure_buffer_stack’
# 2668|   		/* zero only the new slots.*/
# 2669|   		memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
# 2670|-> 		yyg->yy_buffer_stack_max = num_to_alloc;
# 2671|   	}
# 2672|   }

Error: CPPCHECK_WARNING (CWE-562): [#def1144]
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.l:499: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  497|   	/* Set current output target */
#  498|   	state->output_buf = &mybuf;
#  499|-> 
#  500|   	/* Set input source */
#  501|   	if (state->buffer_stack != NULL)

Error: CPPCHECK_WARNING (CWE-562): [#def1145]
postgresql16-16.3-build/postgresql-16.3/src/bin/psql/psqlscanslash.l:573: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  571|   	/* Set current output target */
#  572|   	state->output_buf = &mybuf;
#  573|-> 
#  574|   	/* Set input source */
#  575|   	if (state->buffer_stack != NULL)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1146]
postgresql16-16.3-build/postgresql-16.3/src/bin/scripts/vacuumdb.c: scope_hint: In function ‘vacuum_one_database’
postgresql16-16.3-build/postgresql-16.3/src/bin/scripts/vacuumdb.c:849:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cell’
#  847|   						   echo, tabname);
#  848|   
#  849|-> 		cell = cell->next;
#  850|   	} while (cell != NULL);
#  851|   

Error: CPPCHECK_WARNING (CWE-457): [#def1147]
postgresql16-16.3-build/postgresql-16.3/src/common/encnames.c:541: warning[uninitvar]: Uninitialized variable: newkey
#  539|   	}
#  540|   	*np = '\0';
#  541|-> 	return newkey;
#  542|   }
#  543|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1148]
postgresql16-16.3-build/postgresql-16.3/src/common/sprompt.c: scope_hint: In function ‘simple_prompt_extended’
postgresql16-16.3-build/postgresql-16.3/src/common/sprompt.c:180:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
#  178|   	}
#  179|   
#  180|-> 	return result;
#  181|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1149]
postgresql16-16.3-build/postgresql-16.3/src/common/sprompt.c:180:16: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
#  178|   	}
#  179|   
#  180|-> 	return result;
#  181|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1150]
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/print.c: scope_hint: In function ‘print_aligned_text’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/print.c:909:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘width_header’
#  907|   			 * display across multiple lines.  We check for both cases below.
#  908|   			 */
#  909|-> 			if (width > 0 && width_wrap[i])
#  910|   			{
#  911|   				unsigned int extra_lines;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1151]
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/print.c:1040:17: warning[-Wanalyzer-null-argument]: use of NULL ‘bytes_output’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
# 1038|   		}
# 1039|   
# 1040|-> 		memset(bytes_output, 0, col_count * sizeof(int));
# 1041|   
# 1042|   		/*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1152]
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/print.c:1219:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:59: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/postgres_fe.h:25: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/print.c:18: included_from: Included from here.
# 1217|   	free(wrap);
# 1218|   
# 1219|-> 	if (is_local_pager)
# 1220|   		ClosePager(fout);
# 1221|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1153]
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c: scope_hint: In function ‘psql_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4373:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.l:1136:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4312:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4321:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4517:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4321:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.l:1136:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.l:1141:14: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:2881:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:2902:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4141:25: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4141:25: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4294:10: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4299:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4301:13: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4359:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4363:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c: scope_hint: In function ‘psql_yy_create_buffer’
# 4371|   	 */
# 4372|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 4373|-> 	if ( ! b->yy_ch_buf )
# 4374|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 4375|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1154]
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c: scope_hint: In function ‘psql_yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4415:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.l:1136:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4312:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4321:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4517:13: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4321:9: note: in expansion of macro ‘yyensure_buffer_stack’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.l:1136:10: note: in expansion of macro ‘yy_switch_to_buffer’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.l:1141:14: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:2881:21: note: in expansion of macro ‘yylex’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:2902:1: note: in expansion of macro ‘YY_DECL’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4141:25: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4141:25: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4294:10: note: in expansion of macro ‘yyrestart’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4304:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4304:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4304:9: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4407:17: note: in expansion of macro ‘yy_init_buffer’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4413:9: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4436:10: note: in expansion of macro ‘yy_flush_buffer’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/psqlscan.c:4413:9: note: in expansion of macro ‘yy_flush_buffer’
# 4413|   	yy_flush_buffer( b , yyscanner);
# 4414|   
# 4415|-> 	b->yy_input_file = file;
# 4416|   	b->yy_fill_buffer = 1;
# 4417|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1155]
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/recovery_gen.c: scope_hint: In function ‘WriteRecoveryConfig’
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/recovery_gen.c:123:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename,  <unknown>)’
#  121|   		pg_fatal("could not open file \"%s\": %m", filename);
#  122|   
#  123|-> 	if (fwrite(contents->data, contents->len, 1, cf) != 1)
#  124|   		pg_fatal("could not write to file \"%s\": %m", filename);
#  125|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1156]
postgresql16-16.3-build/postgresql-16.3/src/fe_utils/recovery_gen.c:123:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&filename,  <unknown>)’
#  121|   		pg_fatal("could not open file \"%s\": %m", filename);
#  122|   
#  123|-> 	if (fwrite(contents->data, contents->len, 1, cf) != 1)
#  124|   		pg_fatal("could not write to file \"%s\": %m", filename);
#  125|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1157]
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/relcache.c:33: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/relcache.c: scope_hint: In function ‘RelationReloadNailed’
postgresql16-16.3-build/postgresql-16.3/src/include/access/htup_details.h:658:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/relcache.c:2383:48: note: in expansion of macro ‘GETSTRUCT’
postgresql16-16.3-build/postgresql-16.3/src/include/access/tableam.h:24: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/nbtree.h:20: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/relcache.c:35: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/relcache.c:5462:14: note: in expansion of macro ‘RelationGetForm’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/relcache.c:2064:9: note: in expansion of macro ‘RelationIdCacheLookup’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/relcache.c:2064:9: note: in expansion of macro ‘RelationIdCacheLookup’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/relcache.c: scope_hint: In function ‘RelationReloadNailed’
postgresql16-16.3-build/postgresql-16.3/src/backend/utils/cache/relcache.c:2383:48: note: in expansion of macro ‘GETSTRUCT’
#  656|    * GETSTRUCT - given a HeapTuple pointer, return address of the user data
#  657|    */
#  658|-> #define GETSTRUCT(TUP) ((char *) ((TUP)->t_data) + (TUP)->t_data->t_hoff)
#  659|   
#  660|   /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1158]
postgresql16-16.3-build/postgresql-16.3/src/include/storage/bufmgr.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/bufmask.h:21: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtxlog.c:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtxlog.c: scope_hint: In function ‘btree_xlog_split’
postgresql16-16.3-build/postgresql-16.3/src/include/access/itup.h:71:56: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nposting’
postgresql16-16.3-build/postgresql-16.3/src/include/storage/bufpage.h:470:41: note: in definition of macro ‘PageAddItem’
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:795:41: note: in expansion of macro ‘TYPEALIGN’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtxlog.c:390:65: note: in expansion of macro ‘MAXALIGN’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtxlog.c:390:74: note: in expansion of macro ‘IndexTupleSize’
postgresql16-16.3-build/postgresql-16.3/src/include/postgres.h:45: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtxlog.c:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:789:24: note: in definition of macro ‘TYPEALIGN’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtxlog.c:363:32: note: in expansion of macro ‘MAXALIGN’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtxlog.c:363:41: note: in expansion of macro ‘IndexTupleSize’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtxlog.c:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/nbtree.h:369:34: note: in expansion of macro ‘P_RIGHTMOST’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtxlog.c:378:28: note: in expansion of macro ‘P_FIRSTDATAKEY’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtxlog.c: scope_hint: In function ‘btree_xlog_split’
postgresql16-16.3-build/postgresql-16.3/src/include/storage/bufpage.h:20: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtxlog.c:412:35: note: in expansion of macro ‘OffsetNumberNext’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtxlog.c: scope_hint: In function ‘btree_xlog_split’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtxlog.c:412:35: note: in expansion of macro ‘OffsetNumberNext’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtxlog.c:389:37: note: in expansion of macro ‘PageAddItem’
postgresql16-16.3-build/postgresql-16.3/src/include/storage/bufpage.h:470:41: note: in definition of macro ‘PageAddItem’
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:795:41: note: in expansion of macro ‘TYPEALIGN’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtxlog.c:390:65: note: in expansion of macro ‘MAXALIGN’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtxlog.c:390:74: note: in expansion of macro ‘IndexTupleSize’
#   69|   #define INDEX_NULL_MASK 0x8000
#   70|   
#   71|-> #define IndexTupleSize(itup)		((Size) ((itup)->t_info & INDEX_SIZE_MASK))
#   72|   #define IndexTupleHasNulls(itup)	((((IndexTuple) (itup))->t_info & INDEX_NULL_MASK))
#   73|   #define IndexTupleHasVarwidths(itup) ((((IndexTuple) (itup))->t_info & INDEX_VAR_MASK))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1159]
postgresql16-16.3-build/postgresql-16.3/src/include/access/tableam.h:24: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/heapam.h:22: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/access/heap/heapam_handler.c:23: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/tableam.h: scope_hint: In function ‘table_scan_getnextslot’
postgresql16-16.3-build/postgresql-16.3/src/include/access/tableam.h:1052:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sscan’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/rel.h:504:38: note: in definition of macro ‘RelationGetRelid’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/rel.h:504:38: note: in definition of macro ‘RelationGetRelid’
# 1050|   table_scan_getnextslot(TableScanDesc sscan, ScanDirection direction, TupleTableSlot *slot)
# 1051|   {
# 1052|-> 	slot->tts_tableOid = RelationGetRelid(sscan->rs_rd);
# 1053|   
# 1054|   	/* We don't expect actual scans using NoMovementScanDirection */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1160]
postgresql16-16.3-build/postgresql-16.3/src/include/access/tupmacs.h:28:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/brin/brin_tuple.c: scope_hint: In function ‘brin_deconstruct_tuple’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/brin/brin_tuple.c:34: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/access/brin/brin_tuple.c:572:14: note: in expansion of macro ‘BrinTupleIsEmptyRange’
#   26|   att_isnull(int ATT, const bits8 *BITS)
#   27|   {
#   28|-> 	return !(BITS[ATT >> 3] & (1 << (ATT & 0x07)));
#   29|   }
#   30|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1161]
postgresql16-16.3-build/postgresql-16.3/src/include/lib/ilist.h:1009:25: warning[-Wanalyzer-malloc-leak]: leak of ‘rw’
postgresql16-16.3-build/postgresql-16.3/src/backend/postmaster/bgworker.c: scope_hint: In function ‘RegisterBackgroundWorker’
# 1007|   {
# 1008|   	node->next = head->head.next;
# 1009|-> 	head->head.next = node;
# 1010|   
# 1011|   	slist_check(head);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1162]
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:42: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/tupdesc.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/attmap.h:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/tupconvert.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/execnodes.h:32: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/foreign/fdwapi.h:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c:23: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c: scope_hint: In function ‘fix_indexqual_clause’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:133:66: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:179:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c:5061:13: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c: scope_hint: In function ‘fix_indexqual_clause’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c: scope_hint: In function ‘fix_indexqual_clause’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:179:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c:5061:13: note: in expansion of macro ‘IsA’
#  131|   } Node;
#  132|   
#  133|-> #define nodeTag(nodeptr)		(((const Node*)(nodeptr))->type)
#  134|   
#  135|   /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1163]
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:42: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/tupdesc.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/htup_details.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/statistics/dependencies.c:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/statistics/dependencies.c: scope_hint: In function ‘dependency_is_compatible_clause’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:133:66: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘clause’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:179:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/src/backend/statistics/dependencies.c:797:18: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/src/backend/statistics/dependencies.c: scope_hint: In function ‘dependency_is_compatible_clause’
postgresql16-16.3-build/postgresql-16.3/src/backend/statistics/dependencies.c:1431:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/statistics/dependencies.c:1431:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/statistics/dependencies.c: scope_hint: In function ‘dependency_is_compatible_clause’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:179:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/src/backend/statistics/dependencies.c:797:18: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:179:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/src/backend/statistics/dependencies.c:797:18: note: in expansion of macro ‘IsA’
#  131|   } Node;
#  132|   
#  133|-> #define nodeTag(nodeptr)		(((const Node*)(nodeptr))->type)
#  134|   
#  135|   /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1164]
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:42: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/tupdesc.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/utils/relcache.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/genam.h:21: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/amapi.h:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/nbtree.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/nodeIndexscan.c:32: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/nodeIndexscan.c: scope_hint: In function ‘ExecIndexBuildScanKeys’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:133:66: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘leftop’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:179:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/nodeIndexscan.c:1227:31: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/nodeIndexscan.c:1192:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/nodeIndexscan.c:1192:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:179:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/nodeIndexscan.c:1227:31: note: in expansion of macro ‘IsA’
#  131|   } Node;
#  132|   
#  133|-> #define nodeTag(nodeptr)		(((const Node*)(nodeptr))->type)
#  134|   
#  135|   /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1165]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c: scope_hint: In function ‘fix_indexqual_operand’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:133:66: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘node’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:179:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c:5130:13: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c:4990:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c:4990:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c:4996:17: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c:4996:17: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c: scope_hint: In function ‘fix_indexqual_operand’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:179:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c:4904:13: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c: scope_hint: In function ‘fix_indexqual_operand’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:469:18: note: in expansion of macro ‘multi_for_advance_cell’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c:5078:17: note: in expansion of macro ‘forboth’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c:4996:17: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c:4996:17: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c: scope_hint: In function ‘fix_indexqual_operand’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:179:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c:4904:13: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/src/include/postgres.h:47: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:152:28: note: in expansion of macro ‘palloc0fast’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:176:53: note: in expansion of macro ‘newNode’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c:4943:50: note: in expansion of macro ‘makeNode’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c: scope_hint: In function ‘fix_indexqual_operand’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:179:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/plan/createplan.c:5130:13: note: in expansion of macro ‘IsA’
#  131|   } Node;
#  132|   
#  133|-> #define nodeTag(nodeptr)		(((const Node*)(nodeptr))->type)
#  134|   
#  135|   /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1166]
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:133:66: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rightop’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:179:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/nodeIndexscan.c:1259:29: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/nodeIndexscan.c:1192:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/nodeIndexscan.c:1192:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodeFuncs.h: scope_hint: In function ‘ExecIndexBuildScanKeys’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:172:51: note: in definition of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodeFuncs.h:88:33: note: in expansion of macro ‘linitial’
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/nodeIndexscan.c: scope_hint: In function ‘ExecIndexBuildScanKeys’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:179:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/nodeIndexscan.c:1222:39: note: in expansion of macro ‘IsA’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:179:42: note: in expansion of macro ‘nodeTag’
postgresql16-16.3-build/postgresql-16.3/src/backend/executor/nodeIndexscan.c:1259:29: note: in expansion of macro ‘IsA’
#  131|   } Node;
#  132|   
#  133|-> #define nodeTag(nodeptr)		(((const Node*)(nodeptr))->type)
#  134|   
#  135|   /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1167]
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_func.c: scope_hint: In function ‘funcname_signature_string’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:172:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lc’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_func.c:2013:70: note: in expansion of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_func.c: scope_hint: In function ‘funcname_signature_string’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_func.c:2013:70: note: in expansion of macro ‘lfirst’
#  170|    * in the second list cell.
#  171|    */
#  172|-> #define lfirst(lc)				((lc)->ptr_value)
#  173|   #define lfirst_int(lc)			((lc)->int_value)
#  174|   #define lfirst_oid(lc)			((lc)->oid_value)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1168]
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/bitmapset.h:21: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/primnodes.h:21: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partbounds.c: scope_hint: In function ‘get_qual_for_hash’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:172:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘partexprs_item’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:242:55: note: in definition of macro ‘copyObject’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partbounds.c:4040:54: note: in expansion of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:242:55: note: in definition of macro ‘copyObject’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partbounds.c:4040:54: note: in expansion of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/nodes.h:242:55: note: in definition of macro ‘copyObject’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partbounds.c:4040:54: note: in expansion of macro ‘lfirst’
#  170|    * in the second list cell.
#  171|    */
#  172|-> #define lfirst(lc)				((lc)->ptr_value)
#  173|   #define lfirst_int(lc)			((lc)->int_value)
#  174|   #define lfirst_oid(lc)			((lc)->oid_value)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1169]
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c: scope_hint: In function ‘CheckRADIUSAuth’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:172:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘secrets’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c:2905:100: note: in expansion of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c:681:17: note: in expansion of macro ‘pq_flush’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:164:9: note: in expansion of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:239:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c:753:9: note: in expansion of macro ‘elog’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c: scope_hint: In function ‘CheckRADIUSAuth’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c: scope_hint: In function ‘CheckRADIUSAuth’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c: scope_hint: In function ‘CheckRADIUSAuth’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:374:45: note: in definition of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c:2902:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c:2902:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c:2905:100: note: in expansion of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/src/backend/libpq/auth.c:2905:100: note: in expansion of macro ‘lfirst’
#  170|    * in the second list cell.
#  171|    */
#  172|-> #define lfirst(lc)				((lc)->ptr_value)
#  173|   #define lfirst_int(lc)			((lc)->int_value)
#  174|   #define lfirst_oid(lc)			((lc)->oid_value)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1170]
postgresql16-16.3-build/postgresql-16.3/src/include/access/tupdesc.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/utils/relcache.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/genam.h:21: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/amapi.h:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/hash.h:20: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partprune.c:38: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partprune.c: scope_hint: In function ‘get_steps_using_prefix_recurse’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:172:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘start’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partprune.c:2505:41: note: in expansion of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partprune.c:2519:17: note: in expansion of macro ‘for_each_cell’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partprune.c: scope_hint: In function ‘get_steps_using_prefix_recurse’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partprune.c:2519:17: note: in expansion of macro ‘for_each_cell’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partprune.c:2535:17: note: in expansion of macro ‘for_each_cell’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partprune.c:2535:17: note: in expansion of macro ‘for_each_cell’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partprune.c:2505:41: note: in expansion of macro ‘lfirst’
#  170|    * in the second list cell.
#  171|    */
#  172|-> #define lfirst(lc)				((lc)->ptr_value)
#  173|   #define lfirst_int(lc)			((lc)->int_value)
#  174|   #define lfirst_oid(lc)			((lc)->oid_value)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1171]
postgresql16-16.3-build/postgresql-16.3/src/include/access/tupdesc.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/access/htup_details.h:19: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c:26: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c: scope_hint: In function ‘generate_append_tlist’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:174:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘curColType’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c:1317:64: note: in expansion of macro ‘lfirst_oid’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c:1303:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c:1303:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c: scope_hint: In function ‘generate_append_tlist’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c:1310:17: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c:1310:17: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c:1310:17: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/prepunion.c:1317:64: note: in expansion of macro ‘lfirst_oid’
#  172|   #define lfirst(lc)				((lc)->ptr_value)
#  173|   #define lfirst_int(lc)			((lc)->int_value)
#  174|-> #define lfirst_oid(lc)			((lc)->oid_value)
#  175|   #define lfirst_xid(lc)			((lc)->xid_value)
#  176|   #define lfirst_node(type,lc)	castNode(type, lfirst(lc))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1172]
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:281:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘elemops’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partbounds.c: scope_hint: In function ‘make_partition_op_expr’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:172:51: note: in definition of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partbounds.c:3952:100: note: in expansion of macro ‘linitial’
#  279|   	Assert(list != NIL);
#  280|   	Assert(n >= 0 && n < list->length);
#  281|-> 	return &list->elements[n];
#  282|   }
#  283|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1173]
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:281:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘expanded_groups’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_agg.c: scope_hint: In function ‘expand_grouping_sets’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_agg.c:1812:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:374:45: note: in definition of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:178:49: note: in expansion of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_agg.c:1835:30: note: in expansion of macro ‘linitial’
#  279|   	Assert(list != NIL);
#  280|   	Assert(n >= 0 && n < list->length);
#  281|-> 	return &list->elements[n];
#  282|   }
#  283|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1174]
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:281:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘fargs’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_func.c: scope_hint: In function ‘unify_hypothetical_args’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_func.c: scope_hint: In function ‘unify_hypothetical_args’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_func.c:155:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_func.c:155:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_func.c:179:9: note: in expansion of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/include/postgres.h:45: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_func.c:15: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:759:41: note: in definition of macro ‘OidIsValid’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_func.c:1627:40: note: in expansion of macro ‘GETSTRUCT’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_func.c:370:49: note: in expansion of macro ‘GETSTRUCT’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_func.c: scope_hint: In function ‘unify_hypothetical_args’
postgresql16-16.3-build/postgresql-16.3/src/backend/parser/parse_func.c: scope_hint: In function ‘unify_hypothetical_args’
#  279|   	Assert(list != NIL);
#  280|   	Assert(n >= 0 && n < list->length);
#  281|-> 	return &list->elements[n];
#  282|   }
#  283|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1175]
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:281:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘or_expr_args’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partbounds.c: scope_hint: In function ‘get_qual_for_range’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partbounds.c: scope_hint: In function ‘get_qual_for_range’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:469:18: note: in expansion of macro ‘multi_for_advance_cell’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partbounds.c:4392:9: note: in expansion of macro ‘forboth’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partbounds.c: scope_hint: In function ‘get_qual_for_range’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:172:51: note: in definition of macro ‘lfirst’
postgresql16-16.3-build/postgresql-16.3/src/backend/partitioning/partbounds.c:4339:78: note: in expansion of macro ‘linitial’
#  279|   	Assert(list != NIL);
#  280|   	Assert(n >= 0 && n < list->length);
#  281|-> 	return &list->elements[n];
#  282|   }
#  283|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1176]
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:1375: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/postgres.h:45: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/contrib/pgstattuple/pgstattuple.c:25: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/contrib/pgstattuple/pgstattuple.c: scope_hint: In function ‘build_pgstattuple_type’
postgresql16-16.3-build/postgresql-16.3/src/include/port.h:238:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘values[1]’
postgresql16-16.3-build/postgresql-16.3/contrib/pgstattuple/pgstattuple.c:137:9: note: in expansion of macro ‘snprintf’
postgresql16-16.3-build/postgresql-16.3/contrib/pgstattuple/pgstattuple.c: scope_hint: In function ‘build_pgstattuple_type’
postgresql16-16.3-build/postgresql-16.3/src/include/miscadmin.h:113:10: note: in expansion of macro ‘unlikely’
postgresql16-16.3-build/postgresql-16.3/src/include/miscadmin.h:123:13: note: in expansion of macro ‘INTERRUPTS_PENDING_CONDITION’
postgresql16-16.3-build/postgresql-16.3/contrib/pgstattuple/pgstattuple.c:342:17: note: in expansion of macro ‘CHECK_FOR_INTERRUPTS’
postgresql16-16.3-build/postgresql-16.3/src/include/miscadmin.h:113:10: note: in expansion of macro ‘unlikely’
postgresql16-16.3-build/postgresql-16.3/src/include/miscadmin.h:123:13: note: in expansion of macro ‘INTERRUPTS_PENDING_CONDITION’
postgresql16-16.3-build/postgresql-16.3/contrib/pgstattuple/pgstattuple.c:342:17: note: in expansion of macro ‘CHECK_FOR_INTERRUPTS’
postgresql16-16.3-build/postgresql-16.3/contrib/pgstattuple/pgstattuple.c: scope_hint: In function ‘build_pgstattuple_type’
postgresql16-16.3-build/postgresql-16.3/contrib/pgstattuple/pgstattuple.c:136:9: note: in expansion of macro ‘snprintf’
postgresql16-16.3-build/postgresql-16.3/contrib/pgstattuple/pgstattuple.c:137:9: note: in expansion of macro ‘snprintf’
#  236|    */
#  237|   #define vsnprintf		pg_vsnprintf
#  238|-> #define snprintf		pg_snprintf
#  239|   #define vsprintf		pg_vsprintf
#  240|   #define sprintf			pg_sprintf

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1177]
postgresql16-16.3-build/postgresql-16.3/src/include/storage/block.h:105:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtdedup.c: scope_hint: In function ‘_bt_bottomupdel_finish_pending’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtdedup.c: scope_hint: In function ‘_bt_bottomupdel_finish_pending’
postgresql16-16.3-build/postgresql-16.3/src/include/access/nbtree.h: scope_hint: In function ‘_bt_bottomupdel_finish_pending’
postgresql16-16.3-build/postgresql-16.3/src/include/access/nbtree.h: scope_hint: In function ‘_bt_bottomupdel_finish_pending’
#  103|   BlockIdGetBlockNumber(const BlockIdData *blockId)
#  104|   {
#  105|-> 	return (((BlockNumber) blockId->bi_hi) << 16) | ((BlockNumber) blockId->bi_lo);
#  106|   }
#  107|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1178]
postgresql16-16.3-build/postgresql-16.3/src/include/storage/bufpage.h:340:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘childpage’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/gin/ginbtree.c: scope_hint: In function ‘ginPlaceToPage’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/gin/ginbtree.c:20: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/access/gin/ginbtree.c:398:17: note: in expansion of macro ‘START_CRIT_SECTION’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/gin/ginbtree.c:417:25: note: in expansion of macro ‘GinPageGetOpaque’
#  338|   {
#  339|   	PageValidateSpecialPointer(page);
#  340|-> 	return (char *) page + ((PageHeader) page)->pd_special;
#  341|   }
#  342|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1179]
postgresql16-16.3-build/postgresql-16.3/src/include/storage/itemptr.h:116:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtutils.c: scope_hint: In function ‘_bt_check_third_page’
postgresql16-16.3-build/postgresql-16.3/src/include/postgres.h:46: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtutils.c:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:164:9: note: in expansion of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtutils.c:2675:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:164:9: note: in expansion of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtutils.c:2675:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:147:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtutils.c:2675:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:147:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtutils.c:2675:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/include/access/nbtree.h: scope_hint: In function ‘_bt_check_third_page’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:147:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtutils.c:2675:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:147:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtutils.c:2675:9: note: in expansion of macro ‘ereport’
#  114|   ItemPointerGetOffsetNumberNoCheck(const ItemPointerData *pointer)
#  115|   {
#  116|-> 	return pointer->ip_posid;
#  117|   }
#  118|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1180]
postgresql16-16.3-build/postgresql-16.3/src/include/storage/itemptr.h:176:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtutils.c: scope_hint: In function ‘_bt_truncate’
postgresql16-16.3-build/postgresql-16.3/src/include/postgres.h:45: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:789:24: note: in definition of macro ‘TYPEALIGN’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtutils.c:2284:19: note: in expansion of macro ‘MAXALIGN’
postgresql16-16.3-build/postgresql-16.3/src/backend/access/nbtree/nbtutils.c:2284:28: note: in expansion of macro ‘IndexTupleSize’
postgresql16-16.3-build/postgresql-16.3/src/include/access/nbtree.h: scope_hint: In function ‘_bt_truncate’
#  174|   	Assert(PointerIsValid(toPointer));
#  175|   	Assert(PointerIsValid(fromPointer));
#  176|-> 	*toPointer = *fromPointer;
#  177|   }
#  178|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1181]
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/preptlist.c:47: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/preptlist.c: scope_hint: In function ‘expand_insert_targetlist’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/rel.h:510:60: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rel’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/preptlist.c:371:20: note: in expansion of macro ‘RelationGetNumberOfAttributes’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/preptlist.c: scope_hint: In function ‘expand_insert_targetlist’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/preptlist.c:371:20: note: in expansion of macro ‘RelationGetNumberOfAttributes’
postgresql16-16.3-build/postgresql-16.3/src/backend/optimizer/prep/preptlist.c:371:20: note: in expansion of macro ‘RelationGetNumberOfAttributes’
#  508|    *		Returns the total number of attributes in a relation.
#  509|    */
#  510|-> #define RelationGetNumberOfAttributes(relation) ((relation)->rd_rel->relnatts)
#  511|   
#  512|   /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1182]
postgresql16-16.3-build/postgresql-16.3/src/include/access/htup_details.h:22: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_exec.c:21: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_exec.c: scope_hint: In function ‘exec_assign_value’
postgresql16-16.3-build/postgresql-16.3/src/include/varatt.h:220:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql16-16.3-build/postgresql-16.3/src/include/varatt.h:289:57: note: in expansion of macro ‘VARATT_IS_1B_E’
postgresql16-16.3-build/postgresql-16.3/src/include/varatt.h:297:10: note: in expansion of macro ‘VARATT_IS_EXTERNAL’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_exec.c:5126:50: note: in expansion of macro ‘VARATT_IS_EXTERNAL_EXPANDED_RW’
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:291:43: note: in definition of macro ‘likely’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_exec.c: scope_hint: In function ‘exec_assign_value’
/usr/include/dirent.h:247: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/storage/fd.h:46: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/utils/sharedtuplestore.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/execnodes.h:45: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/executor/nodeAgg.h:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/executor/execExpr.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_exec.c:27: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/varatt.h:220:30: note: in definition of macro ‘VARATT_IS_1B_E’
postgresql16-16.3-build/postgresql-16.3/src/include/varatt.h:297:10: note: in expansion of macro ‘VARATT_IS_EXTERNAL’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_exec.c:5126:50: note: in expansion of macro ‘VARATT_IS_EXTERNAL_EXPANDED_RW’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_exec.c: scope_hint: In function ‘exec_assign_value’
postgresql16-16.3-build/postgresql-16.3/src/include/varatt.h:289:57: note: in expansion of macro ‘VARATT_IS_1B_E’
postgresql16-16.3-build/postgresql-16.3/src/include/varatt.h:297:10: note: in expansion of macro ‘VARATT_IS_EXTERNAL’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_exec.c:5126:50: note: in expansion of macro ‘VARATT_IS_EXTERNAL_EXPANDED_RW’
#  218|   	((((varattrib_1b *) (PTR))->va_header & 0x01) == 0x01)
#  219|   #define VARATT_IS_1B_E(PTR) \
#  220|-> 	((((varattrib_1b *) (PTR))->va_header) == 0x01)
#  221|   #define VARATT_NOT_PAD_BYTE(PTR) \
#  222|   	(*((uint8 *) (PTR)) != 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1183]
postgresql16-16.3-build/postgresql-16.3/src/interfaces/libpq/fe-exec.c: scope_hint: In function ‘pqResultStrdup’
postgresql16-16.3-build/postgresql-16.3/src/interfaces/libpq/fe-exec.c:677:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  675|   
#  676|   	if (space)
#  677|-> 		strcpy(space, str);
#  678|   	return space;
#  679|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1184]
postgresql16-16.3-build/postgresql-16.3/src/interfaces/libpq/fe-exec.c: scope_hint: In function ‘PQclear.part.0’
postgresql16-16.3-build/postgresql-16.3/src/interfaces/libpq/fe-exec.c:734:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  732|   	{
#  733|   		/* only send DESTROY to successfully-initialized event procs */
#  734|-> 		if (res->events[i].resultInitialized)
#  735|   		{
#  736|   			PGEventResultDestroy evt;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1185]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_comp.c: scope_hint: In function ‘resolve_column_ref’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_comp.c:1298:45: warning[-Wanalyzer-null-argument]: use of NULL ‘colname’ where non-null expected
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_comp.c: scope_hint: In function ‘resolve_column_ref’
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:61: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/postgres.h:45: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_comp.c:16: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
# 1296|   					Assert(fld->dtype == PLPGSQL_DTYPE_RECFIELD &&
# 1297|   						   fld->recparentno == nse->itemno);
# 1298|-> 					if (strcmp(fld->fieldname, colname) == 0)
# 1299|   					{
# 1300|   						return make_datum_param(expr, i, cref->location);

Error: CPPCHECK_WARNING (CWE-768): [#def1186]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_comp.c:1448: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(word1))},(union ListCell){.ptr_value=(makeString(word2))}' depends on order of evaluation of side effects
# 1446|   	int			nnames;
# 1447|   
# 1448|-> 	idents = list_make2(makeString(word1),
# 1449|   						makeString(word2));
# 1450|   

Error: CPPCHECK_WARNING (CWE-768): [#def1187]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_comp.c:1565: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(word1))},(union ListCell){.ptr_value=(makeString(word2))}' depends on order of evaluation of side effects
# 1563|   							 */
# 1564|   							new = plpgsql_build_recfield(rec, word2);
# 1565|-> 							idents = list_make2(makeString(word1),
# 1566|   												makeString(word2));
# 1567|   						}

Error: CPPCHECK_WARNING (CWE-768): [#def1188]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_comp.c:1572: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(word1))},(union ListCell){.ptr_value=(makeString(word2))}' depends on order of evaluation of side effects
# 1570|   							/* Block-qualified reference to record variable. */
# 1571|   							new = plpgsql_build_recfield(rec, word3);
# 1572|-> 							idents = list_make3(makeString(word1),
# 1573|   												makeString(word2),
# 1574|   												makeString(word3));

Error: CPPCHECK_WARNING (CWE-768): [#def1189]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_comp.c:1572: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(word1))},(union ListCell){.ptr_value=(makeString(word2))},(union ListCell){.ptr_value=(makeString(word3))}' depends on order of evaluation of side effects
# 1570|   							/* Block-qualified reference to record variable. */
# 1571|   							new = plpgsql_build_recfield(rec, word3);
# 1572|-> 							idents = list_make3(makeString(word1),
# 1573|   												makeString(word2),
# 1574|   												makeString(word3));

Error: CPPCHECK_WARNING (CWE-768): [#def1190]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_comp.c:1590: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(word1))},(union ListCell){.ptr_value=(makeString(word2))}' depends on order of evaluation of side effects
# 1588|   
# 1589|   	/* Nothing found */
# 1590|-> 	idents = list_make3(makeString(word1),
# 1591|   						makeString(word2),
# 1592|   						makeString(word3));

Error: CPPCHECK_WARNING (CWE-768): [#def1191]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_comp.c:1590: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(makeString(word1))},(union ListCell){.ptr_value=(makeString(word2))},(union ListCell){.ptr_value=(makeString(word3))}' depends on order of evaluation of side effects
# 1588|   
# 1589|   	/* Nothing found */
# 1590|-> 	idents = list_make3(makeString(word1),
# 1591|   						makeString(word2),
# 1592|   						makeString(word3));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1192]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c: scope_hint: In function ‘plpgsql_yyparse’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:748:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:733:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:1868:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:748:25: note: in definition of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:1868:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:733:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:1868:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  746|   #  if defined __GNUC__ && 1 < __GNUC__
#  747|   #   define YYCOPY(Dst, Src, Count) \
#  748|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  749|   #  else
#  750|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1193]
postgresql16-16.3-build/postgresql-16.3/src/include/postgres.h:46: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:16: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:53:34: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:147:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:483:49: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:486:66: note: in expansion of macro ‘parser_errposition’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:164:9: note: in expansion of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:483:49: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:147:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:483:49: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:147:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:483:49: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:486:66: note: in expansion of macro ‘parser_errposition’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:53:34: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:147:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:483:49: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:486:66: note: in expansion of macro ‘parser_errposition’
#   51|   } sql_error_callback_arg;
#   52|   
#   53|-> #define parser_errposition(pos)  plpgsql_scanner_errposition(pos)
#   54|   
#   55|   union YYSTYPE;					/* need forward reference for tok_is_keyword */

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1194]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:361:105: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:361:105: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  359|   pl_function		: comp_options pl_block opt_semi
#  360|   					{
#  361|-> 						plpgsql_parse_result = (PLpgSQL_stmt_block *) $2;
#  362|   					}
#  363|   				;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1195]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:375:69: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.str’
#  373|   				| '#' K_PRINT_STRICT_PARAMS option_value
#  374|   					{
#  375|-> 						if (strcmp($3, "on") == 0)
#  376|   							plpgsql_curr_compile->print_strict_params = true;
#  377|   						else if (strcmp($3, "off") == 0)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1196]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:398:70: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.word.ident’
#  396|   option_value : T_WORD
#  397|   				{
#  398|-> 					$$ = $1.ident;
#  399|   				}
#  400|   			 | unreserved_keyword

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1197]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:402:55: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.keyword’
#  400|   			 | unreserved_keyword
#  401|   				{
#  402|-> 					$$ = pstrdup($1);
#  403|   				}
#  404|   

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1198]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:416:75: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:416:75: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
#  414|   
#  415|   						new->cmd_type	= PLPGSQL_STMT_BLOCK;
#  416|-> 						new->lineno		= plpgsql_location_to_lineno(@2);
#  417|   						new->stmtid		= ++plpgsql_curr_compile->nstatements;
#  418|   						new->label		= $1.label;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1199]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:418:94: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:418:94: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  416|   						new->lineno		= plpgsql_location_to_lineno(@2);
#  417|   						new->stmtid		= ++plpgsql_curr_compile->nstatements;
#  418|-> 						new->label		= $1.label;
#  419|   						new->n_initvars = $1.n_initvars;
#  420|   						new->initvarnos = $1.initvarnos;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1200]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:419:86: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:419:86: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  417|   						new->stmtid		= ++plpgsql_curr_compile->nstatements;
#  418|   						new->label		= $1.label;
#  419|-> 						new->n_initvars = $1.n_initvars;
#  420|   						new->initvarnos = $1.initvarnos;
#  421|   						new->body		= $3;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1201]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:420:86: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:420:86: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  418|   						new->label		= $1.label;
#  419|   						new->n_initvars = $1.n_initvars;
#  420|-> 						new->initvarnos = $1.initvarnos;
#  421|   						new->body		= $3;
#  422|   						new->exceptions	= $4;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1202]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:421:85: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:421:85: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  419|   						new->n_initvars = $1.n_initvars;
#  420|   						new->initvarnos = $1.initvarnos;
#  421|-> 						new->body		= $3;
#  422|   						new->exceptions	= $4;
#  423|   

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1203]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:422:77: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:422:77: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  420|   						new->initvarnos = $1.initvarnos;
#  421|   						new->body		= $3;
#  422|-> 						new->exceptions	= $4;
#  423|   
#  424|   						check_labels($1.label, $6, @6);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1204]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:424:98: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.str’
#  422|   						new->exceptions	= $4;
#  423|   
#  424|-> 						check_labels($1.label, $6, @6);
#  425|   						plpgsql_ns_pop();
#  426|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1205]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:436:91: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.str’
#  434|   						/* done with decls, so resume identifier lookup */
#  435|   						plpgsql_IdentifierLookup = IDENTIFIER_LOOKUP_NORMAL;
#  436|-> 						$$.label	  = $1;
#  437|   						$$.n_initvars = 0;
#  438|   						$$.initvarnos = NULL;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1206]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:443:92: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:443:92: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  441|   					{
#  442|   						plpgsql_IdentifierLookup = IDENTIFIER_LOOKUP_NORMAL;
#  443|-> 						$$.label	  = $1;
#  444|   						$$.n_initvars = 0;
#  445|   						$$.initvarnos = NULL;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1207]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:450:92: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:450:92: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  448|   					{
#  449|   						plpgsql_IdentifierLookup = IDENTIFIER_LOOKUP_NORMAL;
#  450|-> 						$$.label	  = $1;
#  451|   						/* Remember variables declared in decl_stmts */
#  452|   						$$.n_initvars = plpgsql_add_initdatums(&($$.initvarnos));

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1208]
postgresql16-16.3-build/postgresql-16.3/src/include/postgres.h:45: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:500:74: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:759:41: note: in definition of macro ‘OidIsValid’
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:759:41: note: in definition of macro ‘OidIsValid’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:500:74: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:759:41: note: in definition of macro ‘OidIsValid’
#  498|   						 * variables.
#  499|   						 */
#  500|-> 						if (OidIsValid($4))
#  501|   						{
#  502|   							if (!OidIsValid($3->collation))

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1209]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:502:83: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:759:41: note: in definition of macro ‘OidIsValid’
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:759:41: note: in definition of macro ‘OidIsValid’
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:759:41: note: in definition of macro ‘OidIsValid’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:502:83: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:759:41: note: in definition of macro ‘OidIsValid’
#  500|   						if (OidIsValid($4))
#  501|   						{
#  502|-> 							if (!OidIsValid($3->collation))
#  503|   								ereport(ERROR,
#  504|   										(errcode(ERRCODE_DATATYPE_MISMATCH),

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1210]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:506:122: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:147:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:503:65: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/include/c.h:759:41: note: in definition of macro ‘OidIsValid’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:164:9: note: in expansion of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:503:65: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:164:9: note: in expansion of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:503:65: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:147:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:503:65: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:147:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:503:65: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:506:122: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:147:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:503:65: note: in expansion of macro ‘ereport’
#  504|   										(errcode(ERRCODE_DATATYPE_MISMATCH),
#  505|   										 errmsg("collations are not supported by type %s",
#  506|-> 												format_type_be($3->typoid)),
#  507|   										 parser_errposition(@4)));
#  508|   							$3->collation = $4;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1211]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:511:55: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:511:55: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  509|   						}
#  510|   
#  511|-> 						var = plpgsql_build_variable($1.name, $1.lineno,
#  512|   													 $3, true);
#  513|   						var->isconst = $2;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1212]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:511:97: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:511:97: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  509|   						}
#  510|   
#  511|-> 						var = plpgsql_build_variable($1.name, $1.lineno,
#  512|   													 $3, true);
#  513|   						var->isconst = $2;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1213]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:513:74: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:513:74: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  511|   						var = plpgsql_build_variable($1.name, $1.lineno,
#  512|   													 $3, true);
#  513|-> 						var->isconst = $2;
#  514|   						var->notnull = $5;
#  515|   						var->default_val = $6;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1214]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:514:74: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:514:74: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  512|   													 $3, true);
#  513|   						var->isconst = $2;
#  514|-> 						var->notnull = $5;
#  515|   						var->default_val = $6;
#  516|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1215]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:515:77: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.expr’
#  513|   						var->isconst = $2;
#  514|   						var->notnull = $5;
#  515|-> 						var->default_val = $6;
#  516|   
#  517|   						/*

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1216]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:531:94: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:531:94: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  529|   					{
#  530|   						plpgsql_ns_additem($4->itemtype,
#  531|-> 										   $4->itemno, $1.name);
#  532|   					}
#  533|   				| decl_varname opt_scrollable K_CURSOR

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1217]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:531:131: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:531:131: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  529|   					{
#  530|   						plpgsql_ns_additem($4->itemtype,
#  531|-> 										   $4->itemno, $1.name);
#  532|   					}
#  533|   				| decl_varname opt_scrollable K_CURSOR

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1218]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:534:113: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:534:113: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  532|   					}
#  533|   				| decl_varname opt_scrollable K_CURSOR
#  534|-> 					{ plpgsql_ns_push($1.name, PLPGSQL_LABEL_OTHER); }
#  535|   				  decl_cursor_args decl_is_for decl_cursor_query
#  536|   					{

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1219]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:543:57: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:543:57: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  541|   
#  542|   						new = (PLpgSQL_var *)
#  543|-> 							plpgsql_build_variable($1.name, $1.lineno,
#  544|   												   plpgsql_build_datatype(REFCURSOROID,
#  545|   																		  -1,

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1220]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:543:99: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:543:99: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  541|   
#  542|   						new = (PLpgSQL_var *)
#  543|-> 							plpgsql_build_variable($1.name, $1.lineno,
#  544|   												   plpgsql_build_datatype(REFCURSOROID,
#  545|   																		  -1,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1221]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:550:86: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.expr’
#  548|   												   true);
#  549|   
#  550|-> 						new->cursor_explicit_expr = $7;
#  551|   						if ($5 == NULL)
#  552|   							new->cursor_explicit_argrow = -1;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1222]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:592:63: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:592:63: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
#  590|   						new->dtype = PLPGSQL_DTYPE_ROW;
#  591|   						new->refname = "(unnamed row)";
#  592|-> 						new->lineno = plpgsql_location_to_lineno(@1);
#  593|   						new->rowtupdesc = NULL;
#  594|   						new->nfields = list_length($2);

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1223]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:594:86: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:594:86: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  592|   						new->lineno = plpgsql_location_to_lineno(@1);
#  593|   						new->rowtupdesc = NULL;
#  594|-> 						new->nfields = list_length($2);
#  595|   						new->fieldnames = palloc(new->nfields * sizeof(char *));
#  596|   						new->varnos = palloc(new->nfields * sizeof(int));

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1224]
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/primnodes.h:22: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/catalog/namespace.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:599:71: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:374:45: note: in definition of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:374:45: note: in definition of macro ‘foreach’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:599:71: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:374:45: note: in definition of macro ‘foreach’
#  597|   
#  598|   						i = 0;
#  599|-> 						foreach (l, $2)
#  600|   						{
#  601|   							PLpgSQL_variable *arg = (PLpgSQL_variable *) lfirst(l);

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1225]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:607:49: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:607:49: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  605|   							i++;
#  606|   						}
#  607|-> 						list_free($2);
#  608|   
#  609|   						plpgsql_adddatum((PLpgSQL_datum *) new);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1226]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:616:84: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.datum’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:207:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:616:64: note: in expansion of macro ‘list_make1’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:207:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:616:64: note: in expansion of macro ‘list_make1’
#  614|   decl_cursor_arglist : decl_cursor_arg
#  615|   					{
#  616|-> 						$$ = list_make1($1);
#  617|   					}
#  618|   				| decl_cursor_arglist ',' decl_cursor_arg

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1227]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:620:99: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.datum’
#  618|   				| decl_cursor_arglist ',' decl_cursor_arg
#  619|   					{
#  620|-> 						$$ = lappend($1, $3);
#  621|   					}
#  622|   				;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1228]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:627:57: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.dtype’
#  625|   					{
#  626|   						$$ = (PLpgSQL_datum *)
#  627|-> 							plpgsql_build_variable($1.name, $1.lineno,
#  628|   												   $2, true);
#  629|   					}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1229]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:640:112: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.word.ident’
#  638|   
#  639|   						nsi = plpgsql_ns_lookup(plpgsql_ns_top(), false,
#  640|-> 												$1.ident, NULL, NULL,
#  641|   												NULL);
#  642|   						if (nsi == NULL)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1230]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:654:55: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.keyword’
#  652|   						PLpgSQL_nsitem *nsi;
#  653|   
#  654|-> 						nsi = plpgsql_ns_lookup(plpgsql_ns_top(), false,
#  655|   												$1, NULL, NULL,
#  656|   												NULL);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1231]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:669:81: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.cword.idents’
#  667|   						PLpgSQL_nsitem *nsi;
#  668|   
#  669|-> 						if (list_length($1.idents) == 2)
#  670|   							nsi = plpgsql_ns_lookup(plpgsql_ns_top(), false,
#  671|   													strVal(linitial($1.idents)),

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1232]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:695:87: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.word.ident’
#  693|   decl_varname	: T_WORD
#  694|   					{
#  695|-> 						$$.name = $1.ident;
#  696|   						$$.lineno = plpgsql_location_to_lineno(@1);
#  697|   						/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1233]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:723:72: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.keyword’
#  721|   				| unreserved_keyword
#  722|   					{
#  723|-> 						$$.name = pstrdup($1);
#  724|   						$$.lineno = plpgsql_location_to_lineno(@1);
#  725|   						/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1234]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:772:92: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.word.ident’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:207:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:772:81: note: in expansion of macro ‘list_make1’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:207:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:772:81: note: in expansion of macro ‘list_make1’
#  770|   				| K_COLLATE T_WORD
#  771|   					{
#  772|-> 						$$ = get_collation_oid(list_make1(makeString($2.ident)),
#  773|   											   false);
#  774|   					}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1235]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:777:92: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.keyword’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:207:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:777:81: note: in expansion of macro ‘list_make1’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:207:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:777:81: note: in expansion of macro ‘list_make1’
#  775|   				| K_COLLATE unreserved_keyword
#  776|   					{
#  777|-> 						$$ = get_collation_oid(list_make1(makeString(pstrdup($2))),
#  778|   											   false);
#  779|   					}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1236]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:782:63: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.cword.idents’
#  780|   				| K_COLLATE T_CWORD
#  781|   					{
#  782|-> 						$$ = get_collation_oid($2.idents, false);
#  783|   					}
#  784|   				;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1237]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:818:62: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  816|   					{
#  817|   						/* don't bother linking null statements into list */
#  818|-> 						if ($2 == NULL)
#  819|   							$$ = $1;
#  820|   						else

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1238]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:826:118: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:826:118: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  824|   
#  825|   proc_stmt		: pl_block ';'
#  826|-> 						{ $$ = $1; }
#  827|   				| stmt_assign
#  828|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1239]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:828:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  826|   						{ $$ = $1; }
#  827|   				| stmt_assign
#  828|-> 						{ $$ = $1; }
#  829|   				| stmt_if
#  830|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1240]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:830:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  828|   						{ $$ = $1; }
#  829|   				| stmt_if
#  830|-> 						{ $$ = $1; }
#  831|   				| stmt_case
#  832|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1241]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:832:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  830|   						{ $$ = $1; }
#  831|   				| stmt_case
#  832|-> 						{ $$ = $1; }
#  833|   				| stmt_loop
#  834|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1242]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:834:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  832|   						{ $$ = $1; }
#  833|   				| stmt_loop
#  834|-> 						{ $$ = $1; }
#  835|   				| stmt_while
#  836|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1243]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:836:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  834|   						{ $$ = $1; }
#  835|   				| stmt_while
#  836|-> 						{ $$ = $1; }
#  837|   				| stmt_for
#  838|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1244]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:838:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  836|   						{ $$ = $1; }
#  837|   				| stmt_for
#  838|-> 						{ $$ = $1; }
#  839|   				| stmt_foreach_a
#  840|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1245]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:840:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  838|   						{ $$ = $1; }
#  839|   				| stmt_foreach_a
#  840|-> 						{ $$ = $1; }
#  841|   				| stmt_exit
#  842|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1246]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:842:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  840|   						{ $$ = $1; }
#  841|   				| stmt_exit
#  842|-> 						{ $$ = $1; }
#  843|   				| stmt_return
#  844|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1247]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:844:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  842|   						{ $$ = $1; }
#  843|   				| stmt_return
#  844|-> 						{ $$ = $1; }
#  845|   				| stmt_raise
#  846|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1248]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:846:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  844|   						{ $$ = $1; }
#  845|   				| stmt_raise
#  846|-> 						{ $$ = $1; }
#  847|   				| stmt_assert
#  848|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1249]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:848:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  846|   						{ $$ = $1; }
#  847|   				| stmt_assert
#  848|-> 						{ $$ = $1; }
#  849|   				| stmt_execsql
#  850|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1250]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:850:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  848|   						{ $$ = $1; }
#  849|   				| stmt_execsql
#  850|-> 						{ $$ = $1; }
#  851|   				| stmt_dynexecute
#  852|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1251]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:852:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  850|   						{ $$ = $1; }
#  851|   				| stmt_dynexecute
#  852|-> 						{ $$ = $1; }
#  853|   				| stmt_perform
#  854|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1252]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:854:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  852|   						{ $$ = $1; }
#  853|   				| stmt_perform
#  854|-> 						{ $$ = $1; }
#  855|   				| stmt_call
#  856|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1253]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:856:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  854|   						{ $$ = $1; }
#  855|   				| stmt_call
#  856|-> 						{ $$ = $1; }
#  857|   				| stmt_getdiag
#  858|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1254]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:858:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  856|   						{ $$ = $1; }
#  857|   				| stmt_getdiag
#  858|-> 						{ $$ = $1; }
#  859|   				| stmt_open
#  860|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1255]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:860:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  858|   						{ $$ = $1; }
#  859|   				| stmt_open
#  860|-> 						{ $$ = $1; }
#  861|   				| stmt_fetch
#  862|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1256]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:862:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  860|   						{ $$ = $1; }
#  861|   				| stmt_fetch
#  862|-> 						{ $$ = $1; }
#  863|   				| stmt_move
#  864|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1257]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:864:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  862|   						{ $$ = $1; }
#  863|   				| stmt_move
#  864|-> 						{ $$ = $1; }
#  865|   				| stmt_close
#  866|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1258]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:866:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  864|   						{ $$ = $1; }
#  865|   				| stmt_close
#  866|-> 						{ $$ = $1; }
#  867|   				| stmt_null
#  868|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1259]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:868:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  866|   						{ $$ = $1; }
#  867|   				| stmt_null
#  868|-> 						{ $$ = $1; }
#  869|   				| stmt_commit
#  870|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1260]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:870:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  868|   						{ $$ = $1; }
#  869|   				| stmt_commit
#  870|-> 						{ $$ = $1; }
#  871|   				| stmt_rollback
#  872|   						{ $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1261]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:872:117: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.stmt’
#  870|   						{ $$ = $1; }
#  871|   				| stmt_rollback
#  872|-> 						{ $$ = $1; }
#  873|   				;
#  874|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1262]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:956:74: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.wdatum.ident’
#  954|   
#  955|   						/* see how many names identify the datum */
#  956|-> 						switch ($1.ident ? 1 : list_length($1.idents))
#  957|   						{
#  958|   							case 1:

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1263]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:996:63: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:996:63: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
#  994|   						new = palloc0(sizeof(PLpgSQL_stmt_getdiag));
#  995|   						new->cmd_type = PLPGSQL_STMT_GETDIAG;
#  996|-> 						new->lineno = plpgsql_location_to_lineno(@1);
#  997|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
#  998|   						new->is_stacked = $2;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1264]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:998:77: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:998:77: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  996|   						new->lineno = plpgsql_location_to_lineno(@1);
#  997|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
#  998|-> 						new->is_stacked = $2;
#  999|   						new->diag_items = $4;
# 1000|   

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1265]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:999:77: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:999:77: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
#  997|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
#  998|   						new->is_stacked = $2;
#  999|-> 						new->diag_items = $4;
# 1000|   
# 1001|   						/*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1266]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1068:99: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.diagitem’
# 1066|   getdiag_list : getdiag_list ',' getdiag_list_item
# 1067|   					{
# 1068|-> 						$$ = lappend($1, $3);
# 1069|   					}
# 1070|   				| getdiag_list_item

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1267]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1072:84: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.diagitem’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:207:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1072:64: note: in expansion of macro ‘list_make1’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:207:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1072:64: note: in expansion of macro ‘list_make1’
# 1070|   				| getdiag_list_item
# 1071|   					{
# 1072|-> 						$$ = list_make1($1);
# 1073|   					}
# 1074|   				;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1268]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1081:73: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1081:73: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1079|   
# 1080|   						new = palloc(sizeof(PLpgSQL_diag_item));
# 1081|-> 						new->target = $1->dno;
# 1082|   						new->kind = $3;
# 1083|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1269]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1082:70: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.ival’
# 1080|   						new = palloc(sizeof(PLpgSQL_diag_item));
# 1081|   						new->target = $1->dno;
# 1082|-> 						new->kind = $3;
# 1083|   
# 1084|   						$$ = new;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1270]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1143:70: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.wdatum.datum’
# 1141|   						 * just throw an error if next token is '['.
# 1142|   						 */
# 1143|-> 						if ($1.datum->dtype == PLPGSQL_DTYPE_ROW ||
# 1144|   							$1.datum->dtype == PLPGSQL_DTYPE_REC ||
# 1145|   							plpgsql_peek() == '[')

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1271]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1172:63: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1172:63: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1170|   						new = palloc0(sizeof(PLpgSQL_stmt_if));
# 1171|   						new->cmd_type = PLPGSQL_STMT_IF;
# 1172|-> 						new->lineno = plpgsql_location_to_lineno(@1);
# 1173|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1174|   						new->cond = $2;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1272]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1174:71: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1174:71: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1172|   						new->lineno = plpgsql_location_to_lineno(@1);
# 1173|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1174|-> 						new->cond = $2;
# 1175|   						new->then_body = $3;
# 1176|   						new->elsif_list = $4;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1273]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1175:76: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1175:76: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1173|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1174|   						new->cond = $2;
# 1175|-> 						new->then_body = $3;
# 1176|   						new->elsif_list = $4;
# 1177|   						new->else_body = $5;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1274]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1176:77: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1176:77: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1174|   						new->cond = $2;
# 1175|   						new->then_body = $3;
# 1176|-> 						new->elsif_list = $4;
# 1177|   						new->else_body = $5;
# 1178|   

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1275]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1177:76: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1177:76: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1175|   						new->then_body = $3;
# 1176|   						new->elsif_list = $4;
# 1177|-> 						new->else_body = $5;
# 1178|   
# 1179|   						$$ = (PLpgSQL_stmt *) new;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1276]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1192:63: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1192:63: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1190|   
# 1191|   						new = palloc0(sizeof(PLpgSQL_if_elsif));
# 1192|-> 						new->lineno = plpgsql_location_to_lineno(@2);
# 1193|   						new->cond = $3;
# 1194|   						new->stmts = $4;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1277]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1193:71: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1193:71: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1191|   						new = palloc0(sizeof(PLpgSQL_if_elsif));
# 1192|   						new->lineno = plpgsql_location_to_lineno(@2);
# 1193|-> 						new->cond = $3;
# 1194|   						new->stmts = $4;
# 1195|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1278]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1194:71: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.list’
# 1192|   						new->lineno = plpgsql_location_to_lineno(@2);
# 1193|   						new->cond = $3;
# 1194|-> 						new->stmts = $4;
# 1195|   
# 1196|   						$$ = lappend($1, new);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1279]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1206:73: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.list’
# 1204|   				| K_ELSE proc_sect
# 1205|   					{
# 1206|-> 						$$ = $2;
# 1207|   					}
# 1208|   				;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1280]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1212:64: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1212:64: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1210|   stmt_case		: K_CASE opt_expr_until_when case_when_list opt_case_else K_END K_CASE ';'
# 1211|   					{
# 1212|-> 						$$ = make_case(@1, $2, $3, $4);
# 1213|   					}
# 1214|   				;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1281]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1233:99: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.casewhen’
# 1231|   case_when_list	: case_when_list case_when
# 1232|   					{
# 1233|-> 						$$ = lappend($1, $2);
# 1234|   					}
# 1235|   				| case_when

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1282]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1237:84: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.casewhen’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:207:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1237:64: note: in expansion of macro ‘list_make1’
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/pg_list.h:207:60: note: in definition of macro ‘list_make_ptr_cell’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1237:64: note: in expansion of macro ‘list_make1’
# 1235|   				| case_when
# 1236|   					{
# 1237|-> 						$$ = list_make1($1);
# 1238|   					}
# 1239|   				;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1283]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1245:67: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1245:67: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1243|   						PLpgSQL_case_when *new = palloc(sizeof(PLpgSQL_case_when));
# 1244|   
# 1245|-> 						new->lineno	= plpgsql_location_to_lineno(@1);
# 1246|   						new->expr = $2;
# 1247|   						new->stmts = $3;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1284]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1246:71: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1246:71: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1244|   
# 1245|   						new->lineno	= plpgsql_location_to_lineno(@1);
# 1246|-> 						new->expr = $2;
# 1247|   						new->stmts = $3;
# 1248|   						$$ = new;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1285]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1247:71: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.list’
# 1245|   						new->lineno	= plpgsql_location_to_lineno(@1);
# 1246|   						new->expr = $2;
# 1247|-> 						new->stmts = $3;
# 1248|   						$$ = new;
# 1249|   					}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1286]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1264:62: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.list’
# 1262|   						 * pointer, which make_case() must take care of.
# 1263|   						 */
# 1264|-> 						if ($2 != NIL)
# 1265|   							$$ = $2;
# 1266|   						else

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1287]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1277:63: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1277:63: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1275|   						new = palloc0(sizeof(PLpgSQL_stmt_loop));
# 1276|   						new->cmd_type = PLPGSQL_STMT_LOOP;
# 1277|-> 						new->lineno = plpgsql_location_to_lineno(@2);
# 1278|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1279|   						new->label = $1;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1288]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1279:72: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1279:72: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1277|   						new->lineno = plpgsql_location_to_lineno(@2);
# 1278|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1279|-> 						new->label = $1;
# 1280|   						new->body = $3.stmts;
# 1281|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1289]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1280:81: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.loop_body.stmts’
# 1278|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1279|   						new->label = $1;
# 1280|-> 						new->body = $3.stmts;
# 1281|   
# 1282|   						check_labels($1, $3.end_label, $3.end_label_location);

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1290]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1295:63: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1295:63: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1293|   						new = palloc0(sizeof(PLpgSQL_stmt_while));
# 1294|   						new->cmd_type = PLPGSQL_STMT_WHILE;
# 1295|-> 						new->lineno = plpgsql_location_to_lineno(@2);
# 1296|   						new->stmtid	= ++plpgsql_curr_compile->nstatements;
# 1297|   						new->label = $1;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1291]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1297:72: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1297:72: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1295|   						new->lineno = plpgsql_location_to_lineno(@2);
# 1296|   						new->stmtid	= ++plpgsql_curr_compile->nstatements;
# 1297|-> 						new->label = $1;
# 1298|   						new->cond = $3;
# 1299|   						new->body = $4.stmts;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1292]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1298:71: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1298:71: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1296|   						new->stmtid	= ++plpgsql_curr_compile->nstatements;
# 1297|   						new->label = $1;
# 1298|-> 						new->cond = $3;
# 1299|   						new->body = $4.stmts;
# 1300|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1293]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1299:81: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.loop_body.stmts’
# 1297|   						new->label = $1;
# 1298|   						new->cond = $3;
# 1299|-> 						new->body = $4.stmts;
# 1300|   
# 1301|   						check_labels($1, $4.end_label, $4.end_label_location);

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1294]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1311:63: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1311:63: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1309|   					{
# 1310|   						/* This runs after we've scanned the loop body */
# 1311|-> 						if ($3->cmd_type == PLPGSQL_STMT_FORI)
# 1312|   						{
# 1313|   							PLpgSQL_stmt_fori *new;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1295]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1316:71: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1316:71: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1314|   
# 1315|   							new = (PLpgSQL_stmt_fori *) $3;
# 1316|-> 							new->lineno = plpgsql_location_to_lineno(@2);
# 1317|   							new->label = $1;
# 1318|   							new->body = $4.stmts;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1296]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1317:80: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1317:80: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1315|   							new = (PLpgSQL_stmt_fori *) $3;
# 1316|   							new->lineno = plpgsql_location_to_lineno(@2);
# 1317|-> 							new->label = $1;
# 1318|   							new->body = $4.stmts;
# 1319|   							$$ = (PLpgSQL_stmt *) new;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1297]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1318:89: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.loop_body.stmts’
# 1316|   							new->lineno = plpgsql_location_to_lineno(@2);
# 1317|   							new->label = $1;
# 1318|-> 							new->body = $4.stmts;
# 1319|   							$$ = (PLpgSQL_stmt *) new;
# 1320|   						}

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1298]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1330:71: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1330:71: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1328|   							/* forq is the common supertype of all three */
# 1329|   							new = (PLpgSQL_stmt_forq *) $3;
# 1330|-> 							new->lineno = plpgsql_location_to_lineno(@2);
# 1331|   							new->label = $1;
# 1332|   							new->body = $4.stmts;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1299]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1331:80: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1331:80: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1329|   							new = (PLpgSQL_stmt_forq *) $3;
# 1330|   							new->lineno = plpgsql_location_to_lineno(@2);
# 1331|-> 							new->label = $1;
# 1332|   							new->body = $4.stmts;
# 1333|   							$$ = (PLpgSQL_stmt *) new;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1300]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1332:89: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.loop_body.stmts’
# 1330|   							new->lineno = plpgsql_location_to_lineno(@2);
# 1331|   							new->label = $1;
# 1332|-> 							new->body = $4.stmts;
# 1333|   							$$ = (PLpgSQL_stmt *) new;
# 1334|   						}

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1301]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1361:84: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:1748:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1361:84: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1359|   							new->cmd_type = PLPGSQL_STMT_DYNFORS;
# 1360|   							new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1361|-> 							if ($1.row)
# 1362|   							{
# 1363|   								new->var = (PLpgSQL_variable *) $1.row;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1302]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1364:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:1748:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1364:65: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1362|   							{
# 1363|   								new->var = (PLpgSQL_variable *) $1.row;
# 1364|-> 								check_assignable($1.row, @1);
# 1365|   							}
# 1366|   							else if ($1.scalar)

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1303]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1366:89: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:1748:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1366:89: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1364|   								check_assignable($1.row, @1);
# 1365|   							}
# 1366|-> 							else if ($1.scalar)
# 1367|   							{
# 1368|   								/* convert single scalar to list */

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1304]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1370:73: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:1748:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1370:73: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1368|   								/* convert single scalar to list */
# 1369|   								new->var = (PLpgSQL_variable *)
# 1370|-> 									make_scalar_list1($1.name, $1.scalar,
# 1371|   													  $1.lineno, @1);
# 1372|   								/* make_scalar_list1 did check_assignable */

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1305]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1410:84: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1410:84: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1408|   
# 1409|   							/* Should have had a single variable name */
# 1410|-> 							if ($1.scalar && $1.row)
# 1411|   								ereport(ERROR,
# 1412|   										(errcode(ERRCODE_SYNTAX_ERROR),

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1306]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1410:118: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1410:118: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1408|   
# 1409|   							/* Should have had a single variable name */
# 1410|-> 							if ($1.scalar && $1.row)
# 1411|   								ereport(ERROR,
# 1412|   										(errcode(ERRCODE_SYNTAX_ERROR),

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1307]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1429:65: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:1748:1: note: in expansion of macro ‘yyparse’
/usr/include/dirent.h:247: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/storage/fd.h:46: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/utils/sharedtuplestore.h:17: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/nodes/execnodes.h:45: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/include/commands/trigger.h:18: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/plpgsql.h:21: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:27: included_from: Included from here.
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1429:65: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1427|   							/* create loop's private RECORD variable */
# 1428|   							new->var = (PLpgSQL_variable *)
# 1429|-> 								plpgsql_build_record($1.name,
# 1430|   													 $1.lineno,
# 1431|   													 NULL,

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1308]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1429:109: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:1748:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1429:109: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1427|   							/* create loop's private RECORD variable */
# 1428|   							new->var = (PLpgSQL_variable *)
# 1429|-> 								plpgsql_build_record($1.name,
# 1430|   													 $1.lineno,
# 1431|   													 NULL,

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1309]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1507:92: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:1748:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1507:92: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1505|   
# 1506|   								/* Should have had a single variable name */
# 1507|-> 								if ($1.scalar && $1.row)
# 1508|   									ereport(ERROR,
# 1509|   											(errcode(ERRCODE_SYNTAX_ERROR),

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1310]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1507:126: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:1748:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1507:126: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1505|   
# 1506|   								/* Should have had a single variable name */
# 1507|-> 								if ($1.scalar && $1.row)
# 1508|   									ereport(ERROR,
# 1509|   											(errcode(ERRCODE_SYNTAX_ERROR),

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1311]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1515:73: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:1748:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1515:73: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1513|   								/* create loop's private variable */
# 1514|   								fvar = (PLpgSQL_var *)
# 1515|-> 									plpgsql_build_variable($1.name,
# 1516|   														   $1.lineno,
# 1517|   														   plpgsql_build_datatype(INT4OID,

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1312]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1515:119: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:1748:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1515:119: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1513|   								/* create loop's private variable */
# 1514|   								fvar = (PLpgSQL_var *)
# 1515|-> 									plpgsql_build_variable($1.name,
# 1516|   														   $1.lineno,
# 1517|   														   plpgsql_build_datatype(INT4OID,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1313]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1630:91: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.word.ident’
# 1628|   						int			tok;
# 1629|   
# 1630|-> 						$$.name = $1.ident;
# 1631|   						$$.lineno = plpgsql_location_to_lineno(@1);
# 1632|   						$$.scalar = NULL;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1314]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1653:63: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1653:63: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1651|   						new = palloc0(sizeof(PLpgSQL_stmt_foreach_a));
# 1652|   						new->cmd_type = PLPGSQL_STMT_FOREACH_A;
# 1653|-> 						new->lineno = plpgsql_location_to_lineno(@2);
# 1654|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1655|   						new->label = $1;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1315]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1655:72: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1655:72: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1653|   						new->lineno = plpgsql_location_to_lineno(@2);
# 1654|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1655|-> 						new->label = $1;
# 1656|   						new->slice = $4;
# 1657|   						new->expr = $7;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1316]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1656:72: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1656:72: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1654|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1655|   						new->label = $1;
# 1656|-> 						new->slice = $4;
# 1657|   						new->expr = $7;
# 1658|   						new->body = $8.stmts;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1317]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1657:71: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1657:71: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1655|   						new->label = $1;
# 1656|   						new->slice = $4;
# 1657|-> 						new->expr = $7;
# 1658|   						new->body = $8.stmts;
# 1659|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1318]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1658:81: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.loop_body.stmts’
# 1656|   						new->slice = $4;
# 1657|   						new->expr = $7;
# 1658|-> 						new->body = $8.stmts;
# 1659|   
# 1660|   						if ($3.row)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1319]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1691:73: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.ival’
# 1689|   				| K_SLICE ICONST
# 1690|   					{
# 1691|-> 						$$ = $2;
# 1692|   					}
# 1693|   				;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1320]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1702:74: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1702:74: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1700|   						new->cmd_type = PLPGSQL_STMT_EXIT;
# 1701|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1702|-> 						new->is_exit = $1;
# 1703|   						new->lineno	= plpgsql_location_to_lineno(@1);
# 1704|   						new->label = $2;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1321]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1703:67: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1703:67: note: valid subscripts for ‘yylsa’ are ‘[0]’ to ‘[199]’
# 1701|   						new->stmtid = ++plpgsql_curr_compile->nstatements;
# 1702|   						new->is_exit = $1;
# 1703|-> 						new->lineno	= plpgsql_location_to_lineno(@1);
# 1704|   						new->label = $2;
# 1705|   						new->cond = $3;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def1322]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1704:72: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1704:72: note: valid subscripts for ‘yyvsa’ are ‘[0]’ to ‘[199]’
# 1702|   						new->is_exit = $1;
# 1703|   						new->lineno	= plpgsql_location_to_lineno(@1);
# 1704|-> 						new->label = $2;
# 1705|   						new->cond = $3;
# 1706|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1323]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:1705:70: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yyvsp.expr’
# 1703|   						new->lineno	= plpgsql_location_to_lineno(@1);
# 1704|   						new->label = $2;
# 1705|-> 						new->cond = $3;
# 1706|   
# 1707|   						if ($2)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1324]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y: scope_hint: In function ‘word_is_not_variable’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:2602:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*word.ident’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:147:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:2600:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:1748:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:164:9: note: in expansion of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:2600:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:147:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:2600:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:147:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:2600:9: note: in expansion of macro ‘ereport’
# 2600|   	ereport(ERROR,
# 2601|   			(errcode(ERRCODE_SYNTAX_ERROR),
# 2602|-> 			 errmsg("\"%s\" is not a known variable",
# 2603|   					word->ident),
# 2604|   			 parser_errposition(location)));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1325]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y: scope_hint: In function ‘cword_is_not_variable’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:2613:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*cword.idents’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:147:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:2611:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c:1748:1: note: in expansion of macro ‘yyparse’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:164:9: note: in expansion of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:2611:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:147:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:2611:9: note: in expansion of macro ‘ereport’
postgresql16-16.3-build/postgresql-16.3/src/include/utils/elog.h:147:25: note: in definition of macro ‘ereport_domain’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:2611:9: note: in expansion of macro ‘ereport’
# 2611|   	ereport(ERROR,
# 2612|   			(errcode(ERRCODE_SYNTAX_ERROR),
# 2613|-> 			 errmsg("\"%s\" is not a known variable",
# 2614|   					NameListToString(cword->idents)),
# 2615|   			 parser_errposition(location)));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1326]
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.y:3456:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(PLwdatum *)yyvsp.ident’
postgresql16-16.3-build/postgresql-16.3/src/pl/plpgsql/src/pl_gram.c: scope_hint: In function ‘plpgsql_yyparse’
# 3454|   NameOfDatum(PLwdatum *wdatum)
# 3455|   {
# 3456|-> 	if (wdatum->ident)
# 3457|   		return wdatum->ident;
# 3458|   	Assert(wdatum->idents != NIL);

Error: CPPCHECK_WARNING (CWE-476): [#def1327]
postgresql16-16.3-build/postgresql-16.3/src/pl/tcl/pltcl.c:3194: warning[nullPointer]: Possible null pointer dereference: tupdesc
# 3192|   	}
# 3193|   
# 3194|-> 	values = (char **) palloc0(tupdesc->natts * sizeof(char *));
# 3195|   
# 3196|   	if (kvObjc % 2 != 0)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1328]
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specparse.c: scope_hint: In function ‘spec_yyparse’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specparse.c:464:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specparse.c:449:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specparse.c:1011:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specparse.c:449:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specparse.c:1011:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specparse.c:449:9: note: in expansion of macro ‘YYCOPY’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specparse.c:1011:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  462|   #  if defined __GNUC__ && 1 < __GNUC__
#  463|   #   define YYCOPY(Dst, Src, Count) \
#  464|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  465|   #  else
#  466|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1329]
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specparse.c:1137:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(char **)<unknown>’
# 1135|        unconditionally makes the parser a bit smaller, and it avoids a
# 1136|        GCC warning that YYVAL may be used uninitialized.  */
# 1137|->   yyval = yyvsp[1-yylen];
# 1138|   
# 1139|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1330]
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c:1444:46: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c:1446:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c: scope_hint: In function ‘yy_get_next_buffer’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c:1446:41: note: in expansion of macro ‘yyrealloc’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c: scope_hint: In function ‘yy_get_next_buffer’
# 1442|   					b->yy_buf_size *= 2;
# 1443|   
# 1444|-> 				b->yy_ch_buf = (char *)
# 1445|   					/* Include room in for 2 EOB chars. */
# 1446|   					yyrealloc( (void *) b->yy_ch_buf,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1331]
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c: scope_hint: In function ‘spec_yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c:1729:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c:1715:21: note: in expansion of macro ‘yy_create_buffer’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c:1719:31: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c: scope_hint: In function ‘spec_yy_create_buffer’
# 1727|   	 */
# 1728|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1729|-> 	if ( ! b->yy_ch_buf )
# 1730|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 1731|   

Error: CPPCHECK_WARNING (CWE-476): [#def1332]
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c:1769: warning[nullPointer]: Possible null pointer dereference: b
# 1767|   	yy_flush_buffer( b );
# 1768|   
# 1769|-> 	b->yy_input_file = file;
# 1770|   	b->yy_fill_buffer = 1;
# 1771|   

Error: CPPCHECK_WARNING (CWE-476): [#def1333]
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c:1770: warning[nullPointer]: Possible null pointer dereference: b
# 1768|   
# 1769|   	b->yy_input_file = file;
# 1770|-> 	b->yy_fill_buffer = 1;
# 1771|   
# 1772|       /* If b is the current buffer, then yy_init_buffer was _probably_

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1334]
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c: scope_hint: In function ‘spec_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c:1983:45: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c:1967:17: note: in expansion of macro ‘yy_scan_bytes’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c:1976:24: note: in expansion of macro ‘yyalloc’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c: scope_hint: In function ‘spec_yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c:1985:13: note: in expansion of macro ‘yy_scan_buffer’
postgresql16-16.3-build/postgresql-16.3/src/test/isolation/specscanner.c:1917:17: note: in expansion of macro ‘yy_scan_buffer’
# 1981|   		buf[i] = yybytes[i];
# 1982|   
# 1983|-> 	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1984|   
# 1985|   	b = yy_scan_buffer( buf, n );

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-239.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namepostgresql16-16.3-6.fc42
store-results-to/tmp/tmpspu9yywy/postgresql16-16.3-6.fc42.tar.xz
time-created2024-11-13 03:07:35
time-finished2024-11-13 03:40:36
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpspu9yywy/postgresql16-16.3-6.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpspu9yywy/postgresql16-16.3-6.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9