postgresql18-18beta1-4.fc43
List of Findings
Error: SHELLCHECK_WARNING (CWE-457): [#def1]
/usr/bin/postgresql-setup:9:18: warning[SC2154]: var_content is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-571): [#def2]
/usr/bin/postgresql-setup:223:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
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.
Error: SHELLCHECK_WARNING (CWE-457): [#def4]
/usr/bin/postgresql-setup:225:36: warning[SC2154]: upgradefrom_major is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def5]
/usr/bin/postgresql-setup:231:16: warning[SC2154]: upgradefrom_engine is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def6]
/usr/bin/postgresql-setup:232:36: warning[SC2154]: upgradefrom_package is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def7]
/usr/bin/postgresql-setup:278:14: warning[SC2154]: upgradefrom_scls is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def8]
/usr/bin/postgresql-setup:283:12: warning[SC2154]: upgradefrom_redhat_sockets_hack is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def9]
/usr/bin/postgresql-setup:288:14: warning[SC2154]: upgradefrom_pghost_override is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-252): [#def10]
/usr/bin/postgresql-setup:307:9: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-457): [#def11]
/usr/bin/postgresql-setup:324:14: warning[SC2154]: add_options is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-571): [#def12]
/usr/bin/postgresql-setup:366:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def13]
/usr/bin/postgresql-setup:380:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def14]
/usr/bin/postgresql-setup:427:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-563): [#def15]
/usr/bin/postgresql-setup:470:11: warning[SC2034]: port appears unused. Verify use (or export if used externally).
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).
Error: SHELLCHECK_WARNING (CWE-457): [#def17]
/usr/bin/postgresql-setup:705:23: warning[SC2154]: upgradefrom_data_default is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def18]
/usr/bin/postgresql-setup:716:37: warning[SC2154]: upgradefrom_id is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-398): [#def19]
/usr/bin/postgresql-setup:744:13: warning[SC2247]: Flip leading $ and " if this should be a quoted substitution.
Error: SHELLCHECK_WARNING (CWE-457): [#def20]
/usr/bin/postgresql-upgrade:149:33: warning[SC2154]: upgradefrom_major is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def21]
/usr/bin/postgresql-upgrade:155:12: warning[SC2154]: upgradefrom_engine is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def22]
/usr/bin/postgresql-upgrade:156:31: warning[SC2154]: upgradefrom_package is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def23]
/usr/bin/postgresql-upgrade:167:26: warning[SC2154]: data is referenced but not assigned.
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).
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.
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.
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 ..'.
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.
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.
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.
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.
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.
Error: SHELLCHECK_WARNING: [#def33]
/usr/lib64/pgsql/pgxs/config/install-sh:348:31: warning[SC3028]: In POSIX sh, RANDOM is undefined.
Error: SHELLCHECK_WARNING (CWE-457): [#def34]
/usr/lib64/pgsql/pgxs/config/install-sh:349:11: warning[SC2154]: ret is referenced but not assigned.
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 ..'.
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 ..'.
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 ..'.
Error: SHELLCHECK_WARNING (CWE-456): [#def38]
/usr/lib64/pgsql/postgresql-17/lib/pgxs/config/install-sh:53:3: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
Error: SHELLCHECK_WARNING: [#def39]
/usr/lib64/pgsql/postgresql-17/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.
Error: SHELLCHECK_WARNING: [#def40]
/usr/lib64/pgsql/postgresql-17/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.
Error: SHELLCHECK_WARNING (CWE-456): [#def41]
/usr/lib64/pgsql/postgresql-17/lib/pgxs/config/install-sh:188:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
Error: SHELLCHECK_WARNING (CWE-569): [#def42]
/usr/lib64/pgsql/postgresql-17/lib/pgxs/config/install-sh:212:18: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
Error: SHELLCHECK_WARNING (CWE-569): [#def43]
/usr/lib64/pgsql/postgresql-17/lib/pgxs/config/install-sh:213:18: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
Error: SHELLCHECK_WARNING (CWE-569): [#def44]
/usr/lib64/pgsql/postgresql-17/lib/pgxs/config/install-sh:214:18: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
Error: SHELLCHECK_WARNING (CWE-398): [#def45]
/usr/lib64/pgsql/postgresql-17/lib/pgxs/config/install-sh:214:28: warning[SC2172]: Trapping signals by number is not well defined. Prefer signal names.
Error: SHELLCHECK_WARNING (CWE-569): [#def46]
/usr/lib64/pgsql/postgresql-17/lib/pgxs/config/install-sh:215:18: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
Error: SHELLCHECK_WARNING: [#def47]
/usr/lib64/pgsql/postgresql-17/lib/pgxs/config/install-sh:348:31: warning[SC3028]: In POSIX sh, RANDOM is undefined.
Error: SHELLCHECK_WARNING (CWE-457): [#def48]
/usr/lib64/pgsql/postgresql-17/lib/pgxs/config/install-sh:349:11: warning[SC2154]: ret is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-456): [#def49]
/usr/lib64/pgsql/postgresql-17/lib/pgxs/config/install-sh:404:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
Error: SHELLCHECK_WARNING (CWE-456): [#def50]
/usr/lib64/pgsql/postgresql-17/lib/pgxs/config/install-sh:480:12: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
Error: SHELLCHECK_WARNING (CWE-456): [#def51]
/usr/lib64/pgsql/postgresql-17/lib/pgxs/config/install-sh:481:12: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
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.
Error: SHELLCHECK_WARNING (CWE-457): [#def53]
/usr/share/postgresql-setup/library.sh:8:19: warning[SC2154]: option_debug is referenced but not assigned.
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).
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).
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).
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).
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).
Error: SHELLCHECK_WARNING (CWE-457): [#def59]
/usr/share/postgresql-setup/library.sh:81:19: warning[SC2154]: __pg_conf_id is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def60]
/usr/share/postgresql-setup/library.sh:81:35: warning[SC2154]: __pg_conf_description is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def61]
/usr/share/postgresql-setup/library.sh:83:33: warning[SC2154]: __pg_conf_major is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def62]
/usr/share/postgresql-setup/library.sh:95:30: warning[SC2154]: upgrade_from_scls is referenced but not assigned.
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.
Error: SHELLCHECK_WARNING: [#def64]
/usr/share/postgresql-setup/postgresql_pkg_tests.sh:9:11: warning[SC3028]: In POSIX sh, RANDOM is undefined.
Error: SHELLCHECK_WARNING: [#def65]
/usr/share/postgresql-setup/postgresql_pkg_tests.sh:86:9: warning[SC3011]: In POSIX sh, here-strings are undefined.
Error: CPPCHECK_WARNING (CWE-457): [#def66]
postgresql-18beta1/contrib/bloom/blvacuum.c:149: warning[uninitvar]: Uninitialized variable: notFullPage
Error: GCC_ANALYZER_WARNING (CWE-457): [#def67]
postgresql-18beta1/contrib/btree_gist/btree_utils_num.c:90:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘leaf’
postgresql-18beta1/contrib/btree_gist/btree_utils_num.c:18:12: branch_true: following ‘true’ branch...
postgresql-18beta1/contrib/btree_gist/btree_utils_num.c:34:56: branch_true: ...to here
postgresql-18beta1/contrib/btree_gist/btree_utils_num.c:90:17: danger: use of uninitialized value ‘leaf’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def68]
postgresql-18beta1/contrib/cube/cubeparse.c:975:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/contrib/cube/cubeparse.c:933:6: branch_true: following ‘true’ branch...
postgresql-18beta1/contrib/cube/cubeparse.c:939:28: branch_true: ...to here
postgresql-18beta1/contrib/cube/cubeparse.c:962:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/contrib/cube/cubeparse.c:964:7: branch_false: ...to here
postgresql-18beta1/contrib/cube/cubeparse.c:973:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/cube/cubeparse.c:975:9: branch_false: ...to here
postgresql-18beta1/contrib/cube/cubeparse.c:975:9: danger: use of uninitialized value ‘yyss’ here
Error: CPPCHECK_WARNING (CWE-457): [#def69]
postgresql-18beta1/contrib/dblink/dblink.c:698: error[legacyUninitvar]: Uninitialized variable: conn
Error: CPPCHECK_WARNING (CWE-457): [#def70]
postgresql-18beta1/contrib/dblink/dblink.c:698: error[legacyUninitvar]: Uninitialized variable: sql
Error: GCC_ANALYZER_WARNING (CWE-404): [#def71]
postgresql-18beta1/contrib/dblink/dblink.c:2851:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/contrib/dblink/dblink.c:2791:1: enter_function: entry to ‘dblink_res_error’
postgresql-18beta1/contrib/dblink/dblink.c:2850:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/contrib/dblink/dblink.c:2851:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/contrib/dblink/dblink.c:2851:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-768): [#def72]
postgresql-18beta1/contrib/hstore/hstore_io.c:469: error[unknownEvaluationOrder]: Expression '(entry)++->entry' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-457): [#def73]
postgresql-18beta1/contrib/hstore/hstore_io.c:469: warning[uninitvar]: Uninitialized variable: pairs.val
Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
postgresql-18beta1/contrib/hstore/hstore_op.c:341:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/contrib/hstore/hstore_op.c:292:1: enter_function: entry to ‘hstore_delete_array’
postgresql-18beta1/contrib/hstore/hstore_op.c:307:33: call_function: calling ‘hstoreArrayToPairs’ from ‘hstore_delete_array’
postgresql-18beta1/contrib/hstore/hstore_op.c:307:33: return_function: returning to ‘hstore_delete_array’ from ‘hstoreArrayToPairs’
postgresql-18beta1/contrib/hstore/hstore_op.c:317:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/hstore/hstore_op.c:317:12: branch_false: ...to here
postgresql-18beta1/contrib/hstore/hstore_op.c:331:25: branch_true: following ‘true’ branch (when ‘i < hs_count’)...
postgresql-18beta1/contrib/hstore/hstore_op.c:335:21: branch_true: ...to here
postgresql-18beta1/contrib/hstore/hstore_op.c:335:20: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/hstore/hstore_op.c:339:59: branch_false: ...to here
postgresql-18beta1/contrib/hstore/hstore_op.c:341:40: danger: dereference of NULL ‘hstoreArrayToPairs(pg_detoast_datum((char *)*fcinfo.args[1].value), &nkeys) + (long unsigned int)j * 40’
Error: CPPCHECK_WARNING (CWE-457): [#def75]
postgresql-18beta1/contrib/hstore_plpython/hstore_plpython.c:192: warning[uninitvar]: Uninitialized variables: out.vl_len_, out.size_
Error: CPPCHECK_WARNING (CWE-476): [#def76]
postgresql-18beta1/contrib/intarray/_intbig_gist.c:173: warning[nullPointer]: Possible null pointer dereference: ptr
Error: CPPCHECK_WARNING (CWE-682): [#def77]
postgresql-18beta1/contrib/intarray/_intbig_gist.c:174: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def78]
postgresql-18beta1/contrib/ltree/ltree_gist.c:76:17: warning[-Wanalyzer-null-argument]: use of NULL ‘left’ where non-null expected
postgresql-18beta1/contrib/ltree/ltree_gist.c:192:1: enter_function: entry to ‘ltree_union’
postgresql-18beta1/contrib/ltree/ltree_gist.c:207:21: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/ltree/ltree_gist.c:240:12: branch_false: ...to here
postgresql-18beta1/contrib/ltree/ltree_gist.c:240:12: branch_false: following ‘false’ branch (when ‘isalltrue == 0’)...
postgresql-18beta1/contrib/ltree/ltree_gist.c:240:12: branch_false: ...to here
postgresql-18beta1/contrib/ltree/ltree_gist.c:253:18: call_function: calling ‘ltree_gist_alloc’ from ‘ltree_union’
Error: CPPCHECK_WARNING (CWE-457): [#def79]
postgresql-18beta1/contrib/pg_prewarm/autoprewarm.c:852: warning[uninitvar]: Uninitialized variable: num_blocks
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2392:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2323:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2334:13: branch_false: ...to here
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2334:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2345:13: branch_false: ...to here
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2345:12: branch_true: following ‘true’ branch...
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2346:32: branch_true: ...to here
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2346:32: acquire_memory: allocated here
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2349:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2349:12: branch_false: ...to here
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2392:13: throw: if ‘CloseTransientFile’ throws an exception...
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2392:13: danger: ‘buf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2393:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2323:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2334:13: branch_false: ...to here
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2334:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2345:13: branch_false: ...to here
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2345:12: branch_true: following ‘true’ branch...
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2346:32: branch_true: ...to here
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2346:32: acquire_memory: allocated here
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2349:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2349:12: branch_false: ...to here
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2392:12: branch_true: following ‘true’ branch...
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2393:17: branch_true: ...to here
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2393:17: throw: if ‘errstart’ throws an exception...
postgresql-18beta1/contrib/pg_stat_statements/pg_stat_statements.c:2393:17: danger: ‘buf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def82]
postgresql-18beta1/contrib/pg_trgm/trgm_gin.c:144: warning[nullPointer]: Possible null pointer dereference: (union varattrib_4b*)(trg)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def83]
postgresql-18beta1/contrib/pg_trgm/trgm_regexp.c:2001:60: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/contrib/pg_trgm/trgm_regexp.c:1971:16: branch_true: following ‘true’ branch...
postgresql-18beta1/contrib/pg_trgm/trgm_regexp.c:1971:16: branch_true: ...to here
postgresql-18beta1/contrib/pg_trgm/trgm_regexp.c:2001:60: danger: dereference of NULL ‘<unknown>’
Error: CPPCHECK_WARNING (CWE-457): [#def84]
postgresql-18beta1/contrib/pgcrypto/pgp-pgsql.c:403: error[uninitvar]: Uninitialized variable: tmp
Error: CPPCHECK_WARNING (CWE-457): [#def85]
postgresql-18beta1/contrib/pgcrypto/pgp-pgsql.c:482: error[uninitvar]: Uninitialized variable: tmp
Error: GCC_ANALYZER_WARNING (CWE-404): [#def86]
postgresql-18beta1/contrib/pgcrypto/px.c:158:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/contrib/pgcrypto/px.c:153:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/contrib/pgcrypto/px.c:154:12: branch_true: following ‘true’ branch...
postgresql-18beta1/contrib/pgcrypto/px.c:158:17: branch_true: ...to here
postgresql-18beta1/contrib/pgcrypto/px.c:158:17: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/contrib/pgcrypto/px.c:158:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-909): [#def87]
postgresql-18beta1/contrib/postgres_fdw/deparse.c:1922: error[uninitStructMember]: Uninitialized struct member: join_sql_o.len
Error: CPPCHECK_WARNING (CWE-768): [#def88]
postgresql-18beta1/contrib/postgres_fdw/postgres_fdw.c:1419: 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
Error: CPPCHECK_WARNING (CWE-768): [#def89]
postgresql-18beta1/contrib/postgres_fdw/postgres_fdw.c:1419: 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
Error: CPPCHECK_WARNING (CWE-768): [#def90]
postgresql-18beta1/contrib/postgres_fdw/postgres_fdw.c:1907: 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
Error: CPPCHECK_WARNING (CWE-768): [#def91]
postgresql-18beta1/contrib/postgres_fdw/postgres_fdw.c:1907: 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
Error: CPPCHECK_WARNING (CWE-768): [#def92]
postgresql-18beta1/contrib/postgres_fdw/postgres_fdw.c:1907: 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
Error: CPPCHECK_WARNING (CWE-768): [#def93]
postgresql-18beta1/contrib/postgres_fdw/postgres_fdw.c:1907: 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
Error: CPPCHECK_WARNING (CWE-768): [#def94]
postgresql-18beta1/contrib/postgres_fdw/postgres_fdw.c:2616: 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
Error: CPPCHECK_WARNING (CWE-768): [#def95]
postgresql-18beta1/contrib/postgres_fdw/postgres_fdw.c:2616: 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
Error: CPPCHECK_WARNING (CWE-768): [#def96]
postgresql-18beta1/contrib/postgres_fdw/postgres_fdw.c:2616: 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
Error: CPPCHECK_WARNING (CWE-768): [#def97]
postgresql-18beta1/contrib/postgres_fdw/postgres_fdw.c:7004: 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
Error: CPPCHECK_WARNING (CWE-768): [#def98]
postgresql-18beta1/contrib/postgres_fdw/postgres_fdw.c:7257: 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
Error: CPPCHECK_WARNING (CWE-476): [#def99]
postgresql-18beta1/contrib/postgres_fdw/postgres_fdw.c:7625: warning[nullPointer]: Possible null pointer dereference: fsstate
Error: GCC_ANALYZER_WARNING (CWE-457): [#def100]
postgresql-18beta1/contrib/seg/segparse.c:970:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/contrib/seg/segparse.c:928:6: branch_true: following ‘true’ branch...
postgresql-18beta1/contrib/seg/segparse.c:934:28: branch_true: ...to here
postgresql-18beta1/contrib/seg/segparse.c:957:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/contrib/seg/segparse.c:959:7: branch_false: ...to here
postgresql-18beta1/contrib/seg/segparse.c:968:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/seg/segparse.c:970:9: branch_false: ...to here
postgresql-18beta1/contrib/seg/segparse.c:970:9: danger: use of uninitialized value ‘yyss’ here
Error: CPPCHECK_WARNING (CWE-457): [#def101]
postgresql-18beta1/contrib/sepgsql/label.c:605: warning[uninitvar]: Uninitialized variable: result
Error: CPPCHECK_WARNING (CWE-457): [#def102]
postgresql-18beta1/contrib/sepgsql/label.c:643: warning[uninitvar]: Uninitialized variable: result
Error: CPPCHECK_WARNING (CWE-457): [#def103]
postgresql-18beta1/contrib/sepgsql/selinux.c:887: warning[uninitvar]: Uninitialized variable: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def104]
postgresql-18beta1/contrib/spi/refint.c:165:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘argtypes’
postgresql-18beta1/contrib/spi/refint.c:78:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/spi/refint.c:83:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/spi/refint.c:87:14: branch_false: ...to here
postgresql-18beta1/contrib/spi/refint.c:87:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/spi/refint.c:92:13: branch_false: ...to here
postgresql-18beta1/contrib/spi/refint.c:108:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/spi/refint.c:112:9: branch_false: ...to here
postgresql-18beta1/contrib/spi/refint.c:134:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/spi/refint.c:138:9: branch_false: ...to here
postgresql-18beta1/contrib/spi/refint.c:138:21: branch_true: following ‘true’ branch (when ‘i < nkeys’)...
postgresql-18beta1/contrib/spi/refint.c:141:76: branch_true: ...to here
postgresql-18beta1/contrib/spi/refint.c:144:20: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/spi/refint.c:151:22: branch_false: ...to here
postgresql-18beta1/contrib/spi/refint.c:158:20: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/spi/refint.c:164:21: branch_false: ...to here
postgresql-18beta1/contrib/spi/refint.c:164:20: branch_true: following ‘true’ branch...
postgresql-18beta1/contrib/spi/refint.c:165:33: branch_true: ...to here
postgresql-18beta1/contrib/spi/refint.c:165:25: danger: dereference of NULL ‘argtypes + (long unsigned int)i * 4’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def105]
postgresql-18beta1/contrib/spi/refint.c:414:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘argtypes’
postgresql-18beta1/contrib/spi/refint.c:280:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/spi/refint.c:285:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/spi/refint.c:290:13: branch_false: ...to here
postgresql-18beta1/contrib/spi/refint.c:290:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/spi/refint.c:294:14: branch_false: ...to here
postgresql-18beta1/contrib/spi/refint.c:294:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/spi/refint.c:299:9: branch_false: ...to here
postgresql-18beta1/contrib/spi/refint.c:306:12: branch_true: following ‘true’ branch...
postgresql-18beta1/contrib/spi/refint.c:308:17: branch_true: ...to here
postgresql-18beta1/contrib/spi/refint.c:315:12: branch_false: following ‘false’ branch (when ‘nargs > 4’)...
postgresql-18beta1/contrib/spi/refint.c:320:17: branch_false: ...to here
postgresql-18beta1/contrib/spi/refint.c:321:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/spi/refint.c:324:18: branch_false: ...to here
postgresql-18beta1/contrib/spi/refint.c:331:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/spi/refint.c:352:9: branch_true: following ‘true’ branch (when ‘is_update != 0’)...
postgresql-18beta1/contrib/spi/refint.c:352:9: branch_true: ...to here
postgresql-18beta1/contrib/spi/refint.c:356:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/spi/refint.c:362:17: branch_false: ...to here
postgresql-18beta1/contrib/spi/refint.c:362:17: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/spi/refint.c:368:9: branch_false: ...to here
postgresql-18beta1/contrib/spi/refint.c:368:21: branch_true: following ‘true’ branch (when ‘i < nkeys’)...
postgresql-18beta1/contrib/spi/refint.c:371:76: branch_true: ...to here
postgresql-18beta1/contrib/spi/refint.c:374:20: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/spi/refint.c:381:22: branch_false: ...to here
postgresql-18beta1/contrib/spi/refint.c:388:20: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/spi/refint.c:399:20: branch_false: ...to here
postgresql-18beta1/contrib/spi/refint.c:399:20: branch_true: following ‘true’ branch (when ‘newtuple’ is non-NULL)...
postgresql-18beta1/contrib/spi/refint.c:401:46: branch_true: ...to here
postgresql-18beta1/contrib/spi/refint.c:405:28: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/spi/refint.c:408:34: branch_false: ...to here
postgresql-18beta1/contrib/spi/refint.c:409:28: branch_true: following ‘true’ branch...
postgresql-18beta1/contrib/spi/refint.c:413:21: branch_true: ...to here
postgresql-18beta1/contrib/spi/refint.c:413:20: branch_true: following ‘true’ branch...
postgresql-18beta1/contrib/spi/refint.c:414:33: branch_true: ...to here
postgresql-18beta1/contrib/spi/refint.c:414:25: danger: dereference of NULL ‘argtypes + (long unsigned int)i * 4’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def106]
postgresql-18beta1/contrib/unaccent/unaccent.c:257:41: warning[-Wanalyzer-null-argument]: use of NULL ‘trg’ where non-null expected
postgresql-18beta1/contrib/unaccent/unaccent.c:105:12: branch_true: following ‘true’ branch...
postgresql-18beta1/contrib/unaccent/unaccent.c:118:17: branch_true: ...to here
postgresql-18beta1/contrib/unaccent/unaccent.c:120:17: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/contrib/unaccent/unaccent.c:120:17: branch_true: following ‘true’ branch...
postgresql-18beta1/contrib/unaccent/unaccent.c:120:17: branch_true: ...to here
postgresql-18beta1/contrib/unaccent/unaccent.c:227:36: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/unaccent/unaccent.c:235:36: branch_false: ...to here
postgresql-18beta1/contrib/unaccent/unaccent.c:235:36: branch_false: following ‘false’ branch (when ‘state != 4’)...
postgresql-18beta1/contrib/unaccent/unaccent.c:239:50: branch_false: ...to here
postgresql-18beta1/contrib/unaccent/unaccent.c:239:36: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/unaccent/unaccent.c:255:61: branch_false: ...to here
postgresql-18beta1/contrib/unaccent/unaccent.c:257:41: danger: argument 2 (‘trg’) NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-457): [#def107]
postgresql-18beta1/postgresql-17.2/contrib/bloom/blvacuum.c:153: warning[uninitvar]: Uninitialized variable: notFullPage
Error: GCC_ANALYZER_WARNING (CWE-457): [#def108]
postgresql-18beta1/postgresql-17.2/contrib/btree_gist/btree_utils_num.c:90:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘leaf’
postgresql-18beta1/postgresql-17.2/contrib/btree_gist/btree_utils_num.c:18:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/contrib/btree_gist/btree_utils_num.c:34:56: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/contrib/btree_gist/btree_utils_num.c:90:17: danger: use of uninitialized value ‘leaf’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def109]
postgresql-18beta1/postgresql-17.2/contrib/cube/cubeparse.c:971:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/postgresql-17.2/contrib/cube/cubeparse.c:929:6: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/contrib/cube/cubeparse.c:935:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/contrib/cube/cubeparse.c:958:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/postgresql-17.2/contrib/cube/cubeparse.c:960:7: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/cube/cubeparse.c:969:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/cube/cubeparse.c:971:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/cube/cubeparse.c:971:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1582:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1569:21: enter_function: entry to ‘cube_yy_create_buffer’
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1573:24: call_function: inlined call to ‘cube_yyalloc’ from ‘cube_yy_create_buffer’
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1574:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1577:2: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1582:54: danger: ‘malloc(64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def111]
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1623: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def112]
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1624: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1785:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1771:17: enter_function: entry to ‘cube_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1781:24: call_function: inlined call to ‘cube_yyalloc’ from ‘cube_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1782:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1785:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1795:2: call_function: calling ‘cube_yy_switch_to_buffer’ from ‘cube_yy_scan_buffer’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1837:26: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1821:17: enter_function: entry to ‘cube_yy_scan_bytes’
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1830:24: call_function: inlined call to ‘cube_yyalloc’ from ‘cube_yy_scan_bytes’
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1831:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1831:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/cube/cubescan.c:1839:6: call_function: calling ‘cube_yy_scan_buffer’ from ‘cube_yy_scan_bytes’
Error: CPPCHECK_WARNING (CWE-457): [#def115]
postgresql-18beta1/postgresql-17.2/contrib/dblink/dblink.c:690: error[legacyUninitvar]: Uninitialized variable: conn
Error: CPPCHECK_WARNING (CWE-457): [#def116]
postgresql-18beta1/postgresql-17.2/contrib/dblink/dblink.c:690: error[legacyUninitvar]: Uninitialized variable: sql
Error: GCC_ANALYZER_WARNING (CWE-404): [#def117]
postgresql-18beta1/postgresql-17.2/contrib/dblink/dblink.c:2767:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/contrib/dblink/dblink.c:2707:1: enter_function: entry to ‘dblink_res_error’
postgresql-18beta1/postgresql-17.2/contrib/dblink/dblink.c:2766:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/contrib/dblink/dblink.c:2767:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/contrib/dblink/dblink.c:2767:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-768): [#def118]
postgresql-18beta1/postgresql-17.2/contrib/hstore/hstore_io.c:466: error[unknownEvaluationOrder]: Expression '(entry)++->entry' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-457): [#def119]
postgresql-18beta1/postgresql-17.2/contrib/hstore/hstore_io.c:466: warning[uninitvar]: Uninitialized variable: pairs.val
Error: GCC_ANALYZER_WARNING (CWE-476): [#def120]
postgresql-18beta1/postgresql-17.2/contrib/hstore/hstore_op.c:341:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/postgresql-17.2/contrib/hstore/hstore_op.c:292:1: enter_function: entry to ‘hstore_delete_array’
postgresql-18beta1/postgresql-17.2/contrib/hstore/hstore_op.c:307:33: call_function: calling ‘hstoreArrayToPairs’ from ‘hstore_delete_array’
postgresql-18beta1/postgresql-17.2/contrib/hstore/hstore_op.c:307:33: return_function: returning to ‘hstore_delete_array’ from ‘hstoreArrayToPairs’
postgresql-18beta1/postgresql-17.2/contrib/hstore/hstore_op.c:317:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/hstore/hstore_op.c:317:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/hstore/hstore_op.c:331:25: branch_true: following ‘true’ branch (when ‘i < hs_count’)...
postgresql-18beta1/postgresql-17.2/contrib/hstore/hstore_op.c:335:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/contrib/hstore/hstore_op.c:335:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/hstore/hstore_op.c:339:59: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/hstore/hstore_op.c:341:40: danger: dereference of NULL ‘hstoreArrayToPairs(pg_detoast_datum((char *)*fcinfo.args[1].value), &nkeys) + (long unsigned int)j * 40’
Error: CPPCHECK_WARNING (CWE-476): [#def121]
postgresql-18beta1/postgresql-17.2/contrib/intarray/_intbig_gist.c:173: warning[nullPointer]: Possible null pointer dereference: ptr
Error: CPPCHECK_WARNING (CWE-682): [#def122]
postgresql-18beta1/postgresql-17.2/contrib/intarray/_intbig_gist.c:174: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def123]
postgresql-18beta1/postgresql-17.2/contrib/ltree/ltree_gist.c:76:17: warning[-Wanalyzer-null-argument]: use of NULL ‘left’ where non-null expected
postgresql-18beta1/postgresql-17.2/contrib/ltree/ltree_gist.c:192:1: enter_function: entry to ‘ltree_union’
postgresql-18beta1/postgresql-17.2/contrib/ltree/ltree_gist.c:207:21: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/ltree/ltree_gist.c:240:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/ltree/ltree_gist.c:240:12: branch_false: following ‘false’ branch (when ‘isalltrue == 0’)...
postgresql-18beta1/postgresql-17.2/contrib/ltree/ltree_gist.c:240:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/ltree/ltree_gist.c:253:18: call_function: calling ‘ltree_gist_alloc’ from ‘ltree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2360:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2291:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2302:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2302:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2313:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2313:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2314:32: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2314:32: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2317:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2317:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2360:13: throw: if ‘CloseTransientFile’ throws an exception...
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2360:13: danger: ‘buf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2361:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2291:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2302:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2302:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2313:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2313:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2314:32: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2314:32: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2317:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2317:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2360:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2361:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2361:17: throw: if ‘errstart’ throws an exception...
postgresql-18beta1/postgresql-17.2/contrib/pg_stat_statements/pg_stat_statements.c:2361:17: danger: ‘buf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def126]
postgresql-18beta1/postgresql-17.2/contrib/pg_trgm/trgm_gin.c:144: warning[nullPointer]: Possible null pointer dereference: (union varattrib_4b*)(trg)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def127]
postgresql-18beta1/postgresql-17.2/contrib/pg_trgm/trgm_regexp.c:1999:60: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/postgresql-17.2/contrib/pg_trgm/trgm_regexp.c:1969:16: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/contrib/pg_trgm/trgm_regexp.c:1969:16: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/contrib/pg_trgm/trgm_regexp.c:1999:60: danger: dereference of NULL ‘<unknown>’
Error: CPPCHECK_WARNING (CWE-909): [#def128]
postgresql-18beta1/postgresql-17.2/contrib/postgres_fdw/deparse.c:1924: error[uninitStructMember]: Uninitialized struct member: join_sql_o.len
Error: CPPCHECK_WARNING (CWE-768): [#def129]
postgresql-18beta1/postgresql-17.2/contrib/postgres_fdw/postgres_fdw.c:1411: 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
Error: CPPCHECK_WARNING (CWE-768): [#def130]
postgresql-18beta1/postgresql-17.2/contrib/postgres_fdw/postgres_fdw.c:1411: 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
Error: CPPCHECK_WARNING (CWE-768): [#def131]
postgresql-18beta1/postgresql-17.2/contrib/postgres_fdw/postgres_fdw.c:1899: 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
Error: CPPCHECK_WARNING (CWE-768): [#def132]
postgresql-18beta1/postgresql-17.2/contrib/postgres_fdw/postgres_fdw.c:1899: 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
Error: CPPCHECK_WARNING (CWE-768): [#def133]
postgresql-18beta1/postgresql-17.2/contrib/postgres_fdw/postgres_fdw.c:1899: 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
Error: CPPCHECK_WARNING (CWE-768): [#def134]
postgresql-18beta1/postgresql-17.2/contrib/postgres_fdw/postgres_fdw.c:1899: 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
Error: CPPCHECK_WARNING (CWE-768): [#def135]
postgresql-18beta1/postgresql-17.2/contrib/postgres_fdw/postgres_fdw.c:2608: 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
Error: CPPCHECK_WARNING (CWE-768): [#def136]
postgresql-18beta1/postgresql-17.2/contrib/postgres_fdw/postgres_fdw.c:2608: 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
Error: CPPCHECK_WARNING (CWE-768): [#def137]
postgresql-18beta1/postgresql-17.2/contrib/postgres_fdw/postgres_fdw.c:2608: 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
Error: CPPCHECK_WARNING (CWE-768): [#def138]
postgresql-18beta1/postgresql-17.2/contrib/postgres_fdw/postgres_fdw.c:6961: 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
Error: CPPCHECK_WARNING (CWE-768): [#def139]
postgresql-18beta1/postgresql-17.2/contrib/postgres_fdw/postgres_fdw.c:7210: 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
Error: CPPCHECK_WARNING (CWE-476): [#def140]
postgresql-18beta1/postgresql-17.2/contrib/postgres_fdw/postgres_fdw.c:7577: warning[nullPointer]: Possible null pointer dereference: fsstate
Error: GCC_ANALYZER_WARNING (CWE-457): [#def141]
postgresql-18beta1/postgresql-17.2/contrib/seg/segparse.c:971:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/postgresql-17.2/contrib/seg/segparse.c:929:6: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/contrib/seg/segparse.c:935:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/contrib/seg/segparse.c:958:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/postgresql-17.2/contrib/seg/segparse.c:960:7: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/seg/segparse.c:969:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/seg/segparse.c:971:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/seg/segparse.c:971:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1564:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1551:21: enter_function: entry to ‘seg_yy_create_buffer’
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1555:24: call_function: inlined call to ‘seg_yyalloc’ from ‘seg_yy_create_buffer’
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1556:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1559:2: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1564:54: danger: ‘malloc(64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def143]
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1605: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def144]
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1606: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1767:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1753:17: enter_function: entry to ‘seg_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1763:24: call_function: inlined call to ‘seg_yyalloc’ from ‘seg_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1764:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1767:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1777:2: call_function: calling ‘seg_yy_switch_to_buffer’ from ‘seg_yy_scan_buffer’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1819:26: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1803:17: enter_function: entry to ‘seg_yy_scan_bytes’
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1812:24: call_function: inlined call to ‘seg_yyalloc’ from ‘seg_yy_scan_bytes’
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1813:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1813:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/seg/segscan.c:1821:6: call_function: calling ‘seg_yy_scan_buffer’ from ‘seg_yy_scan_bytes’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def147]
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:160:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘argtypes’
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:75:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:80:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:85:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:101:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:105:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:111:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:119:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:129:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:133:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:133:21: branch_true: following ‘true’ branch (when ‘i < nkeys’)...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:136:76: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:139:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:146:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:153:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:159:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:159:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:160:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:160:25: danger: dereference of NULL ‘argtypes + (long unsigned int)i * 4’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def148]
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:407:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘argtypes’
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:275:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:280:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:285:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:285:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:290:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:297:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:299:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:306:12: branch_false: following ‘false’ branch (when ‘nargs > 4’)...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:311:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:312:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:315:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:322:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:331:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:339:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:349:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:355:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:355:17: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:361:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:361:21: branch_true: following ‘true’ branch (when ‘i < nkeys’)...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:364:76: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:367:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:374:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:381:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:392:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:392:20: branch_true: following ‘true’ branch (when ‘newtuple’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:394:46: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:398:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:401:34: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:402:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:406:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:406:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:407:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/contrib/spi/refint.c:407:25: danger: dereference of NULL ‘argtypes + (long unsigned int)i * 4’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def149]
postgresql-18beta1/postgresql-17.2/contrib/unaccent/unaccent.c:256:41: warning[-Wanalyzer-null-argument]: use of NULL ‘trg’ where non-null expected
postgresql-18beta1/postgresql-17.2/contrib/unaccent/unaccent.c:104:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/contrib/unaccent/unaccent.c:117:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/contrib/unaccent/unaccent.c:119:17: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/contrib/unaccent/unaccent.c:119:17: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/contrib/unaccent/unaccent.c:119:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/contrib/unaccent/unaccent.c:226:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/unaccent/unaccent.c:234:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/unaccent/unaccent.c:234:36: branch_false: following ‘false’ branch (when ‘state != 4’)...
postgresql-18beta1/postgresql-17.2/contrib/unaccent/unaccent.c:238:50: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/unaccent/unaccent.c:238:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/unaccent/unaccent.c:254:61: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/unaccent/unaccent.c:256:41: danger: argument 2 (‘trg’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def150]
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:814:25: warning[-Wanalyzer-null-argument]: use of NULL ‘dataptr’ where non-null expected
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:722:1: enter_function: entry to ‘brin_range_deserialize’
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:790:12: branch_false: following ‘false’ branch (when ‘datalen == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:799:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:799:21: branch_true: following ‘true’ branch (when ‘i < nvalues’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:801:20: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:801:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:810:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:810:25: branch_true: following ‘true’ branch (when ‘typlen > 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:812:44: call_function: inlined call to ‘PointerGetDatum’ from ‘brin_range_deserialize’
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:814:25: danger: argument 1 (‘dataptr’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def151]
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:823:25: warning[-Wanalyzer-null-argument]: use of NULL ‘dataptr’ where non-null expected
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:790:12: branch_false: following ‘false’ branch (when ‘datalen == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:799:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:799:21: branch_true: following ‘true’ branch (when ‘i < nvalues’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:801:20: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:810:25: branch_false: following ‘false’ branch (when ‘typlen <= 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:819:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:823:25: danger: argument 1 (‘dataptr’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def152]
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:833:25: warning[-Wanalyzer-null-argument]: use of NULL ‘dataptr’ where non-null expected
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:790:12: branch_false: following ‘false’ branch (when ‘datalen == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:799:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:799:21: branch_true: following ‘true’ branch (when ‘i < nvalues’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:801:20: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:801:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:810:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:810:25: branch_false: following ‘false’ branch (when ‘typlen <= 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:819:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:819:25: branch_false: following ‘false’ branch (when ‘typlen != -1’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:827:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:827:25: branch_true: following ‘true’ branch (when ‘typlen == -2’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:829:48: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_minmax_multi.c:833:25: danger: argument 1 (‘dataptr’) NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def153]
postgresql-18beta1/postgresql-17.2/src/backend/access/common/heaptuple.c:970: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: CPPCHECK_WARNING (CWE-476): [#def154]
postgresql-18beta1/postgresql-17.2/src/backend/access/common/heaptuple.c:971: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: CPPCHECK_WARNING (CWE-476): [#def155]
postgresql-18beta1/postgresql-17.2/src/backend/access/common/heaptuple.c:972: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: CPPCHECK_WARNING (CWE-476): [#def156]
postgresql-18beta1/postgresql-17.2/src/backend/access/common/heaptuple.c:973: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: CPPCHECK_WARNING (CWE-476): [#def157]
postgresql-18beta1/postgresql-17.2/src/backend/access/common/heaptuple.c:975: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: CPPCHECK_WARNING (CWE-476): [#def158]
postgresql-18beta1/postgresql-17.2/src/backend/access/common/heaptuple.c:979: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: CPPCHECK_WARNING (CWE-476): [#def159]
postgresql-18beta1/postgresql-17.2/src/backend/access/common/heaptuple.c:980: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: GCC_ANALYZER_WARNING (CWE-688): [#def160]
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginbtree.c:576:25: warning[-Wanalyzer-null-argument]: use of NULL ‘newrootpg’ where non-null expected
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginbtree.c:816:1: enter_function: entry to ‘ginInsertValue’
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginbtree.c:822:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginbtree.c:823:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginbtree.c:823:17: call_function: calling ‘ginFinishOldSplit’ from ‘ginInsertValue’
Error: CPPCHECK_WARNING (CWE-457): [#def161]
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginentrypage.c:630: error[legacyUninitvar]: Uninitialized variable: tupstore
Error: GCC_ANALYZER_WARNING (CWE-457): [#def162]
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1697:61: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘category[<unknown>]’
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1641:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1643:47: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1645:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1647:54: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1662:40: branch_true: following ‘true’ branch (when ‘StopLow < StopHigh’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1666:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1672:44: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1677:44: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1677:44: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1683:45: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1683:44: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1691:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1691:44: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1694:53: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1694:52: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1697:61: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1697:61: danger: use of uninitialized value ‘category[<unknown>]’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def163]
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1710:55: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘category[<unknown>]’
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1641:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1643:47: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1645:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1647:54: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1662:40: branch_true: following ‘true’ branch (when ‘StopLow < StopHigh’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1666:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1672:44: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1677:44: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1677:44: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1683:45: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1683:44: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1691:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1691:44: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1710:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginget.c:1710:55: danger: use of uninitialized value ‘category[<unknown>]’ here
Error: CPPCHECK_WARNING (CWE-457): [#def164]
postgresql-18beta1/postgresql-17.2/src/backend/access/gist/gistutil.c:206: error[uninitvar]: Uninitialized variable: &attrsize
Error: CPPCHECK_WARNING (CWE-457): [#def165]
postgresql-18beta1/postgresql-17.2/src/backend/access/gist/gistutil.c:275: error[uninitvar]: Uninitialized variable: &dstsize
Error: GCC_ANALYZER_WARNING (CWE-688): [#def166]
postgresql-18beta1/postgresql-17.2/src/backend/access/hash/hashpage.c:1531:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
postgresql-18beta1/postgresql-17.2/src/backend/access/hash/hashpage.c:1516:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/hash/hashpage.c:1521:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/hash/hashpage.c:1529:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/hash/hashpage.c:1530:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/hash/hashpage.c:1531:24: release_memory: using NULL here
postgresql-18beta1/postgresql-17.2/src/backend/access/hash/hashpage.c:1531:17: danger: argument 1 (‘*rel.rd_amcache’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def167]
postgresql-18beta1/postgresql-17.2/src/backend/access/hash/hashpage.c:1531:17: warning[-Wanalyzer-null-argument]: use of NULL ‘*rel.rd_amcache’ where non-null expected
postgresql-18beta1/postgresql-17.2/src/backend/access/hash/hashpage.c:1559:1: enter_function: entry to ‘_hash_getbucketbuf_from_hashkey’
postgresql-18beta1/postgresql-17.2/src/backend/access/hash/hashpage.c:1573:17: call_function: calling ‘_hash_getcachedmetap’ from ‘_hash_getbucketbuf_from_hashkey’
postgresql-18beta1/postgresql-17.2/src/backend/access/hash/hashpage.c:1573:17: return_function: returning to ‘_hash_getbucketbuf_from_hashkey’ from ‘_hash_getcachedmetap’
postgresql-18beta1/postgresql-17.2/src/backend/access/hash/hashpage.c:1592:23: call_function: calling ‘_hash_getbuf’ from ‘_hash_getbucketbuf_from_hashkey’
postgresql-18beta1/postgresql-17.2/src/backend/access/hash/hashpage.c:1592:23: return_function: returning to ‘_hash_getbucketbuf_from_hashkey’ from ‘_hash_getbuf’
postgresql-18beta1/postgresql-17.2/src/backend/access/hash/hashpage.c:1601:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/hash/hashpage.c:1605:17: call_function: inlined call to ‘_hash_relbuf’ from ‘_hash_getbucketbuf_from_hashkey’
postgresql-18beta1/postgresql-17.2/src/backend/access/hash/hashpage.c:1606:25: call_function: calling ‘_hash_getcachedmetap’ from ‘_hash_getbucketbuf_from_hashkey’
Error: CPPCHECK_WARNING (CWE-457): [#def168]
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam.c:5782: error[legacyUninitvar]: Uninitialized variable: status
Error: CPPCHECK_WARNING (CWE-457): [#def169]
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam.c:6327: error[legacyUninitvar]: Uninitialized variable: ret
Error: GCC_ANALYZER_WARNING (CWE-476): [#def170]
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam.c:9969:63: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘<unknown>’
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam.c:9843:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam.c:9884:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam.c:9915:12: branch_true: following ‘true’ branch (when ‘newaction == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam.c:9922:27: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam.c:9928:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam.c:9931:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam.c:9931:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam.c:9934:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam.c:9937:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam.c:9944:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam.c:9958:20: branch_true: following ‘true’ branch (when ‘prefixlen != 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam.c:9963:31: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam.c:9969:63: danger: dereference of NULL ‘oldtup.t_data’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def171]
postgresql-18beta1/postgresql-17.2/src/backend/access/index/amvalidate.c:178:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/backend/access/index/amvalidate.c:162:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/index/amvalidate.c:164:35: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/index/amvalidate.c:170:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/backend/access/index/amvalidate.c:171:21: branch_true: following ‘true’ branch (when ‘i < maxargs’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/index/amvalidate.c:173:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/index/amvalidate.c:178:26: throw: if ‘IsBinaryCoercible’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/access/index/amvalidate.c:178:26: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def172]
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtsplitloc.c:1163:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘split’
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtsplitloc.c:934:1: enter_function: entry to ‘_bt_strategy’
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtsplitloc.c:954:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtsplitloc.c:961:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtsplitloc.c:961:9: call_function: calling ‘_bt_interval_edges’ from ‘_bt_strategy’
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtsplitloc.c:961:9: return_function: returning to ‘_bt_strategy’ from ‘_bt_interval_edges’
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtsplitloc.c:962:20: release_memory: ‘leftinterval’ is NULL
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtsplitloc.c:962:20: call_function: calling ‘_bt_split_lastleft’ from ‘_bt_strategy’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def173]
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtsplitloc.c:1179:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘split’
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtsplitloc.c:934:1: enter_function: entry to ‘_bt_strategy’
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtsplitloc.c:954:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtsplitloc.c:961:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtsplitloc.c:961:9: call_function: calling ‘_bt_interval_edges’ from ‘_bt_strategy’
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtsplitloc.c:961:9: return_function: returning to ‘_bt_strategy’ from ‘_bt_interval_edges’
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtsplitloc.c:963:21: release_memory: ‘rightinterval’ is NULL
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtsplitloc.c:963:21: call_function: calling ‘_bt_split_firstright’ from ‘_bt_strategy’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def174]
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgscan.c:123:17: warning[-Wanalyzer-null-argument]: use of NULL ‘distances’ where non-null expected
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgscan.c:942:1: enter_function: entry to ‘spggetbitmap’
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgscan.c:952:9: call_function: calling ‘spgWalk’ from ‘spggetbitmap’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def175]
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:795:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:994:1: enter_function: entry to ‘spgFormInnerTuple’
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:1037:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:1037:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:1037:13: branch_false: following ‘false’ branch (when ‘nNodes <= 8191’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:1043:34: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:1049:12: branch_true: following ‘true’ branch (when ‘hasPrefix != 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:1050:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:1050:17: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:1050:17: call_function: inlined call to ‘memcpyInnerDatum’ from ‘spgFormInnerTuple’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def176]
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:800:17: warning[-Wanalyzer-null-argument]: use of NULL ‘target’ where non-null expected
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:994:1: enter_function: entry to ‘spgFormInnerTuple’
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:1037:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:1037:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:1037:13: branch_false: following ‘false’ branch (when ‘nNodes <= 8191’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:1043:34: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:1049:12: branch_true: following ‘true’ branch (when ‘hasPrefix != 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:1050:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:1050:17: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/spgist/spgutils.c:1050:17: call_function: inlined call to ‘memcpyInnerDatum’ from ‘spgFormInnerTuple’
Error: CPPCHECK_WARNING (CWE-457): [#def177]
postgresql-18beta1/postgresql-17.2/src/backend/access/transam/commit_ts.c:452: warning[uninitvar]: Uninitialized variable: values
Error: CPPCHECK_WARNING (CWE-457): [#def178]
postgresql-18beta1/postgresql-17.2/src/backend/access/transam/commit_ts.c:493: warning[uninitvar]: Uninitialized variable: values
Error: CPPCHECK_WARNING (CWE-476): [#def179]
postgresql-18beta1/postgresql-17.2/src/backend/access/transam/twophase.c:1053: error[ctunullpointer]: Null pointer dereference: data
Error: GCC_ANALYZER_WARNING (CWE-688): [#def180]
postgresql-18beta1/postgresql-17.2/src/backend/access/transam/xact.c:6051:76: warning[-Wanalyzer-null-argument]: use of NULL ‘twophase_gid’ where non-null expected
postgresql-18beta1/postgresql-17.2/src/backend/access/transam/xact.c:5162:1: enter_function: entry to ‘AbortSubTransaction’
postgresql-18beta1/postgresql-17.2/src/backend/access/transam/xact.c:5219:9: call_function: calling ‘ShowTransactionState’ from ‘AbortSubTransaction’
postgresql-18beta1/postgresql-17.2/src/backend/access/transam/xact.c:5219:9: return_function: returning to ‘AbortSubTransaction’ from ‘ShowTransactionState’
postgresql-18beta1/postgresql-17.2/src/backend/access/transam/xact.c:5255:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/transam/xact.c:5257:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/transam/xact.c:5267:24: call_function: calling ‘RecordTransactionAbort’ from ‘AbortSubTransaction’
Error: CPPCHECK_WARNING (CWE-682): [#def181]
postgresql-18beta1/postgresql-17.2/src/backend/access/transam/xlog.c:1649: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def182]
postgresql-18beta1/postgresql-17.2/src/backend/access/transam/xlogreader.c:78:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/backend/access/transam/xlogreader.c:77:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/backend/access/transam/xlogreader.c:78:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/access/transam/xlogreader.c:78:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def183]
postgresql-18beta1/postgresql-17.2/src/backend/backup/basebackup_copy.c:418: warning[uninitvar]: Uninitialized variable: values
Error: GCC_ANALYZER_WARNING (CWE-404): [#def184]
postgresql-18beta1/postgresql-17.2/src/backend/backup/basebackup_incremental.c:1025:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/backend/backup/basebackup_incremental.c:1024:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/backend/backup/basebackup_incremental.c:1025:26: throw: if ‘appendStringInfoVA’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/backup/basebackup_incremental.c:1025:26: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def185]
postgresql-18beta1/postgresql-17.2/src/backend/backup/walsummary.c:332:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/backend/backup/walsummary.c:331:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/backend/backup/walsummary.c:332:26: throw: if ‘appendStringInfoVA’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/backup/walsummary.c:332:26: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def186]
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootparse.c:1142:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootparse.c:1100:6: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootparse.c:1106:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootparse.c:1129:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootparse.c:1131:7: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootparse.c:1140:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootparse.c:1142:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootparse.c:1142:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:1778:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:1765:21: enter_function: entry to ‘boot_yy_create_buffer’
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:1769:24: call_function: inlined call to ‘boot_yyalloc’ from ‘boot_yy_create_buffer’
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:1770:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:1773:2: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:1778:54: danger: ‘malloc(64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def188]
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:1819: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def189]
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:1820: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:1981:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:1967:17: enter_function: entry to ‘boot_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:1977:24: call_function: inlined call to ‘boot_yyalloc’ from ‘boot_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:1978:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:1981:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:1991:2: call_function: calling ‘boot_yy_switch_to_buffer’ from ‘boot_yy_scan_buffer’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def191]
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:2033:26: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:2017:17: enter_function: entry to ‘boot_yy_scan_bytes’
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:2026:24: call_function: inlined call to ‘boot_yyalloc’ from ‘boot_yy_scan_bytes’
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:2027:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:2027:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/bootstrap/bootscanner.c:2035:6: call_function: calling ‘boot_yy_scan_buffer’ from ‘boot_yy_scan_bytes’
Error: CPPCHECK_WARNING (CWE-768): [#def192]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/objectaddress.c:2318: 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
Error: CPPCHECK_WARNING (CWE-768): [#def193]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/objectaddress.c:2321: 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
Error: CPPCHECK_WARNING (CWE-768): [#def194]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/objectaddress.c:2325: 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
Error: CPPCHECK_WARNING (CWE-768): [#def195]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/objectaddress.c:2332: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(name)},(union ListCell){.ptr_value=(args)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def196]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/objectaddress.c:4860: 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
Error: CPPCHECK_WARNING (CWE-768): [#def197]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/objectaddress.c:4934: 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
Error: CPPCHECK_WARNING (CWE-768): [#def198]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/objectaddress.c:5040: 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
Error: CPPCHECK_WARNING (CWE-768): [#def199]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/objectaddress.c:5040: 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
Error: CPPCHECK_WARNING (CWE-768): [#def200]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/objectaddress.c:5120: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(ltype)},(union ListCell){.ptr_value=(rtype)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def201]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/objectaddress.c:5182: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(ltype)},(union ListCell){.ptr_value=(rtype)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def202]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/objectaddress.c:5302: 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
Error: CPPCHECK_WARNING (CWE-768): [#def203]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/objectaddress.c:5329: 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
Error: CPPCHECK_WARNING (CWE-768): [#def204]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/objectaddress.c:5356: 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
Error: CPPCHECK_WARNING (CWE-768): [#def205]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/objectaddress.c:5383: 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
Error: CPPCHECK_WARNING (CWE-768): [#def206]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/objectaddress.c:5410: 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
Error: CPPCHECK_WARNING (CWE-768): [#def207]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/objectaddress.c:5955: 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
Error: CPPCHECK_WARNING (CWE-768): [#def208]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/objectaddress.c:5955: 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
Error: CPPCHECK_WARNING (CWE-768): [#def209]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/objectaddress.c:5993: 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
Error: GCC_ANALYZER_WARNING (CWE-476): [#def210]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/partition.c:288:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘partexprs_item’
postgresql-18beta1/postgresql-17.2/src/backend/catalog/partition.c:255:1: enter_function: entry to ‘has_partition_attrs’
postgresql-18beta1/postgresql-17.2/src/backend/catalog/partition.c:263:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/catalog/partition.c:270:26: call_function: inlined call to ‘list_head’ from ‘has_partition_attrs’
postgresql-18beta1/postgresql-17.2/src/backend/catalog/partition.c:271:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/catalog/partition.c:271:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/catalog/partition.c:273:45: call_function: inlined call to ‘get_partition_col_attnum’ from ‘has_partition_attrs’
postgresql-18beta1/postgresql-17.2/src/backend/catalog/partition.c:275:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/catalog/partition.c:288:37: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/catalog/partition.c:288:37: danger: dereference of NULL ‘partexprs_item’
Error: COMPILER_WARNING (CWE-704): [#def211]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/pg_type.c: scope_hint: In function ‘makeMultirangeTypeName’
postgresql-18beta1/postgresql-17.2/src/backend/catalog/pg_type.c:959:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def212]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/pg_type.c:959:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: CPPCHECK_WARNING (CWE-768): [#def213]
postgresql-18beta1/postgresql-17.2/src/backend/catalog/toasting.c:324: 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
Error: GCC_ANALYZER_WARNING (CWE-476): [#def214]
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:600:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘thisdata’
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:280:1: enter_function: entry to ‘do_analyze_rel’
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:401:29: branch_false: following ‘false’ branch (when ‘i > attr_cnt’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:419:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:419:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:428:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:428:17: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:430:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:440:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:489:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:489:21: branch_false: following ‘false’ branch (when ‘attr_cnt <= i’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:489:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:494:23: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:510:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:519:9: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:519:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:522:12: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:527:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:537:12: branch_true: following ‘true’ branch (when ‘numrows > 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:542:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:550:29: branch_false: following ‘false’ branch (when ‘attr_cnt <= i’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:579:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:579:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:585:17: call_function: inlined call to ‘MemoryContextSwitchTo’ from ‘do_analyze_rel’
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:593:17: call_function: inlined call to ‘update_attstats’ from ‘do_analyze_rel’
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:596:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:596:31: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:598:60: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:600:25: danger: dereference of NULL ‘thisdata’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def215]
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:653:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘thisdata’
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:401:29: branch_false: following ‘false’ branch (when ‘i > attr_cnt’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:419:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:419:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:428:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:428:17: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:430:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:440:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:489:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:489:21: branch_false: following ‘false’ branch (when ‘attr_cnt <= i’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:489:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:494:23: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:510:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:519:9: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:519:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:522:12: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:527:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:623:12: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:627:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:648:31: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:650:60: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:653:47: danger: dereference of NULL ‘thisdata’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def216]
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:848:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘thisdata’
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:280:1: enter_function: entry to ‘do_analyze_rel’
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:401:29: branch_false: following ‘false’ branch (when ‘i > attr_cnt’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:419:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:419:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:428:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:428:17: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:430:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:440:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:489:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:489:21: branch_false: following ‘false’ branch (when ‘attr_cnt <= i’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:489:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:494:23: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:510:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:519:9: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:519:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:522:12: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:527:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:537:12: branch_true: following ‘true’ branch (when ‘numrows > 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:542:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:550:29: branch_false: following ‘false’ branch (when ‘attr_cnt <= i’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:579:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:579:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:580:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/analyze.c:580:25: call_function: calling ‘compute_index_stats’ from ‘do_analyze_rel’
Error: CPPCHECK_WARNING (CWE-457): [#def217]
postgresql-18beta1/postgresql-17.2/src/backend/commands/conversioncmds.c:110: error[uninitvar]: Uninitialized variable: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def218]
postgresql-18beta1/postgresql-17.2/src/backend/commands/copy.c:300:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rel’
postgresql-18beta1/postgresql-17.2/src/backend/commands/copy.c:62:1: enter_function: entry to ‘DoCopy’
postgresql-18beta1/postgresql-17.2/src/backend/commands/copy.c:112:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/commands/copy.c:284:25: call_function: inlined call to ‘newNode’ from ‘DoCopy’
postgresql-18beta1/postgresql-17.2/src/backend/commands/copy.c:293:12: branch_true: following ‘true’ branch (when ‘is_from != 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/commands/copy.c:300:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/copy.c:300:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/commands/copy.c:300:38: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/commands/copy.c:300:38: danger: dereference of NULL ‘rel’
Error: CPPCHECK_WARNING (CWE-476): [#def219]
postgresql-18beta1/postgresql-17.2/src/backend/commands/extension.c:315: error[ctunullpointer]: Null pointer dereference: versionname
Error: CPPCHECK_WARNING (CWE-476): [#def220]
postgresql-18beta1/postgresql-17.2/src/backend/commands/extension.c:315: warning[nullPointer]: Possible null pointer dereference: versionname
Error: CPPCHECK_WARNING (CWE-476): [#def221]
postgresql-18beta1/postgresql-17.2/src/backend/commands/extension.c:3097: warning[nullPointer]: Possible null pointer dereference: versionName
Error: CPPCHECK_WARNING (CWE-457): [#def222]
postgresql-18beta1/postgresql-17.2/src/backend/commands/policy.c:128: error[legacyUninitvar]: Uninitialized variable: polcmd
Error: CPPCHECK_WARNING (CWE-457): [#def223]
postgresql-18beta1/postgresql-17.2/src/backend/commands/tablecmds.c:8690: warning[uninitvar]: Uninitialized variable: repl_val
Error: CPPCHECK_WARNING (CWE-457): [#def224]
postgresql-18beta1/postgresql-17.2/src/backend/commands/tablecmds.c:8764: warning[uninitvar]: Uninitialized variable: repl_val
Error: CPPCHECK_WARNING (CWE-457): [#def225]
postgresql-18beta1/postgresql-17.2/src/backend/commands/tablecmds.c:12626: error[legacyUninitvar]: Uninitialized variable: contype
Error: CPPCHECK_WARNING (CWE-768): [#def226]
postgresql-18beta1/postgresql-17.2/src/backend/commands/tablecmds.c:14202: 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
Error: CPPCHECK_WARNING (CWE-768): [#def227]
postgresql-18beta1/postgresql-17.2/src/backend/commands/tablecmds.c:14202: 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
Error: CPPCHECK_WARNING (CWE-768): [#def228]
postgresql-18beta1/postgresql-17.2/src/backend/commands/tablecmds.c:14210: 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
Error: CPPCHECK_WARNING (CWE-457): [#def229]
postgresql-18beta1/postgresql-17.2/src/backend/commands/tablespace.c:1068: warning[uninitvar]: Uninitialized variable: repl_val
Error: GCC_ANALYZER_WARNING (CWE-476): [#def230]
postgresql-18beta1/postgresql-17.2/src/backend/executor/execJunk.c:176:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
postgresql-18beta1/postgresql-17.2/src/backend/executor/execJunk.c:137:1: enter_function: entry to ‘ExecInitJunkFilterConversion’
postgresql-18beta1/postgresql-17.2/src/backend/executor/execJunk.c:166:12: branch_true: following ‘true’ branch (when ‘cleanLength > 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/executor/execJunk.c:168:43: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/execJunk.c:169:21: call_function: inlined call to ‘list_head’ from ‘ExecInitJunkFilterConversion’
postgresql-18beta1/postgresql-17.2/src/backend/executor/execJunk.c:170:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/execJunk.c:170:29: branch_true: following ‘true’ branch (when ‘i < cleanLength’)...
postgresql-18beta1/postgresql-17.2/src/backend/executor/execJunk.c:172:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/execJunk.c:176:46: danger: dereference of NULL ‘t’
Error: CPPCHECK_WARNING (CWE-476): [#def231]
postgresql-18beta1/postgresql-17.2/src/backend/executor/execProcnode.c:391: warning[nullPointer]: Possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def232]
postgresql-18beta1/postgresql-17.2/src/backend/executor/execProcnode.c:407: warning[nullPointer]: Possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def233]
postgresql-18beta1/postgresql-17.2/src/backend/executor/execProcnode.c:433: error[ctunullpointer]: Null pointer dereference: node
Error: CPPCHECK_WARNING (CWE-476): [#def234]
postgresql-18beta1/postgresql-17.2/src/backend/executor/execProcnode.c:433: warning[nullPointer]: Possible null pointer dereference: node
Error: CPPCHECK_WARNING (CWE-476): [#def235]
postgresql-18beta1/postgresql-17.2/src/backend/executor/execProcnode.c:434: warning[nullPointer]: Possible null pointer dereference: node
Error: CPPCHECK_WARNING (CWE-457): [#def236]
postgresql-18beta1/postgresql-17.2/src/backend/executor/execScan.c:337: error[legacyUninitvar]: Uninitialized variable: relids
Error: GCC_ANALYZER_WARNING (CWE-457): [#def237]
postgresql-18beta1/postgresql-17.2/src/backend/executor/execTuples.c:2372:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘isnull’
postgresql-18beta1/postgresql-17.2/src/backend/executor/execTuples.c:2390:1: enter_function: entry to ‘do_text_output_multiline’
postgresql-18beta1/postgresql-17.2/src/backend/executor/execTuples.c:2395:16: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/execTuples.c:2400:23: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/execTuples.c:2401:20: branch_true: following ‘true’ branch (when ‘eol’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/executor/execTuples.c:2403:31: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/execTuples.c:2413:17: call_function: calling ‘do_tup_output’ from ‘do_text_output_multiline’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def238]
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1210:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘leftop’
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1175:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1191:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1197:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1210:31: danger: dereference of NULL ‘leftop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def239]
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1242:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rightop’
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1135:1: enter_function: entry to ‘ExecIndexBuildScanKeys’
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1175:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1191:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1197:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1203:43: call_function: inlined call to ‘get_leftop’ from ‘ExecIndexBuildScanKeys’
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1205:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1205:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1210:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1211:35: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1210:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1214:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1215:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1242:29: danger: dereference of NULL ‘rightop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def240]
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1327:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘leftop’
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1175:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1306:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1327:39: danger: dereference of NULL ‘leftop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def241]
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1366:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rightop’
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1175:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1306:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1322:36: branch_true: following ‘true’ branch (when ‘leftop’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1322:47: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1327:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1328:43: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1327:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1331:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1337:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1337:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1340:44: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1347:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1350:44: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1354:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1361:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1366:37: danger: dereference of NULL ‘rightop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def242]
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1451:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘leftop’
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1175:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1288:25: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1428:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1428:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1438:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1446:28: branch_false: following ‘false’ branch (when ‘leftop’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1451:31: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1451:31: danger: dereference of NULL ‘leftop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def243]
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1484:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rightop’
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1175:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1288:25: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1428:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1428:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1438:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1446:28: branch_true: following ‘true’ branch (when ‘leftop’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1446:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1451:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1452:35: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1451:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1455:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1456:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1475:28: branch_false: following ‘false’ branch (when ‘rightop’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1480:29: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1480:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1484:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1484:37: danger: dereference of NULL ‘rightop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def244]
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1565:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘leftop’
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1175:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1288:25: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1428:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1428:25: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1547:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1547:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1558:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1560:28: branch_false: following ‘false’ branch (when ‘leftop’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1565:31: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/executor/nodeIndexscan.c:1565:31: danger: dereference of NULL ‘leftop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def245]
postgresql-18beta1/postgresql-17.2/src/backend/lib/pairingheap.c:275:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pairs’
postgresql-18beta1/postgresql-17.2/src/backend/lib/pairingheap.c:251:20: branch_true: following ‘true’ branch (when ‘next’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/lib/pairingheap.c:275:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/lib/pairingheap.c:275:9: danger: dereference of NULL ‘pairs’
Error: CPPCHECK_WARNING (CWE-457): [#def246]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth-scram.c:1174: warning[uninitvar]: Uninitialized variable: ClientKey
Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:680:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1922:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1942:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1957:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1959:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1962:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:682:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1922:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1942:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1957:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1959:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1962:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:687:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1922:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1942:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1957:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1959:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1962:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:695:17: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1922:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1942:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1957:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1959:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1962:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:697:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1922:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1942:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1957:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1959:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1962:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:711:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1922:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1942:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1957:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1959:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1962:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: return_function: returning to ‘pam_passwd_conv_proc’ from ‘sendAuthRequest’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1970:50: call_function: calling ‘recv_password_packet’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:714:17: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1922:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1942:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1957:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1959:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1962:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: return_function: returning to ‘pam_passwd_conv_proc’ from ‘sendAuthRequest’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1970:50: call_function: calling ‘recv_password_packet’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:723:25: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1922:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1942:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1957:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1959:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1962:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: return_function: returning to ‘pam_passwd_conv_proc’ from ‘sendAuthRequest’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1970:50: call_function: calling ‘recv_password_packet’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:730:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1922:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1942:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1957:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1959:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1962:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: return_function: returning to ‘pam_passwd_conv_proc’ from ‘sendAuthRequest’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1970:50: call_function: calling ‘recv_password_packet’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:731:13: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1922:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1942:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1957:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1959:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1962:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: return_function: returning to ‘pam_passwd_conv_proc’ from ‘sendAuthRequest’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1970:50: call_function: calling ‘recv_password_packet’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1987:33: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1942:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1957:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1959:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1962:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1982:43: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1982:54: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1982:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1984:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1957:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1959:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1987:33: throw: if ‘errstart’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1987:33: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1987:33: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1942:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1957:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1959:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1987:33: throw: if ‘errstart’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1987:33: danger: ‘reply’ leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1998:33: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1942:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1957:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1959:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1962:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1982:43: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1982:54: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1982:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1984:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1957:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1959:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1998:33: throw: if ‘errstart’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1998:33: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1998:33: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1942:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1957:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1959:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1998:33: throw: if ‘errstart’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1998:33: danger: ‘reply’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def261]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:2834:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:2934:1: enter_function: entry to ‘PerformRadiusTransaction’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:2974:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:2988:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:2995:22: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:3012:21: branch_false: following ‘false’ branch (when ‘i >= encryptedpasswordlen’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:3043:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:3045:9: call_function: calling ‘radius_add_attribute’ from ‘PerformRadiusTransaction’
Error: CPPCHECK_WARNING (CWE-457): [#def262]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:3045: warning[uninitvar]: Uninitialized variable: encryptedpassword
Error: GCC_ANALYZER_WARNING (CWE-476): [#def263]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/hba.c:1347:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/hba.c:1322:1: enter_function: entry to ‘parse_hba_line’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/hba.c:1346:17: call_function: inlined call to ‘list_head’ from ‘parse_hba_line’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/hba.c:1347:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/hba.c:1347:9: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def264]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/hba.c:2706:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/hba.c:2689:1: enter_function: entry to ‘parse_ident_line’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/hba.c:2700:17: call_function: inlined call to ‘list_head’ from ‘parse_ident_line’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/hba.c:2702:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/hba.c:2706:9: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def265]
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:552:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:446:12: branch_true: following ‘true’ branch (when ‘family == 1’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:452:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:453:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:461:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:472:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:487:28: branch_true: following ‘true’ branch (when ‘addr’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:489:20: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:489:20: branch_false: following ‘false’ branch (when ‘family == 1’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:499:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:499:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:508:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:528:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:540:27: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:540:27: acquire_resource: stream socket created here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:540:20: branch_false: following ‘false’ branch (when ‘fd != -1’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:552:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:552:21: throw: if ‘fcntl’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/pqcomm.c:552:21: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
postgresql-18beta1/postgresql-17.2/src/backend/main/main.c:194:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(get_user_name_or_exit(progname))’
postgresql-18beta1/postgresql-17.2/src/backend/main/main.c:145:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/main/main.c:150:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/main/main.c:183:12: branch_true: following ‘true’ branch (when ‘argc > 1’)...
postgresql-18beta1/postgresql-17.2/src/backend/main/main.c:183:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/main/main.c:183:13: branch_false: following ‘false’ branch (when the strings are non-equal)...
postgresql-18beta1/postgresql-17.2/src/backend/main/main.c:185:30: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/main/main.c:185:18: branch_false: following ‘false’ branch (when the strings are non-equal)...
postgresql-18beta1/postgresql-17.2/src/backend/main/main.c:191:30: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/main/main.c:191:18: branch_false: following ‘false’ branch (when the strings are non-equal)...
postgresql-18beta1/postgresql-17.2/src/backend/main/main.c:193:30: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/main/main.c:193:18: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/postgresql-17.2/src/backend/main/main.c:195:60: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/main/main.c:195:60: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/main/main.c:194:17: danger: ‘strdup(get_user_name_or_exit(progname))’ leaks here; was allocated at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
Error: CPPCHECK_WARNING (CWE-768): [#def267]
postgresql-18beta1/postgresql-17.2/src/backend/nodes/makefuncs.c:641: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftop)},(union ListCell){.ptr_value=(rightop)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def268]
postgresql-18beta1/postgresql-17.2/src/backend/nodes/makefuncs.c:713: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(qual1)},(union ListCell){.ptr_value=(qual2)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def269]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/path/indxpath.c:3209: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(rightop)},(union ListCell){.ptr_value=(leftop)}' depends on order of evaluation of side effects
Error: GCC_ANALYZER_WARNING (CWE-476): [#def270]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/analyzejoins.c:1112:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lg’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/analyzejoins.c:861:1: enter_function: entry to ‘rel_is_distinct_for’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/analyzejoins.c:939:21: call_function: calling ‘query_is_distinct_for’ from ‘rel_is_distinct_for’
Error: CPPCHECK_WARNING (CWE-768): [#def271]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/initsplan.c:1073: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftjoinlist)},(union ListCell){.ptr_value=(rightjoinlist)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def272]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/initsplan.c:1096: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftpart)},(union ListCell){.ptr_value=(rightpart)}' depends on order of evaluation of side effects
Error: GCC_ANALYZER_WARNING (CWE-476): [#def273]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:4078:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘partially_grouped_rel’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:4044:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:4065:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:4065:9: release_memory: ‘partially_grouped_rel’ is NULL
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:4068:12: branch_false: following ‘false’ branch (when ‘patype == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:4074:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:4074:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:4078:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:4078:21: danger: dereference of NULL ‘partially_grouped_rel’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def274]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:5686:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘orig_tlist_item’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:5671:1: enter_function: entry to ‘postprocess_setop_tlist’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:5674:39: call_function: inlined call to ‘list_head’ from ‘postprocess_setop_tlist’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:5676:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:5676:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:5682:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:5686:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:5686:17: danger: dereference of NULL ‘orig_tlist_item’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def275]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:8109:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lg’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:8091:1: enter_function: entry to ‘generate_setop_child_grouplist’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:8097:14: call_function: inlined call to ‘list_head’ from ‘generate_setop_child_grouplist’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:8098:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:8098:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:8104:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:8109:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:8109:17: danger: dereference of NULL ‘lg’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def276]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/setrefs.c:2028:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*root.grouping_map’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/setrefs.c:3541:1: enter_function: entry to ‘extract_query_dependencies’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/setrefs.c:3561:16: call_function: calling ‘extract_query_dependencies_walker’ from ‘extract_query_dependencies’
Error: CPPCHECK_WARNING (CWE-476): [#def277]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/setrefs.c:2124: warning[nullPointer]: Possible null pointer dereference: bestplan
Error: GCC_ANALYZER_WARNING (CWE-476): [#def278]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/setrefs.c:2124:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bestplan’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/setrefs.c:3043:1: enter_function: entry to ‘fix_join_expr_mutator’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/setrefs.c:3047:12: branch_false: following ‘false’ branch (when ‘node’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/setrefs.c:3049:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/setrefs.c:3049:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/setrefs.c:3090:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/setrefs.c:3136:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/setrefs.c:3138:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/setrefs.c:3138:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/setrefs.c:3139:24: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/setrefs.c:3139:24: call_function: calling ‘fix_alternative_subplan’ from ‘fix_join_expr_mutator’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def279]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/preptlist.c:119:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘target_rte’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/preptlist.c:78:12: branch_false: following ‘false’ branch (when ‘result_relation == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/preptlist.c:103:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/preptlist.c:104:12: branch_false: following ‘false’ branch (when ‘command_type != 3’)...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/preptlist.c:106:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/preptlist.c:106:17: branch_false: following ‘false’ branch (when ‘command_type != 2’)...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/preptlist.c:117:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/preptlist.c:119:18: danger: dereference of NULL ‘target_rte’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def280]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/preptlist.c:395:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rel’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/preptlist.c:62:1: enter_function: entry to ‘preprocess_targetlist’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/preptlist.c:78:12: branch_false: following ‘false’ branch (when ‘result_relation == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/preptlist.c:103:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/preptlist.c:104:12: branch_true: following ‘true’ branch (when ‘command_type == 3’)...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/preptlist.c:105:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/preptlist.c:105:25: call_function: calling ‘expand_insert_targetlist’ from ‘preprocess_targetlist’
Error: CPPCHECK_WARNING (CWE-768): [#def281]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/prepunion.c:440: 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
Error: CPPCHECK_WARNING (CWE-768): [#def282]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/prepunion.c:1089: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lpath)},(union ListCell){.ptr_value=(rpath)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def283]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/prepunion.c:1090: 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
Error: CPPCHECK_WARNING (CWE-768): [#def284]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/prepunion.c:1095: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(rpath)},(union ListCell){.ptr_value=(lpath)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def285]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/prepunion.c:1096: 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
Error: GCC_ANALYZER_WARNING (CWE-476): [#def286]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/prepunion.c:1584:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘curColType’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/prepunion.c:1570:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/prepunion.c:1577:17: branch_true: following ‘true’ branch (when ‘subtlist’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/prepunion.c:1577:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/prepunion.c:1584:64: danger: dereference of NULL ‘curColType’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def287]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/prepunion.c:1698:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lg’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/prepunion.c:1674:1: enter_function: entry to ‘generate_setop_grouplist’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/prepunion.c:1680:14: call_function: inlined call to ‘list_head’ from ‘generate_setop_grouplist’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/prepunion.c:1681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/prepunion.c:1681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/prepunion.c:1686:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/prepunion.c:1698:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/prep/prepunion.c:1698:17: danger: dereference of NULL ‘lg’
Error: COMPILER_WARNING (CWE-457): [#def288]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/util/clauses.c: scope_hint: In function ‘recheck_cast_function_args.isra.0’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/util/clauses.c:4400:19: warning[-Wmaybe-uninitialized]: ‘actual_arg_types’ may be used uninitialized
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/util/clauses.c:42: included_from: Included from here.
postgresql-18beta1/postgresql-17.2/src/include/parser/parse_coerce.h:82:17: note: by argument 1 of type ‘const Oid *’ to ‘enforce_generic_type_consistency’ declared here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/util/clauses.c:4386:33: note: ‘actual_arg_types’ declared here
Error: CPPCHECK_WARNING (CWE-768): [#def289]
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/util/relnode.c:2408: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(larg)},(union ListCell){.ptr_value=(rarg)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def290]
postgresql-18beta1/postgresql-17.2/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
Error: GCC_ANALYZER_WARNING (CWE-476): [#def291]
postgresql-18beta1/postgresql-17.2/src/backend/parser/analyze.c:283:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stmt’
postgresql-18beta1/postgresql-17.2/src/backend/parser/analyze.c:3013:1: enter_function: entry to ‘transformCreateTableAsStmt’
postgresql-18beta1/postgresql-17.2/src/backend/parser/analyze.c:3019:17: call_function: calling ‘transformStmt’ from ‘transformCreateTableAsStmt’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def292]
postgresql-18beta1/postgresql-17.2/src/backend/parser/analyze.c:1741:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘leftmostSelect’
postgresql-18beta1/postgresql-17.2/src/backend/parser/analyze.c:3013:1: enter_function: entry to ‘transformCreateTableAsStmt’
postgresql-18beta1/postgresql-17.2/src/backend/parser/analyze.c:3019:17: call_function: calling ‘transformStmt’ from ‘transformCreateTableAsStmt’
Error: CPPCHECK_WARNING (CWE-768): [#def293]
postgresql-18beta1/postgresql-17.2/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
Error: CPPCHECK_WARNING (CWE-768): [#def294]
postgresql-18beta1/postgresql-17.2/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
Error: CPPCHECK_WARNING (CWE-768): [#def295]
postgresql-18beta1/postgresql-17.2/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
Error: CPPCHECK_WARNING (CWE-768): [#def296]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:1870: 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
Error: CPPCHECK_WARNING (CWE-768): [#def297]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:4362: 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
Error: CPPCHECK_WARNING (CWE-768): [#def298]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:4367: 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
Error: CPPCHECK_WARNING (CWE-768): [#def299]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:5234: 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
Error: CPPCHECK_WARNING (CWE-768): [#def300]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:5314: 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
Error: CPPCHECK_WARNING (CWE-768): [#def301]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:5980: 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
Error: CPPCHECK_WARNING (CWE-768): [#def302]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:5987: 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
Error: CPPCHECK_WARNING (CWE-768): [#def303]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:5989: 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
Error: CPPCHECK_WARNING (CWE-768): [#def304]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:5991: 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
Error: CPPCHECK_WARNING (CWE-768): [#def305]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:5993: 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
Error: CPPCHECK_WARNING (CWE-768): [#def306]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:5995: 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
Error: CPPCHECK_WARNING (CWE-768): [#def307]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:7141: 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
Error: CPPCHECK_WARNING (CWE-768): [#def308]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:7177: 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
Error: CPPCHECK_WARNING (CWE-768): [#def309]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:7213: 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
Error: CPPCHECK_WARNING (CWE-768): [#def310]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:8566: 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
Error: CPPCHECK_WARNING (CWE-768): [#def311]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:8570: 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
Error: CPPCHECK_WARNING (CWE-768): [#def312]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:8574: 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
Error: CPPCHECK_WARNING (CWE-768): [#def313]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:8718: 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
Error: CPPCHECK_WARNING (CWE-768): [#def314]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:8997: 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
Error: CPPCHECK_WARNING (CWE-768): [#def315]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:8999: 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
Error: CPPCHECK_WARNING (CWE-768): [#def316]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:9001: 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
Error: CPPCHECK_WARNING (CWE-768): [#def317]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:9117: 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
Error: CPPCHECK_WARNING (CWE-768): [#def318]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:9151: 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
Error: CPPCHECK_WARNING (CWE-768): [#def319]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:9155: 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
Error: CPPCHECK_WARNING (CWE-768): [#def320]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:9159: 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
Error: CPPCHECK_WARNING (CWE-768): [#def321]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:9163: 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
Error: CPPCHECK_WARNING (CWE-768): [#def322]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:9173: 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
Error: CPPCHECK_WARNING (CWE-768): [#def323]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:11651: 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
Error: CPPCHECK_WARNING (CWE-768): [#def324]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:11663: 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
Error: CPPCHECK_WARNING (CWE-768): [#def325]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:13697: 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
Error: CPPCHECK_WARNING (CWE-768): [#def326]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:13701: 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
Error: CPPCHECK_WARNING (CWE-768): [#def327]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:13708: 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
Error: CPPCHECK_WARNING (CWE-768): [#def328]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:13715: 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
Error: CPPCHECK_WARNING (CWE-768): [#def329]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:13719: 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
Error: CPPCHECK_WARNING (CWE-768): [#def330]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:13748: 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
Error: CPPCHECK_WARNING (CWE-768): [#def331]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:13874: 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
Error: CPPCHECK_WARNING (CWE-768): [#def332]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:13892: 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
Error: CPPCHECK_WARNING (CWE-768): [#def333]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:14346: 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
Error: CPPCHECK_WARNING (CWE-768): [#def334]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:14732: 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
Error: CPPCHECK_WARNING (CWE-768): [#def335]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:14788: 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
Error: CPPCHECK_WARNING (CWE-768): [#def336]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:14859: 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
Error: CPPCHECK_WARNING (CWE-768): [#def337]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:14873: 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
Error: CPPCHECK_WARNING (CWE-768): [#def338]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:14887: 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
Error: CPPCHECK_WARNING (CWE-768): [#def339]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:14901: 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
Error: CPPCHECK_WARNING (CWE-768): [#def340]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:14920: 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
Error: CPPCHECK_WARNING (CWE-768): [#def341]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:14938: 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
Error: CPPCHECK_WARNING (CWE-768): [#def342]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:15074: 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
Error: CPPCHECK_WARNING (CWE-768): [#def343]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:15082: 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
Error: CPPCHECK_WARNING (CWE-768): [#def344]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:15090: 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
Error: CPPCHECK_WARNING (CWE-768): [#def345]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:15098: 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
Error: CPPCHECK_WARNING (CWE-768): [#def346]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:15201: 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
Error: CPPCHECK_WARNING (CWE-768): [#def347]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:15216: 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
Error: CPPCHECK_WARNING (CWE-768): [#def348]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:15733: 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
Error: CPPCHECK_WARNING (CWE-768): [#def349]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:15892: 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
Error: CPPCHECK_WARNING (CWE-768): [#def350]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:15904: 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
Error: CPPCHECK_WARNING (CWE-768): [#def351]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:15921: 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
Error: CPPCHECK_WARNING (CWE-768): [#def352]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:15921: 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
Error: CPPCHECK_WARNING (CWE-768): [#def353]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16598: 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
Error: CPPCHECK_WARNING (CWE-768): [#def354]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16628: 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
Error: CPPCHECK_WARNING (CWE-768): [#def355]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16628: 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
Error: CPPCHECK_WARNING (CWE-768): [#def356]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16628: 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
Error: CPPCHECK_WARNING (CWE-768): [#def357]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16633: 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
Error: CPPCHECK_WARNING (CWE-768): [#def358]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16633: 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
Error: CPPCHECK_WARNING (CWE-768): [#def359]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16639: 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
Error: CPPCHECK_WARNING (CWE-768): [#def360]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16662: 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
Error: CPPCHECK_WARNING (CWE-768): [#def361]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16662: 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
Error: CPPCHECK_WARNING (CWE-768): [#def362]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16667: 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
Error: CPPCHECK_WARNING (CWE-768): [#def363]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16667: 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
Error: CPPCHECK_WARNING (CWE-768): [#def364]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16678: 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
Error: CPPCHECK_WARNING (CWE-768): [#def365]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16693: 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
Error: CPPCHECK_WARNING (CWE-768): [#def366]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16693: 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
Error: CPPCHECK_WARNING (CWE-768): [#def367]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16699: 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
Error: CPPCHECK_WARNING (CWE-768): [#def368]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16699: 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
Error: CPPCHECK_WARNING (CWE-768): [#def369]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16880: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(NULL)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def370]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16882: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(NULL)},(union ListCell){.ptr_value=(yyvsp[-2].node)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def371]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16884: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-5].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def372]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16886: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(NULL)},(union ListCell){.ptr_value=(NULL)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-457): [#def373]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:16921: error[legacyUninitvar]: Uninitialized variable: encoding
Error: CPPCHECK_WARNING (CWE-768): [#def374]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:17271: 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
Error: CPPCHECK_WARNING (CWE-457): [#def375]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:17365: error[legacyUninitvar]: Uninitialized variable: n
Error: CPPCHECK_WARNING (CWE-768): [#def376]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:18846: 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
Error: CPPCHECK_WARNING (CWE-768): [#def377]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:18953: 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
Error: CPPCHECK_WARNING (CWE-768): [#def378]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:18965: 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
Error: CPPCHECK_WARNING (CWE-768): [#def379]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:19034: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lexpr)},(union ListCell){.ptr_value=(rexpr)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def380]
postgresql-18beta1/postgresql-17.2/src/backend/parser/gram.y:19051: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lexpr)},(union ListCell){.ptr_value=(rexpr)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def381]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_agg.c:2117: 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
Error: CPPCHECK_WARNING (CWE-768): [#def382]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_clause.c:1676: 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
Error: CPPCHECK_WARNING (CWE-768): [#def383]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_clause.c:1680: 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
Error: CPPCHECK_WARNING (CWE-768): [#def384]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_clause.c:1748: 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
Error: CPPCHECK_WARNING (CWE-768): [#def385]
postgresql-18beta1/postgresql-17.2/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
Error: GCC_ANALYZER_WARNING (CWE-476): [#def386]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_collate.c:972:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘h_cell’
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_collate.c:955:1: enter_function: entry to ‘assign_hypothetical_collations’
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_collate.c:958:30: call_function: inlined call to ‘list_head’ from ‘assign_hypothetical_collations’
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_collate.c:959:40: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_collate.c:959:30: call_function: inlined call to ‘list_head’ from ‘assign_hypothetical_collations’
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_collate.c:964:34: call_function: inlined call to ‘list_length’ from ‘assign_hypothetical_collations’
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_collate.c:970:16: branch_true: following ‘true’ branch (when ‘extra_args > 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_collate.c:972:58: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_collate.c:972:58: danger: dereference of NULL ‘h_cell’
Error: CPPCHECK_WARNING (CWE-768): [#def387]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_cte.c:270: 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
Error: CPPCHECK_WARNING (CWE-768): [#def388]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_cte.c:286: 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
Error: CPPCHECK_WARNING (CWE-768): [#def389]
postgresql-18beta1/postgresql-17.2/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
Error: CPPCHECK_WARNING (CWE-768): [#def390]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_expr.c:1276: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(result)},(union ListCell){.ptr_value=(cmp)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def391]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_expr.c:1315: 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
Error: CPPCHECK_WARNING (CWE-768): [#def392]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_expr.c:1324: 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
Error: CPPCHECK_WARNING (CWE-768): [#def393]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_expr.c:1333: 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
Error: CPPCHECK_WARNING (CWE-768): [#def394]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_expr.c:1340: 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
Error: CPPCHECK_WARNING (CWE-768): [#def395]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_expr.c:1347: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(sub1)},(union ListCell){.ptr_value=(sub2)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def396]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_expr.c:1351: 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
Error: CPPCHECK_WARNING (CWE-768): [#def397]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_expr.c:1358: 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
Error: CPPCHECK_WARNING (CWE-768): [#def398]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_expr.c:1365: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(sub1)},(union ListCell){.ptr_value=(sub2)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def399]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_expr.c:3037: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(result)},(union ListCell){.ptr_value=(cmp)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def400]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_expr.c:3262: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(expr)},(union ListCell){.ptr_value=(encoding)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def401]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_expr.c:3607: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(texpr)},(union ListCell){.ptr_value=(enc)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def402]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_expr.c:3769: 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
Error: CPPCHECK_WARNING (CWE-768): [#def403]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_expr.c:3914: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(key)},(union ListCell){.ptr_value=(val)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def404]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_func.c:1780: 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
Error: CPPCHECK_WARNING (CWE-768): [#def405]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_func.c:1784: 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
Error: GCC_ANALYZER_WARNING (CWE-476): [#def406]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_func.c:2014:70: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lc’
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_func.c:2008:21: branch_true: following ‘true’ branch (when ‘i < nargs’)...
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_func.c:2010:20: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_func.c:2010:20: branch_false: following ‘false’ branch (when ‘i == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_func.c:2012:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_func.c:2012:20: branch_true: following ‘true’ branch (when ‘i >= numposargs’)...
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_func.c:2014:70: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_func.c:2008:21: branch_true: following ‘true’ branch (when ‘i < nargs’)...
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_func.c:2010:20: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_func.c:2012:20: branch_true: following ‘true’ branch (when ‘i >= numposargs’)...
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_func.c:2014:70: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_func.c:2014:70: danger: dereference of NULL ‘lc’
Error: CPPCHECK_WARNING (CWE-457): [#def407]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_func.c:2271: warning[uninitvar]: Uninitialized variable: argoids
Error: CPPCHECK_WARNING (CWE-768): [#def408]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_oper.c:720: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(ltree)},(union ListCell){.ptr_value=(rtree)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def409]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_oper.c:821: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(ltree)},(union ListCell){.ptr_value=(rtree)}' depends on order of evaluation of side effects
Error: GCC_ANALYZER_WARNING (CWE-476): [#def410]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_relation.c:2966:77: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘aliasp_item’
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_relation.c:2659:1: enter_function: entry to ‘expandRTE’
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_relation.c:2665:12: branch_true: following ‘true’ branch (when ‘colnames’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_relation.c:2666:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_relation.c:2667:12: branch_false: following ‘false’ branch (when ‘colvars’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_relation.c:2670:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_relation.c:2945:59: call_function: inlined call to ‘list_head’ from ‘expandRTE’
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_relation.c:2951:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_relation.c:2951:33: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_relation.c:2961:44: branch_true: following ‘true’ branch (when ‘colnames’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_relation.c:2964:52: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_relation.c:2964:52: branch_true: following ‘true’ branch (when ‘coltype != 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_relation.c:2966:77: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_relation.c:2966:77: danger: dereference of NULL ‘aliasp_item’
Error: CPPCHECK_WARNING (CWE-768): [#def411]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_utilcmd.c:538: 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
Error: CPPCHECK_WARNING (CWE-768): [#def412]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_utilcmd.c:538: 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
Error: CPPCHECK_WARNING (CWE-768): [#def413]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_utilcmd.c:1123: 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
Error: CPPCHECK_WARNING (CWE-768): [#def414]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_utilcmd.c:1123: 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
Error: CPPCHECK_WARNING (CWE-768): [#def415]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_utilcmd.c:1340: 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
Error: CPPCHECK_WARNING (CWE-768): [#def416]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_utilcmd.c:1340: 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
Error: CPPCHECK_WARNING (CWE-768): [#def417]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_utilcmd.c:1659: 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
Error: CPPCHECK_WARNING (CWE-768): [#def418]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_utilcmd.c:2013: 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
Error: CPPCHECK_WARNING (CWE-768): [#def419]
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_utilcmd.c:2043: 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
Error: GCC_ANALYZER_WARNING (CWE-476): [#def420]
postgresql-18beta1/postgresql-17.2/src/backend/parser/scan.c:10861:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql-18beta1/postgresql-17.2/src/backend/parser/scan.c:9315:1: enter_function: entry to ‘core_yylex’
postgresql-18beta1/postgresql-17.2/src/backend/parser/scan.c:10411:17: call_function: calling ‘yy_get_next_buffer’ from ‘core_yylex’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def421]
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partbounds.c:4039:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘partexprs_item’
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partbounds.c:3983:1: enter_function: entry to ‘get_qual_for_hash’
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partbounds.c:4020:26: call_function: inlined call to ‘list_head’ from ‘get_qual_for_hash’
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partbounds.c:4023:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partbounds.c:4023:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partbounds.c:4028:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partbounds.c:4028:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partbounds.c:4039:43: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partbounds.c:4039:43: danger: dereference of NULL ‘partexprs_item’
Error: CPPCHECK_WARNING (CWE-768): [#def422]
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:1851: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(new_booltest)},(union ListCell){.ptr_value=(nulltest)}' depends on order of evaluation of side effects
Error: GCC_ANALYZER_WARNING (CWE-476): [#def423]
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:2516:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘start’
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:2496:1: enter_function: entry to ‘get_steps_using_prefix_recurse’
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:2520:12: branch_true: following ‘true’ branch (when ‘cur_keyno < final_keyno’)...
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:2530:17: call_function: inlined call to ‘for_each_cell_setup’ from ‘get_steps_using_prefix_recurse’
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:2534:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:2530:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:2546:17: call_function: inlined call to ‘for_each_cell_setup’ from ‘get_steps_using_prefix_recurse’
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:2546:17: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:2546:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:2553:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:2556:47: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:2570:37: call_function: calling ‘get_steps_using_prefix_recurse’ from ‘get_steps_using_prefix_recurse’
Error: CPPCHECK_WARNING (CWE-457): [#def424]
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:2696: warning[uninitvar]: Uninitialized variable: isnull
Error: GCC_ANALYZER_WARNING (CWE-476): [#def425]
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:3488:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lc2’
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:3416:1: enter_function: entry to ‘perform_pruning_base_step’
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:3433:15: call_function: inlined call to ‘list_head’ from ‘perform_pruning_base_step’
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:3434:15: call_function: inlined call to ‘list_head’ from ‘perform_pruning_base_step’
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:3440:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:3440:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:3447:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:3447:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:3454:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:3454:20: branch_false: following ‘false’ branch (when ‘keyno <= nvalues’)...
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:3457:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:3457:20: branch_true: following ‘true’ branch (when ‘lc1’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:3464:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:3475:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:3488:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:3488:25: danger: dereference of NULL ‘lc2’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def426]
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partprune.c:3532:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘values[0]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def427]
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/postmaster.c:4116:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("postmaster.opts", "w")’
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/postmaster.c:4108:19: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/postmaster.c:4108:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/postmaster.c:4116:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/postmaster.c:4116:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/postmaster.c:4116:9: danger: ‘fopen("postmaster.opts", "w")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def428]
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/postmaster.c:4116:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("postmaster.opts", "w")’
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/postmaster.c:4108:19: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/postmaster.c:4108:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/postmaster.c:4116:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/postmaster.c:4116:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/postmaster.c:4116:9: danger: ‘fopen("postmaster.opts", "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING: [#def429]
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:240:32: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:221:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:223:46: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:236:17: release_resource: closed here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:238:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:240:32: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:240:32: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def430]
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:241:32: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:221:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:223:46: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:237:17: release_resource: closed here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:238:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:240:32: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:241:32: danger: ‘2’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-775): [#def431]
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:737:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(syslogPipe[1], 1)’
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:595:1: enter_function: entry to ‘SysLogger_Start’
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:603:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:624:13: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:666:20: call_function: calling ‘logfile_getname’ from ‘SysLogger_Start’
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:666:20: return_function: returning to ‘SysLogger_Start’ from ‘logfile_getname’
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:709:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:719:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:719:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:730:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:737:21: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:737:20: danger: ‘dup2(syslogPipe[1], 1)’ leaks here; was opened at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def432]
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:742:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(syslogPipe[1], 2)’
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:595:1: enter_function: entry to ‘SysLogger_Start’
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:603:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:624:13: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:666:20: call_function: calling ‘logfile_getname’ from ‘SysLogger_Start’
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:666:20: return_function: returning to ‘SysLogger_Start’ from ‘logfile_getname’
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:709:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:719:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:719:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:730:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:737:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:741:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:742:21: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:742:20: danger: ‘dup2(syslogPipe[1], 2)’ leaks here; was opened at [(15)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def433]
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:1516:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("current_logfiles.tmp", "w")’
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:1495:14: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:1498:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:1500:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:1516:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:1518:21: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:1516:13: danger: ‘fopen("current_logfiles.tmp", "w")’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:1516:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("current_logfiles.tmp", "w")’
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:1495:14: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:1498:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:1500:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:1516:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:1518:21: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/postmaster/syslogger.c:1516:13: danger: ‘fopen("current_logfiles.tmp", "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def435]
postgresql-18beta1/postgresql-17.2/src/backend/regex/rege_dfa.c:1021:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘<unknown>’
postgresql-18beta1/postgresql-17.2/src/backend/regex/rege_dfa.c:985:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/regex/rege_dfa.c:990:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/regex/rege_dfa.c:1002:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/regex/rege_dfa.c:1004:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/regex/rege_dfa.c:1006:20: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/regex/rege_dfa.c:1009:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/regex/rege_dfa.c:1021:25: danger: dereference of NULL ‘lastap.ss’
Error: CPPCHECK_WARNING (CWE-457): [#def436]
postgresql-18beta1/postgresql-17.2/src/backend/regex/regexec.c:235: warning[uninitvar]: Uninitialized variable: v->pmatch
Error: CPPCHECK_WARNING (CWE-457): [#def437]
postgresql-18beta1/postgresql-17.2/src/backend/replication/logical/reorderbuffer.c:4764: error[legacyUninitvar]: Uninitialized variable: chunksize
Error: GCC_ANALYZER_WARNING (CWE-457): [#def438]
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_gram.c:1107:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_gram.c:1065:6: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_gram.c:1071:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_gram.c:1094:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_gram.c:1096:7: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_gram.c:1105:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_gram.c:1107:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_gram.c:1107:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_scanner.c:2009:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_scanner.l:296:1: enter_function: entry to ‘replication_scanner_is_replication_command’
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_scanner.l:298:22: call_function: calling ‘replication_yylex’ from ‘replication_scanner_is_replication_command’
Error: CPPCHECK_WARNING (CWE-476): [#def440]
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_scanner.c:2050: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def441]
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_scanner.c:2051: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_scanner.c:2212:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_scanner.c:2198:17: enter_function: entry to ‘replication_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_scanner.c:2208:24: call_function: inlined call to ‘replication_yyalloc’ from ‘replication_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_scanner.c:2209:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_scanner.c:2212:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_scanner.c:2222:2: call_function: calling ‘replication_yy_switch_to_buffer’ from ‘replication_yy_scan_buffer’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def443]
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_scanner.c:2264:26: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_scanner.c:2248:17: enter_function: entry to ‘replication_yy_scan_bytes’
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_scanner.c:2257:24: call_function: inlined call to ‘replication_yyalloc’ from ‘replication_yy_scan_bytes’
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_scanner.c:2258:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_scanner.c:2258:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/replication/repl_scanner.c:2266:6: call_function: calling ‘replication_yy_scan_buffer’ from ‘replication_yy_scan_bytes’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def444]
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_gram.c:980:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_gram.c:938:6: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_gram.c:944:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_gram.c:967:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_gram.c:969:7: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_gram.c:978:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_gram.c:980:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_gram.c:980:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def445]
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1644:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1631:21: enter_function: entry to ‘syncrep_yy_create_buffer’
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1635:24: call_function: inlined call to ‘syncrep_yyalloc’ from ‘syncrep_yy_create_buffer’
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1636:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1639:2: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1644:54: danger: ‘malloc(64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def446]
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1685: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def447]
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1686: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def448]
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1847:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1833:17: enter_function: entry to ‘syncrep_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1843:24: call_function: inlined call to ‘syncrep_yyalloc’ from ‘syncrep_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1844:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1847:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1857:2: call_function: calling ‘syncrep_yy_switch_to_buffer’ from ‘syncrep_yy_scan_buffer’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def449]
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1899:26: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1883:17: enter_function: entry to ‘syncrep_yy_scan_bytes’
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1892:24: call_function: inlined call to ‘syncrep_yyalloc’ from ‘syncrep_yy_scan_bytes’
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1893:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1893:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/replication/syncrep_scanner.c:1901:6: call_function: calling ‘syncrep_yy_scan_buffer’ from ‘syncrep_yy_scan_bytes’
Error: CPPCHECK_WARNING (CWE-768): [#def450]
postgresql-18beta1/postgresql-17.2/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
Error: CPPCHECK_WARNING (CWE-768): [#def451]
postgresql-18beta1/postgresql-17.2/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
Error: GCC_ANALYZER_WARNING (CWE-476): [#def452]
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:795:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘clause’
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:741:1: enter_function: entry to ‘dependency_is_compatible_clause’
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:746:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:751:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:751:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:755:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:755:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:758:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:761:13: call_function: inlined call to ‘is_opclause’ from ‘dependency_is_compatible_clause’
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:795:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:795:18: danger: dereference of NULL ‘clause’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def453]
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:1223:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘clause’
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:1168:1: enter_function: entry to ‘dependency_is_compatible_expression’
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:1174:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:1179:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:1179:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:1183:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:1183:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:1186:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:1189:13: call_function: inlined call to ‘is_opclause’ from ‘dependency_is_compatible_expression’
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:1223:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/statistics/dependencies.c:1223:18: danger: dereference of NULL ‘clause’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def454]
postgresql-18beta1/postgresql-17.2/src/backend/statistics/mcv.c:1710:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘clause’
postgresql-18beta1/postgresql-17.2/src/backend/statistics/mcv.c:2126:1: enter_function: entry to ‘mcv_clause_selectivity_or’
postgresql-18beta1/postgresql-17.2/src/backend/statistics/mcv.c:2140:23: call_function: calling ‘mcv_get_match_bitmap’ from ‘mcv_clause_selectivity_or’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def455]
postgresql-18beta1/postgresql-17.2/src/backend/storage/file/fd.c:2867:38: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/postgresql-17.2/src/backend/storage/file/fd.c:2851:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/storage/file/fd.c:2858:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/storage/file/fd.c:2861:20: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/storage/file/fd.c:2867:38: throw: if ‘GetCurrentSubTransactionId’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/storage/file/fd.c:2867:38: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-457): [#def456]
postgresql-18beta1/postgresql-17.2/src/backend/storage/ipc/dsm_registry.c:199: error[legacyUninitvar]: Uninitialized variable: ret
Error: CPPCHECK_WARNING (CWE-909): [#def457]
postgresql-18beta1/postgresql-17.2/src/backend/storage/lmgr/lmgr.c:720: error[uninitStructMember]: Uninitialized struct member: callback.previous
Error: GCC_ANALYZER_WARNING (CWE-457): [#def458]
postgresql-18beta1/postgresql-17.2/src/backend/storage/page/bufpage.c:524:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*itemidptr.itemoff’
postgresql-18beta1/postgresql-17.2/src/backend/storage/page/bufpage.c:699:1: enter_function: entry to ‘PageRepairFragmentation’
postgresql-18beta1/postgresql-17.2/src/backend/storage/page/bufpage.c:723:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/storage/page/bufpage.c:725:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/storage/page/bufpage.c:723:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/storage/page/bufpage.c:727:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/storage/page/bufpage.c:723:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/storage/page/bufpage.c:736:17: call_function: inlined call to ‘PageGetMaxOffsetNumber’ from ‘PageRepairFragmentation’
postgresql-18beta1/postgresql-17.2/src/backend/storage/page/bufpage.c:736:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/storage/page/bufpage.c:740:37: branch_false: following ‘false’ branch (when ‘i > nline’)...
postgresql-18beta1/postgresql-17.2/src/backend/storage/page/bufpage.c:777:30: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/storage/page/bufpage.c:778:12: branch_false: following ‘false’ branch (when ‘nstorage != 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/storage/page/bufpage.c:786:39: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/storage/page/bufpage.c:786:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/storage/page/bufpage.c:792:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/storage/page/bufpage.c:792:17: call_function: calling ‘compactify_tuples’ from ‘PageRepairFragmentation’
Error: CPPCHECK_WARNING (CWE-457): [#def459]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/dict_synonym.c:230: error[uninitvar]: Uninitialized variables: &key.outlen, &key.flags
Error: GCC_ANALYZER_WARNING (CWE-476): [#def460]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/ts_parse.c:82:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘res’
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/ts_parse.c:540:1: enter_function: entry to ‘hlparsetext’
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/ts_parse.c:590:38: call_function: calling ‘LexizeExec’ from ‘hlparsetext’
Error: CPPCHECK_WARNING (CWE-476): [#def461]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser.c:196: error[nullPointer]: Null pointer dereference
Error: CPPCHECK_WARNING (CWE-476): [#def462]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser.c:196: error[nullPointer]: Null pointer dereference: lex
Error: CPPCHECK_WARNING (CWE-476): [#def463]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:454: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def464]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:454: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def465]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:455: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def466]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:455: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def467]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:456: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def468]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:456: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def469]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:457: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def470]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:457: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def471]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:458: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def472]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:458: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def473]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:459: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def474]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:459: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def475]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:460: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def476]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:460: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def477]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:461: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def478]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:461: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def479]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:462: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def480]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:462: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def481]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:470: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def482]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:470: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def483]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:477: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def484]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:477: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def485]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:483: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def486]
postgresql-18beta1/postgresql-17.2/src/backend/tsearch/wparser_def.c:489: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-457): [#def487]
postgresql-18beta1/postgresql-17.2/src/backend/utils/activity/backend_status.c:1108: error[uninitvar]: Uninitialized variables: &key.backendStatus, &key.backend_xid, &key.backend_xmin, &key.backend_subxact_count, &key.backend_subxact_overflowed
Error: CPPCHECK_WARNING (CWE-457): [#def488]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:1351: warning[uninitvar]: Uninitialized variable: dim
Error: CPPCHECK_WARNING (CWE-457): [#def489]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:1352: warning[uninitvar]: Uninitialized variable: lBound
Error: CPPCHECK_WARNING (CWE-457): [#def490]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:1697: warning[uninitvar]: Uninitialized variable: buf
Error: CPPCHECK_WARNING (CWE-457): [#def491]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:2902: warning[uninitvar]: Uninitialized variable: dim
Error: GCC_ANALYZER_WARNING (CWE-476): [#def492]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:3772:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bitmap’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:3767:18: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:3767:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:3770:16: branch_true: following ‘true’ branch (when ‘nelems > 7’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:3772:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:3772:21: danger: dereference of NULL ‘bitmap’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def493]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:3782:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bitmap’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:3767:18: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:3767:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:3770:16: branch_false: following ‘false’ branch (when ‘nelems <= 7’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:3770:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:3780:16: branch_true: following ‘true’ branch (when ‘nelems > 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:3782:22: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:3782:22: danger: dereference of NULL ‘bitmap’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def494]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:4968:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘destbitmap’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:5691:1: enter_function: entry to ‘makeArrayResultArr’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:5701:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:5712:54: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:5738:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:5739:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:5739:25: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:5739:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/arrayfuncs.c:5739:25: call_function: calling ‘array_bitmap_copy’ from ‘makeArrayResultArr’
Error: CPPCHECK_WARNING (CWE-457): [#def495]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/dbsize.c:607: warning[uninitvar]: Uninitialized variable: buf
Error: CPPCHECK_WARNING (CWE-457): [#def496]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/inet_cidr_ntop.c:285: warning[uninitvar]: Uninitialized variable: outbuf
Error: CPPCHECK_WARNING (CWE-457): [#def497]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonb.c:101: error[legacyUninitvar]: Uninitialized variable: nbytes
Error: CPPCHECK_WARNING (CWE-457): [#def498]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonb.c:101: error[legacyUninitvar]: Uninitialized variable: str
Error: COMPILER_WARNING (CWE-457): [#def499]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonb_util.c: scope_hint: In function ‘compareJsonbContainers’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonb_util.c:294:34: warning[-Wmaybe-uninitialized]: ‘va.type’ may be used uninitialized
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonb_util.c:202:33: note: ‘va’ declared here
Error: COMPILER_WARNING (CWE-457): [#def500]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonb_util.c:294:44: warning[-Wmaybe-uninitialized]: ‘vb.type’ may be used uninitialized
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonb_util.c:203:41: note: ‘vb’ declared here
Error: CPPCHECK_WARNING (CWE-457): [#def501]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonbsubs.c:152: error[legacyUninitvar]: Uninitialized variable: subExpr
Error: CPPCHECK_WARNING (CWE-476): [#def502]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonfuncs.c:5815: warning[nullPointer]: Possible null pointer dereference: res
Error: CPPCHECK_WARNING (CWE-457): [#def503]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonpath.c:127: error[legacyUninitvar]: Uninitialized variable: nbytes
Error: CPPCHECK_WARNING (CWE-457): [#def504]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonpath.c:127: error[legacyUninitvar]: Uninitialized variable: str
Error: CPPCHECK_WARNING (CWE-457): [#def505]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonpath_exec.c:1318: error[legacyUninitvar]: Uninitialized variable: datum
Error: CPPCHECK_WARNING (CWE-457): [#def506]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonpath_exec.c:1391: error[legacyUninitvar]: Uninitialized variable: bval
Error: CPPCHECK_WARNING (CWE-457): [#def507]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonpath_exec.c:1598: error[legacyUninitvar]: Uninitialized variable: datum
Error: CPPCHECK_WARNING (CWE-768): [#def508]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonpath_exec.c:3517: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(jvl->singleton)},(union ListCell){.ptr_value=(jbv)}' depends on order of evaluation of side effects
Error: GCC_ANALYZER_WARNING (CWE-457): [#def509]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonpath_gram.c:1234:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonpath_gram.c:1192:6: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonpath_gram.c:1198:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonpath_gram.c:1221:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonpath_gram.c:1223:7: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonpath_gram.c:1232:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonpath_gram.c:1234:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonpath_gram.c:1234:9: danger: use of uninitialized value ‘yyss’ here
Error: CPPCHECK_WARNING (CWE-768): [#def510]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonpath_gram.y:204: 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
Error: CPPCHECK_WARNING (CWE-768): [#def511]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonpath_gram.y:205: 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
Error: CPPCHECK_WARNING (CWE-476): [#def512]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonpath_scan.c:5369: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def513]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/jsonpath_scan.c:5370: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def514]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/lockfuncs.c:510: warning[nullPointer]: Possible null pointer dereference: blocked_instance
Error: GCC_ANALYZER_WARNING (CWE-476): [#def515]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/lockfuncs.c:510:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘blocked_instance’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/lockfuncs.c:483:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/lockfuncs.c:485:43: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/lockfuncs.c:497:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/lockfuncs.c:509:58: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/lockfuncs.c:510:61: danger: dereference of NULL ‘blocked_instance’
Error: CPPCHECK_WARNING (CWE-457): [#def516]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/misc.c:760: warning[uninitvar]: Uninitialized variable: values
Error: GCC_ANALYZER_WARNING (CWE-126): [#def517]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/numeric.c:9329:30: warning[-Wanalyzer-out-of-bounds]: buffer over-read
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/numeric.c:11108:1: enter_function: entry to ‘power_var_int’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/numeric.c:11152:12: branch_false: following ‘false’ branch (when ‘f <= 1.31072e+5’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/numeric.c:11156:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/numeric.c:11156:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/numeric.c:11168:43: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/numeric.c:11203:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/numeric.c:11228:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/numeric.c:11246:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/numeric.c:11247:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/numeric.c:11251:16: branch_false: following ‘false’ branch (when ‘mask == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/numeric.c:11297:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/numeric.c:11297:9: call_function: calling ‘free_var’ from ‘power_var_int’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/numeric.c:11297:9: return_function: returning to ‘power_var_int’ from ‘free_var’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/numeric.c:11300:12: branch_true: following ‘true’ branch (when ‘neg != 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/numeric.c:11301:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/numeric.c:11301:17: call_function: calling ‘div_var_fast’ from ‘power_var_int’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def518]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.currency_symbol’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:643:37: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: danger: ‘worklconv.currency_symbol’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def519]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.decimal_point’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:628:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: danger: ‘worklconv.decimal_point’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def520]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.grouping’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:630:30: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: danger: ‘worklconv.grouping’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def521]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.int_curr_symbol’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:642:37: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: danger: ‘worklconv.int_curr_symbol’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def522]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_decimal_point’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:644:39: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: danger: ‘worklconv.mon_decimal_point’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def523]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_grouping’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:646:34: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: danger: ‘worklconv.mon_grouping’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_thousands_sep’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:645:39: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: danger: ‘worklconv.mon_thousands_sep’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def525]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.negative_sign’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:648:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: danger: ‘worklconv.negative_sign’ leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def526]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.positive_sign’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:647:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: danger: ‘worklconv.positive_sign’ leaks here; was allocated at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def527]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.thousands_sep’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:629:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:672:17: danger: ‘worklconv.thousands_sep’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def528]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.currency_symbol’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:643:37: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: danger: ‘worklconv.currency_symbol’ leaks here; was allocated at [(9)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def529]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.decimal_point’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:628:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: danger: ‘worklconv.decimal_point’ leaks here; was allocated at [(9)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def530]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.grouping’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:630:30: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: danger: ‘worklconv.grouping’ leaks here; was allocated at [(9)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def531]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.int_curr_symbol’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:642:37: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: danger: ‘worklconv.int_curr_symbol’ leaks here; was allocated at [(9)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def532]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_decimal_point’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:644:39: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: danger: ‘worklconv.mon_decimal_point’ leaks here; was allocated at [(9)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def533]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_grouping’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:646:34: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: danger: ‘worklconv.mon_grouping’ leaks here; was allocated at [(9)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def534]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_thousands_sep’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:645:39: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: danger: ‘worklconv.mon_thousands_sep’ leaks here; was allocated at [(9)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def535]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.negative_sign’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:648:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: danger: ‘worklconv.negative_sign’ leaks here; was allocated at [(9)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def536]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.positive_sign’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:647:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: danger: ‘worklconv.positive_sign’ leaks here; was allocated at [(9)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def537]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.thousands_sep’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:629:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:674:17: danger: ‘worklconv.thousands_sep’ leaks here; was allocated at [(9)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def538]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.currency_symbol’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:643:37: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: danger: ‘worklconv.currency_symbol’ leaks here; was allocated at [(9)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def539]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.decimal_point’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:628:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: danger: ‘worklconv.decimal_point’ leaks here; was allocated at [(9)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def540]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.grouping’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:630:30: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: danger: ‘worklconv.grouping’ leaks here; was allocated at [(9)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def541]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.int_curr_symbol’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:642:37: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: danger: ‘worklconv.int_curr_symbol’ leaks here; was allocated at [(9)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def542]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_decimal_point’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:644:39: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: danger: ‘worklconv.mon_decimal_point’ leaks here; was allocated at [(9)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def543]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_grouping’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:646:34: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: danger: ‘worklconv.mon_grouping’ leaks here; was allocated at [(9)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def544]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_thousands_sep’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:645:39: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: danger: ‘worklconv.mon_thousands_sep’ leaks here; was allocated at [(9)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def545]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.negative_sign’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:648:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: danger: ‘worklconv.negative_sign’ leaks here; was allocated at [(9)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def546]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.positive_sign’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:647:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: danger: ‘worklconv.positive_sign’ leaks here; was allocated at [(9)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def547]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.thousands_sep’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:629:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:686:17: danger: ‘worklconv.thousands_sep’ leaks here; was allocated at [(9)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def548]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.currency_symbol’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:643:37: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: danger: ‘worklconv.currency_symbol’ leaks here; was allocated at [(9)](sarif:/runs/0/results/74/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def549]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.decimal_point’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:628:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: danger: ‘worklconv.decimal_point’ leaks here; was allocated at [(9)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def550]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.grouping’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:630:30: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: danger: ‘worklconv.grouping’ leaks here; was allocated at [(9)](sarif:/runs/0/results/72/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def551]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.int_curr_symbol’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:642:37: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: danger: ‘worklconv.int_curr_symbol’ leaks here; was allocated at [(9)](sarif:/runs/0/results/73/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def552]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_decimal_point’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:644:39: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: danger: ‘worklconv.mon_decimal_point’ leaks here; was allocated at [(9)](sarif:/runs/0/results/75/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def553]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_grouping’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:646:34: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: danger: ‘worklconv.mon_grouping’ leaks here; was allocated at [(9)](sarif:/runs/0/results/77/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def554]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_thousands_sep’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:645:39: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: danger: ‘worklconv.mon_thousands_sep’ leaks here; was allocated at [(9)](sarif:/runs/0/results/76/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def555]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.negative_sign’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:648:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: danger: ‘worklconv.negative_sign’ leaks here; was allocated at [(9)](sarif:/runs/0/results/79/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def556]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.positive_sign’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:647:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: danger: ‘worklconv.positive_sign’ leaks here; was allocated at [(9)](sarif:/runs/0/results/78/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def557]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.thousands_sep’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:629:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:687:17: danger: ‘worklconv.thousands_sep’ leaks here; was allocated at [(9)](sarif:/runs/0/results/71/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def558]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.currency_symbol’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:547:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:643:37: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: danger: ‘worklconv.currency_symbol’ leaks here; was allocated at [(10)](sarif:/runs/0/results/87/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def559]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.decimal_point’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:547:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:628:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: danger: ‘worklconv.decimal_point’ leaks here; was allocated at [(10)](sarif:/runs/0/results/83/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def560]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.grouping’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:547:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:630:30: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: danger: ‘worklconv.grouping’ leaks here; was allocated at [(10)](sarif:/runs/0/results/85/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def561]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.int_curr_symbol’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:547:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:642:37: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: danger: ‘worklconv.int_curr_symbol’ leaks here; was allocated at [(10)](sarif:/runs/0/results/86/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def562]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_decimal_point’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:547:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:644:39: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: danger: ‘worklconv.mon_decimal_point’ leaks here; was allocated at [(10)](sarif:/runs/0/results/80/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def563]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_grouping’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:547:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:646:34: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: danger: ‘worklconv.mon_grouping’ leaks here; was allocated at [(10)](sarif:/runs/0/results/82/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def564]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_thousands_sep’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:547:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:645:39: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: danger: ‘worklconv.mon_thousands_sep’ leaks here; was allocated at [(10)](sarif:/runs/0/results/81/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def565]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.negative_sign’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:547:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:648:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: danger: ‘worklconv.negative_sign’ leaks here; was allocated at [(10)](sarif:/runs/0/results/91/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def566]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.positive_sign’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:547:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:647:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: danger: ‘worklconv.positive_sign’ leaks here; was allocated at [(10)](sarif:/runs/0/results/90/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def567]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.thousands_sep’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:547:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:629:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:22: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:693:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:694:25: danger: ‘worklconv.thousands_sep’ leaks here; was allocated at [(10)](sarif:/runs/0/results/84/codeFlows/0/threadFlows/0/locations/9)
Error: CPPCHECK_WARNING (CWE-457): [#def568]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:1381: error[legacyUninitvar]: Uninitialized variable: localeptr
Error: CPPCHECK_WARNING (CWE-457): [#def569]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:1447: error[legacyUninitvar]: Uninitialized variable: localeptr
Error: CPPCHECK_WARNING (CWE-457): [#def570]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:2135: error[legacyUninitvar]: Uninitialized variable: result
Error: CPPCHECK_WARNING (CWE-457): [#def571]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/pg_locale.c:2171: error[legacyUninitvar]: Uninitialized variable: result
Error: CPPCHECK_WARNING (CWE-768): [#def572]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/rangetypes.c:2883: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lowerExpr)},(union ListCell){.ptr_value=(upperExpr)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def573]
postgresql-18beta1/postgresql-17.2/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
Error: CPPCHECK_WARNING (CWE-768): [#def574]
postgresql-18beta1/postgresql-17.2/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
Error: CPPCHECK_WARNING (CWE-768): [#def575]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/ruleutils.c:1080: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(oldrte)},(union ListCell){.ptr_value=(newrte)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def576]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/selfuncs.c:1965: 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
Error: CPPCHECK_WARNING (CWE-768): [#def577]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/selfuncs.c:2039: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftop)},(union ListCell){.ptr_value=(elem)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def578]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/selfuncs.c:2091: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftop)},(union ListCell){.ptr_value=(dummyexpr)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def579]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/selfuncs.c:2216: 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
Error: CPPCHECK_WARNING (CWE-457): [#def580]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/timestamp.c:3162: error[legacyUninitvar]: Uninitialized variable: result
Error: CPPCHECK_WARNING (CWE-457): [#def581]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/timestamp.c:3317: error[legacyUninitvar]: Uninitialized variable: result
Error: CPPCHECK_WARNING (CWE-190): [#def582]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/tsgistidx.c:197: error[integerOverflow]: Signed integer underflow for expression '*(int32*)&c'.
Error: CPPCHECK_WARNING (CWE-476): [#def583]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/varlena.c:463: warning[nullPointer]: Possible null pointer dereference: rp
Error: COMPILER_WARNING (CWE-704): [#def584]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/xid8funcs.c: scope_hint: In function ‘is_visible_fxid’
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/xid8funcs.c:235:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def585]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/xid8funcs.c:235:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: CPPCHECK_WARNING (CWE-768): [#def586]
postgresql-18beta1/postgresql-17.2/src/backend/utils/adt/xml.c:631: 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
Error: CPPCHECK_WARNING (CWE-476): [#def587]
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/catcache.c:2232: warning[nullPointer]: Possible null pointer dereference: srckeys
Error: GCC_ANALYZER_WARNING (CWE-457): [#def588]
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:503:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&mapdicts’
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:424:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:427:43: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:432:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:435:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:485:24: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:487:80: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:490:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:492:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:492:28: branch_false: following ‘false’ branch (when ‘maxtokentype <= toktype’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:494:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:494:28: branch_true: following ‘true’ branch (when ‘maxtokentype < toktype’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:497:36: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:497:36: branch_false: following ‘false’ branch (when ‘ndicts <= 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:507:47: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:485:24: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:487:80: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:490:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:492:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:492:28: branch_false: following ‘false’ branch (when ‘maxtokentype <= toktype’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:494:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:494:28: branch_true: following ‘true’ branch (when ‘maxtokentype < toktype’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:497:36: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:503:41: danger: use of uninitialized value ‘&mapdicts’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def589]
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:530:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&mapdicts’
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:424:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:427:43: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:432:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:435:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:485:24: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:487:80: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:490:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:492:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:492:28: branch_false: following ‘false’ branch (when ‘maxtokentype <= toktype’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:494:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:494:28: branch_true: following ‘true’ branch (when ‘maxtokentype < toktype’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:497:36: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:497:36: branch_false: following ‘false’ branch (when ‘ndicts <= 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:507:47: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:523:20: branch_true: following ‘true’ branch (when ‘ndicts > 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:526:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/ts_cache.c:530:25: danger: use of uninitialized value ‘&mapdicts’ here
Error: CPPCHECK_WARNING (CWE-457): [#def590]
postgresql-18beta1/postgresql-17.2/src/backend/utils/cache/typcache.c:2714: warning[uninitvar]: Uninitialized variable: &srch.sort_order
Error: GCC_ANALYZER_WARNING (CWE-404): [#def591]
postgresql-18beta1/postgresql-17.2/src/backend/utils/error/elog.c:1167:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/backend/utils/error/elog.c:755:1: enter_function: entry to ‘get_error_stack_entry’
postgresql-18beta1/postgresql-17.2/src/backend/utils/error/elog.c:765:17: call_function: inlined call to ‘errstart_cold’ from ‘get_error_stack_entry’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def592]
postgresql-18beta1/postgresql-17.2/src/backend/utils/error/elog.c:1676:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/backend/utils/error/elog.c:2232:1: enter_function: entry to ‘check_log_destination’
postgresql-18beta1/postgresql-17.2/src/backend/utils/error/elog.c:2244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/error/elog.c:2247:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/error/elog.c:2247:17: call_function: calling ‘format_elog_string’ from ‘check_log_destination’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def593]
postgresql-18beta1/postgresql-17.2/src/backend/utils/error/elog.c:3751:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/backend/utils/error/elog.c:3748:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/error/elog.c:3751:9: throw: if ‘pg_vfprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/error/elog.c:3751:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def594]
postgresql-18beta1/postgresql-17.2/src/backend/utils/error/jsonlog.c:88:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/backend/utils/error/jsonlog.c:87:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/error/jsonlog.c:88:26: throw: if ‘pvsnprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/error/jsonlog.c:88:26: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def595]
postgresql-18beta1/postgresql-17.2/src/backend/utils/init/postinit.c:1329:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/postgresql-17.2/src/backend/utils/init/postinit.c:1278:1: enter_function: entry to ‘process_startup_options’
postgresql-18beta1/postgresql-17.2/src/backend/utils/init/postinit.c:1320:19: call_function: inlined call to ‘list_head’ from ‘process_startup_options’
postgresql-18beta1/postgresql-17.2/src/backend/utils/init/postinit.c:1321:16: branch_true: following ‘true’ branch (when ‘gucopts’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/init/postinit.c:1326:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/init/postinit.c:1329:17: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def596]
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.c:1629:54: warning[-Wanalyzer-malloc-leak]: leak of ‘GUC_yy_create_buffer(fp, 16384)’
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:573:1: enter_function: entry to ‘ParseConfigDirectory’
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:586:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:586:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:593:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:595:47: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:595:22: call_function: calling ‘ParseConfigFile’ from ‘ParseConfigDirectory’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def597]
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.c:1629:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:573:1: enter_function: entry to ‘ParseConfigDirectory’
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:586:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:586:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:593:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:595:47: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:595:22: call_function: calling ‘ParseConfigFile’ from ‘ParseConfigDirectory’
Error: CPPCHECK_WARNING (CWE-476): [#def598]
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.c:1670: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def599]
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.c:1671: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def600]
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:384:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:573:1: enter_function: entry to ‘ParseConfigDirectory’
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:586:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:586:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:593:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:595:47: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc-file.l:595:22: call_function: calling ‘ParseConfigFile’ from ‘ParseConfigDirectory’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def601]
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc.c:5991:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc.c:5987:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc.c:5990:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc.c:5990:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc.c:5991:13: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc.c:5991:13: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def602]
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc.c:6674:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘eqsgn’
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc.c:6646:12: branch_false: following ‘false’ branch (when ‘array’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc.c:6650:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc.c:6650:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc.c:6654:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc.c:6656:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc.c:6663:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/guc.c:6674:17: danger: dereference of NULL ‘eqsgn’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def603]
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:201:33: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:136:29: branch_true: following ‘true’ branch (when ‘i < argc’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:138:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:138:28: branch_true: following ‘true’ branch (when ‘i == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:139:51: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:142:20: branch_false: following ‘false’ branch (when ‘end_of_area’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:142:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:191:20: branch_false: following ‘false’ branch (when ‘new_environ’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:191:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:196:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:198:36: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:198:42: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:199:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:196:49: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:196:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:198:36: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:199:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:201:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:201:33: throw: if ‘write_stderr’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:201:33: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def604]
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:201:33: warning[-Wanalyzer-malloc-leak]: leak of ‘new_environ’
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:136:29: branch_true: following ‘true’ branch (when ‘i < argc’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:138:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:138:28: branch_true: following ‘true’ branch (when ‘i == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:139:51: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:142:20: branch_false: following ‘false’ branch (when ‘end_of_area’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:142:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:190:41: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:191:20: branch_false: following ‘false’ branch (when ‘new_environ’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:191:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:196:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:198:36: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:199:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:201:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:201:33: throw: if ‘write_stderr’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:201:33: danger: ‘new_environ’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def605]
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:236:33: warning[-Wanalyzer-malloc-leak]: leak of ‘new_argv’
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:136:29: branch_true: following ‘true’ branch (when ‘i < argc’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:138:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:138:28: branch_true: following ‘true’ branch (when ‘i == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:139:51: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:142:20: branch_false: following ‘false’ branch (when ‘end_of_area’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:142:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:191:20: branch_false: following ‘false’ branch (when ‘new_environ’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:191:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:196:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:205:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:225:38: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:226:20: branch_false: following ‘false’ branch (when ‘new_argv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:226:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:231:29: branch_true: following ‘true’ branch (when ‘i < argc’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:233:50: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:234:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:236:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:236:33: throw: if ‘write_stderr’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/misc/ps_status.c:236:33: danger: ‘new_argv’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def606]
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:513:9: warning[-Wanalyzer-malloc-leak]: leak of ‘set’
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:444:26: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:445:12: branch_false: following ‘false’ branch (when ‘set’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:462:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:513:9: throw: if ‘MemoryContextCreate’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:513:9: danger: ‘set’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def607]
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:919:38: warning[-Wanalyzer-malloc-leak]: leak of ‘block’
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:914:16: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:916:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:917:20: branch_false: following ‘false’ branch (when ‘required_size <= blksize’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:919:38: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:919:38: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:914:16: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:916:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:917:20: branch_false: following ‘false’ branch (when ‘required_size <= blksize’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:919:38: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:919:38: danger: ‘block’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def608]
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:923:24: warning[-Wanalyzer-malloc-leak]: leak of ‘block’
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:914:16: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:916:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:917:20: branch_false: following ‘false’ branch (when ‘required_size <= blksize’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:919:38: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:919:38: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:914:16: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:916:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:922:12: branch_true: following ‘true’ branch (when ‘block’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:923:24: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:923:24: throw: if ‘MemoryContextAllocationFailure’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/aset.c:923:24: danger: ‘block’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def609]
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/bump.c:227:9: warning[-Wanalyzer-malloc-leak]: leak of ‘set’
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/bump.c:131:1: enter_function: entry to ‘BumpContextCreate’
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/bump.c:177:31: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/bump.c:178:12: branch_false: following ‘false’ branch (when ‘set’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/bump.c:192:9: call_function: inlined call to ‘dlist_init’ from ‘BumpContextCreate’
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/bump.c:222:16: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/bump.c:227:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/bump.c:227:9: throw: if ‘MemoryContextCreate’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/bump.c:227:9: danger: ‘set’ leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def610]
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/freepage.c:1441:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘result.index’
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/freepage.c:1476:1: enter_function: entry to ‘FreePageManagerPutInternal’
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/freepage.c:1489:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/freepage.c:1491:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/freepage.c:1491:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/freepage.c:1499:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/freepage.c:1499:25: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/freepage.c:1509:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/freepage.c:1509:25: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/freepage.c:1525:30: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/freepage.c:1525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/freepage.c:1527:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/freepage.c:1527:33: branch_false: following ‘false’ branch (when ‘soft == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/freepage.c:1529:34: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/freepage.c:1529:34: call_function: calling ‘FreePageManagerGetInternal’ from ‘FreePageManagerPutInternal’
Error: CPPCHECK_WARNING (CWE-457): [#def611]
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/freepage.c:1538: error[legacyUninitvar]: Uninitialized variable: root
Error: GCC_ANALYZER_WARNING (CWE-401): [#def612]
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/generation.c:262:9: warning[-Wanalyzer-malloc-leak]: leak of ‘set’
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/generation.c:160:1: enter_function: entry to ‘GenerationContextCreate’
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/generation.c:209:37: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/generation.c:210:12: branch_false: following ‘false’ branch (when ‘set’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/generation.c:224:9: call_function: inlined call to ‘dlist_init’ from ‘GenerationContextCreate’
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/generation.c:257:16: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/generation.c:262:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/generation.c:262:9: throw: if ‘MemoryContextCreate’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/generation.c:262:9: danger: ‘set’ leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def613]
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/slab.c:414:9: warning[-Wanalyzer-malloc-leak]: leak of ‘slab’
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/slab.c:322:1: enter_function: entry to ‘SlabContextCreate’
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/slab.c:358:12: branch_false: following ‘false’ branch (when ‘chunksPerBlock != 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/slab.c:364:32: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/slab.c:364:32: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/slab.c:365:12: branch_false: following ‘false’ branch (when ‘slab’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/slab.c:381:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/slab.c:405:21: branch_true: following ‘true’ branch (when ‘i != 3’)...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/slab.c:406:17: call_function: inlined call to ‘dlist_init’ from ‘SlabContextCreate’
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/slab.c:414:9: throw: if ‘MemoryContextCreate’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/backend/utils/mmgr/slab.c:414:9: danger: ‘slab’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def614]
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:684:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:681:23: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:681:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:684:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:684:9: throw: if ‘initStringInfo’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:684:9: danger: ‘fopen(path, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def615]
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:684:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:681:23: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:681:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:684:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:684:9: throw: if ‘initStringInfo’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:684:9: danger: ‘fopen(path, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def616]
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:687:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:681:23: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:681:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:684:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:687:28: throw: if ‘pg_malloc’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:687:28: danger: ‘fopen(path, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def617]
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:687:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:681:23: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:681:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:684:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:687:28: throw: if ‘pg_malloc’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:687:28: danger: ‘fopen(path, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def618]
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:690:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:681:23: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:681:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:684:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:690:16: throw: if ‘pg_get_line_buf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:690:16: danger: ‘fopen(path, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def619]
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:690:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:681:23: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:681:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:684:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:690:16: throw: if ‘pg_get_line_buf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:690:16: danger: ‘fopen(path, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def620]
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:727:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w")’
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:725:25: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:725:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:725:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:727:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:729:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:727:28: danger: ‘fopen(path, "w")’ leaks here; was opened at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def621]
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:727:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w")’
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:725:25: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:725:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:725:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:727:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:729:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:727:28: danger: ‘fopen(path, "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def622]
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1031:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w")’
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1029:29: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1029:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1031:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1031:13: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1031:13: danger: ‘fopen(path, "w")’ leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def623]
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1031:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w")’
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1029:29: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1029:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1031:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1031:13: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1031:13: danger: ‘fopen(path, "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def624]
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1676:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(pwfilename, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1643:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1671:35: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1671:35: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1673:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1676:24: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1676:24: throw: if ‘pg_get_line’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1676:24: danger: ‘fopen(pwfilename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def625]
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1676:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(pwfilename, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1643:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1671:35: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1671:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1673:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1676:24: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1676:24: throw: if ‘pg_get_line’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/initdb/initdb.c:1676:24: danger: ‘fopen(pwfilename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def626]
postgresql-18beta1/postgresql-17.2/src/bin/initdb/localtime.c:233:15: warning[-Wanalyzer-malloc-leak]: leak of ‘lsp’
postgresql-18beta1/postgresql-17.2/src/bin/initdb/localtime.c:1389:1: enter_function: entry to ‘pg_gmtime’
postgresql-18beta1/postgresql-17.2/src/bin/initdb/localtime.c:1391:16: call_function: calling ‘gmtsub’ from ‘pg_gmtime’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def627]
postgresql-18beta1/postgresql-17.2/src/bin/initdb/localtime.c:242:17: warning[-Wanalyzer-malloc-leak]: leak of ‘lsp’
postgresql-18beta1/postgresql-17.2/src/bin/initdb/localtime.c:1389:1: enter_function: entry to ‘pg_gmtime’
postgresql-18beta1/postgresql-17.2/src/bin/initdb/localtime.c:1391:16: call_function: calling ‘gmtsub’ from ‘pg_gmtime’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def628]
postgresql-18beta1/postgresql-17.2/src/bin/initdb/localtime.c:245:13: warning[-Wanalyzer-malloc-leak]: leak of ‘lsp’
postgresql-18beta1/postgresql-17.2/src/bin/initdb/localtime.c:1389:1: enter_function: entry to ‘pg_gmtime’
postgresql-18beta1/postgresql-17.2/src/bin/initdb/localtime.c:1391:16: call_function: calling ‘gmtsub’ from ‘pg_gmtime’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def629]
postgresql-18beta1/postgresql-17.2/src/bin/pg_archivecleanup/pg_archivecleanup.c:103:35: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(archiveLocation)’
postgresql-18beta1/postgresql-17.2/src/bin/pg_archivecleanup/pg_archivecleanup.c:98:17: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_archivecleanup/pg_archivecleanup.c:99:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_archivecleanup/pg_archivecleanup.c:99:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_archivecleanup/pg_archivecleanup.c:103:35: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_archivecleanup/pg_archivecleanup.c:103:35: danger: ‘opendir(archiveLocation)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def630]
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/bbstreamer_file.c:364:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "wb")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/bbstreamer_file.c:359:16: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/bbstreamer_file.c:360:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/bbstreamer_file.c:364:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/bbstreamer_file.c:364:12: danger: ‘fopen(filename, "wb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def631]
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/bbstreamer_file.c:364:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "wb")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/bbstreamer_file.c:359:16: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/bbstreamer_file.c:360:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/bbstreamer_file.c:364:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/bbstreamer_file.c:364:12: danger: ‘fopen(filename, "wb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def632]
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/bbstreamer_gzip.c:105:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/bbstreamer_gzip.c:91:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/bbstreamer_gzip.c:100:46: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/bbstreamer_gzip.c:100:46: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/bbstreamer_gzip.c:102:20: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/bbstreamer_gzip.c:105:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/bbstreamer_gzip.c:105:36: throw: if ‘gzdopen’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/bbstreamer_gzip.c:105:36: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def633]
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/pg_basebackup.c:1020:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘state.file’
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/pg_basebackup.c:1698:1: enter_function: entry to ‘ReceiveBackupManifest’
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/pg_basebackup.c:1704:22: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/pg_basebackup.c:1705:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/pg_basebackup.c:1708:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/pg_basebackup.c:1708:9: call_function: calling ‘ReceiveCopyData’ from ‘ReceiveBackupManifest’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def634]
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/pg_basebackup.c:1020:15: warning[-Wanalyzer-malloc-leak]: leak of ‘state.file’
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/pg_basebackup.c:1698:1: enter_function: entry to ‘ReceiveBackupManifest’
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/pg_basebackup.c:1704:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/pg_basebackup.c:1705:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/pg_basebackup.c:1708:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/pg_basebackup.c:1708:9: call_function: calling ‘ReceiveCopyData’ from ‘ReceiveBackupManifest’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def635]
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/pg_receivewal.c:278:37: warning[-Wanalyzer-malloc-leak]: leak of ‘get_destination_dir(basedir)’
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/pg_receivewal.c:268:1: enter_function: entry to ‘FindStreamingStart’
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/pg_receivewal.c:276:15: call_function: calling ‘get_destination_dir’ from ‘FindStreamingStart’
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/pg_receivewal.c:276:15: return_function: returning to ‘FindStreamingStart’ from ‘get_destination_dir’
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/pg_receivewal.c:278:37: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_basebackup/pg_receivewal.c:278:37: danger: ‘get_destination_dir(basedir)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def636]
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/copy_file.c:119:17: warning[-Wanalyzer-jump-through-null]: jump through null pointer
branch_false: following ‘false’ branch (when ‘copy_method > 2’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/copy_file.c:98:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/copy_file.c:98:12: branch_false: following ‘false’ branch (when ‘dry_run == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/copy_file.c:109:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/copy_file.c:109:20: branch_false: following ‘false’ branch (when ‘strategy_name’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/copy_file.c:112:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/copy_file.c:119:17: danger: jump through null pointer here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def637]
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/pg_combinebackup.c:934:33: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&ifulldir)’
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/pg_combinebackup.c:932:20: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/pg_combinebackup.c:932:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/pg_combinebackup.c:932:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/pg_combinebackup.c:934:33: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/pg_combinebackup.c:934:33: danger: ‘opendir(&ifulldir)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def638]
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/pg_combinebackup.c:1258:33: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&pg_tblspc)’
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/pg_combinebackup.c:1255:20: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/pg_combinebackup.c:1255:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/pg_combinebackup.c:1255:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/pg_combinebackup.c:1258:33: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_combinebackup/pg_combinebackup.c:1258:33: danger: ‘opendir(&pg_tblspc)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def639]
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:208:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:1953:1: enter_function: entry to ‘do_advice’
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:1955:9: call_function: calling ‘write_stderr’ from ‘do_advice’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def640]
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2154:13: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(psprintf("\"%s\" -C data_directory %s%s", my_exec_path, <unknown>, <unknown>), "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2121:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2125:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2126:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2128:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2132:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2141:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2153:14: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2154:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2154:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2154:13: danger: ‘popen(psprintf("\"%s\" -C data_directory %s%s", my_exec_path, <unknown>, <unknown>), "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def641]
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2154:76: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(psprintf("\"%s\" -C data_directory %s%s", my_exec_path, <unknown>, <unknown>), "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2121:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2125:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2126:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2128:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2132:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2141:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2153:14: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2154:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_ctl/pg_ctl.c:2154:76: danger: ‘popen(psprintf("\"%s\" -C data_directory %s%s", my_exec_path, <unknown>, <unknown>), "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def642]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_gzip.c:361:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup(fd)’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_gzip.c:360:12: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_gzip.c:361:24: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_gzip.c:361:24: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_gzip.c:361:24: danger: ‘dup(fd)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def643]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_lz4.c:730:1: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_lz4.c:717:12: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_lz4.c:718:22: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_lz4.c:718:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_lz4.c:721:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_lz4.c:727:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_lz4.c:730:1: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def644]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:481:42: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:473:12: branch_false: following ‘false’ branch (when ‘fd < 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:476:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:476:22: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:478:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:481:42: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:481:42: throw: if ‘pg_malloc0’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:481:42: danger: ‘fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def645]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:481:42: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:473:12: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:474:22: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:474:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:478:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:481:42: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:481:42: throw: if ‘pg_malloc0’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:481:42: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def646]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:487:37: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:473:12: branch_false: following ‘false’ branch (when ‘fd < 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:476:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:476:22: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:478:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:481:42: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:485:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:487:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:487:37: throw: if ‘ZSTD_DStreamInSize’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:487:37: danger: ‘fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def647]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:487:37: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:473:12: branch_false: following ‘false’ branch (when ‘fd < 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:476:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:476:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:478:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:481:42: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:485:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:487:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:487:37: throw: if ‘ZSTD_DStreamInSize’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:487:37: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def648]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:494:39: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:473:12: branch_false: following ‘false’ branch (when ‘fd < 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:476:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:476:22: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:478:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:481:42: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:485:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:492:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:492:17: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:494:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:494:39: throw: if ‘ZSTD_CStreamOutSize’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:494:39: danger: ‘fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def649]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:494:39: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:473:12: branch_false: following ‘false’ branch (when ‘fd < 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:476:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:476:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:478:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:481:42: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:485:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:492:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:492:17: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:494:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:494:39: throw: if ‘ZSTD_CStreamOutSize’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:494:39: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def650]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:501:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:473:12: branch_false: following ‘false’ branch (when ‘fd < 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:476:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:476:22: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:478:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:481:42: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:485:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:492:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:492:17: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:501:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:501:17: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:501:17: danger: ‘fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def651]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:501:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:473:12: branch_false: following ‘false’ branch (when ‘fd < 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:476:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:476:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:478:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:481:42: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:485:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:492:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:492:17: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:501:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:501:17: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/compress_zstd.c:501:17: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def652]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/filter.c:161:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/filter.c:160:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/filter.c:161:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/filter.c:161:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def653]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:504: warning[nullPointer]: Possible null pointer dereference: slot
Error: GCC_ANALYZER_WARNING (CWE-476): [#def654]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:504:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘slot’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:1059:1: enter_function: entry to ‘ParallelBackupEnd’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:1064:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:1064:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:1071:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:1073:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:1071:21: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:1078:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:1078:9: call_function: calling ‘WaitForTerminatingWorkers’ from ‘ParallelBackupEnd’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def655]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:959:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipeMW[0]’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:897:1: enter_function: entry to ‘ParallelBackupStart’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:910:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:915:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:939:9: call_function: calling ‘set_archive_cancel_info’ from ‘ParallelBackupStart’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:939:9: return_function: returning to ‘ParallelBackupStart’ from ‘set_archive_cancel_info’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:945:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:953:40: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:958:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:958:43: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:958:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:959:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:959:25: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:959:25: danger: ‘pipeMW[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def656]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:959:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipeMW[1]’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:897:1: enter_function: entry to ‘ParallelBackupStart’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:910:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:915:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:939:9: call_function: calling ‘set_archive_cancel_info’ from ‘ParallelBackupStart’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:939:9: return_function: returning to ‘ParallelBackupStart’ from ‘set_archive_cancel_info’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:945:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:953:40: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:958:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:958:43: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:958:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:959:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:959:25: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/parallel.c:959:25: danger: ‘pipeMW[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def657]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_archiver.c:1734:23: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_archiver.c:4142:1: enter_function: entry to ‘dumpTimestamp’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_archiver.c:4146:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_archiver.c:4147:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_archiver.c:4147:17: call_function: calling ‘ahprintf’ from ‘dumpTimestamp’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def658]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_archiver.c:1895:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_archiver.c:3425:1: enter_function: entry to ‘_selectOutputSchema’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_archiver.c:3456:25: call_function: calling ‘warn_or_exit_horribly’ from ‘_selectOutputSchema’
Error: CPPCHECK_WARNING (CWE-476): [#def659]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_archiver.c:2264: warning[nullPointer]: Possible null pointer dereference: fh
Error: GCC_ANALYZER_WARNING (CWE-401): [#def660]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_directory.c:172:56: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(*<unknown>.directory)’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_directory.c:152:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_directory.c:157:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_directory.c:163:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_directory.c:163:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_directory.c:165:51: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_directory.c:167:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_directory.c:167:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_directory.c:172:56: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_directory.c:172:56: danger: ‘opendir(*<unknown>.directory)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def661]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_tar.c:971:23: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_tar.c:970:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_tar.c:971:23: throw: if ‘pvsnprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_backup_tar.c:971:23: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def662]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:1418: error[legacyUninitvar]: Uninitialized variable: archiveFormat
Error: GCC_ANALYZER_WARNING (CWE-476): [#def663]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:12330:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘probin’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:12211:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:12214:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:12219:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:12289:43: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:12294:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:12304:30: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:12326:12: branch_false: following ‘false’ branch (when ‘prosqlbody’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:12330:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:12330:18: danger: dereference of NULL ‘probin’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def664]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13805:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘collcollate’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13726:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13729:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13789:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13794:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13794:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13803:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13803:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13805:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13805:21: danger: dereference of NULL ‘collcollate’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def665]
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13807:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘collctype’
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13726:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13729:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13789:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13790:31: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13794:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13803:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13803:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13805:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13805:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13805:20: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_dump/pg_dump.c:13807:21: danger: dereference of NULL ‘collctype’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def666]
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:531:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("PG_VERSION", "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:524:23: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:524:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:529:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:529:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:531:22: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:531:22: danger: ‘fopen("PG_VERSION", "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def667]
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:531:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("PG_VERSION", "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:524:23: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:524:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:529:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:529:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:531:22: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:531:22: danger: ‘fopen("PG_VERSION", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def668]
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:538:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("PG_VERSION", "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:524:23: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:524:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:529:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:529:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:538:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:538:16: throw: if ‘pg_strip_crlf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:538:16: danger: ‘fopen("PG_VERSION", "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def669]
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:538:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("PG_VERSION", "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:524:23: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:524:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:529:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:529:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:538:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:538:16: throw: if ‘pg_strip_crlf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:538:16: danger: ‘fopen("PG_VERSION", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def670]
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:540:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("PG_VERSION", "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:524:23: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:524:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:529:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:529:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:538:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:540:12: danger: ‘fopen("PG_VERSION", "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def671]
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:540:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("PG_VERSION", "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:524:23: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:524:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:529:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:529:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:538:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:540:12: danger: ‘fopen("PG_VERSION", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def672]
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:930:35: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("pg_wal")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:926:17: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:927:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:927:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:930:35: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:930:35: danger: ‘opendir("pg_wal")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def673]
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:983:35: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("pg_wal")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:979:17: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:980:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:980:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:983:35: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:983:35: danger: ‘opendir("pg_wal")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def674]
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:1018:35: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("pg_wal/archive_status")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:1014:17: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:1015:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:1015:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:1018:35: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:1018:35: danger: ‘opendir("pg_wal/archive_status")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def675]
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:1056:35: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("pg_wal/summaries")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:1052:17: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:1053:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:1053:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:1056:35: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_resetwal/pg_resetwal.c:1056:35: danger: ‘opendir("pg_wal/summaries")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def676]
postgresql-18beta1/postgresql-17.2/src/bin/pg_rewind/file_ops.c:391:35: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&fullparentpath)’
postgresql-18beta1/postgresql-17.2/src/bin/pg_rewind/file_ops.c:386:17: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_rewind/file_ops.c:387:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_rewind/file_ops.c:387:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_rewind/file_ops.c:391:35: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_rewind/file_ops.c:391:35: danger: ‘opendir(&fullparentpath)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def677]
postgresql-18beta1/postgresql-17.2/src/bin/pg_rewind/xlogreader.c:78:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/bin/pg_rewind/xlogreader.c:77:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/bin/pg_rewind/xlogreader.c:78:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_rewind/xlogreader.c:78:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-835): [#def678]
postgresql-18beta1/postgresql-17.2/src/bin/pg_test_fsync/pg_test_fsync.c:318:31: warning[-Wanalyzer-infinite-loop]: infinite loop
postgresql-18beta1/postgresql-17.2/src/bin/pg_test_fsync/pg_test_fsync.c:318:31: danger: infinite loop here
postgresql-18beta1/postgresql-17.2/src/bin/pg_test_fsync/pg_test_fsync.c:318:31: branch_true: if it ever follows ‘true’ branch, it will always do so...
postgresql-18beta1/postgresql-17.2/src/bin/pg_test_fsync/pg_test_fsync.c:318:31: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_test_fsync/pg_test_fsync.c:320:42: branch_false: when ‘writes >= writes_per_op’: always following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_test_fsync/pg_test_fsync.c:318:57: branch_false: ...to here
Error: GCC_ANALYZER_WARNING (CWE-835): [#def679]
postgresql-18beta1/postgresql-17.2/src/bin/pg_test_fsync/pg_test_fsync.c:421:31: warning[-Wanalyzer-infinite-loop]: infinite loop
postgresql-18beta1/postgresql-17.2/src/bin/pg_test_fsync/pg_test_fsync.c:421:31: danger: infinite loop here
postgresql-18beta1/postgresql-17.2/src/bin/pg_test_fsync/pg_test_fsync.c:421:31: branch_true: if it ever follows ‘true’ branch, it will always do so...
postgresql-18beta1/postgresql-17.2/src/bin/pg_test_fsync/pg_test_fsync.c:421:31: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_test_fsync/pg_test_fsync.c:423:42: branch_false: when ‘writes >= writes_per_op’: always following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_test_fsync/pg_test_fsync.c:421:57: branch_false: ...to here
Error: GCC_ANALYZER_WARNING (CWE-835): [#def680]
postgresql-18beta1/postgresql-17.2/src/bin/pg_test_fsync/pg_test_fsync.c:486:31: warning[-Wanalyzer-infinite-loop]: infinite loop
postgresql-18beta1/postgresql-17.2/src/bin/pg_test_fsync/pg_test_fsync.c:486:31: danger: infinite loop here
postgresql-18beta1/postgresql-17.2/src/bin/pg_test_fsync/pg_test_fsync.c:486:31: branch_true: if it ever follows ‘true’ branch, it will always do so...
postgresql-18beta1/postgresql-17.2/src/bin/pg_test_fsync/pg_test_fsync.c:486:31: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_test_fsync/pg_test_fsync.c:488:42: branch_false: if it ever follows ‘false’ branch, it will always do so...
postgresql-18beta1/postgresql-17.2/src/bin/pg_test_fsync/pg_test_fsync.c:486:57: branch_false: ...to here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def681]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:499:49: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:361:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:363:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:366:40: branch_true: following ‘true’ branch (when ‘n_data_types_usage_checks > checknum’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:376:66: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:470:36: branch_false: following ‘false’ branch (when ‘found == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:471:41: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:494:44: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:494:73: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:494:73: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:494:45: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:497:44: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:497:44: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:499:49: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:499:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:499:49: danger: ‘script’ leaks here; was opened at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def682]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:499:49: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:361:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:363:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:366:40: branch_true: following ‘true’ branch (when ‘n_data_types_usage_checks > checknum’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:376:66: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:470:36: branch_false: following ‘false’ branch (when ‘found == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:471:41: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:494:44: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:494:73: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:494:73: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:494:45: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:497:44: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:497:44: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:499:49: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:499:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:499:49: danger: ‘script’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def683]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:968:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*deletion_script_file_name, "w")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:923:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:923:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:962:23: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:962:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:968:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:968:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:968:9: danger: ‘fopen(*deletion_script_file_name, "w")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def684]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:968:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*deletion_script_file_name, "w")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:923:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:923:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:962:23: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:962:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:968:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:968:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:968:9: danger: ‘fopen(*deletion_script_file_name, "w")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def685]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1138:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1115:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1117:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1135:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1135:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1135:65: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1135:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1138:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1138:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1138:33: danger: ‘script’ leaks here; was opened at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def686]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1138:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1115:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1117:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1135:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1135:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1135:65: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1135:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1138:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1138:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1138:33: danger: ‘script’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def687]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1254:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1214:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1222:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1226:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1234:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1250:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1250:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1250:57: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1250:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1252:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1252:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1254:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1254:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1254:33: danger: ‘script’ leaks here; was opened at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def688]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1254:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1214:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1222:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1226:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1234:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1250:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1250:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1250:57: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1250:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1252:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1252:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1254:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1254:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1254:33: danger: ‘script’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def689]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1348:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1300:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1311:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1343:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1344:43: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1344:43: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1343:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1346:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1346:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1348:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1348:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1348:33: danger: ‘script’ leaks here; was opened at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def690]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1348:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1300:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1311:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1343:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1344:43: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1344:43: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1343:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1346:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1346:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1348:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1348:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1348:33: danger: ‘script’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def691]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1476:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1418:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1421:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1471:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1472:43: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1472:43: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1471:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1474:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1474:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1476:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1476:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1476:33: danger: ‘script’ leaks here; was opened at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def692]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1476:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1418:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1421:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1471:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1472:43: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1472:43: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1471:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1474:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1474:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1476:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1476:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1476:33: danger: ‘script’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def693]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1552:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1524:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1532:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1548:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1548:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1548:57: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1548:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1550:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1550:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1552:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1552:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1552:33: danger: ‘script’ leaks here; was opened at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def694]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1552:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1524:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1532:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1548:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1548:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1548:57: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1548:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1550:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1550:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1552:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1552:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1552:33: danger: ‘script’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def695]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1614:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1610:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1612:20: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1612:20: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1612:49: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1612:49: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1612:21: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1614:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1614:17: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1614:17: danger: ‘script’ leaks here; was opened at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def696]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1614:17: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1610:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1612:20: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1612:20: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1612:49: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1612:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1612:21: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1614:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1614:17: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1614:17: danger: ‘script’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def697]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1689:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1654:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1663:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1684:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1685:43: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1685:43: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1684:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1687:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1687:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1689:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1689:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1689:33: danger: ‘script’ leaks here; was opened at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def698]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1689:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1654:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1663:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1684:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1685:43: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1685:43: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1684:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1687:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1687:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1689:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1689:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1689:33: danger: ‘script’ leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def699]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1867:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1852:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1854:49: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1861:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1863:36: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1863:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1864:51: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1864:51: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1863:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1867:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1867:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1867:33: danger: ‘script’ leaks here; was opened at [(7)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def700]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1867:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1852:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1854:49: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1861:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1863:36: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1863:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1864:51: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1864:51: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1863:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1867:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1867:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1867:33: danger: ‘script’ leaks here; was allocated at [(7)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def701]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1886:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1852:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1854:49: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1861:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1880:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1880:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1882:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1883:51: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1883:51: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1882:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1886:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1886:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1886:33: danger: ‘script’ leaks here; was opened at [(9)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def702]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1886:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1852:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1854:49: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1861:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1880:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1880:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1882:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1883:51: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1883:51: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1882:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1886:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1886:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1886:33: danger: ‘script’ leaks here; was allocated at [(9)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def703]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1954:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1927:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1930:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1934:20: branch_true: following ‘true’ branch (when ‘dbnum == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1940:31: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1952:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1952:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1952:65: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1952:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1954:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1954:33: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1954:33: danger: ‘script’ leaks here; was opened at [(7)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def704]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1954:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1927:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1930:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1934:20: branch_true: following ‘true’ branch (when ‘dbnum == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1940:31: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1952:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1952:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1952:65: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1952:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1954:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1954:33: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1954:33: danger: ‘script’ leaks here; was allocated at [(7)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def705]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:2007:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1927:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1930:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1934:20: branch_true: following ‘true’ branch (when ‘dbnum == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1940:31: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1950:41: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1958:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:2004:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:2004:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:2004:57: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:2004:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:2007:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:2007:25: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:2007:25: danger: ‘script’ leaks here; was opened at [(9)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def706]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:2007:25: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1927:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1930:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1934:20: branch_true: following ‘true’ branch (when ‘dbnum == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1940:31: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1950:41: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:1958:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:2004:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:2004:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:2004:57: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:2004:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:2007:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:2007:25: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/check.c:2007:25: danger: ‘script’ leaks here; was allocated at [(9)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def707]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:138:36: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:84:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:86:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:86:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:88:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:88:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:90:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:90:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:92:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:92:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:94:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:94:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:96:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:96:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:98:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:100:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:100:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:103:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:128:31: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:128:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:128:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:132:24: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:134:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:134:28: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:136:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:138:36: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def708]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:138:37: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:84:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:86:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:86:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:88:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:88:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:90:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:90:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:92:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:92:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:94:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:94:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:96:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:96:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:98:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:100:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:100:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:103:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:128:31: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:128:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:128:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:132:24: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:134:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:134:28: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:136:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:138:36: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:138:50: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:138:37: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def709]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:152:40: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:84:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:86:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:86:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:88:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:88:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:90:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:90:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:92:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:92:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:94:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:94:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:96:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:96:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:98:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:100:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:100:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:103:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:128:31: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:128:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:128:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:132:24: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:134:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:134:28: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:136:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:138:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:152:40: throw: if ‘pg_strip_crlf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:152:40: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def710]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:153:40: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:84:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:86:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:86:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:88:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:88:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:90:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:90:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:92:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:92:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:94:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:94:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:96:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:96:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:98:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:100:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:100:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:103:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:128:31: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:128:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:128:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:132:24: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:134:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:134:28: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:136:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:138:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:153:40: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:155:37: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:153:40: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def711]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:173:22: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:84:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:86:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:86:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:88:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:88:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:90:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:90:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:92:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:92:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:94:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:94:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:96:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:96:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:98:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:100:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:100:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:103:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:128:31: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:128:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:128:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:132:24: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:173:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:173:22: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def712]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:202:13: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:84:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:86:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:86:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:88:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:88:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:90:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:90:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:92:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:92:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:94:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:94:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:96:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:96:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:98:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:100:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:100:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:103:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:121:12: branch_true: following ‘true’ branch (when ‘live_check != 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:121:13: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:121:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:188:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:192:9: branch_true: following ‘true’ branch (when ‘live_check != 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:192:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:198:23: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:198:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:202:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:202:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:202:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:209:16: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:505:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/controldata.c:202:13: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(25)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/24)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def713]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:45:13: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:45:23: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:45:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:46:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:45:13: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def714]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:49:14: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:45:23: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:45:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:46:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:45:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:49:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:49:14: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def715]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:109:20: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:108:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:109:20: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:109:20: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def716]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:167:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&log_file, "a")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:111:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:113:44: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:115:12: branch_false: following ‘false’ branch (when ‘written <= 2047’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:118:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:138:15: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:159:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:167:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:167:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:167:9: danger: ‘fopen(&log_file, "a")’ leaks here; was opened at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def717]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:167:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&log_file, "a")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:111:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:113:44: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:115:12: branch_false: following ‘false’ branch (when ‘written <= 2047’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:118:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:138:15: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:159:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:167:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:167:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:167:9: danger: ‘fopen(&log_file, "a")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def718]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:219:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&log_file, "a")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:111:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:113:44: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:115:12: branch_false: following ‘false’ branch (when ‘written <= 2047’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:118:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:159:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:167:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:189:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:217:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:217:20: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:217:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:219:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:219:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:219:9: danger: ‘fopen(&log_file, "a")’ leaks here; was opened at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def719]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:219:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&log_file, "a")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:111:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:113:44: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:115:12: branch_false: following ‘false’ branch (when ‘written <= 2047’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:118:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:159:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:167:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:189:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:217:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:217:20: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:217:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:219:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:219:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/exec.c:219:9: danger: ‘fopen(&log_file, "a")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def720]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:190:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:168:26: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:176:20: branch_true: following ‘true’ branch (when ‘libnum == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:178:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:184:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:188:36: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:188:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:188:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:188:65: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:188:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:190:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:190:33: throw: if ‘PQerrorMessage’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:190:33: danger: ‘script’ leaks here; was opened at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def721]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:190:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:168:26: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:176:20: branch_true: following ‘true’ branch (when ‘libnum == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:178:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:184:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:188:36: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:188:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:188:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:188:65: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:188:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:190:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:190:33: throw: if ‘PQerrorMessage’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/function.c:190:33: danger: ‘script’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def722]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/info.c:213:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rel’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/info.c:42:1: enter_function: entry to ‘gen_db_file_maps’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/info.c:62:16: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/info.c:65:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/info.c:65:39: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/info.c:67:53: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/info.c:71:20: branch_true: following ‘true’ branch (when ‘new_rel’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/info.c:77:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/info.c:77:25: call_function: calling ‘report_unmatched_relation’ from ‘gen_db_file_maps’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def723]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:446:13: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:418:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:420:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:424:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:432:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:446:23: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:446:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:447:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:446:13: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def724]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:450:14: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:418:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:420:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:424:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:432:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:446:23: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:446:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:447:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:446:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:450:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:450:14: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def725]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:476:12: branch_true: following ‘true’ branch (when ‘live_check != 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:484:32: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:492:27: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:492:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:492:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: danger: ‘fopen(&filename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def726]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&filename, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:476:12: branch_true: following ‘true’ branch (when ‘live_check != 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:484:32: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:492:27: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:492:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:492:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: danger: ‘fopen(&filename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def727]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:509:52: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:476:12: branch_true: following ‘true’ branch (when ‘live_check != 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:484:32: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:492:27: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:492:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:492:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: following ‘false’ branch (when ‘lineno != 4’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:506:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:506:28: branch_false: following ‘false’ branch (when ‘lineno != 5’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:497:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:509:52: throw: if ‘pg_strdup’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:509:52: danger: ‘fopen(&filename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def728]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:509:52: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&filename, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:476:12: branch_true: following ‘true’ branch (when ‘live_check != 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:484:32: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:492:27: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:492:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:492:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: following ‘false’ branch (when ‘lineno != 4’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:506:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:506:28: branch_false: following ‘false’ branch (when ‘lineno != 5’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:497:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:509:52: throw: if ‘pg_strdup’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:509:52: danger: ‘fopen(&filename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def729]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:510:40: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:476:12: branch_true: following ‘true’ branch (when ‘live_check != 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:484:32: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:492:27: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:492:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:492:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: following ‘false’ branch (when ‘lineno != 4’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:506:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:506:28: branch_false: following ‘false’ branch (when ‘lineno != 5’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:497:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:510:40: throw: if ‘pg_strip_crlf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:510:40: danger: ‘fopen(&filename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def730]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:510:40: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&filename, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:476:12: branch_true: following ‘true’ branch (when ‘live_check != 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:484:32: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:492:27: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:492:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:492:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: following ‘false’ branch (when ‘lineno != 4’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:506:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:506:28: branch_false: following ‘false’ branch (when ‘lineno != 5’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:497:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:496:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:499:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:504:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:510:40: throw: if ‘pg_strip_crlf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/option.c:510:40: danger: ‘fopen(&filename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def731]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/parallel.c:76:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/parallel.c:75:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/parallel.c:76:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/parallel.c:76:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def732]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:323:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename_path, "a")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:266:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:275:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:279:37: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:282:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:286:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:289:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:296:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:298:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:300:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:300:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:302:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:302:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:305:15: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:307:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:310:34: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:310:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:310:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:314:39: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:316:23: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:318:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:320:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:320:27: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:320:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:323:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:323:17: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:323:17: danger: ‘fopen(&filename_path, "a")’ leaks here; was opened at [(23)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def733]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:323:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&filename_path, "a")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:266:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:275:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:279:37: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:282:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:286:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:289:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:296:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:298:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:300:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:300:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:302:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:302:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:305:15: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:307:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:310:34: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:310:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:310:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:314:39: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:316:23: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:318:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:320:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:320:27: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:320:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:323:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:323:17: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/pg_upgrade.c:323:17: danger: ‘fopen(&filename_path, "a")’ leaks here; was allocated at [(23)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def734]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/server.c:130:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/server.c:129:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/server.c:130:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/server.c:130:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def735]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/util.c:135:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/util.c:134:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/util.c:135:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/util.c:135:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def736]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/util.c:162:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/util.c:161:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/util.c:162:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/util.c:162:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def737]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/util.c:184:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/util.c:270:1: enter_function: entry to ‘pg_fatal’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/util.c:274:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/util.c:275:9: call_function: calling ‘pg_log_v’ from ‘pg_fatal’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def738]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:84:41: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:84:41: throw: if ‘initPQExpBuffer’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:84:41: danger: ‘script’ leaks here; was opened at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def739]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:84:41: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:84:41: throw: if ‘initPQExpBuffer’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:84:41: danger: ‘script’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def740]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:85:41: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:85:41: throw: if ‘appendPsqlMetaConnect’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:85:41: danger: ‘script’ leaks here; was opened at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def741]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:85:41: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:85:41: throw: if ‘appendPsqlMetaConnect’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:85:41: danger: ‘script’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def742]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:87:41: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:87:41: throw: if ‘termPQExpBuffer’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:87:41: danger: ‘script’ leaks here; was opened at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def743]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:87:41: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:87:41: throw: if ‘termPQExpBuffer’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:87:41: danger: ‘script’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def744]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:90:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:90:33: throw: if ‘quote_identifier’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:90:33: danger: ‘script’ leaks here; was opened at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def745]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:90:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:90:33: throw: if ‘quote_identifier’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:90:33: danger: ‘script’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def746]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:91:66: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:91:66: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:91:66: danger: ‘script’ leaks here; was opened at [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def747]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:91:66: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:91:66: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:91:66: danger: ‘script’ leaks here; was allocated at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def748]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:92:66: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:92:66: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:92:66: danger: ‘script’ leaks here; was opened at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def749]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:92:66: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:65: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:92:66: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:92:66: danger: ‘script’ leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def750]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:182:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:155:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:162:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:182:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:182:33: throw: if ‘initPQExpBuffer’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:182:33: danger: ‘script’ leaks here; was opened at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def751]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:182:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:155:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:162:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:182:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:182:33: throw: if ‘initPQExpBuffer’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:182:33: danger: ‘script’ leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def752]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:183:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:155:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:162:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:182:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:183:33: throw: if ‘appendPsqlMetaConnect’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:183:33: danger: ‘script’ leaks here; was opened at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def753]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:183:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:155:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:162:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:182:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:183:33: throw: if ‘appendPsqlMetaConnect’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:183:33: danger: ‘script’ leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def754]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:185:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:155:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:162:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:182:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:185:33: throw: if ‘termPQExpBuffer’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:185:33: danger: ‘script’ leaks here; was opened at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def755]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:185:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:155:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:162:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:182:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:185:33: throw: if ‘termPQExpBuffer’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:185:33: danger: ‘script’ leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def756]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:188:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:155:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:162:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:182:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:188:25: throw: if ‘quote_identifier’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:188:25: danger: ‘script’ leaks here; was opened at [(5)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def757]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:188:25: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:155:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:162:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:182:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:188:25: throw: if ‘quote_identifier’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:188:25: danger: ‘script’ leaks here; was allocated at [(5)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def758]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:189:58: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:155:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:162:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:182:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:189:58: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:189:58: danger: ‘script’ leaks here; was opened at [(5)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def759]
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:189:58: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:155:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:162:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:57: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:176:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:178:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:182:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:189:58: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_upgrade/version.c:189:58: danger: ‘script’ leaks here; was allocated at [(5)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def760]
postgresql-18beta1/postgresql-17.2/src/bin/pg_verifybackup/pg_verifybackup.c:637:37: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(fullpath)’
postgresql-18beta1/postgresql-17.2/src/bin/pg_verifybackup/pg_verifybackup.c:616:15: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_verifybackup/pg_verifybackup.c:617:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_verifybackup/pg_verifybackup.c:617:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_verifybackup/pg_verifybackup.c:637:37: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_verifybackup/pg_verifybackup.c:637:37: danger: ‘opendir(fullpath)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def761]
postgresql-18beta1/postgresql-17.2/src/bin/pg_verifybackup/pg_verifybackup.c:988:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/bin/pg_verifybackup/pg_verifybackup.c:987:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/bin/pg_verifybackup/pg_verifybackup.c:988:9: throw: if ‘pg_log_generic_v’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_verifybackup/pg_verifybackup.c:988:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def762]
postgresql-18beta1/postgresql-17.2/src/bin/pg_verifybackup/pg_verifybackup.c:1005:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/bin/pg_verifybackup/pg_verifybackup.c:1004:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/bin/pg_verifybackup/pg_verifybackup.c:1005:9: throw: if ‘pg_log_generic_v’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_verifybackup/pg_verifybackup.c:1005:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def763]
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:119:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(directory)’
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:115:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:117:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:119:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:119:9: danger: ‘opendir(directory)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def764]
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c: scope_hint: In function ‘split_path’
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:166:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def765]
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:166:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def766]
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:228:32: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(directory)’
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:216:12: branch_false: following ‘false’ branch (when ‘fname’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:224:27: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:224:27: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:224:17: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:224:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:228:32: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:228:32: danger: ‘opendir(directory)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def767]
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:534:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename, "w")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:494:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:505:22: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:508:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:514:22: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:514:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:517:24: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:520:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:521:50: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:530:24: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:531:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:534:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:534:20: danger: ‘fopen(&filename, "w")’ leaks here; was opened at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def768]
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:534:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&filename, "w")’
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:494:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:505:22: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:508:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:514:22: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:514:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:517:24: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:520:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:521:50: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:530:24: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:531:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:534:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/pg_waldump.c:534:20: danger: ‘fopen(&filename, "w")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def769]
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/xlogreader.c:78:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/xlogreader.c:77:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/xlogreader.c:78:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_waldump/xlogreader.c:78:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def770]
postgresql-18beta1/postgresql-17.2/src/bin/pg_walsummary/pg_walsummary.c:236:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/bin/pg_walsummary/pg_walsummary.c:235:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/bin/pg_walsummary/pg_walsummary.c:236:9: throw: if ‘pg_log_generic_v’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pg_walsummary/pg_walsummary.c:236:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def771]
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1117:9: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1075:6: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1139:6: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1139:6: branch_false: following ‘false’ branch (when ‘yystate != 25’)...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1142:3: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1154:6: branch_false: following ‘false’ branch (when ‘yyn != -33’)...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1160:6: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1160:6: branch_true: following ‘true’ branch (when ‘yychar == -2’)...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1163:16: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1172:11: branch_false: following ‘false’ branch (when ‘yychar != 256’)...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1184:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1191:6: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1194:6: branch_false: following ‘false’ branch (when ‘yyn > 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1204:6: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1204:6: branch_false: following ‘false’ branch (when ‘yyerrstatus == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1211:3: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1075:6: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1081:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1104:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1106:7: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1113:11: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1115:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1117:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1120:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1120:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1133:10: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1139:6: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1139:6: branch_false: following ‘false’ branch (when ‘yystate != 25’)...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1142:3: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1154:6: branch_false: following ‘false’ branch (when ‘yyn != -33’)...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1160:6: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1160:6: branch_true: following ‘true’ branch (when ‘yychar == -2’)...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1163:16: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1163:16: throw: if ‘expr_yylex’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1117:9: danger: ‘yyptr’ leaks here; was allocated at [(21)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def772]
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1117:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1075:6: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1081:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1104:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1106:7: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1115:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1117:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprparse.c:1117:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def773]
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.c:1999:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.l:321:1: enter_function: entry to ‘expr_lex_one_word’
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.l:343:14: call_function: calling ‘expr_yylex’ from ‘expr_lex_one_word’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def774]
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.c:2042:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.l:321:1: enter_function: entry to ‘expr_lex_one_word’
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.l:343:14: call_function: calling ‘expr_yylex’ from ‘expr_lex_one_word’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def775]
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.c:2162:3: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(8)’
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.l:321:1: enter_function: entry to ‘expr_lex_one_word’
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.l:334:19: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.l:335:56: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.l:335:10: call_function: calling ‘expr_yy_switch_to_buffer’ from ‘expr_lex_one_word’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def776]
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.c:2183:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.l:321:1: enter_function: entry to ‘expr_lex_one_word’
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.l:334:19: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.l:335:56: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.l:335:10: call_function: calling ‘expr_yy_switch_to_buffer’ from ‘expr_lex_one_word’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def777]
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.c:2208:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.c:2194:17: enter_function: entry to ‘expr_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.c:2204:24: call_function: inlined call to ‘expr_yyalloc’ from ‘expr_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.c:2205:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.c:2208:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.c:2218:2: call_function: calling ‘expr_yy_switch_to_buffer’ from ‘expr_yy_scan_buffer’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def778]
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.c:2311:12: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*(struct yyguts_t *)yyscanner.yytext_r)’
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.l:321:1: enter_function: entry to ‘expr_lex_one_word’
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/exprscan.l:343:14: call_function: calling ‘expr_yylex’ from ‘expr_lex_one_word’
Error: CPPCHECK_WARNING (CWE-457): [#def779]
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/pgbench.c:1622: warning[uninitvar]: Uninitialized variables: &key.svalue, &key.value
Error: COMPILER_WARNING (CWE-704): [#def780]
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/pgbench.c: scope_hint: In function ‘parseScriptWeight’
postgresql-18beta1/postgresql-17.2/src/bin/pgbench/pgbench.c:6161:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def781]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2719:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fd’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2666:12: branch_true: following ‘true’ branch (when ‘active_branch != 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2668:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2673:20: branch_false: following ‘false’ branch (when ‘query_buf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2680:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2680:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2687:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2688:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2697:41: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2698:46: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2700:36: branch_false: following ‘false’ branch (when ‘fd’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2718:42: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2718:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2719:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2719:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2719:33: danger: ‘fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def782]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2719:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2666:12: branch_true: following ‘true’ branch (when ‘active_branch != 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2668:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2673:20: branch_false: following ‘false’ branch (when ‘query_buf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2680:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2680:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2687:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2688:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2697:41: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2698:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2700:36: branch_false: following ‘false’ branch (when ‘fd’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2718:42: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2718:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2719:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2719:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2719:33: danger: ‘fd’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def783]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2721:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fd’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2666:12: branch_true: following ‘true’ branch (when ‘active_branch != 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2668:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2673:20: branch_false: following ‘false’ branch (when ‘query_buf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2680:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2680:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2687:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2688:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2697:41: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2698:46: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2700:36: branch_false: following ‘false’ branch (when ‘fd’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2718:42: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2718:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2720:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2720:33: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2721:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2721:33: danger: ‘fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def784]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2721:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2666:12: branch_true: following ‘true’ branch (when ‘active_branch != 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2668:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2673:20: branch_false: following ‘false’ branch (when ‘query_buf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2680:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2680:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2687:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2688:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2697:41: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2698:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2700:36: branch_false: following ‘false’ branch (when ‘fd’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2718:42: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2718:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2720:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2720:33: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2721:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2721:33: danger: ‘fd’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def785]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2725:42: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2666:12: branch_true: following ‘true’ branch (when ‘active_branch != 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2668:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2673:20: branch_false: following ‘false’ branch (when ‘query_buf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2680:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2680:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2687:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2688:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2691:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2693:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2700:36: branch_false: following ‘false’ branch (when ‘fd’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2718:42: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2718:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2720:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2723:28: branch_true: following ‘true’ branch (when ‘is_pipe != 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2725:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2725:42: throw: if ‘pclose’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:2725:42: danger: ‘fd’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def786]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4157:33: warning[-Wanalyzer-malloc-leak]: leak of ‘stream’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4103:12: branch_false: following ‘false’ branch (when ‘filename_arg’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4109:38: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4142:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4143:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4143:34: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4145:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4152:43: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4155:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4157:33: throw: if ‘appendPQExpBufferChar’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4157:33: danger: ‘stream’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def787]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4163:33: warning[-Wanalyzer-malloc-leak]: leak of ‘stream’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4103:12: branch_false: following ‘false’ branch (when ‘filename_arg’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4109:38: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4142:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4143:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4143:34: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4145:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4152:43: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4161:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4163:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4163:33: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4163:33: danger: ‘stream’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def788]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4233:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4201:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4209:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4211:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4222:26: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4223:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4233:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4233:25: throw: if ‘resetPQExpBuffer’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4233:25: danger: ‘fopen(fname, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def789]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4233:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4201:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4209:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4211:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4222:26: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4223:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4233:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4233:25: throw: if ‘resetPQExpBuffer’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4233:25: danger: ‘fopen(fname, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def790]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4235:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4201:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4209:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4211:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4222:26: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4223:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4233:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4234:32: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4235:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4235:33: throw: if ‘appendPQExpBufferStr’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4235:33: danger: ‘fopen(fname, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def791]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4235:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4201:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4209:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4211:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4222:26: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4223:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4233:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4234:32: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4235:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4235:33: throw: if ‘appendPQExpBufferStr’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4235:33: danger: ‘fopen(fname, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def792]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4239:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4201:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4209:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4211:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4222:26: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4223:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4233:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4237:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4239:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4239:33: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4239:33: danger: ‘fopen(fname, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def793]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4239:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4201:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4209:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4211:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4222:26: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4223:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4233:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4237:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4239:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4239:33: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4239:33: danger: ‘fopen(fname, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def794]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4241:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4201:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4209:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4211:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4222:26: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4223:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4233:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4237:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4239:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4241:33: throw: if ‘resetPQExpBuffer’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4241:33: danger: ‘fopen(fname, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def795]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4241:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4201:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4209:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4211:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4222:26: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4223:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4233:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4237:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4239:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4241:33: throw: if ‘resetPQExpBuffer’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4241:33: danger: ‘fopen(fname, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def796]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4337:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fd’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4294:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4299:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4299:17: branch_true: following ‘true’ branch (when the strings are non-equal)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4301:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4320:22: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4322:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4334:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4337:9: throw: if ‘pg_logging_config’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4337:9: danger: ‘fd’ leaks here; was opened at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def797]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4337:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4294:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4299:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4299:17: branch_true: following ‘true’ branch (when the strings are non-equal)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4301:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4320:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4322:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4334:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4337:9: throw: if ‘pg_logging_config’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4337:9: danger: ‘fd’ leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def798]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4339:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fd’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4294:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4299:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4299:17: branch_true: following ‘true’ branch (when the strings are non-equal)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4301:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4320:22: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4322:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4334:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4339:18: throw: if ‘MainLoop’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4339:18: danger: ‘fd’ leaks here; was opened at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def799]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4339:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4294:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4299:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4299:17: branch_true: following ‘true’ branch (when the strings are non-equal)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4301:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4320:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4322:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4334:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4339:18: throw: if ‘MainLoop’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:4339:18: danger: ‘fd’ leaks here; was allocated at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def800]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5345:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pagerpipe’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5259:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5309:12: branch_true: following ‘true’ branch (when ‘pagerprog’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5309:26: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5309:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:13: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5313:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:13: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5313:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:13: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5315:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5317:29: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5319:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5343:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5345:17: throw: if ‘pg_malloc’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5345:17: danger: ‘pagerpipe’ leaks here; was allocated at [(15)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def801]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5362:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pagerpipe’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5259:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5309:12: branch_true: following ‘true’ branch (when ‘pagerprog’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5309:26: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5309:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:13: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5313:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:13: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5313:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:13: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5315:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5317:29: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5319:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5343:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5348:16: branch_false: following ‘false’ branch (when ‘done == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5358:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5361:20: branch_true: following ‘true’ branch (when ‘user_title’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5362:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5362:25: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5362:25: danger: ‘pagerpipe’ leaks here; was allocated at [(15)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def802]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5365:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pagerpipe’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5259:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5309:12: branch_true: following ‘true’ branch (when ‘pagerprog’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5309:26: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5309:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:13: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5313:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:13: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5313:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:13: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5315:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5317:29: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5319:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5343:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5348:16: branch_false: following ‘false’ branch (when ‘done == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5358:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5361:20: branch_false: following ‘false’ branch (when ‘user_title’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5365:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5365:25: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5365:25: danger: ‘pagerpipe’ leaks here; was allocated at [(15)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def803]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5370:23: warning[-Wanalyzer-malloc-leak]: leak of ‘pagerpipe’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5259:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5309:12: branch_true: following ‘true’ branch (when ‘pagerprog’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5309:26: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5309:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:13: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5313:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:13: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5313:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:13: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5315:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5317:29: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5319:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5343:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5348:16: branch_false: following ‘false’ branch (when ‘done == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5358:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5361:20: branch_true: following ‘true’ branch (when ‘user_title’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5362:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5370:23: throw: if ‘PSQLexecWatch’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5370:23: danger: ‘pagerpipe’ leaks here; was allocated at [(15)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def804]
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5448:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pagerpipe’
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5259:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5309:12: branch_true: following ‘true’ branch (when ‘pagerprog’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5309:26: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5309:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:13: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5313:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:13: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5313:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5312:13: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5315:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5317:29: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5319:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5343:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5348:16: branch_true: following ‘true’ branch (when ‘done != 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5446:12: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5446:12: branch_true: following ‘true’ branch (when ‘pagerpipe’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5448:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5448:17: throw: if ‘pclose’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/command.c:5448:17: danger: ‘pagerpipe’ leaks here; was allocated at [(15)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def805]
postgresql-18beta1/postgresql-17.2/src/bin/psql/common.c:98:33: warning[-Wanalyzer-malloc-leak]: leak of ‘gfile_fout’
postgresql-18beta1/postgresql-17.2/src/bin/psql/common.c:1004:1: enter_function: entry to ‘PrintQueryResult’
postgresql-18beta1/postgresql-17.2/src/bin/psql/common.c:1017:28: branch_true: following ‘true’ branch (when ‘last != 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/common.c:1017:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/common.c:1017:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/common.c:1019:42: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/common.c:1019:34: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/common.c:1020:43: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/common.c:1020:43: call_function: calling ‘ExecQueryTuples’ from ‘PrintQueryResult’
Error: CPPCHECK_WARNING (CWE-457): [#def806]
postgresql-18beta1/postgresql-17.2/src/bin/psql/crosstabview.c:363: error[uninitvar]: Uninitialized variables: &elt.sort_value, &elt.rank
Error: GCC_ANALYZER_WARNING (CWE-476): [#def807]
postgresql-18beta1/postgresql-17.2/src/bin/psql/crosstabview.c:369:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/postgresql-17.2/src/bin/psql/crosstabview.c:350:22: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/crosstabview.c:359:22: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/crosstabview.c:369:17: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def808]
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:520:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘output’
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:500:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:503:12: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:503:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:511:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:511:26: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:512:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:520:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:520:9: throw: if ‘history_set_pos’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:520:9: danger: ‘output’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def809]
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:520:9: warning[-Wanalyzer-malloc-leak]: leak of ‘output’
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:500:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:503:12: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:503:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:511:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:511:26: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:512:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:520:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:520:9: throw: if ‘history_set_pos’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:520:9: danger: ‘output’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def810]
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:522:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘output’
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:500:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:503:12: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:503:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:511:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:511:26: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:512:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:520:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:520:9: branch_true: following ‘true’ branch (when ‘cur_hist’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:522:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:522:17: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:522:17: danger: ‘output’ leaks here; was opened at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def811]
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:522:17: warning[-Wanalyzer-malloc-leak]: leak of ‘output’
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:500:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:503:12: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:503:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:511:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:511:26: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:512:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:520:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:520:9: branch_true: following ‘true’ branch (when ‘cur_hist’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:522:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:522:17: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/input.c:522:17: danger: ‘output’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def812]
postgresql-18beta1/postgresql-17.2/src/bin/psql/large_obj.c:29:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/bin/psql/large_obj.c:23:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/large_obj.c:25:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/large_obj.c:28:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/bin/psql/large_obj.c:29:17: throw: if ‘pg_vfprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/large_obj.c:29:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def813]
postgresql-18beta1/postgresql-17.2/src/bin/psql/large_obj.c:41:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/bin/psql/large_obj.c:38:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/large_obj.c:40:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/large_obj.c:40:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/bin/psql/large_obj.c:41:17: throw: if ‘pg_vfprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/large_obj.c:41:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def814]
postgresql-18beta1/postgresql-17.2/src/bin/psql/prompt.c:277:57: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(pnstrdup(p + 1, (long unsigned int)cmdend), "r")’
postgresql-18beta1/postgresql-17.2/src/bin/psql/prompt.c:99:18: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/prompt.c:103:20: branch_false: following ‘false’ branch (when ‘esc == 0’)...
postgresql-18beta1/postgresql-17.2/src/bin/psql/prompt.c:324:26: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/prompt.c:99:18: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/prompt.c:272:54: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/prompt.c:273:52: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/prompt.c:275:61: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/prompt.c:275:60: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/prompt.c:277:57: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/prompt.c:277:57: danger: ‘popen(pnstrdup(p + 1, (long unsigned int)cmdend), "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def815]
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.c:1487:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:549:8: enter_function: entry to ‘psql_scan_slash_option’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:579:10: call_function: calling ‘slash_yy_switch_to_buffer’ from ‘psql_scan_slash_option’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:579:10: return_function: returning to ‘psql_scan_slash_option’ from ‘slash_yy_switch_to_buffer’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:590:14: call_function: calling ‘slash_yylex’ from ‘psql_scan_slash_option’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def816]
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.c:2486:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:687:1: enter_function: entry to ‘psql_scan_slash_command_end’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:697:10: call_function: calling ‘slash_yy_switch_to_buffer’ from ‘psql_scan_slash_command_end’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:697:10: return_function: returning to ‘psql_scan_slash_command_end’ from ‘slash_yy_switch_to_buffer’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:705:2: call_function: calling ‘slash_yylex’ from ‘psql_scan_slash_command_end’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def817]
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.c:2486:54: warning[-Wanalyzer-malloc-leak]: leak of ‘slash_yy_create_buffer(*(struct yyguts_t *)yyscanner.yyin_r, 16384, yyscanner)’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:549:8: enter_function: entry to ‘psql_scan_slash_option’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:579:10: call_function: calling ‘slash_yy_switch_to_buffer’ from ‘psql_scan_slash_option’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:579:10: return_function: returning to ‘psql_scan_slash_option’ from ‘slash_yy_switch_to_buffer’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:590:14: call_function: calling ‘slash_yylex’ from ‘psql_scan_slash_option’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def818]
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.c:2529:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:687:1: enter_function: entry to ‘psql_scan_slash_command_end’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:697:10: call_function: calling ‘slash_yy_switch_to_buffer’ from ‘psql_scan_slash_command_end’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:697:10: return_function: returning to ‘psql_scan_slash_command_end’ from ‘slash_yy_switch_to_buffer’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:705:2: call_function: calling ‘slash_yylex’ from ‘psql_scan_slash_command_end’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def819]
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.c:2649:3: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(8)’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:490:1: enter_function: entry to ‘psql_scan_slash_command’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:504:19: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:505:10: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:505:10: call_function: calling ‘slash_yy_switch_to_buffer’ from ‘psql_scan_slash_command’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def820]
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.c:2670:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:490:1: enter_function: entry to ‘psql_scan_slash_command’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:504:19: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:505:10: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:505:10: call_function: calling ‘slash_yy_switch_to_buffer’ from ‘psql_scan_slash_command’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def821]
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.c:2695:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.c:2681:17: enter_function: entry to ‘slash_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.c:2691:24: call_function: inlined call to ‘slash_yyalloc’ from ‘slash_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.c:2692:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.c:2695:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.c:2705:2: call_function: calling ‘slash_yy_switch_to_buffer’ from ‘slash_yy_scan_buffer’
Error: CPPCHECK_WARNING (CWE-562): [#def822]
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:501: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def823]
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:575: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def824]
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:817:33: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:802:14: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:803:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:803:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:817:33: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:817:33: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def825]
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:821:18: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:802:14: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:803:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:803:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:815:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:821:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:821:18: throw: if ‘appendBinaryPQExpBuffer’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:821:18: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def826]
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:832:29: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:802:14: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:803:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:803:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:825:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:832:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/bin/psql/psqlscanslash.l:832:29: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def827]
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:539:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:474:1: enter_function: entry to ‘WriteBlockRefTable’
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:489:9: call_function: calling ‘BlockRefTableWrite’ from ‘WriteBlockRefTable’
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:489:9: return_function: returning to ‘WriteBlockRefTable’ from ‘BlockRefTableWrite’
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:492:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:500:32: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:502:36: call_function: calling ‘blockreftable_iterate’ from ‘WriteBlockRefTable’
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:502:36: return_function: returning to ‘WriteBlockRefTable’ from ‘blockreftable_iterate’
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:502:24: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:517:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:521:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:523:70: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:528:25: call_function: calling ‘BlockRefTableWrite’ from ‘WriteBlockRefTable’
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:528:25: return_function: returning to ‘WriteBlockRefTable’ from ‘BlockRefTableWrite’
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:538:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:540:68: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:539:61: danger: dereference of NULL ‘blockreftable_lookup(*brtab.hash, key)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def828]
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:543:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:474:1: enter_function: entry to ‘WriteBlockRefTable’
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:489:9: call_function: calling ‘BlockRefTableWrite’ from ‘WriteBlockRefTable’
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:489:9: return_function: returning to ‘WriteBlockRefTable’ from ‘BlockRefTableWrite’
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:492:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:500:32: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:502:36: call_function: calling ‘blockreftable_iterate’ from ‘WriteBlockRefTable’
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:502:36: return_function: returning to ‘WriteBlockRefTable’ from ‘blockreftable_iterate’
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:502:24: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:517:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:521:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:523:70: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:528:25: call_function: calling ‘BlockRefTableWrite’ from ‘WriteBlockRefTable’
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:528:25: return_function: returning to ‘WriteBlockRefTable’ from ‘BlockRefTableWrite’
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:538:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:543:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/blkreftable.c:543:41: danger: dereference of NULL ‘blockreftable_lookup(*brtab.hash, key)’
Error: COMPILER_WARNING (CWE-704): [#def829]
postgresql-18beta1/postgresql-17.2/src/common/compression.c: scope_hint: In function ‘parse_compress_options’
postgresql-18beta1/postgresql-17.2/src/common/compression.c:458:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def830]
postgresql-18beta1/postgresql-17.2/src/common/compression.c:458:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: CPPCHECK_WARNING (CWE-457): [#def831]
postgresql-18beta1/postgresql-17.2/src/common/encnames.c:540: warning[uninitvar]: Uninitialized variable: newkey
Error: GCC_ANALYZER_WARNING (CWE-401): [#def832]
postgresql-18beta1/postgresql-17.2/src/common/exec.c:388:16: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
postgresql-18beta1/postgresql-17.2/src/common/exec.c:379:25: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/exec.c:379:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/exec.c:387:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/exec.c:388:16: throw: if ‘pg_get_line’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/exec.c:388:16: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def833]
postgresql-18beta1/postgresql-17.2/src/common/file_utils.c:285:33: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
postgresql-18beta1/postgresql-17.2/src/common/file_utils.c:278:15: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/file_utils.c:279:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/file_utils.c:279:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/file_utils.c:285:33: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/file_utils.c:285:33: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def834]
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:121:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:81:15: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:82:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:84:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:121:21: throw: if ‘pg_cryptohash_create’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:121:21: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def835]
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:171:28: warning[-Wanalyzer-malloc-leak]: leak of ‘shrinkbuf’
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:145:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:148:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:158:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:163:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:163:29: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:164:20: branch_false: following ‘false’ branch (when ‘shrinkbuf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:169:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:171:28: throw: if ‘pg_cryptohash_create’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:171:28: danger: ‘shrinkbuf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def836]
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:179:21: warning[-Wanalyzer-malloc-leak]: leak of ‘shrinkbuf’
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:145:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:148:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:158:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:163:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:163:29: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:164:20: branch_false: following ‘false’ branch (when ‘shrinkbuf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:169:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:172:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:179:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:179:21: throw: if ‘pg_cryptohash_init’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:179:21: danger: ‘shrinkbuf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def837]
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:180:25: warning[-Wanalyzer-malloc-leak]: leak of ‘shrinkbuf’
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:145:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:148:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:158:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:163:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:163:29: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:164:20: branch_false: following ‘false’ branch (when ‘shrinkbuf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:169:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:172:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:179:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:179:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:180:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:180:25: throw: if ‘pg_cryptohash_update’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:180:25: danger: ‘shrinkbuf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def838]
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:181:25: warning[-Wanalyzer-malloc-leak]: leak of ‘shrinkbuf’
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:145:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:148:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:158:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:163:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:163:29: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:164:20: branch_false: following ‘false’ branch (when ‘shrinkbuf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:169:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:172:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:179:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:179:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:180:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:179:21: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:181:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:181:25: throw: if ‘pg_cryptohash_final’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:181:25: danger: ‘shrinkbuf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def839]
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:184:42: warning[-Wanalyzer-malloc-leak]: leak of ‘shrinkbuf’
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:145:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:148:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:158:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:163:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:163:29: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:164:20: branch_false: following ‘false’ branch (when ‘shrinkbuf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:169:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:172:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:179:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:184:42: throw: if ‘pg_cryptohash_error’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:184:42: danger: ‘shrinkbuf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def840]
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:185:25: warning[-Wanalyzer-malloc-leak]: leak of ‘shrinkbuf’
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:145:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:148:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:158:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:163:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:163:29: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:164:20: branch_false: following ‘false’ branch (when ‘shrinkbuf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:169:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:172:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:179:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:185:25: throw: if ‘pg_cryptohash_free’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:185:25: danger: ‘shrinkbuf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def841]
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:259:13: warning[-Wanalyzer-malloc-leak]: leak of ‘h’
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:248:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:251:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:251:13: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:252:12: branch_false: following ‘false’ branch (when ‘h’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:257:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:259:13: throw: if ‘pg_cryptohash_final’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/hmac.c:259:13: danger: ‘h’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-457): [#def842]
postgresql-18beta1/postgresql-17.2/src/common/jsonapi.c:1315: warning[uninitvar]: Uninitialized variable: lex->inc_state
Error: GCC_ANALYZER_WARNING (CWE-404): [#def843]
postgresql-18beta1/postgresql-17.2/src/common/logging.c:239:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/common/logging.c:205:1: enter_function: entry to ‘pg_log_generic’
postgresql-18beta1/postgresql-17.2/src/common/logging.c:210:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/common/logging.c:211:9: call_function: calling ‘pg_log_generic_v’ from ‘pg_log_generic’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def844]
postgresql-18beta1/postgresql-17.2/src/common/logging.c:242:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/common/logging.c:205:1: enter_function: entry to ‘pg_log_generic’
postgresql-18beta1/postgresql-17.2/src/common/logging.c:210:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/common/logging.c:211:9: call_function: calling ‘pg_log_generic_v’ from ‘pg_log_generic’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def845]
postgresql-18beta1/postgresql-17.2/src/common/logging.c:245:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/common/logging.c:205:1: enter_function: entry to ‘pg_log_generic’
postgresql-18beta1/postgresql-17.2/src/common/logging.c:210:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/common/logging.c:211:9: call_function: calling ‘pg_log_generic_v’ from ‘pg_log_generic’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def846]
postgresql-18beta1/postgresql-17.2/src/common/logging.c:252:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/common/logging.c:205:1: enter_function: entry to ‘pg_log_generic’
postgresql-18beta1/postgresql-17.2/src/common/logging.c:210:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/common/logging.c:211:9: call_function: calling ‘pg_log_generic_v’ from ‘pg_log_generic’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def847]
postgresql-18beta1/postgresql-17.2/src/common/logging.c:254:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/common/logging.c:205:1: enter_function: entry to ‘pg_log_generic’
postgresql-18beta1/postgresql-17.2/src/common/logging.c:210:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/common/logging.c:211:9: call_function: calling ‘pg_log_generic_v’ from ‘pg_log_generic’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def848]
postgresql-18beta1/postgresql-17.2/src/common/logging.c:257:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/common/logging.c:205:1: enter_function: entry to ‘pg_log_generic’
postgresql-18beta1/postgresql-17.2/src/common/logging.c:210:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/common/logging.c:211:9: call_function: calling ‘pg_log_generic_v’ from ‘pg_log_generic’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def849]
postgresql-18beta1/postgresql-17.2/src/common/logging.c:311:24: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/common/logging.c:232:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/logging.c:239:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/logging.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/logging.c:247:15: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/logging.c:249:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/logging.c:266:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/logging.c:310:9: acquire_resource: ‘va_copy’ called here
postgresql-18beta1/postgresql-17.2/src/common/logging.c:311:24: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/logging.c:311:24: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def850]
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:80:15: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def851]
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:83:27: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def852]
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:87:13: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def853]
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:88:17: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def854]
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:89:17: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def855]
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:91:27: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def856]
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:92:17: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def857]
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:97:9: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def858]
postgresql-18beta1/postgresql-17.2/src/common/percentrepl.c:106:57: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/common/percentrepl.c:65:38: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/percentrepl.c:67:20: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/percentrepl.c:75:33: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/percentrepl.c:95:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/percentrepl.c:97:33: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/common/percentrepl.c:98:64: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/percentrepl.c:100:53: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/percentrepl.c:104:52: branch_true: following ‘true’ branch (when ‘val’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/percentrepl.c:106:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/percentrepl.c:106:57: throw: if ‘appendStringInfoString’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/percentrepl.c:106:57: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def859]
postgresql-18beta1/postgresql-17.2/src/common/pgfnames.c:52:31: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
postgresql-18beta1/postgresql-17.2/src/common/pgfnames.c:45:15: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/pgfnames.c:46:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/pgfnames.c:52:31: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/pgfnames.c:52:31: throw: if ‘palloc’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/pgfnames.c:52:31: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def860]
postgresql-18beta1/postgresql-17.2/src/common/pgfnames.c:54:35: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
postgresql-18beta1/postgresql-17.2/src/common/pgfnames.c:45:15: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/pgfnames.c:46:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/pgfnames.c:52:31: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/pgfnames.c:54:35: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/pgfnames.c:54:35: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def861]
postgresql-18beta1/postgresql-17.2/src/common/psprintf.c:110:20: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/common/psprintf.c:46:1: enter_function: entry to ‘psprintf’
postgresql-18beta1/postgresql-17.2/src/common/psprintf.c:65:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/common/psprintf.c:66:26: call_function: calling ‘pvsnprintf’ from ‘psprintf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def862]
postgresql-18beta1/postgresql-17.2/src/common/rmtree.c:67:30: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
postgresql-18beta1/postgresql-17.2/src/common/rmtree.c:60:15: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/rmtree.c:61:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/rmtree.c:67:30: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/rmtree.c:67:30: throw: if ‘palloc’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/rmtree.c:67:30: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def863]
postgresql-18beta1/postgresql-17.2/src/common/rmtree.c:69:33: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
postgresql-18beta1/postgresql-17.2/src/common/rmtree.c:60:15: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/rmtree.c:61:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/rmtree.c:67:30: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/rmtree.c:69:33: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/rmtree.c:69:33: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def864]
postgresql-18beta1/postgresql-17.2/src/common/saslprep.c:1096:22: warning[-Wanalyzer-malloc-leak]: leak of ‘input_chars’
postgresql-18beta1/postgresql-17.2/src/common/saslprep.c:1069:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/saslprep.c:1082:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/saslprep.c:1083:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/saslprep.c:1085:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/saslprep.c:1085:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/saslprep.c:1088:23: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/saslprep.c:1088:23: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/saslprep.c:1089:12: branch_false: following ‘false’ branch (when ‘input_chars’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/saslprep.c:1089:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/saslprep.c:1093:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/saslprep.c:1095:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/saslprep.c:1096:22: throw: if ‘pg_utf_mblen_private’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/saslprep.c:1096:22: danger: ‘input_chars’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def865]
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:142:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘termin’
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:95:18: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:139:12: branch_true: following ‘true’ branch (when ‘prompt’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:141:23: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:142:17: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:142:17: danger: ‘termin’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def866]
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:142:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:139:12: branch_true: following ‘true’ branch (when ‘prompt’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:141:23: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:142:17: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:142:17: danger: ‘termout’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def867]
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:142:17: warning[-Wanalyzer-malloc-leak]: leak of ‘termin’
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:95:18: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:139:12: branch_true: following ‘true’ branch (when ‘prompt’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:141:23: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:142:17: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:142:17: danger: ‘termin’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def868]
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:142:17: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:139:12: branch_true: following ‘true’ branch (when ‘prompt’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:141:23: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:142:17: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:142:17: danger: ‘termout’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def869]
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:145:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘termin’
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:95:18: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:145:18: throw: if ‘pg_get_line’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:145:18: danger: ‘termin’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def870]
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:145:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:145:18: throw: if ‘pg_get_line’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:145:18: danger: ‘termout’ leaks here; was opened at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def871]
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:145:18: warning[-Wanalyzer-malloc-leak]: leak of ‘termin’
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:95:18: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:145:18: throw: if ‘pg_get_line’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:145:18: danger: ‘termin’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def872]
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:145:18: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:145:18: throw: if ‘pg_get_line’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:145:18: danger: ‘termout’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def873]
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:149:26: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:148:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:149:26: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:149:26: throw: if ‘pg_strdup’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:149:26: danger: ‘termout’ leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def874]
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:149:26: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:148:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:149:26: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:149:26: throw: if ‘pg_strdup’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:149:26: danger: ‘termout’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def875]
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:152:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:152:16: throw: if ‘pg_strip_crlf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:152:16: danger: ‘termout’ leaks here; was opened at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def876]
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:152:16: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:152:16: throw: if ‘pg_strip_crlf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:152:16: danger: ‘termout’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def877]
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:160:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:154:12: branch_false: following ‘false’ branch (when ‘echo == 0’)...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:158:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:160:17: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:160:17: danger: ‘termout’ leaks here; was opened at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def878]
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:160:17: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:154:12: branch_false: following ‘false’ branch (when ‘echo == 0’)...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:158:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:160:17: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:160:17: danger: ‘termout’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def879]
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:171:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:154:12: branch_true: following ‘true’ branch (when ‘echo != 0’)...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:167:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:167:17: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:171:17: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:171:17: danger: ‘termout’ leaks here; was opened at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def880]
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:171:17: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:154:12: branch_true: following ‘true’ branch (when ‘echo != 0’)...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:167:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:167:17: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:171:17: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:171:17: danger: ‘termout’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def881]
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:180:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:174:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:180:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:180:16: danger: ‘termout’ leaks here; was opened at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def882]
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:180:16: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:174:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:180:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/sprompt.c:180:16: danger: ‘termout’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def883]
postgresql-18beta1/postgresql-17.2/src/common/string.c:112:25: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
postgresql-18beta1/postgresql-17.2/src/common/string.c:97:15: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/common/string.c:102:12: branch_false: following ‘false’ branch (when ‘dst’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/common/string.c:102:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/common/string.c:105:23: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/string.c:109:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/string.c:109:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/common/string.c:112:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/common/string.c:112:25: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/common/string.c:112:25: danger: ‘dst’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def884]
postgresql-18beta1/postgresql-17.2/src/common/stringinfo.c:155:20: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/common/stringinfo.c:97:1: enter_function: entry to ‘appendStringInfo’
postgresql-18beta1/postgresql-17.2/src/common/stringinfo.c:108:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/common/stringinfo.c:109:26: call_function: calling ‘appendStringInfoVA’ from ‘appendStringInfo’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def885]
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:909:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘width_header’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3549:1: enter_function: entry to ‘printQuery’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3557:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3561:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3560:9: call_function: calling ‘printTableInit’ from ‘printQuery’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3560:9: return_function: returning to ‘printQuery’ from ‘printTableInit’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3567:21: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3567:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3601:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3609:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3609:9: call_function: calling ‘printTable’ from ‘printQuery’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def886]
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:941:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3549:1: enter_function: entry to ‘printQuery’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3557:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3561:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3560:9: call_function: calling ‘printTableInit’ from ‘printQuery’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3560:9: return_function: returning to ‘printQuery’ from ‘printTableInit’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3567:21: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3567:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3601:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3609:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3609:9: call_function: calling ‘printTable’ from ‘printQuery’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def887]
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:945:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3549:1: enter_function: entry to ‘printQuery’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3557:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3561:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3560:9: call_function: calling ‘printTableInit’ from ‘printQuery’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3560:9: return_function: returning to ‘printQuery’ from ‘printTableInit’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3567:21: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3567:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3601:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3609:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3609:9: call_function: calling ‘printTable’ from ‘printQuery’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def888]
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:948:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3549:1: enter_function: entry to ‘printQuery’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3557:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3561:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3560:9: call_function: calling ‘printTableInit’ from ‘printQuery’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3560:9: return_function: returning to ‘printQuery’ from ‘printTableInit’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3567:21: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3567:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3601:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3609:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3609:9: call_function: calling ‘printTable’ from ‘printQuery’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def889]
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:1040:17: warning[-Wanalyzer-null-argument]: use of NULL ‘bytes_output’ where non-null expected
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3549:1: enter_function: entry to ‘printQuery’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3557:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3561:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3560:9: call_function: calling ‘printTableInit’ from ‘printQuery’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3560:9: return_function: returning to ‘printQuery’ from ‘printTableInit’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3567:21: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3567:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3601:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3609:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3609:9: call_function: calling ‘printTable’ from ‘printQuery’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def890]
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:1410:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3549:1: enter_function: entry to ‘printQuery’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3557:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3561:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3560:9: call_function: calling ‘printTableInit’ from ‘printQuery’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3560:9: return_function: returning to ‘printQuery’ from ‘printTableInit’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3567:21: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3567:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3601:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3609:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3609:9: call_function: calling ‘printTable’ from ‘printQuery’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def891]
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3432:1: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3549:1: enter_function: entry to ‘printQuery’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3557:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3561:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3560:9: call_function: calling ‘printTableInit’ from ‘printQuery’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3560:9: return_function: returning to ‘printQuery’ from ‘printTableInit’
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3567:21: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3567:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3601:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3609:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/print.c:3609:9: call_function: calling ‘printTable’ from ‘printQuery’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def892]
postgresql-18beta1/postgresql-17.2/src/fe_utils/psqlscan.c:4584:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/src/fe_utils/psqlscan.l:1127:8: enter_function: entry to ‘psql_scan’
postgresql-18beta1/postgresql-17.2/src/fe_utils/psqlscan.l:1142:10: call_function: calling ‘psql_yy_switch_to_buffer’ from ‘psql_scan’
postgresql-18beta1/postgresql-17.2/src/fe_utils/psqlscan.l:1142:10: return_function: returning to ‘psql_scan’ from ‘psql_yy_switch_to_buffer’
postgresql-18beta1/postgresql-17.2/src/fe_utils/psqlscan.l:1147:14: call_function: calling ‘psql_yylex’ from ‘psql_scan’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def893]
postgresql-18beta1/postgresql-17.2/src/fe_utils/psqlscan.c:4627:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql-18beta1/postgresql-17.2/src/fe_utils/psqlscan.l:1127:8: enter_function: entry to ‘psql_scan’
postgresql-18beta1/postgresql-17.2/src/fe_utils/psqlscan.l:1142:10: call_function: calling ‘psql_yy_switch_to_buffer’ from ‘psql_scan’
postgresql-18beta1/postgresql-17.2/src/fe_utils/psqlscan.l:1142:10: return_function: returning to ‘psql_scan’ from ‘psql_yy_switch_to_buffer’
postgresql-18beta1/postgresql-17.2/src/fe_utils/psqlscan.l:1147:14: call_function: calling ‘psql_yylex’ from ‘psql_scan’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def894]
postgresql-18beta1/postgresql-17.2/src/fe_utils/psqlscan.c:4793:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/src/fe_utils/psqlscan.c:4779:17: enter_function: entry to ‘psql_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/src/fe_utils/psqlscan.c:4789:24: call_function: inlined call to ‘psql_yyalloc’ from ‘psql_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/src/fe_utils/psqlscan.c:4790:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/psqlscan.c:4793:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/psqlscan.c:4803:2: call_function: calling ‘psql_yy_switch_to_buffer’ from ‘psql_yy_scan_buffer’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def895]
postgresql-18beta1/postgresql-17.2/src/fe_utils/recovery_gen.c:142:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename, <unknown>)’
postgresql-18beta1/postgresql-17.2/src/fe_utils/recovery_gen.c:138:14: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/fe_utils/recovery_gen.c:139:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/recovery_gen.c:142:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/recovery_gen.c:142:13: danger: ‘fopen(&filename, <unknown>)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def896]
postgresql-18beta1/postgresql-17.2/src/fe_utils/recovery_gen.c:142:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&filename, <unknown>)’
postgresql-18beta1/postgresql-17.2/src/fe_utils/recovery_gen.c:138:14: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/fe_utils/recovery_gen.c:139:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/fe_utils/recovery_gen.c:142:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/fe_utils/recovery_gen.c:142:13: danger: ‘fopen(&filename, <unknown>)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def897]
postgresql-18beta1/postgresql-17.2/src/include/access/tableam.h:1057:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sscan’
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam_handler.c:686:1: enter_function: entry to ‘heapam_relation_copy_for_cluster’
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam_handler.c:730:12: branch_false: following ‘false’ branch (when ‘use_sort == 0’)...
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam_handler.c:742:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam_handler.c:742:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam_handler.c:744:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/heap/heapam_handler.c:803:30: call_function: calling ‘table_scan_getnextslot’ from ‘heapam_relation_copy_for_cluster’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def898]
postgresql-18beta1/postgresql-17.2/src/include/access/tupmacs.h:28:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_tuple.c:553:1: enter_function: entry to ‘brin_deform_tuple’
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_tuple.c:565:16: branch_true: following ‘true’ branch (when ‘dMemtuple’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_tuple.c:565:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_tuple.c:565:28: call_function: calling ‘brin_memtuple_initialize’ from ‘brin_deform_tuple’
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_tuple.c:565:28: return_function: returning to ‘brin_deform_tuple’ from ‘brin_memtuple_initialize’
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_tuple.c:568:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_tuple.c:572:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_tuple.c:583:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_tuple.c:587:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/brin/brin_tuple.c:587:9: call_function: calling ‘brin_deconstruct_tuple’ from ‘brin_deform_tuple’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def899]
postgresql-18beta1/postgresql-17.2/src/include/lib/radixtree.h:1121:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘slot’
postgresql-18beta1/postgresql-17.2/src/backend/access/common/tidstore.c:432:1: enter_function: entry to ‘TidStoreIsMember’
postgresql-18beta1/postgresql-17.2/src/backend/access/common/tidstore.c:440:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/common/tidstore.c:443:24: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/common/tidstore.c:443:24: call_function: calling ‘local_ts_find’ from ‘TidStoreIsMember’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def900]
postgresql-18beta1/postgresql-17.2/src/include/libpq/pqformat.h:146:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1922:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1942:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:22: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1949:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1957:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1959:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1962:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/libpq/auth.c:1969:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def901]
postgresql-18beta1/postgresql-17.2/src/include/nodes/pg_list.h:281:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘elemops’
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partbounds.c:3868:1: enter_function: entry to ‘make_partition_op_expr’
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partbounds.c:3876:19: call_function: calling ‘get_partition_operator’ from ‘make_partition_op_expr’
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partbounds.c:3876:19: return_function: returning to ‘make_partition_op_expr’ from ‘get_partition_operator’
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partbounds.c:3951:50: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/partitioning/partbounds.c:3951:100: call_function: inlined call to ‘list_nth_cell’ from ‘make_partition_op_expr’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def902]
postgresql-18beta1/postgresql-17.2/src/include/nodes/pg_list.h:281:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘expanded_groups’
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_agg.c:1803:1: enter_function: entry to ‘expand_grouping_sets’
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_agg.c:1810:12: branch_false: following ‘false’ branch (when ‘groupingSets’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_agg.c:1810:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_agg.c:1813:9: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/parser/parse_agg.c:1836:9: call_function: inlined call to ‘list_nth_cell’ from ‘expand_grouping_sets’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def903]
postgresql-18beta1/postgresql-17.2/src/include/nodes/pg_list.h:281:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_ops’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/path/indxpath.c:2923:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/path/indxpath.c:2928:26: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/path/indxpath.c:2928:25: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/path/indxpath.c:2940:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/path/indxpath.c:2947:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/path/indxpath.c:2947:25: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/path/indxpath.c:2965:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/path/indxpath.c:2965:20: branch_false: following ‘false’ branch (when ‘matching_cols <= 1’)...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/path/indxpath.c:2985:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/path/indxpath.c:2985:25: release_memory: ‘new_ops’ is NULL
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/path/indxpath.c:2987:44: call_function: inlined call to ‘list_nth_cell’ from ‘expand_indexqual_rowcompare’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def904]
postgresql-18beta1/postgresql-17.2/src/include/nodes/pg_list.h:281:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sortclause’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:3159:1: enter_function: entry to ‘reorder_grouping_sets’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:3165:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:3171:50: call_function: inlined call to ‘list_length’ from ‘reorder_grouping_sets’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:3171:24: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:3171:24: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:3165:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:3171:24: call_function: inlined call to ‘list_length’ from ‘reorder_grouping_sets’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:3171:50: call_function: inlined call to ‘list_length’ from ‘reorder_grouping_sets’
postgresql-18beta1/postgresql-17.2/src/backend/optimizer/plan/planner.c:3171:24: branch_true: following ‘true’ branch...
Error: GCC_ANALYZER_WARNING (CWE-476): [#def905]
postgresql-18beta1/postgresql-17.2/src/include/storage/block.h:105:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtdedup.c:648:1: enter_function: entry to ‘_bt_bottomupdel_finish_pending’
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtdedup.c:657:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtdedup.c:659:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtdedup.c:665:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtdedup.c:690:57: call_function: inlined call to ‘BTreeTupleGetNPosting’ from ‘_bt_bottomupdel_finish_pending’
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtdedup.c:696:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtdedup.c:709:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtdedup.c:709:42: call_function: calling ‘BTreeTupleGetHeapTID’ from ‘_bt_bottomupdel_finish_pending’
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtdedup.c:709:42: return_function: returning to ‘_bt_bottomupdel_finish_pending’ from ‘BTreeTupleGetHeapTID’
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtdedup.c:712:48: call_function: inlined call to ‘ItemPointerGetBlockNumber’ from ‘_bt_bottomupdel_finish_pending’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def906]
postgresql-18beta1/postgresql-17.2/src/include/storage/bufpage.h:340:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘childpage’
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginbtree.c:816:1: enter_function: entry to ‘ginInsertValue’
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginbtree.c:822:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginbtree.c:823:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/gin/ginbtree.c:823:17: call_function: calling ‘ginFinishOldSplit’ from ‘ginInsertValue’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def907]
postgresql-18beta1/postgresql-17.2/src/include/storage/itemptr.h:116:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtutils.c:5073:1: enter_function: entry to ‘_bt_check_third_page’
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtutils.c:5082:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtutils.c:5090:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtutils.c:5098:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtutils.c:5102:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtutils.c:5102:9: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtutils.c:5102:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtutils.c:5102:9: call_function: calling ‘BTreeTupleGetHeapTID’ from ‘_bt_check_third_page’
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtutils.c:5102:9: return_function: returning to ‘_bt_check_third_page’ from ‘BTreeTupleGetHeapTID’
postgresql-18beta1/postgresql-17.2/src/backend/access/nbtree/nbtutils.c:5102:9: call_function: inlined call to ‘ItemPointerGetOffsetNumber’ from ‘_bt_check_third_page’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def908]
postgresql-18beta1/postgresql-17.2/src/include/storage/itemptr.h:116:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nexttid’
postgresql-18beta1/postgresql-17.2/contrib/amcheck/verify_nbtree.c:1049:1: enter_function: entry to ‘bt_entry_unique_check’
postgresql-18beta1/postgresql-17.2/contrib/amcheck/verify_nbtree.c:1062:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/contrib/amcheck/verify_nbtree.c:1101:23: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/contrib/amcheck/verify_nbtree.c:1101:23: call_function: calling ‘BTreeTupleGetHeapTID’ from ‘bt_entry_unique_check’
postgresql-18beta1/postgresql-17.2/contrib/amcheck/verify_nbtree.c:1101:23: return_function: returning to ‘bt_entry_unique_check’ from ‘BTreeTupleGetHeapTID’
postgresql-18beta1/postgresql-17.2/contrib/amcheck/verify_nbtree.c:1102:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/contrib/amcheck/verify_nbtree.c:1105:48: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/contrib/amcheck/verify_nbtree.c:1107:33: call_function: calling ‘bt_report_duplicate’ from ‘bt_entry_unique_check’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def909]
postgresql-18beta1/postgresql-17.2/src/include/utils/expandedrecord.h:220:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘newerh’
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_exec.c:7427:1: enter_function: entry to ‘exec_move_row_from_datum’
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_exec.c:7432:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_exec.c:7440:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_exec.c:7543:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_exec.c:7543:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_exec.c:7554:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_exec.c:7555:17: call_function: calling ‘exec_move_row_from_fields’ from ‘exec_move_row_from_datum’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def910]
postgresql-18beta1/postgresql-17.2/src/include/utils/expandedrecord.h:220:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘srcerh’
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_exec.c:7427:1: enter_function: entry to ‘exec_move_row_from_datum’
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_exec.c:7432:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_exec.c:7440:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_exec.c:7543:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_exec.c:7543:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_exec.c:7554:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_exec.c:7555:17: call_function: calling ‘exec_move_row_from_fields’ from ‘exec_move_row_from_datum’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def911]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/compatlib/informix.c:182:43: warning[-Wanalyzer-malloc-leak]: leak of ‘ecpg_strndup(cp, (long unsigned int)len)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/compatlib/informix.c:198:1: enter_function: entry to ‘deccvasc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/compatlib/informix.c:205:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/compatlib/informix.c:208:15: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/compatlib/informix.c:208:15: call_function: calling ‘ecpg_strndup’ from ‘deccvasc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/compatlib/informix.c:208:15: return_function: returning to ‘deccvasc’ from ‘ecpg_strndup’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/compatlib/informix.c:210:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/compatlib/informix.c:214:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/compatlib/informix.c:215:26: throw: if ‘PGTYPESnumeric_from_asc’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/compatlib/informix.c:182:43: danger: ‘ecpg_strndup(cp, (long unsigned int)len)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def912]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/connect.c:161:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/connect.c:153:1: enter_function: entry to ‘ECPGsetcommit’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/connect.c:155:34: call_function: calling ‘ecpg_get_connection’ from ‘ECPGsetcommit’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/connect.c:155:34: return_function: returning to ‘ECPGsetcommit’ from ‘ecpg_get_connection’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/connect.c:158:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/connect.c:161:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/connect.c:161:9: danger: dereference of NULL ‘ecpg_get_connection(connection_name)’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def913]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:42:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def914]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:143:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:332:38: call_function: calling ‘get_int_item’ from ‘ECPGget_desc’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def915]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:219:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:322:38: call_function: calling ‘get_char_item’ from ‘ECPGget_desc’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def916]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:252:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:252:9: throw: if ‘ecpg_init_sqlca’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:252:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def917]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: throw: if ‘PQntuples’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: danger: missing call to ‘va_end’ to match ‘va_start’ at [(4)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def918]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:34: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch (when ‘index > 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:34: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:34: throw: if ‘PQnfields’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:34: danger: missing call to ‘va_end’ to match ‘va_start’ at [(4)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def919]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:264:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:264:17: throw: if ‘ecpg_raise’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:264:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(4)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def920]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:269:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:269:9: throw: if ‘ecpg_log’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:269:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(4)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def921]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:322:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:322:38: throw: if ‘PQfname’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:322:38: danger: missing call to ‘va_end’ to match ‘va_start’ at [(4)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def922]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:328:33: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:322:38: call_function: calling ‘get_char_item’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:322:38: return_function: returning to ‘ECPGget_desc’ from ‘get_char_item’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:322:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:328:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:328:33: throw: if ‘ecpg_log’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:328:33: danger: missing call to ‘va_end’ to match ‘va_start’ at [(4)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def923]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:350:74: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:350:74: throw: if ‘PQfmod’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:350:74: danger: missing call to ‘va_end’ to match ‘va_start’ at [(4)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def924]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:360:73: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:360:73: throw: if ‘PQfmod’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:360:73: danger: missing call to ‘va_end’ to match ‘va_start’ at [(4)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def925]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:370:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:370:38: throw: if ‘PQfsize’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:370:38: danger: missing call to ‘va_end’ to match ‘va_start’ at [(4)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def926]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:380:73: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:380:73: throw: if ‘PQfmod’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:380:73: danger: missing call to ‘va_end’ to match ‘va_start’ at [(4)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def927]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:390:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:390:38: throw: if ‘PQftype’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:390:38: danger: missing call to ‘va_end’ to match ‘va_start’ at [(4)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def928]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:400:73: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:400:73: throw: if ‘PQftype’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:400:73: danger: missing call to ‘va_end’ to match ‘va_start’ at [(4)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def929]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:410:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:410:38: throw: if ‘PQntuples’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:410:38: danger: missing call to ‘va_end’ to match ‘va_start’ at [(4)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def930]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:429:41: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:422:33: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:427:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:427:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:429:41: throw: if ‘ecpg_log’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:429:41: danger: missing call to ‘va_end’ to match ‘va_start’ at [(4)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def931]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:431:41: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:422:33: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:427:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:427:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:431:41: throw: if ‘ecpg_raise’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:431:41: danger: missing call to ‘va_end’ to match ‘va_start’ at [(4)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def932]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:438:68: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:422:33: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:427:36: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:436:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:438:68: throw: if ‘ecpg_auto_alloc’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:438:68: danger: missing call to ‘va_end’ to match ‘va_start’ at [(4)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def933]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:462:33: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:462:33: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:462:33: danger: missing call to ‘va_end’ to match ‘va_start’ at [(4)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def934]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:463:33: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:463:33: throw: if ‘ecpg_raise’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:463:33: danger: missing call to ‘va_end’ to match ‘va_start’ at [(4)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def935]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:720:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:605:1: enter_function: entry to ‘ECPGset_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:612:16: call_function: calling ‘ecpg_find_desc’ from ‘ECPGset_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:612:16: return_function: returning to ‘ECPGset_desc’ from ‘ecpg_find_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:613:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:616:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:634:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:637:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:637:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:646:20: branch_true: following ‘true’ branch (when ‘itemtype == 16’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:724:1: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:720:9: throw: if ‘ecpg_free’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:720:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(11)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def936]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:842:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def937]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:912:47: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:912:47: throw: if ‘PQdescribePrepared’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:912:47: danger: missing call to ‘va_end’ to match ‘va_start’ at [(7)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def938]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:913:46: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:913:46: throw: if ‘ecpg_check_PQresult’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:913:46: danger: missing call to ‘va_end’ to match ‘va_start’ at [(7)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def939]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:916:41: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:916:41: throw: if ‘PQclear’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:916:41: danger: missing call to ‘va_end’ to match ‘va_start’ at [(7)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def940]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:929:55: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:929:55: throw: if ‘PQdescribePrepared’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:929:55: danger: missing call to ‘va_end’ to match ‘va_start’ at [(7)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def941]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:930:54: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:930:54: throw: if ‘ecpg_check_PQresult’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:930:54: danger: missing call to ‘va_end’ to match ‘va_start’ at [(7)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def942]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:933:57: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:933:57: throw: if ‘ecpg_build_compat_sqlda’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:933:57: danger: missing call to ‘va_end’ to match ‘va_start’ at [(7)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def943]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:950:49: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:934:52: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:950:49: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:950:49: throw: if ‘PQclear’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:950:49: danger: missing call to ‘va_end’ to match ‘va_start’ at [(7)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def944]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:957:55: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:957:55: throw: if ‘PQdescribePrepared’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:957:55: danger: missing call to ‘va_end’ to match ‘va_start’ at [(7)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def945]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:958:54: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:958:54: throw: if ‘ecpg_check_PQresult’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:958:54: danger: missing call to ‘va_end’ to match ‘va_start’ at [(7)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def946]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:961:57: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:961:57: throw: if ‘ecpg_build_native_sqlda’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:961:57: danger: missing call to ‘va_end’ to match ‘va_start’ at [(7)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def947]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:978:49: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:962:52: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:978:49: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:978:49: throw: if ‘PQclear’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/descriptor.c:978:49: danger: missing call to ‘va_end’ to match ‘va_start’ at [(7)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def948]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:1960:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:2277:1: enter_function: entry to ‘ECPGdo’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:2282:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:2283:15: call_function: calling ‘ecpg_do’ from ‘ECPGdo’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def949]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:1964:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:2277:1: enter_function: entry to ‘ECPGdo’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:2282:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:2283:15: call_function: calling ‘ecpg_do’ from ‘ECPGdo’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def950]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:1966:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:2277:1: enter_function: entry to ‘ECPGdo’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:2282:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:2283:15: call_function: calling ‘ecpg_do’ from ‘ECPGdo’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def951]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:1968:14: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:2277:1: enter_function: entry to ‘ECPGdo’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:2282:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:2283:15: call_function: calling ‘ecpg_do’ from ‘ECPGdo’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def952]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:1971:37: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:2277:1: enter_function: entry to ‘ECPGdo’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:2282:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/execute.c:2283:15: call_function: calling ‘ecpg_do’ from ‘ECPGdo’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def953]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/memory.c:21:36: warning[-Wanalyzer-malloc-leak]: leak of ‘ecpg_alloc(16, lineno)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/memory.c:117:1: enter_function: entry to ‘ecpg_add_mem’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/memory.c:119:51: call_function: calling ‘ecpg_alloc’ from ‘ecpg_add_mem’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/memory.c:119:51: return_function: returning to ‘ecpg_add_mem’ from ‘ecpg_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/memory.c:121:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/memory.c:124:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/memory.c:125:20: call_function: calling ‘get_auto_allocs’ from ‘ecpg_add_mem’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def954]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/memory.c:21:36: warning[-Wanalyzer-malloc-leak]: leak of ‘ecpg_alloc(size, lineno)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/memory.c:101:1: enter_function: entry to ‘ecpg_auto_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/memory.c:103:36: call_function: calling ‘ecpg_alloc’ from ‘ecpg_auto_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/memory.c:103:36: return_function: returning to ‘ecpg_auto_alloc’ from ‘ecpg_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/memory.c:105:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/memory.c:108:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/memory.c:108:14: call_function: calling ‘ecpg_add_mem’ from ‘ecpg_auto_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def955]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:114:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ECPGget_sqlca()’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:232:1: enter_function: entry to ‘ecpg_log’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:235:33: call_function: calling ‘ECPGget_sqlca’ from ‘ecpg_log’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:235:33: return_function: returning to ‘ecpg_log’ from ‘ECPGget_sqlca’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:114:17: danger: ‘ECPGget_sqlca()’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def956]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:261:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fmt’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:232:1: enter_function: entry to ‘ecpg_log’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:235:33: call_function: calling ‘ECPGget_sqlca’ from ‘ecpg_log’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:235:33: return_function: returning to ‘ecpg_log’ from ‘ECPGget_sqlca’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:245:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:249:23: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:256:24: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:257:12: branch_false: following ‘false’ branch (when ‘fmt’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:260:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:260:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:261:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:261:17: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:261:17: danger: ‘fmt’ leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def957]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:263:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fmt’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:232:1: enter_function: entry to ‘ecpg_log’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:235:33: call_function: calling ‘ECPGget_sqlca’ from ‘ecpg_log’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:235:33: return_function: returning to ‘ecpg_log’ from ‘ECPGget_sqlca’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:245:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:249:23: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:256:24: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:257:12: branch_false: following ‘false’ branch (when ‘fmt’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:260:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:260:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:263:58: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:263:17: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:263:17: danger: ‘fmt’ leaks here; was allocated at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def958]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:271:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:232:1: enter_function: entry to ‘ecpg_log’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:235:33: call_function: calling ‘ECPGget_sqlca’ from ‘ecpg_log’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:235:33: return_function: returning to ‘ecpg_log’ from ‘ECPGget_sqlca’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:245:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:249:23: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:257:12: branch_false: following ‘false’ branch (when ‘fmt’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:260:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:268:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:270:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:270:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:271:17: throw: if ‘pg_vfprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/ecpglib/misc.c:271:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(13)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def959]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/pgtypeslib/common.c:12:36: warning[-Wanalyzer-malloc-leak]: leak of ‘pgtypes_alloc(40)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/pgtypeslib/common.c:30:1: enter_function: entry to ‘pgtypes_fmt_replace’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/pgtypeslib/common.c:77:49: call_function: calling ‘pgtypes_alloc’ from ‘pgtypes_fmt_replace’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/pgtypeslib/common.c:77:49: return_function: returning to ‘pgtypes_fmt_replace’ from ‘pgtypes_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/pgtypeslib/common.c:79:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/pgtypeslib/common.c:81:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/pgtypeslib/common.c:84:53: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/pgtypeslib/common.c:12:36: danger: ‘pgtypes_alloc(40)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: COMPILER_WARNING (CWE-704): [#def960]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/pgtypeslib/datetime.c: scope_hint: In function ‘PGTYPESdate_defmt_asc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/pgtypeslib/datetime.c:357:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def961]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/pgtypeslib/datetime.c:357:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def962]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/pgtypeslib/datetime.c:358:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def963]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/pgtypeslib/datetime.c:358:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def964]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/pgtypeslib/datetime.c:359:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def965]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/pgtypeslib/datetime.c:359:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-457): [#def966]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/pgtypeslib/timestamp.c:759:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘replace_val’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/pgtypeslib/timestamp.c:782:1: enter_function: entry to ‘PGTYPEStimestamp_fmt_asc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/pgtypeslib/timestamp.c:793:16: call_function: calling ‘dttofmtasc_replace’ from ‘PGTYPEStimestamp_fmt_asc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def967]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4602:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4589:21: enter_function: entry to ‘base_yy_create_buffer’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4593:24: call_function: inlined call to ‘base_yyalloc’ from ‘base_yy_create_buffer’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4594:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4597:2: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4602:54: danger: ‘malloc(64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def968]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4643: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def969]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4644: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def970]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4805:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4791:17: enter_function: entry to ‘base_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4801:24: call_function: inlined call to ‘base_yyalloc’ from ‘base_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4802:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4805:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4815:2: call_function: calling ‘base_yy_switch_to_buffer’ from ‘base_yy_scan_buffer’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def971]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4831:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1772:1: enter_function: entry to ‘isdefine’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1777:29: branch_true: following ‘true’ branch (when ‘ptr’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1780:43: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1789:39: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1789:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1803:25: call_function: calling ‘base_yy_scan_string’ from ‘isdefine’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def972]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4855:26: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1816:1: enter_function: entry to ‘isinformixdefine’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1833:31: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1833:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1839:17: call_function: calling ‘base_yy_scan_string’ from ‘isinformixdefine’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def973]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4857:26: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4841:17: enter_function: entry to ‘base_yy_scan_bytes’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4850:24: call_function: inlined call to ‘base_yyalloc’ from ‘base_yy_scan_bytes’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4851:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4851:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.c:4859:6: call_function: calling ‘base_yy_scan_buffer’ from ‘base_yy_scan_bytes’
Error: CPPCHECK_WARNING (CWE-401): [#def974]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1607: error[memleakOnRealloc]: Common realloc mistake: 'literalbuf' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def975]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1622: error[memleakOnRealloc]: Common realloc mistake: 'literalbuf' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-401): [#def976]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1803:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<return-value>’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1772:1: enter_function: entry to ‘isdefine’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1777:29: branch_true: following ‘true’ branch (when ‘ptr’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1780:43: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1789:39: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1789:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1803:25: call_function: calling ‘base_yy_scan_string’ from ‘isdefine’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/pgc.l:1803:25: danger: ‘<return-value>’ leaks here; was allocated at [(23)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def977]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.c:39445:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.c:39400:6: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.c:39406:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.c:39432:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.c:39434:7: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.c:39443:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.c:39443:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.c:39445:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def978]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.c:39576:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.c:39400:6: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.c:39469:6: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.c:39469:6: branch_false: following ‘false’ branch (when ‘yystate != 3’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.c:39472:3: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.c:39484:6: branch_true: following ‘true’ branch (when ‘yyn == -6472’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.c:39485:5: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.c:39556:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.c:39558:3: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.c:39576:3: danger: use of uninitialized value ‘*<unknown>’ here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def979]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:79:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:116:1: enter_function: entry to ‘mmfatal’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:120:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:121:9: call_function: calling ‘vmmerror’ from ‘mmfatal’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def980]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:84:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:106:1: enter_function: entry to ‘mmerror’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:110:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:111:9: call_function: calling ‘vmmerror’ from ‘mmerror’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def981]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:87:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:116:1: enter_function: entry to ‘mmfatal’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:120:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:121:9: call_function: calling ‘vmmerror’ from ‘mmfatal’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def982]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:91:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:116:1: enter_function: entry to ‘mmfatal’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:120:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:121:9: call_function: calling ‘vmmerror’ from ‘mmfatal’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def983]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:141:35: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:153:1: enter_function: entry to ‘cat_str’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:159:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:164:21: branch_true: following ‘true’ branch (when ‘i < count’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:165:27: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/preproc.y:165:27: call_function: calling ‘cat2_str’ from ‘cat_str’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def984]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:18:17: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_alloc(strlen(ind_name) + <unknown> + 3)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:581:1: enter_function: entry to ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:599:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:601:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:601:17: branch_true: following ‘true’ branch (when ‘ind_type’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:603:21: call_function: inlined call to ‘atoi’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:603:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:604:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:612:35: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: following ‘true’ branch (when ‘ind_p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: call_function: calling ‘ECPGdump_a_type’ from ‘ECPGdump_a_struct’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def985]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:30:17: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_strdup("-1")’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:581:1: enter_function: entry to ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:599:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:601:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:601:17: branch_true: following ‘true’ branch (when ‘ind_type’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:603:21: call_function: inlined call to ‘atoi’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:603:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:604:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:612:35: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: following ‘true’ branch (when ‘ind_p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: call_function: calling ‘ECPGdump_a_type’ from ‘ECPGdump_a_struct’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def986]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:30:17: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_strdup("1")’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:581:1: enter_function: entry to ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:599:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:601:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:601:17: branch_true: following ‘true’ branch (when ‘ind_type’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:603:21: call_function: inlined call to ‘atoi’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:603:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:604:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:612:35: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: following ‘true’ branch (when ‘ind_p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: call_function: calling ‘ECPGdump_a_type’ from ‘ECPGdump_a_struct’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def987]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:355:33: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_strdup("-1")’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:581:1: enter_function: entry to ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:599:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:601:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:601:17: branch_true: following ‘true’ branch (when ‘ind_type’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:603:21: call_function: inlined call to ‘atoi’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:603:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:604:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:612:35: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: following ‘true’ branch (when ‘ind_p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: call_function: calling ‘ECPGdump_a_type’ from ‘ECPGdump_a_struct’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def988]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:355:33: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_strdup("1")’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:581:1: enter_function: entry to ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:599:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:601:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:601:17: branch_true: following ‘true’ branch (when ‘ind_type’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:603:21: call_function: inlined call to ‘atoi’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:603:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:604:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:612:35: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: following ‘true’ branch (when ‘ind_p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: call_function: calling ‘ECPGdump_a_type’ from ‘ECPGdump_a_struct’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def989]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:376:33: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_strdup("-1")’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:581:1: enter_function: entry to ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:599:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:601:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:601:17: branch_true: following ‘true’ branch (when ‘ind_type’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:603:21: call_function: inlined call to ‘atoi’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:603:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:604:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:612:35: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: following ‘true’ branch (when ‘ind_p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: call_function: calling ‘ECPGdump_a_type’ from ‘ECPGdump_a_struct’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def990]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:396:33: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_strdup("-1")’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:581:1: enter_function: entry to ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:599:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:601:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:601:17: branch_true: following ‘true’ branch (when ‘ind_type’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:603:21: call_function: inlined call to ‘atoi’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:603:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:604:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:612:35: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: following ‘true’ branch (when ‘ind_p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: call_function: calling ‘ECPGdump_a_type’ from ‘ECPGdump_a_struct’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def991]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:56: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_alloc(strlen(name) + <unknown> + 4)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:411:1: enter_function: entry to ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:423:17: branch_false: following ‘false’ branch (when ‘type != 31’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:58: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def992]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:505:33: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:411:1: enter_function: entry to ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:423:17: branch_false: following ‘false’ branch (when ‘type != 31’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:58: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:505:33: throw: if ‘pg_sprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:505:33: danger: ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def993]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:506:33: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:411:1: enter_function: entry to ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:423:17: branch_false: following ‘false’ branch (when ‘type != 31’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:58: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:506:33: throw: if ‘pg_sprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:506:33: danger: ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def994]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:513:33: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:411:1: enter_function: entry to ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:423:17: branch_false: following ‘false’ branch (when ‘type != 31’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:58: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:513:33: throw: if ‘pg_sprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:513:33: danger: ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def995]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:514:33: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:411:1: enter_function: entry to ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:423:17: branch_false: following ‘false’ branch (when ‘type != 31’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:58: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:514:33: throw: if ‘pg_sprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:514:33: danger: ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def996]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:521:33: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:411:1: enter_function: entry to ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:423:17: branch_false: following ‘false’ branch (when ‘type != 31’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:58: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:521:33: throw: if ‘pg_sprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:521:33: danger: ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def997]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:522:33: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:411:1: enter_function: entry to ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:423:17: branch_false: following ‘false’ branch (when ‘type != 31’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:58: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:522:33: throw: if ‘pg_sprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:522:33: danger: ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def998]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:529:33: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:411:1: enter_function: entry to ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:423:17: branch_false: following ‘false’ branch (when ‘type != 31’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:58: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:529:33: throw: if ‘pg_sprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:529:33: danger: ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def999]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:530:33: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:411:1: enter_function: entry to ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:423:17: branch_false: following ‘false’ branch (when ‘type != 31’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:58: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:530:33: throw: if ‘pg_sprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:530:33: danger: ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1000]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:537:33: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:411:1: enter_function: entry to ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:423:17: branch_false: following ‘false’ branch (when ‘type != 31’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:58: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:537:33: throw: if ‘pg_sprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:537:33: danger: ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1001]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:538:33: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:411:1: enter_function: entry to ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:423:17: branch_false: following ‘false’ branch (when ‘type != 31’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:58: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:427:49: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_simple’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:428:47: return_function: returning to ‘ECPGdump_a_simple’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:538:33: throw: if ‘pg_sprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:538:33: danger: ‘mm_alloc(strlen(name) + strlen(varcharsize) + 130)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1002]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:46: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_strdup("1")’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:581:1: enter_function: entry to ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:599:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:601:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:601:17: branch_true: following ‘true’ branch (when ‘ind_type’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:603:21: call_function: inlined call to ‘atoi’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:603:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:604:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:612:35: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: following ‘true’ branch (when ‘ind_p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: call_function: calling ‘ECPGdump_a_type’ from ‘ECPGdump_a_struct’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1003]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:50: warning[-Wanalyzer-malloc-leak]: leak of ‘mm_alloc(strlen(name) + <unknown> + 3)’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:581:1: enter_function: entry to ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1004]
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:50: warning[-Wanalyzer-null-argument]: use of NULL ‘ind_name’ where non-null expected
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:581:1: enter_function: entry to ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:589:37: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:590:41: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:599:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:601:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:601:17: branch_true: following ‘true’ branch (when ‘ind_type’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:603:21: call_function: inlined call to ‘atoi’ from ‘ECPGdump_a_struct’
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:603:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:604:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:612:35: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: following ‘true’ branch (when ‘ind_p’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/ecpg/preproc/type.c:614:17: call_function: calling ‘ECPGdump_a_type’ from ‘ECPGdump_a_struct’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1005]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:123:14: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:106:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:107:12: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:109:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:116:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:123:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:123:14: throw: if ‘pg_saslprep’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:123:14: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1006]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:123:14: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(sasl_mechanism)’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:107:12: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:109:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:115:33: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:116:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:123:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:123:14: throw: if ‘pg_saslprep’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:123:14: danger: ‘strdup(sasl_mechanism)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1007]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:437:9: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:358:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:364:23: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:367:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:372:23: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:374:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:379:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:416:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:419:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:422:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:429:51: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:430:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:433:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:433:18: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:434:12: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:437:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:437:9: throw: if ‘termPQExpBuffer’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:437:9: danger: ‘result’ leaks here; was allocated at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1008]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:738:32: warning[-Wanalyzer-malloc-leak]: leak of ‘decoded_server_signature’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:688:1: enter_function: entry to ‘read_server_final_message’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:696:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:703:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:703:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:720:92: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:719:36: call_function: calling ‘read_attr_value’ from ‘read_server_final_message’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:719:36: return_function: returning to ‘read_server_final_message’ from ‘read_attr_value’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:721:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:727:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:731:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:732:12: branch_false: following ‘false’ branch (when ‘decoded_server_signature’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:739:82: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:738:32: throw: if ‘pg_b64_decode’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth-scram.c:738:32: danger: ‘decoded_server_signature’ leaks here; was allocated at [(15)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1009]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:81:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ginbuf.value’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:71:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:73:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:74:32: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:75:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:81:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:81:21: throw: if ‘pqGetnchar’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:81:21: danger: ‘ginbuf.value’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1010]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:645:13: warning[-Wanalyzer-malloc-leak]: leak of ‘challenge’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:637:21: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:638:12: branch_false: following ‘false’ branch (when ‘challenge’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:645:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:645:13: throw: if ‘pqGetnchar’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:645:13: danger: ‘challenge’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1011]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:732:38: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_pwd’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:710:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:716:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:724:45: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:725:36: branch_false: following ‘false’ branch (when ‘crypt_pwd’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:731:33: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:732:38: throw: if ‘pg_md5_encrypt’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:732:38: danger: ‘crypt_pwd’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1012]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1242:14: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_pwd’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1238:21: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1239:12: branch_false: following ‘false’ branch (when ‘crypt_pwd’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1242:14: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1242:14: throw: if ‘pg_md5_encrypt’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1242:14: danger: ‘crypt_pwd’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1013]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1355:30: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_pwd’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1283:12: branch_false: following ‘false’ branch (when ‘conn’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1286:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1289:12: branch_false: following ‘false’ branch (when ‘algorithm’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1331:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1338:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1348:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1348:17: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1350:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1350:29: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1351:20: branch_true: following ‘true’ branch (when ‘crypt_pwd’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1353:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1355:30: throw: if ‘pg_md5_encrypt’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-auth.c:1355:30: danger: ‘crypt_pwd’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1014]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:374:22: warning[-Wanalyzer-malloc-leak]: leak of ‘cancel’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:353:12: branch_false: following ‘false’ branch (when ‘conn’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:356:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:356:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:359:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:359:18: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:360:12: branch_false: following ‘false’ branch (when ‘cancel’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:363:32: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:372:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:374:22: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:374:22: throw: if ‘pqParseIntParam’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:374:22: danger: ‘cancel’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1015]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:381:22: warning[-Wanalyzer-malloc-leak]: leak of ‘cancel’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:353:12: branch_false: following ‘false’ branch (when ‘conn’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:356:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:356:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:359:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:359:18: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:360:12: branch_false: following ‘false’ branch (when ‘cancel’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:363:32: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:372:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:379:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:379:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:381:22: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:381:22: throw: if ‘pqParseIntParam’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:381:22: danger: ‘cancel’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1016]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:388:22: warning[-Wanalyzer-malloc-leak]: leak of ‘cancel’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:353:12: branch_false: following ‘false’ branch (when ‘conn’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:356:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:356:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:359:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:359:18: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:360:12: branch_false: following ‘false’ branch (when ‘cancel’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:363:32: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:372:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:379:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:379:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:386:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:386:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:388:22: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:388:22: throw: if ‘pqParseIntParam’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:388:22: danger: ‘cancel’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1017]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:395:22: warning[-Wanalyzer-malloc-leak]: leak of ‘cancel’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:353:12: branch_false: following ‘false’ branch (when ‘conn’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:356:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:356:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:359:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:359:18: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:360:12: branch_false: following ‘false’ branch (when ‘cancel’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:363:32: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:372:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:379:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:379:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:386:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:386:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:393:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:393:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:395:22: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:395:22: throw: if ‘pqParseIntParam’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:395:22: danger: ‘cancel’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1018]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:402:22: warning[-Wanalyzer-malloc-leak]: leak of ‘cancel’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:353:12: branch_false: following ‘false’ branch (when ‘conn’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:356:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:356:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:359:18: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:359:18: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:360:12: branch_false: following ‘false’ branch (when ‘cancel’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:363:32: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:372:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:379:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:379:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:386:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:386:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:393:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:393:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:400:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:400:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:402:22: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:402:22: throw: if ‘pqParseIntParam’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:402:22: danger: ‘cancel’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1019]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:564:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘tmpsock’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:474:12: branch_false: following ‘false’ branch (when ‘cancel’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:486:31: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:486:24: acquire_resource: stream socket created here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:486:12: branch_false: following ‘false’ branch (when ‘tmpsock != -1’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:502:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:564:13: throw: if ‘connect’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-cancel.c:564:13: danger: ‘tmpsock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1020]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-exec.c:192:43: warning[-Wanalyzer-malloc-leak]: leak of ‘PQmakeEmptyPGresult(conn, 0)’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-exec.c:2344:1: enter_function: entry to ‘PQexecStart’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-exec.c:2369:26: call_function: calling ‘PQgetResult’ from ‘PQexecStart’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1021]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-exec.c:713:31: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-exec.c:2344:1: enter_function: entry to ‘PQexecStart’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-exec.c:2369:26: call_function: calling ‘PQgetResult’ from ‘PQexecStart’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1022]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-exec.c:737:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-exec.c:2344:1: enter_function: entry to ‘PQexecStart’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-exec.c:2369:26: call_function: calling ‘PQgetResult’ from ‘PQexecStart’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1023]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-gssapi-common.c:112:9: warning[-Wanalyzer-malloc-leak]: leak of ‘temp_gbuf.value’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-gssapi-common.c:90:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-gssapi-common.c:94:16: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-gssapi-common.c:95:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-gssapi-common.c:106:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-gssapi-common.c:107:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-gssapi-common.c:112:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-gssapi-common.c:112:9: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-gssapi-common.c:112:9: danger: ‘temp_gbuf.value’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1024]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:897:15: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:897:15: throw: if ‘PQexec’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:897:15: danger: ‘lobjfuncs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1025]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:915:25: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:898:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:904:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:915:25: throw: if ‘PQntuples’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:915:25: danger: ‘lobjfuncs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1026]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:917:25: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:898:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:904:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:915:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:917:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:917:25: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:917:25: danger: ‘lobjfuncs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1027]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:918:35: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:898:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:904:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:915:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:917:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:918:35: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:918:35: danger: ‘lobjfuncs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1028]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:947:9: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:898:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:904:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:915:21: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:947:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:947:9: throw: if ‘PQclear’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:947:9: danger: ‘lobjfuncs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1029]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:956:17: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:898:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:904:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:915:21: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:947:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:954:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:956:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:956:17: throw: if ‘libpq_append_conn_error’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:956:17: danger: ‘lobjfuncs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1030]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:963:17: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:898:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:904:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:915:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:917:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:919:20: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:920:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:954:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:961:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:961:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:963:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:963:17: throw: if ‘libpq_append_conn_error’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-lobj.c:963:17: danger: ‘lobjfuncs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1031]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-misc.c:1344:24: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-misc.c:1336:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-misc.c:1343:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-misc.c:1344:24: throw: if ‘appendPQExpBufferVA’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-misc.c:1344:24: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1032]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-misc.c:1373:24: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-misc.c:1365:13: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-misc.c:1365:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-misc.c:1372:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-misc.c:1373:24: throw: if ‘appendPQExpBufferVA’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-misc.c:1373:24: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1033]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:25: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:25: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1034]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:25: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:25: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1035]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:25: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:25: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1036]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:41: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1037]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:41: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1038]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:113:41: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1039]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:124:52: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:124:52: throw: if ‘PQfname’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:124:52: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1040]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:124:52: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:124:52: throw: if ‘PQfname’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:124:52: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1041]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:124:52: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:124:52: throw: if ‘PQfname’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:124:52: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1042]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:180:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:180:33: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:180:33: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1043]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:180:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:180:33: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:180:33: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1044]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:180:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:180:33: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:180:33: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1045]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: throw: if ‘popen’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1046]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: throw: if ‘popen’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1047]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: throw: if ‘popen’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1048]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: throw: if ‘pq_block_sigpipe’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1049]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: throw: if ‘pq_block_sigpipe’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1050]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: throw: if ‘pq_block_sigpipe’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1051]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(pagerenv, "w")’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: throw: if ‘pq_block_sigpipe’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: danger: ‘popen(pagerenv, "w")’ leaks here; was allocated at [(27)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1052]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:33: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1053]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:33: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1054]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:33: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1055]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:33: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1056]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1057]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1058]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1059]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1060]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:211:103: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:41: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1061]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:211:103: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:41: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1062]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:211:103: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:41: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1063]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:211:103: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:41: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1064]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:211:103: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:55: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1065]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:211:103: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:55: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1066]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:211:103: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:55: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1067]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:211:103: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:210:55: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1068]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:109: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:41: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1069]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:109: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:41: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1070]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:109: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:41: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1071]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:109: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:41: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1072]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:109: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:55: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1073]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:109: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:55: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1074]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:109: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:55: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1075]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:209:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:109: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:213:55: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1076]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:272:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:44: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:274:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:272:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:272:49: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1077]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:272:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:44: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:274:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:272:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:272:49: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1078]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:272:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:44: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:274:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:272:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:272:49: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1079]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:272:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:197:44: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:44: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:274:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:272:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:272:49: danger: ‘fields’ leaks here; was allocated at [(15)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1080]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:272:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:44: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:274:65: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:272:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:272:49: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1081]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:277:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:44: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:281:65: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:277:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:277:49: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1082]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:277:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:44: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:281:65: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:277:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:277:49: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1083]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:277:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:44: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:281:65: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:277:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:277:49: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1084]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:277:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:197:44: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:44: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:281:65: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:277:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:277:49: danger: ‘fields’ leaks here; was allocated at [(15)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1085]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:277:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:271:44: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:281:65: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:277:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:277:49: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1086]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:69: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:41: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:41: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1087]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:69: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:41: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:41: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1088]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:69: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:41: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:41: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1089]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:197:44: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:69: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:41: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:41: danger: ‘fields’ leaks here; was allocated at [(15)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1090]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:269:36: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:69: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:41: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:284:41: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1091]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:318:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:201:49: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:303:20: branch_false: following ‘false’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:312:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:313:20: branch_true: following ‘true’ branch (when ‘usePipe != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:318:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:318:25: throw: if ‘pclose’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:318:25: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1092]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:342:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1093]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:342:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1094]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:342:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1095]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:342:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:197:44: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1096]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:343:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1097]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:343:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1098]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:343:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1099]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:343:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:197:44: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1100]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:365:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1101]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:365:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1102]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:365:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1103]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:365:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:197:44: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1104]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:396:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1105]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:396:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1106]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:396:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1107]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:396:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:197:44: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1108]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:467:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:286:29: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:286:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:287:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:287:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1109]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:467:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:286:29: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:286:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:287:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:287:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1110]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:467:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:286:29: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:286:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:287:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:287:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1111]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:467:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:197:44: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:286:29: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:286:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:287:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:287:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1112]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:467:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:286:29: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:286:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:287:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:287:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1113]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:467:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:286:29: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:286:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:287:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:287:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1114]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:467:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:286:29: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:286:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:287:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:287:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1115]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:467:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:197:44: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:267:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:286:29: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:286:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:287:42: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:287:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1116]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:493:25: warning[-Wanalyzer-malloc-leak]: leak of ‘border’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:452:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:452:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:464:26: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:465:20: branch_false: following ‘false’ branch (when ‘border’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:471:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:471:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:473:37: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:475:32: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:476:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:492:20: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:493:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:493:25: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:493:25: danger: ‘border’ leaks here; was allocated at [(3)](sarif:/runs/0/results/95/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1117]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:613:45: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:611:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:613:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:613:45: throw: if ‘PQfname’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:613:45: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/96/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1118]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:616:64: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:611:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:613:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:614:37: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:616:64: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:616:64: throw: if ‘PQgetlength’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:616:64: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/97/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1119]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:629:31: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:624:12: branch_true: following ‘true’ branch (when ‘printHeader != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:624:12: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:627:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:629:31: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:629:31: throw: if ‘PQfname’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:629:31: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/98/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1120]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:631:45: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:624:12: branch_true: following ‘true’ branch (when ‘printHeader != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:624:12: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:627:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:629:31: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:630:28: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:631:70: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:631:45: throw: if ‘PQfname’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:631:45: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/99/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1121]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:634:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:624:12: branch_true: following ‘true’ branch (when ‘printHeader != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:624:12: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:627:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:634:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:634:17: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:634:17: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/100/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1122]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:643:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:624:12: branch_true: following ‘true’ branch (when ‘printHeader != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:624:12: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:627:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:634:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:637:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:643:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:643:17: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:643:17: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/101/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1123]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:651:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:611:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:613:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:618:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:619:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:611:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:624:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:647:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:647:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:649:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:651:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:651:25: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:651:25: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/102/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1124]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:653:45: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:611:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:613:45: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:618:36: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:619:41: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:611:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:624:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:647:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:647:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:649:29: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:651:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:652:28: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:653:76: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:653:45: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:653:45: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/104/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1125]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:656:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:647:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:647:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:649:29: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:656:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:656:17: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:656:17: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/105/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1126]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:660:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:659:12: branch_true: following ‘true’ branch (when ‘quiet == 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:661:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:660:17: throw: if ‘PQntuples’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:660:17: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/106/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1127]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:661:34: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:659:12: branch_true: following ‘true’ branch (when ‘quiet == 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:661:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:661:34: throw: if ‘PQntuples’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:661:34: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/108/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1128]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:663:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:663:9: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:663:9: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/109/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1129]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:710:25: warning[-Wanalyzer-malloc-leak]: leak of ‘tborder’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:693:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:696:20: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:696:20: branch_true: following ‘true’ branch (when ‘TerseOutput == 0’)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:700:25: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:701:44: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:702:28: branch_false: following ‘false’ branch (when ‘tborder’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:702:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:710:25: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-print.c:710:25: danger: ‘tborder’ leaks here; was allocated at [(5)](sarif:/runs/0/results/110/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1130]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1241:24: warning[-Wanalyzer-malloc-leak]: leak of ‘qidx’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1642:1: enter_function: entry to ‘getCopyDataMessage’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1658:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1658:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1660:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1660:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1665:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1666:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1693:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1700:37: call_function: calling ‘pqGetErrorNotice3’ from ‘getCopyDataMessage’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1131]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1241:24: warning[-Wanalyzer-malloc-leak]: leak of ‘scridx’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1642:1: enter_function: entry to ‘getCopyDataMessage’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1658:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1658:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1660:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1660:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1665:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1666:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1693:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1700:37: call_function: calling ‘pqGetErrorNotice3’ from ‘getCopyDataMessage’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1132]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1241:24: warning[-Wanalyzer-malloc-leak]: leak of ‘wquery’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1642:1: enter_function: entry to ‘getCopyDataMessage’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1658:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1658:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1660:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1660:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1665:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1666:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1693:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1700:37: call_function: calling ‘pqGetErrorNotice3’ from ‘getCopyDataMessage’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1133]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1302:29: warning[-Wanalyzer-malloc-leak]: leak of ‘qidx’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1642:1: enter_function: entry to ‘getCopyDataMessage’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1658:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1658:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1660:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1660:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1665:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1666:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1693:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1700:37: call_function: calling ‘pqGetErrorNotice3’ from ‘getCopyDataMessage’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1134]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1302:29: warning[-Wanalyzer-malloc-leak]: leak of ‘scridx’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1642:1: enter_function: entry to ‘getCopyDataMessage’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1658:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1658:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1660:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1660:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1665:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1666:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1693:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1700:37: call_function: calling ‘pqGetErrorNotice3’ from ‘getCopyDataMessage’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1135]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1302:29: warning[-Wanalyzer-malloc-leak]: leak of ‘wquery’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1642:1: enter_function: entry to ‘getCopyDataMessage’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1658:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1658:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1660:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1660:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1665:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1666:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1693:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1700:37: call_function: calling ‘pqGetErrorNotice3’ from ‘getCopyDataMessage’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1136]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1307:36: warning[-Wanalyzer-malloc-leak]: leak of ‘qidx’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1642:1: enter_function: entry to ‘getCopyDataMessage’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1658:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1658:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1660:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1660:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1665:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1666:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1693:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1700:37: call_function: calling ‘pqGetErrorNotice3’ from ‘getCopyDataMessage’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1137]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1307:36: warning[-Wanalyzer-malloc-leak]: leak of ‘scridx’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1642:1: enter_function: entry to ‘getCopyDataMessage’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1658:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1658:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1660:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1660:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1665:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1666:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1693:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1700:37: call_function: calling ‘pqGetErrorNotice3’ from ‘getCopyDataMessage’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1138]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1307:36: warning[-Wanalyzer-malloc-leak]: leak of ‘wquery’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1642:1: enter_function: entry to ‘getCopyDataMessage’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1658:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1658:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1660:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1660:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1665:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1666:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1693:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1700:37: call_function: calling ‘pqGetErrorNotice3’ from ‘getCopyDataMessage’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1139]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1514:13: warning[-Wanalyzer-malloc-leak]: leak of ‘svname’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1506:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1508:20: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1508:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1511:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1511:18: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1512:12: branch_false: following ‘false’ branch (when ‘svname’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1514:13: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1514:13: throw: if ‘pqGets’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:1514:13: danger: ‘svname’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1140]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:2312:29: warning[-Wanalyzer-malloc-leak]: leak of ‘startpacket’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:2237:1: enter_function: entry to ‘pqBuildStartupPacket3’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:2242:22: call_function: calling ‘build_startup_packet’ from ‘pqBuildStartupPacket3’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:2242:22: return_function: returning to ‘pqBuildStartupPacket3’ from ‘build_startup_packet’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:2243:32: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:2244:12: branch_false: following ‘false’ branch (when ‘startpacket’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:2246:22: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/fe-protocol3.c:2246:22: call_function: calling ‘build_startup_packet’ from ‘pqBuildStartupPacket3’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1141]
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/pqexpbuffer.c:308:28: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/pqexpbuffer.c:265:1: enter_function: entry to ‘appendPQExpBuffer’
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/pqexpbuffer.c:271:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/pqexpbuffer.c:278:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/interfaces/libpq/pqexpbuffer.c:279:24: call_function: calling ‘appendPQExpBufferVA’ from ‘appendPQExpBuffer’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1142]
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_comp.c:1298:45: warning[-Wanalyzer-null-argument]: use of NULL ‘colname’ where non-null expected
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_comp.c:1175:1: enter_function: entry to ‘resolve_column_ref’
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_comp.c:1206:17: call_function: inlined call to ‘list_length’ from ‘resolve_column_ref’
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_comp.c:1272:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_comp.c:1275:17: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_comp.c:1282:28: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_comp.c:1284:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_comp.c:1284:28: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_comp.c:1287:68: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_comp.c:1292:40: branch_true: following ‘true’ branch (when ‘i >= 0’)...
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_comp.c:1294:100: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_comp.c:1298:45: danger: argument 2 (‘colname’) NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-768): [#def1143]
postgresql-18beta1/postgresql-17.2/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
Error: CPPCHECK_WARNING (CWE-768): [#def1144]
postgresql-18beta1/postgresql-17.2/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
Error: CPPCHECK_WARNING (CWE-768): [#def1145]
postgresql-18beta1/postgresql-17.2/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
Error: CPPCHECK_WARNING (CWE-768): [#def1146]
postgresql-18beta1/postgresql-17.2/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
Error: CPPCHECK_WARNING (CWE-768): [#def1147]
postgresql-18beta1/postgresql-17.2/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
Error: CPPCHECK_WARNING (CWE-768): [#def1148]
postgresql-18beta1/postgresql-17.2/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
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1149]
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_gram.c:1865:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_gram.c:1820:6: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_gram.c:1826:34: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_gram.c:1852:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_gram.c:1854:7: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_gram.c:1863:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_gram.c:1863:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_gram.c:1865:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1150]
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_gram.c:1996:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_gram.c:1820:6: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_gram.c:1889:6: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_gram.c:1889:6: branch_false: following ‘false’ branch (when ‘yystate != 3’)...
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_gram.c:1892:3: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_gram.c:1904:6: branch_true: following ‘true’ branch (when ‘yyn == -249’)...
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_gram.c:1905:5: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_gram.c:1976:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_gram.c:1978:3: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/pl/plpgsql/src/pl_gram.c:1996:3: danger: use of uninitialized value ‘*<unknown>’ here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1151]
postgresql-18beta1/postgresql-17.2/src/pl/plpython/plpy_elog.c:478:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/pl/plpython/plpy_elog.c:477:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/pl/plpython/plpy_elog.c:478:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/pl/plpython/plpy_elog.c:478:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1152]
postgresql-18beta1/postgresql-17.2/src/pl/plpython/plpy_elog.c:494:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/pl/plpython/plpy_elog.c:493:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/pl/plpython/plpy_elog.c:494:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/pl/plpython/plpy_elog.c:494:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1153]
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:375:21: warning[-Wanalyzer-malloc-leak]: leak of ‘sys’
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:312:12: branch_false: following ‘false’ branch (when ‘ctype’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:351:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:352:20: branch_false: following ‘false’ branch (when ‘ctype’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:356:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:356:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:357:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:356:21: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:361:23: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:362:20: branch_true: following ‘true’ branch (when ‘sys’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:363:31: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:363:31: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:369:12: branch_false: following ‘false’ branch (when ‘sys’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:369:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:373:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:375:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:375:21: throw: if ‘pg_strcasecmp’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:375:21: danger: ‘sys’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1154]
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:404:17: warning[-Wanalyzer-malloc-leak]: leak of ‘sys’
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:312:12: branch_false: following ‘false’ branch (when ‘ctype’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:351:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:352:20: branch_false: following ‘false’ branch (when ‘ctype’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:356:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:356:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:357:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:356:21: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:361:23: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:362:20: branch_true: following ‘true’ branch (when ‘sys’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:363:31: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:363:31: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:369:12: branch_false: following ‘false’ branch (when ‘sys’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:369:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:373:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:375:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:375:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:373:61: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:375:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:373:61: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:401:12: branch_true: following ‘true’ branch (when ‘write_message != 0’)...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:404:33: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:404:17: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:404:17: danger: ‘sys’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1155]
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:409:17: warning[-Wanalyzer-malloc-leak]: leak of ‘sys’
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:312:12: branch_false: following ‘false’ branch (when ‘ctype’ is NULL)...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:351:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:352:20: branch_false: following ‘false’ branch (when ‘ctype’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:356:21: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:356:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:357:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:356:21: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:361:23: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:362:20: branch_true: following ‘true’ branch (when ‘sys’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:363:31: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:363:31: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:369:12: branch_false: following ‘false’ branch (when ‘sys’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:369:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:373:21: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:375:21: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:375:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:373:61: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:375:20: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:373:61: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:401:12: branch_true: following ‘true’ branch (when ‘write_message != 0’)...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:409:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:409:17: throw: if ‘errstart’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/port/chklocale.c:409:17: danger: ‘sys’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: COMPILER_WARNING: [#def1156]
postgresql-18beta1/postgresql-17.2/src/port/pg_crc32c_sse42.c:38:32: note[note]: called from here
Error: COMPILER_WARNING: [#def1157]
postgresql-18beta1/postgresql-17.2/src/port/pg_crc32c_sse42.c:45:23: note[note]: called from here
Error: COMPILER_WARNING: [#def1158]
postgresql-18beta1/postgresql-17.2/src/port/pg_crc32c_sse42.c:64:23: note[note]: called from here
Error: COMPILER_WARNING: [#def1159]
postgresql-18beta1/postgresql-17.2/src/port/pg_popcount_avx512.c:35:25: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI
Error: COMPILER_WARNING: [#def1160]
postgresql-18beta1/postgresql-17.2/src/port/pg_popcount_avx512.c:35:33: note[note]: called from here
Error: COMPILER_WARNING: [#def1161]
postgresql-18beta1/postgresql-17.2/src/port/pg_popcount_avx512.c:56:23: note[note]: called from here
Error: COMPILER_WARNING: [#def1162]
postgresql-18beta1/postgresql-17.2/src/port/pg_popcount_avx512.c:57:23: note[note]: called from here
Error: COMPILER_WARNING: [#def1163]
postgresql-18beta1/postgresql-17.2/src/port/pg_popcount_avx512.c:58:25: note[note]: called from here
Error: COMPILER_WARNING: [#def1164]
postgresql-18beta1/postgresql-17.2/src/port/pg_popcount_avx512.c:65:31: note[note]: called from here
Error: COMPILER_WARNING: [#def1165]
postgresql-18beta1/postgresql-17.2/src/port/pg_popcount_avx512.c:66:31: note[note]: called from here
Error: COMPILER_WARNING: [#def1166]
postgresql-18beta1/postgresql-17.2/src/port/pg_popcount_avx512.c:67:33: note[note]: called from here
Error: COMPILER_WARNING: [#def1167]
postgresql-18beta1/postgresql-17.2/src/port/pg_popcount_avx512.c:74:15: note[note]: called from here
Error: COMPILER_WARNING: [#def1168]
postgresql-18beta1/postgresql-17.2/src/port/pg_popcount_avx512.c:75:15: note[note]: called from here
Error: COMPILER_WARNING: [#def1169]
postgresql-18beta1/postgresql-17.2/src/port/pg_popcount_avx512.c:76:17: note[note]: called from here
Error: COMPILER_WARNING: [#def1170]
postgresql-18beta1/postgresql-17.2/src/port/pg_popcount_avx512.c:78:16: note[note]: called from here
Error: COMPILER_WARNING: [#def1171]
postgresql-18beta1/postgresql-17.2/src/port/pg_popcount_avx512_choose.c:64:17: note[note]: called from here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1172]
postgresql-18beta1/postgresql-17.2/src/port/pgcheckdir.c:46:35: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dir)’
postgresql-18beta1/postgresql-17.2/src/port/pgcheckdir.c:42:18: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/port/pgcheckdir.c:43:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/port/pgcheckdir.c:43:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/port/pgcheckdir.c:46:35: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/port/pgcheckdir.c:46:35: danger: ‘opendir(dir)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1173]
postgresql-18beta1/postgresql-17.2/src/test/isolation/specparse.c:1002:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/postgresql-17.2/src/test/isolation/specparse.c:960:6: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/test/isolation/specparse.c:966:28: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/test/isolation/specparse.c:989:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/postgresql-17.2/src/test/isolation/specparse.c:991:7: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/isolation/specparse.c:1000:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/test/isolation/specparse.c:1002:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/isolation/specparse.c:1002:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1174]
postgresql-18beta1/postgresql-17.2/src/test/isolation/specparse.c:1129:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
postgresql-18beta1/postgresql-17.2/src/test/isolation/specparse.c:960:6: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/test/isolation/specparse.c:1024:6: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/isolation/specparse.c:1024:6: branch_false: following ‘false’ branch (when ‘yystate != 3’)...
postgresql-18beta1/postgresql-17.2/src/test/isolation/specparse.c:1027:3: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/isolation/specparse.c:1039:6: branch_true: following ‘true’ branch (when ‘yyn == -14’)...
postgresql-18beta1/postgresql-17.2/src/test/isolation/specparse.c:1040:5: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/test/isolation/specparse.c:1109:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
postgresql-18beta1/postgresql-17.2/src/test/isolation/specparse.c:1111:3: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/isolation/specparse.c:1129:3: danger: use of uninitialized value ‘*<unknown>’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1175]
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1727:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1714:21: enter_function: entry to ‘spec_yy_create_buffer’
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1718:24: call_function: inlined call to ‘spec_yyalloc’ from ‘spec_yy_create_buffer’
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1719:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1722:2: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1727:54: danger: ‘malloc(64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def1176]
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1768: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def1177]
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1769: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1178]
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1930:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1916:17: enter_function: entry to ‘spec_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1926:24: call_function: inlined call to ‘spec_yyalloc’ from ‘spec_yy_scan_buffer’
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1927:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1930:25: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1940:2: call_function: calling ‘spec_yy_switch_to_buffer’ from ‘spec_yy_scan_buffer’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1179]
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1982:26: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1966:17: enter_function: entry to ‘spec_yy_scan_bytes’
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1975:24: call_function: inlined call to ‘spec_yyalloc’ from ‘spec_yy_scan_bytes’
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1976:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1976:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/isolation/specscanner.c:1984:6: call_function: calling ‘spec_yy_scan_buffer’ from ‘spec_yy_scan_bytes’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1180]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:386:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1281:1: enter_function: entry to ‘file_line_count’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1289:17: call_function: calling ‘emit_tap_output’ from ‘file_line_count’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1181]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:388:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1281:1: enter_function: entry to ‘file_line_count’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1289:17: call_function: calling ‘emit_tap_output’ from ‘file_line_count’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1182]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:391:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1281:1: enter_function: entry to ‘file_line_count’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1289:17: call_function: calling ‘emit_tap_output’ from ‘file_line_count’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1183]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:395:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1281:1: enter_function: entry to ‘file_line_count’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1289:17: call_function: calling ‘emit_tap_output’ from ‘file_line_count’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1184]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:412:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1326:1: enter_function: entry to ‘make_directory’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1329:17: call_function: calling ‘bail_out’ from ‘make_directory’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1185]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:414:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1911:1: enter_function: entry to ‘open_result_files’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1917:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1921:9: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1924:12: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1925:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1925:17: call_function: calling ‘bail_out’ from ‘open_result_files’
Error: COMPILER_WARNING (CWE-704): [#def1186]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c: scope_hint: In function ‘get_expectfile’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:698:34: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1187]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:698:34: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1188]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1143:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1142:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1143:26: throw: if ‘appendStringInfoVA’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1143:26: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1189]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1271:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1264:25: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1266:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1271:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1271:9: throw: if ‘fseek’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1271:9: danger: ‘fopen(file, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1190]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1271:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1264:25: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1266:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1271:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1271:9: throw: if ‘fseek’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1271:9: danger: ‘fopen(file, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1191]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1272:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1264:25: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1266:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1271:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1272:13: throw: if ‘ftell’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1272:13: danger: ‘fopen(file, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1192]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1272:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1264:25: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1266:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1271:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1272:13: throw: if ‘ftell’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1272:13: danger: ‘fopen(file, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1193]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1292:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1285:25: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1287:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1287:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1292:21: throw: if ‘fgetc’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1292:21: danger: ‘fopen(file, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1194]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1292:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1285:25: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1287:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1287:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1292:21: throw: if ‘fgetc’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1292:21: danger: ‘fopen(file, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1195]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1361:9: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1343:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1346:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1346:28: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1346:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1352:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1354:12: branch_false: following ‘false’ branch (when ‘last_dot’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1360:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1361:9: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1361:9: danger: ‘s’ leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1196]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1361:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1343:30: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1343:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1346:28: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1346:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1352:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1354:12: branch_false: following ‘false’ branch (when ‘last_dot’ is non-NULL)...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1360:9: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1361:9: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1361:9: danger: ‘tmp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1197]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1678:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(schedule, "r")’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1659:15: acquire_resource: opened here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1660:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1660:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1663:16: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1671:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1678:21: danger: ‘fopen(schedule, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1198]
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1678:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(schedule, "r")’
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1659:15: acquire_memory: allocated here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1660:12: branch_false: following ‘false’ branch...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1660:12: branch_false: ...to here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1663:16: branch_true: following ‘true’ branch...
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1671:17: branch_true: ...to here
postgresql-18beta1/postgresql-17.2/src/test/regress/pg_regress.c:1678:21: danger: ‘fopen(schedule, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1199]
postgresql-18beta1/postgresql-17.2/src/timezone/localtime.c:233:15: warning[-Wanalyzer-malloc-leak]: leak of ‘lsp’
postgresql-18beta1/postgresql-17.2/src/timezone/localtime.c:1389:1: enter_function: entry to ‘pg_gmtime’
postgresql-18beta1/postgresql-17.2/src/timezone/localtime.c:1391:16: call_function: calling ‘gmtsub’ from ‘pg_gmtime’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1200]
postgresql-18beta1/postgresql-17.2/src/timezone/localtime.c:242:17: warning[-Wanalyzer-malloc-leak]: leak of ‘lsp’
postgresql-18beta1/postgresql-17.2/src/timezone/localtime.c:1389:1: enter_function: entry to ‘pg_gmtime’
postgresql-18beta1/postgresql-17.2/src/timezone/localtime.c:1391:16: call_function: calling ‘gmtsub’ from ‘pg_gmtime’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1201]
postgresql-18beta1/postgresql-17.2/src/timezone/localtime.c:245:13: warning[-Wanalyzer-malloc-leak]: leak of ‘lsp’
postgresql-18beta1/postgresql-17.2/src/timezone/localtime.c:1389:1: enter_function: entry to ‘pg_gmtime’
postgresql-18beta1/postgresql-17.2/src/timezone/localtime.c:1391:16: call_function: calling ‘gmtsub’ from ‘pg_gmtime’
Error: COMPILER_WARNING: [#def1202]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:15:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_transaction__start_semaphore’
Error: COMPILER_WARNING: [#def1203]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:24:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_transaction__commit_semaphore’
Error: COMPILER_WARNING: [#def1204]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:33:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_transaction__abort_semaphore’
Error: COMPILER_WARNING: [#def1205]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:42:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_lwlock__acquire_semaphore’
Error: COMPILER_WARNING: [#def1206]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:51:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_lwlock__release_semaphore’
Error: COMPILER_WARNING: [#def1207]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:60:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_lwlock__wait__start_semaphore’
Error: COMPILER_WARNING: [#def1208]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:69:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_lwlock__wait__done_semaphore’
Error: COMPILER_WARNING: [#def1209]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:78:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_lwlock__condacquire_semaphore’
Error: COMPILER_WARNING: [#def1210]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:87:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_lwlock__condacquire__fail_semaphore’
Error: COMPILER_WARNING: [#def1211]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:96:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_lwlock__acquire__or__wait_semaphore’
Error: COMPILER_WARNING: [#def1212]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:105:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_lwlock__acquire__or__wait__fail_semaphore’
Error: COMPILER_WARNING: [#def1213]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:114:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_lock__wait__start_semaphore’
Error: COMPILER_WARNING: [#def1214]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:123:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_lock__wait__done_semaphore’
Error: COMPILER_WARNING: [#def1215]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:132:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_query__parse__start_semaphore’
Error: COMPILER_WARNING: [#def1216]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:141:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_query__parse__done_semaphore’
Error: COMPILER_WARNING: [#def1217]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:150:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_query__rewrite__start_semaphore’
Error: COMPILER_WARNING: [#def1218]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:159:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_query__rewrite__done_semaphore’
Error: COMPILER_WARNING: [#def1219]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:168:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_query__plan__start_semaphore’
Error: COMPILER_WARNING: [#def1220]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:177:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_query__plan__done_semaphore’
Error: COMPILER_WARNING: [#def1221]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:186:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_query__execute__start_semaphore’
Error: COMPILER_WARNING: [#def1222]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:195:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_query__execute__done_semaphore’
Error: COMPILER_WARNING: [#def1223]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:204:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_query__start_semaphore’
Error: COMPILER_WARNING: [#def1224]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:213:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_query__done_semaphore’
Error: COMPILER_WARNING: [#def1225]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:222:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_statement__status_semaphore’
Error: COMPILER_WARNING: [#def1226]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:231:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_sort__start_semaphore’
Error: COMPILER_WARNING: [#def1227]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:240:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_sort__done_semaphore’
Error: COMPILER_WARNING: [#def1228]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:249:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_buffer__read__start_semaphore’
Error: COMPILER_WARNING: [#def1229]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:258:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_buffer__read__done_semaphore’
Error: COMPILER_WARNING: [#def1230]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:267:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_buffer__flush__start_semaphore’
Error: COMPILER_WARNING: [#def1231]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:276:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_buffer__flush__done_semaphore’
Error: COMPILER_WARNING: [#def1232]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:285:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_buffer__extend__start_semaphore’
Error: COMPILER_WARNING: [#def1233]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:294:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_buffer__extend__done_semaphore’
Error: COMPILER_WARNING: [#def1234]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:303:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_buffer__checkpoint__start_semaphore’
Error: COMPILER_WARNING: [#def1235]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:312:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_buffer__checkpoint__sync__start_semaphore’
Error: COMPILER_WARNING: [#def1236]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:321:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_buffer__checkpoint__done_semaphore’
Error: COMPILER_WARNING: [#def1237]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:330:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_buffer__sync__start_semaphore’
Error: COMPILER_WARNING: [#def1238]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:339:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_buffer__sync__written_semaphore’
Error: COMPILER_WARNING: [#def1239]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:348:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_buffer__sync__done_semaphore’
Error: COMPILER_WARNING: [#def1240]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:357:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_deadlock__found_semaphore’
Error: COMPILER_WARNING: [#def1241]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:366:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_checkpoint__start_semaphore’
Error: COMPILER_WARNING: [#def1242]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:375:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_checkpoint__done_semaphore’
Error: COMPILER_WARNING: [#def1243]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:384:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_clog__checkpoint__start_semaphore’
Error: COMPILER_WARNING: [#def1244]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:393:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_clog__checkpoint__done_semaphore’
Error: COMPILER_WARNING: [#def1245]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:402:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_subtrans__checkpoint__start_semaphore’
Error: COMPILER_WARNING: [#def1246]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:411:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_subtrans__checkpoint__done_semaphore’
Error: COMPILER_WARNING: [#def1247]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:420:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_multixact__checkpoint__start_semaphore’
Error: COMPILER_WARNING: [#def1248]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:429:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_multixact__checkpoint__done_semaphore’
Error: COMPILER_WARNING: [#def1249]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:438:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_twophase__checkpoint__start_semaphore’
Error: COMPILER_WARNING: [#def1250]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:447:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_twophase__checkpoint__done_semaphore’
Error: COMPILER_WARNING: [#def1251]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:456:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_smgr__md__read__start_semaphore’
Error: COMPILER_WARNING: [#def1252]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:465:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_smgr__md__read__done_semaphore’
Error: COMPILER_WARNING: [#def1253]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:474:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_smgr__md__write__start_semaphore’
Error: COMPILER_WARNING: [#def1254]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:483:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_smgr__md__write__done_semaphore’
Error: COMPILER_WARNING: [#def1255]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:492:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_wal__insert_semaphore’
Error: COMPILER_WARNING: [#def1256]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:501:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_wal__switch_semaphore’
Error: COMPILER_WARNING: [#def1257]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:510:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_wal__buffer__write__dirty__start_semaphore’
Error: COMPILER_WARNING: [#def1258]
postgresql-18beta1/src/backend/.dtrace-temp.a5ea52e2.c:519:30: warning[-Wmissing-variable-declarations]: no previous declaration for ‘postgresql_wal__buffer__write__dirty__done_semaphore’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1259]
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:813:25: warning[-Wanalyzer-null-argument]: use of NULL ‘dataptr’ where non-null expected
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:721:1: enter_function: entry to ‘brin_range_deserialize’
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:789:12: branch_false: following ‘false’ branch (when ‘datalen == 0’)...
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:798:9: branch_false: ...to here
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:798:21: branch_true: following ‘true’ branch (when ‘i < nvalues’)...
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:800:20: branch_true: ...to here
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:800:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:809:25: branch_false: ...to here
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:809:25: branch_true: following ‘true’ branch (when ‘typlen > 0’)...
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:811:44: call_function: inlined call to ‘PointerGetDatum’ from ‘brin_range_deserialize’
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:813:25: danger: argument 1 (‘dataptr’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1260]
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:822:25: warning[-Wanalyzer-null-argument]: use of NULL ‘dataptr’ where non-null expected
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:789:12: branch_false: following ‘false’ branch (when ‘datalen == 0’)...
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:798:9: branch_false: ...to here
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:798:21: branch_true: following ‘true’ branch (when ‘i < nvalues’)...
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:800:20: branch_true: ...to here
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:809:25: branch_false: following ‘false’ branch (when ‘typlen <= 0’)...
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:818:25: branch_false: ...to here
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:822:25: danger: argument 1 (‘dataptr’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1261]
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:832:25: warning[-Wanalyzer-null-argument]: use of NULL ‘dataptr’ where non-null expected
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:789:12: branch_false: following ‘false’ branch (when ‘datalen == 0’)...
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:798:9: branch_false: ...to here
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:798:21: branch_true: following ‘true’ branch (when ‘i < nvalues’)...
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:800:20: branch_true: ...to here
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:800:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:809:25: branch_false: ...to here
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:809:25: branch_false: following ‘false’ branch (when ‘typlen <= 0’)...
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:818:25: branch_false: ...to here
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:818:25: branch_false: following ‘false’ branch (when ‘typlen != -1’)...
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:826:25: branch_false: ...to here
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:826:25: branch_true: following ‘true’ branch (when ‘typlen == -2’)...
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:828:48: branch_true: ...to here
postgresql-18beta1/src/backend/access/brin/brin_minmax_multi.c:832:25: danger: argument 1 (‘dataptr’) NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def1262]
postgresql-18beta1/src/backend/access/common/heaptuple.c:972: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: CPPCHECK_WARNING (CWE-476): [#def1263]
postgresql-18beta1/src/backend/access/common/heaptuple.c:973: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: CPPCHECK_WARNING (CWE-476): [#def1264]
postgresql-18beta1/src/backend/access/common/heaptuple.c:974: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: CPPCHECK_WARNING (CWE-476): [#def1265]
postgresql-18beta1/src/backend/access/common/heaptuple.c:975: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: CPPCHECK_WARNING (CWE-476): [#def1266]
postgresql-18beta1/src/backend/access/common/heaptuple.c:977: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: CPPCHECK_WARNING (CWE-476): [#def1267]
postgresql-18beta1/src/backend/access/common/heaptuple.c:981: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: CPPCHECK_WARNING (CWE-476): [#def1268]
postgresql-18beta1/src/backend/access/common/heaptuple.c:982: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1269]
postgresql-18beta1/src/backend/access/gin/ginbtree.c:412:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘childpage’
postgresql-18beta1/src/backend/access/gin/ginbtree.c:816:1: enter_function: entry to ‘ginInsertValue’
postgresql-18beta1/src/backend/access/gin/ginbtree.c:822:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/gin/ginbtree.c:823:17: branch_true: ...to here
postgresql-18beta1/src/backend/access/gin/ginbtree.c:823:17: call_function: calling ‘ginFinishOldSplit’ from ‘ginInsertValue’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1270]
postgresql-18beta1/src/backend/access/gin/ginbtree.c:484:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘childpage’
postgresql-18beta1/src/backend/access/gin/ginbtree.c:816:1: enter_function: entry to ‘ginInsertValue’
postgresql-18beta1/src/backend/access/gin/ginbtree.c:822:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/gin/ginbtree.c:823:17: branch_true: ...to here
postgresql-18beta1/src/backend/access/gin/ginbtree.c:823:17: call_function: calling ‘ginFinishOldSplit’ from ‘ginInsertValue’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1271]
postgresql-18beta1/src/backend/access/gin/ginbtree.c:576:25: warning[-Wanalyzer-null-argument]: use of NULL ‘newrootpg’ where non-null expected
postgresql-18beta1/src/backend/access/gin/ginbtree.c:816:1: enter_function: entry to ‘ginInsertValue’
postgresql-18beta1/src/backend/access/gin/ginbtree.c:822:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/gin/ginbtree.c:823:17: branch_true: ...to here
postgresql-18beta1/src/backend/access/gin/ginbtree.c:823:17: call_function: calling ‘ginFinishOldSplit’ from ‘ginInsertValue’
Error: CPPCHECK_WARNING (CWE-457): [#def1272]
postgresql-18beta1/src/backend/access/gin/ginentrypage.c:630: error[legacyUninitvar]: Uninitialized variable: tupstore
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1273]
postgresql-18beta1/src/backend/access/gin/ginget.c:1712:61: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘category[<unknown>]’
postgresql-18beta1/src/backend/access/gin/ginget.c:1656:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/gin/ginget.c:1658:47: branch_true: ...to here
postgresql-18beta1/src/backend/access/gin/ginget.c:1660:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/gin/ginget.c:1662:54: branch_true: ...to here
postgresql-18beta1/src/backend/access/gin/ginget.c:1677:40: branch_true: following ‘true’ branch (when ‘StopLow < StopHigh’)...
postgresql-18beta1/src/backend/access/gin/ginget.c:1681:65: branch_true: ...to here
postgresql-18beta1/src/backend/access/gin/ginget.c:1687:44: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/gin/ginget.c:1692:44: branch_false: ...to here
postgresql-18beta1/src/backend/access/gin/ginget.c:1692:44: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/gin/ginget.c:1698:45: branch_false: ...to here
postgresql-18beta1/src/backend/access/gin/ginget.c:1698:44: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/gin/ginget.c:1706:45: branch_true: ...to here
postgresql-18beta1/src/backend/access/gin/ginget.c:1706:44: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/gin/ginget.c:1709:53: branch_true: ...to here
postgresql-18beta1/src/backend/access/gin/ginget.c:1709:52: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/gin/ginget.c:1712:61: branch_true: ...to here
postgresql-18beta1/src/backend/access/gin/ginget.c:1712:61: danger: use of uninitialized value ‘category[<unknown>]’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1274]
postgresql-18beta1/src/backend/access/gin/ginget.c:1725:55: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘category[<unknown>]’
postgresql-18beta1/src/backend/access/gin/ginget.c:1656:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/gin/ginget.c:1658:47: branch_true: ...to here
postgresql-18beta1/src/backend/access/gin/ginget.c:1660:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/gin/ginget.c:1662:54: branch_true: ...to here
postgresql-18beta1/src/backend/access/gin/ginget.c:1677:40: branch_true: following ‘true’ branch (when ‘StopLow < StopHigh’)...
postgresql-18beta1/src/backend/access/gin/ginget.c:1681:65: branch_true: ...to here
postgresql-18beta1/src/backend/access/gin/ginget.c:1687:44: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/gin/ginget.c:1692:44: branch_false: ...to here
postgresql-18beta1/src/backend/access/gin/ginget.c:1692:44: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/gin/ginget.c:1698:45: branch_false: ...to here
postgresql-18beta1/src/backend/access/gin/ginget.c:1698:44: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/gin/ginget.c:1706:45: branch_true: ...to here
postgresql-18beta1/src/backend/access/gin/ginget.c:1706:44: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/gin/ginget.c:1725:55: branch_false: ...to here
postgresql-18beta1/src/backend/access/gin/ginget.c:1725:55: danger: use of uninitialized value ‘category[<unknown>]’ here
Error: CPPCHECK_WARNING (CWE-457): [#def1275]
postgresql-18beta1/src/backend/access/gist/gistutil.c:207: error[uninitvar]: Uninitialized variable: &attrsize
Error: CPPCHECK_WARNING (CWE-457): [#def1276]
postgresql-18beta1/src/backend/access/gist/gistutil.c:276: error[uninitvar]: Uninitialized variable: &dstsize
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1277]
postgresql-18beta1/src/backend/access/hash/hashpage.c:1531:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
postgresql-18beta1/src/backend/access/hash/hashpage.c:1516:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/hash/hashpage.c:1521:21: branch_false: ...to here
postgresql-18beta1/src/backend/access/hash/hashpage.c:1529:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/hash/hashpage.c:1530:25: branch_true: ...to here
postgresql-18beta1/src/backend/access/hash/hashpage.c:1531:24: release_memory: using NULL here
postgresql-18beta1/src/backend/access/hash/hashpage.c:1531:17: danger: argument 1 (‘*rel.rd_amcache’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1278]
postgresql-18beta1/src/backend/access/hash/hashpage.c:1531:17: warning[-Wanalyzer-null-argument]: use of NULL ‘*rel.rd_amcache’ where non-null expected
postgresql-18beta1/src/backend/access/hash/hashpage.c:1559:1: enter_function: entry to ‘_hash_getbucketbuf_from_hashkey’
postgresql-18beta1/src/backend/access/hash/hashpage.c:1573:17: call_function: calling ‘_hash_getcachedmetap’ from ‘_hash_getbucketbuf_from_hashkey’
postgresql-18beta1/src/backend/access/hash/hashpage.c:1573:17: return_function: returning to ‘_hash_getbucketbuf_from_hashkey’ from ‘_hash_getcachedmetap’
postgresql-18beta1/src/backend/access/hash/hashpage.c:1592:23: call_function: calling ‘_hash_getbuf’ from ‘_hash_getbucketbuf_from_hashkey’
postgresql-18beta1/src/backend/access/hash/hashpage.c:1592:23: return_function: returning to ‘_hash_getbucketbuf_from_hashkey’ from ‘_hash_getbuf’
postgresql-18beta1/src/backend/access/hash/hashpage.c:1601:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/hash/hashpage.c:1605:17: call_function: inlined call to ‘_hash_relbuf’ from ‘_hash_getbucketbuf_from_hashkey’
postgresql-18beta1/src/backend/access/hash/hashpage.c:1606:25: call_function: calling ‘_hash_getcachedmetap’ from ‘_hash_getbucketbuf_from_hashkey’
Error: CPPCHECK_WARNING (CWE-457): [#def1279]
postgresql-18beta1/src/backend/access/heap/heapam.c:5880: error[legacyUninitvar]: Uninitialized variable: status
Error: CPPCHECK_WARNING (CWE-457): [#def1280]
postgresql-18beta1/src/backend/access/heap/heapam.c:6436: error[legacyUninitvar]: Uninitialized variable: ret
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1281]
postgresql-18beta1/src/backend/access/heap/heapam_xlog.c:882:63: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘<unknown>’
postgresql-18beta1/src/backend/access/heap/heapam_xlog.c:756:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/heap/heapam_xlog.c:797:13: branch_false: ...to here
postgresql-18beta1/src/backend/access/heap/heapam_xlog.c:828:12: branch_true: following ‘true’ branch (when ‘newaction == 0’)...
postgresql-18beta1/src/backend/access/heap/heapam_xlog.c:835:27: branch_true: ...to here
postgresql-18beta1/src/backend/access/heap/heapam_xlog.c:841:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/heap/heapam_xlog.c:844:21: branch_false: ...to here
postgresql-18beta1/src/backend/access/heap/heapam_xlog.c:844:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/heap/heapam_xlog.c:847:25: branch_true: ...to here
postgresql-18beta1/src/backend/access/heap/heapam_xlog.c:850:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/heap/heapam_xlog.c:857:17: branch_false: ...to here
postgresql-18beta1/src/backend/access/heap/heapam_xlog.c:871:20: branch_true: following ‘true’ branch (when ‘prefixlen != 0’)...
postgresql-18beta1/src/backend/access/heap/heapam_xlog.c:876:31: branch_true: ...to here
postgresql-18beta1/src/backend/access/heap/heapam_xlog.c:882:63: danger: dereference of NULL ‘oldtup.t_data’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1282]
postgresql-18beta1/src/backend/access/index/amvalidate.c:178:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/backend/access/index/amvalidate.c:152:1: enter_function: entry to ‘check_amproc_signature’
postgresql-18beta1/src/backend/access/index/amvalidate.c:162:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/index/amvalidate.c:164:35: call_function: inlined call to ‘GETSTRUCT’ from ‘check_amproc_signature’
postgresql-18beta1/src/backend/access/index/amvalidate.c:170:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/backend/access/index/amvalidate.c:171:21: branch_true: following ‘true’ branch (when ‘i < maxargs’)...
postgresql-18beta1/src/backend/access/index/amvalidate.c:173:41: branch_true: ...to here
postgresql-18beta1/src/backend/access/index/amvalidate.c:178:26: throw: if ‘IsBinaryCoercible’ throws an exception...
postgresql-18beta1/src/backend/access/index/amvalidate.c:178:26: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1283]
postgresql-18beta1/src/backend/access/nbtree/nbtpreprocesskeys.c:871:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘array’
postgresql-18beta1/src/backend/access/nbtree/nbtpreprocesskeys.c:1218:1: enter_function: entry to ‘_bt_skiparray_shrink’
postgresql-18beta1/src/backend/access/nbtree/nbtpreprocesskeys.c:1259:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/nbtree/nbtpreprocesskeys.c:1262:38: branch_true: ...to here
postgresql-18beta1/src/backend/access/nbtree/nbtpreprocesskeys.c:1262:38: call_function: calling ‘_bt_compare_scankey_args’ from ‘_bt_skiparray_shrink’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1284]
postgresql-18beta1/src/backend/access/nbtree/nbtsplitloc.c:1163:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘split’
postgresql-18beta1/src/backend/access/nbtree/nbtsplitloc.c:934:1: enter_function: entry to ‘_bt_strategy’
postgresql-18beta1/src/backend/access/nbtree/nbtsplitloc.c:954:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/nbtree/nbtsplitloc.c:961:9: branch_true: ...to here
postgresql-18beta1/src/backend/access/nbtree/nbtsplitloc.c:961:9: call_function: calling ‘_bt_interval_edges’ from ‘_bt_strategy’
postgresql-18beta1/src/backend/access/nbtree/nbtsplitloc.c:961:9: return_function: returning to ‘_bt_strategy’ from ‘_bt_interval_edges’
postgresql-18beta1/src/backend/access/nbtree/nbtsplitloc.c:962:20: release_memory: ‘leftinterval’ is NULL
postgresql-18beta1/src/backend/access/nbtree/nbtsplitloc.c:962:20: call_function: calling ‘_bt_split_lastleft’ from ‘_bt_strategy’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1285]
postgresql-18beta1/src/backend/access/nbtree/nbtsplitloc.c:1179:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘split’
postgresql-18beta1/src/backend/access/nbtree/nbtsplitloc.c:934:1: enter_function: entry to ‘_bt_strategy’
postgresql-18beta1/src/backend/access/nbtree/nbtsplitloc.c:954:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/nbtree/nbtsplitloc.c:961:9: branch_true: ...to here
postgresql-18beta1/src/backend/access/nbtree/nbtsplitloc.c:961:9: call_function: calling ‘_bt_interval_edges’ from ‘_bt_strategy’
postgresql-18beta1/src/backend/access/nbtree/nbtsplitloc.c:961:9: return_function: returning to ‘_bt_strategy’ from ‘_bt_interval_edges’
postgresql-18beta1/src/backend/access/nbtree/nbtsplitloc.c:963:21: release_memory: ‘rightinterval’ is NULL
postgresql-18beta1/src/backend/access/nbtree/nbtsplitloc.c:963:21: call_function: calling ‘_bt_split_firstright’ from ‘_bt_strategy’
Error: CPPCHECK_WARNING (CWE-476): [#def1286]
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:454: error[ctunullpointer]: Null pointer dereference: array
Error: CPPCHECK_WARNING (CWE-476): [#def1287]
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:454: warning[nullPointer]: Possible null pointer dereference: array
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1288]
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:454:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘array’
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:3217:1: enter_function: entry to ‘_bt_checkkeys_look_ahead’
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:3228:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:3235:12: branch_false: ...to here
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:3261:13: call_function: calling ‘_bt_tuple_before_array_skeys’ from ‘_bt_checkkeys_look_ahead’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1289]
postgresql-18beta1/src/backend/access/spgist/spgscan.c:123:17: warning[-Wanalyzer-null-argument]: use of NULL ‘distances’ where non-null expected
postgresql-18beta1/src/backend/access/spgist/spgscan.c:942:1: enter_function: entry to ‘spggetbitmap’
postgresql-18beta1/src/backend/access/spgist/spgscan.c:952:9: call_function: calling ‘spgWalk’ from ‘spggetbitmap’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1290]
postgresql-18beta1/src/backend/access/spgist/spgutils.c:803:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/access/spgist/spgutils.c:1002:1: enter_function: entry to ‘spgFormInnerTuple’
postgresql-18beta1/src/backend/access/spgist/spgutils.c:1045:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/spgist/spgutils.c:1045:13: branch_false: ...to here
postgresql-18beta1/src/backend/access/spgist/spgutils.c:1045:13: branch_false: following ‘false’ branch (when ‘nNodes <= 8191’)...
postgresql-18beta1/src/backend/access/spgist/spgutils.c:1051:34: branch_false: ...to here
postgresql-18beta1/src/backend/access/spgist/spgutils.c:1057:12: branch_true: following ‘true’ branch (when ‘hasPrefix != 0’)...
postgresql-18beta1/src/backend/access/spgist/spgutils.c:1058:17: branch_true: ...to here
postgresql-18beta1/src/backend/access/spgist/spgutils.c:1058:17: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/spgist/spgutils.c:1058:17: call_function: inlined call to ‘memcpyInnerDatum’ from ‘spgFormInnerTuple’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1291]
postgresql-18beta1/src/backend/access/spgist/spgutils.c:808:17: warning[-Wanalyzer-null-argument]: use of NULL ‘target’ where non-null expected
postgresql-18beta1/src/backend/access/spgist/spgutils.c:1002:1: enter_function: entry to ‘spgFormInnerTuple’
postgresql-18beta1/src/backend/access/spgist/spgutils.c:1045:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/spgist/spgutils.c:1045:13: branch_false: ...to here
postgresql-18beta1/src/backend/access/spgist/spgutils.c:1045:13: branch_false: following ‘false’ branch (when ‘nNodes <= 8191’)...
postgresql-18beta1/src/backend/access/spgist/spgutils.c:1051:34: branch_false: ...to here
postgresql-18beta1/src/backend/access/spgist/spgutils.c:1057:12: branch_true: following ‘true’ branch (when ‘hasPrefix != 0’)...
postgresql-18beta1/src/backend/access/spgist/spgutils.c:1058:17: branch_true: ...to here
postgresql-18beta1/src/backend/access/spgist/spgutils.c:1058:17: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/spgist/spgutils.c:1058:17: call_function: inlined call to ‘memcpyInnerDatum’ from ‘spgFormInnerTuple’
Error: CPPCHECK_WARNING (CWE-457): [#def1292]
postgresql-18beta1/src/backend/access/transam/commit_ts.c:452: warning[uninitvar]: Uninitialized variable: values
Error: CPPCHECK_WARNING (CWE-457): [#def1293]
postgresql-18beta1/src/backend/access/transam/commit_ts.c:493: warning[uninitvar]: Uninitialized variable: values
Error: CPPCHECK_WARNING (CWE-476): [#def1294]
postgresql-18beta1/src/backend/access/transam/twophase.c:1037: error[ctunullpointer]: Null pointer dereference: data
Error: CPPCHECK_WARNING (CWE-682): [#def1295]
postgresql-18beta1/src/backend/access/transam/xlog.c:1659: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1296]
postgresql-18beta1/src/backend/access/transam/xlogreader.c:79:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/backend/access/transam/xlogreader.c:78:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/backend/access/transam/xlogreader.c:79:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/src/backend/access/transam/xlogreader.c:79:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def1297]
postgresql-18beta1/src/backend/backup/basebackup.c:648: warning[uninitvar]: Uninitialized variable: endptr
Error: CPPCHECK_WARNING (CWE-457): [#def1298]
postgresql-18beta1/src/backend/backup/basebackup.c:648: warning[uninitvar]: Uninitialized variable: endtli
Error: CPPCHECK_WARNING (CWE-457): [#def1299]
postgresql-18beta1/src/backend/backup/basebackup_copy.c:418: warning[uninitvar]: Uninitialized variable: values
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1300]
postgresql-18beta1/src/backend/backup/basebackup_incremental.c:1021:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/backend/backup/basebackup_incremental.c:1020:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/backend/backup/basebackup_incremental.c:1021:26: throw: if ‘appendStringInfoVA’ throws an exception...
postgresql-18beta1/src/backend/backup/basebackup_incremental.c:1021:26: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1301]
postgresql-18beta1/src/backend/backup/walsummary.c:332:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/backend/backup/walsummary.c:331:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/backend/backup/walsummary.c:332:26: throw: if ‘appendStringInfoVA’ throws an exception...
postgresql-18beta1/src/backend/backup/walsummary.c:332:26: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1302]
postgresql-18beta1/src/backend/bootstrap/bootparse.c:1150:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/src/backend/bootstrap/bootparse.c:1108:6: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/bootstrap/bootparse.c:1114:28: branch_true: ...to here
postgresql-18beta1/src/backend/bootstrap/bootparse.c:1137:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/src/backend/bootstrap/bootparse.c:1139:7: branch_false: ...to here
postgresql-18beta1/src/backend/bootstrap/bootparse.c:1148:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/bootstrap/bootparse.c:1150:9: branch_false: ...to here
postgresql-18beta1/src/backend/bootstrap/bootparse.c:1150:9: danger: use of uninitialized value ‘yyss’ here
Error: CPPCHECK_WARNING (CWE-476): [#def1303]
postgresql-18beta1/src/backend/catalog/heap.c:3097: warning[nullPointer]: Possible null pointer dereference: conname
Error: CPPCHECK_WARNING (CWE-768): [#def1304]
postgresql-18beta1/src/backend/catalog/objectaddress.c:2327: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1305]
postgresql-18beta1/src/backend/catalog/objectaddress.c:2330: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1306]
postgresql-18beta1/src/backend/catalog/objectaddress.c:2334: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1307]
postgresql-18beta1/src/backend/catalog/objectaddress.c:2341: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(name)},(union ListCell){.ptr_value=(args)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1308]
postgresql-18beta1/src/backend/catalog/objectaddress.c:4985: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1309]
postgresql-18beta1/src/backend/catalog/objectaddress.c:5059: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1310]
postgresql-18beta1/src/backend/catalog/objectaddress.c:5165: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1311]
postgresql-18beta1/src/backend/catalog/objectaddress.c:5165: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1312]
postgresql-18beta1/src/backend/catalog/objectaddress.c:5245: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(ltype)},(union ListCell){.ptr_value=(rtype)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1313]
postgresql-18beta1/src/backend/catalog/objectaddress.c:5307: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(ltype)},(union ListCell){.ptr_value=(rtype)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1314]
postgresql-18beta1/src/backend/catalog/objectaddress.c:5427: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1315]
postgresql-18beta1/src/backend/catalog/objectaddress.c:5454: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1316]
postgresql-18beta1/src/backend/catalog/objectaddress.c:5481: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1317]
postgresql-18beta1/src/backend/catalog/objectaddress.c:5508: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1318]
postgresql-18beta1/src/backend/catalog/objectaddress.c:5535: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1319]
postgresql-18beta1/src/backend/catalog/objectaddress.c:6084: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1320]
postgresql-18beta1/src/backend/catalog/objectaddress.c:6084: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1321]
postgresql-18beta1/src/backend/catalog/objectaddress.c:6122: 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
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1322]
postgresql-18beta1/src/backend/catalog/partition.c:288:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘partexprs_item’
postgresql-18beta1/src/backend/catalog/partition.c:255:1: enter_function: entry to ‘has_partition_attrs’
postgresql-18beta1/src/backend/catalog/partition.c:263:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/catalog/partition.c:270:26: call_function: inlined call to ‘list_head’ from ‘has_partition_attrs’
postgresql-18beta1/src/backend/catalog/partition.c:271:9: branch_false: ...to here
postgresql-18beta1/src/backend/catalog/partition.c:271:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/catalog/partition.c:273:45: call_function: inlined call to ‘get_partition_col_attnum’ from ‘has_partition_attrs’
postgresql-18beta1/src/backend/catalog/partition.c:275:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/catalog/partition.c:288:37: branch_false: ...to here
postgresql-18beta1/src/backend/catalog/partition.c:288:37: danger: dereference of NULL ‘partexprs_item’
Error: COMPILER_WARNING (CWE-704): [#def1323]
postgresql-18beta1/src/backend/catalog/pg_type.c: scope_hint: In function ‘makeMultirangeTypeName’
postgresql-18beta1/src/backend/catalog/pg_type.c:959:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1324]
postgresql-18beta1/src/backend/catalog/pg_type.c:959:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: CPPCHECK_WARNING (CWE-768): [#def1325]
postgresql-18beta1/src/backend/catalog/toasting.c:324: 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
Error: CPPCHECK_WARNING (CWE-457): [#def1326]
postgresql-18beta1/src/backend/commands/conversioncmds.c:110: error[uninitvar]: Uninitialized variable: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1327]
postgresql-18beta1/src/backend/commands/copy.c:300:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rel’
postgresql-18beta1/src/backend/commands/copy.c:62:1: enter_function: entry to ‘DoCopy’
postgresql-18beta1/src/backend/commands/copy.c:112:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/commands/copy.c:284:25: call_function: inlined call to ‘newNode’ from ‘DoCopy’
postgresql-18beta1/src/backend/commands/copy.c:293:12: branch_true: following ‘true’ branch (when ‘is_from != 0’)...
postgresql-18beta1/src/backend/commands/copy.c:300:21: branch_true: ...to here
postgresql-18beta1/src/backend/commands/copy.c:300:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/commands/copy.c:300:38: branch_true: ...to here
postgresql-18beta1/src/backend/commands/copy.c:300:38: danger: dereference of NULL ‘rel’
Error: CPPCHECK_WARNING (CWE-457): [#def1328]
postgresql-18beta1/src/backend/commands/copy.c:443: error[legacyUninitvar]: Uninitialized variable: reject_limit
Error: CPPCHECK_WARNING (CWE-476): [#def1329]
postgresql-18beta1/src/backend/commands/extension.c:280: error[ctunullpointer]: Null pointer dereference: versionname
Error: CPPCHECK_WARNING (CWE-476): [#def1330]
postgresql-18beta1/src/backend/commands/extension.c:280: warning[nullPointer]: Possible null pointer dereference: versionname
Error: CPPCHECK_WARNING (CWE-476): [#def1331]
postgresql-18beta1/src/backend/commands/extension.c:3367: warning[nullPointer]: Possible null pointer dereference: versionName
Error: CPPCHECK_WARNING (CWE-457): [#def1332]
postgresql-18beta1/src/backend/commands/policy.c:128: error[legacyUninitvar]: Uninitialized variable: polcmd
Error: CPPCHECK_WARNING (CWE-457): [#def1333]
postgresql-18beta1/src/backend/commands/tablecmds.c:8994: warning[uninitvar]: Uninitialized variable: repl_val
Error: CPPCHECK_WARNING (CWE-457): [#def1334]
postgresql-18beta1/src/backend/commands/tablecmds.c:9068: warning[uninitvar]: Uninitialized variable: repl_val
Error: CPPCHECK_WARNING (CWE-768): [#def1335]
postgresql-18beta1/src/backend/commands/tablecmds.c:15773: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1336]
postgresql-18beta1/src/backend/commands/tablecmds.c:15773: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1337]
postgresql-18beta1/src/backend/commands/tablecmds.c:15781: 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
Error: CPPCHECK_WARNING (CWE-457): [#def1338]
postgresql-18beta1/src/backend/commands/tablespace.c:1068: warning[uninitvar]: Uninitialized variable: repl_val
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1339]
postgresql-18beta1/src/backend/executor/execJunk.c:176:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
postgresql-18beta1/src/backend/executor/execJunk.c:137:1: enter_function: entry to ‘ExecInitJunkFilterConversion’
postgresql-18beta1/src/backend/executor/execJunk.c:166:12: branch_true: following ‘true’ branch (when ‘cleanLength > 0’)...
postgresql-18beta1/src/backend/executor/execJunk.c:168:43: branch_true: ...to here
postgresql-18beta1/src/backend/executor/execJunk.c:169:21: call_function: inlined call to ‘list_head’ from ‘ExecInitJunkFilterConversion’
postgresql-18beta1/src/backend/executor/execJunk.c:170:17: branch_false: ...to here
postgresql-18beta1/src/backend/executor/execJunk.c:170:29: branch_true: following ‘true’ branch (when ‘i < cleanLength’)...
postgresql-18beta1/src/backend/executor/execJunk.c:172:29: branch_true: ...to here
postgresql-18beta1/src/backend/executor/execJunk.c:176:46: danger: dereference of NULL ‘t’
Error: CPPCHECK_WARNING (CWE-476): [#def1340]
postgresql-18beta1/src/backend/executor/execProcnode.c:391: warning[nullPointer]: Possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def1341]
postgresql-18beta1/src/backend/executor/execProcnode.c:412: warning[nullPointer]: Possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def1342]
postgresql-18beta1/src/backend/executor/execProcnode.c:438: error[ctunullpointer]: Null pointer dereference: node
Error: CPPCHECK_WARNING (CWE-476): [#def1343]
postgresql-18beta1/src/backend/executor/execProcnode.c:438: warning[nullPointer]: Possible null pointer dereference: node
Error: CPPCHECK_WARNING (CWE-476): [#def1344]
postgresql-18beta1/src/backend/executor/execProcnode.c:439: warning[nullPointer]: Possible null pointer dereference: node
Error: CPPCHECK_WARNING (CWE-457): [#def1345]
postgresql-18beta1/src/backend/executor/execScan.c:148: error[legacyUninitvar]: Uninitialized variable: relids
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1346]
postgresql-18beta1/src/backend/executor/execTuples.c:2474:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘isnull’
postgresql-18beta1/src/backend/executor/execTuples.c:2492:1: enter_function: entry to ‘do_text_output_multiline’
postgresql-18beta1/src/backend/executor/execTuples.c:2497:16: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/execTuples.c:2502:23: branch_true: ...to here
postgresql-18beta1/src/backend/executor/execTuples.c:2503:20: branch_true: following ‘true’ branch (when ‘eol’ is non-NULL)...
postgresql-18beta1/src/backend/executor/execTuples.c:2505:31: branch_true: ...to here
postgresql-18beta1/src/backend/executor/execTuples.c:2515:17: call_function: calling ‘do_tup_output’ from ‘do_text_output_multiline’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1347]
postgresql-18beta1/src/backend/executor/nodeAgg.c:630:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pergroupstate’
postgresql-18beta1/src/backend/executor/nodeAgg.c:2137:1: enter_function: entry to ‘initialize_hash_entry’
postgresql-18beta1/src/backend/executor/nodeAgg.c:2150:39: call_function: inlined call to ‘TupleHashEntryGetAdditional’ from ‘initialize_hash_entry’
postgresql-18beta1/src/backend/executor/nodeAgg.c:2156:9: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeAgg.c:2156:27: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeAgg.c:2158:46: branch_true: ...to here
postgresql-18beta1/src/backend/executor/nodeAgg.c:2161:17: call_function: calling ‘initialize_aggregate’ from ‘initialize_hash_entry’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1348]
postgresql-18beta1/src/backend/executor/nodeAgg.c:636:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pergroupstate’
postgresql-18beta1/src/backend/executor/nodeAgg.c:2137:1: enter_function: entry to ‘initialize_hash_entry’
postgresql-18beta1/src/backend/executor/nodeAgg.c:2150:39: call_function: inlined call to ‘TupleHashEntryGetAdditional’ from ‘initialize_hash_entry’
postgresql-18beta1/src/backend/executor/nodeAgg.c:2156:9: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeAgg.c:2156:27: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeAgg.c:2158:46: branch_true: ...to here
postgresql-18beta1/src/backend/executor/nodeAgg.c:2161:17: call_function: calling ‘initialize_aggregate’ from ‘initialize_hash_entry’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1349]
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1233:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘leftop’
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1198:9: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1214:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1220:25: branch_true: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1233:31: danger: dereference of NULL ‘leftop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1350]
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1265:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rightop’
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1158:1: enter_function: entry to ‘ExecIndexBuildScanKeys’
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1198:9: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1214:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1220:25: branch_true: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1226:43: call_function: inlined call to ‘get_leftop’ from ‘ExecIndexBuildScanKeys’
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1228:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1228:39: branch_true: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1233:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1234:35: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1233:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1237:25: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1238:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1265:29: danger: dereference of NULL ‘rightop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1351]
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1350:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘leftop’
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1198:9: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1329:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1350:39: danger: dereference of NULL ‘leftop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1352]
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1389:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rightop’
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1198:9: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1329:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1345:36: branch_true: following ‘true’ branch (when ‘leftop’ is non-NULL)...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1345:47: branch_true: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1350:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1351:43: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1350:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1354:33: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1360:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1360:37: branch_true: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1360:37: branch_false: following ‘false’ branch (when ‘varattno > 0’)...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1360:37: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1360:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1363:44: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1370:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1373:44: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1377:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1384:36: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1389:37: danger: dereference of NULL ‘rightop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1353]
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1474:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘leftop’
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1198:9: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1311:25: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1451:25: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1451:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1461:25: branch_true: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1469:28: branch_false: following ‘false’ branch (when ‘leftop’ is NULL)...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1474:31: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1474:31: danger: dereference of NULL ‘leftop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1354]
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1507:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rightop’
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1198:9: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1311:25: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1451:25: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1451:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1461:25: branch_true: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1469:28: branch_true: following ‘true’ branch (when ‘leftop’ is non-NULL)...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1469:39: branch_true: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1474:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1475:35: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1474:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1478:25: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1479:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1498:28: branch_false: following ‘false’ branch (when ‘rightop’ is NULL)...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1503:29: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1503:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1507:37: branch_true: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1507:37: danger: dereference of NULL ‘rightop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1355]
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1588:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘leftop’
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1198:9: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1311:25: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1451:25: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1451:25: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1570:25: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1570:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1581:25: branch_true: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1583:28: branch_false: following ‘false’ branch (when ‘leftop’ is NULL)...
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1588:31: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeIndexscan.c:1588:31: danger: dereference of NULL ‘leftop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1356]
postgresql-18beta1/src/backend/executor/nodeSetOp.c:127:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pergroup’
postgresql-18beta1/src/backend/executor/nodeSetOp.c:504:1: enter_function: entry to ‘setop_retrieve_hash_table’
postgresql-18beta1/src/backend/executor/nodeSetOp.c:517:16: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeSetOp.c:519:32: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeSetOp.c:528:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeSetOp.c:539:28: call_function: inlined call to ‘TupleHashEntryGetAdditional’ from ‘setop_retrieve_hash_table’
postgresql-18beta1/src/backend/executor/nodeSetOp.c:540:17: call_function: calling ‘set_output_count’ from ‘setop_retrieve_hash_table’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1357]
postgresql-18beta1/src/backend/executor/nodeSetOp.c:134:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pergroup’
postgresql-18beta1/src/backend/executor/nodeSetOp.c:504:1: enter_function: entry to ‘setop_retrieve_hash_table’
postgresql-18beta1/src/backend/executor/nodeSetOp.c:517:16: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeSetOp.c:519:32: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeSetOp.c:528:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeSetOp.c:539:28: call_function: inlined call to ‘TupleHashEntryGetAdditional’ from ‘setop_retrieve_hash_table’
postgresql-18beta1/src/backend/executor/nodeSetOp.c:540:17: call_function: calling ‘set_output_count’ from ‘setop_retrieve_hash_table’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1358]
postgresql-18beta1/src/backend/executor/nodeSetOp.c:138:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pergroup’
postgresql-18beta1/src/backend/executor/nodeSetOp.c:504:1: enter_function: entry to ‘setop_retrieve_hash_table’
postgresql-18beta1/src/backend/executor/nodeSetOp.c:517:16: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeSetOp.c:519:32: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeSetOp.c:528:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeSetOp.c:539:28: call_function: inlined call to ‘TupleHashEntryGetAdditional’ from ‘setop_retrieve_hash_table’
postgresql-18beta1/src/backend/executor/nodeSetOp.c:540:17: call_function: calling ‘set_output_count’ from ‘setop_retrieve_hash_table’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1359]
postgresql-18beta1/src/backend/executor/nodeSetOp.c:145:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pergroup’
postgresql-18beta1/src/backend/executor/nodeSetOp.c:504:1: enter_function: entry to ‘setop_retrieve_hash_table’
postgresql-18beta1/src/backend/executor/nodeSetOp.c:517:16: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeSetOp.c:519:32: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeSetOp.c:528:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeSetOp.c:539:28: call_function: inlined call to ‘TupleHashEntryGetAdditional’ from ‘setop_retrieve_hash_table’
postgresql-18beta1/src/backend/executor/nodeSetOp.c:540:17: call_function: calling ‘set_output_count’ from ‘setop_retrieve_hash_table’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1360]
postgresql-18beta1/src/backend/executor/nodeSetOp.c:446:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/executor/nodeSetOp.c:433:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeSetOp.c:444:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/executor/nodeSetOp.c:446:25: branch_true: ...to here
postgresql-18beta1/src/backend/executor/nodeSetOp.c:446:25: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1361]
postgresql-18beta1/src/backend/executor/nodeSetOp.c:451:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/executor/nodeSetOp.c:433:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeSetOp.c:444:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeSetOp.c:451:17: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeSetOp.c:451:17: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1362]
postgresql-18beta1/src/backend/executor/nodeSetOp.c:487:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/executor/nodeSetOp.c:407:1: enter_function: entry to ‘setop_fill_hash_table’
postgresql-18beta1/src/backend/executor/nodeSetOp.c:442:28: call_function: inlined call to ‘TupleHashEntryGetAdditional’ from ‘setop_fill_hash_table’
postgresql-18beta1/src/backend/executor/nodeSetOp.c:461:12: branch_true: following ‘true’ branch (when ‘have_tuples != 0’)...
postgresql-18beta1/src/backend/executor/nodeSetOp.c:461:12: branch_true: ...to here
postgresql-18beta1/src/backend/executor/nodeSetOp.c:474:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeSetOp.c:487:33: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1363]
postgresql-18beta1/src/backend/lib/pairingheap.c:275:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pairs’
postgresql-18beta1/src/backend/lib/pairingheap.c:251:20: branch_true: following ‘true’ branch (when ‘next’ is NULL)...
postgresql-18beta1/src/backend/lib/pairingheap.c:275:9: branch_true: ...to here
postgresql-18beta1/src/backend/lib/pairingheap.c:275:9: danger: dereference of NULL ‘pairs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1364]
postgresql-18beta1/src/backend/libpq/auth.c:673:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/src/backend/libpq/auth.c:1920:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/src/backend/libpq/auth.c:1940:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: acquire_memory: allocated here
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1955:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/src/backend/libpq/auth.c:1957:28: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1960:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1365]
postgresql-18beta1/src/backend/libpq/auth.c:675:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/src/backend/libpq/auth.c:1920:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/src/backend/libpq/auth.c:1940:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: acquire_memory: allocated here
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1955:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/src/backend/libpq/auth.c:1957:28: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1960:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1366]
postgresql-18beta1/src/backend/libpq/auth.c:680:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/src/backend/libpq/auth.c:1920:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/src/backend/libpq/auth.c:1940:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: acquire_memory: allocated here
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1955:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/src/backend/libpq/auth.c:1957:28: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1960:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1367]
postgresql-18beta1/src/backend/libpq/auth.c:688:17: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/src/backend/libpq/auth.c:1920:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/src/backend/libpq/auth.c:1940:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: acquire_memory: allocated here
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1955:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/src/backend/libpq/auth.c:1957:28: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1960:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1368]
postgresql-18beta1/src/backend/libpq/auth.c:690:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/src/backend/libpq/auth.c:1920:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/src/backend/libpq/auth.c:1940:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: acquire_memory: allocated here
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1955:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/src/backend/libpq/auth.c:1957:28: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1960:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1369]
postgresql-18beta1/src/backend/libpq/auth.c:704:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/src/backend/libpq/auth.c:1920:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/src/backend/libpq/auth.c:1940:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: acquire_memory: allocated here
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1955:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/src/backend/libpq/auth.c:1957:28: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1960:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: return_function: returning to ‘pam_passwd_conv_proc’ from ‘sendAuthRequest’
postgresql-18beta1/src/backend/libpq/auth.c:1968:50: call_function: calling ‘recv_password_packet’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1370]
postgresql-18beta1/src/backend/libpq/auth.c:707:17: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/src/backend/libpq/auth.c:1920:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/src/backend/libpq/auth.c:1940:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: acquire_memory: allocated here
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1955:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/src/backend/libpq/auth.c:1957:28: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1960:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: return_function: returning to ‘pam_passwd_conv_proc’ from ‘sendAuthRequest’
postgresql-18beta1/src/backend/libpq/auth.c:1968:50: call_function: calling ‘recv_password_packet’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1371]
postgresql-18beta1/src/backend/libpq/auth.c:716:25: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/src/backend/libpq/auth.c:1920:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/src/backend/libpq/auth.c:1940:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: acquire_memory: allocated here
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1955:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/src/backend/libpq/auth.c:1957:28: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1960:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: return_function: returning to ‘pam_passwd_conv_proc’ from ‘sendAuthRequest’
postgresql-18beta1/src/backend/libpq/auth.c:1968:50: call_function: calling ‘recv_password_packet’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1372]
postgresql-18beta1/src/backend/libpq/auth.c:723:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/src/backend/libpq/auth.c:1920:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/src/backend/libpq/auth.c:1940:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: acquire_memory: allocated here
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1955:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/src/backend/libpq/auth.c:1957:28: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1960:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: return_function: returning to ‘pam_passwd_conv_proc’ from ‘sendAuthRequest’
postgresql-18beta1/src/backend/libpq/auth.c:1968:50: call_function: calling ‘recv_password_packet’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1373]
postgresql-18beta1/src/backend/libpq/auth.c:724:13: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/src/backend/libpq/auth.c:1920:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/src/backend/libpq/auth.c:1940:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: acquire_memory: allocated here
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1955:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/src/backend/libpq/auth.c:1957:28: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1960:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: return_function: returning to ‘pam_passwd_conv_proc’ from ‘sendAuthRequest’
postgresql-18beta1/src/backend/libpq/auth.c:1968:50: call_function: calling ‘recv_password_packet’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1374]
postgresql-18beta1/src/backend/libpq/auth.c:1985:33: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/backend/libpq/auth.c:1940:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1955:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/src/backend/libpq/auth.c:1957:28: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1960:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1980:43: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1980:54: acquire_memory: allocated here
postgresql-18beta1/src/backend/libpq/auth.c:1980:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1982:33: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1955:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/src/backend/libpq/auth.c:1957:28: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1985:33: throw: if ‘errstart’ throws an exception...
postgresql-18beta1/src/backend/libpq/auth.c:1985:33: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1375]
postgresql-18beta1/src/backend/libpq/auth.c:1985:33: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/src/backend/libpq/auth.c:1940:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: acquire_memory: allocated here
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1955:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/src/backend/libpq/auth.c:1957:28: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1985:33: throw: if ‘errstart’ throws an exception...
postgresql-18beta1/src/backend/libpq/auth.c:1985:33: danger: ‘reply’ leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1376]
postgresql-18beta1/src/backend/libpq/auth.c:1996:33: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/backend/libpq/auth.c:1940:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1955:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/src/backend/libpq/auth.c:1957:28: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1960:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1980:43: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1980:54: acquire_memory: allocated here
postgresql-18beta1/src/backend/libpq/auth.c:1980:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1982:33: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1955:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/src/backend/libpq/auth.c:1957:28: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1996:33: throw: if ‘errstart’ throws an exception...
postgresql-18beta1/src/backend/libpq/auth.c:1996:33: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1377]
postgresql-18beta1/src/backend/libpq/auth.c:1996:33: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/src/backend/libpq/auth.c:1940:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: acquire_memory: allocated here
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1955:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/src/backend/libpq/auth.c:1957:28: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1996:33: throw: if ‘errstart’ throws an exception...
postgresql-18beta1/src/backend/libpq/auth.c:1996:33: danger: ‘reply’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1378]
postgresql-18beta1/src/backend/libpq/auth.c:2832:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data’
postgresql-18beta1/src/backend/libpq/auth.c:2932:1: enter_function: entry to ‘PerformRadiusTransaction’
postgresql-18beta1/src/backend/libpq/auth.c:2972:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:2986:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:2993:22: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:3010:21: branch_false: following ‘false’ branch (when ‘i >= encryptedpasswordlen’)...
postgresql-18beta1/src/backend/libpq/auth.c:3041:9: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:3043:9: call_function: calling ‘radius_add_attribute’ from ‘PerformRadiusTransaction’
Error: CPPCHECK_WARNING (CWE-457): [#def1379]
postgresql-18beta1/src/backend/libpq/auth.c:3043: warning[uninitvar]: Uninitialized variable: encryptedpassword
Error: CPPCHECK_WARNING (CWE-457): [#def1380]
postgresql-18beta1/src/backend/libpq/be-fsstubs.c:523: warning[uninitvar]: Uninitialized variable: fd
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1381]
postgresql-18beta1/src/backend/libpq/crypt.c:99:13: warning[-Wanalyzer-null-argument]: use of NULL ‘shadow_pass’ where non-null expected
postgresql-18beta1/src/backend/libpq/crypt.c:117:1: enter_function: entry to ‘encrypt_password’
postgresql-18beta1/src/backend/libpq/crypt.c:163:12: branch_false: following ‘false’ branch (when ‘encrypted_password’ is NULL)...
postgresql-18beta1/src/backend/libpq/crypt.c:179:13: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/crypt.c:179:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/libpq/crypt.c:180:17: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/crypt.c:180:17: call_function: calling ‘get_password_type’ from ‘encrypt_password’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1382]
postgresql-18beta1/src/backend/libpq/hba.c:1353:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/libpq/hba.c:1328:1: enter_function: entry to ‘parse_hba_line’
postgresql-18beta1/src/backend/libpq/hba.c:1352:17: call_function: inlined call to ‘list_head’ from ‘parse_hba_line’
postgresql-18beta1/src/backend/libpq/hba.c:1353:9: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/hba.c:1353:9: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1383]
postgresql-18beta1/src/backend/libpq/hba.c:2768:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/libpq/hba.c:2751:1: enter_function: entry to ‘parse_ident_line’
postgresql-18beta1/src/backend/libpq/hba.c:2762:17: call_function: inlined call to ‘list_head’ from ‘parse_ident_line’
postgresql-18beta1/src/backend/libpq/hba.c:2764:22: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/hba.c:2768:9: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1384]
postgresql-18beta1/src/backend/libpq/pqcomm.c:553:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
postgresql-18beta1/src/backend/libpq/pqcomm.c:447:12: branch_true: following ‘true’ branch (when ‘family == 1’)...
postgresql-18beta1/src/backend/libpq/pqcomm.c:453:17: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/pqcomm.c:454:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/pqcomm.c:462:21: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/pqcomm.c:473:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/pqcomm.c:488:28: branch_true: following ‘true’ branch (when ‘addr’ is non-NULL)...
postgresql-18beta1/src/backend/libpq/pqcomm.c:490:20: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/pqcomm.c:490:20: branch_false: following ‘false’ branch (when ‘family == 1’)...
postgresql-18beta1/src/backend/libpq/pqcomm.c:500:21: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/pqcomm.c:500:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/pqcomm.c:509:25: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/pqcomm.c:529:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/libpq/pqcomm.c:541:27: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/pqcomm.c:541:27: acquire_resource: stream socket created here
postgresql-18beta1/src/backend/libpq/pqcomm.c:541:20: branch_false: following ‘false’ branch (when ‘fd != -1’)...
postgresql-18beta1/src/backend/libpq/pqcomm.c:553:21: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/pqcomm.c:553:21: throw: if ‘fcntl’ throws an exception...
postgresql-18beta1/src/backend/libpq/pqcomm.c:553:21: danger: ‘fd’ leaks here
Error: CPPCHECK_WARNING (CWE-768): [#def1385]
postgresql-18beta1/src/backend/nodes/makefuncs.c:714: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftop)},(union ListCell){.ptr_value=(rightop)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1386]
postgresql-18beta1/src/backend/nodes/makefuncs.c:786: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(qual1)},(union ListCell){.ptr_value=(qual2)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1387]
postgresql-18beta1/src/backend/optimizer/path/indxpath.c:3931: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(rightop)},(union ListCell){.ptr_value=(leftop)}' depends on order of evaluation of side effects
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1388]
postgresql-18beta1/src/backend/optimizer/plan/analyzejoins.c:1227:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lg’
postgresql-18beta1/src/backend/optimizer/plan/analyzejoins.c:973:1: enter_function: entry to ‘rel_is_distinct_for’
postgresql-18beta1/src/backend/optimizer/plan/analyzejoins.c:1053:21: call_function: calling ‘query_is_distinct_for’ from ‘rel_is_distinct_for’
Error: CPPCHECK_WARNING (CWE-768): [#def1389]
postgresql-18beta1/src/backend/optimizer/plan/initsplan.c:1417: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftjoinlist)},(union ListCell){.ptr_value=(rightjoinlist)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1390]
postgresql-18beta1/src/backend/optimizer/plan/initsplan.c:1440: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftpart)},(union ListCell){.ptr_value=(rightpart)}' depends on order of evaluation of side effects
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1391]
postgresql-18beta1/src/backend/optimizer/plan/initsplan.c:2900:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sjinfo’
postgresql-18beta1/src/backend/optimizer/plan/initsplan.c:1616:1: enter_function: entry to ‘process_security_barrier_quals’
postgresql-18beta1/src/backend/optimizer/plan/initsplan.c:1629:9: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/optimizer/plan/initsplan.c:1639:17: call_function: calling ‘distribute_quals_to_rels’ from ‘process_security_barrier_quals’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1392]
postgresql-18beta1/src/backend/optimizer/plan/planner.c:4058:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘partially_grouped_rel’
postgresql-18beta1/src/backend/optimizer/plan/planner.c:4024:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/optimizer/plan/planner.c:4045:9: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/plan/planner.c:4045:9: release_memory: ‘partially_grouped_rel’ is NULL
postgresql-18beta1/src/backend/optimizer/plan/planner.c:4048:12: branch_false: following ‘false’ branch (when ‘patype == 0’)...
postgresql-18beta1/src/backend/optimizer/plan/planner.c:4054:13: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/plan/planner.c:4054:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/optimizer/plan/planner.c:4058:21: branch_true: ...to here
postgresql-18beta1/src/backend/optimizer/plan/planner.c:4058:21: danger: dereference of NULL ‘partially_grouped_rel’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1393]
postgresql-18beta1/src/backend/optimizer/plan/planner.c:5737:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘orig_tlist_item’
postgresql-18beta1/src/backend/optimizer/plan/planner.c:5722:1: enter_function: entry to ‘postprocess_setop_tlist’
postgresql-18beta1/src/backend/optimizer/plan/planner.c:5725:39: call_function: inlined call to ‘list_head’ from ‘postprocess_setop_tlist’
postgresql-18beta1/src/backend/optimizer/plan/planner.c:5727:9: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/plan/planner.c:5727:9: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/optimizer/plan/planner.c:5733:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/optimizer/plan/planner.c:5737:17: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/plan/planner.c:5737:17: danger: dereference of NULL ‘orig_tlist_item’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1394]
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8229:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lg’
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8204:1: enter_function: entry to ‘generate_setop_child_grouplist’
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8211:14: call_function: inlined call to ‘list_head’ from ‘generate_setop_child_grouplist’
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8212:24: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8212:14: call_function: inlined call to ‘list_head’ from ‘generate_setop_child_grouplist’
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8213:9: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8213:9: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8220:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8229:17: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8229:17: danger: dereference of NULL ‘lg’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1395]
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8230:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ct’
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8204:1: enter_function: entry to ‘generate_setop_child_grouplist’
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8211:14: call_function: inlined call to ‘list_head’ from ‘generate_setop_child_grouplist’
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8212:14: call_function: inlined call to ‘list_head’ from ‘generate_setop_child_grouplist’
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8213:9: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8213:9: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8220:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8229:17: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/plan/planner.c:8230:17: danger: dereference of NULL ‘ct’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1396]
postgresql-18beta1/src/backend/optimizer/plan/setrefs.c:2090:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*root.grouping_map’
postgresql-18beta1/src/backend/optimizer/plan/setrefs.c:3633:1: enter_function: entry to ‘extract_query_dependencies’
postgresql-18beta1/src/backend/optimizer/plan/setrefs.c:3653:16: call_function: calling ‘extract_query_dependencies_walker’ from ‘extract_query_dependencies’
Error: CPPCHECK_WARNING (CWE-476): [#def1397]
postgresql-18beta1/src/backend/optimizer/plan/setrefs.c:2186: warning[nullPointer]: Possible null pointer dereference: bestplan
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1398]
postgresql-18beta1/src/backend/optimizer/plan/setrefs.c:2186:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bestplan’
postgresql-18beta1/src/backend/optimizer/plan/setrefs.c:3124:1: enter_function: entry to ‘fix_join_expr_mutator’
postgresql-18beta1/src/backend/optimizer/plan/setrefs.c:3128:12: branch_false: following ‘false’ branch (when ‘node’ is non-NULL)...
postgresql-18beta1/src/backend/optimizer/plan/setrefs.c:3130:13: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/plan/setrefs.c:3130:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/optimizer/plan/setrefs.c:3186:12: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/plan/setrefs.c:3232:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/optimizer/plan/setrefs.c:3234:12: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/plan/setrefs.c:3234:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/optimizer/plan/setrefs.c:3235:24: branch_true: ...to here
postgresql-18beta1/src/backend/optimizer/plan/setrefs.c:3235:24: call_function: calling ‘fix_alternative_subplan’ from ‘fix_join_expr_mutator’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1399]
postgresql-18beta1/src/backend/optimizer/prep/preptlist.c:121:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘target_rte’
postgresql-18beta1/src/backend/optimizer/prep/preptlist.c:80:12: branch_false: following ‘false’ branch (when ‘result_relation == 0’)...
postgresql-18beta1/src/backend/optimizer/prep/preptlist.c:105:9: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/prep/preptlist.c:106:12: branch_false: following ‘false’ branch (when ‘command_type != 3’)...
postgresql-18beta1/src/backend/optimizer/prep/preptlist.c:108:17: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/prep/preptlist.c:108:17: branch_false: following ‘false’ branch (when ‘command_type != 2’)...
postgresql-18beta1/src/backend/optimizer/prep/preptlist.c:119:14: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/prep/preptlist.c:121:18: danger: dereference of NULL ‘target_rte’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1400]
postgresql-18beta1/src/backend/optimizer/prep/preptlist.c:398:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rel’
postgresql-18beta1/src/backend/optimizer/prep/preptlist.c:64:1: enter_function: entry to ‘preprocess_targetlist’
postgresql-18beta1/src/backend/optimizer/prep/preptlist.c:80:12: branch_false: following ‘false’ branch (when ‘result_relation == 0’)...
postgresql-18beta1/src/backend/optimizer/prep/preptlist.c:105:9: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/prep/preptlist.c:106:12: branch_true: following ‘true’ branch (when ‘command_type == 3’)...
postgresql-18beta1/src/backend/optimizer/prep/preptlist.c:107:25: branch_true: ...to here
postgresql-18beta1/src/backend/optimizer/prep/preptlist.c:107:25: call_function: calling ‘expand_insert_targetlist’ from ‘preprocess_targetlist’
Error: CPPCHECK_WARNING (CWE-768): [#def1401]
postgresql-18beta1/src/backend/optimizer/prep/prepunion.c:413: 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
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1402]
postgresql-18beta1/src/backend/optimizer/prep/prepunion.c:1521:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘curColType’
postgresql-18beta1/src/backend/optimizer/prep/prepunion.c:1508:9: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/optimizer/prep/prepunion.c:1515:17: branch_true: following ‘true’ branch (when ‘subtlist’ is non-NULL)...
postgresql-18beta1/src/backend/optimizer/prep/prepunion.c:1515:17: branch_true: ...to here
postgresql-18beta1/src/backend/optimizer/prep/prepunion.c:1521:64: danger: dereference of NULL ‘curColType’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1403]
postgresql-18beta1/src/backend/optimizer/prep/prepunion.c:1613:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lg’
postgresql-18beta1/src/backend/optimizer/prep/prepunion.c:1594:1: enter_function: entry to ‘generate_setop_grouplist’
postgresql-18beta1/src/backend/optimizer/prep/prepunion.c:1600:14: call_function: inlined call to ‘list_head’ from ‘generate_setop_grouplist’
postgresql-18beta1/src/backend/optimizer/prep/prepunion.c:1601:9: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/prep/prepunion.c:1601:9: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/optimizer/prep/prepunion.c:1613:17: danger: dereference of NULL ‘lg’
Error: COMPILER_WARNING (CWE-457): [#def1404]
postgresql-18beta1/src/backend/optimizer/util/clauses.c: scope_hint: In function ‘recheck_cast_function_args.isra.0’
postgresql-18beta1/src/backend/optimizer/util/clauses.c:4404:19: warning[-Wmaybe-uninitialized]: ‘actual_arg_types’ may be used uninitialized
postgresql-18beta1/src/backend/optimizer/util/clauses.c:42: included_from: Included from here.
postgresql-18beta1/src/include/parser/parse_coerce.h:85:17: note: by argument 1 of type ‘const Oid *’ to ‘enforce_generic_type_consistency’ declared here
postgresql-18beta1/src/backend/optimizer/util/clauses.c:4390:33: note: ‘actual_arg_types’ declared here
Error: CPPCHECK_WARNING (CWE-768): [#def1405]
postgresql-18beta1/src/backend/optimizer/util/relnode.c:2483: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(larg)},(union ListCell){.ptr_value=(rarg)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1406]
postgresql-18beta1/src/backend/optimizer/util/restrictinfo.c:365: 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
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1407]
postgresql-18beta1/src/backend/parser/analyze.c:368:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stmt’
postgresql-18beta1/src/backend/parser/analyze.c:3246:1: enter_function: entry to ‘transformCreateTableAsStmt’
postgresql-18beta1/src/backend/parser/analyze.c:3252:17: call_function: calling ‘transformStmt’ from ‘transformCreateTableAsStmt’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1408]
postgresql-18beta1/src/backend/parser/analyze.c:1870:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘leftmostSelect’
postgresql-18beta1/src/backend/parser/analyze.c:3246:1: enter_function: entry to ‘transformCreateTableAsStmt’
postgresql-18beta1/src/backend/parser/analyze.c:3252:17: call_function: calling ‘transformStmt’ from ‘transformCreateTableAsStmt’
Error: CPPCHECK_WARNING (CWE-768): [#def1409]
postgresql-18beta1/src/backend/parser/analyze.c:2335: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lcolnode)},(union ListCell){.ptr_value=(rcolnode)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1410]
postgresql-18beta1/src/backend/parser/analyze.c:2390: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lcolnode)},(union ListCell){.ptr_value=(rcolnode)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1411]
postgresql-18beta1/src/backend/parser/analyze.c:2403: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lcolnode)},(union ListCell){.ptr_value=(rcolnode)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1412]
postgresql-18beta1/src/backend/parser/gram.y:1879: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1413]
postgresql-18beta1/src/backend/parser/gram.y:4428: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].list)},(union ListCell){.ptr_value=(yyvsp[-1].node)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1414]
postgresql-18beta1/src/backend/parser/gram.y:4429: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=((struct List*)NULL)},(union ListCell){.ptr_value=(NULL)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1415]
postgresql-18beta1/src/backend/parser/gram.y:4472: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1416]
postgresql-18beta1/src/backend/parser/gram.y:4477: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1417]
postgresql-18beta1/src/backend/parser/gram.y:5344: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1418]
postgresql-18beta1/src/backend/parser/gram.y:5424: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1419]
postgresql-18beta1/src/backend/parser/gram.y:6091: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1420]
postgresql-18beta1/src/backend/parser/gram.y:6098: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1421]
postgresql-18beta1/src/backend/parser/gram.y:6100: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1422]
postgresql-18beta1/src/backend/parser/gram.y:6102: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1423]
postgresql-18beta1/src/backend/parser/gram.y:6104: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1424]
postgresql-18beta1/src/backend/parser/gram.y:6106: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1425]
postgresql-18beta1/src/backend/parser/gram.y:7238: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1426]
postgresql-18beta1/src/backend/parser/gram.y:7274: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1427]
postgresql-18beta1/src/backend/parser/gram.y:7310: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1428]
postgresql-18beta1/src/backend/parser/gram.y:8669: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1429]
postgresql-18beta1/src/backend/parser/gram.y:8673: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1430]
postgresql-18beta1/src/backend/parser/gram.y:8677: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1431]
postgresql-18beta1/src/backend/parser/gram.y:8821: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1432]
postgresql-18beta1/src/backend/parser/gram.y:9101: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1433]
postgresql-18beta1/src/backend/parser/gram.y:9103: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1434]
postgresql-18beta1/src/backend/parser/gram.y:9105: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1435]
postgresql-18beta1/src/backend/parser/gram.y:9221: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1436]
postgresql-18beta1/src/backend/parser/gram.y:9255: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1437]
postgresql-18beta1/src/backend/parser/gram.y:9259: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1438]
postgresql-18beta1/src/backend/parser/gram.y:9263: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1439]
postgresql-18beta1/src/backend/parser/gram.y:9267: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1440]
postgresql-18beta1/src/backend/parser/gram.y:9277: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1441]
postgresql-18beta1/src/backend/parser/gram.y:11755: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1442]
postgresql-18beta1/src/backend/parser/gram.y:11767: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1443]
postgresql-18beta1/src/backend/parser/gram.y:13879: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1444]
postgresql-18beta1/src/backend/parser/gram.y:13883: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1445]
postgresql-18beta1/src/backend/parser/gram.y:13890: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1446]
postgresql-18beta1/src/backend/parser/gram.y:13897: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1447]
postgresql-18beta1/src/backend/parser/gram.y:13901: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1448]
postgresql-18beta1/src/backend/parser/gram.y:13930: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1449]
postgresql-18beta1/src/backend/parser/gram.y:14056: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1450]
postgresql-18beta1/src/backend/parser/gram.y:14074: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1451]
postgresql-18beta1/src/backend/parser/gram.y:14528: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1452]
postgresql-18beta1/src/backend/parser/gram.y:14914: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1453]
postgresql-18beta1/src/backend/parser/gram.y:14970: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1454]
postgresql-18beta1/src/backend/parser/gram.y:15041: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1455]
postgresql-18beta1/src/backend/parser/gram.y:15055: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1456]
postgresql-18beta1/src/backend/parser/gram.y:15069: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1457]
postgresql-18beta1/src/backend/parser/gram.y:15083: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1458]
postgresql-18beta1/src/backend/parser/gram.y:15102: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1459]
postgresql-18beta1/src/backend/parser/gram.y:15120: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1460]
postgresql-18beta1/src/backend/parser/gram.y:15256: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1461]
postgresql-18beta1/src/backend/parser/gram.y:15264: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1462]
postgresql-18beta1/src/backend/parser/gram.y:15272: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1463]
postgresql-18beta1/src/backend/parser/gram.y:15280: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1464]
postgresql-18beta1/src/backend/parser/gram.y:15383: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1465]
postgresql-18beta1/src/backend/parser/gram.y:15398: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1466]
postgresql-18beta1/src/backend/parser/gram.y:15915: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1467]
postgresql-18beta1/src/backend/parser/gram.y:16074: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1468]
postgresql-18beta1/src/backend/parser/gram.y:16086: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1469]
postgresql-18beta1/src/backend/parser/gram.y:16103: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1470]
postgresql-18beta1/src/backend/parser/gram.y:16103: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1471]
postgresql-18beta1/src/backend/parser/gram.y:16780: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1472]
postgresql-18beta1/src/backend/parser/gram.y:16810: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1473]
postgresql-18beta1/src/backend/parser/gram.y:16810: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1474]
postgresql-18beta1/src/backend/parser/gram.y:16810: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1475]
postgresql-18beta1/src/backend/parser/gram.y:16815: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1476]
postgresql-18beta1/src/backend/parser/gram.y:16815: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1477]
postgresql-18beta1/src/backend/parser/gram.y:16821: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1478]
postgresql-18beta1/src/backend/parser/gram.y:16844: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1479]
postgresql-18beta1/src/backend/parser/gram.y:16844: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1480]
postgresql-18beta1/src/backend/parser/gram.y:16849: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1481]
postgresql-18beta1/src/backend/parser/gram.y:16849: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1482]
postgresql-18beta1/src/backend/parser/gram.y:16860: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1483]
postgresql-18beta1/src/backend/parser/gram.y:16875: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1484]
postgresql-18beta1/src/backend/parser/gram.y:16875: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1485]
postgresql-18beta1/src/backend/parser/gram.y:16881: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1486]
postgresql-18beta1/src/backend/parser/gram.y:16881: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1487]
postgresql-18beta1/src/backend/parser/gram.y:17062: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-2].node)},(union ListCell){.ptr_value=(NULL)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1488]
postgresql-18beta1/src/backend/parser/gram.y:17064: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(NULL)},(union ListCell){.ptr_value=(yyvsp[-2].node)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1489]
postgresql-18beta1/src/backend/parser/gram.y:17066: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(yyvsp[-5].node)},(union ListCell){.ptr_value=(yyvsp[-2].node)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1490]
postgresql-18beta1/src/backend/parser/gram.y:17068: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(NULL)},(union ListCell){.ptr_value=(NULL)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-457): [#def1491]
postgresql-18beta1/src/backend/parser/gram.y:17104: error[legacyUninitvar]: Uninitialized variable: encoding
Error: CPPCHECK_WARNING (CWE-768): [#def1492]
postgresql-18beta1/src/backend/parser/gram.y:17454: 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
Error: CPPCHECK_WARNING (CWE-457): [#def1493]
postgresql-18beta1/src/backend/parser/gram.y:17548: error[legacyUninitvar]: Uninitialized variable: n
Error: CPPCHECK_WARNING (CWE-768): [#def1494]
postgresql-18beta1/src/backend/parser/gram.y:19077: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1495]
postgresql-18beta1/src/backend/parser/gram.y:19188: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1496]
postgresql-18beta1/src/backend/parser/gram.y:19200: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1497]
postgresql-18beta1/src/backend/parser/gram.y:19269: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lexpr)},(union ListCell){.ptr_value=(rexpr)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1498]
postgresql-18beta1/src/backend/parser/gram.y:19286: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lexpr)},(union ListCell){.ptr_value=(rexpr)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1499]
postgresql-18beta1/src/backend/parser/parse_agg.c:2217: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1500]
postgresql-18beta1/src/backend/parser/parse_clause.c:1676: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1501]
postgresql-18beta1/src/backend/parser/parse_clause.c:1680: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1502]
postgresql-18beta1/src/backend/parser/parse_clause.c:1748: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1503]
postgresql-18beta1/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
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1504]
postgresql-18beta1/src/backend/parser/parse_collate.c:972:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘h_cell’
postgresql-18beta1/src/backend/parser/parse_collate.c:955:1: enter_function: entry to ‘assign_hypothetical_collations’
postgresql-18beta1/src/backend/parser/parse_collate.c:958:30: call_function: inlined call to ‘list_head’ from ‘assign_hypothetical_collations’
postgresql-18beta1/src/backend/parser/parse_collate.c:959:40: branch_false: ...to here
postgresql-18beta1/src/backend/parser/parse_collate.c:959:30: call_function: inlined call to ‘list_head’ from ‘assign_hypothetical_collations’
postgresql-18beta1/src/backend/parser/parse_collate.c:964:34: call_function: inlined call to ‘list_length’ from ‘assign_hypothetical_collations’
postgresql-18beta1/src/backend/parser/parse_collate.c:970:16: branch_true: following ‘true’ branch (when ‘extra_args > 0’)...
postgresql-18beta1/src/backend/parser/parse_collate.c:972:58: branch_true: ...to here
postgresql-18beta1/src/backend/parser/parse_collate.c:972:58: danger: dereference of NULL ‘h_cell’
Error: CPPCHECK_WARNING (CWE-768): [#def1505]
postgresql-18beta1/src/backend/parser/parse_cte.c:271: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1506]
postgresql-18beta1/src/backend/parser/parse_cte.c:287: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1507]
postgresql-18beta1/src/backend/parser/parse_cte.c:293: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1508]
postgresql-18beta1/src/backend/parser/parse_expr.c:1274: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(result)},(union ListCell){.ptr_value=(cmp)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1509]
postgresql-18beta1/src/backend/parser/parse_expr.c:1313: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1510]
postgresql-18beta1/src/backend/parser/parse_expr.c:1322: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1511]
postgresql-18beta1/src/backend/parser/parse_expr.c:1331: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1512]
postgresql-18beta1/src/backend/parser/parse_expr.c:1338: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1513]
postgresql-18beta1/src/backend/parser/parse_expr.c:1345: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(sub1)},(union ListCell){.ptr_value=(sub2)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1514]
postgresql-18beta1/src/backend/parser/parse_expr.c:1349: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1515]
postgresql-18beta1/src/backend/parser/parse_expr.c:1356: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1516]
postgresql-18beta1/src/backend/parser/parse_expr.c:1363: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(sub1)},(union ListCell){.ptr_value=(sub2)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1517]
postgresql-18beta1/src/backend/parser/parse_expr.c:3053: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(result)},(union ListCell){.ptr_value=(cmp)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1518]
postgresql-18beta1/src/backend/parser/parse_expr.c:3278: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(expr)},(union ListCell){.ptr_value=(encoding)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1519]
postgresql-18beta1/src/backend/parser/parse_expr.c:3623: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(texpr)},(union ListCell){.ptr_value=(enc)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1520]
postgresql-18beta1/src/backend/parser/parse_expr.c:3785: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1521]
postgresql-18beta1/src/backend/parser/parse_expr.c:3930: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(key)},(union ListCell){.ptr_value=(val)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1522]
postgresql-18beta1/src/backend/parser/parse_func.c:1780: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1523]
postgresql-18beta1/src/backend/parser/parse_func.c:1784: 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
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1524]
postgresql-18beta1/src/backend/parser/parse_func.c:2014:70: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lc’
postgresql-18beta1/src/backend/parser/parse_func.c:2008:21: branch_true: following ‘true’ branch (when ‘i < nargs’)...
postgresql-18beta1/src/backend/parser/parse_func.c:2010:20: branch_true: ...to here
postgresql-18beta1/src/backend/parser/parse_func.c:2010:20: branch_false: following ‘false’ branch (when ‘i == 0’)...
postgresql-18beta1/src/backend/parser/parse_func.c:2012:20: branch_false: ...to here
postgresql-18beta1/src/backend/parser/parse_func.c:2012:20: branch_true: following ‘true’ branch (when ‘i >= numposargs’)...
postgresql-18beta1/src/backend/parser/parse_func.c:2014:70: branch_true: ...to here
postgresql-18beta1/src/backend/parser/parse_func.c:2008:21: branch_true: following ‘true’ branch (when ‘i < nargs’)...
postgresql-18beta1/src/backend/parser/parse_func.c:2010:20: branch_true: ...to here
postgresql-18beta1/src/backend/parser/parse_func.c:2012:20: branch_true: following ‘true’ branch (when ‘i >= numposargs’)...
postgresql-18beta1/src/backend/parser/parse_func.c:2014:70: branch_true: ...to here
postgresql-18beta1/src/backend/parser/parse_func.c:2014:70: danger: dereference of NULL ‘lc’
Error: CPPCHECK_WARNING (CWE-457): [#def1525]
postgresql-18beta1/src/backend/parser/parse_func.c:2271: warning[uninitvar]: Uninitialized variable: argoids
Error: CPPCHECK_WARNING (CWE-768): [#def1526]
postgresql-18beta1/src/backend/parser/parse_oper.c:720: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(ltree)},(union ListCell){.ptr_value=(rtree)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1527]
postgresql-18beta1/src/backend/parser/parse_oper.c:821: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(ltree)},(union ListCell){.ptr_value=(rtree)}' depends on order of evaluation of side effects
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1528]
postgresql-18beta1/src/backend/parser/parse_relation.c:3065:77: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘aliasp_item’
postgresql-18beta1/src/backend/parser/parse_relation.c:2751:1: enter_function: entry to ‘expandRTE’
postgresql-18beta1/src/backend/parser/parse_relation.c:2758:12: branch_true: following ‘true’ branch (when ‘colnames’ is non-NULL)...
postgresql-18beta1/src/backend/parser/parse_relation.c:2759:17: branch_true: ...to here
postgresql-18beta1/src/backend/parser/parse_relation.c:2760:12: branch_false: following ‘false’ branch (when ‘colvars’ is NULL)...
postgresql-18beta1/src/backend/parser/parse_relation.c:2763:17: branch_false: ...to here
postgresql-18beta1/src/backend/parser/parse_relation.c:3044:59: call_function: inlined call to ‘list_head’ from ‘expandRTE’
postgresql-18beta1/src/backend/parser/parse_relation.c:3050:33: branch_false: ...to here
postgresql-18beta1/src/backend/parser/parse_relation.c:3050:33: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/parser/parse_relation.c:3060:44: branch_true: following ‘true’ branch (when ‘colnames’ is non-NULL)...
postgresql-18beta1/src/backend/parser/parse_relation.c:3063:52: branch_true: ...to here
postgresql-18beta1/src/backend/parser/parse_relation.c:3063:52: branch_true: following ‘true’ branch (when ‘coltype != 0’)...
postgresql-18beta1/src/backend/parser/parse_relation.c:3065:77: branch_true: ...to here
postgresql-18beta1/src/backend/parser/parse_relation.c:3065:77: danger: dereference of NULL ‘aliasp_item’
Error: CPPCHECK_WARNING (CWE-768): [#def1529]
postgresql-18beta1/src/backend/parser/parse_utilcmd.c:567: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1530]
postgresql-18beta1/src/backend/parser/parse_utilcmd.c:567: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1531]
postgresql-18beta1/src/backend/parser/parse_utilcmd.c:1262: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1532]
postgresql-18beta1/src/backend/parser/parse_utilcmd.c:1262: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1533]
postgresql-18beta1/src/backend/parser/parse_utilcmd.c:1496: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1534]
postgresql-18beta1/src/backend/parser/parse_utilcmd.c:1496: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1535]
postgresql-18beta1/src/backend/parser/parse_utilcmd.c:1819: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1536]
postgresql-18beta1/src/backend/parser/parse_utilcmd.c:2173: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1537]
postgresql-18beta1/src/backend/parser/parse_utilcmd.c:2203: 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
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1538]
postgresql-18beta1/src/backend/parser/scan.c:10850:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql-18beta1/src/backend/parser/scan.c:9298:1: enter_function: entry to ‘core_yylex’
postgresql-18beta1/src/backend/parser/scan.c:10400:17: call_function: calling ‘yy_get_next_buffer’ from ‘core_yylex’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1539]
postgresql-18beta1/src/backend/partitioning/partbounds.c:4039:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘partexprs_item’
postgresql-18beta1/src/backend/partitioning/partbounds.c:3983:1: enter_function: entry to ‘get_qual_for_hash’
postgresql-18beta1/src/backend/partitioning/partbounds.c:4020:26: call_function: inlined call to ‘list_head’ from ‘get_qual_for_hash’
postgresql-18beta1/src/backend/partitioning/partbounds.c:4023:9: branch_false: ...to here
postgresql-18beta1/src/backend/partitioning/partbounds.c:4023:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/partitioning/partbounds.c:4028:21: branch_true: ...to here
postgresql-18beta1/src/backend/partitioning/partbounds.c:4028:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/partitioning/partbounds.c:4039:43: branch_false: ...to here
postgresql-18beta1/src/backend/partitioning/partbounds.c:4039:43: danger: dereference of NULL ‘partexprs_item’
Error: CPPCHECK_WARNING (CWE-768): [#def1540]
postgresql-18beta1/src/backend/partitioning/partprune.c:1880: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(new_booltest)},(union ListCell){.ptr_value=(nulltest)}' depends on order of evaluation of side effects
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1541]
postgresql-18beta1/src/backend/partitioning/partprune.c:2545:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘start’
postgresql-18beta1/src/backend/partitioning/partprune.c:2525:1: enter_function: entry to ‘get_steps_using_prefix_recurse’
postgresql-18beta1/src/backend/partitioning/partprune.c:2549:12: branch_true: following ‘true’ branch (when ‘cur_keyno < final_keyno’)...
postgresql-18beta1/src/backend/partitioning/partprune.c:2559:17: call_function: inlined call to ‘for_each_cell_setup’ from ‘get_steps_using_prefix_recurse’
postgresql-18beta1/src/backend/partitioning/partprune.c:2563:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/partitioning/partprune.c:2559:17: branch_false: ...to here
postgresql-18beta1/src/backend/partitioning/partprune.c:2575:17: call_function: inlined call to ‘for_each_cell_setup’ from ‘get_steps_using_prefix_recurse’
postgresql-18beta1/src/backend/partitioning/partprune.c:2575:17: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/partitioning/partprune.c:2575:17: branch_true: ...to here
postgresql-18beta1/src/backend/partitioning/partprune.c:2582:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/partitioning/partprune.c:2585:47: branch_true: ...to here
postgresql-18beta1/src/backend/partitioning/partprune.c:2599:37: call_function: calling ‘get_steps_using_prefix_recurse’ from ‘get_steps_using_prefix_recurse’
Error: CPPCHECK_WARNING (CWE-457): [#def1542]
postgresql-18beta1/src/backend/partitioning/partprune.c:2725: warning[uninitvar]: Uninitialized variable: isnull
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1543]
postgresql-18beta1/src/backend/partitioning/partprune.c:3516:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lc2’
postgresql-18beta1/src/backend/partitioning/partprune.c:3444:1: enter_function: entry to ‘perform_pruning_base_step’
postgresql-18beta1/src/backend/partitioning/partprune.c:3461:15: call_function: inlined call to ‘list_head’ from ‘perform_pruning_base_step’
postgresql-18beta1/src/backend/partitioning/partprune.c:3462:15: call_function: inlined call to ‘list_head’ from ‘perform_pruning_base_step’
postgresql-18beta1/src/backend/partitioning/partprune.c:3468:9: branch_false: ...to here
postgresql-18beta1/src/backend/partitioning/partprune.c:3468:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/partitioning/partprune.c:3475:42: branch_true: ...to here
postgresql-18beta1/src/backend/partitioning/partprune.c:3475:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/partitioning/partprune.c:3482:20: branch_false: ...to here
postgresql-18beta1/src/backend/partitioning/partprune.c:3482:20: branch_false: following ‘false’ branch (when ‘keyno <= nvalues’)...
postgresql-18beta1/src/backend/partitioning/partprune.c:3485:20: branch_false: ...to here
postgresql-18beta1/src/backend/partitioning/partprune.c:3485:20: branch_true: following ‘true’ branch (when ‘lc1’ is non-NULL)...
postgresql-18beta1/src/backend/partitioning/partprune.c:3492:25: branch_true: ...to here
postgresql-18beta1/src/backend/partitioning/partprune.c:3503:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/partitioning/partprune.c:3516:25: branch_false: ...to here
postgresql-18beta1/src/backend/partitioning/partprune.c:3516:25: danger: dereference of NULL ‘lc2’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1544]
postgresql-18beta1/src/backend/partitioning/partprune.c:3560:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘values[0]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1545]
postgresql-18beta1/src/backend/postmaster/postmaster.c:4089:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("postmaster.opts", "w")’
postgresql-18beta1/src/backend/postmaster/postmaster.c:4081:19: acquire_resource: opened here
postgresql-18beta1/src/backend/postmaster/postmaster.c:4081:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/postmaster/postmaster.c:4089:9: branch_false: ...to here
postgresql-18beta1/src/backend/postmaster/postmaster.c:4089:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/backend/postmaster/postmaster.c:4089:9: danger: ‘fopen("postmaster.opts", "w")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1546]
postgresql-18beta1/src/backend/postmaster/postmaster.c:4089:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("postmaster.opts", "w")’
postgresql-18beta1/src/backend/postmaster/postmaster.c:4081:19: acquire_memory: allocated here
postgresql-18beta1/src/backend/postmaster/postmaster.c:4081:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/postmaster/postmaster.c:4089:9: branch_false: ...to here
postgresql-18beta1/src/backend/postmaster/postmaster.c:4089:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/backend/postmaster/postmaster.c:4089:9: danger: ‘fopen("postmaster.opts", "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING: [#def1547]
postgresql-18beta1/src/backend/postmaster/syslogger.c:238:32: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
postgresql-18beta1/src/backend/postmaster/syslogger.c:219:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/postmaster/syslogger.c:221:46: branch_true: ...to here
postgresql-18beta1/src/backend/postmaster/syslogger.c:234:17: release_resource: closed here
postgresql-18beta1/src/backend/postmaster/syslogger.c:236:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/postmaster/syslogger.c:238:32: branch_true: ...to here
postgresql-18beta1/src/backend/postmaster/syslogger.c:238:32: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def1548]
postgresql-18beta1/src/backend/postmaster/syslogger.c:239:32: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
postgresql-18beta1/src/backend/postmaster/syslogger.c:219:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/postmaster/syslogger.c:221:46: branch_true: ...to here
postgresql-18beta1/src/backend/postmaster/syslogger.c:235:17: release_resource: closed here
postgresql-18beta1/src/backend/postmaster/syslogger.c:236:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/postmaster/syslogger.c:238:32: branch_true: ...to here
postgresql-18beta1/src/backend/postmaster/syslogger.c:239:32: danger: ‘2’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1549]
postgresql-18beta1/src/backend/postmaster/syslogger.c:736:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(syslogPipe[1], 1)’
postgresql-18beta1/src/backend/postmaster/syslogger.c:593:1: enter_function: entry to ‘SysLogger_Start’
postgresql-18beta1/src/backend/postmaster/syslogger.c:663:20: call_function: calling ‘logfile_getname’ from ‘SysLogger_Start’
postgresql-18beta1/src/backend/postmaster/syslogger.c:663:20: return_function: returning to ‘SysLogger_Start’ from ‘logfile_getname’
postgresql-18beta1/src/backend/postmaster/syslogger.c:708:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/postmaster/syslogger.c:718:13: branch_false: ...to here
postgresql-18beta1/src/backend/postmaster/syslogger.c:718:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/postmaster/syslogger.c:729:17: branch_false: ...to here
postgresql-18beta1/src/backend/postmaster/syslogger.c:736:21: acquire_resource: opened here
postgresql-18beta1/src/backend/postmaster/syslogger.c:736:20: danger: ‘dup2(syslogPipe[1], 1)’ leaks here; was opened at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1550]
postgresql-18beta1/src/backend/postmaster/syslogger.c:741:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(syslogPipe[1], 2)’
postgresql-18beta1/src/backend/postmaster/syslogger.c:593:1: enter_function: entry to ‘SysLogger_Start’
postgresql-18beta1/src/backend/postmaster/syslogger.c:663:20: call_function: calling ‘logfile_getname’ from ‘SysLogger_Start’
postgresql-18beta1/src/backend/postmaster/syslogger.c:663:20: return_function: returning to ‘SysLogger_Start’ from ‘logfile_getname’
postgresql-18beta1/src/backend/postmaster/syslogger.c:708:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/postmaster/syslogger.c:718:13: branch_false: ...to here
postgresql-18beta1/src/backend/postmaster/syslogger.c:718:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/postmaster/syslogger.c:729:17: branch_false: ...to here
postgresql-18beta1/src/backend/postmaster/syslogger.c:736:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/postmaster/syslogger.c:740:17: branch_false: ...to here
postgresql-18beta1/src/backend/postmaster/syslogger.c:741:21: acquire_resource: opened here
postgresql-18beta1/src/backend/postmaster/syslogger.c:741:20: danger: ‘dup2(syslogPipe[1], 2)’ leaks here; was opened at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1551]
postgresql-18beta1/src/backend/postmaster/syslogger.c:1517:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("current_logfiles.tmp", "w")’
postgresql-18beta1/src/backend/postmaster/syslogger.c:1496:14: acquire_resource: opened here
postgresql-18beta1/src/backend/postmaster/syslogger.c:1499:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/postmaster/syslogger.c:1501:17: branch_true: ...to here
postgresql-18beta1/src/backend/postmaster/syslogger.c:1517:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/postmaster/syslogger.c:1519:21: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/backend/postmaster/syslogger.c:1517:13: danger: ‘fopen("current_logfiles.tmp", "w")’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1552]
postgresql-18beta1/src/backend/postmaster/syslogger.c:1517:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("current_logfiles.tmp", "w")’
postgresql-18beta1/src/backend/postmaster/syslogger.c:1496:14: acquire_memory: allocated here
postgresql-18beta1/src/backend/postmaster/syslogger.c:1499:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/postmaster/syslogger.c:1501:17: branch_true: ...to here
postgresql-18beta1/src/backend/postmaster/syslogger.c:1517:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/postmaster/syslogger.c:1519:21: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/backend/postmaster/syslogger.c:1517:13: danger: ‘fopen("current_logfiles.tmp", "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1553]
postgresql-18beta1/src/backend/regex/regc_cvec.c:83:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:616:30: call_function: calling ‘getcvec’ from ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:616:30: return_function: returning to ‘cclasscvec’ from ‘getcvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:617:25: call_function: inlined call to ‘addchr’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1554]
postgresql-18beta1/src/backend/regex/regc_cvec.c:95:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cv’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:622:30: call_function: calling ‘getcvec’ from ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:622:30: return_function: returning to ‘cclasscvec’ from ‘getcvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:623:25: call_function: calling ‘addrange’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1555]
postgresql-18beta1/src/backend/regex/regc_nfa.c:336:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/regex/regc_nfa.c:1167:1: enter_function: entry to ‘copyouts’
postgresql-18beta1/src/backend/regex/regc_nfa.c:1179:42: branch_true: following ‘true’ branch (when ‘a’ is non-NULL)...
postgresql-18beta1/src/backend/regex/regc_nfa.c:1180:25: branch_true: ...to here
postgresql-18beta1/src/backend/regex/regc_nfa.c:1180:25: call_function: calling ‘createarc’ from ‘copyouts’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1556]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:307:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:627:30: call_function: calling ‘pg_ctype_get_cache’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1557]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:307:32: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:627:30: call_function: calling ‘pg_ctype_get_cache’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1558]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:334:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:603:30: call_function: calling ‘pg_ctype_get_cache’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1559]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:334:32: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:603:30: call_function: calling ‘pg_ctype_get_cache’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1560]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:361:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:600:30: call_function: calling ‘pg_ctype_get_cache’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1561]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:361:32: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:600:30: call_function: calling ‘pg_ctype_get_cache’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1562]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:397:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:654:30: call_function: calling ‘pg_ctype_get_cache’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1563]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:397:32: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:654:30: call_function: calling ‘pg_ctype_get_cache’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1564]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:424:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:651:30: call_function: calling ‘pg_ctype_get_cache’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1565]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:424:32: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:651:30: call_function: calling ‘pg_ctype_get_cache’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1566]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:451:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:657:30: call_function: calling ‘pg_ctype_get_cache’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1567]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:451:32: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:657:30: call_function: calling ‘pg_ctype_get_cache’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1568]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:478:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:597:30: call_function: calling ‘pg_ctype_get_cache’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1569]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:478:32: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:597:30: call_function: calling ‘pg_ctype_get_cache’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1570]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:505:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:630:30: call_function: calling ‘pg_ctype_get_cache’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1571]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:505:32: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:630:30: call_function: calling ‘pg_ctype_get_cache’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1572]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:532:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:648:30: call_function: calling ‘pg_ctype_get_cache’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1573]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:532:32: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc’
postgresql-18beta1/src/backend/regex/regc_locale.c:569:1: enter_function: entry to ‘cclasscvec’
postgresql-18beta1/src/backend/regex/regc_locale.c:648:30: call_function: calling ‘pg_ctype_get_cache’ from ‘cclasscvec’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1574]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:781:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:714:12: branch_false: following ‘false’ branch (when ‘pcc’ is non-NULL)...
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:716:9: branch_false: ...to here
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:720:32: acquire_memory: allocated here
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:724:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:779:27: branch_true: following ‘true’ branch (when ‘max_chr >= cur_chr’)...
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:781:21: branch_true: ...to here
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:781:21: throw: if the called function throws an exception...
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:781:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1575]
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:781:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc’
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:713:34: acquire_memory: allocated here
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:714:12: branch_false: following ‘false’ branch (when ‘pcc’ is non-NULL)...
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:716:9: branch_false: ...to here
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:724:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:779:27: branch_true: following ‘true’ branch (when ‘max_chr >= cur_chr’)...
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:781:21: branch_true: ...to here
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:781:21: throw: if the called function throws an exception...
postgresql-18beta1/src/backend/regex/regc_pg_locale.c:781:21: danger: ‘pcc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1576]
postgresql-18beta1/src/backend/regex/rege_dfa.c:1021:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘<unknown>’
postgresql-18beta1/src/backend/regex/rege_dfa.c:985:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/regex/rege_dfa.c:990:9: branch_false: ...to here
postgresql-18beta1/src/backend/regex/rege_dfa.c:1002:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/regex/rege_dfa.c:1004:21: branch_true: ...to here
postgresql-18beta1/src/backend/regex/rege_dfa.c:1006:20: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/src/backend/regex/rege_dfa.c:1009:21: branch_false: ...to here
postgresql-18beta1/src/backend/regex/rege_dfa.c:1021:25: danger: dereference of NULL ‘lastap.ss’
Error: CPPCHECK_WARNING (CWE-457): [#def1577]
postgresql-18beta1/src/backend/regex/regexec.c:235: warning[uninitvar]: Uninitialized variable: v->pmatch
Error: CPPCHECK_WARNING (CWE-457): [#def1578]
postgresql-18beta1/src/backend/replication/logical/logical.c:2158: warning[uninitvar]: Uninitialized variable: retlsn
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1579]
postgresql-18beta1/src/backend/replication/logical/reorderbuffer.c:3615:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘txn’
postgresql-18beta1/src/backend/replication/logical/reorderbuffer.c:3599:1: enter_function: entry to ‘ReorderBufferXidHasBaseSnapshot’
postgresql-18beta1/src/backend/replication/logical/reorderbuffer.c:3603:15: call_function: calling ‘ReorderBufferTXNByXid’ from ‘ReorderBufferXidHasBaseSnapshot’
postgresql-18beta1/src/backend/replication/logical/reorderbuffer.c:3603:15: return_function: returning to ‘ReorderBufferXidHasBaseSnapshot’ from ‘ReorderBufferTXNByXid’
postgresql-18beta1/src/backend/replication/logical/reorderbuffer.c:3607:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/replication/logical/reorderbuffer.c:3611:13: branch_false: ...to here
postgresql-18beta1/src/backend/replication/logical/reorderbuffer.c:3611:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/replication/logical/reorderbuffer.c:3612:23: branch_true: ...to here
postgresql-18beta1/src/backend/replication/logical/reorderbuffer.c:3612:23: call_function: calling ‘ReorderBufferTXNByXid’ from ‘ReorderBufferXidHasBaseSnapshot’
postgresql-18beta1/src/backend/replication/logical/reorderbuffer.c:3612:23: return_function: returning to ‘ReorderBufferXidHasBaseSnapshot’ from ‘ReorderBufferTXNByXid’
postgresql-18beta1/src/backend/replication/logical/reorderbuffer.c:3615:16: danger: dereference of NULL ‘txn’
Error: CPPCHECK_WARNING (CWE-457): [#def1580]
postgresql-18beta1/src/backend/replication/logical/reorderbuffer.c:4887: error[legacyUninitvar]: Uninitialized variable: chunksize
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1581]
postgresql-18beta1/src/backend/replication/repl_gram.c:1113:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/src/backend/replication/repl_gram.c:1071:6: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/replication/repl_gram.c:1077:28: branch_true: ...to here
postgresql-18beta1/src/backend/replication/repl_gram.c:1100:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/src/backend/replication/repl_gram.c:1102:7: branch_false: ...to here
postgresql-18beta1/src/backend/replication/repl_gram.c:1111:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/replication/repl_gram.c:1113:9: branch_false: ...to here
postgresql-18beta1/src/backend/replication/repl_gram.c:1113:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1582]
postgresql-18beta1/src/backend/replication/syncrep_gram.c:988:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/src/backend/replication/syncrep_gram.c:946:6: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/replication/syncrep_gram.c:952:28: branch_true: ...to here
postgresql-18beta1/src/backend/replication/syncrep_gram.c:975:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/src/backend/replication/syncrep_gram.c:977:7: branch_false: ...to here
postgresql-18beta1/src/backend/replication/syncrep_gram.c:986:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/replication/syncrep_gram.c:988:9: branch_false: ...to here
postgresql-18beta1/src/backend/replication/syncrep_gram.c:988:9: danger: use of uninitialized value ‘yyss’ here
Error: CPPCHECK_WARNING (CWE-768): [#def1583]
postgresql-18beta1/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
Error: CPPCHECK_WARNING (CWE-768): [#def1584]
postgresql-18beta1/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
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1585]
postgresql-18beta1/src/backend/statistics/dependencies.c:795:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘clause’
postgresql-18beta1/src/backend/statistics/dependencies.c:741:1: enter_function: entry to ‘dependency_is_compatible_clause’
postgresql-18beta1/src/backend/statistics/dependencies.c:746:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/statistics/dependencies.c:751:21: branch_true: ...to here
postgresql-18beta1/src/backend/statistics/dependencies.c:751:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/statistics/dependencies.c:755:36: branch_false: ...to here
postgresql-18beta1/src/backend/statistics/dependencies.c:755:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/statistics/dependencies.c:758:17: branch_false: ...to here
postgresql-18beta1/src/backend/statistics/dependencies.c:761:13: call_function: inlined call to ‘is_opclause’ from ‘dependency_is_compatible_clause’
postgresql-18beta1/src/backend/statistics/dependencies.c:795:18: branch_false: ...to here
postgresql-18beta1/src/backend/statistics/dependencies.c:795:18: danger: dereference of NULL ‘clause’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1586]
postgresql-18beta1/src/backend/statistics/dependencies.c:1223:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘clause’
postgresql-18beta1/src/backend/statistics/dependencies.c:1168:1: enter_function: entry to ‘dependency_is_compatible_expression’
postgresql-18beta1/src/backend/statistics/dependencies.c:1174:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/statistics/dependencies.c:1179:21: branch_true: ...to here
postgresql-18beta1/src/backend/statistics/dependencies.c:1179:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/statistics/dependencies.c:1183:36: branch_false: ...to here
postgresql-18beta1/src/backend/statistics/dependencies.c:1183:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/statistics/dependencies.c:1186:17: branch_false: ...to here
postgresql-18beta1/src/backend/statistics/dependencies.c:1189:13: call_function: inlined call to ‘is_opclause’ from ‘dependency_is_compatible_expression’
postgresql-18beta1/src/backend/statistics/dependencies.c:1223:18: branch_false: ...to here
postgresql-18beta1/src/backend/statistics/dependencies.c:1223:18: danger: dereference of NULL ‘clause’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1587]
postgresql-18beta1/src/backend/statistics/mcv.c:1710:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘clause’
postgresql-18beta1/src/backend/statistics/mcv.c:2126:1: enter_function: entry to ‘mcv_clause_selectivity_or’
postgresql-18beta1/src/backend/statistics/mcv.c:2140:23: call_function: calling ‘mcv_get_match_bitmap’ from ‘mcv_clause_selectivity_or’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1588]
postgresql-18beta1/src/backend/storage/file/fd.c:2771:9: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(command, mode)’
postgresql-18beta1/src/backend/storage/file/fd.c:2756:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/storage/file/fd.c:2763:9: branch_true: ...to here
postgresql-18beta1/src/backend/storage/file/fd.c:2769:16: acquire_memory: allocated here
postgresql-18beta1/src/backend/storage/file/fd.c:2771:9: throw: if ‘pqsignal_be’ throws an exception...
postgresql-18beta1/src/backend/storage/file/fd.c:2771:9: danger: ‘popen(command, mode)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1589]
postgresql-18beta1/src/backend/storage/file/fd.c:2779:38: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/backend/storage/file/fd.c:2756:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/storage/file/fd.c:2763:9: branch_true: ...to here
postgresql-18beta1/src/backend/storage/file/fd.c:2769:16: acquire_memory: allocated here
postgresql-18beta1/src/backend/storage/file/fd.c:2779:38: throw: if ‘GetCurrentSubTransactionId’ throws an exception...
postgresql-18beta1/src/backend/storage/file/fd.c:2779:38: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1590]
postgresql-18beta1/src/backend/storage/file/fd.c:2931:38: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/backend/storage/file/fd.c:2915:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/storage/file/fd.c:2922:9: branch_true: ...to here
postgresql-18beta1/src/backend/storage/file/fd.c:2925:20: acquire_memory: allocated here
postgresql-18beta1/src/backend/storage/file/fd.c:2931:38: throw: if ‘GetCurrentSubTransactionId’ throws an exception...
postgresql-18beta1/src/backend/storage/file/fd.c:2931:38: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-457): [#def1591]
postgresql-18beta1/src/backend/storage/ipc/dsm_registry.c:199: error[legacyUninitvar]: Uninitialized variable: ret
Error: CPPCHECK_WARNING (CWE-909): [#def1592]
postgresql-18beta1/src/backend/storage/lmgr/lmgr.c:726: error[uninitStructMember]: Uninitialized struct member: callback.previous
Error: CPPCHECK_WARNING (CWE-457): [#def1593]
postgresql-18beta1/src/backend/storage/lmgr/lock.c:2000: warning[uninitvar]: Uninitialized variable: result
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1594]
postgresql-18beta1/src/backend/storage/page/bufpage.c:523:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*itemidptr.itemoff’
postgresql-18beta1/src/backend/storage/page/bufpage.c:698:1: enter_function: entry to ‘PageRepairFragmentation’
postgresql-18beta1/src/backend/storage/page/bufpage.c:722:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/storage/page/bufpage.c:724:17: branch_false: ...to here
postgresql-18beta1/src/backend/storage/page/bufpage.c:722:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/storage/page/bufpage.c:726:17: branch_false: ...to here
postgresql-18beta1/src/backend/storage/page/bufpage.c:722:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/storage/page/bufpage.c:735:17: call_function: inlined call to ‘PageGetMaxOffsetNumber’ from ‘PageRepairFragmentation’
postgresql-18beta1/src/backend/storage/page/bufpage.c:735:9: branch_true: ...to here
postgresql-18beta1/src/backend/storage/page/bufpage.c:739:37: branch_false: following ‘false’ branch (when ‘i > nline’)...
postgresql-18beta1/src/backend/storage/page/bufpage.c:776:30: branch_false: ...to here
postgresql-18beta1/src/backend/storage/page/bufpage.c:777:12: branch_false: following ‘false’ branch (when ‘nstorage != 0’)...
postgresql-18beta1/src/backend/storage/page/bufpage.c:785:39: branch_false: ...to here
postgresql-18beta1/src/backend/storage/page/bufpage.c:785:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/storage/page/bufpage.c:791:17: branch_false: ...to here
postgresql-18beta1/src/backend/storage/page/bufpage.c:791:17: call_function: calling ‘compactify_tuples’ from ‘PageRepairFragmentation’
Error: CPPCHECK_WARNING (CWE-457): [#def1595]
postgresql-18beta1/src/backend/tcop/pquery.c:636: warning[uninitvar]: Uninitialized variables: oldContext.type, oldContext.isReset, oldContext.allowInCritSection, oldContext.mem_allocated, oldContext.methods, oldContext.parent, oldContext.firstchild, oldContext.prevchild, oldContext.nextchild, oldContext.name, oldContext.ident, oldContext.reset_cbs
Error: CPPCHECK_WARNING (CWE-457): [#def1596]
postgresql-18beta1/src/backend/tcop/pquery.c:1503: warning[uninitvar]: Uninitialized variables: oldContext.type, oldContext.isReset, oldContext.allowInCritSection, oldContext.mem_allocated, oldContext.methods, oldContext.parent, oldContext.firstchild, oldContext.prevchild, oldContext.nextchild, oldContext.name, oldContext.ident, oldContext.reset_cbs
Error: CPPCHECK_WARNING (CWE-457): [#def1597]
postgresql-18beta1/src/backend/tcop/pquery.c:1512: warning[uninitvar]: Uninitialized variable: result
Error: CPPCHECK_WARNING (CWE-457): [#def1598]
postgresql-18beta1/src/backend/tsearch/dict_synonym.c:232: error[uninitvar]: Uninitialized variables: &key.outlen, &key.flags
Error: COMPILER_WARNING (CWE-704): [#def1599]
postgresql-18beta1/src/backend/tsearch/spell.c: scope_hint: In function ‘CheckCompoundAffixes’
postgresql-18beta1/src/backend/tsearch/spell.c:2327:60: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1600]
postgresql-18beta1/src/backend/tsearch/spell.c:2327:60: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1601]
postgresql-18beta1/src/backend/tsearch/ts_parse.c:82:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘res’
postgresql-18beta1/src/backend/tsearch/ts_parse.c:540:1: enter_function: entry to ‘hlparsetext’
postgresql-18beta1/src/backend/tsearch/ts_parse.c:590:38: call_function: calling ‘LexizeExec’ from ‘hlparsetext’
Error: CPPCHECK_WARNING (CWE-476): [#def1602]
postgresql-18beta1/src/backend/tsearch/wparser.c:196: error[nullPointer]: Null pointer dereference
Error: CPPCHECK_WARNING (CWE-476): [#def1603]
postgresql-18beta1/src/backend/tsearch/wparser.c:196: error[nullPointer]: Null pointer dereference: lex
Error: CPPCHECK_WARNING (CWE-476): [#def1604]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:454: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1605]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:454: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1606]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:455: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1607]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:455: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1608]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:456: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1609]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:456: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1610]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:457: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1611]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:457: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1612]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:458: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1613]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:458: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1614]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:459: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1615]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:459: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1616]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:460: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1617]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:460: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1618]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:461: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1619]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:461: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1620]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:462: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1621]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:462: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1622]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:470: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1623]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:470: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1624]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:477: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1625]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:477: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1626]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:483: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def1627]
postgresql-18beta1/src/backend/tsearch/wparser_def.c:489: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-457): [#def1628]
postgresql-18beta1/src/backend/utils/activity/backend_status.c:1259: error[uninitvar]: Uninitialized variables: &key.backendStatus, &key.backend_xid, &key.backend_xmin, &key.backend_subxact_count, &key.backend_subxact_overflowed
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1629]
postgresql-18beta1/src/backend/utils/activity/pgstat.c:878:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:867:1: enter_function: entry to ‘pgstat_reset’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:869:44: call_function: inlined call to ‘pgstat_get_kind_info’ from ‘pgstat_reset’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:878:14: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1630]
postgresql-18beta1/src/backend/utils/activity/pgstat.c:895:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:889:1: enter_function: entry to ‘pgstat_reset_of_kind’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:891:44: call_function: inlined call to ‘pgstat_get_kind_info’ from ‘pgstat_reset_of_kind’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:894:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/activity/pgstat.c:895:17: branch_true: ...to here
postgresql-18beta1/src/backend/utils/activity/pgstat.c:895:17: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1631]
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1261:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1226:1: enter_function: entry to ‘pgstat_build_snapshot_fixed’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1228:44: call_function: inlined call to ‘pgstat_get_kind_info’ from ‘pgstat_build_snapshot_fixed’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1261:9: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1632]
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1301:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1281:1: enter_function: entry to ‘pgstat_prep_pending_entry’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1299:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1301:45: call_function: inlined call to ‘pgstat_get_kind_info’ from ‘pgstat_prep_pending_entry’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1301:45: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1633]
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1342:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1332:1: enter_function: entry to ‘pgstat_delete_pending_entry’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1335:44: call_function: inlined call to ‘pgstat_get_kind_info’ from ‘pgstat_delete_pending_entry’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1342:13: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1634]
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1386:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1355:1: enter_function: entry to ‘pgstat_flush_pending_entries’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1372:16: branch_true: following ‘true’ branch (when ‘cur’ is non-NULL)...
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1374:34: branch_true: ...to here
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1386:29: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1635]
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1693:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1584:1: enter_function: entry to ‘pgstat_write_statsfile’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1607:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1619:9: branch_false: ...to here
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1623:50: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1626:47: call_function: inlined call to ‘pgstat_get_kind_info’ from ‘pgstat_write_statsfile’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1628:21: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1628:20: branch_false: ...to here
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1653:16: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1658:17: branch_true: ...to here
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1677:22: call_function: inlined call to ‘pgstat_is_kind_valid’ from ‘pgstat_write_statsfile’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1685:51: branch_true: ...to here
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1687:29: call_function: inlined call to ‘pgstat_get_kind_info’ from ‘pgstat_write_statsfile’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1687:29: call_function: inlined call to ‘pgstat_get_kind_info’ from ‘pgstat_write_statsfile’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1693:22: danger: dereference of NULL ‘<unknown>’
Error: CPPCHECK_WARNING (CWE-457): [#def1636]
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:1351: warning[uninitvar]: Uninitialized variable: dim
Error: CPPCHECK_WARNING (CWE-457): [#def1637]
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:1352: warning[uninitvar]: Uninitialized variable: lBound
Error: CPPCHECK_WARNING (CWE-457): [#def1638]
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:1697: warning[uninitvar]: Uninitialized variable: buf
Error: CPPCHECK_WARNING (CWE-457): [#def1639]
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:2902: warning[uninitvar]: Uninitialized variable: dim
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1640]
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:3784:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bitmap’
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:3779:18: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:3779:18: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:3782:16: branch_true: following ‘true’ branch (when ‘nelems > 7’)...
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:3784:21: branch_true: ...to here
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:3784:21: danger: dereference of NULL ‘bitmap’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1641]
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:3794:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bitmap’
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:3779:18: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:3779:18: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:3782:16: branch_false: following ‘false’ branch (when ‘nelems <= 7’)...
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:3782:16: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:3792:16: branch_true: following ‘true’ branch (when ‘nelems > 0’)...
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:3794:22: branch_true: ...to here
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:3794:22: danger: dereference of NULL ‘bitmap’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1642]
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:4980:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘destbitmap’
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:5703:1: enter_function: entry to ‘makeArrayResultArr’
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:5713:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:5724:54: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:5750:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:5751:25: branch_true: ...to here
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:5751:25: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:5751:25: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/arrayfuncs.c:5751:25: call_function: calling ‘array_bitmap_copy’ from ‘makeArrayResultArr’
Error: CPPCHECK_WARNING (CWE-457): [#def1643]
postgresql-18beta1/src/backend/utils/adt/dbsize.c:625: warning[uninitvar]: Uninitialized variable: buf
Error: CPPCHECK_WARNING (CWE-457): [#def1644]
postgresql-18beta1/src/backend/utils/adt/inet_cidr_ntop.c:285: warning[uninitvar]: Uninitialized variable: outbuf
Error: CPPCHECK_WARNING (CWE-457): [#def1645]
postgresql-18beta1/src/backend/utils/adt/jsonb.c:101: error[legacyUninitvar]: Uninitialized variable: nbytes
Error: CPPCHECK_WARNING (CWE-457): [#def1646]
postgresql-18beta1/src/backend/utils/adt/jsonb.c:101: error[legacyUninitvar]: Uninitialized variable: str
Error: COMPILER_WARNING (CWE-457): [#def1647]
postgresql-18beta1/src/backend/utils/adt/jsonb_util.c: scope_hint: In function ‘compareJsonbContainers’
postgresql-18beta1/src/backend/utils/adt/jsonb_util.c:301:34: warning[-Wmaybe-uninitialized]: ‘va.type’ may be used uninitialized
postgresql-18beta1/src/backend/utils/adt/jsonb_util.c:202:33: note: ‘va’ declared here
Error: COMPILER_WARNING (CWE-457): [#def1648]
postgresql-18beta1/src/backend/utils/adt/jsonb_util.c:301:44: warning[-Wmaybe-uninitialized]: ‘vb.type’ may be used uninitialized
postgresql-18beta1/src/backend/utils/adt/jsonb_util.c:203:41: note: ‘vb’ declared here
Error: CPPCHECK_WARNING (CWE-457): [#def1649]
postgresql-18beta1/src/backend/utils/adt/jsonbsubs.c:152: error[legacyUninitvar]: Uninitialized variable: subExpr
Error: CPPCHECK_WARNING (CWE-476): [#def1650]
postgresql-18beta1/src/backend/utils/adt/jsonfuncs.c:5839: warning[nullPointer]: Possible null pointer dereference: res
Error: CPPCHECK_WARNING (CWE-457): [#def1651]
postgresql-18beta1/src/backend/utils/adt/jsonpath.c:127: error[legacyUninitvar]: Uninitialized variable: nbytes
Error: CPPCHECK_WARNING (CWE-457): [#def1652]
postgresql-18beta1/src/backend/utils/adt/jsonpath.c:127: error[legacyUninitvar]: Uninitialized variable: str
Error: CPPCHECK_WARNING (CWE-457): [#def1653]
postgresql-18beta1/src/backend/utils/adt/jsonpath_exec.c:1317: error[legacyUninitvar]: Uninitialized variable: datum
Error: CPPCHECK_WARNING (CWE-457): [#def1654]
postgresql-18beta1/src/backend/utils/adt/jsonpath_exec.c:1390: error[legacyUninitvar]: Uninitialized variable: bval
Error: CPPCHECK_WARNING (CWE-457): [#def1655]
postgresql-18beta1/src/backend/utils/adt/jsonpath_exec.c:1597: error[legacyUninitvar]: Uninitialized variable: datum
Error: CPPCHECK_WARNING (CWE-768): [#def1656]
postgresql-18beta1/src/backend/utils/adt/jsonpath_exec.c:3516: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(jvl->singleton)},(union ListCell){.ptr_value=(jbv)}' depends on order of evaluation of side effects
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1657]
postgresql-18beta1/src/backend/utils/adt/jsonpath_gram.c:1236:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/src/backend/utils/adt/jsonpath_gram.c:1194:6: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/adt/jsonpath_gram.c:1200:28: branch_true: ...to here
postgresql-18beta1/src/backend/utils/adt/jsonpath_gram.c:1223:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/src/backend/utils/adt/jsonpath_gram.c:1225:7: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/jsonpath_gram.c:1234:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/jsonpath_gram.c:1236:9: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/jsonpath_gram.c:1236:9: danger: use of uninitialized value ‘yyss’ here
Error: CPPCHECK_WARNING (CWE-768): [#def1658]
postgresql-18beta1/src/backend/utils/adt/jsonpath_gram.y:206: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1659]
postgresql-18beta1/src/backend/utils/adt/jsonpath_gram.y:207: 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
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1660]
postgresql-18beta1/src/backend/utils/adt/jsonpath_scan.c:5348:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql-18beta1/src/backend/utils/adt/jsonpath_scan.c:4342:1: enter_function: entry to ‘jsonpath_yylex’
postgresql-18beta1/src/backend/utils/adt/jsonpath_scan.c:4839:6: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/adt/jsonpath_scan.c:4850:43: branch_true: ...to here
postgresql-18beta1/src/backend/utils/adt/jsonpath_scan.c:4898:17: call_function: calling ‘yy_get_next_buffer’ from ‘jsonpath_yylex’
Error: CPPCHECK_WARNING (CWE-476): [#def1661]
postgresql-18beta1/src/backend/utils/adt/lockfuncs.c:510: warning[nullPointer]: Possible null pointer dereference: blocked_instance
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1662]
postgresql-18beta1/src/backend/utils/adt/lockfuncs.c:510:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘blocked_instance’
postgresql-18beta1/src/backend/utils/adt/lockfuncs.c:483:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/adt/lockfuncs.c:485:43: branch_true: ...to here
postgresql-18beta1/src/backend/utils/adt/lockfuncs.c:497:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/lockfuncs.c:509:58: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/lockfuncs.c:510:61: danger: dereference of NULL ‘blocked_instance’
Error: CPPCHECK_WARNING (CWE-457): [#def1663]
postgresql-18beta1/src/backend/utils/adt/misc.c:760: warning[uninitvar]: Uninitialized variable: values
Error: GCC_ANALYZER_WARNING (CWE-126): [#def1664]
postgresql-18beta1/src/backend/utils/adt/numeric.c:9547:31: warning[-Wanalyzer-out-of-bounds]: buffer over-read
postgresql-18beta1/src/backend/utils/adt/numeric.c:11450:1: enter_function: entry to ‘power_var_int’
postgresql-18beta1/src/backend/utils/adt/numeric.c:11494:12: branch_false: following ‘false’ branch (when ‘f <= 1.31072e+5’)...
postgresql-18beta1/src/backend/utils/adt/numeric.c:11498:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/numeric.c:11498:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/numeric.c:11510:43: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/numeric.c:11545:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/numeric.c:11570:22: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/numeric.c:11588:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/adt/numeric.c:11589:17: branch_true: ...to here
postgresql-18beta1/src/backend/utils/adt/numeric.c:11593:16: branch_false: following ‘false’ branch (when ‘mask == 0’)...
postgresql-18beta1/src/backend/utils/adt/numeric.c:11639:9: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/numeric.c:11639:9: call_function: calling ‘free_var’ from ‘power_var_int’
postgresql-18beta1/src/backend/utils/adt/numeric.c:11639:9: return_function: returning to ‘power_var_int’ from ‘free_var’
postgresql-18beta1/src/backend/utils/adt/numeric.c:11642:12: branch_true: following ‘true’ branch (when ‘neg != 0’)...
postgresql-18beta1/src/backend/utils/adt/numeric.c:11643:17: branch_true: ...to here
postgresql-18beta1/src/backend/utils/adt/numeric.c:11643:17: call_function: calling ‘div_var’ from ‘power_var_int’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def1665]
postgresql-18beta1/src/backend/utils/adt/numeric.c:9547:61: warning[-Wanalyzer-out-of-bounds]: buffer over-read
postgresql-18beta1/src/backend/utils/adt/numeric.c:11450:1: enter_function: entry to ‘power_var_int’
postgresql-18beta1/src/backend/utils/adt/numeric.c:11494:12: branch_false: following ‘false’ branch (when ‘f <= 1.31072e+5’)...
postgresql-18beta1/src/backend/utils/adt/numeric.c:11498:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/numeric.c:11498:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/numeric.c:11510:43: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/numeric.c:11535:25: call_function: calling ‘div_var’ from ‘power_var_int’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1666]
postgresql-18beta1/src/backend/utils/adt/numeric.c:12475:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*val.weight’
postgresql-18beta1/src/backend/utils/adt/numeric.c:4975:1: enter_function: entry to ‘do_numeric_accum’
postgresql-18beta1/src/backend/utils/adt/numeric.c:4994:9: call_function: calling ‘init_var_from_num’ from ‘do_numeric_accum’
postgresql-18beta1/src/backend/utils/adt/numeric.c:4994:9: return_function: returning to ‘do_numeric_accum’ from ‘init_var_from_num’
postgresql-18beta1/src/backend/utils/adt/numeric.c:5009:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/numeric.c:5016:23: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/numeric.c:5021:9: call_function: calling ‘accum_sum_add’ from ‘do_numeric_accum’
postgresql-18beta1/src/backend/utils/adt/numeric.c:5021:9: return_function: returning to ‘do_numeric_accum’ from ‘accum_sum_add’
postgresql-18beta1/src/backend/utils/adt/numeric.c:5023:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/adt/numeric.c:5024:17: branch_true: ...to here
postgresql-18beta1/src/backend/utils/adt/numeric.c:5024:17: call_function: calling ‘accum_sum_add’ from ‘do_numeric_accum’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1667]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.currency_symbol’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:560:37: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: throw: if ‘pg_localeconv_free’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: danger: ‘worklconv.currency_symbol’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1668]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.decimal_point’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:35: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: throw: if ‘pg_localeconv_free’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: danger: ‘worklconv.decimal_point’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1669]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.grouping’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:558:30: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: throw: if ‘pg_localeconv_free’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: danger: ‘worklconv.grouping’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1670]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.int_curr_symbol’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:559:37: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: throw: if ‘pg_localeconv_free’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: danger: ‘worklconv.int_curr_symbol’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1671]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_decimal_point’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:561:39: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: throw: if ‘pg_localeconv_free’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: danger: ‘worklconv.mon_decimal_point’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1672]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_grouping’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:563:34: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: throw: if ‘pg_localeconv_free’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: danger: ‘worklconv.mon_grouping’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1673]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_thousands_sep’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:562:39: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: throw: if ‘pg_localeconv_free’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: danger: ‘worklconv.mon_thousands_sep’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1674]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.negative_sign’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:565:35: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: throw: if ‘pg_localeconv_free’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: danger: ‘worklconv.negative_sign’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1675]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.positive_sign’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:564:35: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: throw: if ‘pg_localeconv_free’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: danger: ‘worklconv.positive_sign’ leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1676]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.thousands_sep’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:557:35: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: throw: if ‘pg_localeconv_free’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:577:9: danger: ‘worklconv.thousands_sep’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1677]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.currency_symbol’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:524:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:560:37: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: danger: ‘worklconv.currency_symbol’ leaks here; was allocated at [(8)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1678]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.decimal_point’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:524:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:35: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: danger: ‘worklconv.decimal_point’ leaks here; was allocated at [(8)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1679]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.grouping’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:524:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:558:30: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: danger: ‘worklconv.grouping’ leaks here; was allocated at [(8)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1680]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.int_curr_symbol’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:524:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:559:37: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: danger: ‘worklconv.int_curr_symbol’ leaks here; was allocated at [(8)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1681]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_decimal_point’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:524:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:561:39: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: danger: ‘worklconv.mon_decimal_point’ leaks here; was allocated at [(8)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1682]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_grouping’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:524:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:563:34: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: danger: ‘worklconv.mon_grouping’ leaks here; was allocated at [(8)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1683]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_thousands_sep’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:524:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:562:39: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: danger: ‘worklconv.mon_thousands_sep’ leaks here; was allocated at [(8)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1684]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.negative_sign’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:524:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:565:35: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: danger: ‘worklconv.negative_sign’ leaks here; was allocated at [(8)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1685]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.positive_sign’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:524:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:564:35: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: danger: ‘worklconv.positive_sign’ leaks here; was allocated at [(8)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1686]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.thousands_sep’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:524:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:533:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:537:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:547:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:556:42: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:557:35: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:580:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: branch_false: ...to here
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:581:17: danger: ‘worklconv.thousands_sep’ leaks here; was allocated at [(8)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-457): [#def1687]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:1090: error[legacyUninitvar]: Uninitialized variable: result
Error: CPPCHECK_WARNING (CWE-457): [#def1688]
postgresql-18beta1/src/backend/utils/adt/pg_locale.c:1173: error[legacyUninitvar]: Uninitialized variable: result
Error: CPPCHECK_WARNING (CWE-768): [#def1689]
postgresql-18beta1/src/backend/utils/adt/rangetypes.c:2947: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lowerExpr)},(union ListCell){.ptr_value=(upperExpr)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1690]
postgresql-18beta1/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
Error: CPPCHECK_WARNING (CWE-768): [#def1691]
postgresql-18beta1/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
Error: CPPCHECK_WARNING (CWE-768): [#def1692]
postgresql-18beta1/src/backend/utils/adt/ruleutils.c:1100: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(oldrte)},(union ListCell){.ptr_value=(newrte)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1693]
postgresql-18beta1/src/backend/utils/adt/selfuncs.c:1970: 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
Error: CPPCHECK_WARNING (CWE-768): [#def1694]
postgresql-18beta1/src/backend/utils/adt/selfuncs.c:2044: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftop)},(union ListCell){.ptr_value=(elem)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1695]
postgresql-18beta1/src/backend/utils/adt/selfuncs.c:2096: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(leftop)},(union ListCell){.ptr_value=(dummyexpr)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def1696]
postgresql-18beta1/src/backend/utils/adt/selfuncs.c:2221: 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
Error: CPPCHECK_WARNING (CWE-457): [#def1697]
postgresql-18beta1/src/backend/utils/adt/timestamp.c:3221: error[legacyUninitvar]: Uninitialized variable: result
Error: CPPCHECK_WARNING (CWE-457): [#def1698]
postgresql-18beta1/src/backend/utils/adt/timestamp.c:3376: error[legacyUninitvar]: Uninitialized variable: result
Error: CPPCHECK_WARNING (CWE-190): [#def1699]
postgresql-18beta1/src/backend/utils/adt/tsgistidx.c:188: error[integerOverflow]: Signed integer underflow for expression '*(int32*)&c'.
Error: CPPCHECK_WARNING (CWE-476): [#def1700]
postgresql-18beta1/src/backend/utils/adt/varlena.c:471: warning[nullPointer]: Possible null pointer dereference: rp
Error: COMPILER_WARNING (CWE-704): [#def1701]
postgresql-18beta1/src/backend/utils/adt/xid8funcs.c: scope_hint: In function ‘is_visible_fxid’
postgresql-18beta1/src/backend/utils/adt/xid8funcs.c:198:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1702]
postgresql-18beta1/src/backend/utils/adt/xid8funcs.c:198:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: CPPCHECK_WARNING (CWE-768): [#def1703]
postgresql-18beta1/src/backend/utils/adt/xml.c:631: 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
Error: CPPCHECK_WARNING (CWE-457): [#def1704]
postgresql-18beta1/src/backend/utils/adt/xml.c:848: warning[uninitvar]: Uninitialized variable: result
Error: CPPCHECK_WARNING (CWE-457): [#def1705]
postgresql-18beta1/src/backend/utils/adt/xml.c:972: warning[uninitvar]: Uninitialized variable: result
Error: CPPCHECK_WARNING (CWE-457): [#def1706]
postgresql-18beta1/src/backend/utils/adt/xml.c:2665: warning[uninitvar]: Uninitialized variable: result
Error: CPPCHECK_WARNING (CWE-457): [#def1707]
postgresql-18beta1/src/backend/utils/cache/catcache.c:2046: warning[uninitvar]: Uninitialized variable: cl
Error: CPPCHECK_WARNING (CWE-457): [#def1708]
postgresql-18beta1/src/backend/utils/cache/catcache.c:2050: warning[uninitvar]: Uninitialized variable: ordered
Error: CPPCHECK_WARNING (CWE-457): [#def1709]
postgresql-18beta1/src/backend/utils/cache/catcache.c:2053: warning[uninitvar]: Uninitialized variable: nmembers
Error: CPPCHECK_WARNING (CWE-476): [#def1710]
postgresql-18beta1/src/backend/utils/cache/catcache.c:2320: warning[nullPointer]: Possible null pointer dereference: srckeys
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1711]
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:503:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&mapdicts’
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:385:1: enter_function: entry to ‘lookup_ts_config_cache’
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:424:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:427:43: call_function: inlined call to ‘GETSTRUCT’ from ‘lookup_ts_config_cache’
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:432:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:435:20: branch_false: ...to here
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:485:24: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:487:80: call_function: inlined call to ‘GETSTRUCT’ from ‘lookup_ts_config_cache’
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:490:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:492:28: branch_false: ...to here
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:492:28: branch_false: following ‘false’ branch (when ‘maxtokentype <= toktype’)...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:494:28: branch_false: ...to here
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:494:28: branch_true: following ‘true’ branch (when ‘maxtokentype < toktype’)...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:497:36: branch_true: ...to here
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:497:36: branch_false: following ‘false’ branch (when ‘ndicts <= 0’)...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:507:47: branch_false: ...to here
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:485:24: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:487:80: call_function: inlined call to ‘GETSTRUCT’ from ‘lookup_ts_config_cache’
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:490:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:492:28: branch_false: ...to here
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:492:28: branch_false: following ‘false’ branch (when ‘maxtokentype <= toktype’)...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:494:28: branch_false: ...to here
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:494:28: branch_true: following ‘true’ branch (when ‘maxtokentype < toktype’)...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:497:36: branch_true: ...to here
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:503:41: danger: use of uninitialized value ‘&mapdicts’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1712]
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:530:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&mapdicts’
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:385:1: enter_function: entry to ‘lookup_ts_config_cache’
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:424:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:427:43: call_function: inlined call to ‘GETSTRUCT’ from ‘lookup_ts_config_cache’
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:432:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:435:20: branch_false: ...to here
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:485:24: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:487:80: call_function: inlined call to ‘GETSTRUCT’ from ‘lookup_ts_config_cache’
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:490:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:492:28: branch_false: ...to here
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:492:28: branch_false: following ‘false’ branch (when ‘maxtokentype <= toktype’)...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:494:28: branch_false: ...to here
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:494:28: branch_true: following ‘true’ branch (when ‘maxtokentype < toktype’)...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:497:36: branch_true: ...to here
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:497:36: branch_false: following ‘false’ branch (when ‘ndicts <= 0’)...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:507:47: branch_false: ...to here
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:523:20: branch_true: following ‘true’ branch (when ‘ndicts > 0’)...
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:526:25: branch_true: ...to here
postgresql-18beta1/src/backend/utils/cache/ts_cache.c:530:25: danger: use of uninitialized value ‘&mapdicts’ here
Error: CPPCHECK_WARNING (CWE-457): [#def1713]
postgresql-18beta1/src/backend/utils/cache/typcache.c:2901: warning[uninitvar]: Uninitialized variable: &srch.sort_order
Error: CPPCHECK_WARNING (CWE-457): [#def1714]
postgresql-18beta1/src/backend/utils/cache/typcache.c:3001: warning[uninitvar]: Uninitialized variable: typmod_table_entry
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1715]
postgresql-18beta1/src/backend/utils/error/elog.c:1168:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/backend/utils/error/elog.c:752:1: enter_function: entry to ‘get_error_stack_entry’
postgresql-18beta1/src/backend/utils/error/elog.c:762:17: call_function: inlined call to ‘errstart_cold’ from ‘get_error_stack_entry’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1716]
postgresql-18beta1/src/backend/utils/error/elog.c:1681:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/backend/utils/error/elog.c:2242:1: enter_function: entry to ‘check_log_destination’
postgresql-18beta1/src/backend/utils/error/elog.c:2254:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/error/elog.c:2257:17: branch_false: ...to here
postgresql-18beta1/src/backend/utils/error/elog.c:2257:17: call_function: calling ‘format_elog_string’ from ‘check_log_destination’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1717]
postgresql-18beta1/src/backend/utils/error/elog.c:3795:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/backend/utils/error/elog.c:3792:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/backend/utils/error/elog.c:3795:9: throw: if ‘pg_vfprintf’ throws an exception...
postgresql-18beta1/src/backend/utils/error/elog.c:3795:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1718]
postgresql-18beta1/src/backend/utils/error/jsonlog.c:88:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/backend/utils/error/jsonlog.c:87:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/backend/utils/error/jsonlog.c:88:26: throw: if ‘pvsnprintf’ throws an exception...
postgresql-18beta1/src/backend/utils/error/jsonlog.c:88:26: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1719]
postgresql-18beta1/src/backend/utils/init/postinit.c:1302:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/utils/init/postinit.c:1251:1: enter_function: entry to ‘process_startup_options’
postgresql-18beta1/src/backend/utils/init/postinit.c:1293:19: call_function: inlined call to ‘list_head’ from ‘process_startup_options’
postgresql-18beta1/src/backend/utils/init/postinit.c:1294:16: branch_true: following ‘true’ branch (when ‘gucopts’ is non-NULL)...
postgresql-18beta1/src/backend/utils/init/postinit.c:1299:17: branch_true: ...to here
postgresql-18beta1/src/backend/utils/init/postinit.c:1302:17: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1720]
postgresql-18beta1/src/backend/utils/misc/guc-file.c:1608:54: warning[-Wanalyzer-malloc-leak]: leak of ‘GUC_yy_create_buffer(fp, 16384, yyg)’
postgresql-18beta1/src/backend/utils/misc/guc-file.l:581:1: enter_function: entry to ‘ParseConfigDirectory’
postgresql-18beta1/src/backend/utils/misc/guc-file.l:594:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/misc/guc-file.l:594:12: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/guc-file.l:601:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/misc/guc-file.l:603:47: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/guc-file.l:603:22: call_function: calling ‘ParseConfigFile’ from ‘ParseConfigDirectory’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1721]
postgresql-18beta1/src/backend/utils/misc/guc-file.c:1608:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/src/backend/utils/misc/guc-file.l:581:1: enter_function: entry to ‘ParseConfigDirectory’
postgresql-18beta1/src/backend/utils/misc/guc-file.l:594:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/misc/guc-file.l:594:12: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/guc-file.l:601:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/misc/guc-file.l:603:47: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/guc-file.l:603:22: call_function: calling ‘ParseConfigFile’ from ‘ParseConfigDirectory’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1722]
postgresql-18beta1/src/backend/utils/misc/guc-file.c:1692:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘yyscanner’
postgresql-18beta1/src/backend/utils/misc/guc-file.l:581:1: enter_function: entry to ‘ParseConfigDirectory’
postgresql-18beta1/src/backend/utils/misc/guc-file.l:594:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/misc/guc-file.l:594:12: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/guc-file.l:601:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/misc/guc-file.l:603:47: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/guc-file.l:603:22: call_function: calling ‘ParseConfigFile’ from ‘ParseConfigDirectory’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1723]
postgresql-18beta1/src/backend/utils/misc/guc-file.c:1784:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/backend/utils/misc/guc-file.l:581:1: enter_function: entry to ‘ParseConfigDirectory’
postgresql-18beta1/src/backend/utils/misc/guc-file.l:594:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/misc/guc-file.l:594:12: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/guc-file.l:601:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/misc/guc-file.l:603:47: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/guc-file.l:603:22: call_function: calling ‘ParseConfigFile’ from ‘ParseConfigDirectory’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1724]
postgresql-18beta1/src/backend/utils/misc/guc-file.l:286:16: warning[-Wanalyzer-malloc-leak]: leak of ‘scanner’
postgresql-18beta1/src/backend/utils/misc/guc-file.l:581:1: enter_function: entry to ‘ParseConfigDirectory’
postgresql-18beta1/src/backend/utils/misc/guc-file.l:594:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/misc/guc-file.l:594:12: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/guc-file.l:601:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/misc/guc-file.l:603:47: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/guc-file.l:603:22: call_function: calling ‘ParseConfigFile’ from ‘ParseConfigDirectory’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1725]
postgresql-18beta1/src/backend/utils/misc/guc-file.l:372:17: warning[-Wanalyzer-malloc-leak]: leak of ‘scanner’
postgresql-18beta1/src/backend/utils/misc/guc-file.l:581:1: enter_function: entry to ‘ParseConfigDirectory’
postgresql-18beta1/src/backend/utils/misc/guc-file.l:594:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/misc/guc-file.l:594:12: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/guc-file.l:601:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/misc/guc-file.l:603:47: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/guc-file.l:603:22: call_function: calling ‘ParseConfigFile’ from ‘ParseConfigDirectory’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1726]
postgresql-18beta1/src/backend/utils/misc/guc-file.l:391:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/backend/utils/misc/guc-file.l:581:1: enter_function: entry to ‘ParseConfigDirectory’
postgresql-18beta1/src/backend/utils/misc/guc-file.l:594:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/misc/guc-file.l:594:12: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/guc-file.l:601:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/misc/guc-file.l:603:47: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/guc-file.l:603:22: call_function: calling ‘ParseConfigFile’ from ‘ParseConfigDirectory’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1727]
postgresql-18beta1/src/backend/utils/misc/guc.c:5989:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/backend/utils/misc/guc.c:5985:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/misc/guc.c:5988:9: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/guc.c:5988:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/backend/utils/misc/guc.c:5989:13: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/src/backend/utils/misc/guc.c:5989:13: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1728]
postgresql-18beta1/src/backend/utils/misc/guc.c:6672:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘eqsgn’
postgresql-18beta1/src/backend/utils/misc/guc.c:6644:12: branch_false: following ‘false’ branch (when ‘array’ is non-NULL)...
postgresql-18beta1/src/backend/utils/misc/guc.c:6648:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/guc.c:6648:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/misc/guc.c:6652:9: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/guc.c:6654:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/misc/guc.c:6661:21: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/guc.c:6672:17: danger: dereference of NULL ‘eqsgn’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1729]
postgresql-18beta1/src/backend/utils/misc/ps_status.c:203:33: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/backend/utils/misc/ps_status.c:138:29: branch_true: following ‘true’ branch (when ‘i < argc’)...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:140:28: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:140:28: branch_true: following ‘true’ branch (when ‘i == 0’)...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:141:51: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:144:20: branch_false: following ‘false’ branch (when ‘end_of_area’ is non-NULL)...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:144:20: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:193:20: branch_false: following ‘false’ branch (when ‘new_environ’ is non-NULL)...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:193:20: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:198:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:200:36: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:200:42: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:201:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:198:49: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:198:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:200:36: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:201:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:203:33: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:203:33: throw: if ‘write_stderr’ throws an exception...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:203:33: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1730]
postgresql-18beta1/src/backend/utils/misc/ps_status.c:203:33: warning[-Wanalyzer-malloc-leak]: leak of ‘new_environ’
postgresql-18beta1/src/backend/utils/misc/ps_status.c:138:29: branch_true: following ‘true’ branch (when ‘i < argc’)...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:140:28: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:140:28: branch_true: following ‘true’ branch (when ‘i == 0’)...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:141:51: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:144:20: branch_false: following ‘false’ branch (when ‘end_of_area’ is non-NULL)...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:144:20: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:192:41: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:193:20: branch_false: following ‘false’ branch (when ‘new_environ’ is non-NULL)...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:193:20: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:198:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:200:36: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:201:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:203:33: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:203:33: throw: if ‘write_stderr’ throws an exception...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:203:33: danger: ‘new_environ’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1731]
postgresql-18beta1/src/backend/utils/misc/ps_status.c:238:33: warning[-Wanalyzer-malloc-leak]: leak of ‘new_argv’
postgresql-18beta1/src/backend/utils/misc/ps_status.c:138:29: branch_true: following ‘true’ branch (when ‘i < argc’)...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:140:28: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:140:28: branch_true: following ‘true’ branch (when ‘i == 0’)...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:141:51: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:144:20: branch_false: following ‘false’ branch (when ‘end_of_area’ is non-NULL)...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:144:20: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:193:20: branch_false: following ‘false’ branch (when ‘new_environ’ is non-NULL)...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:193:20: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:198:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:207:28: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:227:38: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:228:20: branch_false: following ‘false’ branch (when ‘new_argv’ is non-NULL)...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:228:20: branch_false: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:233:29: branch_true: following ‘true’ branch (when ‘i < argc’)...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:235:50: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:236:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:238:33: branch_true: ...to here
postgresql-18beta1/src/backend/utils/misc/ps_status.c:238:33: throw: if ‘write_stderr’ throws an exception...
postgresql-18beta1/src/backend/utils/misc/ps_status.c:238:33: danger: ‘new_argv’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1732]
postgresql-18beta1/src/backend/utils/mmgr/aset.c:513:9: warning[-Wanalyzer-malloc-leak]: leak of ‘set’
postgresql-18beta1/src/backend/utils/mmgr/aset.c:444:26: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/mmgr/aset.c:445:12: branch_false: following ‘false’ branch (when ‘set’ is non-NULL)...
postgresql-18beta1/src/backend/utils/mmgr/aset.c:462:9: branch_false: ...to here
postgresql-18beta1/src/backend/utils/mmgr/aset.c:513:9: throw: if ‘MemoryContextCreate’ throws an exception...
postgresql-18beta1/src/backend/utils/mmgr/aset.c:513:9: danger: ‘set’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1733]
postgresql-18beta1/src/backend/utils/mmgr/aset.c:919:38: warning[-Wanalyzer-malloc-leak]: leak of ‘block’
postgresql-18beta1/src/backend/utils/mmgr/aset.c:914:16: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/mmgr/aset.c:916:17: branch_true: ...to here
postgresql-18beta1/src/backend/utils/mmgr/aset.c:917:20: branch_false: following ‘false’ branch (when ‘required_size <= blksize’)...
postgresql-18beta1/src/backend/utils/mmgr/aset.c:919:38: branch_false: ...to here
postgresql-18beta1/src/backend/utils/mmgr/aset.c:919:38: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/mmgr/aset.c:914:16: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/mmgr/aset.c:916:17: branch_true: ...to here
postgresql-18beta1/src/backend/utils/mmgr/aset.c:917:20: branch_false: following ‘false’ branch (when ‘required_size <= blksize’)...
postgresql-18beta1/src/backend/utils/mmgr/aset.c:919:38: branch_false: ...to here
postgresql-18beta1/src/backend/utils/mmgr/aset.c:919:38: danger: ‘block’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1734]
postgresql-18beta1/src/backend/utils/mmgr/aset.c:923:24: warning[-Wanalyzer-malloc-leak]: leak of ‘block’
postgresql-18beta1/src/backend/utils/mmgr/aset.c:914:16: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/mmgr/aset.c:916:17: branch_true: ...to here
postgresql-18beta1/src/backend/utils/mmgr/aset.c:917:20: branch_false: following ‘false’ branch (when ‘required_size <= blksize’)...
postgresql-18beta1/src/backend/utils/mmgr/aset.c:919:38: branch_false: ...to here
postgresql-18beta1/src/backend/utils/mmgr/aset.c:919:38: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/mmgr/aset.c:914:16: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/mmgr/aset.c:916:17: branch_true: ...to here
postgresql-18beta1/src/backend/utils/mmgr/aset.c:922:12: branch_true: following ‘true’ branch (when ‘block’ is NULL)...
postgresql-18beta1/src/backend/utils/mmgr/aset.c:923:24: branch_true: ...to here
postgresql-18beta1/src/backend/utils/mmgr/aset.c:923:24: throw: if ‘MemoryContextAllocationFailure’ throws an exception...
postgresql-18beta1/src/backend/utils/mmgr/aset.c:923:24: danger: ‘block’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1735]
postgresql-18beta1/src/backend/utils/mmgr/bump.c:227:9: warning[-Wanalyzer-malloc-leak]: leak of ‘set’
postgresql-18beta1/src/backend/utils/mmgr/bump.c:131:1: enter_function: entry to ‘BumpContextCreate’
postgresql-18beta1/src/backend/utils/mmgr/bump.c:177:31: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/mmgr/bump.c:178:12: branch_false: following ‘false’ branch (when ‘set’ is non-NULL)...
postgresql-18beta1/src/backend/utils/mmgr/bump.c:192:9: call_function: inlined call to ‘dlist_init’ from ‘BumpContextCreate’
postgresql-18beta1/src/backend/utils/mmgr/bump.c:222:16: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/mmgr/bump.c:227:9: branch_false: ...to here
postgresql-18beta1/src/backend/utils/mmgr/bump.c:227:9: throw: if ‘MemoryContextCreate’ throws an exception...
postgresql-18beta1/src/backend/utils/mmgr/bump.c:227:9: danger: ‘set’ leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1736]
postgresql-18beta1/src/backend/utils/mmgr/freepage.c:1441:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘result.index’
postgresql-18beta1/src/backend/utils/mmgr/freepage.c:1476:1: enter_function: entry to ‘FreePageManagerPutInternal’
postgresql-18beta1/src/backend/utils/mmgr/freepage.c:1489:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/mmgr/freepage.c:1491:21: branch_true: ...to here
postgresql-18beta1/src/backend/utils/mmgr/freepage.c:1491:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/mmgr/freepage.c:1499:26: branch_false: ...to here
postgresql-18beta1/src/backend/utils/mmgr/freepage.c:1499:25: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/mmgr/freepage.c:1509:26: branch_false: ...to here
postgresql-18beta1/src/backend/utils/mmgr/freepage.c:1509:25: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/mmgr/freepage.c:1525:30: branch_false: ...to here
postgresql-18beta1/src/backend/utils/mmgr/freepage.c:1525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/mmgr/freepage.c:1527:33: branch_false: ...to here
postgresql-18beta1/src/backend/utils/mmgr/freepage.c:1527:33: branch_false: following ‘false’ branch (when ‘soft == 0’)...
postgresql-18beta1/src/backend/utils/mmgr/freepage.c:1529:34: branch_false: ...to here
postgresql-18beta1/src/backend/utils/mmgr/freepage.c:1529:34: call_function: calling ‘FreePageManagerGetInternal’ from ‘FreePageManagerPutInternal’
Error: CPPCHECK_WARNING (CWE-457): [#def1737]
postgresql-18beta1/src/backend/utils/mmgr/freepage.c:1538: error[legacyUninitvar]: Uninitialized variable: root
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1738]
postgresql-18beta1/src/backend/utils/mmgr/generation.c:262:9: warning[-Wanalyzer-malloc-leak]: leak of ‘set’
postgresql-18beta1/src/backend/utils/mmgr/generation.c:160:1: enter_function: entry to ‘GenerationContextCreate’
postgresql-18beta1/src/backend/utils/mmgr/generation.c:209:37: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/mmgr/generation.c:210:12: branch_false: following ‘false’ branch (when ‘set’ is non-NULL)...
postgresql-18beta1/src/backend/utils/mmgr/generation.c:224:9: call_function: inlined call to ‘dlist_init’ from ‘GenerationContextCreate’
postgresql-18beta1/src/backend/utils/mmgr/generation.c:257:16: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/mmgr/generation.c:262:9: branch_false: ...to here
postgresql-18beta1/src/backend/utils/mmgr/generation.c:262:9: throw: if ‘MemoryContextCreate’ throws an exception...
postgresql-18beta1/src/backend/utils/mmgr/generation.c:262:9: danger: ‘set’ leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1739]
postgresql-18beta1/src/backend/utils/mmgr/mcxt.c:959:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*num_contexts’
postgresql-18beta1/src/backend/utils/mmgr/mcxt.c:860:1: enter_function: entry to ‘MemoryContextStatsDetail’
postgresql-18beta1/src/backend/utils/mmgr/mcxt.c:876:9: call_function: calling ‘MemoryContextStatsInternal’ from ‘MemoryContextStatsDetail’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1740]
postgresql-18beta1/src/backend/utils/mmgr/slab.c:414:9: warning[-Wanalyzer-malloc-leak]: leak of ‘slab’
postgresql-18beta1/src/backend/utils/mmgr/slab.c:322:1: enter_function: entry to ‘SlabContextCreate’
postgresql-18beta1/src/backend/utils/mmgr/slab.c:358:12: branch_false: following ‘false’ branch (when ‘chunksPerBlock != 0’)...
postgresql-18beta1/src/backend/utils/mmgr/slab.c:364:32: branch_false: ...to here
postgresql-18beta1/src/backend/utils/mmgr/slab.c:364:32: acquire_memory: allocated here
postgresql-18beta1/src/backend/utils/mmgr/slab.c:365:12: branch_false: following ‘false’ branch (when ‘slab’ is non-NULL)...
postgresql-18beta1/src/backend/utils/mmgr/slab.c:381:27: branch_false: ...to here
postgresql-18beta1/src/backend/utils/mmgr/slab.c:405:21: branch_true: following ‘true’ branch (when ‘i != 3’)...
postgresql-18beta1/src/backend/utils/mmgr/slab.c:406:17: call_function: inlined call to ‘dlist_init’ from ‘SlabContextCreate’
postgresql-18beta1/src/backend/utils/mmgr/slab.c:414:9: throw: if ‘MemoryContextCreate’ throws an exception...
postgresql-18beta1/src/backend/utils/mmgr/slab.c:414:9: danger: ‘slab’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1741]
postgresql-18beta1/src/bin/initdb/initdb.c:687:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
postgresql-18beta1/src/bin/initdb/initdb.c:684:23: acquire_resource: opened here
postgresql-18beta1/src/bin/initdb/initdb.c:684:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/initdb/initdb.c:687:9: branch_false: ...to here
postgresql-18beta1/src/bin/initdb/initdb.c:687:9: throw: if ‘initStringInfo’ throws an exception...
postgresql-18beta1/src/bin/initdb/initdb.c:687:9: danger: ‘fopen(path, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1742]
postgresql-18beta1/src/bin/initdb/initdb.c:687:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "r")’
postgresql-18beta1/src/bin/initdb/initdb.c:684:23: acquire_memory: allocated here
postgresql-18beta1/src/bin/initdb/initdb.c:684:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/initdb/initdb.c:687:9: branch_false: ...to here
postgresql-18beta1/src/bin/initdb/initdb.c:687:9: throw: if ‘initStringInfo’ throws an exception...
postgresql-18beta1/src/bin/initdb/initdb.c:687:9: danger: ‘fopen(path, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1743]
postgresql-18beta1/src/bin/initdb/initdb.c:690:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
postgresql-18beta1/src/bin/initdb/initdb.c:684:23: acquire_resource: opened here
postgresql-18beta1/src/bin/initdb/initdb.c:684:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/initdb/initdb.c:687:9: branch_false: ...to here
postgresql-18beta1/src/bin/initdb/initdb.c:690:28: throw: if ‘pg_malloc’ throws an exception...
postgresql-18beta1/src/bin/initdb/initdb.c:690:28: danger: ‘fopen(path, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1744]
postgresql-18beta1/src/bin/initdb/initdb.c:690:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "r")’
postgresql-18beta1/src/bin/initdb/initdb.c:684:23: acquire_memory: allocated here
postgresql-18beta1/src/bin/initdb/initdb.c:684:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/initdb/initdb.c:687:9: branch_false: ...to here
postgresql-18beta1/src/bin/initdb/initdb.c:690:28: throw: if ‘pg_malloc’ throws an exception...
postgresql-18beta1/src/bin/initdb/initdb.c:690:28: danger: ‘fopen(path, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1745]
postgresql-18beta1/src/bin/initdb/initdb.c:693:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
postgresql-18beta1/src/bin/initdb/initdb.c:684:23: acquire_resource: opened here
postgresql-18beta1/src/bin/initdb/initdb.c:684:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/initdb/initdb.c:687:9: branch_false: ...to here
postgresql-18beta1/src/bin/initdb/initdb.c:693:16: throw: if ‘pg_get_line_buf’ throws an exception...
postgresql-18beta1/src/bin/initdb/initdb.c:693:16: danger: ‘fopen(path, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1746]
postgresql-18beta1/src/bin/initdb/initdb.c:693:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "r")’
postgresql-18beta1/src/bin/initdb/initdb.c:684:23: acquire_memory: allocated here
postgresql-18beta1/src/bin/initdb/initdb.c:684:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/initdb/initdb.c:687:9: branch_false: ...to here
postgresql-18beta1/src/bin/initdb/initdb.c:693:16: throw: if ‘pg_get_line_buf’ throws an exception...
postgresql-18beta1/src/bin/initdb/initdb.c:693:16: danger: ‘fopen(path, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1747]
postgresql-18beta1/src/bin/initdb/initdb.c:730:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w")’
postgresql-18beta1/src/bin/initdb/initdb.c:728:25: acquire_resource: opened here
postgresql-18beta1/src/bin/initdb/initdb.c:728:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/initdb/initdb.c:728:12: branch_false: ...to here
postgresql-18beta1/src/bin/initdb/initdb.c:730:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/initdb/initdb.c:732:21: branch_true: ...to here
postgresql-18beta1/src/bin/initdb/initdb.c:730:28: danger: ‘fopen(path, "w")’ leaks here; was opened at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1748]
postgresql-18beta1/src/bin/initdb/initdb.c:730:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w")’
postgresql-18beta1/src/bin/initdb/initdb.c:728:25: acquire_memory: allocated here
postgresql-18beta1/src/bin/initdb/initdb.c:728:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/initdb/initdb.c:728:12: branch_false: ...to here
postgresql-18beta1/src/bin/initdb/initdb.c:730:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/initdb/initdb.c:732:21: branch_true: ...to here
postgresql-18beta1/src/bin/initdb/initdb.c:730:28: danger: ‘fopen(path, "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1749]
postgresql-18beta1/src/bin/initdb/initdb.c:1036:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w")’
postgresql-18beta1/src/bin/initdb/initdb.c:1034:29: acquire_resource: opened here
postgresql-18beta1/src/bin/initdb/initdb.c:1034:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/initdb/initdb.c:1036:13: branch_false: ...to here
postgresql-18beta1/src/bin/initdb/initdb.c:1036:13: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/initdb/initdb.c:1036:13: danger: ‘fopen(path, "w")’ leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1750]
postgresql-18beta1/src/bin/initdb/initdb.c:1036:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w")’
postgresql-18beta1/src/bin/initdb/initdb.c:1034:29: acquire_memory: allocated here
postgresql-18beta1/src/bin/initdb/initdb.c:1034:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/initdb/initdb.c:1036:13: branch_false: ...to here
postgresql-18beta1/src/bin/initdb/initdb.c:1036:13: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/initdb/initdb.c:1036:13: danger: ‘fopen(path, "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1751]
postgresql-18beta1/src/bin/initdb/initdb.c:1694:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(pwfilename, "r")’
postgresql-18beta1/src/bin/initdb/initdb.c:1661:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/initdb/initdb.c:1689:35: branch_false: ...to here
postgresql-18beta1/src/bin/initdb/initdb.c:1689:35: acquire_resource: opened here
postgresql-18beta1/src/bin/initdb/initdb.c:1691:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/initdb/initdb.c:1694:24: branch_false: ...to here
postgresql-18beta1/src/bin/initdb/initdb.c:1694:24: throw: if ‘pg_get_line’ throws an exception...
postgresql-18beta1/src/bin/initdb/initdb.c:1694:24: danger: ‘fopen(pwfilename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1752]
postgresql-18beta1/src/bin/initdb/initdb.c:1694:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(pwfilename, "r")’
postgresql-18beta1/src/bin/initdb/initdb.c:1661:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/initdb/initdb.c:1689:35: branch_false: ...to here
postgresql-18beta1/src/bin/initdb/initdb.c:1689:35: acquire_memory: allocated here
postgresql-18beta1/src/bin/initdb/initdb.c:1691:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/initdb/initdb.c:1694:24: branch_false: ...to here
postgresql-18beta1/src/bin/initdb/initdb.c:1694:24: throw: if ‘pg_get_line’ throws an exception...
postgresql-18beta1/src/bin/initdb/initdb.c:1694:24: danger: ‘fopen(pwfilename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1753]
postgresql-18beta1/src/bin/initdb/localtime.c:233:15: warning[-Wanalyzer-malloc-leak]: leak of ‘lsp’
postgresql-18beta1/src/bin/initdb/localtime.c:1389:1: enter_function: entry to ‘pg_gmtime’
postgresql-18beta1/src/bin/initdb/localtime.c:1391:16: call_function: calling ‘gmtsub’ from ‘pg_gmtime’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1754]
postgresql-18beta1/src/bin/initdb/localtime.c:242:17: warning[-Wanalyzer-malloc-leak]: leak of ‘lsp’
postgresql-18beta1/src/bin/initdb/localtime.c:1389:1: enter_function: entry to ‘pg_gmtime’
postgresql-18beta1/src/bin/initdb/localtime.c:1391:16: call_function: calling ‘gmtsub’ from ‘pg_gmtime’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1755]
postgresql-18beta1/src/bin/initdb/localtime.c:245:13: warning[-Wanalyzer-malloc-leak]: leak of ‘lsp’
postgresql-18beta1/src/bin/initdb/localtime.c:1389:1: enter_function: entry to ‘pg_gmtime’
postgresql-18beta1/src/bin/initdb/localtime.c:1391:16: call_function: calling ‘gmtsub’ from ‘pg_gmtime’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1756]
postgresql-18beta1/src/bin/pg_archivecleanup/pg_archivecleanup.c:104:35: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(archiveLocation)’
postgresql-18beta1/src/bin/pg_archivecleanup/pg_archivecleanup.c:99:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_archivecleanup/pg_archivecleanup.c:100:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_archivecleanup/pg_archivecleanup.c:100:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_archivecleanup/pg_archivecleanup.c:104:35: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/src/bin/pg_archivecleanup/pg_archivecleanup.c:104:35: danger: ‘opendir(archiveLocation)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1757]
postgresql-18beta1/src/bin/pg_basebackup/pg_basebackup.c:1021:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘state.file’
postgresql-18beta1/src/bin/pg_basebackup/pg_basebackup.c:1699:1: enter_function: entry to ‘ReceiveBackupManifest’
postgresql-18beta1/src/bin/pg_basebackup/pg_basebackup.c:1705:22: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_basebackup/pg_basebackup.c:1706:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_basebackup/pg_basebackup.c:1709:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_basebackup/pg_basebackup.c:1709:9: call_function: calling ‘ReceiveCopyData’ from ‘ReceiveBackupManifest’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1758]
postgresql-18beta1/src/bin/pg_basebackup/pg_basebackup.c:1021:15: warning[-Wanalyzer-malloc-leak]: leak of ‘state.file’
postgresql-18beta1/src/bin/pg_basebackup/pg_basebackup.c:1699:1: enter_function: entry to ‘ReceiveBackupManifest’
postgresql-18beta1/src/bin/pg_basebackup/pg_basebackup.c:1705:22: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_basebackup/pg_basebackup.c:1706:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_basebackup/pg_basebackup.c:1709:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_basebackup/pg_basebackup.c:1709:9: call_function: calling ‘ReceiveCopyData’ from ‘ReceiveBackupManifest’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1759]
postgresql-18beta1/src/bin/pg_basebackup/pg_receivewal.c:278:37: warning[-Wanalyzer-malloc-leak]: leak of ‘get_destination_dir(basedir)’
postgresql-18beta1/src/bin/pg_basebackup/pg_receivewal.c:268:1: enter_function: entry to ‘FindStreamingStart’
postgresql-18beta1/src/bin/pg_basebackup/pg_receivewal.c:276:15: call_function: calling ‘get_destination_dir’ from ‘FindStreamingStart’
postgresql-18beta1/src/bin/pg_basebackup/pg_receivewal.c:276:15: return_function: returning to ‘FindStreamingStart’ from ‘get_destination_dir’
postgresql-18beta1/src/bin/pg_basebackup/pg_receivewal.c:278:37: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/src/bin/pg_basebackup/pg_receivewal.c:278:37: danger: ‘get_destination_dir(basedir)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1760]
postgresql-18beta1/src/bin/pg_combinebackup/copy_file.c:133:17: warning[-Wanalyzer-jump-through-null]: jump through null pointer
branch_false: following ‘false’ branch (when ‘copy_method > 3’)...
postgresql-18beta1/src/bin/pg_combinebackup/copy_file.c:112:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_combinebackup/copy_file.c:112:12: branch_false: following ‘false’ branch (when ‘dry_run == 0’)...
postgresql-18beta1/src/bin/pg_combinebackup/copy_file.c:123:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_combinebackup/copy_file.c:123:20: branch_false: following ‘false’ branch (when ‘strategy_name’ is NULL)...
postgresql-18beta1/src/bin/pg_combinebackup/copy_file.c:126:26: branch_false: ...to here
postgresql-18beta1/src/bin/pg_combinebackup/copy_file.c:133:17: danger: jump through null pointer here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1761]
postgresql-18beta1/src/bin/pg_combinebackup/pg_combinebackup.c:944:33: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&ifulldir)’
postgresql-18beta1/src/bin/pg_combinebackup/pg_combinebackup.c:942:20: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_combinebackup/pg_combinebackup.c:942:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_combinebackup/pg_combinebackup.c:942:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_combinebackup/pg_combinebackup.c:944:33: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/src/bin/pg_combinebackup/pg_combinebackup.c:944:33: danger: ‘opendir(&ifulldir)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1762]
postgresql-18beta1/src/bin/pg_combinebackup/pg_combinebackup.c:1268:33: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&pg_tblspc)’
postgresql-18beta1/src/bin/pg_combinebackup/pg_combinebackup.c:1265:20: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_combinebackup/pg_combinebackup.c:1265:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_combinebackup/pg_combinebackup.c:1265:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_combinebackup/pg_combinebackup.c:1268:33: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/src/bin/pg_combinebackup/pg_combinebackup.c:1268:33: danger: ‘opendir(&pg_tblspc)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1763]
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:209:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:1965:1: enter_function: entry to ‘do_advice’
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:1967:9: call_function: calling ‘write_stderr’ from ‘do_advice’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1764]
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2166:13: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(psprintf("\"%s\" -C data_directory %s%s", my_exec_path, <unknown>, <unknown>), "r")’
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2133:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2137:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2138:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2140:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2144:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2153:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2165:14: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2166:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2166:27: branch_false: ...to here
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2166:13: danger: ‘popen(psprintf("\"%s\" -C data_directory %s%s", my_exec_path, <unknown>, <unknown>), "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1765]
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2166:76: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(psprintf("\"%s\" -C data_directory %s%s", my_exec_path, <unknown>, <unknown>), "r")’
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2133:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2137:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2138:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2140:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2144:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2153:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2165:14: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2166:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_ctl/pg_ctl.c:2166:76: danger: ‘popen(psprintf("\"%s\" -C data_directory %s%s", my_exec_path, <unknown>, <unknown>), "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1766]
postgresql-18beta1/src/bin/pg_dump/compress_gzip.c:361:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup(fd)’
postgresql-18beta1/src/bin/pg_dump/compress_gzip.c:360:12: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
postgresql-18beta1/src/bin/pg_dump/compress_gzip.c:361:24: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_gzip.c:361:24: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/compress_gzip.c:361:24: danger: ‘dup(fd)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1767]
postgresql-18beta1/src/bin/pg_dump/compress_lz4.c:730:1: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
postgresql-18beta1/src/bin/pg_dump/compress_lz4.c:717:12: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
postgresql-18beta1/src/bin/pg_dump/compress_lz4.c:718:22: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_lz4.c:718:22: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/compress_lz4.c:721:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
postgresql-18beta1/src/bin/pg_dump/compress_lz4.c:727:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_lz4.c:730:1: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1768]
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:483:42: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:475:12: branch_false: following ‘false’ branch (when ‘fd < 0’)...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:478:22: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:478:22: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:480:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:483:42: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:483:42: throw: if ‘pg_malloc0’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:483:42: danger: ‘fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1769]
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:483:42: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:475:12: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:476:22: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:476:22: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:480:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:483:42: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:483:42: throw: if ‘pg_malloc0’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:483:42: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1770]
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:489:37: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:475:12: branch_false: following ‘false’ branch (when ‘fd < 0’)...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:478:22: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:478:22: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:480:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:483:42: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:487:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:489:37: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:489:37: throw: if ‘ZSTD_DStreamInSize’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:489:37: danger: ‘fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1771]
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:489:37: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:475:12: branch_false: following ‘false’ branch (when ‘fd < 0’)...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:478:22: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:478:22: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:480:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:483:42: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:487:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:489:37: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:489:37: throw: if ‘ZSTD_DStreamInSize’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:489:37: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1772]
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:496:39: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:475:12: branch_false: following ‘false’ branch (when ‘fd < 0’)...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:478:22: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:478:22: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:480:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:483:42: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:487:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:494:18: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:494:17: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:496:39: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:496:39: throw: if ‘ZSTD_CStreamOutSize’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:496:39: danger: ‘fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1773]
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:496:39: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:475:12: branch_false: following ‘false’ branch (when ‘fd < 0’)...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:478:22: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:478:22: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:480:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:483:42: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:487:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:494:18: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:494:17: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:496:39: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:496:39: throw: if ‘ZSTD_CStreamOutSize’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:496:39: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1774]
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:503:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:475:12: branch_false: following ‘false’ branch (when ‘fd < 0’)...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:478:22: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:478:22: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:480:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:483:42: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:487:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:494:18: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:494:17: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:503:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:503:17: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:503:17: danger: ‘fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1775]
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:503:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:475:12: branch_false: following ‘false’ branch (when ‘fd < 0’)...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:478:22: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:478:22: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:480:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:483:42: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:487:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:494:18: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:494:17: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:503:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:503:17: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/compress_zstd.c:503:17: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1776]
postgresql-18beta1/src/bin/pg_dump/filter.c:160:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/bin/pg_dump/filter.c:159:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/bin/pg_dump/filter.c:160:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/filter.c:160:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1777]
postgresql-18beta1/src/bin/pg_dump/parallel.c:516: warning[nullPointer]: Possible null pointer dereference: slot
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1778]
postgresql-18beta1/src/bin/pg_dump/parallel.c:516:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘slot’
postgresql-18beta1/src/bin/pg_dump/parallel.c:1071:1: enter_function: entry to ‘ParallelBackupEnd’
postgresql-18beta1/src/bin/pg_dump/parallel.c:1076:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/parallel.c:1076:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/parallel.c:1083:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/parallel.c:1085:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/parallel.c:1083:21: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/parallel.c:1090:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/parallel.c:1090:9: call_function: calling ‘WaitForTerminatingWorkers’ from ‘ParallelBackupEnd’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1779]
postgresql-18beta1/src/bin/pg_dump/parallel.c:971:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipeMW[0]’
postgresql-18beta1/src/bin/pg_dump/parallel.c:909:1: enter_function: entry to ‘ParallelBackupStart’
postgresql-18beta1/src/bin/pg_dump/parallel.c:922:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/parallel.c:927:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/parallel.c:951:9: call_function: calling ‘set_archive_cancel_info’ from ‘ParallelBackupStart’
postgresql-18beta1/src/bin/pg_dump/parallel.c:951:9: return_function: returning to ‘ParallelBackupStart’ from ‘set_archive_cancel_info’
postgresql-18beta1/src/bin/pg_dump/parallel.c:957:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/parallel.c:965:40: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/parallel.c:970:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/parallel.c:970:43: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/parallel.c:970:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/parallel.c:971:25: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/parallel.c:971:25: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/parallel.c:971:25: danger: ‘pipeMW[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1780]
postgresql-18beta1/src/bin/pg_dump/parallel.c:971:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipeMW[1]’
postgresql-18beta1/src/bin/pg_dump/parallel.c:909:1: enter_function: entry to ‘ParallelBackupStart’
postgresql-18beta1/src/bin/pg_dump/parallel.c:922:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/parallel.c:927:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/parallel.c:951:9: call_function: calling ‘set_archive_cancel_info’ from ‘ParallelBackupStart’
postgresql-18beta1/src/bin/pg_dump/parallel.c:951:9: return_function: returning to ‘ParallelBackupStart’ from ‘set_archive_cancel_info’
postgresql-18beta1/src/bin/pg_dump/parallel.c:957:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/parallel.c:965:40: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/parallel.c:970:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/parallel.c:970:43: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/parallel.c:970:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/parallel.c:971:25: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/parallel.c:971:25: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/parallel.c:971:25: danger: ‘pipeMW[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1781]
postgresql-18beta1/src/bin/pg_dump/pg_backup_archiver.c:1760:23: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/bin/pg_dump/pg_backup_archiver.c:4269:1: enter_function: entry to ‘dumpTimestamp’
postgresql-18beta1/src/bin/pg_dump/pg_backup_archiver.c:4273:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_backup_archiver.c:4274:17: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_backup_archiver.c:4274:17: call_function: calling ‘ahprintf’ from ‘dumpTimestamp’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1782]
postgresql-18beta1/src/bin/pg_dump/pg_backup_archiver.c:1921:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/bin/pg_dump/pg_backup_archiver.c:3520:1: enter_function: entry to ‘_selectOutputSchema’
postgresql-18beta1/src/bin/pg_dump/pg_backup_archiver.c:3551:25: call_function: calling ‘warn_or_exit_horribly’ from ‘_selectOutputSchema’
Error: CPPCHECK_WARNING (CWE-476): [#def1783]
postgresql-18beta1/src/bin/pg_dump/pg_backup_archiver.c:2290: warning[nullPointer]: Possible null pointer dereference: fh
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1784]
postgresql-18beta1/src/bin/pg_dump/pg_backup_tar.c:971:23: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/bin/pg_dump/pg_backup_tar.c:970:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/bin/pg_dump/pg_backup_tar.c:971:23: throw: if ‘pvsnprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_backup_tar.c:971:23: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def1785]
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:1574: error[legacyUninitvar]: Uninitialized variable: archiveFormat
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1786]
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:5688:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:18133:1: enter_function: entry to ‘dumpConstraint’
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:18143:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:18146:13: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:18162:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:18166:21: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:18166:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:18167:25: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:18167:25: call_function: calling ‘binary_upgrade_set_pg_class_oids’ from ‘dumpConstraint’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1787]
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:13255:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘probin’
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:13136:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:13139:17: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:13144:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:13214:43: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:13219:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:13229:30: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:13251:12: branch_false: following ‘false’ branch (when ‘prosqlbody’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:13255:18: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:13255:18: danger: dereference of NULL ‘probin’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1788]
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14732:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘collcollate’
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14653:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14656:17: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14716:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14721:14: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14721:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14730:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14730:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14732:21: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14732:21: danger: dereference of NULL ‘collcollate’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1789]
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14734:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘collctype’
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14653:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14656:17: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14716:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14717:31: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14721:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14730:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14730:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14732:21: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14732:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14732:20: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:14734:21: danger: dereference of NULL ‘collctype’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1790]
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:18610:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘seq’
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:18563:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:18569:27: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:18610:25: danger: dereference of NULL ‘seq’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1791]
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:18846:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:18813:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:18842:27: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dump.c:18846:17: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1792]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘map_file’
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1641:12: branch_false: following ‘false’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1653:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1659:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1662:28: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1663:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1754:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:25: throw: if ‘PQntuples’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:25: danger: ‘map_file’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1793]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:25: warning[-Wanalyzer-malloc-leak]: leak of ‘map_file’
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1641:12: branch_false: following ‘false’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1653:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1659:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1662:28: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1663:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1754:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:25: throw: if ‘PQntuples’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:25: danger: ‘map_file’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1794]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: warning[-Wanalyzer-file-leak]: leak of FILE ‘map_file’
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1641:12: branch_false: following ‘false’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1653:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1659:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1662:28: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1663:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1754:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: danger: ‘map_file’ leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1795]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: warning[-Wanalyzer-malloc-leak]: leak of ‘map_file’
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1641:12: branch_false: following ‘false’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1653:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1659:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1662:28: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1663:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1754:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: danger: ‘map_file’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1796]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1670:35: warning[-Wanalyzer-file-leak]: leak of FILE ‘map_file’
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1641:12: branch_false: following ‘false’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1653:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1659:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1662:28: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1663:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1754:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1670:35: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1670:35: danger: ‘map_file’ leaks here; was opened at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1797]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1670:35: warning[-Wanalyzer-malloc-leak]: leak of ‘map_file’
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1641:12: branch_false: following ‘false’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1653:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1659:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1662:28: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1663:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1754:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1670:35: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1670:35: danger: ‘map_file’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1798]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1679:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘map_file’
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1641:12: branch_false: following ‘false’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1653:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1659:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1662:28: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1663:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1754:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1679:21: throw: if ‘simple_string_list_member’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1679:21: danger: ‘map_file’ leaks here; was opened at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1799]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1679:21: warning[-Wanalyzer-malloc-leak]: leak of ‘map_file’
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1641:12: branch_false: following ‘false’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1653:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1659:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1662:28: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1663:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1754:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1679:21: throw: if ‘simple_string_list_member’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1679:21: danger: ‘map_file’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1800]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1681:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘map_file’
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1641:12: branch_false: following ‘false’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1653:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1659:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1662:28: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1663:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1754:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1679:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1681:25: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1681:25: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1681:25: danger: ‘map_file’ leaks here; was opened at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1801]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1681:25: warning[-Wanalyzer-malloc-leak]: leak of ‘map_file’
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1641:12: branch_false: following ‘false’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1653:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1659:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1662:28: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1663:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1754:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1679:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1681:25: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1681:25: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1681:25: danger: ‘map_file’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1802]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1692:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘map_file’
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1641:12: branch_false: following ‘false’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1653:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1659:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1662:28: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1663:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1754:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1679:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1689:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1689:20: branch_true: following ‘true’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1691:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1691:28: branch_true: following ‘true’ branch (when ‘archDumpFormat == 1’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1692:33: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1692:33: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1692:33: danger: ‘map_file’ leaks here; was opened at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1803]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1692:33: warning[-Wanalyzer-malloc-leak]: leak of ‘map_file’
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1641:12: branch_false: following ‘false’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1653:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1659:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1662:28: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1663:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1754:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1679:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1689:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1689:20: branch_true: following ‘true’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1691:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1691:28: branch_true: following ‘true’ branch (when ‘archDumpFormat == 1’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1692:33: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1692:33: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1692:33: danger: ‘map_file’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1804]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1694:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘map_file’
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1641:12: branch_false: following ‘false’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1653:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1659:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1662:28: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1663:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1754:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1679:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1689:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1689:20: branch_true: following ‘true’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1691:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1691:28: branch_false: following ‘false’ branch (when ‘archDumpFormat != 1’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1693:33: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1693:33: branch_true: following ‘true’ branch (when ‘archDumpFormat == 3’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1694:33: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1694:33: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1694:33: danger: ‘map_file’ leaks here; was opened at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1805]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1694:33: warning[-Wanalyzer-malloc-leak]: leak of ‘map_file’
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1641:12: branch_false: following ‘false’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1653:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1659:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1662:28: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1663:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1754:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1679:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1689:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1689:20: branch_true: following ‘true’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1691:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1691:28: branch_false: following ‘false’ branch (when ‘archDumpFormat != 1’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1693:33: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1693:33: branch_true: following ‘true’ branch (when ‘archDumpFormat == 3’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1694:33: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1694:33: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1694:33: danger: ‘map_file’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1806]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1696:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘map_file’
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1641:12: branch_false: following ‘false’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1653:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1659:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1662:28: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1663:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1754:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1679:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1689:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1689:20: branch_true: following ‘true’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1691:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1691:28: branch_false: following ‘false’ branch (when ‘archDumpFormat != 1’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1693:33: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1693:33: branch_false: following ‘false’ branch (when ‘archDumpFormat != 3’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1696:33: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1696:33: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1696:33: danger: ‘map_file’ leaks here; was opened at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1807]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1696:33: warning[-Wanalyzer-malloc-leak]: leak of ‘map_file’
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1641:12: branch_false: following ‘false’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1653:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1659:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1662:28: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1663:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1754:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1679:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1689:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1689:20: branch_true: following ‘true’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1691:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1691:28: branch_false: following ‘false’ branch (when ‘archDumpFormat != 1’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1693:33: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1693:33: branch_false: following ‘false’ branch (when ‘archDumpFormat != 3’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1696:33: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1696:33: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1696:33: danger: ‘map_file’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1808]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1699:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘map_file’
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1641:12: branch_false: following ‘false’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1653:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1659:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1662:28: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1663:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1754:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1679:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1689:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1689:20: branch_true: following ‘true’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1691:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1699:25: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1699:25: danger: ‘map_file’ leaks here; was opened at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1809]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1699:25: warning[-Wanalyzer-malloc-leak]: leak of ‘map_file’
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1641:12: branch_false: following ‘false’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1653:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1656:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1659:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1662:28: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1663:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1754:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1667:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1669:38: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1679:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1689:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1689:20: branch_true: following ‘true’ branch (when ‘archDumpFormat != 4’)...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1691:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1699:25: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1699:25: danger: ‘map_file’ leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-457): [#def1810]
postgresql-18beta1/src/bin/pg_dump/pg_dumpall.c:1977: error[legacyUninitvar]: Uninitialized variable: archDumpFormat
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1811]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:869:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1302:1: enter_function: entry to ‘process_global_sql_commands’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1340:16: call_function: calling ‘read_one_statement’ from ‘process_global_sql_commands’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1812]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:869:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1302:1: enter_function: entry to ‘process_global_sql_commands’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1340:16: call_function: calling ‘read_one_statement’ from ‘process_global_sql_commands’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1813]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:871:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1302:1: enter_function: entry to ‘process_global_sql_commands’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1340:16: call_function: calling ‘read_one_statement’ from ‘process_global_sql_commands’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1814]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:871:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1302:1: enter_function: entry to ‘process_global_sql_commands’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1340:16: call_function: calling ‘read_one_statement’ from ‘process_global_sql_commands’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1815]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:876:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1302:1: enter_function: entry to ‘process_global_sql_commands’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1340:16: call_function: calling ‘read_one_statement’ from ‘process_global_sql_commands’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1816]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:876:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1302:1: enter_function: entry to ‘process_global_sql_commands’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1340:16: call_function: calling ‘read_one_statement’ from ‘process_global_sql_commands’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1817]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:878:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1302:1: enter_function: entry to ‘process_global_sql_commands’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1340:16: call_function: calling ‘read_one_statement’ from ‘process_global_sql_commands’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1818]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:878:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1302:1: enter_function: entry to ‘process_global_sql_commands’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1340:16: call_function: calling ‘read_one_statement’ from ‘process_global_sql_commands’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1819]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1063:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&map_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1037:1: enter_function: entry to ‘get_dbname_oid_list_from_mfile’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1049:14: call_function: calling ‘file_exists_in_directory’ from ‘get_dbname_oid_list_from_mfile’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1049:14: return_function: returning to ‘get_dbname_oid_list_from_mfile’ from ‘file_exists_in_directory’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1049:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1055:9: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1058:17: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1060:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1063:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1063:9: throw: if ‘initStringInfo’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1063:9: danger: ‘fopen(&map_file_path, "r")’ leaks here; was opened at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1820]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1063:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&map_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1037:1: enter_function: entry to ‘get_dbname_oid_list_from_mfile’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1049:14: call_function: calling ‘file_exists_in_directory’ from ‘get_dbname_oid_list_from_mfile’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1049:14: return_function: returning to ‘get_dbname_oid_list_from_mfile’ from ‘file_exists_in_directory’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1049:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1055:9: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1058:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1060:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1063:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1063:9: throw: if ‘initStringInfo’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1063:9: danger: ‘fopen(&map_file_path, "r")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1821]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1066:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&map_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1037:1: enter_function: entry to ‘get_dbname_oid_list_from_mfile’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1049:14: call_function: calling ‘file_exists_in_directory’ from ‘get_dbname_oid_list_from_mfile’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1049:14: return_function: returning to ‘get_dbname_oid_list_from_mfile’ from ‘file_exists_in_directory’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1049:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1055:9: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1058:17: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1060:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1063:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1066:16: throw: if ‘pg_get_line_buf’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1066:16: danger: ‘fopen(&map_file_path, "r")’ leaks here; was opened at [(9)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1822]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1066:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&map_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1037:1: enter_function: entry to ‘get_dbname_oid_list_from_mfile’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1049:14: call_function: calling ‘file_exists_in_directory’ from ‘get_dbname_oid_list_from_mfile’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1049:14: return_function: returning to ‘get_dbname_oid_list_from_mfile’ from ‘file_exists_in_directory’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1049:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1055:9: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1058:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1060:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1063:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1066:16: throw: if ‘pg_get_line_buf’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1066:16: danger: ‘fopen(&map_file_path, "r")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1823]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: throw: if ‘initStringInfo’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: danger: ‘fopen(&global_file_path, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1824]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: throw: if ‘initStringInfo’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: danger: ‘fopen(&global_file_path, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1825]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1333:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1333:9: throw: if ‘initStringInfo’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1333:9: danger: ‘fopen(&global_file_path, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1826]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1333:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1333:9: throw: if ‘initStringInfo’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1333:9: danger: ‘fopen(&global_file_path, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1827]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1334:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1334:9: throw: if ‘appendStringInfoString’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1334:9: danger: ‘fopen(&global_file_path, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1828]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1334:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1334:9: throw: if ‘appendStringInfoString’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1334:9: danger: ‘fopen(&global_file_path, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1829]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1336:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1336:9: throw: if ‘appendStringInfoString’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1336:9: danger: ‘fopen(&global_file_path, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1830]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1336:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1336:9: throw: if ‘appendStringInfoString’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1336:9: danger: ‘fopen(&global_file_path, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1831]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1336:46: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1336:46: throw: if ‘PQuser’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1336:46: danger: ‘fopen(&global_file_path, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1832]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1336:46: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1336:46: throw: if ‘PQuser’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1336:46: danger: ‘fopen(&global_file_path, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1833]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1337:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1337:9: throw: if ‘appendStringInfoChar’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1337:9: danger: ‘fopen(&global_file_path, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1834]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1337:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: following ‘false’ branch (when ‘outfile’ is NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1330:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1337:9: throw: if ‘appendStringInfoChar’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1337:9: danger: ‘fopen(&global_file_path, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1835]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1390:23: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1302:1: enter_function: entry to ‘process_global_sql_commands’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_true: following ‘true’ branch (when ‘outfile’ is non-NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1325:17: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1325:17: call_function: calling ‘copy_or_print_global_file’ from ‘process_global_sql_commands’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1836]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1390:23: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1302:1: enter_function: entry to ‘process_global_sql_commands’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_true: following ‘true’ branch (when ‘outfile’ is non-NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1325:17: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1325:17: call_function: calling ‘copy_or_print_global_file’ from ‘process_global_sql_commands’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1837]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1400:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1302:1: enter_function: entry to ‘process_global_sql_commands’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_true: following ‘true’ branch (when ‘outfile’ is non-NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1325:17: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1325:17: call_function: calling ‘copy_or_print_global_file’ from ‘process_global_sql_commands’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1838]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1400:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&global_file_path, "r")’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1302:1: enter_function: entry to ‘process_global_sql_commands’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1314:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1323:12: branch_true: following ‘true’ branch (when ‘outfile’ is non-NULL)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1325:17: branch_true: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1325:17: call_function: calling ‘copy_or_print_global_file’ from ‘process_global_sql_commands’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1839]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1400:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘OPF’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1385:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1389:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1390:23: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1392:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1392:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1400:21: throw: if ‘fgetc’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1400:21: danger: ‘OPF’ leaks here; was opened at [(3)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1840]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1400:21: warning[-Wanalyzer-malloc-leak]: leak of ‘OPF’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1385:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1389:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1390:23: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1392:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1392:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1400:21: throw: if ‘fgetc’ throws an exception...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1400:21: danger: ‘OPF’ leaks here; was allocated at [(3)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1841]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1408:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘OPF’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1385:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1389:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1390:23: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1392:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1392:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1406:12: branch_false: following ‘false’ branch (when the strings are equal)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1408:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1408:1: danger: ‘OPF’ leaks here; was opened at [(3)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1842]
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1408:1: warning[-Wanalyzer-malloc-leak]: leak of ‘OPF’
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1385:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1389:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1390:23: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1392:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1392:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1406:12: branch_false: following ‘false’ branch (when the strings are equal)...
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1408:1: branch_false: ...to here
postgresql-18beta1/src/bin/pg_dump/pg_restore.c:1408:1: danger: ‘OPF’ leaks here; was allocated at [(3)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1843]
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:553:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("PG_VERSION", "r")’
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:546:23: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:546:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:551:14: branch_false: ...to here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:551:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:553:22: branch_true: ...to here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:553:22: danger: ‘fopen("PG_VERSION", "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1844]
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:553:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("PG_VERSION", "r")’
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:546:23: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:546:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:551:14: branch_false: ...to here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:551:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:553:22: branch_true: ...to here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:553:22: danger: ‘fopen("PG_VERSION", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1845]
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:560:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("PG_VERSION", "r")’
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:546:23: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:546:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:551:14: branch_false: ...to here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:551:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:560:16: branch_false: ...to here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:560:16: throw: if ‘pg_strip_crlf’ throws an exception...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:560:16: danger: ‘fopen("PG_VERSION", "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1846]
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:560:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("PG_VERSION", "r")’
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:546:23: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:546:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:551:14: branch_false: ...to here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:551:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:560:16: branch_false: ...to here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:560:16: throw: if ‘pg_strip_crlf’ throws an exception...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:560:16: danger: ‘fopen("PG_VERSION", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1847]
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:562:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("PG_VERSION", "r")’
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:546:23: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:546:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:551:14: branch_false: ...to here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:551:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:560:16: branch_false: ...to here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:562:12: danger: ‘fopen("PG_VERSION", "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1848]
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:562:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("PG_VERSION", "r")’
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:546:23: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:546:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:551:14: branch_false: ...to here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:551:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:560:16: branch_false: ...to here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:562:12: danger: ‘fopen("PG_VERSION", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1849]
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:954:35: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("pg_wal")’
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:950:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:951:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:951:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:954:35: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:954:35: danger: ‘opendir("pg_wal")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1850]
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:1007:35: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("pg_wal")’
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:1003:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:1004:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:1004:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:1007:35: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:1007:35: danger: ‘opendir("pg_wal")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1851]
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:1042:35: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("pg_wal/archive_status")’
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:1038:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:1039:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:1039:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:1042:35: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:1042:35: danger: ‘opendir("pg_wal/archive_status")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1852]
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:1080:35: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("pg_wal/summaries")’
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:1076:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:1077:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:1077:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:1080:35: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/src/bin/pg_resetwal/pg_resetwal.c:1080:35: danger: ‘opendir("pg_wal/summaries")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1853]
postgresql-18beta1/src/bin/pg_rewind/file_ops.c:391:35: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&fullparentpath)’
postgresql-18beta1/src/bin/pg_rewind/file_ops.c:386:17: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_rewind/file_ops.c:387:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_rewind/file_ops.c:387:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_rewind/file_ops.c:391:35: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/src/bin/pg_rewind/file_ops.c:391:35: danger: ‘opendir(&fullparentpath)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1854]
postgresql-18beta1/src/bin/pg_rewind/xlogreader.c:79:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/bin/pg_rewind/xlogreader.c:78:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/bin/pg_rewind/xlogreader.c:79:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_rewind/xlogreader.c:79:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-835): [#def1855]
postgresql-18beta1/src/bin/pg_test_fsync/pg_test_fsync.c:316:31: warning[-Wanalyzer-infinite-loop]: infinite loop
postgresql-18beta1/src/bin/pg_test_fsync/pg_test_fsync.c:316:31: danger: infinite loop here
postgresql-18beta1/src/bin/pg_test_fsync/pg_test_fsync.c:316:31: branch_true: if it ever follows ‘true’ branch, it will always do so...
postgresql-18beta1/src/bin/pg_test_fsync/pg_test_fsync.c:316:31: branch_true: ...to here
postgresql-18beta1/src/bin/pg_test_fsync/pg_test_fsync.c:318:42: branch_false: when ‘writes >= writes_per_op’: always following ‘false’ branch...
postgresql-18beta1/src/bin/pg_test_fsync/pg_test_fsync.c:316:57: branch_false: ...to here
Error: GCC_ANALYZER_WARNING (CWE-835): [#def1856]
postgresql-18beta1/src/bin/pg_test_fsync/pg_test_fsync.c:419:31: warning[-Wanalyzer-infinite-loop]: infinite loop
postgresql-18beta1/src/bin/pg_test_fsync/pg_test_fsync.c:419:31: danger: infinite loop here
postgresql-18beta1/src/bin/pg_test_fsync/pg_test_fsync.c:419:31: branch_true: if it ever follows ‘true’ branch, it will always do so...
postgresql-18beta1/src/bin/pg_test_fsync/pg_test_fsync.c:419:31: branch_true: ...to here
postgresql-18beta1/src/bin/pg_test_fsync/pg_test_fsync.c:421:42: branch_false: when ‘writes >= writes_per_op’: always following ‘false’ branch...
postgresql-18beta1/src/bin/pg_test_fsync/pg_test_fsync.c:419:57: branch_false: ...to here
Error: GCC_ANALYZER_WARNING (CWE-835): [#def1857]
postgresql-18beta1/src/bin/pg_test_fsync/pg_test_fsync.c:484:31: warning[-Wanalyzer-infinite-loop]: infinite loop
postgresql-18beta1/src/bin/pg_test_fsync/pg_test_fsync.c:484:31: danger: infinite loop here
postgresql-18beta1/src/bin/pg_test_fsync/pg_test_fsync.c:484:31: branch_true: if it ever follows ‘true’ branch, it will always do so...
postgresql-18beta1/src/bin/pg_test_fsync/pg_test_fsync.c:484:31: branch_true: ...to here
postgresql-18beta1/src/bin/pg_test_fsync/pg_test_fsync.c:486:42: branch_false: if it ever follows ‘false’ branch, it will always do so...
postgresql-18beta1/src/bin/pg_test_fsync/pg_test_fsync.c:484:57: branch_false: ...to here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1858]
postgresql-18beta1/src/bin/pg_upgrade/check.c:432:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&output_path, "a")’
postgresql-18beta1/src/bin/pg_upgrade/check.c:401:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:406:26: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:429:23: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/check.c:429:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:432:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:432:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/check.c:432:9: danger: ‘fopen(&output_path, "a")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1859]
postgresql-18beta1/src/bin/pg_upgrade/check.c:432:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&output_path, "a")’
postgresql-18beta1/src/bin/pg_upgrade/check.c:401:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:406:26: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:429:23: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/check.c:429:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:432:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:432:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/check.c:432:9: danger: ‘fopen(&output_path, "a")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1860]
postgresql-18beta1/src/bin/pg_upgrade/check.c:1034:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*deletion_script_file_name, "w")’
postgresql-18beta1/src/bin/pg_upgrade/check.c:989:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:989:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1028:23: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1028:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1034:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1034:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1034:9: danger: ‘fopen(*deletion_script_file_name, "w")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1861]
postgresql-18beta1/src/bin/pg_upgrade/check.c:1034:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*deletion_script_file_name, "w")’
postgresql-18beta1/src/bin/pg_upgrade/check.c:989:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:989:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1028:23: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1028:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1034:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1034:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1034:9: danger: ‘fopen(*deletion_script_file_name, "w")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1862]
postgresql-18beta1/src/bin/pg_upgrade/check.c:1182:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/src/bin/pg_upgrade/check.c:1157:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1159:39: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1179:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1179:65: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1179:65: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1179:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1182:33: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1182:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1182:33: danger: ‘script’ leaks here; was opened at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1863]
postgresql-18beta1/src/bin/pg_upgrade/check.c:1182:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/src/bin/pg_upgrade/check.c:1157:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1159:39: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1179:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1179:65: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1179:65: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1179:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1182:33: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1182:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1182:33: danger: ‘script’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1864]
postgresql-18beta1/src/bin/pg_upgrade/check.c:1661:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/src/bin/pg_upgrade/check.c:1657:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1659:20: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1659:20: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1659:49: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1659:49: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1659:21: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1661:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1661:17: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1661:17: danger: ‘script’ leaks here; was opened at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1865]
postgresql-18beta1/src/bin/pg_upgrade/check.c:1661:17: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/src/bin/pg_upgrade/check.c:1657:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1659:20: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1659:20: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1659:49: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1659:49: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1659:21: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1661:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:1661:17: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/check.c:1661:17: danger: ‘script’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1866]
postgresql-18beta1/src/bin/pg_upgrade/check.c:2094:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/src/bin/pg_upgrade/check.c:2079:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2081:49: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2088:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2090:36: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2090:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2091:51: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2091:51: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2090:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2094:33: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2094:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2094:33: danger: ‘script’ leaks here; was opened at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1867]
postgresql-18beta1/src/bin/pg_upgrade/check.c:2094:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/src/bin/pg_upgrade/check.c:2079:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2081:49: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2088:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2090:36: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2090:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2091:51: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2091:51: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2090:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2094:33: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2094:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2094:33: danger: ‘script’ leaks here; was allocated at [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1868]
postgresql-18beta1/src/bin/pg_upgrade/check.c:2113:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/src/bin/pg_upgrade/check.c:2079:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2081:49: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2088:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2107:30: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2107:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2109:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2110:51: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2110:51: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2109:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2113:33: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2113:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2113:33: danger: ‘script’ leaks here; was opened at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1869]
postgresql-18beta1/src/bin/pg_upgrade/check.c:2113:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/src/bin/pg_upgrade/check.c:2079:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2081:49: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2088:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2107:30: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2107:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2109:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2110:51: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2110:51: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2109:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2113:33: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2113:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2113:33: danger: ‘script’ leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1870]
postgresql-18beta1/src/bin/pg_upgrade/check.c:2211:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘report.file’
postgresql-18beta1/src/bin/pg_upgrade/check.c:2206:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2208:21: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2208:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2209:40: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2209:40: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2208:21: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2211:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2211:17: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2211:17: danger: ‘report.file’ leaks here; was opened at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1871]
postgresql-18beta1/src/bin/pg_upgrade/check.c:2211:17: warning[-Wanalyzer-malloc-leak]: leak of ‘report.file’
postgresql-18beta1/src/bin/pg_upgrade/check.c:2206:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2208:21: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2208:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2209:40: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2209:40: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2208:21: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2211:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/check.c:2211:17: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/check.c:2211:17: danger: ‘report.file’ leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1872]
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:142:36: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:88:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:90:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:90:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:92:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:92:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:94:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:94:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:96:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:96:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:98:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:100:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:100:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:102:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:102:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:104:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:104:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:107:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:132:31: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:132:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:132:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:136:24: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:138:34: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:138:28: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:140:37: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:142:36: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1873]
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:142:37: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:88:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:90:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:90:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:92:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:92:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:94:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:94:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:96:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:96:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:98:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:100:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:100:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:102:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:102:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:104:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:104:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:107:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:132:31: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:132:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:132:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:136:24: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:138:34: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:138:28: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:140:37: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:142:36: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:142:50: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:142:37: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1874]
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:156:40: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:88:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:90:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:90:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:92:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:92:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:94:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:94:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:96:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:96:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:98:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:100:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:100:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:102:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:102:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:104:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:104:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:107:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:132:31: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:132:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:132:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:136:24: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:138:34: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:138:28: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:140:37: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:142:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:156:40: throw: if ‘pg_strip_crlf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:156:40: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1875]
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:157:40: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:88:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:90:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:90:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:92:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:92:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:94:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:94:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:96:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:96:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:98:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:100:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:100:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:102:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:102:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:104:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:104:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:107:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:132:31: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:132:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:132:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:136:24: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:138:34: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:138:28: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:140:37: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:142:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:157:40: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:159:37: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:157:40: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1876]
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:177:22: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:88:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:90:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:90:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:92:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:92:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:94:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:94:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:96:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:96:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:98:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:100:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:100:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:102:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:102:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:104:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:104:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:107:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:132:31: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:132:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:132:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:136:24: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:177:22: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:177:22: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1877]
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:206:13: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:88:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:90:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:90:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:92:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:92:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:94:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:94:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:96:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:96:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:98:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:100:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:100:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:102:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:102:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:104:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:104:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:107:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:125:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:125:13: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:125:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:192:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:196:9: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:196:9: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:202:23: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:202:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:206:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:206:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:206:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:213:16: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:528:14: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/controldata.c:206:13: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(25)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/24)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1878]
postgresql-18beta1/src/bin/pg_upgrade/exec.c:45:13: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/src/bin/pg_upgrade/exec.c:45:23: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:45:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:46:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:45:13: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1879]
postgresql-18beta1/src/bin/pg_upgrade/exec.c:49:14: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/src/bin/pg_upgrade/exec.c:45:23: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:45:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:46:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:45:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:49:14: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:49:14: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1880]
postgresql-18beta1/src/bin/pg_upgrade/exec.c:109:20: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/bin/pg_upgrade/exec.c:108:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:109:20: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:109:20: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1881]
postgresql-18beta1/src/bin/pg_upgrade/exec.c:167:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&log_file, "a")’
postgresql-18beta1/src/bin/pg_upgrade/exec.c:111:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:113:44: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:115:12: branch_false: following ‘false’ branch (when ‘written <= 2047’)...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:118:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:138:15: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:159:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:167:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:167:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:167:9: danger: ‘fopen(&log_file, "a")’ leaks here; was opened at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1882]
postgresql-18beta1/src/bin/pg_upgrade/exec.c:167:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&log_file, "a")’
postgresql-18beta1/src/bin/pg_upgrade/exec.c:111:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:113:44: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:115:12: branch_false: following ‘false’ branch (when ‘written <= 2047’)...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:118:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:138:15: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:159:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:167:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:167:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:167:9: danger: ‘fopen(&log_file, "a")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def1883]
postgresql-18beta1/src/bin/pg_upgrade/exec.c:178: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: log
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1884]
postgresql-18beta1/src/bin/pg_upgrade/exec.c:219:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&log_file, "a")’
postgresql-18beta1/src/bin/pg_upgrade/exec.c:111:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:113:44: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:115:12: branch_false: following ‘false’ branch (when ‘written <= 2047’)...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:118:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:159:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:167:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:189:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:217:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:217:20: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:217:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:219:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:219:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:219:9: danger: ‘fopen(&log_file, "a")’ leaks here; was opened at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1885]
postgresql-18beta1/src/bin/pg_upgrade/exec.c:219:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&log_file, "a")’
postgresql-18beta1/src/bin/pg_upgrade/exec.c:111:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:113:44: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:115:12: branch_false: following ‘false’ branch (when ‘written <= 2047’)...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:118:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:159:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:167:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:189:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:217:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:217:20: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:217:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:219:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/exec.c:219:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/exec.c:219:9: danger: ‘fopen(&log_file, "a")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1886]
postgresql-18beta1/src/bin/pg_upgrade/function.c:209:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/src/bin/pg_upgrade/function.c:187:26: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/function.c:189:35: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/function.c:195:20: branch_true: following ‘true’ branch (when ‘libnum == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/function.c:197:25: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/function.c:203:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/function.c:207:36: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/function.c:207:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/function.c:207:65: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/function.c:207:65: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/function.c:207:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/function.c:209:33: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/function.c:209:33: throw: if ‘PQerrorMessage’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/function.c:209:33: danger: ‘script’ leaks here; was opened at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1887]
postgresql-18beta1/src/bin/pg_upgrade/function.c:209:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/src/bin/pg_upgrade/function.c:187:26: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/function.c:189:35: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/function.c:195:20: branch_true: following ‘true’ branch (when ‘libnum == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/function.c:197:25: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/function.c:203:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/function.c:207:36: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/function.c:207:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/function.c:207:65: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/function.c:207:65: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/function.c:207:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/function.c:209:33: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/function.c:209:33: throw: if ‘PQerrorMessage’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/function.c:209:33: danger: ‘script’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1888]
postgresql-18beta1/src/bin/pg_upgrade/info.c:216:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rel’
postgresql-18beta1/src/bin/pg_upgrade/info.c:45:1: enter_function: entry to ‘gen_db_file_maps’
postgresql-18beta1/src/bin/pg_upgrade/info.c:65:16: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/info.c:68:39: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/info.c:68:39: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/info.c:70:53: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/info.c:74:20: branch_true: following ‘true’ branch (when ‘new_rel’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/info.c:80:25: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/info.c:80:25: call_function: calling ‘report_unmatched_relation’ from ‘gen_db_file_maps’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1889]
postgresql-18beta1/src/bin/pg_upgrade/option.c:472:13: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/src/bin/pg_upgrade/option.c:444:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:446:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:450:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:458:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:472:23: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/option.c:472:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:473:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:472:13: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1890]
postgresql-18beta1/src/bin/pg_upgrade/option.c:476:14: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&cmd, "r")’
postgresql-18beta1/src/bin/pg_upgrade/option.c:444:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:446:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:450:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:458:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:472:23: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/option.c:472:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:473:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:472:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:476:14: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:476:14: danger: ‘popen(&cmd, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1891]
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename, "r")’
postgresql-18beta1/src/bin/pg_upgrade/option.c:502:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:502:13: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:502:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:510:32: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:518:27: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/option.c:518:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:518:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: danger: ‘fopen(&filename, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1892]
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&filename, "r")’
postgresql-18beta1/src/bin/pg_upgrade/option.c:502:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:502:13: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:502:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:510:32: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:518:27: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/option.c:518:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:518:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: danger: ‘fopen(&filename, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1893]
postgresql-18beta1/src/bin/pg_upgrade/option.c:535:52: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename, "r")’
postgresql-18beta1/src/bin/pg_upgrade/option.c:502:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:502:13: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:502:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:510:32: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:518:27: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/option.c:518:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:518:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: following ‘false’ branch (when ‘lineno != 4’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:532:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:532:28: branch_false: following ‘false’ branch (when ‘lineno != 5’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:523:26: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:535:52: throw: if ‘pg_strdup’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/option.c:535:52: danger: ‘fopen(&filename, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1894]
postgresql-18beta1/src/bin/pg_upgrade/option.c:535:52: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&filename, "r")’
postgresql-18beta1/src/bin/pg_upgrade/option.c:502:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:502:13: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:502:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:510:32: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:518:27: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/option.c:518:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:518:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: following ‘false’ branch (when ‘lineno != 4’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:532:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:532:28: branch_false: following ‘false’ branch (when ‘lineno != 5’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:523:26: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:535:52: throw: if ‘pg_strdup’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/option.c:535:52: danger: ‘fopen(&filename, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1895]
postgresql-18beta1/src/bin/pg_upgrade/option.c:536:40: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename, "r")’
postgresql-18beta1/src/bin/pg_upgrade/option.c:502:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:502:13: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:502:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:510:32: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:518:27: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/option.c:518:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:518:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: following ‘false’ branch (when ‘lineno != 4’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:532:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:532:28: branch_false: following ‘false’ branch (when ‘lineno != 5’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:523:26: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:536:40: throw: if ‘pg_strip_crlf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/option.c:536:40: danger: ‘fopen(&filename, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1896]
postgresql-18beta1/src/bin/pg_upgrade/option.c:536:40: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&filename, "r")’
postgresql-18beta1/src/bin/pg_upgrade/option.c:502:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:502:13: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:502:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:510:32: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:518:27: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/option.c:518:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:518:20: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: following ‘false’ branch (when ‘lineno != 4’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:532:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:532:28: branch_false: following ‘false’ branch (when ‘lineno != 5’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:523:26: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/option.c:536:40: throw: if ‘pg_strip_crlf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/option.c:536:40: danger: ‘fopen(&filename, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1897]
postgresql-18beta1/src/bin/pg_upgrade/parallel.c:76:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/bin/pg_upgrade/parallel.c:75:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/bin/pg_upgrade/parallel.c:76:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/parallel.c:76:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1898]
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:327:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename_path, "a")’
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:266:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:270:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:279:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:283:37: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:286:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:290:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:293:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:300:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:302:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:304:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:304:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:306:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:306:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:309:15: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:311:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:314:34: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:314:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:314:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:318:39: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:320:23: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:322:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:324:27: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:324:27: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:324:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:327:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:327:17: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:327:17: danger: ‘fopen(&filename_path, "a")’ leaks here; was opened at [(23)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1899]
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:327:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&filename_path, "a")’
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:266:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:270:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:279:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:283:37: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:286:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:290:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:293:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:300:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:302:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:304:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:304:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:306:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:306:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:309:15: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:311:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:314:34: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:314:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:314:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:318:39: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:320:23: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:322:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:324:27: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:324:27: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:324:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:327:17: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:327:17: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/pg_upgrade.c:327:17: danger: ‘fopen(&filename_path, "a")’ leaks here; was allocated at [(23)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1900]
postgresql-18beta1/src/bin/pg_upgrade/relfilenumber.c:376:33: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(new_db_dir)’
postgresql-18beta1/src/bin/pg_upgrade/relfilenumber.c:373:15: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/relfilenumber.c:374:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/relfilenumber.c:374:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/relfilenumber.c:376:33: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/relfilenumber.c:376:33: danger: ‘opendir(new_db_dir)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1901]
postgresql-18beta1/src/bin/pg_upgrade/relfilenumber.c:403:33: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(moved_db_dir)’
postgresql-18beta1/src/bin/pg_upgrade/relfilenumber.c:374:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/relfilenumber.c:374:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/relfilenumber.c:395:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/relfilenumber.c:397:16: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/relfilenumber.c:400:15: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/relfilenumber.c:401:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/relfilenumber.c:401:12: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/relfilenumber.c:403:33: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/relfilenumber.c:403:33: danger: ‘opendir(moved_db_dir)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1902]
postgresql-18beta1/src/bin/pg_upgrade/server.c:130:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/bin/pg_upgrade/server.c:129:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/bin/pg_upgrade/server.c:130:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/server.c:130:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1903]
postgresql-18beta1/src/bin/pg_upgrade/util.c:135:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/bin/pg_upgrade/util.c:134:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/bin/pg_upgrade/util.c:135:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/util.c:135:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1904]
postgresql-18beta1/src/bin/pg_upgrade/util.c:162:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/bin/pg_upgrade/util.c:161:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/bin/pg_upgrade/util.c:162:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/util.c:162:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1905]
postgresql-18beta1/src/bin/pg_upgrade/util.c:184:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/bin/pg_upgrade/util.c:270:1: enter_function: entry to ‘pg_fatal’
postgresql-18beta1/src/bin/pg_upgrade/util.c:274:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/bin/pg_upgrade/util.c:275:9: call_function: calling ‘pg_log_v’ from ‘pg_fatal’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1906]
postgresql-18beta1/src/bin/pg_upgrade/version.c:84:41: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:84:41: throw: if ‘initPQExpBuffer’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/version.c:84:41: danger: ‘script’ leaks here; was opened at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1907]
postgresql-18beta1/src/bin/pg_upgrade/version.c:84:41: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:84:41: throw: if ‘initPQExpBuffer’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/version.c:84:41: danger: ‘script’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1908]
postgresql-18beta1/src/bin/pg_upgrade/version.c:85:41: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:85:41: throw: if ‘appendPsqlMetaConnect’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/version.c:85:41: danger: ‘script’ leaks here; was opened at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1909]
postgresql-18beta1/src/bin/pg_upgrade/version.c:85:41: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:85:41: throw: if ‘appendPsqlMetaConnect’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/version.c:85:41: danger: ‘script’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1910]
postgresql-18beta1/src/bin/pg_upgrade/version.c:87:41: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:87:41: throw: if ‘termPQExpBuffer’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/version.c:87:41: danger: ‘script’ leaks here; was opened at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1911]
postgresql-18beta1/src/bin/pg_upgrade/version.c:87:41: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:87:41: throw: if ‘termPQExpBuffer’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/version.c:87:41: danger: ‘script’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1912]
postgresql-18beta1/src/bin/pg_upgrade/version.c:90:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:90:33: throw: if ‘quote_identifier’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/version.c:90:33: danger: ‘script’ leaks here; was opened at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1913]
postgresql-18beta1/src/bin/pg_upgrade/version.c:90:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:90:33: throw: if ‘quote_identifier’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/version.c:90:33: danger: ‘script’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1914]
postgresql-18beta1/src/bin/pg_upgrade/version.c:91:66: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:91:66: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/version.c:91:66: danger: ‘script’ leaks here; was opened at [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1915]
postgresql-18beta1/src/bin/pg_upgrade/version.c:91:66: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:91:66: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/version.c:91:66: danger: ‘script’ leaks here; was allocated at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1916]
postgresql-18beta1/src/bin/pg_upgrade/version.c:92:66: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18beta1/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:92:66: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/version.c:92:66: danger: ‘script’ leaks here; was opened at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1917]
postgresql-18beta1/src/bin/pg_upgrade/version.c:92:66: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18beta1/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:65: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18beta1/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18beta1/src/bin/pg_upgrade/version.c:92:66: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/src/bin/pg_upgrade/version.c:92:66: danger: ‘script’ leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1918]
postgresql-18beta1/src/bin/pg_verifybackup/pg_verifybackup.c:631:37: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
postgresql-18beta1/src/bin/pg_verifybackup/pg_verifybackup.c:669:1: enter_function: entry to ‘verify_plain_backup_file’
postgresql-18beta1/src/bin/pg_verifybackup/pg_verifybackup.c:675:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_verifybackup/pg_verifybackup.c:691:13: branch_false: ...to here
postgresql-18beta1/src/bin/pg_verifybackup/pg_verifybackup.c:691:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_verifybackup/pg_verifybackup.c:693:17: branch_true: ...to here
postgresql-18beta1/src/bin/pg_verifybackup/pg_verifybackup.c:693:17: call_function: calling ‘verify_plain_backup_directory’ from ‘verify_plain_backup_file’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1919]
postgresql-18beta1/src/bin/pg_verifybackup/pg_verifybackup.c:1236:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/bin/pg_verifybackup/pg_verifybackup.c:1235:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/bin/pg_verifybackup/pg_verifybackup.c:1236:9: throw: if ‘pg_log_generic_v’ throws an exception...
postgresql-18beta1/src/bin/pg_verifybackup/pg_verifybackup.c:1236:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1920]
postgresql-18beta1/src/bin/pg_verifybackup/pg_verifybackup.c:1253:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/bin/pg_verifybackup/pg_verifybackup.c:1252:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/bin/pg_verifybackup/pg_verifybackup.c:1253:9: throw: if ‘pg_log_generic_v’ throws an exception...
postgresql-18beta1/src/bin/pg_verifybackup/pg_verifybackup.c:1253:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1921]
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:119:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(directory)’
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:115:35: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:117:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:119:9: branch_false: ...to here
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:119:9: danger: ‘opendir(directory)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def1922]
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c: scope_hint: In function ‘split_path’
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:166:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1923]
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:166:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1924]
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:228:32: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(directory)’
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:216:12: branch_false: following ‘false’ branch (when ‘fname’ is NULL)...
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:224:27: branch_false: ...to here
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:224:27: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:224:17: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:224:17: branch_true: ...to here
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:228:32: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:228:32: danger: ‘opendir(directory)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1925]
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:534:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename, "w")’
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:494:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:505:22: branch_true: ...to here
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:508:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:514:22: branch_true: ...to here
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:514:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:517:24: branch_true: ...to here
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:520:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:521:50: branch_true: ...to here
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:530:24: acquire_resource: opened here
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:531:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:534:21: branch_false: ...to here
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:534:20: danger: ‘fopen(&filename, "w")’ leaks here; was opened at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1926]
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:534:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&filename, "w")’
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:494:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:505:22: branch_true: ...to here
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:508:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:514:22: branch_true: ...to here
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:514:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:517:24: branch_true: ...to here
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:520:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:521:50: branch_true: ...to here
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:530:24: acquire_memory: allocated here
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:531:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:534:21: branch_false: ...to here
postgresql-18beta1/src/bin/pg_waldump/pg_waldump.c:534:20: danger: ‘fopen(&filename, "w")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1927]
postgresql-18beta1/src/bin/pg_waldump/xlogreader.c:79:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/bin/pg_waldump/xlogreader.c:78:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/bin/pg_waldump/xlogreader.c:79:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/src/bin/pg_waldump/xlogreader.c:79:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1928]
postgresql-18beta1/src/bin/pg_walsummary/pg_walsummary.c:235:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/bin/pg_walsummary/pg_walsummary.c:234:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/bin/pg_walsummary/pg_walsummary.c:235:9: throw: if ‘pg_log_generic_v’ throws an exception...
postgresql-18beta1/src/bin/pg_walsummary/pg_walsummary.c:235:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1929]
postgresql-18beta1/src/bin/pgbench/exprparse.c:1117:9: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
postgresql-18beta1/src/bin/pgbench/exprparse.c:1075:6: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1139:6: branch_false: ...to here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1139:6: branch_false: following ‘false’ branch (when ‘yystate != 25’)...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1142:3: branch_false: ...to here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1154:6: branch_false: following ‘false’ branch (when ‘yyn != -33’)...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1160:6: branch_false: ...to here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1160:6: branch_true: following ‘true’ branch (when ‘yychar == -2’)...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1163:16: branch_true: ...to here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1172:11: branch_false: following ‘false’ branch (when ‘yychar != 256’)...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1184:17: branch_false: ...to here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1191:6: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1194:6: branch_false: following ‘false’ branch (when ‘yyn > 0’)...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1204:6: branch_false: ...to here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1204:6: branch_false: following ‘false’ branch (when ‘yyerrstatus == 0’)...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1211:3: branch_false: ...to here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1075:6: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1081:28: branch_true: ...to here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1104:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1106:7: branch_false: ...to here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1113:11: acquire_memory: allocated here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1115:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1117:9: branch_false: ...to here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1120:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1120:12: branch_false: ...to here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1133:10: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1139:6: branch_false: ...to here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1139:6: branch_false: following ‘false’ branch (when ‘yystate != 25’)...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1142:3: branch_false: ...to here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1154:6: branch_false: following ‘false’ branch (when ‘yyn != -33’)...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1160:6: branch_false: ...to here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1160:6: branch_true: following ‘true’ branch (when ‘yychar == -2’)...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1163:16: branch_true: ...to here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1163:16: throw: if ‘expr_yylex’ throws an exception...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1117:9: danger: ‘yyptr’ leaks here; was allocated at [(21)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1930]
postgresql-18beta1/src/bin/pgbench/exprparse.c:1117:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/src/bin/pgbench/exprparse.c:1075:6: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1081:28: branch_true: ...to here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1104:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1106:7: branch_false: ...to here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1115:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
postgresql-18beta1/src/bin/pgbench/exprparse.c:1117:9: branch_false: ...to here
postgresql-18beta1/src/bin/pgbench/exprparse.c:1117:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1931]
postgresql-18beta1/src/bin/pgbench/exprscan.c:1990:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/src/bin/pgbench/exprscan.l:319:1: enter_function: entry to ‘expr_lex_one_word’
postgresql-18beta1/src/bin/pgbench/exprscan.l:341:14: call_function: calling ‘expr_yylex’ from ‘expr_lex_one_word’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1932]
postgresql-18beta1/src/bin/pgbench/exprscan.c:2033:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql-18beta1/src/bin/pgbench/exprscan.l:319:1: enter_function: entry to ‘expr_lex_one_word’
postgresql-18beta1/src/bin/pgbench/exprscan.l:341:14: call_function: calling ‘expr_yylex’ from ‘expr_lex_one_word’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1933]
postgresql-18beta1/src/bin/pgbench/exprscan.c:2153:3: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(8)’
postgresql-18beta1/src/bin/pgbench/exprscan.l:319:1: enter_function: entry to ‘expr_lex_one_word’
postgresql-18beta1/src/bin/pgbench/exprscan.l:332:19: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pgbench/exprscan.l:333:56: branch_true: ...to here
postgresql-18beta1/src/bin/pgbench/exprscan.l:333:10: call_function: calling ‘expr_yy_switch_to_buffer’ from ‘expr_lex_one_word’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1934]
postgresql-18beta1/src/bin/pgbench/exprscan.c:2174:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/bin/pgbench/exprscan.l:319:1: enter_function: entry to ‘expr_lex_one_word’
postgresql-18beta1/src/bin/pgbench/exprscan.l:332:19: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/pgbench/exprscan.l:333:56: branch_true: ...to here
postgresql-18beta1/src/bin/pgbench/exprscan.l:333:10: call_function: calling ‘expr_yy_switch_to_buffer’ from ‘expr_lex_one_word’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1935]
postgresql-18beta1/src/bin/pgbench/exprscan.c:2199:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/src/bin/pgbench/exprscan.c:2185:17: enter_function: entry to ‘expr_yy_scan_buffer’
postgresql-18beta1/src/bin/pgbench/exprscan.c:2195:24: call_function: inlined call to ‘expr_yyalloc’ from ‘expr_yy_scan_buffer’
postgresql-18beta1/src/bin/pgbench/exprscan.c:2196:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/pgbench/exprscan.c:2199:25: branch_false: ...to here
postgresql-18beta1/src/bin/pgbench/exprscan.c:2209:2: call_function: calling ‘expr_yy_switch_to_buffer’ from ‘expr_yy_scan_buffer’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1936]
postgresql-18beta1/src/bin/pgbench/exprscan.c:2302:12: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*(struct yyguts_t *)yyscanner.yytext_r)’
postgresql-18beta1/src/bin/pgbench/exprscan.l:319:1: enter_function: entry to ‘expr_lex_one_word’
postgresql-18beta1/src/bin/pgbench/exprscan.l:341:14: call_function: calling ‘expr_yylex’ from ‘expr_lex_one_word’
Error: CPPCHECK_WARNING (CWE-457): [#def1937]
postgresql-18beta1/src/bin/pgbench/pgbench.c:1649: warning[uninitvar]: Uninitialized variables: &key.svalue, &key.value
Error: COMPILER_WARNING (CWE-704): [#def1938]
postgresql-18beta1/src/bin/pgbench/pgbench.c: scope_hint: In function ‘parseScriptWeight’
postgresql-18beta1/src/bin/pgbench/pgbench.c:6196:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1939]
postgresql-18beta1/src/bin/psql/command.c:3228:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fd’
postgresql-18beta1/src/bin/psql/command.c:3175:12: branch_true: following ‘true’ branch (when ‘active_branch != 0’)...
postgresql-18beta1/src/bin/psql/command.c:3177:37: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:3182:20: branch_false: following ‘false’ branch (when ‘query_buf’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:3189:28: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3189:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:3196:33: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3197:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:3206:41: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3207:46: acquire_resource: opened here
postgresql-18beta1/src/bin/psql/command.c:3209:36: branch_false: following ‘false’ branch (when ‘fd’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:3227:42: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3227:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:3228:33: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:3228:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:3228:33: danger: ‘fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1940]
postgresql-18beta1/src/bin/psql/command.c:3228:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
postgresql-18beta1/src/bin/psql/command.c:3175:12: branch_true: following ‘true’ branch (when ‘active_branch != 0’)...
postgresql-18beta1/src/bin/psql/command.c:3177:37: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:3182:20: branch_false: following ‘false’ branch (when ‘query_buf’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:3189:28: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3189:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:3196:33: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3197:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:3206:41: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3207:46: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/command.c:3209:36: branch_false: following ‘false’ branch (when ‘fd’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:3227:42: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3227:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:3228:33: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:3228:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:3228:33: danger: ‘fd’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1941]
postgresql-18beta1/src/bin/psql/command.c:3230:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fd’
postgresql-18beta1/src/bin/psql/command.c:3175:12: branch_true: following ‘true’ branch (when ‘active_branch != 0’)...
postgresql-18beta1/src/bin/psql/command.c:3177:37: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:3182:20: branch_false: following ‘false’ branch (when ‘query_buf’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:3189:28: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3189:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:3196:33: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3197:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:3206:41: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3207:46: acquire_resource: opened here
postgresql-18beta1/src/bin/psql/command.c:3209:36: branch_false: following ‘false’ branch (when ‘fd’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:3227:42: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3227:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:3229:33: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3229:33: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:3230:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:3230:33: danger: ‘fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1942]
postgresql-18beta1/src/bin/psql/command.c:3230:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
postgresql-18beta1/src/bin/psql/command.c:3175:12: branch_true: following ‘true’ branch (when ‘active_branch != 0’)...
postgresql-18beta1/src/bin/psql/command.c:3177:37: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:3182:20: branch_false: following ‘false’ branch (when ‘query_buf’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:3189:28: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3189:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:3196:33: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3197:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:3206:41: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3207:46: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/command.c:3209:36: branch_false: following ‘false’ branch (when ‘fd’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:3227:42: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3227:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:3229:33: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3229:33: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:3230:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:3230:33: danger: ‘fd’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1943]
postgresql-18beta1/src/bin/psql/command.c:3234:42: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
postgresql-18beta1/src/bin/psql/command.c:3175:12: branch_true: following ‘true’ branch (when ‘active_branch != 0’)...
postgresql-18beta1/src/bin/psql/command.c:3177:37: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:3182:20: branch_false: following ‘false’ branch (when ‘query_buf’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:3189:28: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3189:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:3196:33: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3197:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:3200:41: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:3202:46: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/command.c:3209:36: branch_false: following ‘false’ branch (when ‘fd’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:3227:42: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3227:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:3229:33: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:3232:28: branch_true: following ‘true’ branch (when ‘is_pipe != 0’)...
postgresql-18beta1/src/bin/psql/command.c:3234:42: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:3234:42: throw: if ‘pclose’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:3234:42: danger: ‘fd’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1944]
postgresql-18beta1/src/bin/psql/command.c:4688:33: warning[-Wanalyzer-malloc-leak]: leak of ‘stream’
postgresql-18beta1/src/bin/psql/command.c:4634:12: branch_false: following ‘false’ branch (when ‘filename_arg’ is NULL)...
postgresql-18beta1/src/bin/psql/command.c:4640:38: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4673:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:4674:34: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:4674:34: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/command.c:4676:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4683:43: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4686:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:4688:33: throw: if ‘appendPQExpBufferChar’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:4688:33: danger: ‘stream’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1945]
postgresql-18beta1/src/bin/psql/command.c:4694:33: warning[-Wanalyzer-malloc-leak]: leak of ‘stream’
postgresql-18beta1/src/bin/psql/command.c:4634:12: branch_false: following ‘false’ branch (when ‘filename_arg’ is NULL)...
postgresql-18beta1/src/bin/psql/command.c:4640:38: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4673:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:4674:34: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:4674:34: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/command.c:4676:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4683:43: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4692:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:4694:33: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:4694:33: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:4694:33: danger: ‘stream’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1946]
postgresql-18beta1/src/bin/psql/command.c:4764:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
postgresql-18beta1/src/bin/psql/command.c:4732:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4740:26: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4742:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4753:26: acquire_resource: opened here
postgresql-18beta1/src/bin/psql/command.c:4754:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4764:25: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4764:25: throw: if ‘resetPQExpBuffer’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:4764:25: danger: ‘fopen(fname, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1947]
postgresql-18beta1/src/bin/psql/command.c:4764:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
postgresql-18beta1/src/bin/psql/command.c:4732:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4740:26: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4742:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4753:26: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/command.c:4754:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4764:25: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4764:25: throw: if ‘resetPQExpBuffer’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:4764:25: danger: ‘fopen(fname, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1948]
postgresql-18beta1/src/bin/psql/command.c:4766:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
postgresql-18beta1/src/bin/psql/command.c:4732:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4740:26: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4742:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4753:26: acquire_resource: opened here
postgresql-18beta1/src/bin/psql/command.c:4754:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4764:25: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4765:32: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:4766:33: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:4766:33: throw: if ‘appendPQExpBufferStr’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:4766:33: danger: ‘fopen(fname, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1949]
postgresql-18beta1/src/bin/psql/command.c:4766:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
postgresql-18beta1/src/bin/psql/command.c:4732:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4740:26: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4742:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4753:26: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/command.c:4754:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4764:25: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4765:32: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:4766:33: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:4766:33: throw: if ‘appendPQExpBufferStr’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:4766:33: danger: ‘fopen(fname, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1950]
postgresql-18beta1/src/bin/psql/command.c:4770:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
postgresql-18beta1/src/bin/psql/command.c:4732:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4740:26: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4742:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4753:26: acquire_resource: opened here
postgresql-18beta1/src/bin/psql/command.c:4754:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4764:25: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4768:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:4770:33: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:4770:33: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:4770:33: danger: ‘fopen(fname, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1951]
postgresql-18beta1/src/bin/psql/command.c:4770:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
postgresql-18beta1/src/bin/psql/command.c:4732:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4740:26: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4742:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4753:26: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/command.c:4754:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4764:25: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4768:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:4770:33: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:4770:33: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:4770:33: danger: ‘fopen(fname, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1952]
postgresql-18beta1/src/bin/psql/command.c:4772:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
postgresql-18beta1/src/bin/psql/command.c:4732:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4740:26: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4742:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4753:26: acquire_resource: opened here
postgresql-18beta1/src/bin/psql/command.c:4754:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4764:25: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4768:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:4770:33: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:4772:33: throw: if ‘resetPQExpBuffer’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:4772:33: danger: ‘fopen(fname, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1953]
postgresql-18beta1/src/bin/psql/command.c:4772:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
postgresql-18beta1/src/bin/psql/command.c:4732:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4740:26: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4742:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4753:26: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/command.c:4754:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4764:25: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4768:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:4770:33: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:4772:33: throw: if ‘resetPQExpBuffer’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:4772:33: danger: ‘fopen(fname, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1954]
postgresql-18beta1/src/bin/psql/command.c:4868:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fd’
postgresql-18beta1/src/bin/psql/command.c:4825:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:4830:18: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4830:17: branch_true: following ‘true’ branch (when the strings are non-equal)...
postgresql-18beta1/src/bin/psql/command.c:4832:17: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:4851:22: acquire_resource: opened here
postgresql-18beta1/src/bin/psql/command.c:4853:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4865:9: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4868:9: throw: if ‘pg_logging_config’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:4868:9: danger: ‘fd’ leaks here; was opened at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1955]
postgresql-18beta1/src/bin/psql/command.c:4868:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
postgresql-18beta1/src/bin/psql/command.c:4825:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:4830:18: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4830:17: branch_true: following ‘true’ branch (when the strings are non-equal)...
postgresql-18beta1/src/bin/psql/command.c:4832:17: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:4851:22: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/command.c:4853:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4865:9: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4868:9: throw: if ‘pg_logging_config’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:4868:9: danger: ‘fd’ leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1956]
postgresql-18beta1/src/bin/psql/command.c:4870:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fd’
postgresql-18beta1/src/bin/psql/command.c:4825:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:4830:18: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4830:17: branch_true: following ‘true’ branch (when the strings are non-equal)...
postgresql-18beta1/src/bin/psql/command.c:4832:17: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:4851:22: acquire_resource: opened here
postgresql-18beta1/src/bin/psql/command.c:4853:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4865:9: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4870:18: throw: if ‘MainLoop’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:4870:18: danger: ‘fd’ leaks here; was opened at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1957]
postgresql-18beta1/src/bin/psql/command.c:4870:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
postgresql-18beta1/src/bin/psql/command.c:4825:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:4830:18: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4830:17: branch_true: following ‘true’ branch (when the strings are non-equal)...
postgresql-18beta1/src/bin/psql/command.c:4832:17: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:4851:22: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/command.c:4853:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:4865:9: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:4870:18: throw: if ‘MainLoop’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:4870:18: danger: ‘fd’ leaks here; was allocated at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1958]
postgresql-18beta1/src/bin/psql/command.c:5876:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pagerpipe’
postgresql-18beta1/src/bin/psql/command.c:5790:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:5840:12: branch_true: following ‘true’ branch (when ‘pagerprog’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:5840:26: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5840:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:5843:26: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:5843:13: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:5844:17: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5843:13: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:5844:42: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5843:13: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:5846:17: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5848:29: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/command.c:5850:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:5874:9: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:5876:17: throw: if ‘pg_malloc’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:5876:17: danger: ‘pagerpipe’ leaks here; was allocated at [(15)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1959]
postgresql-18beta1/src/bin/psql/command.c:5893:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pagerpipe’
postgresql-18beta1/src/bin/psql/command.c:5790:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:5840:12: branch_true: following ‘true’ branch (when ‘pagerprog’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:5840:26: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5840:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:5843:26: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:5843:13: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:5844:17: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5843:13: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:5844:42: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5843:13: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:5846:17: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5848:29: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/command.c:5850:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:5874:9: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:5879:16: branch_false: following ‘false’ branch (when ‘done == 0’)...
postgresql-18beta1/src/bin/psql/command.c:5889:25: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:5892:20: branch_true: following ‘true’ branch (when ‘user_title’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:5893:25: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5893:25: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:5893:25: danger: ‘pagerpipe’ leaks here; was allocated at [(15)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1960]
postgresql-18beta1/src/bin/psql/command.c:5896:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pagerpipe’
postgresql-18beta1/src/bin/psql/command.c:5790:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:5840:12: branch_true: following ‘true’ branch (when ‘pagerprog’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:5840:26: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5840:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:5843:26: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:5843:13: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:5844:17: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5843:13: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:5844:42: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5843:13: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:5846:17: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5848:29: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/command.c:5850:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:5874:9: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:5879:16: branch_false: following ‘false’ branch (when ‘done == 0’)...
postgresql-18beta1/src/bin/psql/command.c:5889:25: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:5892:20: branch_false: following ‘false’ branch (when ‘user_title’ is NULL)...
postgresql-18beta1/src/bin/psql/command.c:5896:25: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:5896:25: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:5896:25: danger: ‘pagerpipe’ leaks here; was allocated at [(15)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1961]
postgresql-18beta1/src/bin/psql/command.c:5901:23: warning[-Wanalyzer-malloc-leak]: leak of ‘pagerpipe’
postgresql-18beta1/src/bin/psql/command.c:5790:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:5840:12: branch_true: following ‘true’ branch (when ‘pagerprog’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:5840:26: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5840:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:5843:26: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:5843:13: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:5844:17: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5843:13: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:5844:42: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5843:13: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:5846:17: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5848:29: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/command.c:5850:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:5874:9: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:5879:16: branch_false: following ‘false’ branch (when ‘done == 0’)...
postgresql-18beta1/src/bin/psql/command.c:5889:25: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:5892:20: branch_true: following ‘true’ branch (when ‘user_title’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:5893:25: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5901:23: throw: if ‘PSQLexecWatch’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:5901:23: danger: ‘pagerpipe’ leaks here; was allocated at [(15)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1962]
postgresql-18beta1/src/bin/psql/command.c:5979:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pagerpipe’
postgresql-18beta1/src/bin/psql/command.c:5790:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:5840:12: branch_true: following ‘true’ branch (when ‘pagerprog’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:5840:26: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5840:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:5843:26: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:5843:13: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:5844:17: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5843:13: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:5844:42: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5843:13: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/command.c:5846:17: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5848:29: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/command.c:5850:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/command.c:5874:9: branch_false: ...to here
postgresql-18beta1/src/bin/psql/command.c:5879:16: branch_true: following ‘true’ branch (when ‘done != 0’)...
postgresql-18beta1/src/bin/psql/command.c:5977:12: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5977:12: branch_true: following ‘true’ branch (when ‘pagerpipe’ is non-NULL)...
postgresql-18beta1/src/bin/psql/command.c:5979:17: branch_true: ...to here
postgresql-18beta1/src/bin/psql/command.c:5979:17: throw: if ‘pclose’ throws an exception...
postgresql-18beta1/src/bin/psql/command.c:5979:17: danger: ‘pagerpipe’ leaks here; was allocated at [(15)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1963]
postgresql-18beta1/src/bin/psql/common.c:98:33: warning[-Wanalyzer-malloc-leak]: leak of ‘gfile_fout’
postgresql-18beta1/src/bin/psql/common.c:1556:1: enter_function: entry to ‘ExecQueryAndProcessResults’
postgresql-18beta1/src/bin/psql/common.c:1700:12: branch_true: following ‘true’ branch (when ‘success != 0’)...
postgresql-18beta1/src/bin/psql/common.c:1714:13: branch_true: ...to here
postgresql-18beta1/src/bin/psql/common.c:1769:16: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/common.c:1776:22: branch_true: ...to here
postgresql-18beta1/src/bin/psql/common.c:1776:22: call_function: calling ‘AcceptResult’ from ‘ExecQueryAndProcessResults’
postgresql-18beta1/src/bin/psql/common.c:1776:22: return_function: returning to ‘ExecQueryAndProcessResults’ from ‘AcceptResult’
postgresql-18beta1/src/bin/psql/common.c:1776:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/common.c:1845:25: branch_true: ...to here
postgresql-18beta1/src/bin/psql/common.c:1865:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/common.c:1911:20: branch_false: ...to here
postgresql-18beta1/src/bin/psql/common.c:1911:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/common.c:1913:51: branch_true: ...to here
postgresql-18beta1/src/bin/psql/common.c:1925:36: call_function: calling ‘SetupGOutput’ from ‘ExecQueryAndProcessResults’
Error: CPPCHECK_WARNING (CWE-457): [#def1964]
postgresql-18beta1/src/bin/psql/crosstabview.c:363: error[uninitvar]: Uninitialized variables: &elt.sort_value, &elt.rank
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1965]
postgresql-18beta1/src/bin/psql/crosstabview.c:369:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/bin/psql/crosstabview.c:350:22: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/crosstabview.c:359:22: branch_true: ...to here
postgresql-18beta1/src/bin/psql/crosstabview.c:369:17: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1966]
postgresql-18beta1/src/bin/psql/input.c:520:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘output’
postgresql-18beta1/src/bin/psql/input.c:500:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/input.c:503:12: branch_true: ...to here
postgresql-18beta1/src/bin/psql/input.c:503:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
postgresql-18beta1/src/bin/psql/input.c:511:26: branch_false: ...to here
postgresql-18beta1/src/bin/psql/input.c:511:26: acquire_resource: opened here
postgresql-18beta1/src/bin/psql/input.c:512:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/input.c:520:9: branch_false: ...to here
postgresql-18beta1/src/bin/psql/input.c:520:9: throw: if ‘history_set_pos’ throws an exception...
postgresql-18beta1/src/bin/psql/input.c:520:9: danger: ‘output’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1967]
postgresql-18beta1/src/bin/psql/input.c:520:9: warning[-Wanalyzer-malloc-leak]: leak of ‘output’
postgresql-18beta1/src/bin/psql/input.c:500:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/input.c:503:12: branch_true: ...to here
postgresql-18beta1/src/bin/psql/input.c:503:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
postgresql-18beta1/src/bin/psql/input.c:511:26: branch_false: ...to here
postgresql-18beta1/src/bin/psql/input.c:511:26: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/input.c:512:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/input.c:520:9: branch_false: ...to here
postgresql-18beta1/src/bin/psql/input.c:520:9: throw: if ‘history_set_pos’ throws an exception...
postgresql-18beta1/src/bin/psql/input.c:520:9: danger: ‘output’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1968]
postgresql-18beta1/src/bin/psql/input.c:522:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘output’
postgresql-18beta1/src/bin/psql/input.c:500:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/input.c:503:12: branch_true: ...to here
postgresql-18beta1/src/bin/psql/input.c:503:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
postgresql-18beta1/src/bin/psql/input.c:511:26: branch_false: ...to here
postgresql-18beta1/src/bin/psql/input.c:511:26: acquire_resource: opened here
postgresql-18beta1/src/bin/psql/input.c:512:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/input.c:520:9: branch_false: ...to here
postgresql-18beta1/src/bin/psql/input.c:520:9: branch_true: following ‘true’ branch (when ‘cur_hist’ is non-NULL)...
postgresql-18beta1/src/bin/psql/input.c:522:17: branch_true: ...to here
postgresql-18beta1/src/bin/psql/input.c:522:17: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/psql/input.c:522:17: danger: ‘output’ leaks here; was opened at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1969]
postgresql-18beta1/src/bin/psql/input.c:522:17: warning[-Wanalyzer-malloc-leak]: leak of ‘output’
postgresql-18beta1/src/bin/psql/input.c:500:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/input.c:503:12: branch_true: ...to here
postgresql-18beta1/src/bin/psql/input.c:503:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
postgresql-18beta1/src/bin/psql/input.c:511:26: branch_false: ...to here
postgresql-18beta1/src/bin/psql/input.c:511:26: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/input.c:512:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/input.c:520:9: branch_false: ...to here
postgresql-18beta1/src/bin/psql/input.c:520:9: branch_true: following ‘true’ branch (when ‘cur_hist’ is non-NULL)...
postgresql-18beta1/src/bin/psql/input.c:522:17: branch_true: ...to here
postgresql-18beta1/src/bin/psql/input.c:522:17: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/bin/psql/input.c:522:17: danger: ‘output’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1970]
postgresql-18beta1/src/bin/psql/large_obj.c:29:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/bin/psql/large_obj.c:23:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/large_obj.c:25:21: branch_false: ...to here
postgresql-18beta1/src/bin/psql/large_obj.c:28:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/bin/psql/large_obj.c:29:17: throw: if ‘pg_vfprintf’ throws an exception...
postgresql-18beta1/src/bin/psql/large_obj.c:29:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1971]
postgresql-18beta1/src/bin/psql/large_obj.c:41:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/bin/psql/large_obj.c:38:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/large_obj.c:40:17: branch_true: ...to here
postgresql-18beta1/src/bin/psql/large_obj.c:40:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/bin/psql/large_obj.c:41:17: throw: if ‘pg_vfprintf’ throws an exception...
postgresql-18beta1/src/bin/psql/large_obj.c:41:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1972]
postgresql-18beta1/src/bin/psql/prompt.c:297:57: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(pnstrdup(p + 1, (long unsigned int)cmdend), "r")’
postgresql-18beta1/src/bin/psql/prompt.c:101:18: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/prompt.c:105:20: branch_false: following ‘false’ branch (when ‘esc == 0’)...
postgresql-18beta1/src/bin/psql/prompt.c:344:26: branch_false: ...to here
postgresql-18beta1/src/bin/psql/prompt.c:101:18: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/prompt.c:292:54: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/prompt.c:293:52: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/prompt.c:295:61: branch_true: ...to here
postgresql-18beta1/src/bin/psql/prompt.c:295:60: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/prompt.c:297:57: branch_false: ...to here
postgresql-18beta1/src/bin/psql/prompt.c:297:57: danger: ‘popen(pnstrdup(p + 1, (long unsigned int)cmdend), "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1973]
postgresql-18beta1/src/bin/psql/psqlscanslash.c:1474:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:540:8: enter_function: entry to ‘psql_scan_slash_option’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:570:10: call_function: calling ‘slash_yy_switch_to_buffer’ from ‘psql_scan_slash_option’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:570:10: return_function: returning to ‘psql_scan_slash_option’ from ‘slash_yy_switch_to_buffer’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:581:14: call_function: calling ‘slash_yylex’ from ‘psql_scan_slash_option’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1974]
postgresql-18beta1/src/bin/psql/psqlscanslash.c:2473:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:679:1: enter_function: entry to ‘psql_scan_slash_command_end’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:689:10: call_function: calling ‘slash_yy_switch_to_buffer’ from ‘psql_scan_slash_command_end’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:689:10: return_function: returning to ‘psql_scan_slash_command_end’ from ‘slash_yy_switch_to_buffer’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:697:2: call_function: calling ‘slash_yylex’ from ‘psql_scan_slash_command_end’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1975]
postgresql-18beta1/src/bin/psql/psqlscanslash.c:2473:54: warning[-Wanalyzer-malloc-leak]: leak of ‘slash_yy_create_buffer(*(struct yyguts_t *)yyscanner.yyin_r, 16384, yyscanner)’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:540:8: enter_function: entry to ‘psql_scan_slash_option’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:570:10: call_function: calling ‘slash_yy_switch_to_buffer’ from ‘psql_scan_slash_option’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:570:10: return_function: returning to ‘psql_scan_slash_option’ from ‘slash_yy_switch_to_buffer’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:581:14: call_function: calling ‘slash_yylex’ from ‘psql_scan_slash_option’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1976]
postgresql-18beta1/src/bin/psql/psqlscanslash.c:2516:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:679:1: enter_function: entry to ‘psql_scan_slash_command_end’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:689:10: call_function: calling ‘slash_yy_switch_to_buffer’ from ‘psql_scan_slash_command_end’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:689:10: return_function: returning to ‘psql_scan_slash_command_end’ from ‘slash_yy_switch_to_buffer’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:697:2: call_function: calling ‘slash_yylex’ from ‘psql_scan_slash_command_end’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1977]
postgresql-18beta1/src/bin/psql/psqlscanslash.c:2636:3: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(8)’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:481:1: enter_function: entry to ‘psql_scan_slash_command’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:495:19: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/psqlscanslash.l:496:10: branch_true: ...to here
postgresql-18beta1/src/bin/psql/psqlscanslash.l:496:10: call_function: calling ‘slash_yy_switch_to_buffer’ from ‘psql_scan_slash_command’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1978]
postgresql-18beta1/src/bin/psql/psqlscanslash.c:2657:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:481:1: enter_function: entry to ‘psql_scan_slash_command’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:495:19: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/psqlscanslash.l:496:10: branch_true: ...to here
postgresql-18beta1/src/bin/psql/psqlscanslash.l:496:10: call_function: calling ‘slash_yy_switch_to_buffer’ from ‘psql_scan_slash_command’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1979]
postgresql-18beta1/src/bin/psql/psqlscanslash.c:2682:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/src/bin/psql/psqlscanslash.c:2668:17: enter_function: entry to ‘slash_yy_scan_buffer’
postgresql-18beta1/src/bin/psql/psqlscanslash.c:2678:24: call_function: inlined call to ‘slash_yyalloc’ from ‘slash_yy_scan_buffer’
postgresql-18beta1/src/bin/psql/psqlscanslash.c:2679:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/psqlscanslash.c:2682:25: branch_false: ...to here
postgresql-18beta1/src/bin/psql/psqlscanslash.c:2692:2: call_function: calling ‘slash_yy_switch_to_buffer’ from ‘slash_yy_scan_buffer’
Error: CPPCHECK_WARNING (CWE-562): [#def1980]
postgresql-18beta1/src/bin/psql/psqlscanslash.l:492: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def1981]
postgresql-18beta1/src/bin/psql/psqlscanslash.l:566: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1982]
postgresql-18beta1/src/bin/psql/psqlscanslash.l:809:33: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:794:14: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/psqlscanslash.l:795:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/psqlscanslash.l:795:12: branch_false: ...to here
postgresql-18beta1/src/bin/psql/psqlscanslash.l:809:33: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18beta1/src/bin/psql/psqlscanslash.l:809:33: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1983]
postgresql-18beta1/src/bin/psql/psqlscanslash.l:813:18: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:794:14: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/psqlscanslash.l:795:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/psqlscanslash.l:795:12: branch_false: ...to here
postgresql-18beta1/src/bin/psql/psqlscanslash.l:807:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/psqlscanslash.l:813:18: branch_false: ...to here
postgresql-18beta1/src/bin/psql/psqlscanslash.l:813:18: throw: if ‘appendBinaryPQExpBuffer’ throws an exception...
postgresql-18beta1/src/bin/psql/psqlscanslash.l:813:18: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1984]
postgresql-18beta1/src/bin/psql/psqlscanslash.l:824:29: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
postgresql-18beta1/src/bin/psql/psqlscanslash.l:794:14: acquire_memory: allocated here
postgresql-18beta1/src/bin/psql/psqlscanslash.l:795:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/bin/psql/psqlscanslash.l:795:12: branch_false: ...to here
postgresql-18beta1/src/bin/psql/psqlscanslash.l:817:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/bin/psql/psqlscanslash.l:824:29: branch_true: ...to here
postgresql-18beta1/src/bin/psql/psqlscanslash.l:824:29: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def1985]
postgresql-18beta1/src/bin/psql/tab-complete.in.c:2555: warning[uninitvar]: Uninitialized variable: argarray
Error: CPPCHECK_WARNING (CWE-457): [#def1986]
postgresql-18beta1/src/bin/psql/tab-complete.in.c:2605: warning[uninitvar]: Uninitialized variable: argarray
Error: CPPCHECK_WARNING (CWE-457): [#def1987]
postgresql-18beta1/src/bin/psql/tab-complete.in.c:2693: warning[uninitvar]: Uninitialized variable: argarray
Error: CPPCHECK_WARNING (CWE-476): [#def1988]
postgresql-18beta1/src/bin/scripts/reindexdb.c:399: warning[nullPointer]: Possible null pointer dereference: process_list
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1989]
postgresql-18beta1/src/bin/scripts/reindexdb.c:399:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘process_list’
postgresql-18beta1/src/bin/scripts/reindexdb.c:313:12: branch_false: following ‘false’ branch (when ‘concurrentCons > 1’)...
postgresql-18beta1/src/bin/scripts/reindexdb.c:339:17: branch_false: ...to here
postgresql-18beta1/src/bin/scripts/reindexdb.c:399:14: danger: dereference of NULL ‘process_list’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1990]
postgresql-18beta1/src/common/blkreftable.c:539:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/common/blkreftable.c:474:1: enter_function: entry to ‘WriteBlockRefTable’
postgresql-18beta1/src/common/blkreftable.c:489:9: call_function: calling ‘BlockRefTableWrite’ from ‘WriteBlockRefTable’
postgresql-18beta1/src/common/blkreftable.c:489:9: return_function: returning to ‘WriteBlockRefTable’ from ‘BlockRefTableWrite’
postgresql-18beta1/src/common/blkreftable.c:492:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/common/blkreftable.c:500:32: branch_true: ...to here
postgresql-18beta1/src/common/blkreftable.c:502:36: call_function: calling ‘blockreftable_iterate’ from ‘WriteBlockRefTable’
postgresql-18beta1/src/common/blkreftable.c:502:36: return_function: returning to ‘WriteBlockRefTable’ from ‘blockreftable_iterate’
postgresql-18beta1/src/common/blkreftable.c:502:24: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/blkreftable.c:517:17: branch_false: ...to here
postgresql-18beta1/src/common/blkreftable.c:521:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/common/blkreftable.c:523:70: branch_true: ...to here
postgresql-18beta1/src/common/blkreftable.c:528:25: call_function: calling ‘BlockRefTableWrite’ from ‘WriteBlockRefTable’
postgresql-18beta1/src/common/blkreftable.c:528:25: return_function: returning to ‘WriteBlockRefTable’ from ‘BlockRefTableWrite’
postgresql-18beta1/src/common/blkreftable.c:538:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/common/blkreftable.c:540:68: branch_true: ...to here
postgresql-18beta1/src/common/blkreftable.c:539:61: danger: dereference of NULL ‘blockreftable_lookup(*brtab.hash, key)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1991]
postgresql-18beta1/src/common/blkreftable.c:543:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/common/blkreftable.c:474:1: enter_function: entry to ‘WriteBlockRefTable’
postgresql-18beta1/src/common/blkreftable.c:489:9: call_function: calling ‘BlockRefTableWrite’ from ‘WriteBlockRefTable’
postgresql-18beta1/src/common/blkreftable.c:489:9: return_function: returning to ‘WriteBlockRefTable’ from ‘BlockRefTableWrite’
postgresql-18beta1/src/common/blkreftable.c:492:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/common/blkreftable.c:500:32: branch_true: ...to here
postgresql-18beta1/src/common/blkreftable.c:502:36: call_function: calling ‘blockreftable_iterate’ from ‘WriteBlockRefTable’
postgresql-18beta1/src/common/blkreftable.c:502:36: return_function: returning to ‘WriteBlockRefTable’ from ‘blockreftable_iterate’
postgresql-18beta1/src/common/blkreftable.c:502:24: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/blkreftable.c:517:17: branch_false: ...to here
postgresql-18beta1/src/common/blkreftable.c:521:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/common/blkreftable.c:523:70: branch_true: ...to here
postgresql-18beta1/src/common/blkreftable.c:528:25: call_function: calling ‘BlockRefTableWrite’ from ‘WriteBlockRefTable’
postgresql-18beta1/src/common/blkreftable.c:528:25: return_function: returning to ‘WriteBlockRefTable’ from ‘BlockRefTableWrite’
postgresql-18beta1/src/common/blkreftable.c:538:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/blkreftable.c:543:25: branch_false: ...to here
postgresql-18beta1/src/common/blkreftable.c:543:41: danger: dereference of NULL ‘blockreftable_lookup(*brtab.hash, key)’
Error: COMPILER_WARNING (CWE-704): [#def1992]
postgresql-18beta1/src/common/compression.c: scope_hint: In function ‘parse_compress_options’
postgresql-18beta1/src/common/compression.c:458:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def1993]
postgresql-18beta1/src/common/compression.c:458:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1994]
postgresql-18beta1/src/common/cryptohash_openssl.c:148:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
postgresql-18beta1/src/common/cryptohash_openssl.c:135:15: acquire_memory: allocated here
postgresql-18beta1/src/common/cryptohash_openssl.c:136:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
postgresql-18beta1/src/common/cryptohash_openssl.c:136:12: branch_false: ...to here
postgresql-18beta1/src/common/cryptohash_openssl.c:148:9: throw: if ‘ERR_clear_error’ throws an exception...
postgresql-18beta1/src/common/cryptohash_openssl.c:148:9: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def1995]
postgresql-18beta1/src/common/encnames.c:540: warning[uninitvar]: Uninitialized variable: newkey
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1996]
postgresql-18beta1/src/common/exec.c:369:16: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
postgresql-18beta1/src/common/exec.c:360:25: acquire_memory: allocated here
postgresql-18beta1/src/common/exec.c:360:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/exec.c:368:9: branch_false: ...to here
postgresql-18beta1/src/common/exec.c:369:16: throw: if ‘pg_get_line’ throws an exception...
postgresql-18beta1/src/common/exec.c:369:16: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1997]
postgresql-18beta1/src/common/file_utils.c:308:33: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
postgresql-18beta1/src/common/file_utils.c:301:15: acquire_memory: allocated here
postgresql-18beta1/src/common/file_utils.c:302:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/file_utils.c:302:12: branch_false: ...to here
postgresql-18beta1/src/common/file_utils.c:308:33: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/src/common/file_utils.c:308:33: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1998]
postgresql-18beta1/src/common/hmac_openssl.c:136:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
postgresql-18beta1/src/common/hmac_openssl.c:121:15: acquire_memory: allocated here
postgresql-18beta1/src/common/hmac_openssl.c:122:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
postgresql-18beta1/src/common/hmac_openssl.c:124:9: branch_false: ...to here
postgresql-18beta1/src/common/hmac_openssl.c:136:9: throw: if ‘ERR_clear_error’ throws an exception...
postgresql-18beta1/src/common/hmac_openssl.c:136:9: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1999]
postgresql-18beta1/src/common/hmac_openssl.c:142:24: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
postgresql-18beta1/src/common/hmac_openssl.c:121:15: acquire_memory: allocated here
postgresql-18beta1/src/common/hmac_openssl.c:122:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
postgresql-18beta1/src/common/hmac_openssl.c:124:9: branch_false: ...to here
postgresql-18beta1/src/common/hmac_openssl.c:142:24: throw: if ‘HMAC_CTX_new’ throws an exception...
postgresql-18beta1/src/common/hmac_openssl.c:142:24: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2000]
postgresql-18beta1/src/common/logging.c:139:57: warning[-Wanalyzer-malloc-leak]: leak of ‘sgr_error’
postgresql-18beta1/src/common/logging.c:105:12: branch_true: following ‘true’ branch (when ‘pg_color_env’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:107:21: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:107:20: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:114:45: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:116:20: branch_true: following ‘true’ branch (when ‘pg_colors_env’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:118:46: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:120:28: branch_true: following ‘true’ branch (when ‘colors’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:123:45: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:125:40: branch_true: following ‘true’ branch (when ‘token’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:127:57: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:129:44: branch_true: following ‘true’ branch (when ‘e’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:134:49: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:138:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:139:69: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:139:69: acquire_memory: allocated here
postgresql-18beta1/src/common/logging.c:140:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:141:71: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:142:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:143:68: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:144:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:145:69: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:125:40: branch_true: following ‘true’ branch (when ‘token’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:127:57: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:129:44: branch_true: following ‘true’ branch (when ‘e’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:134:49: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:138:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:139:69: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:139:57: danger: ‘sgr_error’ leaks here; was allocated at [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2001]
postgresql-18beta1/src/common/logging.c:141:57: warning[-Wanalyzer-malloc-leak]: leak of ‘sgr_warning’
postgresql-18beta1/src/common/logging.c:105:12: branch_true: following ‘true’ branch (when ‘pg_color_env’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:107:21: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:107:20: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:114:45: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:116:20: branch_true: following ‘true’ branch (when ‘pg_colors_env’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:118:46: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:120:28: branch_true: following ‘true’ branch (when ‘colors’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:123:45: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:125:40: branch_true: following ‘true’ branch (when ‘token’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:127:57: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:129:44: branch_true: following ‘true’ branch (when ‘e’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:134:49: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:138:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:139:69: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:140:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:141:71: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:141:71: acquire_memory: allocated here
postgresql-18beta1/src/common/logging.c:142:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:143:68: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:144:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:145:69: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:125:40: branch_true: following ‘true’ branch (when ‘token’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:127:57: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:129:44: branch_true: following ‘true’ branch (when ‘e’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:134:49: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:138:52: branch_false: following ‘false’ branch (when the strings are non-equal)...
postgresql-18beta1/src/common/logging.c:140:53: branch_false: ...to here
postgresql-18beta1/src/common/logging.c:140:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:141:71: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:141:57: danger: ‘sgr_warning’ leaks here; was allocated at [(19)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2002]
postgresql-18beta1/src/common/logging.c:143:57: warning[-Wanalyzer-malloc-leak]: leak of ‘sgr_note’
postgresql-18beta1/src/common/logging.c:105:12: branch_true: following ‘true’ branch (when ‘pg_color_env’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:107:21: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:107:20: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:114:45: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:116:20: branch_true: following ‘true’ branch (when ‘pg_colors_env’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:118:46: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:120:28: branch_true: following ‘true’ branch (when ‘colors’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:123:45: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:125:40: branch_true: following ‘true’ branch (when ‘token’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:127:57: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:129:44: branch_true: following ‘true’ branch (when ‘e’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:134:49: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:138:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:139:69: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:140:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:141:71: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:142:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:143:68: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:143:68: acquire_memory: allocated here
postgresql-18beta1/src/common/logging.c:144:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:145:69: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:125:40: branch_true: following ‘true’ branch (when ‘token’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:127:57: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:129:44: branch_true: following ‘true’ branch (when ‘e’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:134:49: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:138:52: branch_false: following ‘false’ branch (when the strings are non-equal)...
postgresql-18beta1/src/common/logging.c:140:53: branch_false: ...to here
postgresql-18beta1/src/common/logging.c:140:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:141:71: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:142:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:143:68: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:143:57: danger: ‘sgr_note’ leaks here; was allocated at [(21)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2003]
postgresql-18beta1/src/common/logging.c:145:57: warning[-Wanalyzer-malloc-leak]: leak of ‘sgr_locus’
postgresql-18beta1/src/common/logging.c:105:12: branch_true: following ‘true’ branch (when ‘pg_color_env’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:107:21: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:107:20: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:114:45: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:116:20: branch_true: following ‘true’ branch (when ‘pg_colors_env’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:118:46: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:120:28: branch_true: following ‘true’ branch (when ‘colors’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:123:45: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:125:40: branch_true: following ‘true’ branch (when ‘token’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:127:57: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:129:44: branch_true: following ‘true’ branch (when ‘e’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:134:49: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:138:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:139:69: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:140:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:141:71: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:142:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:143:68: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:144:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:145:69: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:145:69: acquire_memory: allocated here
postgresql-18beta1/src/common/logging.c:125:40: branch_true: following ‘true’ branch (when ‘token’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:127:57: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:129:44: branch_true: following ‘true’ branch (when ‘e’ is non-NULL)...
postgresql-18beta1/src/common/logging.c:134:49: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:138:52: branch_false: following ‘false’ branch (when the strings are non-equal)...
postgresql-18beta1/src/common/logging.c:140:53: branch_false: ...to here
postgresql-18beta1/src/common/logging.c:140:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:141:71: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:142:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:143:68: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:144:52: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/common/logging.c:145:69: branch_true: ...to here
postgresql-18beta1/src/common/logging.c:145:57: danger: ‘sgr_locus’ leaks here; was allocated at [(23)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2004]
postgresql-18beta1/src/common/logging.c:242:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/common/logging.c:208:1: enter_function: entry to ‘pg_log_generic’
postgresql-18beta1/src/common/logging.c:213:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/common/logging.c:214:9: call_function: calling ‘pg_log_generic_v’ from ‘pg_log_generic’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2005]
postgresql-18beta1/src/common/logging.c:245:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/common/logging.c:208:1: enter_function: entry to ‘pg_log_generic’
postgresql-18beta1/src/common/logging.c:213:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/common/logging.c:214:9: call_function: calling ‘pg_log_generic_v’ from ‘pg_log_generic’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2006]
postgresql-18beta1/src/common/logging.c:248:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/common/logging.c:208:1: enter_function: entry to ‘pg_log_generic’
postgresql-18beta1/src/common/logging.c:213:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/common/logging.c:214:9: call_function: calling ‘pg_log_generic_v’ from ‘pg_log_generic’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2007]
postgresql-18beta1/src/common/logging.c:255:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/common/logging.c:208:1: enter_function: entry to ‘pg_log_generic’
postgresql-18beta1/src/common/logging.c:213:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/common/logging.c:214:9: call_function: calling ‘pg_log_generic_v’ from ‘pg_log_generic’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2008]
postgresql-18beta1/src/common/logging.c:257:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/common/logging.c:208:1: enter_function: entry to ‘pg_log_generic’
postgresql-18beta1/src/common/logging.c:213:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/common/logging.c:214:9: call_function: calling ‘pg_log_generic_v’ from ‘pg_log_generic’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2009]
postgresql-18beta1/src/common/logging.c:260:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/common/logging.c:208:1: enter_function: entry to ‘pg_log_generic’
postgresql-18beta1/src/common/logging.c:213:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/common/logging.c:214:9: call_function: calling ‘pg_log_generic_v’ from ‘pg_log_generic’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2010]
postgresql-18beta1/src/common/logging.c:314:24: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/common/logging.c:235:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/logging.c:242:9: branch_false: ...to here
postgresql-18beta1/src/common/logging.c:247:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/logging.c:250:15: branch_false: ...to here
postgresql-18beta1/src/common/logging.c:252:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/logging.c:269:14: branch_false: ...to here
postgresql-18beta1/src/common/logging.c:313:9: acquire_resource: ‘va_copy’ called here
postgresql-18beta1/src/common/logging.c:314:24: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/src/common/logging.c:314:24: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2011]
postgresql-18beta1/src/common/md5_common.c:80:15: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18beta1/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18beta1/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18beta1/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18beta1/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18beta1/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2012]
postgresql-18beta1/src/common/md5_common.c:83:27: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18beta1/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18beta1/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18beta1/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18beta1/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18beta1/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2013]
postgresql-18beta1/src/common/md5_common.c:87:13: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18beta1/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18beta1/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18beta1/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18beta1/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18beta1/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2014]
postgresql-18beta1/src/common/md5_common.c:88:17: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18beta1/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18beta1/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18beta1/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18beta1/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18beta1/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2015]
postgresql-18beta1/src/common/md5_common.c:89:17: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18beta1/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18beta1/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18beta1/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18beta1/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18beta1/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2016]
postgresql-18beta1/src/common/md5_common.c:91:27: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18beta1/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18beta1/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18beta1/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18beta1/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18beta1/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2017]
postgresql-18beta1/src/common/md5_common.c:92:17: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18beta1/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18beta1/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18beta1/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18beta1/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18beta1/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2018]
postgresql-18beta1/src/common/md5_common.c:97:9: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18beta1/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18beta1/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18beta1/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18beta1/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18beta1/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2019]
postgresql-18beta1/src/common/percentrepl.c:106:57: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/common/percentrepl.c:65:38: branch_true: following ‘true’ branch...
postgresql-18beta1/src/common/percentrepl.c:67:20: branch_true: ...to here
postgresql-18beta1/src/common/percentrepl.c:75:33: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/percentrepl.c:95:33: branch_false: ...to here
postgresql-18beta1/src/common/percentrepl.c:97:33: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/common/percentrepl.c:98:64: branch_true: following ‘true’ branch...
postgresql-18beta1/src/common/percentrepl.c:100:53: branch_true: ...to here
postgresql-18beta1/src/common/percentrepl.c:104:52: branch_true: following ‘true’ branch (when ‘val’ is non-NULL)...
postgresql-18beta1/src/common/percentrepl.c:106:57: branch_true: ...to here
postgresql-18beta1/src/common/percentrepl.c:106:57: throw: if ‘appendStringInfoString’ throws an exception...
postgresql-18beta1/src/common/percentrepl.c:106:57: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2020]
postgresql-18beta1/src/common/pgfnames.c:52:31: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
postgresql-18beta1/src/common/pgfnames.c:45:15: acquire_memory: allocated here
postgresql-18beta1/src/common/pgfnames.c:46:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/pgfnames.c:52:31: branch_false: ...to here
postgresql-18beta1/src/common/pgfnames.c:52:31: throw: if ‘palloc’ throws an exception...
postgresql-18beta1/src/common/pgfnames.c:52:31: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2021]
postgresql-18beta1/src/common/pgfnames.c:54:35: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
postgresql-18beta1/src/common/pgfnames.c:45:15: acquire_memory: allocated here
postgresql-18beta1/src/common/pgfnames.c:46:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/pgfnames.c:52:31: branch_false: ...to here
postgresql-18beta1/src/common/pgfnames.c:54:35: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/src/common/pgfnames.c:54:35: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2022]
postgresql-18beta1/src/common/psprintf.c:107:20: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/common/psprintf.c:43:1: enter_function: entry to ‘psprintf’
postgresql-18beta1/src/common/psprintf.c:62:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/common/psprintf.c:63:26: call_function: calling ‘pvsnprintf’ from ‘psprintf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2023]
postgresql-18beta1/src/common/rmtree.c:67:30: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
postgresql-18beta1/src/common/rmtree.c:60:15: acquire_memory: allocated here
postgresql-18beta1/src/common/rmtree.c:61:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/rmtree.c:67:30: branch_false: ...to here
postgresql-18beta1/src/common/rmtree.c:67:30: throw: if ‘palloc’ throws an exception...
postgresql-18beta1/src/common/rmtree.c:67:30: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2024]
postgresql-18beta1/src/common/rmtree.c:69:33: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
postgresql-18beta1/src/common/rmtree.c:60:15: acquire_memory: allocated here
postgresql-18beta1/src/common/rmtree.c:61:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/rmtree.c:67:30: branch_false: ...to here
postgresql-18beta1/src/common/rmtree.c:69:33: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/src/common/rmtree.c:69:33: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2025]
postgresql-18beta1/src/common/saslprep.c:1094:22: warning[-Wanalyzer-malloc-leak]: leak of ‘input_chars’
postgresql-18beta1/src/common/saslprep.c:1067:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/saslprep.c:1080:22: branch_false: ...to here
postgresql-18beta1/src/common/saslprep.c:1081:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/saslprep.c:1083:13: branch_false: ...to here
postgresql-18beta1/src/common/saslprep.c:1083:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/saslprep.c:1086:23: branch_false: ...to here
postgresql-18beta1/src/common/saslprep.c:1086:23: acquire_memory: allocated here
postgresql-18beta1/src/common/saslprep.c:1087:12: branch_false: following ‘false’ branch (when ‘input_chars’ is non-NULL)...
postgresql-18beta1/src/common/saslprep.c:1087:12: branch_false: ...to here
postgresql-18beta1/src/common/saslprep.c:1091:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/common/saslprep.c:1093:28: branch_true: ...to here
postgresql-18beta1/src/common/saslprep.c:1094:22: throw: if ‘pg_utf_mblen_private’ throws an exception...
postgresql-18beta1/src/common/saslprep.c:1094:22: danger: ‘input_chars’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2026]
postgresql-18beta1/src/common/sprompt.c:142:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘termin’
postgresql-18beta1/src/common/sprompt.c:95:18: acquire_resource: opened here
postgresql-18beta1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:139:12: branch_true: following ‘true’ branch (when ‘prompt’ is non-NULL)...
postgresql-18beta1/src/common/sprompt.c:141:23: branch_true: ...to here
postgresql-18beta1/src/common/sprompt.c:142:17: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/src/common/sprompt.c:142:17: danger: ‘termin’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2027]
postgresql-18beta1/src/common/sprompt.c:142:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18beta1/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18beta1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:139:12: branch_true: following ‘true’ branch (when ‘prompt’ is non-NULL)...
postgresql-18beta1/src/common/sprompt.c:141:23: branch_true: ...to here
postgresql-18beta1/src/common/sprompt.c:142:17: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/src/common/sprompt.c:142:17: danger: ‘termout’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2028]
postgresql-18beta1/src/common/sprompt.c:142:17: warning[-Wanalyzer-malloc-leak]: leak of ‘termin’
postgresql-18beta1/src/common/sprompt.c:95:18: acquire_memory: allocated here
postgresql-18beta1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:139:12: branch_true: following ‘true’ branch (when ‘prompt’ is non-NULL)...
postgresql-18beta1/src/common/sprompt.c:141:23: branch_true: ...to here
postgresql-18beta1/src/common/sprompt.c:142:17: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/src/common/sprompt.c:142:17: danger: ‘termin’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2029]
postgresql-18beta1/src/common/sprompt.c:142:17: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18beta1/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18beta1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:139:12: branch_true: following ‘true’ branch (when ‘prompt’ is non-NULL)...
postgresql-18beta1/src/common/sprompt.c:141:23: branch_true: ...to here
postgresql-18beta1/src/common/sprompt.c:142:17: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/src/common/sprompt.c:142:17: danger: ‘termout’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2030]
postgresql-18beta1/src/common/sprompt.c:145:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘termin’
postgresql-18beta1/src/common/sprompt.c:95:18: acquire_resource: opened here
postgresql-18beta1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:145:18: throw: if ‘pg_get_line’ throws an exception...
postgresql-18beta1/src/common/sprompt.c:145:18: danger: ‘termin’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2031]
postgresql-18beta1/src/common/sprompt.c:145:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18beta1/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18beta1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:145:18: throw: if ‘pg_get_line’ throws an exception...
postgresql-18beta1/src/common/sprompt.c:145:18: danger: ‘termout’ leaks here; was opened at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2032]
postgresql-18beta1/src/common/sprompt.c:145:18: warning[-Wanalyzer-malloc-leak]: leak of ‘termin’
postgresql-18beta1/src/common/sprompt.c:95:18: acquire_memory: allocated here
postgresql-18beta1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:145:18: throw: if ‘pg_get_line’ throws an exception...
postgresql-18beta1/src/common/sprompt.c:145:18: danger: ‘termin’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2033]
postgresql-18beta1/src/common/sprompt.c:145:18: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18beta1/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18beta1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:145:18: throw: if ‘pg_get_line’ throws an exception...
postgresql-18beta1/src/common/sprompt.c:145:18: danger: ‘termout’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2034]
postgresql-18beta1/src/common/sprompt.c:149:26: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18beta1/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18beta1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:148:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/common/sprompt.c:149:26: branch_true: ...to here
postgresql-18beta1/src/common/sprompt.c:149:26: throw: if ‘pg_strdup’ throws an exception...
postgresql-18beta1/src/common/sprompt.c:149:26: danger: ‘termout’ leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2035]
postgresql-18beta1/src/common/sprompt.c:149:26: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18beta1/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18beta1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:148:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/common/sprompt.c:149:26: branch_true: ...to here
postgresql-18beta1/src/common/sprompt.c:149:26: throw: if ‘pg_strdup’ throws an exception...
postgresql-18beta1/src/common/sprompt.c:149:26: danger: ‘termout’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2036]
postgresql-18beta1/src/common/sprompt.c:152:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18beta1/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18beta1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:152:16: throw: if ‘pg_strip_crlf’ throws an exception...
postgresql-18beta1/src/common/sprompt.c:152:16: danger: ‘termout’ leaks here; was opened at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2037]
postgresql-18beta1/src/common/sprompt.c:152:16: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18beta1/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18beta1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:152:16: throw: if ‘pg_strip_crlf’ throws an exception...
postgresql-18beta1/src/common/sprompt.c:152:16: danger: ‘termout’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2038]
postgresql-18beta1/src/common/sprompt.c:160:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18beta1/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18beta1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:154:12: branch_false: following ‘false’ branch (when ‘echo == 0’)...
postgresql-18beta1/src/common/sprompt.c:158:17: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:160:17: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/src/common/sprompt.c:160:17: danger: ‘termout’ leaks here; was opened at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2039]
postgresql-18beta1/src/common/sprompt.c:160:17: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18beta1/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18beta1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:154:12: branch_false: following ‘false’ branch (when ‘echo == 0’)...
postgresql-18beta1/src/common/sprompt.c:158:17: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:160:17: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/src/common/sprompt.c:160:17: danger: ‘termout’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2040]
postgresql-18beta1/src/common/sprompt.c:171:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18beta1/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18beta1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:154:12: branch_true: following ‘true’ branch (when ‘echo != 0’)...
postgresql-18beta1/src/common/sprompt.c:167:17: branch_true: ...to here
postgresql-18beta1/src/common/sprompt.c:167:17: branch_true: following ‘true’ branch...
postgresql-18beta1/src/common/sprompt.c:171:17: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/src/common/sprompt.c:171:17: danger: ‘termout’ leaks here; was opened at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2041]
postgresql-18beta1/src/common/sprompt.c:171:17: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18beta1/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18beta1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:154:12: branch_true: following ‘true’ branch (when ‘echo != 0’)...
postgresql-18beta1/src/common/sprompt.c:167:17: branch_true: ...to here
postgresql-18beta1/src/common/sprompt.c:167:17: branch_true: following ‘true’ branch...
postgresql-18beta1/src/common/sprompt.c:171:17: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/src/common/sprompt.c:171:17: danger: ‘termout’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2042]
postgresql-18beta1/src/common/sprompt.c:180:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18beta1/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18beta1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:174:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:180:16: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:180:16: danger: ‘termout’ leaks here; was opened at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2043]
postgresql-18beta1/src/common/sprompt.c:180:16: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18beta1/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18beta1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:174:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/common/sprompt.c:180:16: branch_false: ...to here
postgresql-18beta1/src/common/sprompt.c:180:16: danger: ‘termout’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2044]
postgresql-18beta1/src/common/string.c:111:25: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
postgresql-18beta1/src/common/string.c:96:15: acquire_memory: allocated here
postgresql-18beta1/src/common/string.c:101:12: branch_false: following ‘false’ branch (when ‘dst’ is non-NULL)...
postgresql-18beta1/src/common/string.c:101:12: branch_false: ...to here
postgresql-18beta1/src/common/string.c:104:23: branch_true: following ‘true’ branch...
postgresql-18beta1/src/common/string.c:108:21: branch_true: ...to here
postgresql-18beta1/src/common/string.c:108:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/common/string.c:111:25: branch_true: ...to here
postgresql-18beta1/src/common/string.c:111:25: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/src/common/string.c:111:25: danger: ‘dst’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2045]
postgresql-18beta1/src/common/stringinfo.c:203:20: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/common/stringinfo.c:145:1: enter_function: entry to ‘appendStringInfo’
postgresql-18beta1/src/common/stringinfo.c:156:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/common/stringinfo.c:157:26: call_function: calling ‘appendStringInfoVA’ from ‘appendStringInfo’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2046]
postgresql-18beta1/src/fe_utils/astreamer_file.c:367:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "wb")’
postgresql-18beta1/src/fe_utils/astreamer_file.c:362:16: acquire_resource: opened here
postgresql-18beta1/src/fe_utils/astreamer_file.c:363:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/astreamer_file.c:367:13: branch_false: ...to here
postgresql-18beta1/src/fe_utils/astreamer_file.c:367:12: danger: ‘fopen(filename, "wb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2047]
postgresql-18beta1/src/fe_utils/astreamer_file.c:367:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "wb")’
postgresql-18beta1/src/fe_utils/astreamer_file.c:362:16: acquire_memory: allocated here
postgresql-18beta1/src/fe_utils/astreamer_file.c:363:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/astreamer_file.c:367:13: branch_false: ...to here
postgresql-18beta1/src/fe_utils/astreamer_file.c:367:12: danger: ‘fopen(filename, "wb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2048]
postgresql-18beta1/src/fe_utils/astreamer_gzip.c:129:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
postgresql-18beta1/src/fe_utils/astreamer_gzip.c:111:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
postgresql-18beta1/src/fe_utils/astreamer_gzip.c:124:46: branch_false: ...to here
postgresql-18beta1/src/fe_utils/astreamer_gzip.c:124:46: acquire_resource: opened here
postgresql-18beta1/src/fe_utils/astreamer_gzip.c:126:20: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
postgresql-18beta1/src/fe_utils/astreamer_gzip.c:129:36: branch_false: ...to here
postgresql-18beta1/src/fe_utils/astreamer_gzip.c:129:36: throw: if ‘gzdopen’ throws an exception...
postgresql-18beta1/src/fe_utils/astreamer_gzip.c:129:36: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2049]
postgresql-18beta1/src/fe_utils/print.c:909:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘width_header’
postgresql-18beta1/src/fe_utils/print.c:3549:1: enter_function: entry to ‘printQuery’
postgresql-18beta1/src/fe_utils/print.c:3557:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3561:55: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3560:9: call_function: calling ‘printTableInit’ from ‘printQuery’
postgresql-18beta1/src/fe_utils/print.c:3560:9: return_function: returning to ‘printQuery’ from ‘printTableInit’
postgresql-18beta1/src/fe_utils/print.c:3567:21: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3567:21: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3601:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3609:9: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3609:9: call_function: calling ‘printTable’ from ‘printQuery’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2050]
postgresql-18beta1/src/fe_utils/print.c:941:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/src/fe_utils/print.c:3549:1: enter_function: entry to ‘printQuery’
postgresql-18beta1/src/fe_utils/print.c:3557:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3561:55: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3560:9: call_function: calling ‘printTableInit’ from ‘printQuery’
postgresql-18beta1/src/fe_utils/print.c:3560:9: return_function: returning to ‘printQuery’ from ‘printTableInit’
postgresql-18beta1/src/fe_utils/print.c:3567:21: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3567:21: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3601:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3609:9: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3609:9: call_function: calling ‘printTable’ from ‘printQuery’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2051]
postgresql-18beta1/src/fe_utils/print.c:945:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/src/fe_utils/print.c:3549:1: enter_function: entry to ‘printQuery’
postgresql-18beta1/src/fe_utils/print.c:3557:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3561:55: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3560:9: call_function: calling ‘printTableInit’ from ‘printQuery’
postgresql-18beta1/src/fe_utils/print.c:3560:9: return_function: returning to ‘printQuery’ from ‘printTableInit’
postgresql-18beta1/src/fe_utils/print.c:3567:21: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3567:21: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3601:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3609:9: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3609:9: call_function: calling ‘printTable’ from ‘printQuery’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2052]
postgresql-18beta1/src/fe_utils/print.c:948:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/src/fe_utils/print.c:3549:1: enter_function: entry to ‘printQuery’
postgresql-18beta1/src/fe_utils/print.c:3557:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3561:55: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3560:9: call_function: calling ‘printTableInit’ from ‘printQuery’
postgresql-18beta1/src/fe_utils/print.c:3560:9: return_function: returning to ‘printQuery’ from ‘printTableInit’
postgresql-18beta1/src/fe_utils/print.c:3567:21: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3567:21: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3601:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3609:9: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3609:9: call_function: calling ‘printTable’ from ‘printQuery’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def2053]
postgresql-18beta1/src/fe_utils/print.c:1040:17: warning[-Wanalyzer-null-argument]: use of NULL ‘bytes_output’ where non-null expected
postgresql-18beta1/src/fe_utils/print.c:3549:1: enter_function: entry to ‘printQuery’
postgresql-18beta1/src/fe_utils/print.c:3557:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3561:55: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3560:9: call_function: calling ‘printTableInit’ from ‘printQuery’
postgresql-18beta1/src/fe_utils/print.c:3560:9: return_function: returning to ‘printQuery’ from ‘printTableInit’
postgresql-18beta1/src/fe_utils/print.c:3567:21: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3567:21: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3601:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3609:9: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3609:9: call_function: calling ‘printTable’ from ‘printQuery’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2054]
postgresql-18beta1/src/fe_utils/print.c:1410:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/src/fe_utils/print.c:3549:1: enter_function: entry to ‘printQuery’
postgresql-18beta1/src/fe_utils/print.c:3557:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3561:55: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3560:9: call_function: calling ‘printTableInit’ from ‘printQuery’
postgresql-18beta1/src/fe_utils/print.c:3560:9: return_function: returning to ‘printQuery’ from ‘printTableInit’
postgresql-18beta1/src/fe_utils/print.c:3567:21: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3567:21: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3601:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3609:9: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3609:9: call_function: calling ‘printTable’ from ‘printQuery’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2055]
postgresql-18beta1/src/fe_utils/print.c:3432:1: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/src/fe_utils/print.c:3549:1: enter_function: entry to ‘printQuery’
postgresql-18beta1/src/fe_utils/print.c:3557:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3561:55: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3560:9: call_function: calling ‘printTableInit’ from ‘printQuery’
postgresql-18beta1/src/fe_utils/print.c:3560:9: return_function: returning to ‘printQuery’ from ‘printTableInit’
postgresql-18beta1/src/fe_utils/print.c:3567:21: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3567:21: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3601:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/print.c:3609:9: branch_false: ...to here
postgresql-18beta1/src/fe_utils/print.c:3609:9: call_function: calling ‘printTable’ from ‘printQuery’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2056]
postgresql-18beta1/src/fe_utils/psqlscan.c:4571:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/src/fe_utils/psqlscan.l:1122:8: enter_function: entry to ‘psql_scan’
postgresql-18beta1/src/fe_utils/psqlscan.l:1137:10: call_function: calling ‘psql_yy_switch_to_buffer’ from ‘psql_scan’
postgresql-18beta1/src/fe_utils/psqlscan.l:1137:10: return_function: returning to ‘psql_scan’ from ‘psql_yy_switch_to_buffer’
postgresql-18beta1/src/fe_utils/psqlscan.l:1142:14: call_function: calling ‘psql_yylex’ from ‘psql_scan’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2057]
postgresql-18beta1/src/fe_utils/psqlscan.c:4614:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql-18beta1/src/fe_utils/psqlscan.l:1122:8: enter_function: entry to ‘psql_scan’
postgresql-18beta1/src/fe_utils/psqlscan.l:1137:10: call_function: calling ‘psql_yy_switch_to_buffer’ from ‘psql_scan’
postgresql-18beta1/src/fe_utils/psqlscan.l:1137:10: return_function: returning to ‘psql_scan’ from ‘psql_yy_switch_to_buffer’
postgresql-18beta1/src/fe_utils/psqlscan.l:1142:14: call_function: calling ‘psql_yylex’ from ‘psql_scan’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2058]
postgresql-18beta1/src/fe_utils/psqlscan.c:4780:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/src/fe_utils/psqlscan.c:4766:17: enter_function: entry to ‘psql_yy_scan_buffer’
postgresql-18beta1/src/fe_utils/psqlscan.c:4776:24: call_function: inlined call to ‘psql_yyalloc’ from ‘psql_yy_scan_buffer’
postgresql-18beta1/src/fe_utils/psqlscan.c:4777:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/psqlscan.c:4780:25: branch_false: ...to here
postgresql-18beta1/src/fe_utils/psqlscan.c:4790:2: call_function: calling ‘psql_yy_switch_to_buffer’ from ‘psql_yy_scan_buffer’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2059]
postgresql-18beta1/src/fe_utils/recovery_gen.c:143:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename, <unknown>)’
postgresql-18beta1/src/fe_utils/recovery_gen.c:139:14: acquire_resource: opened here
postgresql-18beta1/src/fe_utils/recovery_gen.c:140:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/recovery_gen.c:143:13: branch_false: ...to here
postgresql-18beta1/src/fe_utils/recovery_gen.c:143:13: danger: ‘fopen(&filename, <unknown>)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2060]
postgresql-18beta1/src/fe_utils/recovery_gen.c:143:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&filename, <unknown>)’
postgresql-18beta1/src/fe_utils/recovery_gen.c:139:14: acquire_memory: allocated here
postgresql-18beta1/src/fe_utils/recovery_gen.c:140:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/fe_utils/recovery_gen.c:143:13: branch_false: ...to here
postgresql-18beta1/src/fe_utils/recovery_gen.c:143:13: danger: ‘fopen(&filename, <unknown>)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2061]
postgresql-18beta1/src/include/access/tableam.h:1017:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sscan’
postgresql-18beta1/src/backend/access/heap/heapam_handler.c:685:1: enter_function: entry to ‘heapam_relation_copy_for_cluster’
postgresql-18beta1/src/backend/access/heap/heapam_handler.c:729:12: branch_false: following ‘false’ branch (when ‘use_sort == 0’)...
postgresql-18beta1/src/backend/access/heap/heapam_handler.c:741:13: branch_false: ...to here
postgresql-18beta1/src/backend/access/heap/heapam_handler.c:741:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/heap/heapam_handler.c:743:33: branch_true: ...to here
postgresql-18beta1/src/backend/access/heap/heapam_handler.c:802:30: call_function: calling ‘table_scan_getnextslot’ from ‘heapam_relation_copy_for_cluster’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2062]
postgresql-18beta1/src/include/access/tupmacs.h:28:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/access/brin/brin_tuple.c:553:1: enter_function: entry to ‘brin_deform_tuple’
postgresql-18beta1/src/backend/access/brin/brin_tuple.c:565:16: branch_true: following ‘true’ branch (when ‘dMemtuple’ is non-NULL)...
postgresql-18beta1/src/backend/access/brin/brin_tuple.c:565:28: branch_true: ...to here
postgresql-18beta1/src/backend/access/brin/brin_tuple.c:565:28: call_function: calling ‘brin_memtuple_initialize’ from ‘brin_deform_tuple’
postgresql-18beta1/src/backend/access/brin/brin_tuple.c:565:28: return_function: returning to ‘brin_deform_tuple’ from ‘brin_memtuple_initialize’
postgresql-18beta1/src/backend/access/brin/brin_tuple.c:568:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/brin/brin_tuple.c:572:14: branch_false: ...to here
postgresql-18beta1/src/backend/access/brin/brin_tuple.c:583:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/brin/brin_tuple.c:587:9: branch_false: ...to here
postgresql-18beta1/src/backend/access/brin/brin_tuple.c:587:9: call_function: calling ‘brin_deconstruct_tuple’ from ‘brin_deform_tuple’
Error: GCC_ANALYZER_WARNING (CWE-787): [#def2063]
postgresql-18beta1/src/include/common/unicode_case_table.h:13563:48: warning[-Wanalyzer-out-of-bounds]: buffer over-read
postgresql-18beta1/src/common/unicode_case.c:438:1: enter_function: entry to ‘find_case_map’
postgresql-18beta1/src/common/unicode_case.c:444:20: call_function: calling ‘case_index’ from ‘find_case_map’
Error: GCC_ANALYZER_WARNING (CWE-787): [#def2064]
postgresql-18beta1/src/include/common/unicode_case_table.h:13570:48: warning[-Wanalyzer-out-of-bounds]: buffer over-read
postgresql-18beta1/src/common/unicode_case.c:438:1: enter_function: entry to ‘find_case_map’
postgresql-18beta1/src/common/unicode_case.c:444:20: call_function: calling ‘case_index’ from ‘find_case_map’
Error: GCC_ANALYZER_WARNING (CWE-787): [#def2065]
postgresql-18beta1/src/include/common/unicode_case_table.h:13574:48: warning[-Wanalyzer-out-of-bounds]: buffer over-read
postgresql-18beta1/src/common/unicode_case.c:438:1: enter_function: entry to ‘find_case_map’
postgresql-18beta1/src/common/unicode_case.c:444:20: call_function: calling ‘case_index’ from ‘find_case_map’
Error: GCC_ANALYZER_WARNING (CWE-787): [#def2066]
postgresql-18beta1/src/include/common/unicode_case_table.h:13587:48: warning[-Wanalyzer-out-of-bounds]: buffer over-read
postgresql-18beta1/src/common/unicode_case.c:438:1: enter_function: entry to ‘find_case_map’
postgresql-18beta1/src/common/unicode_case.c:444:20: call_function: calling ‘case_index’ from ‘find_case_map’
Error: GCC_ANALYZER_WARNING (CWE-787): [#def2067]
postgresql-18beta1/src/include/common/unicode_case_table.h:13591:48: warning[-Wanalyzer-out-of-bounds]: buffer over-read
postgresql-18beta1/src/common/unicode_case.c:438:1: enter_function: entry to ‘find_case_map’
postgresql-18beta1/src/common/unicode_case.c:444:20: call_function: calling ‘case_index’ from ‘find_case_map’
Error: GCC_ANALYZER_WARNING (CWE-787): [#def2068]
postgresql-18beta1/src/include/common/unicode_case_table.h:13598:48: warning[-Wanalyzer-out-of-bounds]: buffer over-read
postgresql-18beta1/src/common/unicode_case.c:438:1: enter_function: entry to ‘find_case_map’
postgresql-18beta1/src/common/unicode_case.c:444:20: call_function: calling ‘case_index’ from ‘find_case_map’
Error: GCC_ANALYZER_WARNING (CWE-787): [#def2069]
postgresql-18beta1/src/include/common/unicode_case_table.h:13602:48: warning[-Wanalyzer-out-of-bounds]: buffer over-read
postgresql-18beta1/src/common/unicode_case.c:438:1: enter_function: entry to ‘find_case_map’
postgresql-18beta1/src/common/unicode_case.c:444:20: call_function: calling ‘case_index’ from ‘find_case_map’
Error: GCC_ANALYZER_WARNING (CWE-787): [#def2070]
postgresql-18beta1/src/include/common/unicode_case_table.h:13612:48: warning[-Wanalyzer-out-of-bounds]: buffer over-read
postgresql-18beta1/src/common/unicode_case.c:438:1: enter_function: entry to ‘find_case_map’
postgresql-18beta1/src/common/unicode_case.c:444:20: call_function: calling ‘case_index’ from ‘find_case_map’
Error: GCC_ANALYZER_WARNING (CWE-787): [#def2071]
postgresql-18beta1/src/include/common/unicode_case_table.h:13616:48: warning[-Wanalyzer-out-of-bounds]: buffer over-read
postgresql-18beta1/src/include/common/unicode_case_table.h:13608:28: branch_true: following ‘true’ branch (when ‘cp <= 93823’)...
postgresql-18beta1/src/include/common/unicode_case_table.h:13610:36: branch_true: ...to here
postgresql-18beta1/src/include/common/unicode_case_table.h:13610:36: branch_false: following ‘false’ branch (when ‘cp > 71903’)...
postgresql-18beta1/src/include/common/unicode_case_table.h:13614:41: branch_false: ...to here
postgresql-18beta1/src/include/common/unicode_case_table.h:13614:41: branch_true: following ‘true’ branch (when ‘cp > 93759’)...
postgresql-18beta1/src/include/common/unicode_case_table.h:13616:57: branch_true: ...to here
postgresql-18beta1/src/include/common/unicode_case_table.h:13616:48: danger: read of 2 bytes at offset ‘cp * 2 + 8589756364’ exceeds ‘case_map’
Error: GCC_ANALYZER_WARNING (CWE-787): [#def2072]
postgresql-18beta1/src/include/common/unicode_case_table.h:13623:48: warning[-Wanalyzer-out-of-bounds]: buffer over-read
postgresql-18beta1/src/include/common/unicode_case_table.h:13608:28: branch_false: following ‘false’ branch (when ‘cp > 93823’)...
postgresql-18beta1/src/include/common/unicode_case_table.h:13619:33: branch_false: ...to here
postgresql-18beta1/src/include/common/unicode_case_table.h:13619:33: branch_true: following ‘true’ branch (when ‘cp > 125183’)...
postgresql-18beta1/src/include/common/unicode_case_table.h:13621:36: branch_true: ...to here
postgresql-18beta1/src/include/common/unicode_case_table.h:13621:36: branch_true: following ‘true’ branch (when ‘cp <= 125251’)...
postgresql-18beta1/src/include/common/unicode_case_table.h:13623:57: branch_true: ...to here
postgresql-18beta1/src/include/common/unicode_case_table.h:13623:48: danger: read of 2 bytes at offset ‘cp * 2 + 8589693644’ exceeds ‘case_map’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2073]
postgresql-18beta1/src/include/lib/radixtree.h:1120:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘slot’
postgresql-18beta1/src/backend/access/common/tidstore.c:421:1: enter_function: entry to ‘TidStoreIsMember’
postgresql-18beta1/src/backend/access/common/tidstore.c:429:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/common/tidstore.c:432:24: branch_false: ...to here
postgresql-18beta1/src/backend/access/common/tidstore.c:432:24: call_function: calling ‘local_ts_find’ from ‘TidStoreIsMember’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2074]
postgresql-18beta1/src/include/libpq/pqformat.h:146:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18beta1/src/backend/libpq/auth.c:1920:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18beta1/src/backend/libpq/auth.c:1940:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1947:22: acquire_memory: allocated here
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18beta1/src/backend/libpq/auth.c:1947:12: branch_false: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1955:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18beta1/src/backend/libpq/auth.c:1957:28: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1960:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: branch_true: ...to here
postgresql-18beta1/src/backend/libpq/auth.c:1967:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2075]
postgresql-18beta1/src/include/nodes/pg_list.h:281:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘elemops’
postgresql-18beta1/src/backend/partitioning/partbounds.c:3868:1: enter_function: entry to ‘make_partition_op_expr’
postgresql-18beta1/src/backend/partitioning/partbounds.c:3876:19: call_function: calling ‘get_partition_operator’ from ‘make_partition_op_expr’
postgresql-18beta1/src/backend/partitioning/partbounds.c:3876:19: return_function: returning to ‘make_partition_op_expr’ from ‘get_partition_operator’
postgresql-18beta1/src/backend/partitioning/partbounds.c:3951:50: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/partitioning/partbounds.c:3951:100: call_function: inlined call to ‘list_nth_cell’ from ‘make_partition_op_expr’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2076]
postgresql-18beta1/src/include/nodes/pg_list.h:281:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘expanded_groups’
postgresql-18beta1/src/backend/parser/parse_agg.c:1894:1: enter_function: entry to ‘expand_grouping_sets’
postgresql-18beta1/src/backend/parser/parse_agg.c:1901:12: branch_false: following ‘false’ branch (when ‘groupingSets’ is non-NULL)...
postgresql-18beta1/src/backend/parser/parse_agg.c:1901:12: branch_false: ...to here
postgresql-18beta1/src/backend/parser/parse_agg.c:1904:9: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/parser/parse_agg.c:1927:9: call_function: inlined call to ‘list_nth_cell’ from ‘expand_grouping_sets’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2077]
postgresql-18beta1/src/include/nodes/pg_list.h:281:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_ops’
postgresql-18beta1/src/backend/optimizer/path/indxpath.c:3644:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/optimizer/path/indxpath.c:3649:26: branch_true: ...to here
postgresql-18beta1/src/backend/optimizer/path/indxpath.c:3649:25: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/optimizer/path/indxpath.c:3661:28: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/path/indxpath.c:3668:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/optimizer/path/indxpath.c:3668:25: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/optimizer/path/indxpath.c:3686:20: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/path/indxpath.c:3686:20: branch_false: following ‘false’ branch (when ‘matching_cols <= 1’)...
postgresql-18beta1/src/backend/optimizer/path/indxpath.c:3706:25: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/path/indxpath.c:3706:25: release_memory: ‘new_ops’ is NULL
postgresql-18beta1/src/backend/optimizer/path/indxpath.c:3708:44: call_function: inlined call to ‘list_nth_cell’ from ‘expand_indexqual_rowcompare’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2078]
postgresql-18beta1/src/include/nodes/pg_list.h:281:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘resultRelations’
postgresql-18beta1/src/backend/executor/nodeModifyTable.c:4489:1: enter_function: entry to ‘ExecInitModifyTable’
postgresql-18beta1/src/backend/executor/nodeModifyTable.c:4582:17: call_function: inlined call to ‘list_length’ from ‘ExecInitModifyTable’
postgresql-18beta1/src/backend/executor/nodeModifyTable.c:4588:19: call_function: inlined call to ‘newNode’ from ‘ExecInitModifyTable’
postgresql-18beta1/src/backend/executor/nodeModifyTable.c:4606:9: release_memory: ‘resultRelations’ is NULL
postgresql-18beta1/src/backend/executor/nodeModifyTable.c:4624:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/executor/nodeModifyTable.c:4635:17: branch_false: ...to here
postgresql-18beta1/src/backend/executor/nodeModifyTable.c:4637:60: call_function: inlined call to ‘list_nth_cell’ from ‘ExecInitModifyTable’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2079]
postgresql-18beta1/src/include/nodes/pg_list.h:281:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sortclause’
postgresql-18beta1/src/backend/optimizer/plan/planner.c:3080:1: enter_function: entry to ‘reorder_grouping_sets’
postgresql-18beta1/src/backend/optimizer/plan/planner.c:3086:9: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/optimizer/plan/planner.c:3092:50: call_function: inlined call to ‘list_length’ from ‘reorder_grouping_sets’
postgresql-18beta1/src/backend/optimizer/plan/planner.c:3092:24: branch_false: ...to here
postgresql-18beta1/src/backend/optimizer/plan/planner.c:3092:24: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/optimizer/plan/planner.c:3086:9: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/optimizer/plan/planner.c:3092:24: call_function: inlined call to ‘list_length’ from ‘reorder_grouping_sets’
postgresql-18beta1/src/backend/optimizer/plan/planner.c:3092:50: call_function: inlined call to ‘list_length’ from ‘reorder_grouping_sets’
postgresql-18beta1/src/backend/optimizer/plan/planner.c:3092:24: branch_true: following ‘true’ branch...
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2080]
postgresql-18beta1/src/include/storage/block.h:105:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/access/nbtree/nbtdedup.c:648:1: enter_function: entry to ‘_bt_bottomupdel_finish_pending’
postgresql-18beta1/src/backend/access/nbtree/nbtdedup.c:657:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/nbtree/nbtdedup.c:659:39: branch_true: ...to here
postgresql-18beta1/src/backend/access/nbtree/nbtdedup.c:665:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/nbtree/nbtdedup.c:690:57: call_function: inlined call to ‘BTreeTupleGetNPosting’ from ‘_bt_bottomupdel_finish_pending’
postgresql-18beta1/src/backend/access/nbtree/nbtdedup.c:696:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/nbtree/nbtdedup.c:709:42: branch_true: ...to here
postgresql-18beta1/src/backend/access/nbtree/nbtdedup.c:709:42: call_function: calling ‘BTreeTupleGetHeapTID’ from ‘_bt_bottomupdel_finish_pending’
postgresql-18beta1/src/backend/access/nbtree/nbtdedup.c:709:42: return_function: returning to ‘_bt_bottomupdel_finish_pending’ from ‘BTreeTupleGetHeapTID’
postgresql-18beta1/src/backend/access/nbtree/nbtdedup.c:712:48: call_function: inlined call to ‘ItemPointerGetBlockNumber’ from ‘_bt_bottomupdel_finish_pending’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2081]
postgresql-18beta1/src/include/storage/itemptr.h:116:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:4225:1: enter_function: entry to ‘_bt_check_third_page’
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:4234:12: branch_false: following ‘false’ branch (when ‘itemsz > 2704’)...
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:4242:13: branch_false: ...to here
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:4242:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:4249:18: branch_false: ...to here
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:4250:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:4254:9: branch_false: ...to here
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:4254:9: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:4254:9: branch_true: ...to here
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:4254:9: call_function: calling ‘BTreeTupleGetHeapTID’ from ‘_bt_check_third_page’
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:4254:9: return_function: returning to ‘_bt_check_third_page’ from ‘BTreeTupleGetHeapTID’
postgresql-18beta1/src/backend/access/nbtree/nbtutils.c:4254:9: call_function: inlined call to ‘ItemPointerGetOffsetNumber’ from ‘_bt_check_third_page’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2082]
postgresql-18beta1/src/include/storage/itemptr.h:116:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nexttid’
postgresql-18beta1/contrib/amcheck/verify_nbtree.c:923:1: enter_function: entry to ‘bt_entry_unique_check’
postgresql-18beta1/contrib/amcheck/verify_nbtree.c:936:12: branch_false: following ‘false’ branch...
postgresql-18beta1/contrib/amcheck/verify_nbtree.c:975:23: branch_false: ...to here
postgresql-18beta1/contrib/amcheck/verify_nbtree.c:975:23: call_function: calling ‘BTreeTupleGetHeapTID’ from ‘bt_entry_unique_check’
postgresql-18beta1/contrib/amcheck/verify_nbtree.c:975:23: return_function: returning to ‘bt_entry_unique_check’ from ‘BTreeTupleGetHeapTID’
postgresql-18beta1/contrib/amcheck/verify_nbtree.c:976:20: branch_true: following ‘true’ branch...
postgresql-18beta1/contrib/amcheck/verify_nbtree.c:979:48: branch_true: ...to here
postgresql-18beta1/contrib/amcheck/verify_nbtree.c:981:33: call_function: calling ‘bt_report_duplicate’ from ‘bt_entry_unique_check’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2083]
postgresql-18beta1/src/include/utils/expandedrecord.h:220:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘newerh’
postgresql-18beta1/src/pl/plpgsql/src/pl_exec.c:7587:1: enter_function: entry to ‘exec_move_row_from_datum’
postgresql-18beta1/src/pl/plpgsql/src/pl_exec.c:7592:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/pl/plpgsql/src/pl_exec.c:7600:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/pl/plpgsql/src/pl_exec.c:7703:21: branch_false: ...to here
postgresql-18beta1/src/pl/plpgsql/src/pl_exec.c:7703:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/pl/plpgsql/src/pl_exec.c:7714:17: branch_false: ...to here
postgresql-18beta1/src/pl/plpgsql/src/pl_exec.c:7715:17: call_function: calling ‘exec_move_row_from_fields’ from ‘exec_move_row_from_datum’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2084]
postgresql-18beta1/src/include/utils/expandedrecord.h:220:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘srcerh’
postgresql-18beta1/src/pl/plpgsql/src/pl_exec.c:7587:1: enter_function: entry to ‘exec_move_row_from_datum’
postgresql-18beta1/src/pl/plpgsql/src/pl_exec.c:7592:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/pl/plpgsql/src/pl_exec.c:7600:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/pl/plpgsql/src/pl_exec.c:7703:21: branch_false: ...to here
postgresql-18beta1/src/pl/plpgsql/src/pl_exec.c:7703:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/pl/plpgsql/src/pl_exec.c:7714:17: branch_false: ...to here
postgresql-18beta1/src/pl/plpgsql/src/pl_exec.c:7715:17: call_function: calling ‘exec_move_row_from_fields’ from ‘exec_move_row_from_datum’
Error: CPPCHECK_WARNING (CWE-758): [#def2085]
postgresql-18beta1/src/include/utils/memutils.h:242: warning[objectIndex]: The address of variable 'PendingBgWriterStats' might be accessed at non-zero index.
Error: CPPCHECK_WARNING (CWE-758): [#def2086]
postgresql-18beta1/src/include/utils/memutils.h:242: warning[objectIndex]: The address of variable 'PendingCheckpointerStats' might be accessed at non-zero index.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2087]
postgresql-18beta1/src/include/utils/pgstat_internal.h:893:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1768:1: enter_function: entry to ‘pgstat_read_statsfile’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1790:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1804:14: call_function: inlined call to ‘read_chunk’ from ‘pgstat_read_statsfile’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1804:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1810:13: branch_false: ...to here
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1810:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1810:12: branch_false: ...to here
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1892:44: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1924:54: call_function: inlined call to ‘read_chunk’ from ‘pgstat_read_statsfile’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1924:52: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1929:54: call_function: inlined call to ‘read_chunk’ from ‘pgstat_read_statsfile’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1929:52: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1935:54: branch_false: ...to here
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1935:54: call_function: inlined call to ‘pgstat_is_kind_valid’ from ‘pgstat_read_statsfile’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1942:61: call_function: inlined call to ‘pgstat_get_kind_info’ from ‘pgstat_read_statsfile’
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1950:52: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1957:54: branch_false: ...to here
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1957:52: branch_true: following ‘true’ branch...
postgresql-18beta1/src/backend/utils/activity/pgstat.c:2040:1: branch_true: ...to here
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1981:44: branch_false: following ‘false’ branch...
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1990:50: branch_false: ...to here
postgresql-18beta1/src/backend/utils/activity/pgstat.c:1993:46: call_function: calling ‘pgstat_get_entry_len’ from ‘pgstat_read_statsfile’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2088]
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:143:9: warning[-Wanalyzer-malloc-leak]: leak of ‘response’
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:141:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:142:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:142:28: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:143:9: throw: if ‘termPQExpBuffer’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:143:9: danger: ‘response’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2089]
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:307:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*((struct json_ctx)*(void *)state).target_field’
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:265:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:271:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:271:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:273:20: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:273:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:290:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:290:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:299:20: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:299:20: branch_false: following ‘false’ branch (when ‘type == 1’)...
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:307:38: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:307:38: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:307:17: danger: ‘*((struct json_ctx)*(void *)state).target_field’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2090]
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:1096:20: warning[-Wanalyzer-malloc-leak]: leak of ‘*conn.oauth_issuer_id’
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:1117:1: enter_function: entry to ‘oauth_exchange’
postgresql-18beta1/src/interfaces/libpq/fe-auth-oauth.c:1134:30: call_function: calling ‘setup_oauth_parameters’ from ‘oauth_exchange’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2091]
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:126:22: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:107:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:108:12: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:110:9: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:117:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:123:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:123:12: branch_true: following ‘true’ branch (when ‘password’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:126:22: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:126:22: throw: if ‘pg_saslprep’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:126:22: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2092]
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:126:22: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(sasl_mechanism)’
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:108:12: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:110:9: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:116:33: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:117:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:123:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:123:12: branch_true: following ‘true’ branch (when ‘password’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:126:22: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:126:22: throw: if ‘pg_saslprep’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:126:22: danger: ‘strdup(sasl_mechanism)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2093]
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:442:9: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:363:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:369:23: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:372:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:377:23: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:379:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:384:9: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:421:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:424:28: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:427:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:434:51: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:435:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:438:25: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:438:18: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:439:12: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:442:9: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:442:9: throw: if ‘termPQExpBuffer’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:442:9: danger: ‘result’ leaks here; was allocated at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2094]
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:509:37: warning[-Wanalyzer-malloc-leak]: leak of ‘cbind_input’
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:474:12: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:478:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:488:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:495:17: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:500:31: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:501:20: branch_false: following ‘false’ branch (when ‘cbind_input’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:506:17: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:509:37: throw: if ‘pg_b64_enc_len’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:509:37: danger: ‘cbind_input’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2095]
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:510:22: warning[-Wanalyzer-malloc-leak]: leak of ‘cbind_input’
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:474:12: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:478:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:488:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:495:17: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:500:31: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:501:20: branch_false: following ‘false’ branch (when ‘cbind_input’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:506:17: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:510:22: throw: if ‘enlargePQExpBuffer’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:510:22: danger: ‘cbind_input’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2096]
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:516:37: warning[-Wanalyzer-malloc-leak]: leak of ‘cbind_input’
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:474:12: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:478:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:488:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:495:17: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:500:31: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:501:20: branch_false: following ‘false’ branch (when ‘cbind_input’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:506:17: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:510:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:517:83: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:516:37: throw: if ‘pg_b64_encode’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:516:37: danger: ‘cbind_input’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2097]
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:743:32: warning[-Wanalyzer-malloc-leak]: leak of ‘decoded_server_signature’
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:693:1: enter_function: entry to ‘read_server_final_message’
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:701:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:708:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:708:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:725:92: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:724:36: call_function: calling ‘read_attr_value’ from ‘read_server_final_message’
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:724:36: return_function: returning to ‘read_server_final_message’ from ‘read_attr_value’
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:726:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:732:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:736:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:737:12: branch_false: following ‘false’ branch (when ‘decoded_server_signature’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:744:82: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:743:32: throw: if ‘pg_b64_decode’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-auth-scram.c:743:32: danger: ‘decoded_server_signature’ leaks here; was allocated at [(15)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2098]
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:84:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ginbuf.value’
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:76:17: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:77:32: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:78:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:84:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:84:21: throw: if ‘pqGetnchar’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:84:21: danger: ‘ginbuf.value’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2099]
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:721:13: warning[-Wanalyzer-malloc-leak]: leak of ‘challenge’
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:713:21: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:714:12: branch_false: following ‘false’ branch (when ‘challenge’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:721:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:721:13: throw: if ‘pqGetnchar’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:721:13: danger: ‘challenge’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2100]
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:832:38: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_pwd’
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:806:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:811:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:824:45: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:825:36: branch_false: following ‘false’ branch (when ‘crypt_pwd’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:831:33: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:832:38: throw: if ‘pg_md5_encrypt’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:832:38: danger: ‘crypt_pwd’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2101]
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1372:14: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_pwd’
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1368:21: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1369:12: branch_false: following ‘false’ branch (when ‘crypt_pwd’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1372:14: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1372:14: throw: if ‘pg_md5_encrypt’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1372:14: danger: ‘crypt_pwd’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2102]
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1485:30: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_pwd’
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1413:12: branch_false: following ‘false’ branch (when ‘conn’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1416:9: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1419:12: branch_false: following ‘false’ branch (when ‘algorithm’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1461:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1468:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1478:18: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1478:17: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1480:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1480:29: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1481:20: branch_true: following ‘true’ branch (when ‘crypt_pwd’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1483:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1485:30: throw: if ‘pg_md5_encrypt’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-auth.c:1485:30: danger: ‘crypt_pwd’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def2103]
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:119:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc((long unsigned int)*conn.be_cancel_key_len)’ where non-null expected
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:73:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:77:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:77:12: branch_false: following ‘false’ branch (when ‘conn’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:83:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:83:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:90:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:90:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:99:9: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:101:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:107:14: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:107:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:113:30: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:114:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:116:52: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:116:45: acquire_memory: this call could return NULL
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:117:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:119:72: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:119:17: danger: argument 1 (‘malloc((long unsigned int)*conn.be_cancel_key_len)’) from [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2104]
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:398:22: warning[-Wanalyzer-malloc-leak]: leak of ‘cancel’
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:373:12: branch_false: following ‘false’ branch (when ‘conn’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:376:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:376:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:380:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:380:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:380:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:384:18: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:385:12: branch_false: following ‘false’ branch (when ‘cancel’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:388:32: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:396:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:398:22: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:398:22: throw: if ‘pqParseIntParam’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:398:22: danger: ‘cancel’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2105]
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:405:22: warning[-Wanalyzer-malloc-leak]: leak of ‘cancel’
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:373:12: branch_false: following ‘false’ branch (when ‘conn’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:376:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:376:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:380:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:380:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:380:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:384:18: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:385:12: branch_false: following ‘false’ branch (when ‘cancel’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:388:32: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:396:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:403:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:403:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:405:22: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:405:22: throw: if ‘pqParseIntParam’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:405:22: danger: ‘cancel’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2106]
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:412:22: warning[-Wanalyzer-malloc-leak]: leak of ‘cancel’
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:373:12: branch_false: following ‘false’ branch (when ‘conn’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:376:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:376:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:380:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:380:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:380:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:384:18: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:385:12: branch_false: following ‘false’ branch (when ‘cancel’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:388:32: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:396:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:403:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:403:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:410:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:410:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:412:22: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:412:22: throw: if ‘pqParseIntParam’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:412:22: danger: ‘cancel’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2107]
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:419:22: warning[-Wanalyzer-malloc-leak]: leak of ‘cancel’
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:373:12: branch_false: following ‘false’ branch (when ‘conn’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:376:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:376:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:380:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:380:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:380:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:384:18: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:385:12: branch_false: following ‘false’ branch (when ‘cancel’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:388:32: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:396:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:403:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:403:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:410:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:410:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:417:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:417:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:419:22: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:419:22: throw: if ‘pqParseIntParam’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:419:22: danger: ‘cancel’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2108]
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:426:22: warning[-Wanalyzer-malloc-leak]: leak of ‘cancel’
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:373:12: branch_false: following ‘false’ branch (when ‘conn’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:376:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:376:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:380:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:380:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:380:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:384:18: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:385:12: branch_false: following ‘false’ branch (when ‘cancel’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:388:32: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:396:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:403:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:403:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:410:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:410:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:417:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:417:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:424:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:424:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:426:22: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:426:22: throw: if ‘pqParseIntParam’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:426:22: danger: ‘cancel’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2109]
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:628:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘tmpsock’
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:538:12: branch_false: following ‘false’ branch (when ‘cancel’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:550:31: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:550:24: acquire_resource: stream socket created here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:550:12: branch_false: following ‘false’ branch (when ‘tmpsock != -1’)...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:566:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:628:13: throw: if ‘connect’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-cancel.c:628:13: danger: ‘tmpsock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2110]
postgresql-18beta1/src/interfaces/libpq/fe-exec.c:192:43: warning[-Wanalyzer-malloc-leak]: leak of ‘PQmakeEmptyPGresult(conn, 0)’
postgresql-18beta1/src/interfaces/libpq/fe-exec.c:2344:1: enter_function: entry to ‘PQexecStart’
postgresql-18beta1/src/interfaces/libpq/fe-exec.c:2369:26: call_function: calling ‘PQgetResult’ from ‘PQexecStart’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2111]
postgresql-18beta1/src/interfaces/libpq/fe-exec.c:713:31: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
postgresql-18beta1/src/interfaces/libpq/fe-exec.c:2344:1: enter_function: entry to ‘PQexecStart’
postgresql-18beta1/src/interfaces/libpq/fe-exec.c:2369:26: call_function: calling ‘PQgetResult’ from ‘PQexecStart’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2112]
postgresql-18beta1/src/interfaces/libpq/fe-exec.c:737:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18beta1/src/interfaces/libpq/fe-exec.c:2344:1: enter_function: entry to ‘PQexecStart’
postgresql-18beta1/src/interfaces/libpq/fe-exec.c:2369:26: call_function: calling ‘PQgetResult’ from ‘PQexecStart’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2113]
postgresql-18beta1/src/interfaces/libpq/fe-gssapi-common.c:112:9: warning[-Wanalyzer-malloc-leak]: leak of ‘temp_gbuf.value’
postgresql-18beta1/src/interfaces/libpq/fe-gssapi-common.c:90:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-gssapi-common.c:94:16: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-gssapi-common.c:95:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-gssapi-common.c:106:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-gssapi-common.c:107:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-gssapi-common.c:112:9: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-gssapi-common.c:112:9: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-gssapi-common.c:112:9: danger: ‘temp_gbuf.value’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2114]
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:897:15: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:897:15: throw: if ‘PQexec’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:897:15: danger: ‘lobjfuncs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2115]
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:915:25: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:898:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:904:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:915:25: throw: if ‘PQntuples’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:915:25: danger: ‘lobjfuncs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2116]
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:917:25: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:898:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:904:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:915:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:917:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:917:25: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:917:25: danger: ‘lobjfuncs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2117]
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:918:35: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:898:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:904:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:915:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:917:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:918:35: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:918:35: danger: ‘lobjfuncs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2118]
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:947:9: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:898:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:904:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:915:21: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:947:9: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:947:9: throw: if ‘PQclear’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:947:9: danger: ‘lobjfuncs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2119]
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:956:17: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:898:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:904:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:915:21: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:947:9: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:954:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:956:17: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:956:17: throw: if ‘libpq_append_conn_error’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:956:17: danger: ‘lobjfuncs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2120]
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:963:17: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:898:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:904:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:915:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:917:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:919:20: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:920:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:954:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:961:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:961:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:963:17: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:963:17: throw: if ‘libpq_append_conn_error’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-lobj.c:963:17: danger: ‘lobjfuncs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2121]
postgresql-18beta1/src/interfaces/libpq/fe-misc.c:1365:24: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/interfaces/libpq/fe-misc.c:1357:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-misc.c:1364:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/interfaces/libpq/fe-misc.c:1365:24: throw: if ‘appendPQExpBufferVA’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-misc.c:1365:24: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2122]
postgresql-18beta1/src/interfaces/libpq/fe-misc.c:1394:24: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/interfaces/libpq/fe-misc.c:1386:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-misc.c:1386:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-misc.c:1393:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/interfaces/libpq/fe-misc.c:1394:24: throw: if ‘appendPQExpBufferVA’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-misc.c:1394:24: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2123]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:41: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:25: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:25: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2124]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:41: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:25: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:25: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2125]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:41: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:25: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:25: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2126]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:41: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:41: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2127]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:41: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:41: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2128]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:41: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:113:41: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2129]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:124:52: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:124:52: throw: if ‘PQfname’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:124:52: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2130]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:124:52: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:124:52: throw: if ‘PQfname’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:124:52: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2131]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:124:52: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:124:52: throw: if ‘PQfname’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:124:52: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2132]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:180:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:180:33: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:180:33: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2133]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:180:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:180:33: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:180:33: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2134]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:180:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:180:33: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:180:33: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2135]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: throw: if ‘popen’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2136]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: throw: if ‘popen’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2137]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: throw: if ‘popen’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2138]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: throw: if ‘pq_block_sigpipe’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2139]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: throw: if ‘pq_block_sigpipe’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2140]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: throw: if ‘pq_block_sigpipe’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2141]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(pagerenv, "w")’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: throw: if ‘pq_block_sigpipe’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: danger: ‘popen(pagerenv, "w")’ leaks here; was allocated at [(27)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2142]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:33: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2143]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:33: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2144]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:33: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2145]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:33: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2146]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2147]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2148]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2149]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2150]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:211:103: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:41: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2151]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:211:103: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:41: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2152]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:211:103: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:41: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2153]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:211:103: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:41: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2154]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:211:103: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:55: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2155]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:211:103: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:55: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2156]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:211:103: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:55: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2157]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:211:103: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:210:55: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2158]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:109: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:41: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2159]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:109: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:41: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2160]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:109: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:41: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2161]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:109: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:41: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:41: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2162]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:109: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:55: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2163]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:109: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:55: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2164]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:109: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:55: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2165]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:205:25: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:207:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:209:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:109: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:213:55: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2166]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:272:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:44: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:274:65: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:272:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:272:49: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2167]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:272:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:44: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:274:65: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:272:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:272:49: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2168]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:272:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:44: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:274:65: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:272:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:272:49: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2169]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:272:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:197:44: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:44: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:274:65: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:272:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:272:49: danger: ‘fields’ leaks here; was allocated at [(15)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2170]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:272:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:17: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:44: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:274:65: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:272:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:272:49: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2171]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:277:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:44: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:281:65: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:277:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:277:49: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2172]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:277:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:44: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:281:65: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:277:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:277:49: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2173]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:277:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:44: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:281:65: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:277:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:277:49: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2174]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:277:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:197:44: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:44: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:281:65: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:277:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:277:49: danger: ‘fields’ leaks here; was allocated at [(15)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2175]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:277:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:17: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:271:44: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:281:65: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:277:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:277:49: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2176]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:69: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:41: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:41: danger: ‘fieldMax’ leaks here; was allocated at [(3)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2177]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:69: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:41: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:41: danger: ‘fieldNames’ leaks here; was allocated at [(3)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2178]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:69: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:41: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:41: danger: ‘fieldNotNum’ leaks here; was allocated at [(3)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2179]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:197:44: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:69: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:41: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:41: danger: ‘fields’ leaks here; was allocated at [(15)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2180]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:17: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:269:36: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:69: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:41: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:284:41: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2181]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:318:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:140:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:139:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:147:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:168:33: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:169:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:167:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:170:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:181:40: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:182:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:186:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:201:49: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:303:20: branch_false: following ‘false’ branch (when ‘fields’ is NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:312:17: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:313:20: branch_true: following ‘true’ branch (when ‘usePipe != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:318:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:318:25: throw: if ‘pclose’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:318:25: danger: ‘fout’ leaks here; was allocated at [(27)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2182]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:342:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2183]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:342:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2184]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:342:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2185]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:342:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:197:44: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2186]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:343:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2187]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:343:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2188]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:343:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2189]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:343:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:197:44: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2190]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:365:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2191]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:365:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2192]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:365:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2193]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:365:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:197:44: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2194]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:396:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2195]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:396:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2196]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:396:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2197]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:396:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:197:44: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:246:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:255:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:257:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2198]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:467:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:286:29: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:286:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:287:42: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:287:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2199]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:467:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:286:29: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:286:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:287:42: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:287:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2200]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:467:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:286:29: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:286:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:287:42: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:287:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2201]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:467:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:197:44: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:286:29: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:286:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:287:42: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:287:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2202]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:467:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:110:36: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:286:29: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:286:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:287:42: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:287:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2203]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:467:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:108:46: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:286:29: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:286:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:287:42: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:287:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2204]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:467:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:109:49: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:286:29: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:286:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:287:42: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:287:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2205]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:467:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:123:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:127:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:120:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:135:55: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:195:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:197:44: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:199:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:233:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:244:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:265:39: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:267:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:286:29: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:286:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:287:42: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:287:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2206]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:493:25: warning[-Wanalyzer-malloc-leak]: leak of ‘border’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:452:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:452:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:464:26: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:465:20: branch_false: following ‘false’ branch (when ‘border’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:471:20: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:471:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:473:37: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:475:32: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:476:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:492:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:493:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:493:25: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:493:25: danger: ‘border’ leaks here; was allocated at [(3)](sarif:/runs/0/results/95/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2207]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:613:45: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:611:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:613:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:613:45: throw: if ‘PQfname’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:613:45: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/96/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2208]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:616:64: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:611:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:613:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:614:37: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:616:64: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:616:64: throw: if ‘PQgetlength’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:616:64: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/97/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2209]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:629:31: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:624:12: branch_true: following ‘true’ branch (when ‘printHeader != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:624:12: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:627:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:629:31: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:629:31: throw: if ‘PQfname’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:629:31: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/98/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2210]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:631:45: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:624:12: branch_true: following ‘true’ branch (when ‘printHeader != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:624:12: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:627:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:629:31: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:630:28: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:631:70: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:631:45: throw: if ‘PQfname’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:631:45: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/99/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2211]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:634:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:624:12: branch_true: following ‘true’ branch (when ‘printHeader != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:624:12: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:627:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:634:17: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:634:17: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:634:17: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/100/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2212]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:643:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:624:12: branch_true: following ‘true’ branch (when ‘printHeader != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:624:12: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:627:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:634:17: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:637:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:643:17: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:643:17: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:643:17: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/101/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2213]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:651:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:611:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:613:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:618:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:619:41: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:611:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:624:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:647:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:647:21: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:649:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:651:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:651:25: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:651:25: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/102/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2214]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:653:45: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:611:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:613:45: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:618:36: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:619:41: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:611:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:624:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:647:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:647:21: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:649:29: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:651:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:652:28: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:653:76: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:653:45: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:653:45: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/104/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2215]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:656:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:647:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:647:21: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:649:29: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:656:17: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:656:17: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:656:17: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/105/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2216]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:660:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:659:12: branch_true: following ‘true’ branch (when ‘quiet == 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:661:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:660:17: throw: if ‘PQntuples’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:660:17: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/106/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2217]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:661:34: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:659:12: branch_true: following ‘true’ branch (when ‘quiet == 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:661:34: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:661:34: throw: if ‘PQntuples’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:661:34: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/108/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2218]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:663:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fLength’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:602:12: branch_true: following ‘true’ branch (when ‘fillAlign != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:604:35: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: following ‘false’ branch (when ‘fLength’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:605:20: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:663:9: throw: if ‘fflush’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:663:9: danger: ‘fLength’ leaks here; was allocated at [(3)](sarif:/runs/0/results/109/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2219]
postgresql-18beta1/src/interfaces/libpq/fe-print.c:710:25: warning[-Wanalyzer-malloc-leak]: leak of ‘tborder’
postgresql-18beta1/src/interfaces/libpq/fe-print.c:693:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:696:20: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:696:20: branch_true: following ‘true’ branch (when ‘TerseOutput == 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:700:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:701:44: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:702:28: branch_false: following ‘false’ branch (when ‘tborder’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:702:28: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-print.c:710:25: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-print.c:710:25: danger: ‘tborder’ leaks here; was allocated at [(5)](sarif:/runs/0/results/110/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2220]
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1237:24: warning[-Wanalyzer-malloc-leak]: leak of ‘qidx’
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1203:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1207:18: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1208:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1220:16: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1222:24: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1223:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1228:26: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1229:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1237:24: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1237:24: throw: if ‘pg_encoding_max_length’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1237:24: danger: ‘qidx’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2221]
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1237:24: warning[-Wanalyzer-malloc-leak]: leak of ‘scridx’
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1203:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1207:18: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1208:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1220:16: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1223:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1228:26: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1228:26: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1229:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1237:24: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1237:24: throw: if ‘pg_encoding_max_length’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1237:24: danger: ‘scridx’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2222]
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1237:24: warning[-Wanalyzer-malloc-leak]: leak of ‘wquery’
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1203:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1207:18: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1207:18: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1208:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1220:16: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1223:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1228:26: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1229:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1237:24: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1237:24: throw: if ‘pg_encoding_max_length’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1237:24: danger: ‘wquery’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2223]
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1298:29: warning[-Wanalyzer-malloc-leak]: leak of ‘qidx’
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1203:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1207:18: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1208:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1220:16: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1222:24: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1223:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1228:26: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1229:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1237:24: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1254:23: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1258:21: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1266:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1267:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1294:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1298:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1298:29: throw: if ‘pg_encoding_dsplen’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1298:29: danger: ‘qidx’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2224]
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1298:29: warning[-Wanalyzer-malloc-leak]: leak of ‘scridx’
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1203:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1207:18: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1208:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1220:16: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1223:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1228:26: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1228:26: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1229:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1237:24: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1254:23: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1258:21: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1266:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1267:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1294:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1298:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1298:29: throw: if ‘pg_encoding_dsplen’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1298:29: danger: ‘scridx’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2225]
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1298:29: warning[-Wanalyzer-malloc-leak]: leak of ‘wquery’
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1203:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1207:18: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1207:18: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1208:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1220:16: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1223:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1228:26: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1229:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1237:24: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1254:23: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1258:21: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1266:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1267:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1294:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1298:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1298:29: throw: if ‘pg_encoding_dsplen’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1298:29: danger: ‘wquery’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2226]
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1303:36: warning[-Wanalyzer-malloc-leak]: leak of ‘qidx’
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1203:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1207:18: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1208:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1220:16: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1222:24: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1223:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1228:26: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1229:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1237:24: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1254:23: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1258:21: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1266:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1267:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1294:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1298:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1303:36: throw: if ‘PQmblenBounded’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1303:36: danger: ‘qidx’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2227]
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1303:36: warning[-Wanalyzer-malloc-leak]: leak of ‘scridx’
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1203:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1207:18: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1208:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1220:16: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1223:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1228:26: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1228:26: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1229:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1237:24: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1254:23: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1258:21: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1266:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1267:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1294:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1298:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1303:36: throw: if ‘PQmblenBounded’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1303:36: danger: ‘scridx’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2228]
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1303:36: warning[-Wanalyzer-malloc-leak]: leak of ‘wquery’
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1203:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1207:18: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1207:18: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1208:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1220:16: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1223:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1228:26: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1229:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1237:24: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1254:23: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1258:21: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1266:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1267:25: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1294:20: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1298:29: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1303:36: throw: if ‘PQmblenBounded’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1303:36: danger: ‘wquery’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2229]
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1592:13: warning[-Wanalyzer-malloc-leak]: leak of ‘svname’
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1584:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1586:20: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1586:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1589:25: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1589:18: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1590:12: branch_false: following ‘false’ branch (when ‘svname’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1592:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1592:13: throw: if ‘pqGets’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:1592:13: danger: ‘svname’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2230]
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:2388:29: warning[-Wanalyzer-malloc-leak]: leak of ‘startpacket’
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:2313:1: enter_function: entry to ‘pqBuildStartupPacket3’
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:2318:22: call_function: calling ‘build_startup_packet’ from ‘pqBuildStartupPacket3’
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:2318:22: return_function: returning to ‘pqBuildStartupPacket3’ from ‘build_startup_packet’
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:2319:32: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:2320:12: branch_false: following ‘false’ branch (when ‘startpacket’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:2322:22: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-protocol3.c:2322:22: call_function: calling ‘build_startup_packet’ from ‘pqBuildStartupPacket3’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2231]
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:63:13: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:87:1: enter_function: entry to ‘pq_verify_peer_name_matches_certificate_name’
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:97:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:107:16: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:108:12: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:113:9: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:120:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:127:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:127:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:132:18: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:132:18: call_function: calling ‘wildcard_certificate_match’ from ‘pq_verify_peer_name_matches_certificate_name’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2232]
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:127:13: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:97:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:107:16: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:108:12: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:113:9: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:120:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:127:13: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:127:13: throw: if ‘pg_strcasecmp’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-secure-common.c:127:13: danger: ‘name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2233]
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1560:17: warning[-Wanalyzer-malloc-leak]: leak of ‘errbuf’
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1555:18: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1556:12: branch_false: following ‘false’ branch (when ‘errbuf’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1558:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1558:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1560:47: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1560:17: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1560:17: danger: ‘errbuf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2234]
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1560:47: warning[-Wanalyzer-malloc-leak]: leak of ‘errbuf’
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1555:18: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1556:12: branch_false: following ‘false’ branch (when ‘errbuf’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1558:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1558:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1560:47: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1560:47: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1560:47: danger: ‘errbuf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2235]
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1563:21: warning[-Wanalyzer-malloc-leak]: leak of ‘errbuf’
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1555:18: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1556:12: branch_false: following ‘false’ branch (when ‘errbuf’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1558:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1558:12: branch_false: following ‘false’ branch (when ‘ecode != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1563:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1563:21: throw: if ‘ERR_reason_error_string’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1563:21: danger: ‘errbuf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2236]
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1582:17: warning[-Wanalyzer-malloc-leak]: leak of ‘errbuf’
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1550:1: enter_function: entry to ‘SSLerrmessage’
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1555:18: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1556:12: branch_false: following ‘false’ branch (when ‘errbuf’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1558:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1558:12: branch_false: following ‘false’ branch (when ‘ecode != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1563:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1579:13: call_function: inlined call to ‘ERR_GET_LIB’ from ‘SSLerrmessage’
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1579:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1580:17: call_function: inlined call to ‘ERR_GET_REASON’ from ‘SSLerrmessage’
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1579:13: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1582:17: branch_true: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1582:17: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1582:17: danger: ‘errbuf’ leaks here; was allocated at [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2237]
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1597:17: warning[-Wanalyzer-malloc-leak]: leak of ‘errbuf’
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1550:1: enter_function: entry to ‘SSLerrmessage’
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1555:18: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1556:12: branch_false: following ‘false’ branch (when ‘errbuf’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1558:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1558:12: branch_false: following ‘false’ branch (when ‘ecode != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1563:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1579:13: call_function: inlined call to ‘ERR_GET_LIB’ from ‘SSLerrmessage’
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1595:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1597:17: call_function: inlined call to ‘ERR_GET_REASON’ from ‘SSLerrmessage’
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1597:17: throw: if ‘pg_strerror_r’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1597:17: danger: ‘errbuf’ leaks here; was allocated at [(2)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2238]
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1603:9: warning[-Wanalyzer-malloc-leak]: leak of ‘errbuf’
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1550:1: enter_function: entry to ‘SSLerrmessage’
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1555:18: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1556:12: branch_false: following ‘false’ branch (when ‘errbuf’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1558:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1558:12: branch_false: following ‘false’ branch (when ‘ecode != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1563:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1579:13: call_function: inlined call to ‘ERR_GET_LIB’ from ‘SSLerrmessage’
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1595:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1603:39: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1603:9: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1603:9: danger: ‘errbuf’ leaks here; was allocated at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2239]
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1603:39: warning[-Wanalyzer-malloc-leak]: leak of ‘errbuf’
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1550:1: enter_function: entry to ‘SSLerrmessage’
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1555:18: acquire_memory: allocated here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1556:12: branch_false: following ‘false’ branch (when ‘errbuf’ is non-NULL)...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1558:12: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1558:12: branch_false: following ‘false’ branch (when ‘ecode != 0’)...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1563:21: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1564:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1579:13: call_function: inlined call to ‘ERR_GET_LIB’ from ‘SSLerrmessage’
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1595:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1603:39: branch_false: ...to here
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1603:39: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18beta1/src/interfaces/libpq/fe-secure-openssl.c:1603:39: danger: ‘errbuf’ leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2240]
postgresql-18beta1/src/interfaces/libpq/pqexpbuffer.c:308:28: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/interfaces/libpq/pqexpbuffer.c:265:1: enter_function: entry to ‘appendPQExpBuffer’
postgresql-18beta1/src/interfaces/libpq/pqexpbuffer.c:271:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/interfaces/libpq/pqexpbuffer.c:278:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/interfaces/libpq/pqexpbuffer.c:279:24: call_function: calling ‘appendPQExpBufferVA’ from ‘appendPQExpBuffer’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def2241]
postgresql-18beta1/src/pl/plpgsql/src/pl_comp.c:1196:45: warning[-Wanalyzer-null-argument]: use of NULL ‘colname’ where non-null expected
postgresql-18beta1/src/pl/plpgsql/src/pl_comp.c:1073:1: enter_function: entry to ‘resolve_column_ref’
postgresql-18beta1/src/pl/plpgsql/src/pl_comp.c:1104:17: call_function: inlined call to ‘list_length’ from ‘resolve_column_ref’
postgresql-18beta1/src/pl/plpgsql/src/pl_comp.c:1170:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/pl/plpgsql/src/pl_comp.c:1173:17: branch_false: ...to here
postgresql-18beta1/src/pl/plpgsql/src/pl_comp.c:1180:28: branch_false: following ‘false’ branch...
postgresql-18beta1/src/pl/plpgsql/src/pl_comp.c:1182:28: branch_false: ...to here
postgresql-18beta1/src/pl/plpgsql/src/pl_comp.c:1182:28: branch_true: following ‘true’ branch...
postgresql-18beta1/src/pl/plpgsql/src/pl_comp.c:1185:68: branch_true: ...to here
postgresql-18beta1/src/pl/plpgsql/src/pl_comp.c:1190:40: branch_true: following ‘true’ branch (when ‘i >= 0’)...
postgresql-18beta1/src/pl/plpgsql/src/pl_comp.c:1192:100: branch_true: ...to here
postgresql-18beta1/src/pl/plpgsql/src/pl_comp.c:1196:45: danger: argument 2 (‘colname’) NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-768): [#def2242]
postgresql-18beta1/src/pl/plpgsql/src/pl_comp.c:1346: 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
Error: CPPCHECK_WARNING (CWE-768): [#def2243]
postgresql-18beta1/src/pl/plpgsql/src/pl_comp.c:1463: 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
Error: CPPCHECK_WARNING (CWE-768): [#def2244]
postgresql-18beta1/src/pl/plpgsql/src/pl_comp.c:1470: 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
Error: CPPCHECK_WARNING (CWE-768): [#def2245]
postgresql-18beta1/src/pl/plpgsql/src/pl_comp.c:1470: 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
Error: CPPCHECK_WARNING (CWE-768): [#def2246]
postgresql-18beta1/src/pl/plpgsql/src/pl_comp.c:1488: 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
Error: CPPCHECK_WARNING (CWE-768): [#def2247]
postgresql-18beta1/src/pl/plpgsql/src/pl_comp.c:1488: 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
Error: CPPCHECK_WARNING (CWE-768): [#def2248]
postgresql-18beta1/src/pl/plpgsql/src/pl_exec.c:8493: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(sbsref->refexpr)},(union ListCell){.ptr_value=(sbsref->refassgnexpr)}' depends on order of evaluation of side effects
Error: GCC_ANALYZER_WARNING (CWE-457): [#def2249]
postgresql-18beta1/src/pl/plpgsql/src/pl_gram.c:1885:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/src/pl/plpgsql/src/pl_gram.c:1840:6: branch_true: following ‘true’ branch...
postgresql-18beta1/src/pl/plpgsql/src/pl_gram.c:1846:34: branch_true: ...to here
postgresql-18beta1/src/pl/plpgsql/src/pl_gram.c:1872:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/src/pl/plpgsql/src/pl_gram.c:1874:7: branch_false: ...to here
postgresql-18beta1/src/pl/plpgsql/src/pl_gram.c:1883:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/pl/plpgsql/src/pl_gram.c:1883:12: branch_false: ...to here
postgresql-18beta1/src/pl/plpgsql/src/pl_gram.c:1885:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def2250]
postgresql-18beta1/src/pl/plpgsql/src/pl_gram.c:2016:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
postgresql-18beta1/src/pl/plpgsql/src/pl_gram.c:1840:6: branch_false: following ‘false’ branch...
postgresql-18beta1/src/pl/plpgsql/src/pl_gram.c:1909:6: branch_false: ...to here
postgresql-18beta1/src/pl/plpgsql/src/pl_gram.c:1909:6: branch_false: following ‘false’ branch (when ‘yystate != 3’)...
postgresql-18beta1/src/pl/plpgsql/src/pl_gram.c:1912:3: branch_false: ...to here
postgresql-18beta1/src/pl/plpgsql/src/pl_gram.c:1924:6: branch_true: following ‘true’ branch (when ‘yyn == -249’)...
postgresql-18beta1/src/pl/plpgsql/src/pl_gram.c:1925:5: branch_true: ...to here
postgresql-18beta1/src/pl/plpgsql/src/pl_gram.c:1996:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
postgresql-18beta1/src/pl/plpgsql/src/pl_gram.c:1998:3: branch_false: ...to here
postgresql-18beta1/src/pl/plpgsql/src/pl_gram.c:2016:3: danger: use of uninitialized value ‘*<unknown>’ here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2251]
postgresql-18beta1/src/pl/plpython/plpy_elog.c:478:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/pl/plpython/plpy_elog.c:477:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/pl/plpython/plpy_elog.c:478:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/src/pl/plpython/plpy_elog.c:478:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2252]
postgresql-18beta1/src/pl/plpython/plpy_elog.c:494:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/pl/plpython/plpy_elog.c:493:9: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/pl/plpython/plpy_elog.c:494:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18beta1/src/pl/plpython/plpy_elog.c:494:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def2253]
postgresql-18beta1/src/pl/plpython/plpy_exec.c:282: warning[uninitvar]: Uninitialized variable: plerrcontext.previous
Error: CPPCHECK_WARNING (CWE-457): [#def2254]
postgresql-18beta1/src/pl/plpython/plpy_exec.c:305: warning[uninitvar]: Uninitialized variable: rv
Error: CPPCHECK_WARNING (CWE-457): [#def2255]
postgresql-18beta1/src/pl/plpython/plpy_exec.c:1046: warning[uninitvar]: Uninitialized variables: rtup.t_len, rtup.t_self, rtup.t_tableOid, rtup.t_data
Error: CPPCHECK_WARNING (CWE-457): [#def2256]
postgresql-18beta1/src/pl/plpython/plpy_main.c:261: warning[uninitvar]: Uninitialized variable: retval
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2257]
postgresql-18beta1/src/port/chklocale.c:341:21: warning[-Wanalyzer-malloc-leak]: leak of ‘sys’
postgresql-18beta1/src/port/chklocale.c:316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/port/chklocale.c:317:17: branch_false: ...to here
postgresql-18beta1/src/port/chklocale.c:316:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/port/chklocale.c:322:15: branch_false: ...to here
postgresql-18beta1/src/port/chklocale.c:323:12: branch_false: following ‘false’ branch (when ‘loc’ is non-NULL)...
postgresql-18beta1/src/port/chklocale.c:326:15: branch_false: ...to here
postgresql-18beta1/src/port/chklocale.c:327:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/port/chklocale.c:328:23: branch_true: ...to here
postgresql-18beta1/src/port/chklocale.c:328:23: acquire_memory: allocated here
postgresql-18beta1/src/port/chklocale.c:335:12: branch_false: following ‘false’ branch (when ‘sys’ is non-NULL)...
postgresql-18beta1/src/port/chklocale.c:335:12: branch_false: ...to here
postgresql-18beta1/src/port/chklocale.c:339:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/port/chklocale.c:341:21: branch_true: ...to here
postgresql-18beta1/src/port/chklocale.c:341:21: throw: if ‘pg_strcasecmp’ throws an exception...
postgresql-18beta1/src/port/chklocale.c:341:21: danger: ‘sys’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2258]
postgresql-18beta1/src/port/chklocale.c:370:17: warning[-Wanalyzer-malloc-leak]: leak of ‘sys’
postgresql-18beta1/src/port/chklocale.c:316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/port/chklocale.c:317:17: branch_false: ...to here
postgresql-18beta1/src/port/chklocale.c:316:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/port/chklocale.c:322:15: branch_false: ...to here
postgresql-18beta1/src/port/chklocale.c:323:12: branch_false: following ‘false’ branch (when ‘loc’ is non-NULL)...
postgresql-18beta1/src/port/chklocale.c:326:15: branch_false: ...to here
postgresql-18beta1/src/port/chklocale.c:327:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/port/chklocale.c:328:23: branch_true: ...to here
postgresql-18beta1/src/port/chklocale.c:328:23: acquire_memory: allocated here
postgresql-18beta1/src/port/chklocale.c:335:12: branch_false: following ‘false’ branch (when ‘sys’ is non-NULL)...
postgresql-18beta1/src/port/chklocale.c:335:12: branch_false: ...to here
postgresql-18beta1/src/port/chklocale.c:339:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/port/chklocale.c:341:21: branch_true: ...to here
postgresql-18beta1/src/port/chklocale.c:341:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/port/chklocale.c:339:61: branch_false: ...to here
postgresql-18beta1/src/port/chklocale.c:341:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/port/chklocale.c:339:61: branch_false: ...to here
postgresql-18beta1/src/port/chklocale.c:367:12: branch_true: following ‘true’ branch (when ‘write_message != 0’)...
postgresql-18beta1/src/port/chklocale.c:370:33: branch_true: ...to here
postgresql-18beta1/src/port/chklocale.c:370:17: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18beta1/src/port/chklocale.c:370:17: danger: ‘sys’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2259]
postgresql-18beta1/src/port/chklocale.c:375:17: warning[-Wanalyzer-malloc-leak]: leak of ‘sys’
postgresql-18beta1/src/port/chklocale.c:316:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/port/chklocale.c:317:17: branch_false: ...to here
postgresql-18beta1/src/port/chklocale.c:316:13: branch_false: following ‘false’ branch...
postgresql-18beta1/src/port/chklocale.c:322:15: branch_false: ...to here
postgresql-18beta1/src/port/chklocale.c:323:12: branch_false: following ‘false’ branch (when ‘loc’ is non-NULL)...
postgresql-18beta1/src/port/chklocale.c:326:15: branch_false: ...to here
postgresql-18beta1/src/port/chklocale.c:327:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/port/chklocale.c:328:23: branch_true: ...to here
postgresql-18beta1/src/port/chklocale.c:328:23: acquire_memory: allocated here
postgresql-18beta1/src/port/chklocale.c:335:12: branch_false: following ‘false’ branch (when ‘sys’ is non-NULL)...
postgresql-18beta1/src/port/chklocale.c:335:12: branch_false: ...to here
postgresql-18beta1/src/port/chklocale.c:339:21: branch_true: following ‘true’ branch...
postgresql-18beta1/src/port/chklocale.c:341:21: branch_true: ...to here
postgresql-18beta1/src/port/chklocale.c:341:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/port/chklocale.c:339:61: branch_false: ...to here
postgresql-18beta1/src/port/chklocale.c:341:20: branch_false: following ‘false’ branch...
postgresql-18beta1/src/port/chklocale.c:339:61: branch_false: ...to here
postgresql-18beta1/src/port/chklocale.c:367:12: branch_true: following ‘true’ branch (when ‘write_message != 0’)...
postgresql-18beta1/src/port/chklocale.c:375:17: branch_true: ...to here
postgresql-18beta1/src/port/chklocale.c:375:17: throw: if ‘errstart’ throws an exception...
postgresql-18beta1/src/port/chklocale.c:375:17: danger: ‘sys’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-758): [#def2260]
postgresql-18beta1/src/port/pg_crc32c_sse42_choose.c:100: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2261]
postgresql-18beta1/src/port/pgcheckdir.c:46:35: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dir)’
postgresql-18beta1/src/port/pgcheckdir.c:42:18: acquire_memory: allocated here
postgresql-18beta1/src/port/pgcheckdir.c:43:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/port/pgcheckdir.c:43:12: branch_false: ...to here
postgresql-18beta1/src/port/pgcheckdir.c:46:35: throw: if ‘readdir’ throws an exception...
postgresql-18beta1/src/port/pgcheckdir.c:46:35: danger: ‘opendir(dir)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def2262]
postgresql-18beta1/src/test/isolation/specparse.c:1006:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18beta1/src/test/isolation/specparse.c:964:6: branch_true: following ‘true’ branch...
postgresql-18beta1/src/test/isolation/specparse.c:970:28: branch_true: ...to here
postgresql-18beta1/src/test/isolation/specparse.c:993:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18beta1/src/test/isolation/specparse.c:995:7: branch_false: ...to here
postgresql-18beta1/src/test/isolation/specparse.c:1004:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
postgresql-18beta1/src/test/isolation/specparse.c:1006:9: branch_false: ...to here
postgresql-18beta1/src/test/isolation/specparse.c:1006:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def2263]
postgresql-18beta1/src/test/isolation/specparse.c:1133:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
postgresql-18beta1/src/test/isolation/specparse.c:964:6: branch_false: following ‘false’ branch...
postgresql-18beta1/src/test/isolation/specparse.c:1028:6: branch_false: ...to here
postgresql-18beta1/src/test/isolation/specparse.c:1028:6: branch_false: following ‘false’ branch (when ‘yystate != 3’)...
postgresql-18beta1/src/test/isolation/specparse.c:1031:3: branch_false: ...to here
postgresql-18beta1/src/test/isolation/specparse.c:1043:6: branch_true: following ‘true’ branch (when ‘yyn == -14’)...
postgresql-18beta1/src/test/isolation/specparse.c:1044:5: branch_true: ...to here
postgresql-18beta1/src/test/isolation/specparse.c:1113:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
postgresql-18beta1/src/test/isolation/specparse.c:1115:3: branch_false: ...to here
postgresql-18beta1/src/test/isolation/specparse.c:1133:3: danger: use of uninitialized value ‘*<unknown>’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2264]
postgresql-18beta1/src/test/isolation/specscanner.c:1727:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/src/test/isolation/specscanner.c:1714:21: enter_function: entry to ‘spec_yy_create_buffer’
postgresql-18beta1/src/test/isolation/specscanner.c:1718:24: call_function: inlined call to ‘spec_yyalloc’ from ‘spec_yy_create_buffer’
postgresql-18beta1/src/test/isolation/specscanner.c:1719:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/test/isolation/specscanner.c:1722:2: branch_false: ...to here
postgresql-18beta1/src/test/isolation/specscanner.c:1727:54: danger: ‘malloc(64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def2265]
postgresql-18beta1/src/test/isolation/specscanner.c:1768: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def2266]
postgresql-18beta1/src/test/isolation/specscanner.c:1769: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2267]
postgresql-18beta1/src/test/isolation/specscanner.c:1930:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18beta1/src/test/isolation/specscanner.c:1916:17: enter_function: entry to ‘spec_yy_scan_buffer’
postgresql-18beta1/src/test/isolation/specscanner.c:1926:24: call_function: inlined call to ‘spec_yyalloc’ from ‘spec_yy_scan_buffer’
postgresql-18beta1/src/test/isolation/specscanner.c:1927:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/test/isolation/specscanner.c:1930:25: branch_false: ...to here
postgresql-18beta1/src/test/isolation/specscanner.c:1940:2: call_function: calling ‘spec_yy_switch_to_buffer’ from ‘spec_yy_scan_buffer’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2268]
postgresql-18beta1/src/test/isolation/specscanner.c:1982:26: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql-18beta1/src/test/isolation/specscanner.c:1966:17: enter_function: entry to ‘spec_yy_scan_bytes’
postgresql-18beta1/src/test/isolation/specscanner.c:1975:24: call_function: inlined call to ‘spec_yyalloc’ from ‘spec_yy_scan_bytes’
postgresql-18beta1/src/test/isolation/specscanner.c:1976:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/test/isolation/specscanner.c:1976:12: branch_false: ...to here
postgresql-18beta1/src/test/isolation/specscanner.c:1984:6: call_function: calling ‘spec_yy_scan_buffer’ from ‘spec_yy_scan_bytes’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2269]
postgresql-18beta1/src/test/regress/pg_regress.c:387:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/test/regress/pg_regress.c:1286:1: enter_function: entry to ‘file_line_count’
postgresql-18beta1/src/test/regress/pg_regress.c:1294:17: call_function: calling ‘emit_tap_output’ from ‘file_line_count’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2270]
postgresql-18beta1/src/test/regress/pg_regress.c:389:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/test/regress/pg_regress.c:1286:1: enter_function: entry to ‘file_line_count’
postgresql-18beta1/src/test/regress/pg_regress.c:1294:17: call_function: calling ‘emit_tap_output’ from ‘file_line_count’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2271]
postgresql-18beta1/src/test/regress/pg_regress.c:392:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/test/regress/pg_regress.c:1286:1: enter_function: entry to ‘file_line_count’
postgresql-18beta1/src/test/regress/pg_regress.c:1294:17: call_function: calling ‘emit_tap_output’ from ‘file_line_count’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2272]
postgresql-18beta1/src/test/regress/pg_regress.c:396:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/test/regress/pg_regress.c:1286:1: enter_function: entry to ‘file_line_count’
postgresql-18beta1/src/test/regress/pg_regress.c:1294:17: call_function: calling ‘emit_tap_output’ from ‘file_line_count’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2273]
postgresql-18beta1/src/test/regress/pg_regress.c:413:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/test/regress/pg_regress.c:1331:1: enter_function: entry to ‘make_directory’
postgresql-18beta1/src/test/regress/pg_regress.c:1334:17: call_function: calling ‘bail_out’ from ‘make_directory’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2274]
postgresql-18beta1/src/test/regress/pg_regress.c:415:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/test/regress/pg_regress.c:1916:1: enter_function: entry to ‘open_result_files’
postgresql-18beta1/src/test/regress/pg_regress.c:1922:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/test/regress/pg_regress.c:1926:9: branch_true: ...to here
postgresql-18beta1/src/test/regress/pg_regress.c:1929:12: branch_true: following ‘true’ branch...
postgresql-18beta1/src/test/regress/pg_regress.c:1930:17: branch_true: ...to here
postgresql-18beta1/src/test/regress/pg_regress.c:1930:17: call_function: calling ‘bail_out’ from ‘open_result_files’
Error: COMPILER_WARNING (CWE-704): [#def2275]
postgresql-18beta1/src/test/regress/pg_regress.c: scope_hint: In function ‘get_expectfile’
postgresql-18beta1/src/test/regress/pg_regress.c:703:34: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def2276]
postgresql-18beta1/src/test/regress/pg_regress.c:703:34: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2277]
postgresql-18beta1/src/test/regress/pg_regress.c:1148:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18beta1/src/test/regress/pg_regress.c:1147:17: acquire_resource: ‘va_start’ called here
postgresql-18beta1/src/test/regress/pg_regress.c:1148:26: throw: if ‘appendStringInfoVA’ throws an exception...
postgresql-18beta1/src/test/regress/pg_regress.c:1148:26: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2278]
postgresql-18beta1/src/test/regress/pg_regress.c:1276:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
postgresql-18beta1/src/test/regress/pg_regress.c:1269:25: acquire_resource: opened here
postgresql-18beta1/src/test/regress/pg_regress.c:1271:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/test/regress/pg_regress.c:1276:9: branch_false: ...to here
postgresql-18beta1/src/test/regress/pg_regress.c:1276:9: throw: if ‘fseek’ throws an exception...
postgresql-18beta1/src/test/regress/pg_regress.c:1276:9: danger: ‘fopen(file, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2279]
postgresql-18beta1/src/test/regress/pg_regress.c:1276:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
postgresql-18beta1/src/test/regress/pg_regress.c:1269:25: acquire_memory: allocated here
postgresql-18beta1/src/test/regress/pg_regress.c:1271:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/test/regress/pg_regress.c:1276:9: branch_false: ...to here
postgresql-18beta1/src/test/regress/pg_regress.c:1276:9: throw: if ‘fseek’ throws an exception...
postgresql-18beta1/src/test/regress/pg_regress.c:1276:9: danger: ‘fopen(file, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2280]
postgresql-18beta1/src/test/regress/pg_regress.c:1277:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
postgresql-18beta1/src/test/regress/pg_regress.c:1269:25: acquire_resource: opened here
postgresql-18beta1/src/test/regress/pg_regress.c:1271:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/test/regress/pg_regress.c:1276:9: branch_false: ...to here
postgresql-18beta1/src/test/regress/pg_regress.c:1277:13: throw: if ‘ftell’ throws an exception...
postgresql-18beta1/src/test/regress/pg_regress.c:1277:13: danger: ‘fopen(file, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2281]
postgresql-18beta1/src/test/regress/pg_regress.c:1277:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
postgresql-18beta1/src/test/regress/pg_regress.c:1269:25: acquire_memory: allocated here
postgresql-18beta1/src/test/regress/pg_regress.c:1271:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/test/regress/pg_regress.c:1276:9: branch_false: ...to here
postgresql-18beta1/src/test/regress/pg_regress.c:1277:13: throw: if ‘ftell’ throws an exception...
postgresql-18beta1/src/test/regress/pg_regress.c:1277:13: danger: ‘fopen(file, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2282]
postgresql-18beta1/src/test/regress/pg_regress.c:1297:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
postgresql-18beta1/src/test/regress/pg_regress.c:1290:25: acquire_resource: opened here
postgresql-18beta1/src/test/regress/pg_regress.c:1292:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/test/regress/pg_regress.c:1292:12: branch_false: ...to here
postgresql-18beta1/src/test/regress/pg_regress.c:1297:21: throw: if ‘fgetc’ throws an exception...
postgresql-18beta1/src/test/regress/pg_regress.c:1297:21: danger: ‘fopen(file, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2283]
postgresql-18beta1/src/test/regress/pg_regress.c:1297:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
postgresql-18beta1/src/test/regress/pg_regress.c:1290:25: acquire_memory: allocated here
postgresql-18beta1/src/test/regress/pg_regress.c:1292:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/test/regress/pg_regress.c:1292:12: branch_false: ...to here
postgresql-18beta1/src/test/regress/pg_regress.c:1297:21: throw: if ‘fgetc’ throws an exception...
postgresql-18beta1/src/test/regress/pg_regress.c:1297:21: danger: ‘fopen(file, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2284]
postgresql-18beta1/src/test/regress/pg_regress.c:1366:9: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
postgresql-18beta1/src/test/regress/pg_regress.c:1348:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
postgresql-18beta1/src/test/regress/pg_regress.c:1351:28: branch_false: ...to here
postgresql-18beta1/src/test/regress/pg_regress.c:1351:28: acquire_memory: allocated here
postgresql-18beta1/src/test/regress/pg_regress.c:1351:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/test/regress/pg_regress.c:1357:9: branch_false: ...to here
postgresql-18beta1/src/test/regress/pg_regress.c:1359:12: branch_false: following ‘false’ branch (when ‘last_dot’ is non-NULL)...
postgresql-18beta1/src/test/regress/pg_regress.c:1365:9: branch_false: ...to here
postgresql-18beta1/src/test/regress/pg_regress.c:1366:9: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/src/test/regress/pg_regress.c:1366:9: danger: ‘s’ leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2285]
postgresql-18beta1/src/test/regress/pg_regress.c:1366:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
postgresql-18beta1/src/test/regress/pg_regress.c:1348:30: acquire_memory: allocated here
postgresql-18beta1/src/test/regress/pg_regress.c:1348:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
postgresql-18beta1/src/test/regress/pg_regress.c:1351:28: branch_false: ...to here
postgresql-18beta1/src/test/regress/pg_regress.c:1351:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
postgresql-18beta1/src/test/regress/pg_regress.c:1357:9: branch_false: ...to here
postgresql-18beta1/src/test/regress/pg_regress.c:1359:12: branch_false: following ‘false’ branch (when ‘last_dot’ is non-NULL)...
postgresql-18beta1/src/test/regress/pg_regress.c:1365:9: branch_false: ...to here
postgresql-18beta1/src/test/regress/pg_regress.c:1366:9: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18beta1/src/test/regress/pg_regress.c:1366:9: danger: ‘tmp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2286]
postgresql-18beta1/src/test/regress/pg_regress.c:1683:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(schedule, "r")’
postgresql-18beta1/src/test/regress/pg_regress.c:1664:15: acquire_resource: opened here
postgresql-18beta1/src/test/regress/pg_regress.c:1665:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/test/regress/pg_regress.c:1665:12: branch_false: ...to here
postgresql-18beta1/src/test/regress/pg_regress.c:1668:16: branch_true: following ‘true’ branch...
postgresql-18beta1/src/test/regress/pg_regress.c:1676:17: branch_true: ...to here
postgresql-18beta1/src/test/regress/pg_regress.c:1683:21: danger: ‘fopen(schedule, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2287]
postgresql-18beta1/src/test/regress/pg_regress.c:1683:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(schedule, "r")’
postgresql-18beta1/src/test/regress/pg_regress.c:1664:15: acquire_memory: allocated here
postgresql-18beta1/src/test/regress/pg_regress.c:1665:12: branch_false: following ‘false’ branch...
postgresql-18beta1/src/test/regress/pg_regress.c:1665:12: branch_false: ...to here
postgresql-18beta1/src/test/regress/pg_regress.c:1668:16: branch_true: following ‘true’ branch...
postgresql-18beta1/src/test/regress/pg_regress.c:1676:17: branch_true: ...to here
postgresql-18beta1/src/test/regress/pg_regress.c:1683:21: danger: ‘fopen(schedule, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2288]
postgresql-18beta1/src/timezone/localtime.c:233:15: warning[-Wanalyzer-malloc-leak]: leak of ‘lsp’
postgresql-18beta1/src/timezone/localtime.c:1389:1: enter_function: entry to ‘pg_gmtime’
postgresql-18beta1/src/timezone/localtime.c:1391:16: call_function: calling ‘gmtsub’ from ‘pg_gmtime’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2289]
postgresql-18beta1/src/timezone/localtime.c:242:17: warning[-Wanalyzer-malloc-leak]: leak of ‘lsp’
postgresql-18beta1/src/timezone/localtime.c:1389:1: enter_function: entry to ‘pg_gmtime’
postgresql-18beta1/src/timezone/localtime.c:1391:16: call_function: calling ‘gmtsub’ from ‘pg_gmtime’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2290]
postgresql-18beta1/src/timezone/localtime.c:245:13: warning[-Wanalyzer-malloc-leak]: leak of ‘lsp’
postgresql-18beta1/src/timezone/localtime.c:1389:1: enter_function: entry to ‘pg_gmtime’
postgresql-18beta1/src/timezone/localtime.c:1391:16: call_function: calling ‘gmtsub’ from ‘pg_gmtime’
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-181.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | postgresql18-18beta1-4.fc43 |
| store-results-to | /tmp/tmpeu5rmtu7/postgresql18-18beta1-4.fc43.tar.xz |
| time-created | 2026-01-08 20:19:57 |
| time-finished | 2026-01-08 20:44:11 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpeu5rmtu7/postgresql18-18beta1-4.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpeu5rmtu7/postgresql18-18beta1-4.fc43.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |