Newly introduced findings
List of Findings
Error: SHELLCHECK_WARNING (CWE-571): [#def1]
/usr/bin/postgresql-setup:398:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-456): [#def2]
/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: [#def3]
/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: [#def4]
/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): [#def5]
/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): [#def6]
/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): [#def7]
/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): [#def8]
/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): [#def9]
/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): [#def10]
/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: [#def11]
/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): [#def12]
/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): [#def13]
/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): [#def14]
/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): [#def15]
/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: CPPCHECK_WARNING (CWE-457): [#def16]
postgresql-18.1/postgresql-16.11/contrib/pgcrypto/pgp-pgsql.c:403: error[uninitvar]: Uninitialized variable: tmp
Error: CPPCHECK_WARNING (CWE-457): [#def17]
postgresql-18.1/postgresql-16.11/contrib/pgcrypto/pgp-pgsql.c:482: error[uninitvar]: Uninitialized variable: tmp
Error: GCC_ANALYZER_WARNING (CWE-404): [#def18]
postgresql-18.1/postgresql-16.11/contrib/pgcrypto/px.c:158:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-16.11/contrib/pgcrypto/px.c:153:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-16.11/contrib/pgcrypto/px.c:154:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/contrib/pgcrypto/px.c:158:17: branch_true: ...to here
postgresql-18.1/postgresql-16.11/contrib/pgcrypto/px.c:158:17: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18.1/postgresql-16.11/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: GCC_ANALYZER_WARNING (CWE-688): [#def19]
postgresql-18.1/postgresql-16.11/contrib/unaccent/unaccent.c:78:25: warning[-Wanalyzer-null-argument]: use of NULL ‘replaceTo’ where non-null expected
postgresql-18.1/postgresql-16.11/contrib/unaccent/unaccent.c:96:1: enter_function: entry to ‘initTrie’
postgresql-18.1/postgresql-16.11/contrib/unaccent/unaccent.c:104:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/contrib/unaccent/unaccent.c:117:17: branch_true: ...to here
postgresql-18.1/postgresql-16.11/contrib/unaccent/unaccent.c:119:17: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-16.11/contrib/unaccent/unaccent.c:119:17: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/contrib/unaccent/unaccent.c:119:17: branch_true: ...to here
postgresql-18.1/postgresql-16.11/contrib/unaccent/unaccent.c:150:50: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/contrib/unaccent/unaccent.c:152:50: branch_true: ...to here
postgresql-18.1/postgresql-16.11/contrib/unaccent/unaccent.c:156:52: branch_true: following ‘true’ branch (when ‘state == 1’)...
postgresql-18.1/postgresql-16.11/contrib/unaccent/unaccent.c:154:44: branch_true: ...to here
postgresql-18.1/postgresql-16.11/contrib/unaccent/unaccent.c:198:36: branch_true: following ‘true’ branch (when ‘state > 0’)...
postgresql-18.1/postgresql-16.11/contrib/unaccent/unaccent.c:199:52: branch_true: ...to here
postgresql-18.1/postgresql-16.11/contrib/unaccent/unaccent.c:199:52: call_function: calling ‘placeChar’ from ‘initTrie’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def20]
postgresql-18.1/postgresql-16.11/src/backend/access/transam/xact.c:5936:76: warning[-Wanalyzer-null-argument]: use of NULL ‘twophase_gid’ where non-null expected
postgresql-18.1/postgresql-16.11/src/backend/access/transam/xact.c:3305:1: enter_function: entry to ‘AbortCurrentTransaction’
postgresql-18.1/postgresql-16.11/src/backend/access/transam/xact.c:3339:25: call_function: calling ‘AbortTransaction’ from ‘AbortCurrentTransaction’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
postgresql-18.1/postgresql-16.11/src/backend/bootstrap/bootscanner.c:1982:32: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18.1/postgresql-16.11/src/backend/bootstrap/bootscanner.c:1968:17: enter_function: entry to ‘boot_yy_scan_buffer’
postgresql-18.1/postgresql-16.11/src/backend/bootstrap/bootscanner.c:1978:31: call_function: inlined call to ‘boot_yyalloc’ from ‘boot_yy_scan_buffer’
postgresql-18.1/postgresql-16.11/src/backend/bootstrap/bootscanner.c:1979:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/backend/bootstrap/bootscanner.c:1982:32: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/bootstrap/bootscanner.c:1992:9: call_function: calling ‘boot_yy_switch_to_buffer’ from ‘boot_yy_scan_buffer’
Error: CPPCHECK_WARNING (CWE-786): [#def22]
postgresql-18.1/postgresql-16.11/src/backend/commands/tablecmds.c:4988: error[negativeIndex]: Array 'tab->subcmds[11]' accessed at index -1, which is out of bounds.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
postgresql-18.1/postgresql-16.11/src/backend/libpq/auth.c:676:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18.1/postgresql-16.11/src/backend/libpq/auth.c:1921:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18.1/postgresql-16.11/src/backend/libpq/auth.c:1941:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/backend/libpq/auth.c:1948:22: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/libpq/auth.c:1948:22: acquire_memory: allocated here
postgresql-18.1/postgresql-16.11/src/backend/libpq/auth.c:1948:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18.1/postgresql-16.11/src/backend/libpq/auth.c:1948:12: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/libpq/auth.c:1956:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18.1/postgresql-16.11/src/backend/libpq/auth.c:1958:28: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/libpq/auth.c:1961:36: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/backend/libpq/auth.c:1968:41: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/libpq/auth.c:1968:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
postgresql-18.1/postgresql-16.11/src/backend/postmaster/bgworker.c:360:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rw’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/bgworker.c:256:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/bgworker.c:256:12: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/bgworker.c:269:26: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/bgworker.c:271:67: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/bgworker.c:285:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/bgworker.c:311:20: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/bgworker.c:321:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/bgworker.c:347:22: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/bgworker.c:347:22: acquire_memory: allocated here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/bgworker.c:348:20: branch_false: following ‘false’ branch (when ‘rw’ is non-NULL)...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/bgworker.c:361:52: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/bgworker.c:360:17: throw: if ‘ascii_safe_strlcpy’ throws an exception...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/bgworker.c:360:17: danger: ‘rw’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:2545:13: warning[-Wanalyzer-malloc-leak]: leak of ‘port’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:2537:31: acquire_memory: allocated here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:2537:12: branch_false: following ‘false’ branch (when ‘port’ is non-NULL)...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:2545:13: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:2545:13: throw: if ‘StreamConnection’ throws an exception...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:2545:13: danger: ‘port’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4161:50: warning[-Wanalyzer-malloc-leak]: leak of ‘bn’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4119:1: enter_function: entry to ‘BackendStartup’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4128:26: acquire_memory: allocated here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4129:12: branch_false: following ‘false’ branch (when ‘bn’ is non-NULL)...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4142:14: call_function: inlined call to ‘RandomCancelKey’ from ‘BackendStartup’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4142:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4151:9: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4160:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4161:50: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4161:50: throw: if ‘AssignPostmasterChildSlot’ throws an exception...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4161:50: danger: ‘bn’ leaks here; was allocated at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4171:15: warning[-Wanalyzer-malloc-leak]: leak of ‘bn’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4119:1: enter_function: entry to ‘BackendStartup’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4128:26: acquire_memory: allocated here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4129:12: branch_false: following ‘false’ branch (when ‘bn’ is non-NULL)...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4142:14: call_function: inlined call to ‘RandomCancelKey’ from ‘BackendStartup’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4142:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4151:9: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4154:38: call_function: calling ‘canAcceptConnections’ from ‘BackendStartup’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4154:38: return_function: returning to ‘BackendStartup’ from ‘canAcceptConnections’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4160:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4160:12: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4171:15: throw: if ‘fork_process’ throws an exception...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4171:15: danger: ‘bn’ leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4215:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bn’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4119:1: enter_function: entry to ‘BackendStartup’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4128:26: acquire_memory: allocated here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4129:12: branch_false: following ‘false’ branch (when ‘bn’ is non-NULL)...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4142:14: call_function: inlined call to ‘RandomCancelKey’ from ‘BackendStartup’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4142:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4151:9: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4154:38: call_function: calling ‘canAcceptConnections’ from ‘BackendStartup’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4154:38: return_function: returning to ‘BackendStartup’ from ‘canAcceptConnections’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4172:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4199:12: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4199:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4215:9: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4215:9: throw: if ‘errstart’ throws an exception...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4215:9: danger: ‘bn’ leaks here; was allocated at [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5282:16: warning[-Wanalyzer-malloc-leak]: leak of ‘bn’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4119:1: enter_function: entry to ‘BackendStartup’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4128:26: acquire_memory: allocated here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4129:12: branch_false: following ‘false’ branch (when ‘bn’ is non-NULL)...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:4142:14: call_function: inlined call to ‘RandomCancelKey’ from ‘BackendStartup’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5477:58: warning[-Wanalyzer-malloc-leak]: leak of ‘bn’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5443:1: enter_function: entry to ‘StartAutovacuumWorker’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5454:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5462:22: call_function: inlined call to ‘RandomCancelKey’ from ‘StartAutovacuumWorker’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5462:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5470:34: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5470:34: acquire_memory: allocated here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5471:20: branch_true: following ‘true’ branch (when ‘bn’ is non-NULL)...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5473:25: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5477:58: throw: if ‘AssignPostmasterChildSlot’ throws an exception...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5477:58: danger: ‘bn’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5480:35: warning[-Wanalyzer-malloc-leak]: leak of ‘bn’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5443:1: enter_function: entry to ‘StartAutovacuumWorker’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5454:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5462:22: call_function: inlined call to ‘RandomCancelKey’ from ‘StartAutovacuumWorker’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5462:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5470:34: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5470:34: acquire_memory: allocated here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5471:20: branch_true: following ‘true’ branch (when ‘bn’ is non-NULL)...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5473:25: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5480:35: throw: if ‘StartAutoVacWorker’ throws an exception...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5480:35: danger: ‘bn’ leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5496:32: warning[-Wanalyzer-malloc-leak]: leak of ‘bn’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5443:1: enter_function: entry to ‘StartAutovacuumWorker’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5454:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5462:22: call_function: inlined call to ‘RandomCancelKey’ from ‘StartAutovacuumWorker’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5462:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5470:34: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5470:34: acquire_memory: allocated here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5471:20: branch_true: following ‘true’ branch (when ‘bn’ is non-NULL)...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5473:25: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5481:28: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5496:32: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5496:32: throw: if ‘ReleasePostmasterChildSlot’ throws an exception...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5496:32: danger: ‘bn’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5878:42: warning[-Wanalyzer-malloc-leak]: leak of ‘bn’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5837:1: enter_function: entry to ‘assign_backendlist_entry’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5846:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5860:14: call_function: inlined call to ‘RandomCancelKey’ from ‘assign_backendlist_entry’
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5860:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5868:14: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5868:14: acquire_memory: allocated here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5869:12: branch_false: following ‘false’ branch (when ‘bn’ is non-NULL)...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5877:9: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5878:42: throw: if ‘AssignPostmasterChildSlot’ throws an exception...
postgresql-18.1/postgresql-16.11/src/backend/postmaster/postmaster.c:5878:42: danger: ‘bn’ leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
postgresql-18.1/postgresql-16.11/src/backend/replication/logical/reorderbuffer.c:3791:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘txn’
postgresql-18.1/postgresql-16.11/src/backend/replication/logical/reorderbuffer.c:3712:1: enter_function: entry to ‘ReorderBufferCheckMemoryLimit’
postgresql-18.1/postgresql-16.11/src/backend/replication/logical/reorderbuffer.c:3758:31: call_function: calling ‘ReorderBufferLargestTXN’ from ‘ReorderBufferCheckMemoryLimit’
postgresql-18.1/postgresql-16.11/src/backend/replication/logical/reorderbuffer.c:3758:31: return_function: returning to ‘ReorderBufferCheckMemoryLimit’ from ‘ReorderBufferLargestTXN’
postgresql-18.1/postgresql-16.11/src/backend/replication/logical/reorderbuffer.c:3765:25: call_function: calling ‘ReorderBufferSerializeTXN’ from ‘ReorderBufferCheckMemoryLimit’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
postgresql-18.1/postgresql-16.11/src/backend/replication/repl_scanner.c:2173:32: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18.1/postgresql-16.11/src/backend/replication/repl_scanner.c:2159:17: enter_function: entry to ‘replication_yy_scan_buffer’
postgresql-18.1/postgresql-16.11/src/backend/replication/repl_scanner.c:2169:31: call_function: inlined call to ‘replication_yyalloc’ from ‘replication_yy_scan_buffer’
postgresql-18.1/postgresql-16.11/src/backend/replication/repl_scanner.c:2170:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/backend/replication/repl_scanner.c:2173:32: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/replication/repl_scanner.c:2183:9: call_function: calling ‘replication_yy_switch_to_buffer’ from ‘replication_yy_scan_buffer’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
postgresql-18.1/postgresql-16.11/src/backend/replication/syncrep_scanner.c:1848:32: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18.1/postgresql-16.11/src/backend/replication/syncrep_scanner.c:1834:17: enter_function: entry to ‘syncrep_yy_scan_buffer’
postgresql-18.1/postgresql-16.11/src/backend/replication/syncrep_scanner.c:1844:31: call_function: inlined call to ‘syncrep_yyalloc’ from ‘syncrep_yy_scan_buffer’
postgresql-18.1/postgresql-16.11/src/backend/replication/syncrep_scanner.c:1845:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/backend/replication/syncrep_scanner.c:1848:32: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/replication/syncrep_scanner.c:1858:9: call_function: calling ‘syncrep_yy_switch_to_buffer’ from ‘syncrep_yy_scan_buffer’
Error: CPPCHECK_WARNING (CWE-457): [#def37]
postgresql-18.1/postgresql-16.11/src/backend/utils/adt/jsonb.c:127: error[legacyUninitvar]: Uninitialized variable: nbytes
Error: CPPCHECK_WARNING (CWE-457): [#def38]
postgresql-18.1/postgresql-16.11/src/backend/utils/adt/jsonb.c:127: error[legacyUninitvar]: Uninitialized variable: str
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
postgresql-18.1/postgresql-16.11/src/backend/utils/misc/guc-file.c:1630:54: warning[-Wanalyzer-malloc-leak]: leak of ‘GUC_yy_create_buffer(fp, 16384)’
postgresql-18.1/postgresql-16.11/src/backend/utils/misc/guc-file.l:573:1: enter_function: entry to ‘ParseConfigDirectory’
postgresql-18.1/postgresql-16.11/src/backend/utils/misc/guc-file.l:586:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/backend/utils/misc/guc-file.l:586:12: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/utils/misc/guc-file.l:593:25: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/backend/utils/misc/guc-file.l:595:47: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/utils/misc/guc-file.l:595:22: call_function: calling ‘ParseConfigFile’ from ‘ParseConfigDirectory’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
postgresql-18.1/postgresql-16.11/src/backend/utils/misc/guc-file.c:1630:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18.1/postgresql-16.11/src/backend/utils/misc/guc-file.l:573:1: enter_function: entry to ‘ParseConfigDirectory’
postgresql-18.1/postgresql-16.11/src/backend/utils/misc/guc-file.l:586:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/backend/utils/misc/guc-file.l:586:12: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/utils/misc/guc-file.l:593:25: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/backend/utils/misc/guc-file.l:595:47: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/utils/misc/guc-file.l:595:22: call_function: calling ‘ParseConfigFile’ from ‘ParseConfigDirectory’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
postgresql-18.1/postgresql-16.11/src/backend/utils/mmgr/aset.c:991:1: warning[-Wanalyzer-malloc-leak]: leak of ‘block’
postgresql-18.1/postgresql-16.11/src/backend/utils/mmgr/aset.c:699:1: enter_function: entry to ‘AllocSetAlloc’
postgresql-18.1/postgresql-16.11/src/backend/utils/mmgr/aset.c:714:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/backend/utils/mmgr/aset.c:790:16: call_function: inlined call to ‘AllocSetFreeIndex’ from ‘AllocSetAlloc’
postgresql-18.1/postgresql-16.11/src/backend/utils/mmgr/aset.c:792:12: branch_false: following ‘false’ branch (when ‘chunk’ is NULL)...
postgresql-18.1/postgresql-16.11/src/backend/utils/mmgr/aset.c:830:9: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/utils/mmgr/aset.c:930:24: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/backend/utils/mmgr/aset.c:932:25: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/utils/mmgr/aset.c:933:28: branch_false: following ‘false’ branch (when ‘required_size <= blksize’)...
postgresql-18.1/postgresql-16.11/src/backend/utils/mmgr/aset.c:935:46: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/backend/utils/mmgr/aset.c:935:46: acquire_memory: allocated here
postgresql-18.1/postgresql-16.11/src/backend/utils/mmgr/aset.c:930:24: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/backend/utils/mmgr/aset.c:932:25: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/utils/mmgr/aset.c:938:20: branch_true: following ‘true’ branch (when ‘block’ is NULL)...
postgresql-18.1/postgresql-16.11/src/backend/utils/mmgr/aset.c:938:20: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/backend/utils/mmgr/aset.c:991:1: danger: ‘block’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-401): [#def42]
postgresql-18.1/postgresql-16.11/src/backend/utils/mmgr/aset.c:1159: error[memleakOnRealloc]: Common realloc mistake: 'block' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
postgresql-18.1/postgresql-16.11/src/bin/pg_dump/pg_backup_tar.c:190:32: warning[-Wanalyzer-file-leak]: leak of FILE ‘*<unknown>.tarFH’
postgresql-18.1/postgresql-16.11/src/bin/pg_dump/pg_backup_tar.c:166:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/bin/pg_dump/pg_backup_tar.c:168:21: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/bin/pg_dump/pg_backup_tar.c:168:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/bin/pg_dump/pg_backup_tar.c:170:38: acquire_resource: opened here
postgresql-18.1/postgresql-16.11/src/bin/pg_dump/pg_backup_tar.c:171:28: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/bin/pg_dump/pg_backup_tar.c:182:17: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/bin/pg_dump/pg_backup_tar.c:190:32: danger: ‘*<unknown>.tarFH’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def44]
postgresql-18.1/postgresql-16.11/src/bin/pg_dump/pg_backup_tar.c:224:32: warning[-Wanalyzer-file-leak]: leak of FILE ‘*<unknown>.tarFH’
postgresql-18.1/postgresql-16.11/src/bin/pg_dump/pg_backup_tar.c:166:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/bin/pg_dump/pg_backup_tar.c:202:21: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/bin/pg_dump/pg_backup_tar.c:202:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/bin/pg_dump/pg_backup_tar.c:204:38: acquire_resource: opened here
postgresql-18.1/postgresql-16.11/src/bin/pg_dump/pg_backup_tar.c:205:28: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/bin/pg_dump/pg_backup_tar.c:222:17: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/bin/pg_dump/pg_backup_tar.c:224:32: danger: ‘*<unknown>.tarFH’ leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def45]
postgresql-18.1/postgresql-16.11/src/bin/pg_upgrade/version.c:120:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/postgresql-16.11/src/bin/pg_upgrade/version.c:153:1: enter_function: entry to ‘check_for_data_type_usage’
postgresql-18.1/postgresql-16.11/src/bin/pg_upgrade/version.c:163:17: call_function: calling ‘check_for_data_types_usage’ from ‘check_for_data_type_usage’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
postgresql-18.1/postgresql-16.11/src/common/exec.c:380:25: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
postgresql-18.1/postgresql-16.11/src/common/exec.c:370:22: acquire_memory: allocated here
postgresql-18.1/postgresql-16.11/src/common/exec.c:370:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/common/exec.c:376:9: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/common/exec.c:377:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/common/exec.c:379:21: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/common/exec.c:379:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/common/exec.c:380:25: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/common/exec.c:380:25: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/postgresql-16.11/src/common/exec.c:380:25: 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): [#def47]
postgresql-18.1/postgresql-16.11/src/common/exec.c:382:25: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
postgresql-18.1/postgresql-16.11/src/common/exec.c:370:22: acquire_memory: allocated here
postgresql-18.1/postgresql-16.11/src/common/exec.c:370:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/common/exec.c:376:9: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/common/exec.c:377:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/common/exec.c:379:21: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/common/exec.c:379:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/common/exec.c:382:25: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/common/exec.c:382:25: throw: if ‘perror’ throws an exception...
postgresql-18.1/postgresql-16.11/src/common/exec.c:382:25: 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-401): [#def48]
postgresql-18.1/postgresql-16.11/src/common/exec.c:383:17: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
postgresql-18.1/postgresql-16.11/src/common/exec.c:370:22: acquire_memory: allocated here
postgresql-18.1/postgresql-16.11/src/common/exec.c:370:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/common/exec.c:376:9: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/common/exec.c:377:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/common/exec.c:379:21: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/common/exec.c:383:17: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
postgresql-18.1/postgresql-16.11/src/common/exec.c:405:12: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
postgresql-18.1/postgresql-16.11/src/common/exec.c:363:1: enter_function: entry to ‘pipe_read_line’
postgresql-18.1/postgresql-16.11/src/common/exec.c:370:22: acquire_memory: allocated here
postgresql-18.1/postgresql-16.11/src/common/exec.c:370:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/common/exec.c:376:9: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/common/exec.c:377:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/common/exec.c:387:13: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/common/exec.c:387:13: call_function: calling ‘pclose_check’ from ‘pipe_read_line’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def50]
postgresql-18.1/postgresql-16.11/src/common/file_utils.c:521:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘iov’
postgresql-18.1/postgresql-16.11/src/common/file_utils.c:541:1: enter_function: entry to ‘pg_pwrite_zeros’
postgresql-18.1/postgresql-16.11/src/common/file_utils.c:550:16: branch_true: following ‘true’ branch (when ‘remaining_size != 0’)...
postgresql-18.1/postgresql-16.11/src/common/file_utils.c:550:16: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/common/file_utils.c:555:24: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/common/file_utils.c:559:25: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/common/file_utils.c:555:24: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/common/file_utils.c:570:27: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/common/file_utils.c:570:27: call_function: calling ‘pg_pwritev_with_retry’ from ‘pg_pwrite_zeros’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
postgresql-18.1/postgresql-16.11/src/common/saslprep.c:1095:34: warning[-Wanalyzer-malloc-leak]: leak of ‘input_chars’
postgresql-18.1/postgresql-16.11/src/common/saslprep.c:1069:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/common/saslprep.c:1082:22: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/common/saslprep.c:1083:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/common/saslprep.c:1085:13: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/common/saslprep.c:1085:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-16.11/src/common/saslprep.c:1088:23: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/common/saslprep.c:1088:23: acquire_memory: allocated here
postgresql-18.1/postgresql-16.11/src/common/saslprep.c:1089:12: branch_false: following ‘false’ branch (when ‘input_chars’ is non-NULL)...
postgresql-18.1/postgresql-16.11/src/common/saslprep.c:1089:12: branch_false: ...to here
postgresql-18.1/postgresql-16.11/src/common/saslprep.c:1093:21: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-16.11/src/common/saslprep.c:1095:28: branch_true: ...to here
postgresql-18.1/postgresql-16.11/src/common/saslprep.c:1095:34: throw: if ‘utf8_to_unicode’ throws an exception...
postgresql-18.1/postgresql-16.11/src/common/saslprep.c:1095:34: danger: ‘input_chars’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-457): [#def52]
postgresql-18.1/postgresql-17.7/contrib/bloom/blvacuum.c:153: warning[uninitvar]: Uninitialized variable: notFullPage
Error: GCC_ANALYZER_WARNING (CWE-457): [#def53]
postgresql-18.1/postgresql-17.7/contrib/btree_gist/btree_utils_num.c:90:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘leaf’
postgresql-18.1/postgresql-17.7/contrib/btree_gist/btree_utils_num.c:18:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/contrib/btree_gist/btree_utils_num.c:34:56: branch_true: ...to here
postgresql-18.1/postgresql-17.7/contrib/btree_gist/btree_utils_num.c:90:17: danger: use of uninitialized value ‘leaf’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def54]
postgresql-18.1/postgresql-17.7/contrib/cube/cubeparse.c:971:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18.1/postgresql-17.7/contrib/cube/cubeparse.c:929:6: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/contrib/cube/cubeparse.c:935:28: branch_true: ...to here
postgresql-18.1/postgresql-17.7/contrib/cube/cubeparse.c:958:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18.1/postgresql-17.7/contrib/cube/cubeparse.c:960:7: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/cube/cubeparse.c:969:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/cube/cubeparse.c:971:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/cube/cubeparse.c:971:9: danger: use of uninitialized value ‘yyss’ here
Error: CPPCHECK_WARNING (CWE-476): [#def55]
postgresql-18.1/postgresql-17.7/contrib/cube/cubescan.c:1623: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def56]
postgresql-18.1/postgresql-17.7/contrib/cube/cubescan.c:1624: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-457): [#def57]
postgresql-18.1/postgresql-17.7/contrib/dblink/dblink.c:692: error[legacyUninitvar]: Uninitialized variable: conn
Error: CPPCHECK_WARNING (CWE-457): [#def58]
postgresql-18.1/postgresql-17.7/contrib/dblink/dblink.c:692: error[legacyUninitvar]: Uninitialized variable: sql
Error: GCC_ANALYZER_WARNING (CWE-404): [#def59]
postgresql-18.1/postgresql-17.7/contrib/dblink/dblink.c:2773:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/contrib/dblink/dblink.c:2713:1: enter_function: entry to ‘dblink_res_error’
postgresql-18.1/postgresql-17.7/contrib/dblink/dblink.c:2772:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/contrib/dblink/dblink.c:2773:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18.1/postgresql-17.7/contrib/dblink/dblink.c:2773: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): [#def60]
postgresql-18.1/postgresql-17.7/contrib/hstore/hstore_io.c:466: error[unknownEvaluationOrder]: Expression '(entry)++->entry' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-457): [#def61]
postgresql-18.1/postgresql-17.7/contrib/hstore/hstore_io.c:466: warning[uninitvar]: Uninitialized variable: pairs.val
Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
postgresql-18.1/postgresql-17.7/contrib/hstore/hstore_op.c:341:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18.1/postgresql-17.7/contrib/hstore/hstore_op.c:292:1: enter_function: entry to ‘hstore_delete_array’
postgresql-18.1/postgresql-17.7/contrib/hstore/hstore_op.c:307:33: call_function: calling ‘hstoreArrayToPairs’ from ‘hstore_delete_array’
postgresql-18.1/postgresql-17.7/contrib/hstore/hstore_op.c:307:33: return_function: returning to ‘hstore_delete_array’ from ‘hstoreArrayToPairs’
postgresql-18.1/postgresql-17.7/contrib/hstore/hstore_op.c:317:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/hstore/hstore_op.c:317:12: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/hstore/hstore_op.c:331:25: branch_true: following ‘true’ branch (when ‘i < hs_count’)...
postgresql-18.1/postgresql-17.7/contrib/hstore/hstore_op.c:335:21: branch_true: ...to here
postgresql-18.1/postgresql-17.7/contrib/hstore/hstore_op.c:335:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/hstore/hstore_op.c:339:59: branch_false: ...to here
postgresql-18.1/postgresql-17.7/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): [#def63]
postgresql-18.1/postgresql-17.7/contrib/intarray/_intbig_gist.c:173: warning[nullPointer]: Possible null pointer dereference: ptr
Error: CPPCHECK_WARNING (CWE-682): [#def64]
postgresql-18.1/postgresql-17.7/contrib/intarray/_intbig_gist.c:174: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def65]
postgresql-18.1/postgresql-17.7/contrib/ltree/ltree_gist.c:76:17: warning[-Wanalyzer-null-argument]: use of NULL ‘left’ where non-null expected
postgresql-18.1/postgresql-17.7/contrib/ltree/ltree_gist.c:192:1: enter_function: entry to ‘ltree_union’
postgresql-18.1/postgresql-17.7/contrib/ltree/ltree_gist.c:207:21: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/ltree/ltree_gist.c:240:12: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/ltree/ltree_gist.c:240:12: branch_false: following ‘false’ branch (when ‘isalltrue == 0’)...
postgresql-18.1/postgresql-17.7/contrib/ltree/ltree_gist.c:240:12: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/ltree/ltree_gist.c:253:18: call_function: calling ‘ltree_gist_alloc’ from ‘ltree_union’
Error: CPPCHECK_WARNING (CWE-476): [#def66]
postgresql-18.1/postgresql-17.7/contrib/pg_trgm/trgm_gin.c:144: warning[nullPointer]: Possible null pointer dereference: (union varattrib_4b*)(trg)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
postgresql-18.1/postgresql-17.7/contrib/pg_trgm/trgm_regexp.c:1999:60: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18.1/postgresql-17.7/contrib/pg_trgm/trgm_regexp.c:1969:16: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/contrib/pg_trgm/trgm_regexp.c:1969:16: branch_true: ...to here
postgresql-18.1/postgresql-17.7/contrib/pg_trgm/trgm_regexp.c:1999:60: danger: dereference of NULL ‘<unknown>’
Error: CPPCHECK_WARNING (CWE-457): [#def68]
postgresql-18.1/postgresql-17.7/contrib/pgcrypto/pgp-pgsql.c:403: error[uninitvar]: Uninitialized variable: tmp
Error: CPPCHECK_WARNING (CWE-457): [#def69]
postgresql-18.1/postgresql-17.7/contrib/pgcrypto/pgp-pgsql.c:482: error[uninitvar]: Uninitialized variable: tmp
Error: GCC_ANALYZER_WARNING (CWE-404): [#def70]
postgresql-18.1/postgresql-17.7/contrib/pgcrypto/px.c:158:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/contrib/pgcrypto/px.c:153:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/contrib/pgcrypto/px.c:154:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/contrib/pgcrypto/px.c:158:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/contrib/pgcrypto/px.c:158:17: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18.1/postgresql-17.7/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-768): [#def71]
postgresql-18.1/postgresql-17.7/contrib/postgres_fdw/postgres_fdw.c:1412: 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): [#def72]
postgresql-18.1/postgresql-17.7/contrib/postgres_fdw/postgres_fdw.c:1412: 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): [#def73]
postgresql-18.1/postgresql-17.7/contrib/postgres_fdw/postgres_fdw.c:1900: 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): [#def74]
postgresql-18.1/postgresql-17.7/contrib/postgres_fdw/postgres_fdw.c:1900: 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): [#def75]
postgresql-18.1/postgresql-17.7/contrib/postgres_fdw/postgres_fdw.c:1900: 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): [#def76]
postgresql-18.1/postgresql-17.7/contrib/postgres_fdw/postgres_fdw.c:1900: 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): [#def77]
postgresql-18.1/postgresql-17.7/contrib/postgres_fdw/postgres_fdw.c:2609: 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): [#def78]
postgresql-18.1/postgresql-17.7/contrib/postgres_fdw/postgres_fdw.c:2609: 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): [#def79]
postgresql-18.1/postgresql-17.7/contrib/postgres_fdw/postgres_fdw.c:2609: 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): [#def80]
postgresql-18.1/postgresql-17.7/contrib/postgres_fdw/postgres_fdw.c:6985: 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): [#def81]
postgresql-18.1/postgresql-17.7/contrib/postgres_fdw/postgres_fdw.c:7234: 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): [#def82]
postgresql-18.1/postgresql-17.7/contrib/postgres_fdw/postgres_fdw.c:7601: warning[nullPointer]: Possible null pointer dereference: fsstate
Error: GCC_ANALYZER_WARNING (CWE-457): [#def83]
postgresql-18.1/postgresql-17.7/contrib/seg/segparse.c:971:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18.1/postgresql-17.7/contrib/seg/segparse.c:929:6: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/contrib/seg/segparse.c:935:28: branch_true: ...to here
postgresql-18.1/postgresql-17.7/contrib/seg/segparse.c:958:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18.1/postgresql-17.7/contrib/seg/segparse.c:960:7: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/seg/segparse.c:969:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/seg/segparse.c:971:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/seg/segparse.c:971:9: danger: use of uninitialized value ‘yyss’ here
Error: CPPCHECK_WARNING (CWE-476): [#def84]
postgresql-18.1/postgresql-17.7/contrib/seg/segscan.c:1605: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def85]
postgresql-18.1/postgresql-17.7/contrib/seg/segscan.c:1606: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:160:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘argtypes’
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:75:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:80:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:85:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:101:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:105:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:111:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:119:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:129:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:133:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:133:21: branch_true: following ‘true’ branch (when ‘i < nkeys’)...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:136:76: branch_true: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:139:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:146:22: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:153:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:159:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:159:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:160:33: branch_true: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:160:25: danger: dereference of NULL ‘argtypes + (long unsigned int)i * 4’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:407:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘argtypes’
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:275:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:280:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:285:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:285:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:290:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:297:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:299:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:306:12: branch_false: following ‘false’ branch (when ‘nargs > 4’)...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:311:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:312:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:315:18: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:322:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:331:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:339:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:349:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:355:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:355:17: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:361:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:361:21: branch_true: following ‘true’ branch (when ‘i < nkeys’)...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:364:76: branch_true: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:367:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:374:22: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:381:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:392:20: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:392:20: branch_true: following ‘true’ branch (when ‘newtuple’ is non-NULL)...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:394:46: branch_true: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:398:28: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:401:34: branch_false: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:402:28: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:406:21: branch_true: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:406:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:407:33: branch_true: ...to here
postgresql-18.1/postgresql-17.7/contrib/spi/refint.c:407:25: danger: dereference of NULL ‘argtypes + (long unsigned int)i * 4’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def88]
postgresql-18.1/postgresql-17.7/src/backend/access/heap/heapam.c:10056:63: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘<unknown>’
postgresql-18.1/postgresql-17.7/src/backend/access/heap/heapam.c:9930:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/access/heap/heapam.c:9971:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/access/heap/heapam.c:10002:12: branch_true: following ‘true’ branch (when ‘newaction == 0’)...
postgresql-18.1/postgresql-17.7/src/backend/access/heap/heapam.c:10009:27: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/access/heap/heapam.c:10015:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/access/heap/heapam.c:10018:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/access/heap/heapam.c:10018:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/access/heap/heapam.c:10021:25: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/access/heap/heapam.c:10024:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/access/heap/heapam.c:10031:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/access/heap/heapam.c:10045:20: branch_true: following ‘true’ branch (when ‘prefixlen != 0’)...
postgresql-18.1/postgresql-17.7/src/backend/access/heap/heapam.c:10050:31: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/access/heap/heapam.c:10056:63: danger: dereference of NULL ‘oldtup.t_data’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def89]
postgresql-18.1/postgresql-17.7/src/backend/access/transam/xact.c:6051:76: warning[-Wanalyzer-null-argument]: use of NULL ‘twophase_gid’ where non-null expected
postgresql-18.1/postgresql-17.7/src/backend/access/transam/xact.c:5162:1: enter_function: entry to ‘AbortSubTransaction’
postgresql-18.1/postgresql-17.7/src/backend/access/transam/xact.c:5219:9: call_function: calling ‘ShowTransactionState’ from ‘AbortSubTransaction’
postgresql-18.1/postgresql-17.7/src/backend/access/transam/xact.c:5219:9: return_function: returning to ‘AbortSubTransaction’ from ‘ShowTransactionState’
postgresql-18.1/postgresql-17.7/src/backend/access/transam/xact.c:5255:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/access/transam/xact.c:5257:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/access/transam/xact.c:5267:24: call_function: calling ‘RecordTransactionAbort’ from ‘AbortSubTransaction’
Error: CPPCHECK_WARNING (CWE-476): [#def90]
postgresql-18.1/postgresql-17.7/src/backend/bootstrap/bootscanner.c:1819: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def91]
postgresql-18.1/postgresql-17.7/src/backend/bootstrap/bootscanner.c:1820: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
postgresql-18.1/postgresql-17.7/src/backend/bootstrap/bootscanner.c:1981:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18.1/postgresql-17.7/src/backend/bootstrap/bootscanner.c:1967:17: enter_function: entry to ‘boot_yy_scan_buffer’
postgresql-18.1/postgresql-17.7/src/backend/bootstrap/bootscanner.c:1977:24: call_function: inlined call to ‘boot_yyalloc’ from ‘boot_yy_scan_buffer’
postgresql-18.1/postgresql-17.7/src/backend/bootstrap/bootscanner.c:1978:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/bootstrap/bootscanner.c:1981:25: branch_false: ...to here
postgresql-18.1/postgresql-17.7/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): [#def93]
postgresql-18.1/postgresql-17.7/src/backend/bootstrap/bootscanner.c:2033:26: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql-18.1/postgresql-17.7/src/backend/bootstrap/bootscanner.c:2017:17: enter_function: entry to ‘boot_yy_scan_bytes’
postgresql-18.1/postgresql-17.7/src/backend/bootstrap/bootscanner.c:2026:24: call_function: inlined call to ‘boot_yyalloc’ from ‘boot_yy_scan_bytes’
postgresql-18.1/postgresql-17.7/src/backend/bootstrap/bootscanner.c:2027:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/bootstrap/bootscanner.c:2027:12: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/bootstrap/bootscanner.c:2035:6: call_function: calling ‘boot_yy_scan_buffer’ from ‘boot_yy_scan_bytes’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def94]
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:600:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘thisdata’
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:280:1: enter_function: entry to ‘do_analyze_rel’
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:401:29: branch_false: following ‘false’ branch (when ‘i > attr_cnt’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:419:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:419:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:428:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:428:17: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:430:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:440:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:489:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:489:21: branch_false: following ‘false’ branch (when ‘attr_cnt <= i’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:489:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:494:23: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:510:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:519:9: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:519:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:522:12: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:527:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:537:12: branch_true: following ‘true’ branch (when ‘numrows > 0’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:542:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:550:29: branch_false: following ‘false’ branch (when ‘attr_cnt <= i’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:579:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:579:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:585:17: call_function: inlined call to ‘MemoryContextSwitchTo’ from ‘do_analyze_rel’
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:593:17: call_function: inlined call to ‘update_attstats’ from ‘do_analyze_rel’
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:596:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:596:31: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:598:60: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:600:25: danger: dereference of NULL ‘thisdata’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:653:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘thisdata’
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:401:29: branch_false: following ‘false’ branch (when ‘i > attr_cnt’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:419:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:419:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:428:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:428:17: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:430:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:440:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:489:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:489:21: branch_false: following ‘false’ branch (when ‘attr_cnt <= i’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:489:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:494:23: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:510:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:519:9: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:519:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:522:12: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:527:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:623:12: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:627:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:648:31: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:650:60: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:653:47: danger: dereference of NULL ‘thisdata’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def96]
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:848:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘thisdata’
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:280:1: enter_function: entry to ‘do_analyze_rel’
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:401:29: branch_false: following ‘false’ branch (when ‘i > attr_cnt’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:419:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:419:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:428:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:428:17: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:430:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:440:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:489:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:489:21: branch_false: following ‘false’ branch (when ‘attr_cnt <= i’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:489:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:494:23: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:510:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:519:9: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:519:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:522:12: branch_false: following ‘false’ branch (when ‘inh == 0’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:527:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:537:12: branch_true: following ‘true’ branch (when ‘numrows > 0’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:542:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:550:29: branch_false: following ‘false’ branch (when ‘attr_cnt <= i’)...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:579:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:579:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:580:25: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/commands/analyze.c:580:25: call_function: calling ‘compute_index_stats’ from ‘do_analyze_rel’
Error: CPPCHECK_WARNING (CWE-457): [#def97]
postgresql-18.1/postgresql-17.7/src/backend/commands/tablecmds.c:12667: error[legacyUninitvar]: Uninitialized variable: contype
Error: CPPCHECK_WARNING (CWE-457): [#def98]
postgresql-18.1/postgresql-17.7/src/backend/libpq/auth-scram.c:1174: warning[uninitvar]: Uninitialized variable: ClientKey
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
postgresql-18.1/postgresql-17.7/src/backend/main/main.c:196:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(get_user_name_or_exit(progname))’
postgresql-18.1/postgresql-17.7/src/backend/main/main.c:147:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/main/main.c:152:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/main/main.c:185:12: branch_true: following ‘true’ branch (when ‘argc > 1’)...
postgresql-18.1/postgresql-17.7/src/backend/main/main.c:185:25: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/main/main.c:185:13: branch_false: following ‘false’ branch (when the strings are non-equal)...
postgresql-18.1/postgresql-17.7/src/backend/main/main.c:187:30: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/main/main.c:187:18: branch_false: following ‘false’ branch (when the strings are non-equal)...
postgresql-18.1/postgresql-17.7/src/backend/main/main.c:193:30: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/main/main.c:193:18: branch_false: following ‘false’ branch (when the strings are non-equal)...
postgresql-18.1/postgresql-17.7/src/backend/main/main.c:195:30: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/main/main.c:195:18: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18.1/postgresql-17.7/src/backend/main/main.c:197:60: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/main/main.c:197:60: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/main/main.c:196: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): [#def100]
postgresql-18.1/postgresql-17.7/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): [#def101]
postgresql-18.1/postgresql-17.7/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): [#def102]
postgresql-18.1/postgresql-17.7/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): [#def103]
postgresql-18.1/postgresql-17.7/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: CPPCHECK_WARNING (CWE-476): [#def104]
postgresql-18.1/postgresql-17.7/src/backend/replication/repl_scanner.c:2050: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def105]
postgresql-18.1/postgresql-17.7/src/backend/replication/repl_scanner.c:2051: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
postgresql-18.1/postgresql-17.7/src/backend/replication/repl_scanner.c:2212:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18.1/postgresql-17.7/src/backend/replication/repl_scanner.c:2198:17: enter_function: entry to ‘replication_yy_scan_buffer’
postgresql-18.1/postgresql-17.7/src/backend/replication/repl_scanner.c:2208:24: call_function: inlined call to ‘replication_yyalloc’ from ‘replication_yy_scan_buffer’
postgresql-18.1/postgresql-17.7/src/backend/replication/repl_scanner.c:2209:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/replication/repl_scanner.c:2212:25: branch_false: ...to here
postgresql-18.1/postgresql-17.7/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): [#def107]
postgresql-18.1/postgresql-17.7/src/backend/replication/repl_scanner.c:2264:26: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql-18.1/postgresql-17.7/src/backend/replication/repl_scanner.c:2248:17: enter_function: entry to ‘replication_yy_scan_bytes’
postgresql-18.1/postgresql-17.7/src/backend/replication/repl_scanner.c:2257:24: call_function: inlined call to ‘replication_yyalloc’ from ‘replication_yy_scan_bytes’
postgresql-18.1/postgresql-17.7/src/backend/replication/repl_scanner.c:2258:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/replication/repl_scanner.c:2258:12: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/replication/repl_scanner.c:2266:6: call_function: calling ‘replication_yy_scan_buffer’ from ‘replication_yy_scan_bytes’
Error: CPPCHECK_WARNING (CWE-476): [#def108]
postgresql-18.1/postgresql-17.7/src/backend/replication/syncrep_scanner.c:1685: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def109]
postgresql-18.1/postgresql-17.7/src/backend/replication/syncrep_scanner.c:1686: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
postgresql-18.1/postgresql-17.7/src/backend/replication/syncrep_scanner.c:1847:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
postgresql-18.1/postgresql-17.7/src/backend/replication/syncrep_scanner.c:1833:17: enter_function: entry to ‘syncrep_yy_scan_buffer’
postgresql-18.1/postgresql-17.7/src/backend/replication/syncrep_scanner.c:1843:24: call_function: inlined call to ‘syncrep_yyalloc’ from ‘syncrep_yy_scan_buffer’
postgresql-18.1/postgresql-17.7/src/backend/replication/syncrep_scanner.c:1844:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/replication/syncrep_scanner.c:1847:25: branch_false: ...to here
postgresql-18.1/postgresql-17.7/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): [#def111]
postgresql-18.1/postgresql-17.7/src/backend/replication/syncrep_scanner.c:1899:26: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
postgresql-18.1/postgresql-17.7/src/backend/replication/syncrep_scanner.c:1883:17: enter_function: entry to ‘syncrep_yy_scan_bytes’
postgresql-18.1/postgresql-17.7/src/backend/replication/syncrep_scanner.c:1892:24: call_function: inlined call to ‘syncrep_yyalloc’ from ‘syncrep_yy_scan_bytes’
postgresql-18.1/postgresql-17.7/src/backend/replication/syncrep_scanner.c:1893:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/replication/syncrep_scanner.c:1893:12: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/replication/syncrep_scanner.c:1901:6: call_function: calling ‘syncrep_yy_scan_buffer’ from ‘syncrep_yy_scan_bytes’
Error: CPPCHECK_WARNING (CWE-476): [#def112]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/jsonpath_scan.c:5369: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def113]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/jsonpath_scan.c:5370: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-126): [#def114]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/numeric.c:9330:30: warning[-Wanalyzer-out-of-bounds]: buffer over-read
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/numeric.c:11109:1: enter_function: entry to ‘power_var_int’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/numeric.c:11153:12: branch_false: following ‘false’ branch (when ‘f <= 1.31072e+5’)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/numeric.c:11157:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/numeric.c:11157:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/numeric.c:11169:43: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/numeric.c:11204:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/numeric.c:11229:22: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/numeric.c:11247:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/numeric.c:11248:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/numeric.c:11252:16: branch_false: following ‘false’ branch (when ‘mask == 0’)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/numeric.c:11298:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/numeric.c:11298:9: call_function: calling ‘free_var’ from ‘power_var_int’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/numeric.c:11298:9: return_function: returning to ‘power_var_int’ from ‘free_var’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/numeric.c:11301:12: branch_true: following ‘true’ branch (when ‘neg != 0’)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/numeric.c:11302:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/numeric.c:11302:17: call_function: calling ‘div_var_fast’ from ‘power_var_int’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.currency_symbol’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:643:37: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def116]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.decimal_point’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:628:35: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def117]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.grouping’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:630:30: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def118]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.int_curr_symbol’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:642:37: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def119]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_decimal_point’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:644:39: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def120]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_grouping’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:646:34: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def121]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_thousands_sep’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:645:39: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def122]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.negative_sign’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:648:35: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def123]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.positive_sign’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:647:35: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def124]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.thousands_sep’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:629:35: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:672:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def125]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.currency_symbol’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:643:37: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def126]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.decimal_point’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:628:35: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def127]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.grouping’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:630:30: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def128]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.int_curr_symbol’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:642:37: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def129]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_decimal_point’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:644:39: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def130]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_grouping’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:646:34: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def131]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_thousands_sep’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:645:39: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def132]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.negative_sign’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:648:35: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def133]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.positive_sign’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:647:35: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def134]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.thousands_sep’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:629:35: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:674:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def135]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.currency_symbol’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:643:37: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def136]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.decimal_point’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:628:35: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def137]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.grouping’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:630:30: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def138]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.int_curr_symbol’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:642:37: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def139]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_decimal_point’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:644:39: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def140]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_grouping’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:646:34: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def141]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_thousands_sep’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:645:39: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def142]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.negative_sign’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:648:35: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def143]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.positive_sign’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:647:35: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def144]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.thousands_sep’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:629:35: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:686:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def145]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.currency_symbol’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:643:37: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def146]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.decimal_point’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:628:35: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def147]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.grouping’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:630:30: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def148]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.int_curr_symbol’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:642:37: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def149]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_decimal_point’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:644:39: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def150]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_grouping’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:646:34: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def151]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_thousands_sep’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:645:39: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def152]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.negative_sign’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:648:35: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def153]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.positive_sign’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:647:35: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def154]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.thousands_sep’
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:560:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:564:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:582:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:586:12: branch_false: following ‘false’ branch (when ‘save_lc_monetary’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:588:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:591:12: branch_false: following ‘false’ branch (when ‘save_lc_numeric’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:593:27: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:629:35: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:671:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:673:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: setjmp: ‘sigsetjmp’ called here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:681:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:687:17: throw: if ‘pfree’ throws an exception...
postgresql-18.1/postgresql-17.7/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: CPPCHECK_WARNING (CWE-457): [#def155]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:2135: error[legacyUninitvar]: Uninitialized variable: result
Error: CPPCHECK_WARNING (CWE-457): [#def156]
postgresql-18.1/postgresql-17.7/src/backend/utils/adt/pg_locale.c:2171: error[legacyUninitvar]: Uninitialized variable: result
Error: CPPCHECK_WARNING (CWE-476): [#def157]
postgresql-18.1/postgresql-17.7/src/backend/utils/misc/guc-file.c:1670: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def158]
postgresql-18.1/postgresql-17.7/src/backend/utils/misc/guc-file.c:1671: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
postgresql-18.1/postgresql-17.7/src/backend/utils/misc/guc-file.l:384:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18.1/postgresql-17.7/src/backend/utils/misc/guc-file.l:573:1: enter_function: entry to ‘ParseConfigDirectory’
postgresql-18.1/postgresql-17.7/src/backend/utils/misc/guc-file.l:586:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/misc/guc-file.l:586:12: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/misc/guc-file.l:593:25: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/utils/misc/guc-file.l:595:47: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/utils/misc/guc-file.l:595:22: call_function: calling ‘ParseConfigFile’ from ‘ParseConfigDirectory’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def160]
postgresql-18.1/postgresql-17.7/src/bin/pg_basebackup/bbstreamer_file.c:364:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "wb")’
postgresql-18.1/postgresql-17.7/src/bin/pg_basebackup/bbstreamer_file.c:359:16: acquire_resource: opened here
postgresql-18.1/postgresql-17.7/src/bin/pg_basebackup/bbstreamer_file.c:360:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_basebackup/bbstreamer_file.c:364:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/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-775): [#def161]
postgresql-18.1/postgresql-17.7/src/bin/pg_basebackup/bbstreamer_gzip.c:105:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
postgresql-18.1/postgresql-17.7/src/bin/pg_basebackup/bbstreamer_gzip.c:91:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/bin/pg_basebackup/bbstreamer_gzip.c:100:46: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_basebackup/bbstreamer_gzip.c:100:46: acquire_resource: opened here
postgresql-18.1/postgresql-17.7/src/bin/pg_basebackup/bbstreamer_gzip.c:102:20: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
postgresql-18.1/postgresql-17.7/src/bin/pg_basebackup/bbstreamer_gzip.c:105:36: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_basebackup/bbstreamer_gzip.c:105:36: throw: if ‘gzdopen’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def162]
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:500:49: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:362:29: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:364:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:367:40: branch_true: following ‘true’ branch (when ‘n_data_types_usage_checks > checknum’)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:377:66: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:471:36: branch_false: following ‘false’ branch (when ‘found == 0’)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:472:41: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:495:44: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:495:73: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:495:73: acquire_resource: opened here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:495:45: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:498:44: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:498:44: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:500:49: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:500:49: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:500: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-775): [#def163]
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1262:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1222:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1230:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1234:25: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1242:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1258:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1258:57: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1258:57: acquire_resource: opened here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1258:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1260:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1260:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1262:33: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1262:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1262: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-775): [#def164]
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1356:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1308:25: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1319:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1351:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1352:43: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1352:43: acquire_resource: opened here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1351:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1354:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1354:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1356:33: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1356:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1356: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-775): [#def165]
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1484:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1426:29: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1429:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1479:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1480:43: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1480:43: acquire_resource: opened here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1479:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1482:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1482:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1484:33: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1484:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1484: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-775): [#def166]
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1560:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1532:25: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1540:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1556:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1556:57: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1556:57: acquire_resource: opened here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1556:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1558:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1558:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1560:33: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1560:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1560: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-775): [#def167]
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1637:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1607:29: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1614:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1633:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1633:57: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1633:57: acquire_resource: opened here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1633:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1635:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1635:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1637:33: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1637:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1637:33: danger: ‘script’ leaks here; was opened at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def168]
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1776:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1741:25: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1750:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1771:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1772:43: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1772:43: acquire_resource: opened here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1771:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1774:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1774:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1776:33: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1776:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1776:33: 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): [#def169]
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1776:33: warning[-Wanalyzer-malloc-leak]: leak of ‘script’
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1741:25: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1750:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1771:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1772:43: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1772:43: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1771:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1774:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1774:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1776:33: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1776:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/check.c:1776:33: 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): [#def170]
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:182:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:155:25: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:162:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:57: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:57: acquire_resource: opened here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:178:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:178:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:182:33: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:182:33: throw: if ‘initPQExpBuffer’ throws an exception...
postgresql-18.1/postgresql-17.7/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-775): [#def171]
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:183:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:155:25: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:162:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:57: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:57: acquire_resource: opened here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:178:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:178:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:182:33: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:183:33: throw: if ‘appendPsqlMetaConnect’ throws an exception...
postgresql-18.1/postgresql-17.7/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-775): [#def172]
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:185:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:155:25: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:162:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:57: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:57: acquire_resource: opened here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:178:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:178:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:182:33: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:185:33: throw: if ‘termPQExpBuffer’ throws an exception...
postgresql-18.1/postgresql-17.7/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-775): [#def173]
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:188:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:155:25: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:162:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:57: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:57: acquire_resource: opened here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:178:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:178:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:182:33: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:188:25: throw: if ‘quote_identifier’ throws an exception...
postgresql-18.1/postgresql-17.7/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-775): [#def174]
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:189:58: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:155:25: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:162:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:28: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:57: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:57: acquire_resource: opened here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:176:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:178:28: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:178:28: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:182:33: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/bin/pg_upgrade/version.c:189:58: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def175]
postgresql-18.1/postgresql-17.7/src/common/cryptohash_openssl.c:148:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
postgresql-18.1/postgresql-17.7/src/common/cryptohash_openssl.c:135:15: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/common/cryptohash_openssl.c:136:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/common/cryptohash_openssl.c:136:12: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/common/cryptohash_openssl.c:148:9: throw: if ‘ERR_clear_error’ throws an exception...
postgresql-18.1/postgresql-17.7/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: GCC_ANALYZER_WARNING (CWE-401): [#def176]
postgresql-18.1/postgresql-17.7/src/common/hmac_openssl.c:141:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
postgresql-18.1/postgresql-17.7/src/common/hmac_openssl.c:126:15: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/common/hmac_openssl.c:127:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/common/hmac_openssl.c:129:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/common/hmac_openssl.c:141:9: throw: if ‘ERR_clear_error’ throws an exception...
postgresql-18.1/postgresql-17.7/src/common/hmac_openssl.c:141: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): [#def177]
postgresql-18.1/postgresql-17.7/src/common/hmac_openssl.c:148:24: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
postgresql-18.1/postgresql-17.7/src/common/hmac_openssl.c:126:15: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/common/hmac_openssl.c:127:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/common/hmac_openssl.c:129:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/common/hmac_openssl.c:148:24: throw: if ‘HMAC_CTX_new’ throws an exception...
postgresql-18.1/postgresql-17.7/src/common/hmac_openssl.c:148: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-476): [#def178]
postgresql-18.1/postgresql-17.7/src/include/storage/bufpage.h:340:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘childpage’
postgresql-18.1/postgresql-17.7/src/backend/access/gin/ginbtree.c:816:1: enter_function: entry to ‘ginInsertValue’
postgresql-18.1/postgresql-17.7/src/backend/access/gin/ginbtree.c:822:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/backend/access/gin/ginbtree.c:823:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/backend/access/gin/ginbtree.c:823:17: call_function: calling ‘ginFinishOldSplit’ from ‘ginInsertValue’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def179]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/connect.c:166:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/connect.c:158:1: enter_function: entry to ‘ECPGsetcommit’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/connect.c:160:34: call_function: calling ‘ecpg_get_connection’ from ‘ECPGsetcommit’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/connect.c:160:34: return_function: returning to ‘ECPGsetcommit’ from ‘ecpg_get_connection’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/connect.c:163:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/connect.c:166:9: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/connect.c:166:9: danger: dereference of NULL ‘ecpg_get_connection(connection_name)’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def180]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:42:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/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): [#def181]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:143:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:332:38: call_function: calling ‘get_int_item’ from ‘ECPGget_desc’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def182]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:219:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:322:38: call_function: calling ‘get_char_item’ from ‘ECPGget_desc’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def183]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:252:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:252:9: throw: if ‘ecpg_init_sqlca’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def184]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: throw: if ‘PQntuples’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def185]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:34: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch (when ‘index > 0’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:34: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:34: throw: if ‘PQnfields’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def186]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:264:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:264:17: throw: if ‘ecpg_raise’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def187]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:269:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:269:9: throw: if ‘ecpg_log’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def188]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:322:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:322:38: throw: if ‘PQfname’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def189]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:328:33: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:322:38: call_function: calling ‘get_char_item’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:322:38: return_function: returning to ‘ECPGget_desc’ from ‘get_char_item’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:322:36: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:328:33: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:328:33: throw: if ‘ecpg_log’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def190]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:350:74: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:350:74: throw: if ‘PQfmod’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def191]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:360:73: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:360:73: throw: if ‘PQfmod’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def192]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:370:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:370:38: throw: if ‘PQfsize’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def193]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:380:73: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:380:73: throw: if ‘PQfmod’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def194]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:390:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:390:38: throw: if ‘PQftype’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def195]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:400:73: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:400:73: throw: if ‘PQftype’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def196]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:410:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:410:38: throw: if ‘PQntuples’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def197]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:429:41: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:422:33: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:427:36: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:427:36: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:429:41: throw: if ‘ecpg_log’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def198]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:431:41: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:422:33: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:427:36: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:427:36: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:431:41: throw: if ‘ecpg_raise’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def199]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:438:68: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:422:33: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:427:36: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:436:36: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:438:68: throw: if ‘ecpg_auto_alloc’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def200]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:462:33: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:462:33: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def201]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:463:33: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:253:22: call_function: inlined call to ‘ecpg_result_by_descriptor’ from ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:254:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:260:19: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:262:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:278:16: branch_true: following ‘true’ branch (when ‘type != 16’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:287:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:463:33: throw: if ‘ecpg_raise’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def202]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:720:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:605:1: enter_function: entry to ‘ECPGset_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:612:16: call_function: calling ‘ecpg_find_desc’ from ‘ECPGset_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:612:16: return_function: returning to ‘ECPGset_desc’ from ‘ecpg_find_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:613:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:616:14: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:634:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:637:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:637:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:646:20: branch_true: following ‘true’ branch (when ‘itemtype == 16’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:724:1: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:720:9: throw: if ‘ecpg_free’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def203]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:842:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:234:1: enter_function: entry to ‘ECPGget_desc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:244:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:251:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/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): [#def204]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:912:47: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:912:47: throw: if ‘PQdescribePrepared’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def205]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:913:46: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:913:46: throw: if ‘ecpg_check_PQresult’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def206]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:916:41: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:916:41: throw: if ‘PQclear’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def207]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:929:55: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:929:55: throw: if ‘PQdescribePrepared’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def208]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:930:54: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:930:54: throw: if ‘ecpg_check_PQresult’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def209]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:933:57: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:933:57: throw: if ‘ecpg_build_compat_sqlda’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def210]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:950:49: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:934:52: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:950:49: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:950:49: throw: if ‘PQclear’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def211]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:957:55: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:957:55: throw: if ‘PQdescribePrepared’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def212]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:958:54: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:958:54: throw: if ‘ecpg_check_PQresult’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def213]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:961:57: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:961:57: throw: if ‘ecpg_build_native_sqlda’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def214]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:978:49: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:856:12: branch_false: following ‘false’ branch (when ‘input == 0’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:862:15: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:863:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:869:16: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:870:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:876:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:886:20: branch_false: following ‘false’ branch (when ‘type != 28’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:890:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:962:52: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:978:49: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/descriptor.c:978:49: throw: if ‘PQclear’ throws an exception...
postgresql-18.1/postgresql-17.7/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): [#def215]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:1960:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:2277:1: enter_function: entry to ‘ECPGdo’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:2282:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:2283:15: call_function: calling ‘ecpg_do’ from ‘ECPGdo’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def216]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:1964:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:2277:1: enter_function: entry to ‘ECPGdo’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:2282:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:2283:15: call_function: calling ‘ecpg_do’ from ‘ECPGdo’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def217]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:1966:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:2277:1: enter_function: entry to ‘ECPGdo’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:2282:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:2283:15: call_function: calling ‘ecpg_do’ from ‘ECPGdo’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def218]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:1968:14: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:2277:1: enter_function: entry to ‘ECPGdo’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:2282:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:2283:15: call_function: calling ‘ecpg_do’ from ‘ECPGdo’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def219]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:1971:37: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:2277:1: enter_function: entry to ‘ECPGdo’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:2282:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/execute.c:2283:15: call_function: calling ‘ecpg_do’ from ‘ECPGdo’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def220]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/misc.c:271:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/misc.c:232:1: enter_function: entry to ‘ecpg_log’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/misc.c:235:33: call_function: calling ‘ECPGget_sqlca’ from ‘ecpg_log’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/misc.c:235:33: return_function: returning to ‘ecpg_log’ from ‘ECPGget_sqlca’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/misc.c:245:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/misc.c:249:23: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/misc.c:257:12: branch_false: following ‘false’ branch (when ‘fmt’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/misc.c:260:13: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/misc.c:268:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/misc.c:270:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/misc.c:270:17: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/ecpglib/misc.c:271:17: throw: if ‘pg_vfprintf’ throws an exception...
postgresql-18.1/postgresql-17.7/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: COMPILER_WARNING (CWE-704): [#def221]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/pgtypeslib/datetime.c: scope_hint: In function ‘PGTYPESdate_defmt_asc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/pgtypeslib/datetime.c:357:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def222]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/pgtypeslib/datetime.c:357:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def223]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/pgtypeslib/datetime.c:358:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def224]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/pgtypeslib/datetime.c:358:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def225]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/pgtypeslib/datetime.c:359:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def226]
postgresql-18.1/postgresql-17.7/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): [#def227]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/pgtypeslib/timestamp.c:759:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘replace_val’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/pgtypeslib/timestamp.c:782:1: enter_function: entry to ‘PGTYPEStimestamp_fmt_asc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/pgtypeslib/timestamp.c:793:16: call_function: calling ‘dttofmtasc_replace’ from ‘PGTYPEStimestamp_fmt_asc’
Error: CPPCHECK_WARNING (CWE-476): [#def228]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/pgc.c:4643: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def229]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/pgc.c:4644: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-401): [#def230]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/pgc.l:1607: error[memleakOnRealloc]: Common realloc mistake: 'literalbuf' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def231]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/pgc.l:1622: error[memleakOnRealloc]: Common realloc mistake: 'literalbuf' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-457): [#def232]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.c:39445:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.c:39400:6: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.c:39406:34: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.c:39432:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.c:39434:7: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.c:39443:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.c:39443:12: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.c:39445:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def233]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.c:39576:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.c:39400:6: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.c:39469:6: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.c:39469:6: branch_false: following ‘false’ branch (when ‘yystate != 3’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.c:39472:3: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.c:39484:6: branch_true: following ‘true’ branch (when ‘yyn == -6472’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.c:39485:5: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.c:39556:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.c:39558:3: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.c:39576:3: danger: use of uninitialized value ‘*<unknown>’ here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def234]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:79:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:116:1: enter_function: entry to ‘mmfatal’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:120:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:121:9: call_function: calling ‘vmmerror’ from ‘mmfatal’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def235]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:84:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:106:1: enter_function: entry to ‘mmerror’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:110:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:111:9: call_function: calling ‘vmmerror’ from ‘mmerror’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def236]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:87:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:116:1: enter_function: entry to ‘mmfatal’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:120:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:121:9: call_function: calling ‘vmmerror’ from ‘mmfatal’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def237]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:91:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:116:1: enter_function: entry to ‘mmfatal’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:120:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:121:9: call_function: calling ‘vmmerror’ from ‘mmfatal’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def238]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:141:35: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:153:1: enter_function: entry to ‘cat_str’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:159:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:164:21: branch_true: following ‘true’ branch (when ‘i < count’)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:165:27: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/preproc.y:165:27: call_function: calling ‘cat2_str’ from ‘cat_str’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def239]
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/type.c:590:50: warning[-Wanalyzer-null-argument]: use of NULL ‘ind_name’ where non-null expected
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/type.c:581:1: enter_function: entry to ‘ECPGdump_a_struct’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/type.c:589:37: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/type.c:589:37: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/type.c:590:41: call_function: calling ‘mm_alloc’ from ‘ECPGdump_a_struct’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/type.c:590:41: return_function: returning to ‘ECPGdump_a_struct’ from ‘mm_alloc’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/type.c:599:12: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/type.c:601:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/type.c:601:17: branch_true: following ‘true’ branch (when ‘ind_type’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/type.c:603:21: call_function: inlined call to ‘atoi’ from ‘ECPGdump_a_struct’
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/type.c:603:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/type.c:604:25: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/type.c:612:35: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: following ‘true’ branch (when ‘ind_p’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/type.c:614:17: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/ecpg/preproc/type.c:614:17: call_function: calling ‘ECPGdump_a_type’ from ‘ECPGdump_a_struct’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:504:37: warning[-Wanalyzer-malloc-leak]: leak of ‘cbind_input’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:469:12: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:473:33: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:483:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:490:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:495:31: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:496:20: branch_false: following ‘false’ branch (when ‘cbind_input’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:501:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:504:37: throw: if ‘pg_b64_enc_len’ throws an exception...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:504: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): [#def241]
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:505:22: warning[-Wanalyzer-malloc-leak]: leak of ‘cbind_input’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:469:12: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:473:33: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:483:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:490:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:495:31: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:496:20: branch_false: following ‘false’ branch (when ‘cbind_input’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:501:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:505:22: throw: if ‘enlargePQExpBuffer’ throws an exception...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:505: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): [#def242]
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:511:37: warning[-Wanalyzer-malloc-leak]: leak of ‘cbind_input’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:469:12: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:473:33: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:483:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:490:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:495:31: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:496:20: branch_false: following ‘false’ branch (when ‘cbind_input’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:501:17: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:505:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:512:83: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:511:37: throw: if ‘pg_b64_encode’ throws an exception...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-auth-scram.c:511: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): [#def243]
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:576:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:120:36: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:121:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:576:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:118:46: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:576:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:119:49: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:576:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:207:44: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:576:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:120:36: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:121:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:576:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:118:46: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:576:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:119:49: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:576:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:207:44: acquire_memory: allocated here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/postgresql-17.7/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: COMPILER_WARNING: [#def251]
postgresql-18.1/postgresql-17.7/src/port/pg_crc32c_sse42.c:38:32: note[note]: called from here
Error: COMPILER_WARNING: [#def252]
postgresql-18.1/postgresql-17.7/src/port/pg_crc32c_sse42.c:45:23: note[note]: called from here
Error: COMPILER_WARNING: [#def253]
postgresql-18.1/postgresql-17.7/src/port/pg_crc32c_sse42.c:64:23: note[note]: called from here
Error: GCC_ANALYZER_WARNING (CWE-688): [#def254]
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:813:25: warning[-Wanalyzer-null-argument]: use of NULL ‘dataptr’ where non-null expected
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:721:1: enter_function: entry to ‘brin_range_deserialize’
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:789:12: branch_false: following ‘false’ branch (when ‘datalen == 0’)...
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:798:9: branch_false: ...to here
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:798:21: branch_true: following ‘true’ branch (when ‘i < nvalues’)...
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:800:20: branch_true: ...to here
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:800:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:809:25: branch_false: ...to here
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:809:25: branch_true: following ‘true’ branch (when ‘typlen > 0’)...
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:811:44: call_function: inlined call to ‘PointerGetDatum’ from ‘brin_range_deserialize’
postgresql-18.1/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): [#def255]
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:822:25: warning[-Wanalyzer-null-argument]: use of NULL ‘dataptr’ where non-null expected
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:789:12: branch_false: following ‘false’ branch (when ‘datalen == 0’)...
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:798:9: branch_false: ...to here
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:798:21: branch_true: following ‘true’ branch (when ‘i < nvalues’)...
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:800:20: branch_true: ...to here
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:809:25: branch_false: following ‘false’ branch (when ‘typlen <= 0’)...
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:818:25: branch_false: ...to here
postgresql-18.1/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): [#def256]
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:832:25: warning[-Wanalyzer-null-argument]: use of NULL ‘dataptr’ where non-null expected
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:789:12: branch_false: following ‘false’ branch (when ‘datalen == 0’)...
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:798:9: branch_false: ...to here
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:798:21: branch_true: following ‘true’ branch (when ‘i < nvalues’)...
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:800:20: branch_true: ...to here
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:800:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:809:25: branch_false: ...to here
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:809:25: branch_false: following ‘false’ branch (when ‘typlen <= 0’)...
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:818:25: branch_false: ...to here
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:818:25: branch_false: following ‘false’ branch (when ‘typlen != -1’)...
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:826:25: branch_false: ...to here
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:826:25: branch_true: following ‘true’ branch (when ‘typlen == -2’)...
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:828:48: branch_true: ...to here
postgresql-18.1/src/backend/access/brin/brin_minmax_multi.c:832:25: danger: argument 1 (‘dataptr’) NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def257]
postgresql-18.1/src/backend/access/common/heaptuple.c:972: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: CPPCHECK_WARNING (CWE-476): [#def258]
postgresql-18.1/src/backend/access/common/heaptuple.c:973: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: CPPCHECK_WARNING (CWE-476): [#def259]
postgresql-18.1/src/backend/access/common/heaptuple.c:974: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: CPPCHECK_WARNING (CWE-476): [#def260]
postgresql-18.1/src/backend/access/common/heaptuple.c:975: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: CPPCHECK_WARNING (CWE-476): [#def261]
postgresql-18.1/src/backend/access/common/heaptuple.c:977: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: CPPCHECK_WARNING (CWE-476): [#def262]
postgresql-18.1/src/backend/access/common/heaptuple.c:981: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: CPPCHECK_WARNING (CWE-476): [#def263]
postgresql-18.1/src/backend/access/common/heaptuple.c:982: warning[nullPointer]: Possible null pointer dereference: targetMinimalTuple
Error: GCC_ANALYZER_WARNING (CWE-688): [#def264]
postgresql-18.1/src/backend/access/gin/ginbtree.c:576:25: warning[-Wanalyzer-null-argument]: use of NULL ‘newrootpg’ where non-null expected
postgresql-18.1/src/backend/access/gin/ginbtree.c:816:1: enter_function: entry to ‘ginInsertValue’
postgresql-18.1/src/backend/access/gin/ginbtree.c:822:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/access/gin/ginbtree.c:823:17: branch_true: ...to here
postgresql-18.1/src/backend/access/gin/ginbtree.c:823:17: call_function: calling ‘ginFinishOldSplit’ from ‘ginInsertValue’
Error: CPPCHECK_WARNING (CWE-457): [#def265]
postgresql-18.1/src/backend/access/gin/ginentrypage.c:630: error[legacyUninitvar]: Uninitialized variable: tupstore
Error: GCC_ANALYZER_WARNING (CWE-688): [#def266]
postgresql-18.1/src/backend/access/hash/hashpage.c:1531:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
postgresql-18.1/src/backend/access/hash/hashpage.c:1516:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/access/hash/hashpage.c:1521:21: branch_false: ...to here
postgresql-18.1/src/backend/access/hash/hashpage.c:1529:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/access/hash/hashpage.c:1530:25: branch_true: ...to here
postgresql-18.1/src/backend/access/hash/hashpage.c:1531:24: release_memory: using NULL here
postgresql-18.1/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): [#def267]
postgresql-18.1/src/backend/access/hash/hashpage.c:1531:17: warning[-Wanalyzer-null-argument]: use of NULL ‘*rel.rd_amcache’ where non-null expected
postgresql-18.1/src/backend/access/hash/hashpage.c:1559:1: enter_function: entry to ‘_hash_getbucketbuf_from_hashkey’
postgresql-18.1/src/backend/access/hash/hashpage.c:1573:17: call_function: calling ‘_hash_getcachedmetap’ from ‘_hash_getbucketbuf_from_hashkey’
postgresql-18.1/src/backend/access/hash/hashpage.c:1573:17: return_function: returning to ‘_hash_getbucketbuf_from_hashkey’ from ‘_hash_getcachedmetap’
postgresql-18.1/src/backend/access/hash/hashpage.c:1592:23: call_function: calling ‘_hash_getbuf’ from ‘_hash_getbucketbuf_from_hashkey’
postgresql-18.1/src/backend/access/hash/hashpage.c:1592:23: return_function: returning to ‘_hash_getbucketbuf_from_hashkey’ from ‘_hash_getbuf’
postgresql-18.1/src/backend/access/hash/hashpage.c:1601:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/access/hash/hashpage.c:1605:17: call_function: inlined call to ‘_hash_relbuf’ from ‘_hash_getbucketbuf_from_hashkey’
postgresql-18.1/src/backend/access/hash/hashpage.c:1606:25: call_function: calling ‘_hash_getcachedmetap’ from ‘_hash_getbucketbuf_from_hashkey’
Error: CPPCHECK_WARNING (CWE-457): [#def268]
postgresql-18.1/src/backend/access/heap/heapam.c:5909: error[legacyUninitvar]: Uninitialized variable: status
Error: CPPCHECK_WARNING (CWE-457): [#def269]
postgresql-18.1/src/backend/access/heap/heapam.c:6465: error[legacyUninitvar]: Uninitialized variable: ret
Error: GCC_ANALYZER_WARNING (CWE-404): [#def270]
postgresql-18.1/src/backend/access/index/amvalidate.c:178:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/backend/access/index/amvalidate.c:152:1: enter_function: entry to ‘check_amproc_signature’
postgresql-18.1/src/backend/access/index/amvalidate.c:162:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/access/index/amvalidate.c:164:35: call_function: inlined call to ‘GETSTRUCT’ from ‘check_amproc_signature’
postgresql-18.1/src/backend/access/index/amvalidate.c:170:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/backend/access/index/amvalidate.c:171:21: branch_true: following ‘true’ branch (when ‘i < maxargs’)...
postgresql-18.1/src/backend/access/index/amvalidate.c:173:41: branch_true: ...to here
postgresql-18.1/src/backend/access/index/amvalidate.c:178:26: throw: if ‘IsBinaryCoercible’ throws an exception...
postgresql-18.1/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): [#def271]
postgresql-18.1/src/backend/access/nbtree/nbtsplitloc.c:1163:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘split’
postgresql-18.1/src/backend/access/nbtree/nbtsplitloc.c:934:1: enter_function: entry to ‘_bt_strategy’
postgresql-18.1/src/backend/access/nbtree/nbtsplitloc.c:954:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/access/nbtree/nbtsplitloc.c:961:9: branch_true: ...to here
postgresql-18.1/src/backend/access/nbtree/nbtsplitloc.c:961:9: call_function: calling ‘_bt_interval_edges’ from ‘_bt_strategy’
postgresql-18.1/src/backend/access/nbtree/nbtsplitloc.c:961:9: return_function: returning to ‘_bt_strategy’ from ‘_bt_interval_edges’
postgresql-18.1/src/backend/access/nbtree/nbtsplitloc.c:962:20: release_memory: ‘leftinterval’ is NULL
postgresql-18.1/src/backend/access/nbtree/nbtsplitloc.c:962:20: call_function: calling ‘_bt_split_lastleft’ from ‘_bt_strategy’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def272]
postgresql-18.1/src/backend/access/nbtree/nbtsplitloc.c:1179:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘split’
postgresql-18.1/src/backend/access/nbtree/nbtsplitloc.c:934:1: enter_function: entry to ‘_bt_strategy’
postgresql-18.1/src/backend/access/nbtree/nbtsplitloc.c:954:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/access/nbtree/nbtsplitloc.c:961:9: branch_true: ...to here
postgresql-18.1/src/backend/access/nbtree/nbtsplitloc.c:961:9: call_function: calling ‘_bt_interval_edges’ from ‘_bt_strategy’
postgresql-18.1/src/backend/access/nbtree/nbtsplitloc.c:961:9: return_function: returning to ‘_bt_strategy’ from ‘_bt_interval_edges’
postgresql-18.1/src/backend/access/nbtree/nbtsplitloc.c:963:21: release_memory: ‘rightinterval’ is NULL
postgresql-18.1/src/backend/access/nbtree/nbtsplitloc.c:963:21: call_function: calling ‘_bt_split_firstright’ from ‘_bt_strategy’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def273]
postgresql-18.1/src/backend/access/spgist/spgscan.c:123:17: warning[-Wanalyzer-null-argument]: use of NULL ‘distances’ where non-null expected
postgresql-18.1/src/backend/access/spgist/spgscan.c:942:1: enter_function: entry to ‘spggetbitmap’
postgresql-18.1/src/backend/access/spgist/spgscan.c:952:9: call_function: calling ‘spgWalk’ from ‘spggetbitmap’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def274]
postgresql-18.1/src/backend/access/spgist/spgutils.c:803:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18.1/src/backend/access/spgist/spgutils.c:1002:1: enter_function: entry to ‘spgFormInnerTuple’
postgresql-18.1/src/backend/access/spgist/spgutils.c:1045:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/access/spgist/spgutils.c:1045:13: branch_false: ...to here
postgresql-18.1/src/backend/access/spgist/spgutils.c:1045:13: branch_false: following ‘false’ branch (when ‘nNodes <= 8191’)...
postgresql-18.1/src/backend/access/spgist/spgutils.c:1051:34: branch_false: ...to here
postgresql-18.1/src/backend/access/spgist/spgutils.c:1057:12: branch_true: following ‘true’ branch (when ‘hasPrefix != 0’)...
postgresql-18.1/src/backend/access/spgist/spgutils.c:1058:17: branch_true: ...to here
postgresql-18.1/src/backend/access/spgist/spgutils.c:1058:17: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/access/spgist/spgutils.c:1058:17: call_function: inlined call to ‘memcpyInnerDatum’ from ‘spgFormInnerTuple’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def275]
postgresql-18.1/src/backend/access/spgist/spgutils.c:808:17: warning[-Wanalyzer-null-argument]: use of NULL ‘target’ where non-null expected
postgresql-18.1/src/backend/access/spgist/spgutils.c:1002:1: enter_function: entry to ‘spgFormInnerTuple’
postgresql-18.1/src/backend/access/spgist/spgutils.c:1045:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/access/spgist/spgutils.c:1045:13: branch_false: ...to here
postgresql-18.1/src/backend/access/spgist/spgutils.c:1045:13: branch_false: following ‘false’ branch (when ‘nNodes <= 8191’)...
postgresql-18.1/src/backend/access/spgist/spgutils.c:1051:34: branch_false: ...to here
postgresql-18.1/src/backend/access/spgist/spgutils.c:1057:12: branch_true: following ‘true’ branch (when ‘hasPrefix != 0’)...
postgresql-18.1/src/backend/access/spgist/spgutils.c:1058:17: branch_true: ...to here
postgresql-18.1/src/backend/access/spgist/spgutils.c:1058:17: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/access/spgist/spgutils.c:1058:17: call_function: inlined call to ‘memcpyInnerDatum’ from ‘spgFormInnerTuple’
Error: CPPCHECK_WARNING (CWE-476): [#def276]
postgresql-18.1/src/backend/access/transam/twophase.c:1037: error[ctunullpointer]: Null pointer dereference: data
Error: CPPCHECK_WARNING (CWE-682): [#def277]
postgresql-18.1/src/backend/access/transam/xlog.c:1652: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-404): [#def278]
postgresql-18.1/src/backend/access/transam/xlogreader.c:79:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/backend/access/transam/xlogreader.c:78:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/backend/access/transam/xlogreader.c:79:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18.1/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: GCC_ANALYZER_WARNING (CWE-457): [#def279]
postgresql-18.1/src/backend/bootstrap/bootparse.c:1150:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18.1/src/backend/bootstrap/bootparse.c:1108:6: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/bootstrap/bootparse.c:1114:28: branch_true: ...to here
postgresql-18.1/src/backend/bootstrap/bootparse.c:1137:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18.1/src/backend/bootstrap/bootparse.c:1139:7: branch_false: ...to here
postgresql-18.1/src/backend/bootstrap/bootparse.c:1148:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/bootstrap/bootparse.c:1150:9: branch_false: ...to here
postgresql-18.1/src/backend/bootstrap/bootparse.c:1150:9: danger: use of uninitialized value ‘yyss’ here
Error: CPPCHECK_WARNING (CWE-768): [#def280]
postgresql-18.1/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): [#def281]
postgresql-18.1/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): [#def282]
postgresql-18.1/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): [#def283]
postgresql-18.1/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): [#def284]
postgresql-18.1/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): [#def285]
postgresql-18.1/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): [#def286]
postgresql-18.1/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): [#def287]
postgresql-18.1/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): [#def288]
postgresql-18.1/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): [#def289]
postgresql-18.1/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): [#def290]
postgresql-18.1/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): [#def291]
postgresql-18.1/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): [#def292]
postgresql-18.1/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): [#def293]
postgresql-18.1/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): [#def294]
postgresql-18.1/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): [#def295]
postgresql-18.1/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): [#def296]
postgresql-18.1/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): [#def297]
postgresql-18.1/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): [#def298]
postgresql-18.1/src/backend/catalog/partition.c:288:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘partexprs_item’
postgresql-18.1/src/backend/catalog/partition.c:255:1: enter_function: entry to ‘has_partition_attrs’
postgresql-18.1/src/backend/catalog/partition.c:263:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/catalog/partition.c:270:26: call_function: inlined call to ‘list_head’ from ‘has_partition_attrs’
postgresql-18.1/src/backend/catalog/partition.c:271:9: branch_false: ...to here
postgresql-18.1/src/backend/catalog/partition.c:271:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/catalog/partition.c:273:45: call_function: inlined call to ‘get_partition_col_attnum’ from ‘has_partition_attrs’
postgresql-18.1/src/backend/catalog/partition.c:275:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/catalog/partition.c:288:37: branch_false: ...to here
postgresql-18.1/src/backend/catalog/partition.c:288:37: danger: dereference of NULL ‘partexprs_item’
Error: COMPILER_WARNING (CWE-704): [#def299]
postgresql-18.1/src/backend/catalog/pg_type.c: scope_hint: In function ‘makeMultirangeTypeName’
postgresql-18.1/src/backend/catalog/pg_type.c:959:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def300]
postgresql-18.1/src/backend/catalog/pg_type.c:959:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: CPPCHECK_WARNING (CWE-768): [#def301]
postgresql-18.1/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): [#def302]
postgresql-18.1/src/backend/commands/conversioncmds.c:110: error[uninitvar]: Uninitialized variable: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def303]
postgresql-18.1/src/backend/commands/copy.c:339:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rel’
postgresql-18.1/src/backend/commands/copy.c:62:1: enter_function: entry to ‘DoCopy’
postgresql-18.1/src/backend/commands/copy.c:112:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/commands/copy.c:323:25: call_function: inlined call to ‘newNode’ from ‘DoCopy’
postgresql-18.1/src/backend/commands/copy.c:332:12: branch_true: following ‘true’ branch (when ‘is_from != 0’)...
postgresql-18.1/src/backend/commands/copy.c:339:21: branch_true: ...to here
postgresql-18.1/src/backend/commands/copy.c:339:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/commands/copy.c:339:38: branch_true: ...to here
postgresql-18.1/src/backend/commands/copy.c:339:38: danger: dereference of NULL ‘rel’
Error: CPPCHECK_WARNING (CWE-476): [#def304]
postgresql-18.1/src/backend/commands/extension.c:280: error[ctunullpointer]: Null pointer dereference: versionname
Error: CPPCHECK_WARNING (CWE-476): [#def305]
postgresql-18.1/src/backend/commands/extension.c:280: warning[nullPointer]: Possible null pointer dereference: versionname
Error: CPPCHECK_WARNING (CWE-476): [#def306]
postgresql-18.1/src/backend/commands/extension.c:3389: warning[nullPointer]: Possible null pointer dereference: versionName
Error: CPPCHECK_WARNING (CWE-457): [#def307]
postgresql-18.1/src/backend/commands/policy.c:128: error[legacyUninitvar]: Uninitialized variable: polcmd
Error: CPPCHECK_WARNING (CWE-768): [#def308]
postgresql-18.1/src/backend/commands/tablecmds.c:15851: 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): [#def309]
postgresql-18.1/src/backend/commands/tablecmds.c:15851: 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): [#def310]
postgresql-18.1/src/backend/commands/tablecmds.c:15859: 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: GCC_ANALYZER_WARNING (CWE-476): [#def311]
postgresql-18.1/src/backend/executor/execJunk.c:176:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
postgresql-18.1/src/backend/executor/execJunk.c:137:1: enter_function: entry to ‘ExecInitJunkFilterConversion’
postgresql-18.1/src/backend/executor/execJunk.c:166:12: branch_true: following ‘true’ branch (when ‘cleanLength > 0’)...
postgresql-18.1/src/backend/executor/execJunk.c:168:43: branch_true: ...to here
postgresql-18.1/src/backend/executor/execJunk.c:169:21: call_function: inlined call to ‘list_head’ from ‘ExecInitJunkFilterConversion’
postgresql-18.1/src/backend/executor/execJunk.c:170:17: branch_false: ...to here
postgresql-18.1/src/backend/executor/execJunk.c:170:29: branch_true: following ‘true’ branch (when ‘i < cleanLength’)...
postgresql-18.1/src/backend/executor/execJunk.c:172:29: branch_true: ...to here
postgresql-18.1/src/backend/executor/execJunk.c:176:46: danger: dereference of NULL ‘t’
Error: CPPCHECK_WARNING (CWE-476): [#def312]
postgresql-18.1/src/backend/executor/execProcnode.c:391: warning[nullPointer]: Possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def313]
postgresql-18.1/src/backend/executor/execProcnode.c:412: warning[nullPointer]: Possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def314]
postgresql-18.1/src/backend/executor/execProcnode.c:438: error[ctunullpointer]: Null pointer dereference: node
Error: CPPCHECK_WARNING (CWE-476): [#def315]
postgresql-18.1/src/backend/executor/execProcnode.c:438: warning[nullPointer]: Possible null pointer dereference: node
Error: CPPCHECK_WARNING (CWE-476): [#def316]
postgresql-18.1/src/backend/executor/execProcnode.c:439: warning[nullPointer]: Possible null pointer dereference: node
Error: CPPCHECK_WARNING (CWE-457): [#def317]
postgresql-18.1/src/backend/executor/execScan.c:148: error[legacyUninitvar]: Uninitialized variable: relids
Error: GCC_ANALYZER_WARNING (CWE-457): [#def318]
postgresql-18.1/src/backend/executor/execTuples.c:2474:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘isnull’
postgresql-18.1/src/backend/executor/execTuples.c:2492:1: enter_function: entry to ‘do_text_output_multiline’
postgresql-18.1/src/backend/executor/execTuples.c:2497:16: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/executor/execTuples.c:2502:23: branch_true: ...to here
postgresql-18.1/src/backend/executor/execTuples.c:2503:20: branch_true: following ‘true’ branch (when ‘eol’ is non-NULL)...
postgresql-18.1/src/backend/executor/execTuples.c:2505:31: branch_true: ...to here
postgresql-18.1/src/backend/executor/execTuples.c:2515:17: call_function: calling ‘do_tup_output’ from ‘do_text_output_multiline’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def319]
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1233:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘leftop’
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1198:9: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1214:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1220:25: branch_true: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1233:31: danger: dereference of NULL ‘leftop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def320]
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1265:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rightop’
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1158:1: enter_function: entry to ‘ExecIndexBuildScanKeys’
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1198:9: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1214:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1220:25: branch_true: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1226:43: call_function: inlined call to ‘get_leftop’ from ‘ExecIndexBuildScanKeys’
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1228:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1228:39: branch_true: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1233:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1234:35: branch_false: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1233:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1237:25: branch_false: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1238:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1265:29: danger: dereference of NULL ‘rightop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def321]
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1350:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘leftop’
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1198:9: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1329:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1350:39: danger: dereference of NULL ‘leftop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def322]
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1389:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rightop’
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1198:9: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1329:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1345:36: branch_true: following ‘true’ branch (when ‘leftop’ is non-NULL)...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1345:47: branch_true: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1350:36: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1351:43: branch_false: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1350:37: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1354:33: branch_false: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1360:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1360:37: branch_true: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1360:37: branch_false: following ‘false’ branch (when ‘varattno > 0’)...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1360:37: branch_false: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1360:37: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1363:44: branch_false: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1370:36: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1373:44: branch_false: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1377:36: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1384:36: branch_false: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1389:37: danger: dereference of NULL ‘rightop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def323]
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1474:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘leftop’
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1198:9: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1311:25: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1451:25: branch_false: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1451:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1461:25: branch_true: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1469:28: branch_false: following ‘false’ branch (when ‘leftop’ is NULL)...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1474:31: branch_false: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1474:31: danger: dereference of NULL ‘leftop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def324]
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1507:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rightop’
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1198:9: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1311:25: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1451:25: branch_false: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1451:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1461:25: branch_true: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1469:28: branch_true: following ‘true’ branch (when ‘leftop’ is non-NULL)...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1469:39: branch_true: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1474:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1475:35: branch_false: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1474:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1478:25: branch_false: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1479:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1498:28: branch_false: following ‘false’ branch (when ‘rightop’ is NULL)...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1503:29: branch_false: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1503:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1507:37: branch_true: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1507:37: danger: dereference of NULL ‘rightop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def325]
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1588:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘leftop’
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1198:9: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1311:25: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1451:25: branch_false: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1451:25: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1570:25: branch_false: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1570:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1581:25: branch_true: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1583:28: branch_false: following ‘false’ branch (when ‘leftop’ is NULL)...
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1588:31: branch_false: ...to here
postgresql-18.1/src/backend/executor/nodeIndexscan.c:1588:31: danger: dereference of NULL ‘leftop’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def326]
postgresql-18.1/src/backend/lib/pairingheap.c:275:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pairs’
postgresql-18.1/src/backend/lib/pairingheap.c:251:20: branch_true: following ‘true’ branch (when ‘next’ is NULL)...
postgresql-18.1/src/backend/lib/pairingheap.c:275:9: branch_true: ...to here
postgresql-18.1/src/backend/lib/pairingheap.c:275:9: danger: dereference of NULL ‘pairs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
postgresql-18.1/src/backend/libpq/auth.c:681:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18.1/src/backend/libpq/auth.c:1928:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18.1/src/backend/libpq/auth.c:1948:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1955:22: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1955:22: acquire_memory: allocated here
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1963:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18.1/src/backend/libpq/auth.c:1965:28: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1968:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1975:41: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1975:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
postgresql-18.1/src/backend/libpq/auth.c:688:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18.1/src/backend/libpq/auth.c:1928:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18.1/src/backend/libpq/auth.c:1948:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1955:22: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1955:22: acquire_memory: allocated here
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1963:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18.1/src/backend/libpq/auth.c:1965:28: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1968:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1975:41: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1975:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
postgresql-18.1/src/backend/libpq/auth.c:696:17: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18.1/src/backend/libpq/auth.c:1928:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18.1/src/backend/libpq/auth.c:1948:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1955:22: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1955:22: acquire_memory: allocated here
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1963:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18.1/src/backend/libpq/auth.c:1965:28: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1968:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1975:41: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1975:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
postgresql-18.1/src/backend/libpq/auth.c:698:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18.1/src/backend/libpq/auth.c:1928:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18.1/src/backend/libpq/auth.c:1948:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1955:22: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1955:22: acquire_memory: allocated here
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1963:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18.1/src/backend/libpq/auth.c:1965:28: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1968:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1975:41: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1975:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
postgresql-18.1/src/backend/libpq/auth.c:712:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18.1/src/backend/libpq/auth.c:1928:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18.1/src/backend/libpq/auth.c:1948:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1955:22: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1955:22: acquire_memory: allocated here
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1963:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18.1/src/backend/libpq/auth.c:1965:28: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1968:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1975:41: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1975:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
postgresql-18.1/src/backend/libpq/auth.c:1975:41: return_function: returning to ‘pam_passwd_conv_proc’ from ‘sendAuthRequest’
postgresql-18.1/src/backend/libpq/auth.c:1976:50: call_function: calling ‘recv_password_packet’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def332]
postgresql-18.1/src/backend/libpq/auth.c:715:17: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18.1/src/backend/libpq/auth.c:1928:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18.1/src/backend/libpq/auth.c:1948:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1955:22: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1955:22: acquire_memory: allocated here
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1963:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18.1/src/backend/libpq/auth.c:1965:28: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1968:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1975:41: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1975:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
postgresql-18.1/src/backend/libpq/auth.c:1975:41: return_function: returning to ‘pam_passwd_conv_proc’ from ‘sendAuthRequest’
postgresql-18.1/src/backend/libpq/auth.c:1976:50: call_function: calling ‘recv_password_packet’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def333]
postgresql-18.1/src/backend/libpq/auth.c:724:25: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18.1/src/backend/libpq/auth.c:1928:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18.1/src/backend/libpq/auth.c:1948:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1955:22: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1955:22: acquire_memory: allocated here
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1963:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18.1/src/backend/libpq/auth.c:1965:28: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1968:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1975:41: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1975:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
postgresql-18.1/src/backend/libpq/auth.c:1975:41: return_function: returning to ‘pam_passwd_conv_proc’ from ‘sendAuthRequest’
postgresql-18.1/src/backend/libpq/auth.c:1976:50: call_function: calling ‘recv_password_packet’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
postgresql-18.1/src/backend/libpq/auth.c:731:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18.1/src/backend/libpq/auth.c:1928:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18.1/src/backend/libpq/auth.c:1948:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1955:22: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1955:22: acquire_memory: allocated here
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1963:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18.1/src/backend/libpq/auth.c:1965:28: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1968:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1975:41: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1975:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
postgresql-18.1/src/backend/libpq/auth.c:1975:41: return_function: returning to ‘pam_passwd_conv_proc’ from ‘sendAuthRequest’
postgresql-18.1/src/backend/libpq/auth.c:1976:50: call_function: calling ‘recv_password_packet’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def335]
postgresql-18.1/src/backend/libpq/auth.c:732:13: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18.1/src/backend/libpq/auth.c:1928:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18.1/src/backend/libpq/auth.c:1948:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1955:22: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1955:22: acquire_memory: allocated here
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1963:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18.1/src/backend/libpq/auth.c:1965:28: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1968:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1975:41: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1975:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
postgresql-18.1/src/backend/libpq/auth.c:1975:41: return_function: returning to ‘pam_passwd_conv_proc’ from ‘sendAuthRequest’
postgresql-18.1/src/backend/libpq/auth.c:1976:50: call_function: calling ‘recv_password_packet’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
postgresql-18.1/src/backend/libpq/auth.c:1993:33: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18.1/src/backend/libpq/auth.c:1948:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1955:22: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1963:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18.1/src/backend/libpq/auth.c:1965:28: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1968:36: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1988:43: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1988:54: acquire_memory: allocated here
postgresql-18.1/src/backend/libpq/auth.c:1988:36: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1990:33: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1963:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18.1/src/backend/libpq/auth.c:1965:28: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1993:33: throw: if ‘errstart’ throws an exception...
postgresql-18.1/src/backend/libpq/auth.c:1993: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): [#def337]
postgresql-18.1/src/backend/libpq/auth.c:1993:33: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18.1/src/backend/libpq/auth.c:1948:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1955:22: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1955:22: acquire_memory: allocated here
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1963:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18.1/src/backend/libpq/auth.c:1965:28: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1993:33: throw: if ‘errstart’ throws an exception...
postgresql-18.1/src/backend/libpq/auth.c:1993: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): [#def338]
postgresql-18.1/src/backend/libpq/auth.c:2004:33: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18.1/src/backend/libpq/auth.c:1948:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1955:22: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1963:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18.1/src/backend/libpq/auth.c:1965:28: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1968:36: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1988:43: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1988:54: acquire_memory: allocated here
postgresql-18.1/src/backend/libpq/auth.c:1988:36: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1990:33: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1963:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18.1/src/backend/libpq/auth.c:1965:28: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:2004:33: throw: if ‘errstart’ throws an exception...
postgresql-18.1/src/backend/libpq/auth.c:2004: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): [#def339]
postgresql-18.1/src/backend/libpq/auth.c:2004:33: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18.1/src/backend/libpq/auth.c:1948:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1955:22: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1955:22: acquire_memory: allocated here
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1963:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18.1/src/backend/libpq/auth.c:1965:28: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:2004:33: throw: if ‘errstart’ throws an exception...
postgresql-18.1/src/backend/libpq/auth.c:2004: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): [#def340]
postgresql-18.1/src/backend/libpq/auth.c:2840:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data’
postgresql-18.1/src/backend/libpq/auth.c:2940:1: enter_function: entry to ‘PerformRadiusTransaction’
postgresql-18.1/src/backend/libpq/auth.c:2980:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:2994:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/libpq/auth.c:3001:22: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:3018:21: branch_false: following ‘false’ branch (when ‘i >= encryptedpasswordlen’)...
postgresql-18.1/src/backend/libpq/auth.c:3049:9: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:3051:9: call_function: calling ‘radius_add_attribute’ from ‘PerformRadiusTransaction’
Error: CPPCHECK_WARNING (CWE-457): [#def341]
postgresql-18.1/src/backend/libpq/auth.c:3051: warning[uninitvar]: Uninitialized variable: encryptedpassword
Error: GCC_ANALYZER_WARNING (CWE-476): [#def342]
postgresql-18.1/src/backend/libpq/hba.c:1353:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18.1/src/backend/libpq/hba.c:1328:1: enter_function: entry to ‘parse_hba_line’
postgresql-18.1/src/backend/libpq/hba.c:1352:17: call_function: inlined call to ‘list_head’ from ‘parse_hba_line’
postgresql-18.1/src/backend/libpq/hba.c:1353:9: branch_false: ...to here
postgresql-18.1/src/backend/libpq/hba.c:1353:9: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def343]
postgresql-18.1/src/backend/libpq/hba.c:2768:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18.1/src/backend/libpq/hba.c:2751:1: enter_function: entry to ‘parse_ident_line’
postgresql-18.1/src/backend/libpq/hba.c:2762:17: call_function: inlined call to ‘list_head’ from ‘parse_ident_line’
postgresql-18.1/src/backend/libpq/hba.c:2764:22: branch_false: ...to here
postgresql-18.1/src/backend/libpq/hba.c:2768:9: danger: dereference of NULL ‘<unknown>’
Error: CPPCHECK_WARNING (CWE-768): [#def344]
postgresql-18.1/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): [#def345]
postgresql-18.1/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): [#def346]
postgresql-18.1/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): [#def347]
postgresql-18.1/src/backend/optimizer/plan/analyzejoins.c:1234:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lg’
postgresql-18.1/src/backend/optimizer/plan/analyzejoins.c:980:1: enter_function: entry to ‘rel_is_distinct_for’
postgresql-18.1/src/backend/optimizer/plan/analyzejoins.c:1060:21: call_function: calling ‘query_is_distinct_for’ from ‘rel_is_distinct_for’
Error: CPPCHECK_WARNING (CWE-768): [#def348]
postgresql-18.1/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): [#def349]
postgresql-18.1/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): [#def350]
postgresql-18.1/src/backend/optimizer/plan/initsplan.c:2900:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sjinfo’
postgresql-18.1/src/backend/optimizer/plan/initsplan.c:1616:1: enter_function: entry to ‘process_security_barrier_quals’
postgresql-18.1/src/backend/optimizer/plan/initsplan.c:1629:9: branch_true: following ‘true’ branch...
postgresql-18.1/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): [#def351]
postgresql-18.1/src/backend/optimizer/plan/planner.c:4113:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘partially_grouped_rel’
postgresql-18.1/src/backend/optimizer/plan/planner.c:4079:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/optimizer/plan/planner.c:4100:9: branch_false: ...to here
postgresql-18.1/src/backend/optimizer/plan/planner.c:4100:9: release_memory: ‘partially_grouped_rel’ is NULL
postgresql-18.1/src/backend/optimizer/plan/planner.c:4103:12: branch_false: following ‘false’ branch (when ‘patype == 0’)...
postgresql-18.1/src/backend/optimizer/plan/planner.c:4109:13: branch_false: ...to here
postgresql-18.1/src/backend/optimizer/plan/planner.c:4109:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/optimizer/plan/planner.c:4113:21: branch_true: ...to here
postgresql-18.1/src/backend/optimizer/plan/planner.c:4113:21: danger: dereference of NULL ‘partially_grouped_rel’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def352]
postgresql-18.1/src/backend/optimizer/plan/planner.c:5792:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘orig_tlist_item’
postgresql-18.1/src/backend/optimizer/plan/planner.c:5777:1: enter_function: entry to ‘postprocess_setop_tlist’
postgresql-18.1/src/backend/optimizer/plan/planner.c:5780:39: call_function: inlined call to ‘list_head’ from ‘postprocess_setop_tlist’
postgresql-18.1/src/backend/optimizer/plan/planner.c:5782:9: branch_false: ...to here
postgresql-18.1/src/backend/optimizer/plan/planner.c:5782:9: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/optimizer/plan/planner.c:5788:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/optimizer/plan/planner.c:5792:17: branch_false: ...to here
postgresql-18.1/src/backend/optimizer/plan/planner.c:5792:17: danger: dereference of NULL ‘orig_tlist_item’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def353]
postgresql-18.1/src/backend/optimizer/plan/planner.c:8285:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ct’
postgresql-18.1/src/backend/optimizer/plan/planner.c:8259:1: enter_function: entry to ‘generate_setop_child_grouplist’
postgresql-18.1/src/backend/optimizer/plan/planner.c:8266:14: call_function: inlined call to ‘list_head’ from ‘generate_setop_child_grouplist’
postgresql-18.1/src/backend/optimizer/plan/planner.c:8267:14: call_function: inlined call to ‘list_head’ from ‘generate_setop_child_grouplist’
postgresql-18.1/src/backend/optimizer/plan/planner.c:8268:9: branch_false: ...to here
postgresql-18.1/src/backend/optimizer/plan/planner.c:8268:9: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/optimizer/plan/planner.c:8275:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/optimizer/plan/planner.c:8284:17: branch_false: ...to here
postgresql-18.1/src/backend/optimizer/plan/planner.c:8285:17: danger: dereference of NULL ‘ct’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def354]
postgresql-18.1/src/backend/optimizer/plan/setrefs.c:2092:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*root.grouping_map’
postgresql-18.1/src/backend/optimizer/plan/setrefs.c:3635:1: enter_function: entry to ‘extract_query_dependencies’
postgresql-18.1/src/backend/optimizer/plan/setrefs.c:3655:16: call_function: calling ‘extract_query_dependencies_walker’ from ‘extract_query_dependencies’
Error: CPPCHECK_WARNING (CWE-476): [#def355]
postgresql-18.1/src/backend/optimizer/plan/setrefs.c:2188: warning[nullPointer]: Possible null pointer dereference: bestplan
Error: GCC_ANALYZER_WARNING (CWE-476): [#def356]
postgresql-18.1/src/backend/optimizer/plan/setrefs.c:2188:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bestplan’
postgresql-18.1/src/backend/optimizer/plan/setrefs.c:3126:1: enter_function: entry to ‘fix_join_expr_mutator’
postgresql-18.1/src/backend/optimizer/plan/setrefs.c:3130:12: branch_false: following ‘false’ branch (when ‘node’ is non-NULL)...
postgresql-18.1/src/backend/optimizer/plan/setrefs.c:3132:13: branch_false: ...to here
postgresql-18.1/src/backend/optimizer/plan/setrefs.c:3132:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/optimizer/plan/setrefs.c:3188:12: branch_false: ...to here
postgresql-18.1/src/backend/optimizer/plan/setrefs.c:3234:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/optimizer/plan/setrefs.c:3236:12: branch_false: ...to here
postgresql-18.1/src/backend/optimizer/plan/setrefs.c:3236:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/optimizer/plan/setrefs.c:3237:24: branch_true: ...to here
postgresql-18.1/src/backend/optimizer/plan/setrefs.c:3237:24: call_function: calling ‘fix_alternative_subplan’ from ‘fix_join_expr_mutator’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def357]
postgresql-18.1/src/backend/optimizer/prep/preptlist.c:121:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘target_rte’
postgresql-18.1/src/backend/optimizer/prep/preptlist.c:80:12: branch_false: following ‘false’ branch (when ‘result_relation == 0’)...
postgresql-18.1/src/backend/optimizer/prep/preptlist.c:105:9: branch_false: ...to here
postgresql-18.1/src/backend/optimizer/prep/preptlist.c:106:12: branch_false: following ‘false’ branch (when ‘command_type != 3’)...
postgresql-18.1/src/backend/optimizer/prep/preptlist.c:108:17: branch_false: ...to here
postgresql-18.1/src/backend/optimizer/prep/preptlist.c:108:17: branch_false: following ‘false’ branch (when ‘command_type != 2’)...
postgresql-18.1/src/backend/optimizer/prep/preptlist.c:119:14: branch_false: ...to here
postgresql-18.1/src/backend/optimizer/prep/preptlist.c:121:18: danger: dereference of NULL ‘target_rte’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def358]
postgresql-18.1/src/backend/optimizer/prep/preptlist.c:398:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rel’
postgresql-18.1/src/backend/optimizer/prep/preptlist.c:64:1: enter_function: entry to ‘preprocess_targetlist’
postgresql-18.1/src/backend/optimizer/prep/preptlist.c:80:12: branch_false: following ‘false’ branch (when ‘result_relation == 0’)...
postgresql-18.1/src/backend/optimizer/prep/preptlist.c:105:9: branch_false: ...to here
postgresql-18.1/src/backend/optimizer/prep/preptlist.c:106:12: branch_true: following ‘true’ branch (when ‘command_type == 3’)...
postgresql-18.1/src/backend/optimizer/prep/preptlist.c:107:25: branch_true: ...to here
postgresql-18.1/src/backend/optimizer/prep/preptlist.c:107:25: call_function: calling ‘expand_insert_targetlist’ from ‘preprocess_targetlist’
Error: CPPCHECK_WARNING (CWE-768): [#def359]
postgresql-18.1/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): [#def360]
postgresql-18.1/src/backend/optimizer/prep/prepunion.c:1521:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘curColType’
postgresql-18.1/src/backend/optimizer/prep/prepunion.c:1508:9: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/optimizer/prep/prepunion.c:1515:17: branch_true: following ‘true’ branch (when ‘subtlist’ is non-NULL)...
postgresql-18.1/src/backend/optimizer/prep/prepunion.c:1515:17: branch_true: ...to here
postgresql-18.1/src/backend/optimizer/prep/prepunion.c:1521:64: danger: dereference of NULL ‘curColType’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def361]
postgresql-18.1/src/backend/optimizer/prep/prepunion.c:1613:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lg’
postgresql-18.1/src/backend/optimizer/prep/prepunion.c:1594:1: enter_function: entry to ‘generate_setop_grouplist’
postgresql-18.1/src/backend/optimizer/prep/prepunion.c:1600:14: call_function: inlined call to ‘list_head’ from ‘generate_setop_grouplist’
postgresql-18.1/src/backend/optimizer/prep/prepunion.c:1601:9: branch_false: ...to here
postgresql-18.1/src/backend/optimizer/prep/prepunion.c:1601:9: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/optimizer/prep/prepunion.c:1613:17: danger: dereference of NULL ‘lg’
Error: COMPILER_WARNING (CWE-457): [#def362]
postgresql-18.1/src/backend/optimizer/util/clauses.c: scope_hint: In function ‘recheck_cast_function_args.isra.0’
postgresql-18.1/src/backend/optimizer/util/clauses.c:4406:19: warning[-Wmaybe-uninitialized]: ‘actual_arg_types’ may be used uninitialized
postgresql-18.1/src/backend/optimizer/util/clauses.c:42: included_from: Included from here.
postgresql-18.1/src/include/parser/parse_coerce.h:85:17: note: by argument 1 of type ‘const Oid *’ to ‘enforce_generic_type_consistency’ declared here
postgresql-18.1/src/backend/optimizer/util/clauses.c:4392:33: note: ‘actual_arg_types’ declared here
Error: CPPCHECK_WARNING (CWE-768): [#def363]
postgresql-18.1/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): [#def364]
postgresql-18.1/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): [#def365]
postgresql-18.1/src/backend/parser/analyze.c:284:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stmt’
postgresql-18.1/src/backend/parser/analyze.c:3162:1: enter_function: entry to ‘transformCreateTableAsStmt’
postgresql-18.1/src/backend/parser/analyze.c:3168:17: call_function: calling ‘transformStmt’ from ‘transformCreateTableAsStmt’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def366]
postgresql-18.1/src/backend/parser/analyze.c:1785:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘leftmostSelect’
postgresql-18.1/src/backend/parser/analyze.c:3162:1: enter_function: entry to ‘transformCreateTableAsStmt’
postgresql-18.1/src/backend/parser/analyze.c:3168:17: call_function: calling ‘transformStmt’ from ‘transformCreateTableAsStmt’
Error: CPPCHECK_WARNING (CWE-768): [#def367]
postgresql-18.1/src/backend/parser/analyze.c:2250: error[unknownEvaluationOrder]: Expression 'T_List,(union ListCell){.ptr_value=(lcolnode)},(union ListCell){.ptr_value=(rcolnode)}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def368]
postgresql-18.1/src/backend/parser/analyze.c:2305: 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): [#def369]
postgresql-18.1/src/backend/parser/analyze.c:2318: 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): [#def370]
postgresql-18.1/src/backend/parser/gram.y:1878: 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): [#def371]
postgresql-18.1/src/backend/parser/gram.y:4476: 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): [#def372]
postgresql-18.1/src/backend/parser/gram.y:4481: 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): [#def373]
postgresql-18.1/src/backend/parser/gram.y:5348: 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): [#def374]
postgresql-18.1/src/backend/parser/gram.y:5428: 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): [#def375]
postgresql-18.1/src/backend/parser/gram.y:6095: 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): [#def376]
postgresql-18.1/src/backend/parser/gram.y:6102: 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): [#def377]
postgresql-18.1/src/backend/parser/gram.y:6104: 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): [#def378]
postgresql-18.1/src/backend/parser/gram.y:6106: 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): [#def379]
postgresql-18.1/src/backend/parser/gram.y:6108: 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): [#def380]
postgresql-18.1/src/backend/parser/gram.y:6110: 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): [#def381]
postgresql-18.1/src/backend/parser/gram.y:7242: 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): [#def382]
postgresql-18.1/src/backend/parser/gram.y:7278: 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): [#def383]
postgresql-18.1/src/backend/parser/gram.y:7314: 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): [#def384]
postgresql-18.1/src/backend/parser/gram.y:8673: 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): [#def385]
postgresql-18.1/src/backend/parser/gram.y:8677: 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): [#def386]
postgresql-18.1/src/backend/parser/gram.y:8681: 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): [#def387]
postgresql-18.1/src/backend/parser/gram.y:8825: 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): [#def388]
postgresql-18.1/src/backend/parser/gram.y:9105: 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): [#def389]
postgresql-18.1/src/backend/parser/gram.y:9107: 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): [#def390]
postgresql-18.1/src/backend/parser/gram.y:9109: 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): [#def391]
postgresql-18.1/src/backend/parser/gram.y:9225: 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): [#def392]
postgresql-18.1/src/backend/parser/gram.y:9259: 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): [#def393]
postgresql-18.1/src/backend/parser/gram.y:9263: 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): [#def394]
postgresql-18.1/src/backend/parser/gram.y:9267: 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): [#def395]
postgresql-18.1/src/backend/parser/gram.y:9271: 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): [#def396]
postgresql-18.1/src/backend/parser/gram.y:9281: 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): [#def397]
postgresql-18.1/src/backend/parser/gram.y:11759: 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): [#def398]
postgresql-18.1/src/backend/parser/gram.y:11771: 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): [#def399]
postgresql-18.1/src/backend/parser/gram.y:13862: 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): [#def400]
postgresql-18.1/src/backend/parser/gram.y:13866: 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): [#def401]
postgresql-18.1/src/backend/parser/gram.y:13873: 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): [#def402]
postgresql-18.1/src/backend/parser/gram.y:13880: 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): [#def403]
postgresql-18.1/src/backend/parser/gram.y:13884: 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): [#def404]
postgresql-18.1/src/backend/parser/gram.y:13913: 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): [#def405]
postgresql-18.1/src/backend/parser/gram.y:14039: 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): [#def406]
postgresql-18.1/src/backend/parser/gram.y:14057: 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): [#def407]
postgresql-18.1/src/backend/parser/gram.y:14518: 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): [#def408]
postgresql-18.1/src/backend/parser/gram.y:14904: 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): [#def409]
postgresql-18.1/src/backend/parser/gram.y:14960: 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): [#def410]
postgresql-18.1/src/backend/parser/gram.y:15031: 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): [#def411]
postgresql-18.1/src/backend/parser/gram.y:15045: 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): [#def412]
postgresql-18.1/src/backend/parser/gram.y:15059: 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): [#def413]
postgresql-18.1/src/backend/parser/gram.y:15073: 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): [#def414]
postgresql-18.1/src/backend/parser/gram.y:15092: 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): [#def415]
postgresql-18.1/src/backend/parser/gram.y:15110: 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): [#def416]
postgresql-18.1/src/backend/parser/gram.y:15246: 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): [#def417]
postgresql-18.1/src/backend/parser/gram.y:15254: 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): [#def418]
postgresql-18.1/src/backend/parser/gram.y:15262: 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): [#def419]
postgresql-18.1/src/backend/parser/gram.y:15270: 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): [#def420]
postgresql-18.1/src/backend/parser/gram.y:15374: 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): [#def421]
postgresql-18.1/src/backend/parser/gram.y:15389: 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): [#def422]
postgresql-18.1/src/backend/parser/gram.y:15906: 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): [#def423]
postgresql-18.1/src/backend/parser/gram.y:16065: 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): [#def424]
postgresql-18.1/src/backend/parser/gram.y:16077: 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): [#def425]
postgresql-18.1/src/backend/parser/gram.y:16094: 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): [#def426]
postgresql-18.1/src/backend/parser/gram.y:16094: 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): [#def427]
postgresql-18.1/src/backend/parser/gram.y:16771: 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): [#def428]
postgresql-18.1/src/backend/parser/gram.y:16801: 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): [#def429]
postgresql-18.1/src/backend/parser/gram.y:16801: 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): [#def430]
postgresql-18.1/src/backend/parser/gram.y:16801: 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): [#def431]
postgresql-18.1/src/backend/parser/gram.y:16806: 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): [#def432]
postgresql-18.1/src/backend/parser/gram.y:16806: 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): [#def433]
postgresql-18.1/src/backend/parser/gram.y:16812: 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): [#def434]
postgresql-18.1/src/backend/parser/gram.y:16835: 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): [#def435]
postgresql-18.1/src/backend/parser/gram.y:16835: 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): [#def436]
postgresql-18.1/src/backend/parser/gram.y:16840: 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): [#def437]
postgresql-18.1/src/backend/parser/gram.y:16840: 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): [#def438]
postgresql-18.1/src/backend/parser/gram.y:16851: 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): [#def439]
postgresql-18.1/src/backend/parser/gram.y:16866: 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): [#def440]
postgresql-18.1/src/backend/parser/gram.y:16866: 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): [#def441]
postgresql-18.1/src/backend/parser/gram.y:16872: 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): [#def442]
postgresql-18.1/src/backend/parser/gram.y:16872: 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): [#def443]
postgresql-18.1/src/backend/parser/gram.y:17434: 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): [#def444]
postgresql-18.1/src/backend/parser/gram.y:17528: error[legacyUninitvar]: Uninitialized variable: n
Error: CPPCHECK_WARNING (CWE-768): [#def445]
postgresql-18.1/src/backend/parser/gram.y:19016: 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): [#def446]
postgresql-18.1/src/backend/parser/gram.y:19123: 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): [#def447]
postgresql-18.1/src/backend/parser/gram.y:19135: 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): [#def448]
postgresql-18.1/src/backend/parser/gram.y:19204: 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): [#def449]
postgresql-18.1/src/backend/parser/gram.y:19221: 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): [#def450]
postgresql-18.1/src/backend/parser/parse_agg.c:2243: 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): [#def451]
postgresql-18.1/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): [#def452]
postgresql-18.1/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): [#def453]
postgresql-18.1/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): [#def454]
postgresql-18.1/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): [#def455]
postgresql-18.1/src/backend/parser/parse_collate.c:972:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘h_cell’
postgresql-18.1/src/backend/parser/parse_collate.c:955:1: enter_function: entry to ‘assign_hypothetical_collations’
postgresql-18.1/src/backend/parser/parse_collate.c:958:30: call_function: inlined call to ‘list_head’ from ‘assign_hypothetical_collations’
postgresql-18.1/src/backend/parser/parse_collate.c:959:40: branch_false: ...to here
postgresql-18.1/src/backend/parser/parse_collate.c:959:30: call_function: inlined call to ‘list_head’ from ‘assign_hypothetical_collations’
postgresql-18.1/src/backend/parser/parse_collate.c:964:34: call_function: inlined call to ‘list_length’ from ‘assign_hypothetical_collations’
postgresql-18.1/src/backend/parser/parse_collate.c:970:16: branch_true: following ‘true’ branch (when ‘extra_args > 0’)...
postgresql-18.1/src/backend/parser/parse_collate.c:972:58: branch_true: ...to here
postgresql-18.1/src/backend/parser/parse_collate.c:972:58: danger: dereference of NULL ‘h_cell’
Error: CPPCHECK_WARNING (CWE-768): [#def456]
postgresql-18.1/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): [#def457]
postgresql-18.1/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): [#def458]
postgresql-18.1/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): [#def459]
postgresql-18.1/src/backend/parser/parse_expr.c:1277: 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): [#def460]
postgresql-18.1/src/backend/parser/parse_expr.c:1316: 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): [#def461]
postgresql-18.1/src/backend/parser/parse_expr.c:1325: 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): [#def462]
postgresql-18.1/src/backend/parser/parse_expr.c:1334: 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): [#def463]
postgresql-18.1/src/backend/parser/parse_expr.c:1341: 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): [#def464]
postgresql-18.1/src/backend/parser/parse_expr.c:1348: 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): [#def465]
postgresql-18.1/src/backend/parser/parse_expr.c:1352: 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): [#def466]
postgresql-18.1/src/backend/parser/parse_expr.c:1359: 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): [#def467]
postgresql-18.1/src/backend/parser/parse_expr.c:1366: 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): [#def468]
postgresql-18.1/src/backend/parser/parse_expr.c:3058: 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): [#def469]
postgresql-18.1/src/backend/parser/parse_expr.c:3283: 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): [#def470]
postgresql-18.1/src/backend/parser/parse_expr.c:3628: 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): [#def471]
postgresql-18.1/src/backend/parser/parse_expr.c:3790: 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): [#def472]
postgresql-18.1/src/backend/parser/parse_expr.c:3935: 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): [#def473]
postgresql-18.1/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): [#def474]
postgresql-18.1/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): [#def475]
postgresql-18.1/src/backend/parser/parse_func.c:2014:70: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lc’
postgresql-18.1/src/backend/parser/parse_func.c:2008:21: branch_true: following ‘true’ branch (when ‘i < nargs’)...
postgresql-18.1/src/backend/parser/parse_func.c:2010:20: branch_true: ...to here
postgresql-18.1/src/backend/parser/parse_func.c:2010:20: branch_false: following ‘false’ branch (when ‘i == 0’)...
postgresql-18.1/src/backend/parser/parse_func.c:2012:20: branch_false: ...to here
postgresql-18.1/src/backend/parser/parse_func.c:2012:20: branch_true: following ‘true’ branch (when ‘i >= numposargs’)...
postgresql-18.1/src/backend/parser/parse_func.c:2014:70: branch_true: ...to here
postgresql-18.1/src/backend/parser/parse_func.c:2008:21: branch_true: following ‘true’ branch (when ‘i < nargs’)...
postgresql-18.1/src/backend/parser/parse_func.c:2010:20: branch_true: ...to here
postgresql-18.1/src/backend/parser/parse_func.c:2012:20: branch_true: following ‘true’ branch (when ‘i >= numposargs’)...
postgresql-18.1/src/backend/parser/parse_func.c:2014:70: branch_true: ...to here
postgresql-18.1/src/backend/parser/parse_func.c:2014:70: danger: dereference of NULL ‘lc’
Error: CPPCHECK_WARNING (CWE-457): [#def476]
postgresql-18.1/src/backend/parser/parse_func.c:2271: warning[uninitvar]: Uninitialized variable: argoids
Error: CPPCHECK_WARNING (CWE-768): [#def477]
postgresql-18.1/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): [#def478]
postgresql-18.1/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): [#def479]
postgresql-18.1/src/backend/parser/parse_relation.c:3065:77: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘aliasp_item’
postgresql-18.1/src/backend/parser/parse_relation.c:2751:1: enter_function: entry to ‘expandRTE’
postgresql-18.1/src/backend/parser/parse_relation.c:2758:12: branch_true: following ‘true’ branch (when ‘colnames’ is non-NULL)...
postgresql-18.1/src/backend/parser/parse_relation.c:2759:17: branch_true: ...to here
postgresql-18.1/src/backend/parser/parse_relation.c:2760:12: branch_false: following ‘false’ branch (when ‘colvars’ is NULL)...
postgresql-18.1/src/backend/parser/parse_relation.c:2763:17: branch_false: ...to here
postgresql-18.1/src/backend/parser/parse_relation.c:3044:59: call_function: inlined call to ‘list_head’ from ‘expandRTE’
postgresql-18.1/src/backend/parser/parse_relation.c:3050:33: branch_false: ...to here
postgresql-18.1/src/backend/parser/parse_relation.c:3050:33: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/parser/parse_relation.c:3060:44: branch_true: following ‘true’ branch (when ‘colnames’ is non-NULL)...
postgresql-18.1/src/backend/parser/parse_relation.c:3063:52: branch_true: ...to here
postgresql-18.1/src/backend/parser/parse_relation.c:3063:52: branch_true: following ‘true’ branch (when ‘coltype != 0’)...
postgresql-18.1/src/backend/parser/parse_relation.c:3065:77: branch_true: ...to here
postgresql-18.1/src/backend/parser/parse_relation.c:3065:77: danger: dereference of NULL ‘aliasp_item’
Error: CPPCHECK_WARNING (CWE-768): [#def480]
postgresql-18.1/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): [#def481]
postgresql-18.1/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): [#def482]
postgresql-18.1/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): [#def483]
postgresql-18.1/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): [#def484]
postgresql-18.1/src/backend/parser/parse_utilcmd.c:1296: 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): [#def485]
postgresql-18.1/src/backend/parser/parse_utilcmd.c:1296: 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(nnconstr->conname))}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def486]
postgresql-18.1/src/backend/parser/parse_utilcmd.c:1517: 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): [#def487]
postgresql-18.1/src/backend/parser/parse_utilcmd.c:1517: 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): [#def488]
postgresql-18.1/src/backend/parser/parse_utilcmd.c:1840: 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): [#def489]
postgresql-18.1/src/backend/parser/parse_utilcmd.c:2194: 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): [#def490]
postgresql-18.1/src/backend/parser/parse_utilcmd.c:2224: 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): [#def491]
postgresql-18.1/src/backend/parser/scan.c:10850:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql-18.1/src/backend/parser/scan.c:9298:1: enter_function: entry to ‘core_yylex’
postgresql-18.1/src/backend/parser/scan.c:10400:17: call_function: calling ‘yy_get_next_buffer’ from ‘core_yylex’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def492]
postgresql-18.1/src/backend/partitioning/partbounds.c:4039:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘partexprs_item’
postgresql-18.1/src/backend/partitioning/partbounds.c:3983:1: enter_function: entry to ‘get_qual_for_hash’
postgresql-18.1/src/backend/partitioning/partbounds.c:4020:26: call_function: inlined call to ‘list_head’ from ‘get_qual_for_hash’
postgresql-18.1/src/backend/partitioning/partbounds.c:4023:9: branch_false: ...to here
postgresql-18.1/src/backend/partitioning/partbounds.c:4023:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/partitioning/partbounds.c:4028:21: branch_true: ...to here
postgresql-18.1/src/backend/partitioning/partbounds.c:4028:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/partitioning/partbounds.c:4039:43: branch_false: ...to here
postgresql-18.1/src/backend/partitioning/partbounds.c:4039:43: danger: dereference of NULL ‘partexprs_item’
Error: CPPCHECK_WARNING (CWE-768): [#def493]
postgresql-18.1/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): [#def494]
postgresql-18.1/src/backend/partitioning/partprune.c:2545:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘start’
postgresql-18.1/src/backend/partitioning/partprune.c:2525:1: enter_function: entry to ‘get_steps_using_prefix_recurse’
postgresql-18.1/src/backend/partitioning/partprune.c:2549:12: branch_true: following ‘true’ branch (when ‘cur_keyno < final_keyno’)...
postgresql-18.1/src/backend/partitioning/partprune.c:2559:17: call_function: inlined call to ‘for_each_cell_setup’ from ‘get_steps_using_prefix_recurse’
postgresql-18.1/src/backend/partitioning/partprune.c:2563:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/partitioning/partprune.c:2559:17: branch_false: ...to here
postgresql-18.1/src/backend/partitioning/partprune.c:2575:17: call_function: inlined call to ‘for_each_cell_setup’ from ‘get_steps_using_prefix_recurse’
postgresql-18.1/src/backend/partitioning/partprune.c:2575:17: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/partitioning/partprune.c:2575:17: branch_true: ...to here
postgresql-18.1/src/backend/partitioning/partprune.c:2582:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/partitioning/partprune.c:2585:47: branch_true: ...to here
postgresql-18.1/src/backend/partitioning/partprune.c:2599:37: call_function: calling ‘get_steps_using_prefix_recurse’ from ‘get_steps_using_prefix_recurse’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def495]
postgresql-18.1/src/backend/partitioning/partprune.c:3516:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lc2’
postgresql-18.1/src/backend/partitioning/partprune.c:3444:1: enter_function: entry to ‘perform_pruning_base_step’
postgresql-18.1/src/backend/partitioning/partprune.c:3461:15: call_function: inlined call to ‘list_head’ from ‘perform_pruning_base_step’
postgresql-18.1/src/backend/partitioning/partprune.c:3462:15: call_function: inlined call to ‘list_head’ from ‘perform_pruning_base_step’
postgresql-18.1/src/backend/partitioning/partprune.c:3468:9: branch_false: ...to here
postgresql-18.1/src/backend/partitioning/partprune.c:3468:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/partitioning/partprune.c:3475:42: branch_true: ...to here
postgresql-18.1/src/backend/partitioning/partprune.c:3475:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/partitioning/partprune.c:3482:20: branch_false: ...to here
postgresql-18.1/src/backend/partitioning/partprune.c:3482:20: branch_false: following ‘false’ branch (when ‘keyno <= nvalues’)...
postgresql-18.1/src/backend/partitioning/partprune.c:3485:20: branch_false: ...to here
postgresql-18.1/src/backend/partitioning/partprune.c:3485:20: branch_true: following ‘true’ branch (when ‘lc1’ is non-NULL)...
postgresql-18.1/src/backend/partitioning/partprune.c:3492:25: branch_true: ...to here
postgresql-18.1/src/backend/partitioning/partprune.c:3503:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/partitioning/partprune.c:3516:25: branch_false: ...to here
postgresql-18.1/src/backend/partitioning/partprune.c:3516:25: danger: dereference of NULL ‘lc2’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def496]
postgresql-18.1/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): [#def497]
postgresql-18.1/src/backend/postmaster/postmaster.c:4096:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("postmaster.opts", "w")’
postgresql-18.1/src/backend/postmaster/postmaster.c:4088:19: acquire_resource: opened here
postgresql-18.1/src/backend/postmaster/postmaster.c:4088:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/postmaster/postmaster.c:4096:9: branch_false: ...to here
postgresql-18.1/src/backend/postmaster/postmaster.c:4096:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/src/backend/postmaster/postmaster.c:4096: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): [#def498]
postgresql-18.1/src/backend/postmaster/postmaster.c:4096:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("postmaster.opts", "w")’
postgresql-18.1/src/backend/postmaster/postmaster.c:4088:19: acquire_memory: allocated here
postgresql-18.1/src/backend/postmaster/postmaster.c:4088:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/postmaster/postmaster.c:4096:9: branch_false: ...to here
postgresql-18.1/src/backend/postmaster/postmaster.c:4096:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/src/backend/postmaster/postmaster.c:4096: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: [#def499]
postgresql-18.1/src/backend/postmaster/syslogger.c:238:32: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
postgresql-18.1/src/backend/postmaster/syslogger.c:219:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/postmaster/syslogger.c:221:46: branch_true: ...to here
postgresql-18.1/src/backend/postmaster/syslogger.c:234:17: release_resource: closed here
postgresql-18.1/src/backend/postmaster/syslogger.c:236:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/postmaster/syslogger.c:238:32: branch_true: ...to here
postgresql-18.1/src/backend/postmaster/syslogger.c:238:32: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def500]
postgresql-18.1/src/backend/postmaster/syslogger.c:239:32: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
postgresql-18.1/src/backend/postmaster/syslogger.c:219:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/postmaster/syslogger.c:221:46: branch_true: ...to here
postgresql-18.1/src/backend/postmaster/syslogger.c:235:17: release_resource: closed here
postgresql-18.1/src/backend/postmaster/syslogger.c:236:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/postmaster/syslogger.c:238:32: branch_true: ...to here
postgresql-18.1/src/backend/postmaster/syslogger.c:239:32: danger: ‘2’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-775): [#def501]
postgresql-18.1/src/backend/postmaster/syslogger.c:736:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(syslogPipe[1], 1)’
postgresql-18.1/src/backend/postmaster/syslogger.c:593:1: enter_function: entry to ‘SysLogger_Start’
postgresql-18.1/src/backend/postmaster/syslogger.c:663:20: call_function: calling ‘logfile_getname’ from ‘SysLogger_Start’
postgresql-18.1/src/backend/postmaster/syslogger.c:663:20: return_function: returning to ‘SysLogger_Start’ from ‘logfile_getname’
postgresql-18.1/src/backend/postmaster/syslogger.c:708:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/postmaster/syslogger.c:718:13: branch_false: ...to here
postgresql-18.1/src/backend/postmaster/syslogger.c:718:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/postmaster/syslogger.c:729:17: branch_false: ...to here
postgresql-18.1/src/backend/postmaster/syslogger.c:736:21: acquire_resource: opened here
postgresql-18.1/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): [#def502]
postgresql-18.1/src/backend/postmaster/syslogger.c:741:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(syslogPipe[1], 2)’
postgresql-18.1/src/backend/postmaster/syslogger.c:593:1: enter_function: entry to ‘SysLogger_Start’
postgresql-18.1/src/backend/postmaster/syslogger.c:663:20: call_function: calling ‘logfile_getname’ from ‘SysLogger_Start’
postgresql-18.1/src/backend/postmaster/syslogger.c:663:20: return_function: returning to ‘SysLogger_Start’ from ‘logfile_getname’
postgresql-18.1/src/backend/postmaster/syslogger.c:708:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/postmaster/syslogger.c:718:13: branch_false: ...to here
postgresql-18.1/src/backend/postmaster/syslogger.c:718:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/postmaster/syslogger.c:729:17: branch_false: ...to here
postgresql-18.1/src/backend/postmaster/syslogger.c:736:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/postmaster/syslogger.c:740:17: branch_false: ...to here
postgresql-18.1/src/backend/postmaster/syslogger.c:741:21: acquire_resource: opened here
postgresql-18.1/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): [#def503]
postgresql-18.1/src/backend/postmaster/syslogger.c:1517:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("current_logfiles.tmp", "w")’
postgresql-18.1/src/backend/postmaster/syslogger.c:1496:14: acquire_resource: opened here
postgresql-18.1/src/backend/postmaster/syslogger.c:1499:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/postmaster/syslogger.c:1501:17: branch_true: ...to here
postgresql-18.1/src/backend/postmaster/syslogger.c:1517:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/postmaster/syslogger.c:1519:21: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/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): [#def504]
postgresql-18.1/src/backend/postmaster/syslogger.c:1517:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("current_logfiles.tmp", "w")’
postgresql-18.1/src/backend/postmaster/syslogger.c:1496:14: acquire_memory: allocated here
postgresql-18.1/src/backend/postmaster/syslogger.c:1499:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/postmaster/syslogger.c:1501:17: branch_true: ...to here
postgresql-18.1/src/backend/postmaster/syslogger.c:1517:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/postmaster/syslogger.c:1519:21: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/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): [#def505]
postgresql-18.1/src/backend/regex/rege_dfa.c:1021:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘<unknown>’
postgresql-18.1/src/backend/regex/rege_dfa.c:985:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/regex/rege_dfa.c:990:9: branch_false: ...to here
postgresql-18.1/src/backend/regex/rege_dfa.c:1002:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/regex/rege_dfa.c:1004:21: branch_true: ...to here
postgresql-18.1/src/backend/regex/rege_dfa.c:1006:20: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
postgresql-18.1/src/backend/regex/rege_dfa.c:1009:21: branch_false: ...to here
postgresql-18.1/src/backend/regex/rege_dfa.c:1021:25: danger: dereference of NULL ‘lastap.ss’
Error: CPPCHECK_WARNING (CWE-457): [#def506]
postgresql-18.1/src/backend/regex/regexec.c:235: warning[uninitvar]: Uninitialized variable: v->pmatch
Error: CPPCHECK_WARNING (CWE-457): [#def507]
postgresql-18.1/src/backend/replication/logical/reorderbuffer.c:5017: error[legacyUninitvar]: Uninitialized variable: chunksize
Error: GCC_ANALYZER_WARNING (CWE-457): [#def508]
postgresql-18.1/src/backend/replication/repl_gram.c:1113:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18.1/src/backend/replication/repl_gram.c:1071:6: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/replication/repl_gram.c:1077:28: branch_true: ...to here
postgresql-18.1/src/backend/replication/repl_gram.c:1100:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18.1/src/backend/replication/repl_gram.c:1102:7: branch_false: ...to here
postgresql-18.1/src/backend/replication/repl_gram.c:1111:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/replication/repl_gram.c:1113:9: branch_false: ...to here
postgresql-18.1/src/backend/replication/repl_gram.c:1113:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def509]
postgresql-18.1/src/backend/replication/syncrep_gram.c:988:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18.1/src/backend/replication/syncrep_gram.c:946:6: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/replication/syncrep_gram.c:952:28: branch_true: ...to here
postgresql-18.1/src/backend/replication/syncrep_gram.c:975:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18.1/src/backend/replication/syncrep_gram.c:977:7: branch_false: ...to here
postgresql-18.1/src/backend/replication/syncrep_gram.c:986:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/replication/syncrep_gram.c:988:9: branch_false: ...to here
postgresql-18.1/src/backend/replication/syncrep_gram.c:988:9: danger: use of uninitialized value ‘yyss’ here
Error: CPPCHECK_WARNING (CWE-768): [#def510]
postgresql-18.1/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): [#def511]
postgresql-18.1/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): [#def512]
postgresql-18.1/src/backend/statistics/dependencies.c:795:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘clause’
postgresql-18.1/src/backend/statistics/dependencies.c:741:1: enter_function: entry to ‘dependency_is_compatible_clause’
postgresql-18.1/src/backend/statistics/dependencies.c:746:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/statistics/dependencies.c:751:21: branch_true: ...to here
postgresql-18.1/src/backend/statistics/dependencies.c:751:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/statistics/dependencies.c:755:36: branch_false: ...to here
postgresql-18.1/src/backend/statistics/dependencies.c:755:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/statistics/dependencies.c:758:17: branch_false: ...to here
postgresql-18.1/src/backend/statistics/dependencies.c:761:13: call_function: inlined call to ‘is_opclause’ from ‘dependency_is_compatible_clause’
postgresql-18.1/src/backend/statistics/dependencies.c:795:18: branch_false: ...to here
postgresql-18.1/src/backend/statistics/dependencies.c:795:18: danger: dereference of NULL ‘clause’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def513]
postgresql-18.1/src/backend/statistics/dependencies.c:1223:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘clause’
postgresql-18.1/src/backend/statistics/dependencies.c:1168:1: enter_function: entry to ‘dependency_is_compatible_expression’
postgresql-18.1/src/backend/statistics/dependencies.c:1174:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/statistics/dependencies.c:1179:21: branch_true: ...to here
postgresql-18.1/src/backend/statistics/dependencies.c:1179:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/statistics/dependencies.c:1183:36: branch_false: ...to here
postgresql-18.1/src/backend/statistics/dependencies.c:1183:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/statistics/dependencies.c:1186:17: branch_false: ...to here
postgresql-18.1/src/backend/statistics/dependencies.c:1189:13: call_function: inlined call to ‘is_opclause’ from ‘dependency_is_compatible_expression’
postgresql-18.1/src/backend/statistics/dependencies.c:1223:18: branch_false: ...to here
postgresql-18.1/src/backend/statistics/dependencies.c:1223:18: danger: dereference of NULL ‘clause’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def514]
postgresql-18.1/src/backend/statistics/mcv.c:1710:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘clause’
postgresql-18.1/src/backend/statistics/mcv.c:2126:1: enter_function: entry to ‘mcv_clause_selectivity_or’
postgresql-18.1/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): [#def515]
postgresql-18.1/src/backend/storage/file/fd.c:2928:38: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18.1/src/backend/storage/file/fd.c:2912:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/storage/file/fd.c:2919:9: branch_true: ...to here
postgresql-18.1/src/backend/storage/file/fd.c:2922:20: acquire_memory: allocated here
postgresql-18.1/src/backend/storage/file/fd.c:2928:38: throw: if ‘GetCurrentSubTransactionId’ throws an exception...
postgresql-18.1/src/backend/storage/file/fd.c:2928:38: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-909): [#def516]
postgresql-18.1/src/backend/storage/lmgr/lmgr.c:729: error[uninitStructMember]: Uninitialized struct member: callback.previous
Error: GCC_ANALYZER_WARNING (CWE-457): [#def517]
postgresql-18.1/src/backend/storage/page/bufpage.c:523:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*itemidptr.itemoff’
postgresql-18.1/src/backend/storage/page/bufpage.c:698:1: enter_function: entry to ‘PageRepairFragmentation’
postgresql-18.1/src/backend/storage/page/bufpage.c:722:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/storage/page/bufpage.c:724:17: branch_false: ...to here
postgresql-18.1/src/backend/storage/page/bufpage.c:722:13: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/storage/page/bufpage.c:726:17: branch_false: ...to here
postgresql-18.1/src/backend/storage/page/bufpage.c:722:13: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/storage/page/bufpage.c:735:17: call_function: inlined call to ‘PageGetMaxOffsetNumber’ from ‘PageRepairFragmentation’
postgresql-18.1/src/backend/storage/page/bufpage.c:735:9: branch_true: ...to here
postgresql-18.1/src/backend/storage/page/bufpage.c:739:37: branch_false: following ‘false’ branch (when ‘i > nline’)...
postgresql-18.1/src/backend/storage/page/bufpage.c:776:30: branch_false: ...to here
postgresql-18.1/src/backend/storage/page/bufpage.c:777:12: branch_false: following ‘false’ branch (when ‘nstorage != 0’)...
postgresql-18.1/src/backend/storage/page/bufpage.c:785:39: branch_false: ...to here
postgresql-18.1/src/backend/storage/page/bufpage.c:785:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/storage/page/bufpage.c:791:17: branch_false: ...to here
postgresql-18.1/src/backend/storage/page/bufpage.c:791:17: call_function: calling ‘compactify_tuples’ from ‘PageRepairFragmentation’
Error: CPPCHECK_WARNING (CWE-457): [#def518]
postgresql-18.1/src/backend/tsearch/dict_synonym.c:232: error[uninitvar]: Uninitialized variables: &key.outlen, &key.flags
Error: GCC_ANALYZER_WARNING (CWE-476): [#def519]
postgresql-18.1/src/backend/tsearch/ts_parse.c:82:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘res’
postgresql-18.1/src/backend/tsearch/ts_parse.c:540:1: enter_function: entry to ‘hlparsetext’
postgresql-18.1/src/backend/tsearch/ts_parse.c:590:38: call_function: calling ‘LexizeExec’ from ‘hlparsetext’
Error: CPPCHECK_WARNING (CWE-476): [#def520]
postgresql-18.1/src/backend/tsearch/wparser.c:196: error[nullPointer]: Null pointer dereference
Error: CPPCHECK_WARNING (CWE-476): [#def521]
postgresql-18.1/src/backend/tsearch/wparser.c:196: error[nullPointer]: Null pointer dereference: lex
Error: CPPCHECK_WARNING (CWE-476): [#def522]
postgresql-18.1/src/backend/tsearch/wparser_def.c:454: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def523]
postgresql-18.1/src/backend/tsearch/wparser_def.c:454: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def524]
postgresql-18.1/src/backend/tsearch/wparser_def.c:455: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def525]
postgresql-18.1/src/backend/tsearch/wparser_def.c:455: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def526]
postgresql-18.1/src/backend/tsearch/wparser_def.c:456: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def527]
postgresql-18.1/src/backend/tsearch/wparser_def.c:456: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def528]
postgresql-18.1/src/backend/tsearch/wparser_def.c:457: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def529]
postgresql-18.1/src/backend/tsearch/wparser_def.c:457: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def530]
postgresql-18.1/src/backend/tsearch/wparser_def.c:458: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def531]
postgresql-18.1/src/backend/tsearch/wparser_def.c:458: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def532]
postgresql-18.1/src/backend/tsearch/wparser_def.c:459: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def533]
postgresql-18.1/src/backend/tsearch/wparser_def.c:459: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def534]
postgresql-18.1/src/backend/tsearch/wparser_def.c:460: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def535]
postgresql-18.1/src/backend/tsearch/wparser_def.c:460: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def536]
postgresql-18.1/src/backend/tsearch/wparser_def.c:461: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def537]
postgresql-18.1/src/backend/tsearch/wparser_def.c:461: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def538]
postgresql-18.1/src/backend/tsearch/wparser_def.c:462: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def539]
postgresql-18.1/src/backend/tsearch/wparser_def.c:462: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def540]
postgresql-18.1/src/backend/tsearch/wparser_def.c:470: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def541]
postgresql-18.1/src/backend/tsearch/wparser_def.c:470: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def542]
postgresql-18.1/src/backend/tsearch/wparser_def.c:477: error[ctunullpointer]: Null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def543]
postgresql-18.1/src/backend/tsearch/wparser_def.c:477: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def544]
postgresql-18.1/src/backend/tsearch/wparser_def.c:483: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-476): [#def545]
postgresql-18.1/src/backend/tsearch/wparser_def.c:489: warning[nullPointer]: Possible null pointer dereference: prs
Error: CPPCHECK_WARNING (CWE-457): [#def546]
postgresql-18.1/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: CPPCHECK_WARNING (CWE-457): [#def547]
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:1351: warning[uninitvar]: Uninitialized variable: dim
Error: CPPCHECK_WARNING (CWE-457): [#def548]
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:1352: warning[uninitvar]: Uninitialized variable: lBound
Error: CPPCHECK_WARNING (CWE-457): [#def549]
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:1697: warning[uninitvar]: Uninitialized variable: buf
Error: CPPCHECK_WARNING (CWE-457): [#def550]
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:2902: warning[uninitvar]: Uninitialized variable: dim
Error: GCC_ANALYZER_WARNING (CWE-476): [#def551]
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:3784:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bitmap’
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:3779:18: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:3779:18: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:3782:16: branch_true: following ‘true’ branch (when ‘nelems > 7’)...
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:3784:21: branch_true: ...to here
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:3784:21: danger: dereference of NULL ‘bitmap’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def552]
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:3794:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘bitmap’
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:3779:18: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:3779:18: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:3782:16: branch_false: following ‘false’ branch (when ‘nelems <= 7’)...
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:3782:16: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:3792:16: branch_true: following ‘true’ branch (when ‘nelems > 0’)...
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:3794:22: branch_true: ...to here
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:3794:22: danger: dereference of NULL ‘bitmap’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def553]
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:4980:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘destbitmap’
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:5703:1: enter_function: entry to ‘makeArrayResultArr’
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:5713:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:5724:54: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:5750:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:5751:25: branch_true: ...to here
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:5751:25: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:5751:25: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/arrayfuncs.c:5751:25: call_function: calling ‘array_bitmap_copy’ from ‘makeArrayResultArr’
Error: CPPCHECK_WARNING (CWE-457): [#def554]
postgresql-18.1/src/backend/utils/adt/dbsize.c:625: warning[uninitvar]: Uninitialized variable: buf
Error: CPPCHECK_WARNING (CWE-457): [#def555]
postgresql-18.1/src/backend/utils/adt/inet_cidr_ntop.c:285: warning[uninitvar]: Uninitialized variable: outbuf
Error: CPPCHECK_WARNING (CWE-457): [#def556]
postgresql-18.1/src/backend/utils/adt/jsonbsubs.c:152: error[legacyUninitvar]: Uninitialized variable: subExpr
Error: CPPCHECK_WARNING (CWE-476): [#def557]
postgresql-18.1/src/backend/utils/adt/jsonfuncs.c:5839: warning[nullPointer]: Possible null pointer dereference: res
Error: CPPCHECK_WARNING (CWE-457): [#def558]
postgresql-18.1/src/backend/utils/adt/jsonpath.c:127: error[legacyUninitvar]: Uninitialized variable: nbytes
Error: CPPCHECK_WARNING (CWE-457): [#def559]
postgresql-18.1/src/backend/utils/adt/jsonpath.c:127: error[legacyUninitvar]: Uninitialized variable: str
Error: CPPCHECK_WARNING (CWE-768): [#def560]
postgresql-18.1/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): [#def561]
postgresql-18.1/src/backend/utils/adt/jsonpath_gram.c:1236:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18.1/src/backend/utils/adt/jsonpath_gram.c:1194:6: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/utils/adt/jsonpath_gram.c:1200:28: branch_true: ...to here
postgresql-18.1/src/backend/utils/adt/jsonpath_gram.c:1223:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18.1/src/backend/utils/adt/jsonpath_gram.c:1225:7: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/jsonpath_gram.c:1234:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/jsonpath_gram.c:1236:9: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/jsonpath_gram.c:1236:9: danger: use of uninitialized value ‘yyss’ here
Error: CPPCHECK_WARNING (CWE-768): [#def562]
postgresql-18.1/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): [#def563]
postgresql-18.1/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: CPPCHECK_WARNING (CWE-476): [#def564]
postgresql-18.1/src/backend/utils/adt/lockfuncs.c:510: warning[nullPointer]: Possible null pointer dereference: blocked_instance
Error: GCC_ANALYZER_WARNING (CWE-476): [#def565]
postgresql-18.1/src/backend/utils/adt/lockfuncs.c:510:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘blocked_instance’
postgresql-18.1/src/backend/utils/adt/lockfuncs.c:483:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/utils/adt/lockfuncs.c:485:43: branch_true: ...to here
postgresql-18.1/src/backend/utils/adt/lockfuncs.c:497:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/lockfuncs.c:509:58: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/lockfuncs.c:510:61: danger: dereference of NULL ‘blocked_instance’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def566]
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.currency_symbol’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:532:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:541:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:564:42: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:568:37: acquire_memory: allocated here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589: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): [#def567]
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.decimal_point’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:532:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:541:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:564:42: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:564:35: acquire_memory: allocated here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589: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): [#def568]
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.grouping’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:532:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:541:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:564:42: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:566:30: acquire_memory: allocated here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589: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): [#def569]
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.int_curr_symbol’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:532:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:541:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:564:42: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:567:37: acquire_memory: allocated here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589: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): [#def570]
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_decimal_point’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:532:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:541:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:564:42: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:569:39: acquire_memory: allocated here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589: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): [#def571]
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_grouping’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:532:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:541:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:564:42: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:571:34: acquire_memory: allocated here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589: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): [#def572]
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.mon_thousands_sep’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:532:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:541:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:564:42: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:570:39: acquire_memory: allocated here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589: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): [#def573]
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.negative_sign’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:532:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:541:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:564:42: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:573:35: acquire_memory: allocated here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589: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): [#def574]
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.positive_sign’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:532:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:541:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:564:42: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:572:35: acquire_memory: allocated here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589: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): [#def575]
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: warning[-Wanalyzer-malloc-leak]: leak of ‘worklconv.thousands_sep’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:532:1: enter_function: entry to ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:541:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:545:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:555:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:564:42: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:565:35: acquire_memory: allocated here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: call_function: calling ‘struct_lconv_is_valid’ from ‘PGLC_localeconv’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:14: return_function: returning to ‘PGLC_localeconv’ from ‘struct_lconv_is_valid’
postgresql-18.1/src/backend/utils/adt/pg_locale.c:588:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: branch_false: ...to here
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589:17: throw: if ‘errstart_cold’ throws an exception...
postgresql-18.1/src/backend/utils/adt/pg_locale.c:589: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-768): [#def576]
postgresql-18.1/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): [#def577]
postgresql-18.1/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): [#def578]
postgresql-18.1/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): [#def579]
postgresql-18.1/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): [#def580]
postgresql-18.1/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): [#def581]
postgresql-18.1/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): [#def582]
postgresql-18.1/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-190): [#def583]
postgresql-18.1/src/backend/utils/adt/tsgistidx.c:188: error[integerOverflow]: Signed integer underflow for expression '*(int32*)&c'.
Error: CPPCHECK_WARNING (CWE-476): [#def584]
postgresql-18.1/src/backend/utils/adt/varlena.c:471: warning[nullPointer]: Possible null pointer dereference: rp
Error: COMPILER_WARNING (CWE-704): [#def585]
postgresql-18.1/src/backend/utils/adt/xid8funcs.c: scope_hint: In function ‘is_visible_fxid’
postgresql-18.1/src/backend/utils/adt/xid8funcs.c:198:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def586]
postgresql-18.1/src/backend/utils/adt/xid8funcs.c:198:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: CPPCHECK_WARNING (CWE-768): [#def587]
postgresql-18.1/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): [#def588]
postgresql-18.1/src/backend/utils/cache/catcache.c:2320: warning[nullPointer]: Possible null pointer dereference: srckeys
Error: GCC_ANALYZER_WARNING (CWE-457): [#def589]
postgresql-18.1/src/backend/utils/cache/ts_cache.c:503:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&mapdicts’
postgresql-18.1/src/backend/utils/cache/ts_cache.c:385:1: enter_function: entry to ‘lookup_ts_config_cache’
postgresql-18.1/src/backend/utils/cache/ts_cache.c:424:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:427:43: call_function: inlined call to ‘GETSTRUCT’ from ‘lookup_ts_config_cache’
postgresql-18.1/src/backend/utils/cache/ts_cache.c:432:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:435:20: branch_false: ...to here
postgresql-18.1/src/backend/utils/cache/ts_cache.c:485:24: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:487:80: call_function: inlined call to ‘GETSTRUCT’ from ‘lookup_ts_config_cache’
postgresql-18.1/src/backend/utils/cache/ts_cache.c:490:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:492:28: branch_false: ...to here
postgresql-18.1/src/backend/utils/cache/ts_cache.c:492:28: branch_false: following ‘false’ branch (when ‘maxtokentype <= toktype’)...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:494:28: branch_false: ...to here
postgresql-18.1/src/backend/utils/cache/ts_cache.c:494:28: branch_true: following ‘true’ branch (when ‘maxtokentype < toktype’)...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:497:36: branch_true: ...to here
postgresql-18.1/src/backend/utils/cache/ts_cache.c:497:36: branch_false: following ‘false’ branch (when ‘ndicts <= 0’)...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:507:47: branch_false: ...to here
postgresql-18.1/src/backend/utils/cache/ts_cache.c:485:24: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:487:80: call_function: inlined call to ‘GETSTRUCT’ from ‘lookup_ts_config_cache’
postgresql-18.1/src/backend/utils/cache/ts_cache.c:490:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:492:28: branch_false: ...to here
postgresql-18.1/src/backend/utils/cache/ts_cache.c:492:28: branch_false: following ‘false’ branch (when ‘maxtokentype <= toktype’)...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:494:28: branch_false: ...to here
postgresql-18.1/src/backend/utils/cache/ts_cache.c:494:28: branch_true: following ‘true’ branch (when ‘maxtokentype < toktype’)...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:497:36: branch_true: ...to here
postgresql-18.1/src/backend/utils/cache/ts_cache.c:503:41: danger: use of uninitialized value ‘&mapdicts’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def590]
postgresql-18.1/src/backend/utils/cache/ts_cache.c:530:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&mapdicts’
postgresql-18.1/src/backend/utils/cache/ts_cache.c:385:1: enter_function: entry to ‘lookup_ts_config_cache’
postgresql-18.1/src/backend/utils/cache/ts_cache.c:424:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:427:43: call_function: inlined call to ‘GETSTRUCT’ from ‘lookup_ts_config_cache’
postgresql-18.1/src/backend/utils/cache/ts_cache.c:432:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:435:20: branch_false: ...to here
postgresql-18.1/src/backend/utils/cache/ts_cache.c:485:24: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:487:80: call_function: inlined call to ‘GETSTRUCT’ from ‘lookup_ts_config_cache’
postgresql-18.1/src/backend/utils/cache/ts_cache.c:490:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:492:28: branch_false: ...to here
postgresql-18.1/src/backend/utils/cache/ts_cache.c:492:28: branch_false: following ‘false’ branch (when ‘maxtokentype <= toktype’)...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:494:28: branch_false: ...to here
postgresql-18.1/src/backend/utils/cache/ts_cache.c:494:28: branch_true: following ‘true’ branch (when ‘maxtokentype < toktype’)...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:497:36: branch_true: ...to here
postgresql-18.1/src/backend/utils/cache/ts_cache.c:497:36: branch_false: following ‘false’ branch (when ‘ndicts <= 0’)...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:507:47: branch_false: ...to here
postgresql-18.1/src/backend/utils/cache/ts_cache.c:523:20: branch_true: following ‘true’ branch (when ‘ndicts > 0’)...
postgresql-18.1/src/backend/utils/cache/ts_cache.c:526:25: branch_true: ...to here
postgresql-18.1/src/backend/utils/cache/ts_cache.c:530:25: danger: use of uninitialized value ‘&mapdicts’ here
Error: CPPCHECK_WARNING (CWE-457): [#def591]
postgresql-18.1/src/backend/utils/cache/typcache.c:2901: warning[uninitvar]: Uninitialized variable: &srch.sort_order
Error: GCC_ANALYZER_WARNING (CWE-404): [#def592]
postgresql-18.1/src/backend/utils/error/elog.c:1168:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/backend/utils/error/elog.c:752:1: enter_function: entry to ‘get_error_stack_entry’
postgresql-18.1/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): [#def593]
postgresql-18.1/src/backend/utils/error/elog.c:1681:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/backend/utils/error/elog.c:2242:1: enter_function: entry to ‘check_log_destination’
postgresql-18.1/src/backend/utils/error/elog.c:2254:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/error/elog.c:2257:17: branch_false: ...to here
postgresql-18.1/src/backend/utils/error/elog.c:2257:17: call_function: calling ‘format_elog_string’ from ‘check_log_destination’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def594]
postgresql-18.1/src/backend/utils/error/elog.c:3806:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/backend/utils/error/elog.c:3782:1: enter_function: entry to ‘write_stderr’
postgresql-18.1/src/backend/utils/error/elog.c:3786:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/backend/utils/error/elog.c:3787:9: call_function: calling ‘vwrite_stderr’ from ‘write_stderr’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def595]
postgresql-18.1/src/backend/utils/error/jsonlog.c:88:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/backend/utils/error/jsonlog.c:87:17: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/backend/utils/error/jsonlog.c:88:26: throw: if ‘pvsnprintf’ throws an exception...
postgresql-18.1/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): [#def596]
postgresql-18.1/src/backend/utils/init/postinit.c:1295:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18.1/src/backend/utils/init/postinit.c:1244:1: enter_function: entry to ‘process_startup_options’
postgresql-18.1/src/backend/utils/init/postinit.c:1286:19: call_function: inlined call to ‘list_head’ from ‘process_startup_options’
postgresql-18.1/src/backend/utils/init/postinit.c:1287:16: branch_true: following ‘true’ branch (when ‘gucopts’ is non-NULL)...
postgresql-18.1/src/backend/utils/init/postinit.c:1292:17: branch_true: ...to here
postgresql-18.1/src/backend/utils/init/postinit.c:1295:17: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def597]
postgresql-18.1/src/backend/utils/misc/guc.c:5994:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/backend/utils/misc/guc.c:5990:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/misc/guc.c:5993:9: branch_false: ...to here
postgresql-18.1/src/backend/utils/misc/guc.c:5993:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/backend/utils/misc/guc.c:5994:13: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18.1/src/backend/utils/misc/guc.c:5994: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): [#def598]
postgresql-18.1/src/backend/utils/misc/guc.c:6677:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘eqsgn’
postgresql-18.1/src/backend/utils/misc/guc.c:6649:12: branch_false: following ‘false’ branch (when ‘array’ is non-NULL)...
postgresql-18.1/src/backend/utils/misc/guc.c:6653:13: branch_false: ...to here
postgresql-18.1/src/backend/utils/misc/guc.c:6653:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/misc/guc.c:6657:9: branch_false: ...to here
postgresql-18.1/src/backend/utils/misc/guc.c:6659:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/utils/misc/guc.c:6666:21: branch_true: ...to here
postgresql-18.1/src/backend/utils/misc/guc.c:6677:17: danger: dereference of NULL ‘eqsgn’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def599]
postgresql-18.1/src/backend/utils/misc/ps_status.c:203:33: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
postgresql-18.1/src/backend/utils/misc/ps_status.c:138:29: branch_true: following ‘true’ branch (when ‘i < argc’)...
postgresql-18.1/src/backend/utils/misc/ps_status.c:140:28: branch_true: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:140:28: branch_true: following ‘true’ branch (when ‘i == 0’)...
postgresql-18.1/src/backend/utils/misc/ps_status.c:141:51: branch_true: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:144:20: branch_false: following ‘false’ branch (when ‘end_of_area’ is non-NULL)...
postgresql-18.1/src/backend/utils/misc/ps_status.c:144:20: branch_false: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:193:20: branch_false: following ‘false’ branch (when ‘new_environ’ is non-NULL)...
postgresql-18.1/src/backend/utils/misc/ps_status.c:193:20: branch_false: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:198:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/utils/misc/ps_status.c:200:36: branch_true: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:200:42: acquire_memory: allocated here
postgresql-18.1/src/backend/utils/misc/ps_status.c:201:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/misc/ps_status.c:198:49: branch_false: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:198:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/utils/misc/ps_status.c:200:36: branch_true: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:201:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/utils/misc/ps_status.c:203:33: branch_true: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:203:33: throw: if ‘write_stderr’ throws an exception...
postgresql-18.1/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): [#def600]
postgresql-18.1/src/backend/utils/misc/ps_status.c:203:33: warning[-Wanalyzer-malloc-leak]: leak of ‘new_environ’
postgresql-18.1/src/backend/utils/misc/ps_status.c:138:29: branch_true: following ‘true’ branch (when ‘i < argc’)...
postgresql-18.1/src/backend/utils/misc/ps_status.c:140:28: branch_true: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:140:28: branch_true: following ‘true’ branch (when ‘i == 0’)...
postgresql-18.1/src/backend/utils/misc/ps_status.c:141:51: branch_true: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:144:20: branch_false: following ‘false’ branch (when ‘end_of_area’ is non-NULL)...
postgresql-18.1/src/backend/utils/misc/ps_status.c:144:20: branch_false: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:192:41: acquire_memory: allocated here
postgresql-18.1/src/backend/utils/misc/ps_status.c:193:20: branch_false: following ‘false’ branch (when ‘new_environ’ is non-NULL)...
postgresql-18.1/src/backend/utils/misc/ps_status.c:193:20: branch_false: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:198:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/utils/misc/ps_status.c:200:36: branch_true: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:201:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/utils/misc/ps_status.c:203:33: branch_true: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:203:33: throw: if ‘write_stderr’ throws an exception...
postgresql-18.1/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): [#def601]
postgresql-18.1/src/backend/utils/misc/ps_status.c:238:33: warning[-Wanalyzer-malloc-leak]: leak of ‘new_argv’
postgresql-18.1/src/backend/utils/misc/ps_status.c:138:29: branch_true: following ‘true’ branch (when ‘i < argc’)...
postgresql-18.1/src/backend/utils/misc/ps_status.c:140:28: branch_true: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:140:28: branch_true: following ‘true’ branch (when ‘i == 0’)...
postgresql-18.1/src/backend/utils/misc/ps_status.c:141:51: branch_true: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:144:20: branch_false: following ‘false’ branch (when ‘end_of_area’ is non-NULL)...
postgresql-18.1/src/backend/utils/misc/ps_status.c:144:20: branch_false: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:193:20: branch_false: following ‘false’ branch (when ‘new_environ’ is non-NULL)...
postgresql-18.1/src/backend/utils/misc/ps_status.c:193:20: branch_false: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:198:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/misc/ps_status.c:207:28: branch_false: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:227:38: acquire_memory: allocated here
postgresql-18.1/src/backend/utils/misc/ps_status.c:228:20: branch_false: following ‘false’ branch (when ‘new_argv’ is non-NULL)...
postgresql-18.1/src/backend/utils/misc/ps_status.c:228:20: branch_false: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:233:29: branch_true: following ‘true’ branch (when ‘i < argc’)...
postgresql-18.1/src/backend/utils/misc/ps_status.c:235:50: branch_true: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:236:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/utils/misc/ps_status.c:238:33: branch_true: ...to here
postgresql-18.1/src/backend/utils/misc/ps_status.c:238:33: throw: if ‘write_stderr’ throws an exception...
postgresql-18.1/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): [#def602]
postgresql-18.1/src/backend/utils/mmgr/aset.c:513:9: warning[-Wanalyzer-malloc-leak]: leak of ‘set’
postgresql-18.1/src/backend/utils/mmgr/aset.c:444:26: acquire_memory: allocated here
postgresql-18.1/src/backend/utils/mmgr/aset.c:445:12: branch_false: following ‘false’ branch (when ‘set’ is non-NULL)...
postgresql-18.1/src/backend/utils/mmgr/aset.c:462:9: branch_false: ...to here
postgresql-18.1/src/backend/utils/mmgr/aset.c:513:9: throw: if ‘MemoryContextCreate’ throws an exception...
postgresql-18.1/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): [#def603]
postgresql-18.1/src/backend/utils/mmgr/aset.c:919:38: warning[-Wanalyzer-malloc-leak]: leak of ‘block’
postgresql-18.1/src/backend/utils/mmgr/aset.c:914:16: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/utils/mmgr/aset.c:916:17: branch_true: ...to here
postgresql-18.1/src/backend/utils/mmgr/aset.c:917:20: branch_false: following ‘false’ branch (when ‘required_size <= blksize’)...
postgresql-18.1/src/backend/utils/mmgr/aset.c:919:38: branch_false: ...to here
postgresql-18.1/src/backend/utils/mmgr/aset.c:919:38: acquire_memory: allocated here
postgresql-18.1/src/backend/utils/mmgr/aset.c:914:16: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/utils/mmgr/aset.c:916:17: branch_true: ...to here
postgresql-18.1/src/backend/utils/mmgr/aset.c:917:20: branch_false: following ‘false’ branch (when ‘required_size <= blksize’)...
postgresql-18.1/src/backend/utils/mmgr/aset.c:919:38: branch_false: ...to here
postgresql-18.1/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-457): [#def604]
postgresql-18.1/src/backend/utils/mmgr/freepage.c:1441:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘result.index’
postgresql-18.1/src/backend/utils/mmgr/freepage.c:1476:1: enter_function: entry to ‘FreePageManagerPutInternal’
postgresql-18.1/src/backend/utils/mmgr/freepage.c:1489:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/utils/mmgr/freepage.c:1491:21: branch_true: ...to here
postgresql-18.1/src/backend/utils/mmgr/freepage.c:1491:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/mmgr/freepage.c:1499:26: branch_false: ...to here
postgresql-18.1/src/backend/utils/mmgr/freepage.c:1499:25: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/mmgr/freepage.c:1509:26: branch_false: ...to here
postgresql-18.1/src/backend/utils/mmgr/freepage.c:1509:25: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/mmgr/freepage.c:1525:30: branch_false: ...to here
postgresql-18.1/src/backend/utils/mmgr/freepage.c:1525:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/mmgr/freepage.c:1527:33: branch_false: ...to here
postgresql-18.1/src/backend/utils/mmgr/freepage.c:1527:33: branch_false: following ‘false’ branch (when ‘soft == 0’)...
postgresql-18.1/src/backend/utils/mmgr/freepage.c:1529:34: branch_false: ...to here
postgresql-18.1/src/backend/utils/mmgr/freepage.c:1529:34: call_function: calling ‘FreePageManagerGetInternal’ from ‘FreePageManagerPutInternal’
Error: CPPCHECK_WARNING (CWE-457): [#def605]
postgresql-18.1/src/backend/utils/mmgr/freepage.c:1538: error[legacyUninitvar]: Uninitialized variable: root
Error: GCC_ANALYZER_WARNING (CWE-401): [#def606]
postgresql-18.1/src/backend/utils/mmgr/generation.c:262:9: warning[-Wanalyzer-malloc-leak]: leak of ‘set’
postgresql-18.1/src/backend/utils/mmgr/generation.c:160:1: enter_function: entry to ‘GenerationContextCreate’
postgresql-18.1/src/backend/utils/mmgr/generation.c:209:37: acquire_memory: allocated here
postgresql-18.1/src/backend/utils/mmgr/generation.c:210:12: branch_false: following ‘false’ branch (when ‘set’ is non-NULL)...
postgresql-18.1/src/backend/utils/mmgr/generation.c:224:9: call_function: inlined call to ‘dlist_init’ from ‘GenerationContextCreate’
postgresql-18.1/src/backend/utils/mmgr/generation.c:257:16: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/utils/mmgr/generation.c:262:9: branch_false: ...to here
postgresql-18.1/src/backend/utils/mmgr/generation.c:262:9: throw: if ‘MemoryContextCreate’ throws an exception...
postgresql-18.1/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): [#def607]
postgresql-18.1/src/backend/utils/mmgr/slab.c:414:9: warning[-Wanalyzer-malloc-leak]: leak of ‘slab’
postgresql-18.1/src/backend/utils/mmgr/slab.c:322:1: enter_function: entry to ‘SlabContextCreate’
postgresql-18.1/src/backend/utils/mmgr/slab.c:358:12: branch_false: following ‘false’ branch (when ‘chunksPerBlock != 0’)...
postgresql-18.1/src/backend/utils/mmgr/slab.c:364:32: branch_false: ...to here
postgresql-18.1/src/backend/utils/mmgr/slab.c:364:32: acquire_memory: allocated here
postgresql-18.1/src/backend/utils/mmgr/slab.c:365:12: branch_false: following ‘false’ branch (when ‘slab’ is non-NULL)...
postgresql-18.1/src/backend/utils/mmgr/slab.c:381:27: branch_false: ...to here
postgresql-18.1/src/backend/utils/mmgr/slab.c:405:21: branch_true: following ‘true’ branch (when ‘i != 3’)...
postgresql-18.1/src/backend/utils/mmgr/slab.c:406:17: call_function: inlined call to ‘dlist_init’ from ‘SlabContextCreate’
postgresql-18.1/src/backend/utils/mmgr/slab.c:414:9: throw: if ‘MemoryContextCreate’ throws an exception...
postgresql-18.1/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): [#def608]
postgresql-18.1/src/bin/initdb/initdb.c:687:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
postgresql-18.1/src/bin/initdb/initdb.c:684:23: acquire_resource: opened here
postgresql-18.1/src/bin/initdb/initdb.c:684:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/initdb/initdb.c:687:9: branch_false: ...to here
postgresql-18.1/src/bin/initdb/initdb.c:687:9: throw: if ‘initStringInfo’ throws an exception...
postgresql-18.1/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-775): [#def609]
postgresql-18.1/src/bin/initdb/initdb.c:690:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
postgresql-18.1/src/bin/initdb/initdb.c:684:23: acquire_resource: opened here
postgresql-18.1/src/bin/initdb/initdb.c:684:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/initdb/initdb.c:687:9: branch_false: ...to here
postgresql-18.1/src/bin/initdb/initdb.c:690:28: throw: if ‘pg_malloc’ throws an exception...
postgresql-18.1/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-775): [#def610]
postgresql-18.1/src/bin/initdb/initdb.c:693:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
postgresql-18.1/src/bin/initdb/initdb.c:684:23: acquire_resource: opened here
postgresql-18.1/src/bin/initdb/initdb.c:684:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/initdb/initdb.c:687:9: branch_false: ...to here
postgresql-18.1/src/bin/initdb/initdb.c:693:16: throw: if ‘pg_get_line_buf’ throws an exception...
postgresql-18.1/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-775): [#def611]
postgresql-18.1/src/bin/initdb/initdb.c:730:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w")’
postgresql-18.1/src/bin/initdb/initdb.c:728:25: acquire_resource: opened here
postgresql-18.1/src/bin/initdb/initdb.c:728:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/initdb/initdb.c:728:12: branch_false: ...to here
postgresql-18.1/src/bin/initdb/initdb.c:730:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/initdb/initdb.c:732:21: branch_true: ...to here
postgresql-18.1/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-775): [#def612]
postgresql-18.1/src/bin/initdb/initdb.c:1036:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w")’
postgresql-18.1/src/bin/initdb/initdb.c:1034:29: acquire_resource: opened here
postgresql-18.1/src/bin/initdb/initdb.c:1034:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/initdb/initdb.c:1036:13: branch_false: ...to here
postgresql-18.1/src/bin/initdb/initdb.c:1036:13: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/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-775): [#def613]
postgresql-18.1/src/bin/initdb/initdb.c:1694:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(pwfilename, "r")’
postgresql-18.1/src/bin/initdb/initdb.c:1661:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/initdb/initdb.c:1689:35: branch_false: ...to here
postgresql-18.1/src/bin/initdb/initdb.c:1689:35: acquire_resource: opened here
postgresql-18.1/src/bin/initdb/initdb.c:1691:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/initdb/initdb.c:1694:24: branch_false: ...to here
postgresql-18.1/src/bin/initdb/initdb.c:1694:24: throw: if ‘pg_get_line’ throws an exception...
postgresql-18.1/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-775): [#def614]
postgresql-18.1/src/bin/pg_basebackup/pg_basebackup.c:1021:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘state.file’
postgresql-18.1/src/bin/pg_basebackup/pg_basebackup.c:1699:1: enter_function: entry to ‘ReceiveBackupManifest’
postgresql-18.1/src/bin/pg_basebackup/pg_basebackup.c:1705:22: acquire_resource: opened here
postgresql-18.1/src/bin/pg_basebackup/pg_basebackup.c:1706:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_basebackup/pg_basebackup.c:1709:9: branch_false: ...to here
postgresql-18.1/src/bin/pg_basebackup/pg_basebackup.c:1709:9: call_function: calling ‘ReceiveCopyData’ from ‘ReceiveBackupManifest’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def615]
postgresql-18.1/src/bin/pg_ctl/pg_ctl.c:209:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/bin/pg_ctl/pg_ctl.c:1965:1: enter_function: entry to ‘do_advice’
postgresql-18.1/src/bin/pg_ctl/pg_ctl.c:1967:9: call_function: calling ‘write_stderr’ from ‘do_advice’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def616]
postgresql-18.1/src/bin/pg_dump/compress_gzip.c:389:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup(fd)’
postgresql-18.1/src/bin/pg_dump/compress_gzip.c:388:12: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
postgresql-18.1/src/bin/pg_dump/compress_gzip.c:389:24: branch_true: ...to here
postgresql-18.1/src/bin/pg_dump/compress_gzip.c:389:24: acquire_resource: opened here
postgresql-18.1/src/bin/pg_dump/compress_gzip.c:389:24: danger: ‘dup(fd)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def617]
postgresql-18.1/src/bin/pg_dump/parallel.c:506: warning[nullPointer]: Possible null pointer dereference: slot
Error: GCC_ANALYZER_WARNING (CWE-476): [#def618]
postgresql-18.1/src/bin/pg_dump/parallel.c:506:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘slot’
postgresql-18.1/src/bin/pg_dump/parallel.c:1061:1: enter_function: entry to ‘ParallelBackupEnd’
postgresql-18.1/src/bin/pg_dump/parallel.c:1066:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_dump/parallel.c:1066:12: branch_false: ...to here
postgresql-18.1/src/bin/pg_dump/parallel.c:1073:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_dump/parallel.c:1075:29: branch_true: ...to here
postgresql-18.1/src/bin/pg_dump/parallel.c:1073:21: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_dump/parallel.c:1080:9: branch_false: ...to here
postgresql-18.1/src/bin/pg_dump/parallel.c:1080:9: call_function: calling ‘WaitForTerminatingWorkers’ from ‘ParallelBackupEnd’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def619]
postgresql-18.1/src/bin/pg_dump/parallel.c:961:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipeMW[0]’
postgresql-18.1/src/bin/pg_dump/parallel.c:899:1: enter_function: entry to ‘ParallelBackupStart’
postgresql-18.1/src/bin/pg_dump/parallel.c:912:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_dump/parallel.c:917:28: branch_false: ...to here
postgresql-18.1/src/bin/pg_dump/parallel.c:941:9: call_function: calling ‘set_archive_cancel_info’ from ‘ParallelBackupStart’
postgresql-18.1/src/bin/pg_dump/parallel.c:941:9: return_function: returning to ‘ParallelBackupStart’ from ‘set_archive_cancel_info’
postgresql-18.1/src/bin/pg_dump/parallel.c:947:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_dump/parallel.c:955:40: branch_true: ...to here
postgresql-18.1/src/bin/pg_dump/parallel.c:960:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_dump/parallel.c:960:43: branch_false: ...to here
postgresql-18.1/src/bin/pg_dump/parallel.c:960:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_dump/parallel.c:961:25: branch_true: ...to here
postgresql-18.1/src/bin/pg_dump/parallel.c:961:25: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18.1/src/bin/pg_dump/parallel.c:961:25: danger: ‘pipeMW[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def620]
postgresql-18.1/src/bin/pg_dump/parallel.c:961:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipeMW[1]’
postgresql-18.1/src/bin/pg_dump/parallel.c:899:1: enter_function: entry to ‘ParallelBackupStart’
postgresql-18.1/src/bin/pg_dump/parallel.c:912:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_dump/parallel.c:917:28: branch_false: ...to here
postgresql-18.1/src/bin/pg_dump/parallel.c:941:9: call_function: calling ‘set_archive_cancel_info’ from ‘ParallelBackupStart’
postgresql-18.1/src/bin/pg_dump/parallel.c:941:9: return_function: returning to ‘ParallelBackupStart’ from ‘set_archive_cancel_info’
postgresql-18.1/src/bin/pg_dump/parallel.c:947:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_dump/parallel.c:955:40: branch_true: ...to here
postgresql-18.1/src/bin/pg_dump/parallel.c:960:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_dump/parallel.c:960:43: branch_false: ...to here
postgresql-18.1/src/bin/pg_dump/parallel.c:960:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_dump/parallel.c:961:25: branch_true: ...to here
postgresql-18.1/src/bin/pg_dump/parallel.c:961:25: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18.1/src/bin/pg_dump/parallel.c:961:25: danger: ‘pipeMW[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def621]
postgresql-18.1/src/bin/pg_dump/pg_backup_archiver.c:1773:23: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/bin/pg_dump/pg_backup_archiver.c:4292:1: enter_function: entry to ‘dumpTimestamp’
postgresql-18.1/src/bin/pg_dump/pg_backup_archiver.c:4296:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_dump/pg_backup_archiver.c:4297:17: branch_true: ...to here
postgresql-18.1/src/bin/pg_dump/pg_backup_archiver.c:4297:17: call_function: calling ‘ahprintf’ from ‘dumpTimestamp’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def622]
postgresql-18.1/src/bin/pg_dump/pg_backup_archiver.c:1934:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/bin/pg_dump/pg_backup_archiver.c:3579:1: enter_function: entry to ‘_selectOutputSchema’
postgresql-18.1/src/bin/pg_dump/pg_backup_archiver.c:3610:25: call_function: calling ‘warn_or_exit_horribly’ from ‘_selectOutputSchema’
Error: CPPCHECK_WARNING (CWE-476): [#def623]
postgresql-18.1/src/bin/pg_dump/pg_backup_archiver.c:2303: warning[nullPointer]: Possible null pointer dereference: fh
Error: GCC_ANALYZER_WARNING (CWE-404): [#def624]
postgresql-18.1/src/bin/pg_dump/pg_backup_tar.c:971:23: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/bin/pg_dump/pg_backup_tar.c:970:17: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/bin/pg_dump/pg_backup_tar.c:971:23: throw: if ‘pvsnprintf’ throws an exception...
postgresql-18.1/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): [#def625]
postgresql-18.1/src/bin/pg_dump/pg_dump.c:1586: error[legacyUninitvar]: Uninitialized variable: archiveFormat
Error: GCC_ANALYZER_WARNING (CWE-476): [#def626]
postgresql-18.1/src/bin/pg_dump/pg_dump.c:13420:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘probin’
postgresql-18.1/src/bin/pg_dump/pg_dump.c:13301:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_dump/pg_dump.c:13304:17: branch_true: ...to here
postgresql-18.1/src/bin/pg_dump/pg_dump.c:13309:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_dump/pg_dump.c:13379:43: branch_true: ...to here
postgresql-18.1/src/bin/pg_dump/pg_dump.c:13384:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_dump/pg_dump.c:13394:30: branch_false: ...to here
postgresql-18.1/src/bin/pg_dump/pg_dump.c:13416:12: branch_false: following ‘false’ branch (when ‘prosqlbody’ is NULL)...
postgresql-18.1/src/bin/pg_dump/pg_dump.c:13420:18: branch_false: ...to here
postgresql-18.1/src/bin/pg_dump/pg_dump.c:13420:18: danger: dereference of NULL ‘probin’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def627]
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14897:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘collcollate’
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14818:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14821:17: branch_true: ...to here
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14881:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14886:14: branch_false: ...to here
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14886:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14895:13: branch_false: ...to here
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14895:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14897:21: branch_true: ...to here
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14897:21: danger: dereference of NULL ‘collcollate’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def628]
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14899:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘collctype’
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14818:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14821:17: branch_true: ...to here
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14881:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14882:31: branch_true: ...to here
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14886:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14895:13: branch_false: ...to here
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14895:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14897:21: branch_true: ...to here
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14897:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14897:20: branch_true: ...to here
postgresql-18.1/src/bin/pg_dump/pg_dump.c:14899:21: danger: dereference of NULL ‘collctype’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def629]
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:553:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("PG_VERSION", "r")’
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:546:23: acquire_resource: opened here
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:546:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:551:14: branch_false: ...to here
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:551:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:553:22: branch_true: ...to here
postgresql-18.1/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-775): [#def630]
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:560:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("PG_VERSION", "r")’
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:546:23: acquire_resource: opened here
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:546:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:551:14: branch_false: ...to here
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:551:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:560:16: branch_false: ...to here
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:560:16: throw: if ‘pg_strip_crlf’ throws an exception...
postgresql-18.1/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-775): [#def631]
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:562:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("PG_VERSION", "r")’
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:546:23: acquire_resource: opened here
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:546:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:551:14: branch_false: ...to here
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:551:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_resetwal/pg_resetwal.c:560:16: branch_false: ...to here
postgresql-18.1/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-404): [#def632]
postgresql-18.1/src/bin/pg_rewind/xlogreader.c:79:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/bin/pg_rewind/xlogreader.c:78:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/bin/pg_rewind/xlogreader.c:79:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18.1/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): [#def633]
postgresql-18.1/src/bin/pg_test_fsync/pg_test_fsync.c:316:31: warning[-Wanalyzer-infinite-loop]: infinite loop
postgresql-18.1/src/bin/pg_test_fsync/pg_test_fsync.c:316:31: danger: infinite loop here
postgresql-18.1/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-18.1/src/bin/pg_test_fsync/pg_test_fsync.c:316:31: branch_true: ...to here
postgresql-18.1/src/bin/pg_test_fsync/pg_test_fsync.c:318:42: branch_false: when ‘writes >= writes_per_op’: always following ‘false’ branch...
postgresql-18.1/src/bin/pg_test_fsync/pg_test_fsync.c:316:57: branch_false: ...to here
Error: GCC_ANALYZER_WARNING (CWE-835): [#def634]
postgresql-18.1/src/bin/pg_test_fsync/pg_test_fsync.c:419:31: warning[-Wanalyzer-infinite-loop]: infinite loop
postgresql-18.1/src/bin/pg_test_fsync/pg_test_fsync.c:419:31: danger: infinite loop here
postgresql-18.1/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-18.1/src/bin/pg_test_fsync/pg_test_fsync.c:419:31: branch_true: ...to here
postgresql-18.1/src/bin/pg_test_fsync/pg_test_fsync.c:421:42: branch_false: when ‘writes >= writes_per_op’: always following ‘false’ branch...
postgresql-18.1/src/bin/pg_test_fsync/pg_test_fsync.c:419:57: branch_false: ...to here
Error: GCC_ANALYZER_WARNING (CWE-835): [#def635]
postgresql-18.1/src/bin/pg_test_fsync/pg_test_fsync.c:484:31: warning[-Wanalyzer-infinite-loop]: infinite loop
postgresql-18.1/src/bin/pg_test_fsync/pg_test_fsync.c:484:31: danger: infinite loop here
postgresql-18.1/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-18.1/src/bin/pg_test_fsync/pg_test_fsync.c:484:31: branch_true: ...to here
postgresql-18.1/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-18.1/src/bin/pg_test_fsync/pg_test_fsync.c:484:57: branch_false: ...to here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def636]
postgresql-18.1/src/bin/pg_upgrade/check.c:1043:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*deletion_script_file_name, "w")’
postgresql-18.1/src/bin/pg_upgrade/check.c:998:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/check.c:998:12: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/check.c:1037:23: acquire_resource: opened here
postgresql-18.1/src/bin/pg_upgrade/check.c:1037:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/check.c:1043:9: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/check.c:1043:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/src/bin/pg_upgrade/check.c:1043: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-775): [#def637]
postgresql-18.1/src/bin/pg_upgrade/check.c:1191:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/src/bin/pg_upgrade/check.c:1166:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/check.c:1168:39: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/check.c:1188:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/src/bin/pg_upgrade/check.c:1188:65: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/check.c:1188:65: acquire_resource: opened here
postgresql-18.1/src/bin/pg_upgrade/check.c:1188:37: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/check.c:1191:33: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/check.c:1191:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/src/bin/pg_upgrade/check.c:1191: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-775): [#def638]
postgresql-18.1/src/bin/pg_upgrade/check.c:1758:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/src/bin/pg_upgrade/check.c:1754:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/check.c:1756:20: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/check.c:1756:20: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/src/bin/pg_upgrade/check.c:1756:49: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/check.c:1756:49: acquire_resource: opened here
postgresql-18.1/src/bin/pg_upgrade/check.c:1756:21: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/check.c:1758:17: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/check.c:1758:17: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18.1/src/bin/pg_upgrade/check.c:1758: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-404): [#def639]
postgresql-18.1/src/bin/pg_upgrade/exec.c:109:20: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/bin/pg_upgrade/exec.c:108:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/bin/pg_upgrade/exec.c:109:20: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18.1/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): [#def640]
postgresql-18.1/src/bin/pg_upgrade/exec.c:167:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&log_file, "a")’
postgresql-18.1/src/bin/pg_upgrade/exec.c:111:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/exec.c:113:44: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/exec.c:115:12: branch_false: following ‘false’ branch (when ‘written <= 2047’)...
postgresql-18.1/src/bin/pg_upgrade/exec.c:118:9: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/exec.c:138:15: acquire_resource: opened here
postgresql-18.1/src/bin/pg_upgrade/exec.c:159:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/exec.c:167:9: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/exec.c:167:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/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-775): [#def641]
postgresql-18.1/src/bin/pg_upgrade/exec.c:219:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&log_file, "a")’
postgresql-18.1/src/bin/pg_upgrade/exec.c:111:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/exec.c:113:44: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/exec.c:115:12: branch_false: following ‘false’ branch (when ‘written <= 2047’)...
postgresql-18.1/src/bin/pg_upgrade/exec.c:118:9: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/exec.c:159:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/exec.c:167:9: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/exec.c:189:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/exec.c:217:20: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/exec.c:217:20: acquire_resource: opened here
postgresql-18.1/src/bin/pg_upgrade/exec.c:217:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/exec.c:219:9: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/exec.c:219:9: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/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-775): [#def642]
postgresql-18.1/src/bin/pg_upgrade/function.c:209:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/src/bin/pg_upgrade/function.c:187:26: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/function.c:189:35: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/function.c:195:20: branch_true: following ‘true’ branch (when ‘libnum == 0’)...
postgresql-18.1/src/bin/pg_upgrade/function.c:197:25: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/function.c:203:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/function.c:207:36: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/function.c:207:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/src/bin/pg_upgrade/function.c:207:65: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/function.c:207:65: acquire_resource: opened here
postgresql-18.1/src/bin/pg_upgrade/function.c:207:37: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/function.c:209:33: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/function.c:209:33: throw: if ‘PQerrorMessage’ throws an exception...
postgresql-18.1/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-476): [#def643]
postgresql-18.1/src/bin/pg_upgrade/info.c:216:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rel’
postgresql-18.1/src/bin/pg_upgrade/info.c:45:1: enter_function: entry to ‘gen_db_file_maps’
postgresql-18.1/src/bin/pg_upgrade/info.c:65:16: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/info.c:68:39: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/info.c:68:39: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/info.c:70:53: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/info.c:74:20: branch_true: following ‘true’ branch (when ‘new_rel’ is NULL)...
postgresql-18.1/src/bin/pg_upgrade/info.c:80:25: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/info.c:80:25: call_function: calling ‘report_unmatched_relation’ from ‘gen_db_file_maps’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def644]
postgresql-18.1/src/bin/pg_upgrade/option.c:525:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename, "r")’
postgresql-18.1/src/bin/pg_upgrade/option.c:502:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:502:13: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:502:13: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:510:32: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:518:27: acquire_resource: opened here
postgresql-18.1/src/bin/pg_upgrade/option.c:518:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:518:20: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18.1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18.1/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-775): [#def645]
postgresql-18.1/src/bin/pg_upgrade/option.c:535:52: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename, "r")’
postgresql-18.1/src/bin/pg_upgrade/option.c:502:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:502:13: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:502:13: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:510:32: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:518:27: acquire_resource: opened here
postgresql-18.1/src/bin/pg_upgrade/option.c:518:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:518:20: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18.1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:530:28: branch_false: following ‘false’ branch (when ‘lineno != 4’)...
postgresql-18.1/src/bin/pg_upgrade/option.c:532:28: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:532:28: branch_false: following ‘false’ branch (when ‘lineno != 5’)...
postgresql-18.1/src/bin/pg_upgrade/option.c:523:26: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18.1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18.1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18.1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18.1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:535:52: throw: if ‘pg_strdup’ throws an exception...
postgresql-18.1/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-775): [#def646]
postgresql-18.1/src/bin/pg_upgrade/option.c:536:40: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename, "r")’
postgresql-18.1/src/bin/pg_upgrade/option.c:502:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:502:13: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:502:13: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:510:32: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:518:27: acquire_resource: opened here
postgresql-18.1/src/bin/pg_upgrade/option.c:518:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:518:20: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18.1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:530:28: branch_false: following ‘false’ branch (when ‘lineno != 4’)...
postgresql-18.1/src/bin/pg_upgrade/option.c:532:28: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:532:28: branch_false: following ‘false’ branch (when ‘lineno != 5’)...
postgresql-18.1/src/bin/pg_upgrade/option.c:523:26: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18.1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18.1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18.1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:522:26: branch_true: following ‘true’ branch (when ‘lineno != 6’)...
postgresql-18.1/src/bin/pg_upgrade/option.c:525:29: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:525:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/option.c:530:28: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/option.c:536:40: throw: if ‘pg_strip_crlf’ throws an exception...
postgresql-18.1/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-404): [#def647]
postgresql-18.1/src/bin/pg_upgrade/parallel.c:76:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/bin/pg_upgrade/parallel.c:75:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/bin/pg_upgrade/parallel.c:76:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18.1/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): [#def648]
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:327:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename_path, "a")’
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:266:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:270:9: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:279:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:283:37: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:286:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:290:36: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:293:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:300:13: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:302:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:304:13: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:304:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:306:13: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:306:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:309:15: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:311:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:314:34: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:314:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:314:12: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:318:39: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:320:23: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:322:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:324:27: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:324:27: acquire_resource: opened here
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:324:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:327:17: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/pg_upgrade.c:327:17: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/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-404): [#def649]
postgresql-18.1/src/bin/pg_upgrade/server.c:130:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/bin/pg_upgrade/server.c:129:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/bin/pg_upgrade/server.c:130:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18.1/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): [#def650]
postgresql-18.1/src/bin/pg_upgrade/util.c:135:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/bin/pg_upgrade/util.c:134:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/bin/pg_upgrade/util.c:135:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18.1/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): [#def651]
postgresql-18.1/src/bin/pg_upgrade/util.c:162:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/bin/pg_upgrade/util.c:161:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/bin/pg_upgrade/util.c:162:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18.1/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): [#def652]
postgresql-18.1/src/bin/pg_upgrade/util.c:184:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/bin/pg_upgrade/util.c:270:1: enter_function: entry to ‘pg_fatal’
postgresql-18.1/src/bin/pg_upgrade/util.c:274:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/bin/pg_upgrade/util.c:275:9: call_function: calling ‘pg_log_v’ from ‘pg_fatal’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def653]
postgresql-18.1/src/bin/pg_upgrade/version.c:84:41: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18.1/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:78:65: acquire_resource: opened here
postgresql-18.1/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:84:41: throw: if ‘initPQExpBuffer’ throws an exception...
postgresql-18.1/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-775): [#def654]
postgresql-18.1/src/bin/pg_upgrade/version.c:85:41: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18.1/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:78:65: acquire_resource: opened here
postgresql-18.1/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:85:41: throw: if ‘appendPsqlMetaConnect’ throws an exception...
postgresql-18.1/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-775): [#def655]
postgresql-18.1/src/bin/pg_upgrade/version.c:87:41: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18.1/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:78:65: acquire_resource: opened here
postgresql-18.1/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:87:41: throw: if ‘termPQExpBuffer’ throws an exception...
postgresql-18.1/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-775): [#def656]
postgresql-18.1/src/bin/pg_upgrade/version.c:90:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18.1/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:78:65: acquire_resource: opened here
postgresql-18.1/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:90:33: throw: if ‘quote_identifier’ throws an exception...
postgresql-18.1/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-775): [#def657]
postgresql-18.1/src/bin/pg_upgrade/version.c:91:66: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18.1/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:78:65: acquire_resource: opened here
postgresql-18.1/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:91:66: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18.1/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-775): [#def658]
postgresql-18.1/src/bin/pg_upgrade/version.c:92:66: warning[-Wanalyzer-file-leak]: leak of FILE ‘script’
postgresql-18.1/src/bin/pg_upgrade/version.c:46:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/version.c:54:42: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:73:33: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_upgrade/version.c:76:28: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:76:28: branch_false: following ‘false’ branch (when ‘check_mode == 0’)...
postgresql-18.1/src/bin/pg_upgrade/version.c:78:36: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:78:36: branch_true: following ‘true’ branch (when ‘script’ is NULL)...
postgresql-18.1/src/bin/pg_upgrade/version.c:78:65: branch_true: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:78:65: acquire_resource: opened here
postgresql-18.1/src/bin/pg_upgrade/version.c:78:37: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_upgrade/version.c:80:36: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:80:36: branch_false: following ‘false’ branch (when ‘db_used == 0’)...
postgresql-18.1/src/bin/pg_upgrade/version.c:84:41: branch_false: ...to here
postgresql-18.1/src/bin/pg_upgrade/version.c:92:66: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18.1/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-404): [#def659]
postgresql-18.1/src/bin/pg_verifybackup/pg_verifybackup.c:1236:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/bin/pg_verifybackup/pg_verifybackup.c:1235:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/bin/pg_verifybackup/pg_verifybackup.c:1236:9: throw: if ‘pg_log_generic_v’ throws an exception...
postgresql-18.1/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): [#def660]
postgresql-18.1/src/bin/pg_verifybackup/pg_verifybackup.c:1253:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/bin/pg_verifybackup/pg_verifybackup.c:1252:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/bin/pg_verifybackup/pg_verifybackup.c:1253:9: throw: if ‘pg_log_generic_v’ throws an exception...
postgresql-18.1/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: COMPILER_WARNING (CWE-704): [#def661]
postgresql-18.1/src/bin/pg_waldump/pg_waldump.c: scope_hint: In function ‘split_path’
postgresql-18.1/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): [#def662]
postgresql-18.1/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-775): [#def663]
postgresql-18.1/src/bin/pg_waldump/pg_waldump.c:534:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename, "w")’
postgresql-18.1/src/bin/pg_waldump/pg_waldump.c:494:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_waldump/pg_waldump.c:505:22: branch_true: ...to here
postgresql-18.1/src/bin/pg_waldump/pg_waldump.c:508:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_waldump/pg_waldump.c:514:22: branch_true: ...to here
postgresql-18.1/src/bin/pg_waldump/pg_waldump.c:514:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_waldump/pg_waldump.c:517:24: branch_true: ...to here
postgresql-18.1/src/bin/pg_waldump/pg_waldump.c:520:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pg_waldump/pg_waldump.c:521:50: branch_true: ...to here
postgresql-18.1/src/bin/pg_waldump/pg_waldump.c:530:24: acquire_resource: opened here
postgresql-18.1/src/bin/pg_waldump/pg_waldump.c:531:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/pg_waldump/pg_waldump.c:534:21: branch_false: ...to here
postgresql-18.1/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-404): [#def664]
postgresql-18.1/src/bin/pg_waldump/xlogreader.c:79:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/bin/pg_waldump/xlogreader.c:78:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/bin/pg_waldump/xlogreader.c:79:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18.1/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-457): [#def665]
postgresql-18.1/src/bin/pgbench/exprparse.c:1117:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18.1/src/bin/pgbench/exprparse.c:1075:6: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/pgbench/exprparse.c:1081:28: branch_true: ...to here
postgresql-18.1/src/bin/pgbench/exprparse.c:1104:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18.1/src/bin/pgbench/exprparse.c:1106:7: branch_false: ...to here
postgresql-18.1/src/bin/pgbench/exprparse.c:1115:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
postgresql-18.1/src/bin/pgbench/exprparse.c:1117:9: branch_false: ...to here
postgresql-18.1/src/bin/pgbench/exprparse.c:1117:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def666]
postgresql-18.1/src/bin/pgbench/exprscan.c:2033:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql-18.1/src/bin/pgbench/exprscan.l:319:1: enter_function: entry to ‘expr_lex_one_word’
postgresql-18.1/src/bin/pgbench/exprscan.l:341:14: call_function: calling ‘expr_yylex’ from ‘expr_lex_one_word’
Error: CPPCHECK_WARNING (CWE-457): [#def667]
postgresql-18.1/src/bin/pgbench/pgbench.c:1649: warning[uninitvar]: Uninitialized variables: &key.svalue, &key.value
Error: GCC_ANALYZER_WARNING (CWE-775): [#def668]
postgresql-18.1/src/bin/psql/command.c:3321:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fd’
postgresql-18.1/src/bin/psql/command.c:3268:12: branch_true: following ‘true’ branch (when ‘active_branch != 0’)...
postgresql-18.1/src/bin/psql/command.c:3270:37: branch_true: ...to here
postgresql-18.1/src/bin/psql/command.c:3275:20: branch_false: following ‘false’ branch (when ‘query_buf’ is non-NULL)...
postgresql-18.1/src/bin/psql/command.c:3282:28: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:3282:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:3289:33: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:3290:36: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:3299:41: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:3300:46: acquire_resource: opened here
postgresql-18.1/src/bin/psql/command.c:3302:36: branch_false: following ‘false’ branch (when ‘fd’ is non-NULL)...
postgresql-18.1/src/bin/psql/command.c:3320:42: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:3320:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/psql/command.c:3321:33: branch_true: ...to here
postgresql-18.1/src/bin/psql/command.c:3321:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/src/bin/psql/command.c:3321: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-775): [#def669]
postgresql-18.1/src/bin/psql/command.c:3323:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fd’
postgresql-18.1/src/bin/psql/command.c:3268:12: branch_true: following ‘true’ branch (when ‘active_branch != 0’)...
postgresql-18.1/src/bin/psql/command.c:3270:37: branch_true: ...to here
postgresql-18.1/src/bin/psql/command.c:3275:20: branch_false: following ‘false’ branch (when ‘query_buf’ is non-NULL)...
postgresql-18.1/src/bin/psql/command.c:3282:28: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:3282:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:3289:33: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:3290:36: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:3299:41: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:3300:46: acquire_resource: opened here
postgresql-18.1/src/bin/psql/command.c:3302:36: branch_false: following ‘false’ branch (when ‘fd’ is non-NULL)...
postgresql-18.1/src/bin/psql/command.c:3320:42: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:3320:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:3322:33: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:3322:33: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/psql/command.c:3323:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/src/bin/psql/command.c:3323: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-775): [#def670]
postgresql-18.1/src/bin/psql/command.c:4862:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
postgresql-18.1/src/bin/psql/command.c:4830:13: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:4838:26: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:4840:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:4851:26: acquire_resource: opened here
postgresql-18.1/src/bin/psql/command.c:4852:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:4862:25: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:4862:25: throw: if ‘resetPQExpBuffer’ throws an exception...
postgresql-18.1/src/bin/psql/command.c:4862: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-775): [#def671]
postgresql-18.1/src/bin/psql/command.c:4864:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
postgresql-18.1/src/bin/psql/command.c:4830:13: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:4838:26: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:4840:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:4851:26: acquire_resource: opened here
postgresql-18.1/src/bin/psql/command.c:4852:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:4862:25: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:4863:32: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/psql/command.c:4864:33: branch_true: ...to here
postgresql-18.1/src/bin/psql/command.c:4864:33: throw: if ‘appendPQExpBufferStr’ throws an exception...
postgresql-18.1/src/bin/psql/command.c:4864: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-775): [#def672]
postgresql-18.1/src/bin/psql/command.c:4868:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
postgresql-18.1/src/bin/psql/command.c:4830:13: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:4838:26: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:4840:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:4851:26: acquire_resource: opened here
postgresql-18.1/src/bin/psql/command.c:4852:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:4862:25: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:4866:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/psql/command.c:4868:33: branch_true: ...to here
postgresql-18.1/src/bin/psql/command.c:4868:33: throw: if ‘pg_log_generic’ throws an exception...
postgresql-18.1/src/bin/psql/command.c:4868: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-775): [#def673]
postgresql-18.1/src/bin/psql/command.c:4870:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
postgresql-18.1/src/bin/psql/command.c:4830:13: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:4838:26: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:4840:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:4851:26: acquire_resource: opened here
postgresql-18.1/src/bin/psql/command.c:4852:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:4862:25: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:4866:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/psql/command.c:4868:33: branch_true: ...to here
postgresql-18.1/src/bin/psql/command.c:4870:33: throw: if ‘resetPQExpBuffer’ throws an exception...
postgresql-18.1/src/bin/psql/command.c:4870: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-775): [#def674]
postgresql-18.1/src/bin/psql/command.c:4966:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fd’
postgresql-18.1/src/bin/psql/command.c:4923:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
postgresql-18.1/src/bin/psql/command.c:4928:18: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:4928:17: branch_true: following ‘true’ branch (when the strings are non-equal)...
postgresql-18.1/src/bin/psql/command.c:4930:17: branch_true: ...to here
postgresql-18.1/src/bin/psql/command.c:4949:22: acquire_resource: opened here
postgresql-18.1/src/bin/psql/command.c:4951:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:4963:9: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:4966:9: throw: if ‘pg_logging_config’ throws an exception...
postgresql-18.1/src/bin/psql/command.c:4966: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-775): [#def675]
postgresql-18.1/src/bin/psql/command.c:4968:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fd’
postgresql-18.1/src/bin/psql/command.c:4923:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
postgresql-18.1/src/bin/psql/command.c:4928:18: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:4928:17: branch_true: following ‘true’ branch (when the strings are non-equal)...
postgresql-18.1/src/bin/psql/command.c:4930:17: branch_true: ...to here
postgresql-18.1/src/bin/psql/command.c:4949:22: acquire_resource: opened here
postgresql-18.1/src/bin/psql/command.c:4951:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/command.c:4963:9: branch_false: ...to here
postgresql-18.1/src/bin/psql/command.c:4968:18: throw: if ‘MainLoop’ throws an exception...
postgresql-18.1/src/bin/psql/command.c:4968:18: danger: ‘fd’ leaks here; was opened at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-457): [#def676]
postgresql-18.1/src/bin/psql/crosstabview.c:363: error[uninitvar]: Uninitialized variables: &elt.sort_value, &elt.rank
Error: GCC_ANALYZER_WARNING (CWE-476): [#def677]
postgresql-18.1/src/bin/psql/crosstabview.c:369:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18.1/src/bin/psql/crosstabview.c:350:22: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/psql/crosstabview.c:359:22: branch_true: ...to here
postgresql-18.1/src/bin/psql/crosstabview.c:369:17: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def678]
postgresql-18.1/src/bin/psql/input.c:520:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘output’
postgresql-18.1/src/bin/psql/input.c:500:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/psql/input.c:503:12: branch_true: ...to here
postgresql-18.1/src/bin/psql/input.c:503:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
postgresql-18.1/src/bin/psql/input.c:511:26: branch_false: ...to here
postgresql-18.1/src/bin/psql/input.c:511:26: acquire_resource: opened here
postgresql-18.1/src/bin/psql/input.c:512:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/input.c:520:9: branch_false: ...to here
postgresql-18.1/src/bin/psql/input.c:520:9: throw: if ‘history_set_pos’ throws an exception...
postgresql-18.1/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-775): [#def679]
postgresql-18.1/src/bin/psql/input.c:522:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘output’
postgresql-18.1/src/bin/psql/input.c:500:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/psql/input.c:503:12: branch_true: ...to here
postgresql-18.1/src/bin/psql/input.c:503:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
postgresql-18.1/src/bin/psql/input.c:511:26: branch_false: ...to here
postgresql-18.1/src/bin/psql/input.c:511:26: acquire_resource: opened here
postgresql-18.1/src/bin/psql/input.c:512:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/input.c:520:9: branch_false: ...to here
postgresql-18.1/src/bin/psql/input.c:520:9: branch_true: following ‘true’ branch (when ‘cur_hist’ is non-NULL)...
postgresql-18.1/src/bin/psql/input.c:522:17: branch_true: ...to here
postgresql-18.1/src/bin/psql/input.c:522:17: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/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-404): [#def680]
postgresql-18.1/src/bin/psql/large_obj.c:29:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/bin/psql/large_obj.c:23:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/bin/psql/large_obj.c:25:21: branch_false: ...to here
postgresql-18.1/src/bin/psql/large_obj.c:28:17: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/bin/psql/large_obj.c:29:17: throw: if ‘pg_vfprintf’ throws an exception...
postgresql-18.1/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): [#def681]
postgresql-18.1/src/bin/psql/large_obj.c:41:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/bin/psql/large_obj.c:38:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/bin/psql/large_obj.c:40:17: branch_true: ...to here
postgresql-18.1/src/bin/psql/large_obj.c:40:17: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/bin/psql/large_obj.c:41:17: throw: if ‘pg_vfprintf’ throws an exception...
postgresql-18.1/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-476): [#def682]
postgresql-18.1/src/bin/psql/psqlscanslash.c:2516:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql-18.1/src/bin/psql/psqlscanslash.l:679:1: enter_function: entry to ‘psql_scan_slash_command_end’
postgresql-18.1/src/bin/psql/psqlscanslash.l:689:10: call_function: calling ‘slash_yy_switch_to_buffer’ from ‘psql_scan_slash_command_end’
postgresql-18.1/src/bin/psql/psqlscanslash.l:689:10: return_function: returning to ‘psql_scan_slash_command_end’ from ‘slash_yy_switch_to_buffer’
postgresql-18.1/src/bin/psql/psqlscanslash.l:697:2: call_function: calling ‘slash_yylex’ from ‘psql_scan_slash_command_end’
Error: CPPCHECK_WARNING (CWE-562): [#def683]
postgresql-18.1/src/bin/psql/psqlscanslash.l:492: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def684]
postgresql-18.1/src/bin/psql/psqlscanslash.l:566: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-457): [#def685]
postgresql-18.1/src/bin/psql/tab-complete.in.c:2624: warning[uninitvar]: Uninitialized variable: argarray
Error: CPPCHECK_WARNING (CWE-457): [#def686]
postgresql-18.1/src/bin/psql/tab-complete.in.c:2712: warning[uninitvar]: Uninitialized variable: argarray
Error: COMPILER_WARNING (CWE-704): [#def687]
postgresql-18.1/src/common/compression.c: scope_hint: In function ‘parse_compress_options’
postgresql-18.1/src/common/compression.c:458:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def688]
postgresql-18.1/src/common/compression.c:458:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def689]
postgresql-18.1/src/common/cryptohash_openssl.c:148:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
postgresql-18.1/src/common/cryptohash_openssl.c:135:15: acquire_memory: allocated here
postgresql-18.1/src/common/cryptohash_openssl.c:136:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
postgresql-18.1/src/common/cryptohash_openssl.c:136:12: branch_false: ...to here
postgresql-18.1/src/common/cryptohash_openssl.c:148:9: throw: if ‘ERR_clear_error’ throws an exception...
postgresql-18.1/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): [#def690]
postgresql-18.1/src/common/encnames.c:540: warning[uninitvar]: Uninitialized variable: newkey
Error: GCC_ANALYZER_WARNING (CWE-401): [#def691]
postgresql-18.1/src/common/file_utils.c:308:33: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
postgresql-18.1/src/common/file_utils.c:301:15: acquire_memory: allocated here
postgresql-18.1/src/common/file_utils.c:302:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/file_utils.c:302:12: branch_false: ...to here
postgresql-18.1/src/common/file_utils.c:308:33: throw: if ‘readdir’ throws an exception...
postgresql-18.1/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): [#def692]
postgresql-18.1/src/common/hmac_openssl.c:136:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
postgresql-18.1/src/common/hmac_openssl.c:121:15: acquire_memory: allocated here
postgresql-18.1/src/common/hmac_openssl.c:122:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
postgresql-18.1/src/common/hmac_openssl.c:124:9: branch_false: ...to here
postgresql-18.1/src/common/hmac_openssl.c:136:9: throw: if ‘ERR_clear_error’ throws an exception...
postgresql-18.1/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): [#def693]
postgresql-18.1/src/common/hmac_openssl.c:142:24: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
postgresql-18.1/src/common/hmac_openssl.c:121:15: acquire_memory: allocated here
postgresql-18.1/src/common/hmac_openssl.c:122:12: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
postgresql-18.1/src/common/hmac_openssl.c:124:9: branch_false: ...to here
postgresql-18.1/src/common/hmac_openssl.c:142:24: throw: if ‘HMAC_CTX_new’ throws an exception...
postgresql-18.1/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-404): [#def694]
postgresql-18.1/src/common/logging.c:242:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/common/logging.c:208:1: enter_function: entry to ‘pg_log_generic’
postgresql-18.1/src/common/logging.c:213:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/common/logging.c:214:9: call_function: calling ‘pg_log_generic_v’ from ‘pg_log_generic’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def695]
postgresql-18.1/src/common/logging.c:245:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/common/logging.c:208:1: enter_function: entry to ‘pg_log_generic’
postgresql-18.1/src/common/logging.c:213:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/common/logging.c:214:9: call_function: calling ‘pg_log_generic_v’ from ‘pg_log_generic’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def696]
postgresql-18.1/src/common/logging.c:248:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/common/logging.c:208:1: enter_function: entry to ‘pg_log_generic’
postgresql-18.1/src/common/logging.c:213:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/common/logging.c:214:9: call_function: calling ‘pg_log_generic_v’ from ‘pg_log_generic’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def697]
postgresql-18.1/src/common/logging.c:255:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/common/logging.c:208:1: enter_function: entry to ‘pg_log_generic’
postgresql-18.1/src/common/logging.c:213:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/common/logging.c:214:9: call_function: calling ‘pg_log_generic_v’ from ‘pg_log_generic’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def698]
postgresql-18.1/src/common/logging.c:257:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/common/logging.c:208:1: enter_function: entry to ‘pg_log_generic’
postgresql-18.1/src/common/logging.c:213:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/common/logging.c:214:9: call_function: calling ‘pg_log_generic_v’ from ‘pg_log_generic’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def699]
postgresql-18.1/src/common/logging.c:260:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/common/logging.c:208:1: enter_function: entry to ‘pg_log_generic’
postgresql-18.1/src/common/logging.c:213:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/common/logging.c:214:9: call_function: calling ‘pg_log_generic_v’ from ‘pg_log_generic’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def700]
postgresql-18.1/src/common/logging.c:314:24: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/common/logging.c:235:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/logging.c:242:9: branch_false: ...to here
postgresql-18.1/src/common/logging.c:247:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/logging.c:250:15: branch_false: ...to here
postgresql-18.1/src/common/logging.c:252:13: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/logging.c:269:14: branch_false: ...to here
postgresql-18.1/src/common/logging.c:313:9: acquire_resource: ‘va_copy’ called here
postgresql-18.1/src/common/logging.c:314:24: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18.1/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): [#def701]
postgresql-18.1/src/common/md5_common.c:80:15: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18.1/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18.1/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18.1/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18.1/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18.1/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def702]
postgresql-18.1/src/common/md5_common.c:83:27: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18.1/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18.1/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18.1/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18.1/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18.1/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def703]
postgresql-18.1/src/common/md5_common.c:87:13: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18.1/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18.1/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18.1/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18.1/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18.1/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def704]
postgresql-18.1/src/common/md5_common.c:88:17: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18.1/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18.1/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18.1/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18.1/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18.1/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def705]
postgresql-18.1/src/common/md5_common.c:89:17: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18.1/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18.1/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18.1/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18.1/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18.1/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def706]
postgresql-18.1/src/common/md5_common.c:91:27: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18.1/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18.1/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18.1/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18.1/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18.1/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def707]
postgresql-18.1/src/common/md5_common.c:92:17: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18.1/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18.1/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18.1/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18.1/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18.1/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def708]
postgresql-18.1/src/common/md5_common.c:97:9: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_buf’
postgresql-18.1/src/common/md5_common.c:145:1: enter_function: entry to ‘pg_md5_encrypt’
postgresql-18.1/src/common/md5_common.c:151:33: acquire_memory: allocated here
postgresql-18.1/src/common/md5_common.c:154:12: branch_false: following ‘false’ branch (when ‘crypt_buf’ is non-NULL)...
postgresql-18.1/src/common/md5_common.c:164:9: branch_false: ...to here
postgresql-18.1/src/common/md5_common.c:168:15: call_function: calling ‘pg_md5_hash’ from ‘pg_md5_encrypt’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def709]
postgresql-18.1/src/common/percentrepl.c:106:57: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/common/percentrepl.c:65:38: branch_true: following ‘true’ branch...
postgresql-18.1/src/common/percentrepl.c:67:20: branch_true: ...to here
postgresql-18.1/src/common/percentrepl.c:75:33: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/percentrepl.c:95:33: branch_false: ...to here
postgresql-18.1/src/common/percentrepl.c:97:33: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/common/percentrepl.c:98:64: branch_true: following ‘true’ branch...
postgresql-18.1/src/common/percentrepl.c:100:53: branch_true: ...to here
postgresql-18.1/src/common/percentrepl.c:104:52: branch_true: following ‘true’ branch (when ‘val’ is non-NULL)...
postgresql-18.1/src/common/percentrepl.c:106:57: branch_true: ...to here
postgresql-18.1/src/common/percentrepl.c:106:57: throw: if ‘appendStringInfoString’ throws an exception...
postgresql-18.1/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): [#def710]
postgresql-18.1/src/common/pgfnames.c:52:31: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
postgresql-18.1/src/common/pgfnames.c:45:15: acquire_memory: allocated here
postgresql-18.1/src/common/pgfnames.c:46:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/pgfnames.c:52:31: branch_false: ...to here
postgresql-18.1/src/common/pgfnames.c:52:31: throw: if ‘palloc’ throws an exception...
postgresql-18.1/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): [#def711]
postgresql-18.1/src/common/pgfnames.c:54:35: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
postgresql-18.1/src/common/pgfnames.c:45:15: acquire_memory: allocated here
postgresql-18.1/src/common/pgfnames.c:46:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/pgfnames.c:52:31: branch_false: ...to here
postgresql-18.1/src/common/pgfnames.c:54:35: throw: if ‘readdir’ throws an exception...
postgresql-18.1/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): [#def712]
postgresql-18.1/src/common/psprintf.c:107:20: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/common/psprintf.c:43:1: enter_function: entry to ‘psprintf’
postgresql-18.1/src/common/psprintf.c:62:17: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/common/psprintf.c:63:26: call_function: calling ‘pvsnprintf’ from ‘psprintf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def713]
postgresql-18.1/src/common/rmtree.c:69:33: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
postgresql-18.1/src/common/rmtree.c:60:15: acquire_memory: allocated here
postgresql-18.1/src/common/rmtree.c:61:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/rmtree.c:67:30: branch_false: ...to here
postgresql-18.1/src/common/rmtree.c:69:33: throw: if ‘readdir’ throws an exception...
postgresql-18.1/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): [#def714]
postgresql-18.1/src/common/saslprep.c:1094:22: warning[-Wanalyzer-malloc-leak]: leak of ‘input_chars’
postgresql-18.1/src/common/saslprep.c:1067:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/saslprep.c:1080:22: branch_false: ...to here
postgresql-18.1/src/common/saslprep.c:1081:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/saslprep.c:1083:13: branch_false: ...to here
postgresql-18.1/src/common/saslprep.c:1083:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/saslprep.c:1086:23: branch_false: ...to here
postgresql-18.1/src/common/saslprep.c:1086:23: acquire_memory: allocated here
postgresql-18.1/src/common/saslprep.c:1087:12: branch_false: following ‘false’ branch (when ‘input_chars’ is non-NULL)...
postgresql-18.1/src/common/saslprep.c:1087:12: branch_false: ...to here
postgresql-18.1/src/common/saslprep.c:1091:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/common/saslprep.c:1093:28: branch_true: ...to here
postgresql-18.1/src/common/saslprep.c:1094:22: throw: if ‘pg_utf_mblen_private’ throws an exception...
postgresql-18.1/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): [#def715]
postgresql-18.1/src/common/sprompt.c:142:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘termin’
postgresql-18.1/src/common/sprompt.c:95:18: acquire_resource: opened here
postgresql-18.1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:139:12: branch_true: following ‘true’ branch (when ‘prompt’ is non-NULL)...
postgresql-18.1/src/common/sprompt.c:141:23: branch_true: ...to here
postgresql-18.1/src/common/sprompt.c:142:17: throw: if ‘fflush’ throws an exception...
postgresql-18.1/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): [#def716]
postgresql-18.1/src/common/sprompt.c:142:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18.1/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18.1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:139:12: branch_true: following ‘true’ branch (when ‘prompt’ is non-NULL)...
postgresql-18.1/src/common/sprompt.c:141:23: branch_true: ...to here
postgresql-18.1/src/common/sprompt.c:142:17: throw: if ‘fflush’ throws an exception...
postgresql-18.1/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): [#def717]
postgresql-18.1/src/common/sprompt.c:142:17: warning[-Wanalyzer-malloc-leak]: leak of ‘termin’
postgresql-18.1/src/common/sprompt.c:95:18: acquire_memory: allocated here
postgresql-18.1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:139:12: branch_true: following ‘true’ branch (when ‘prompt’ is non-NULL)...
postgresql-18.1/src/common/sprompt.c:141:23: branch_true: ...to here
postgresql-18.1/src/common/sprompt.c:142:17: throw: if ‘fflush’ throws an exception...
postgresql-18.1/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): [#def718]
postgresql-18.1/src/common/sprompt.c:142:17: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18.1/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18.1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:139:12: branch_true: following ‘true’ branch (when ‘prompt’ is non-NULL)...
postgresql-18.1/src/common/sprompt.c:141:23: branch_true: ...to here
postgresql-18.1/src/common/sprompt.c:142:17: throw: if ‘fflush’ throws an exception...
postgresql-18.1/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): [#def719]
postgresql-18.1/src/common/sprompt.c:145:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘termin’
postgresql-18.1/src/common/sprompt.c:95:18: acquire_resource: opened here
postgresql-18.1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:145:18: throw: if ‘pg_get_line’ throws an exception...
postgresql-18.1/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): [#def720]
postgresql-18.1/src/common/sprompt.c:145:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18.1/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18.1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:145:18: throw: if ‘pg_get_line’ throws an exception...
postgresql-18.1/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): [#def721]
postgresql-18.1/src/common/sprompt.c:145:18: warning[-Wanalyzer-malloc-leak]: leak of ‘termin’
postgresql-18.1/src/common/sprompt.c:95:18: acquire_memory: allocated here
postgresql-18.1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:145:18: throw: if ‘pg_get_line’ throws an exception...
postgresql-18.1/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): [#def722]
postgresql-18.1/src/common/sprompt.c:145:18: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18.1/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18.1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:145:18: throw: if ‘pg_get_line’ throws an exception...
postgresql-18.1/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): [#def723]
postgresql-18.1/src/common/sprompt.c:149:26: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18.1/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18.1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:148:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/common/sprompt.c:149:26: branch_true: ...to here
postgresql-18.1/src/common/sprompt.c:149:26: throw: if ‘pg_strdup’ throws an exception...
postgresql-18.1/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): [#def724]
postgresql-18.1/src/common/sprompt.c:149:26: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18.1/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18.1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:148:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/common/sprompt.c:149:26: branch_true: ...to here
postgresql-18.1/src/common/sprompt.c:149:26: throw: if ‘pg_strdup’ throws an exception...
postgresql-18.1/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): [#def725]
postgresql-18.1/src/common/sprompt.c:152:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18.1/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18.1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:152:16: throw: if ‘pg_strip_crlf’ throws an exception...
postgresql-18.1/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): [#def726]
postgresql-18.1/src/common/sprompt.c:152:16: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18.1/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18.1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:152:16: throw: if ‘pg_strip_crlf’ throws an exception...
postgresql-18.1/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): [#def727]
postgresql-18.1/src/common/sprompt.c:160:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18.1/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18.1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:154:12: branch_false: following ‘false’ branch (when ‘echo == 0’)...
postgresql-18.1/src/common/sprompt.c:158:17: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:160:17: throw: if ‘fflush’ throws an exception...
postgresql-18.1/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): [#def728]
postgresql-18.1/src/common/sprompt.c:160:17: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18.1/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18.1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:154:12: branch_false: following ‘false’ branch (when ‘echo == 0’)...
postgresql-18.1/src/common/sprompt.c:158:17: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:160:17: throw: if ‘fflush’ throws an exception...
postgresql-18.1/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): [#def729]
postgresql-18.1/src/common/sprompt.c:171:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18.1/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18.1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:154:12: branch_true: following ‘true’ branch (when ‘echo != 0’)...
postgresql-18.1/src/common/sprompt.c:167:17: branch_true: ...to here
postgresql-18.1/src/common/sprompt.c:167:17: branch_true: following ‘true’ branch...
postgresql-18.1/src/common/sprompt.c:171:17: throw: if ‘fflush’ throws an exception...
postgresql-18.1/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): [#def730]
postgresql-18.1/src/common/sprompt.c:171:17: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18.1/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18.1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:154:12: branch_true: following ‘true’ branch (when ‘echo != 0’)...
postgresql-18.1/src/common/sprompt.c:167:17: branch_true: ...to here
postgresql-18.1/src/common/sprompt.c:167:17: branch_true: following ‘true’ branch...
postgresql-18.1/src/common/sprompt.c:171:17: throw: if ‘fflush’ throws an exception...
postgresql-18.1/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): [#def731]
postgresql-18.1/src/common/sprompt.c:180:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘termout’
postgresql-18.1/src/common/sprompt.c:96:19: acquire_resource: opened here
postgresql-18.1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:174:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:180:16: branch_false: ...to here
postgresql-18.1/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): [#def732]
postgresql-18.1/src/common/sprompt.c:180:16: warning[-Wanalyzer-malloc-leak]: leak of ‘termout’
postgresql-18.1/src/common/sprompt.c:96:19: acquire_memory: allocated here
postgresql-18.1/src/common/sprompt.c:98:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:119:12: branch_false: ...to here
postgresql-18.1/src/common/sprompt.c:174:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/common/sprompt.c:180:16: branch_false: ...to here
postgresql-18.1/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): [#def733]
postgresql-18.1/src/common/string.c:111:25: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
postgresql-18.1/src/common/string.c:96:15: acquire_memory: allocated here
postgresql-18.1/src/common/string.c:101:12: branch_false: following ‘false’ branch (when ‘dst’ is non-NULL)...
postgresql-18.1/src/common/string.c:101:12: branch_false: ...to here
postgresql-18.1/src/common/string.c:104:23: branch_true: following ‘true’ branch...
postgresql-18.1/src/common/string.c:108:21: branch_true: ...to here
postgresql-18.1/src/common/string.c:108:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/common/string.c:111:25: branch_true: ...to here
postgresql-18.1/src/common/string.c:111:25: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18.1/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): [#def734]
postgresql-18.1/src/common/stringinfo.c:203:20: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/common/stringinfo.c:145:1: enter_function: entry to ‘appendStringInfo’
postgresql-18.1/src/common/stringinfo.c:156:17: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/common/stringinfo.c:157:26: call_function: calling ‘appendStringInfoVA’ from ‘appendStringInfo’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def735]
postgresql-18.1/src/fe_utils/print.c:909:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘width_header’
postgresql-18.1/src/fe_utils/print.c:3549:1: enter_function: entry to ‘printQuery’
postgresql-18.1/src/fe_utils/print.c:3557:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/fe_utils/print.c:3561:55: branch_false: ...to here
postgresql-18.1/src/fe_utils/print.c:3560:9: call_function: calling ‘printTableInit’ from ‘printQuery’
postgresql-18.1/src/fe_utils/print.c:3560:9: return_function: returning to ‘printQuery’ from ‘printTableInit’
postgresql-18.1/src/fe_utils/print.c:3567:21: branch_false: following ‘false’ branch...
postgresql-18.1/src/fe_utils/print.c:3567:21: branch_false: ...to here
postgresql-18.1/src/fe_utils/print.c:3601:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/fe_utils/print.c:3609:9: branch_false: ...to here
postgresql-18.1/src/fe_utils/print.c:3609:9: call_function: calling ‘printTable’ from ‘printQuery’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def736]
postgresql-18.1/src/fe_utils/print.c:1040:17: warning[-Wanalyzer-null-argument]: use of NULL ‘bytes_output’ where non-null expected
postgresql-18.1/src/fe_utils/print.c:3549:1: enter_function: entry to ‘printQuery’
postgresql-18.1/src/fe_utils/print.c:3557:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/fe_utils/print.c:3561:55: branch_false: ...to here
postgresql-18.1/src/fe_utils/print.c:3560:9: call_function: calling ‘printTableInit’ from ‘printQuery’
postgresql-18.1/src/fe_utils/print.c:3560:9: return_function: returning to ‘printQuery’ from ‘printTableInit’
postgresql-18.1/src/fe_utils/print.c:3567:21: branch_false: following ‘false’ branch...
postgresql-18.1/src/fe_utils/print.c:3567:21: branch_false: ...to here
postgresql-18.1/src/fe_utils/print.c:3601:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/fe_utils/print.c:3609:9: branch_false: ...to here
postgresql-18.1/src/fe_utils/print.c:3609:9: call_function: calling ‘printTable’ from ‘printQuery’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def737]
postgresql-18.1/src/fe_utils/psqlscan.c:4614:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
postgresql-18.1/src/fe_utils/psqlscan.l:1122:8: enter_function: entry to ‘psql_scan’
postgresql-18.1/src/fe_utils/psqlscan.l:1137:10: call_function: calling ‘psql_yy_switch_to_buffer’ from ‘psql_scan’
postgresql-18.1/src/fe_utils/psqlscan.l:1137:10: return_function: returning to ‘psql_scan’ from ‘psql_yy_switch_to_buffer’
postgresql-18.1/src/fe_utils/psqlscan.l:1142:14: call_function: calling ‘psql_yylex’ from ‘psql_scan’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def738]
postgresql-18.1/src/fe_utils/recovery_gen.c:143:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&filename, <unknown>)’
postgresql-18.1/src/fe_utils/recovery_gen.c:139:14: acquire_resource: opened here
postgresql-18.1/src/fe_utils/recovery_gen.c:140:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/fe_utils/recovery_gen.c:143:13: branch_false: ...to here
postgresql-18.1/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-476): [#def739]
postgresql-18.1/src/include/access/tableam.h:1022:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sscan’
postgresql-18.1/src/backend/access/heap/heapam_handler.c:685:1: enter_function: entry to ‘heapam_relation_copy_for_cluster’
postgresql-18.1/src/backend/access/heap/heapam_handler.c:729:12: branch_false: following ‘false’ branch (when ‘use_sort == 0’)...
postgresql-18.1/src/backend/access/heap/heapam_handler.c:741:13: branch_false: ...to here
postgresql-18.1/src/backend/access/heap/heapam_handler.c:741:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/access/heap/heapam_handler.c:743:33: branch_true: ...to here
postgresql-18.1/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): [#def740]
postgresql-18.1/src/include/access/tupmacs.h:28:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18.1/src/backend/access/common/indextuple.c:241:1: enter_function: entry to ‘nocache_index_getattr’
postgresql-18.1/src/backend/access/common/indextuple.c:264:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/access/common/indextuple.c:302:14: branch_false: ...to here
postgresql-18.1/src/backend/access/common/indextuple.c:313:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/access/common/indextuple.c:313:20: branch_false: ...to here
postgresql-18.1/src/backend/access/common/indextuple.c:336:12: branch_true: following ‘true’ branch (when ‘slow != 0’)...
postgresql-18.1/src/backend/access/common/indextuple.c:336:12: branch_true: ...to here
postgresql-18.1/src/backend/access/common/indextuple.c:397:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/access/common/indextuple.c:397:56: call_function: inlined call to ‘att_isnull’ from ‘nocache_index_getattr’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def741]
postgresql-18.1/src/include/libpq/pqformat.h:146:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
postgresql-18.1/src/backend/libpq/auth.c:1928:1: enter_function: entry to ‘pam_passwd_conv_proc’
postgresql-18.1/src/backend/libpq/auth.c:1948:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1955:22: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1955:22: acquire_memory: allocated here
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
postgresql-18.1/src/backend/libpq/auth.c:1955:12: branch_false: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1963:21: branch_true: following ‘true’ branch (when ‘i < num_msg’)...
postgresql-18.1/src/backend/libpq/auth.c:1965:28: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1968:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/libpq/auth.c:1975:41: branch_true: ...to here
postgresql-18.1/src/backend/libpq/auth.c:1975:41: call_function: calling ‘sendAuthRequest’ from ‘pam_passwd_conv_proc’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def742]
postgresql-18.1/src/include/nodes/pg_list.h:281:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘elemops’
postgresql-18.1/src/backend/partitioning/partbounds.c:3868:1: enter_function: entry to ‘make_partition_op_expr’
postgresql-18.1/src/backend/partitioning/partbounds.c:3876:19: call_function: calling ‘get_partition_operator’ from ‘make_partition_op_expr’
postgresql-18.1/src/backend/partitioning/partbounds.c:3876:19: return_function: returning to ‘make_partition_op_expr’ from ‘get_partition_operator’
postgresql-18.1/src/backend/partitioning/partbounds.c:3951:50: branch_false: following ‘false’ branch...
postgresql-18.1/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): [#def743]
postgresql-18.1/src/include/nodes/pg_list.h:281:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘expanded_groups’
postgresql-18.1/src/backend/parser/parse_agg.c:1920:1: enter_function: entry to ‘expand_grouping_sets’
postgresql-18.1/src/backend/parser/parse_agg.c:1927:12: branch_false: following ‘false’ branch (when ‘groupingSets’ is non-NULL)...
postgresql-18.1/src/backend/parser/parse_agg.c:1927:12: branch_false: ...to here
postgresql-18.1/src/backend/parser/parse_agg.c:1930:9: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/parser/parse_agg.c:1953:9: call_function: inlined call to ‘list_nth_cell’ from ‘expand_grouping_sets’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def744]
postgresql-18.1/src/include/nodes/pg_list.h:281:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_ops’
postgresql-18.1/src/backend/optimizer/path/indxpath.c:3644:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/optimizer/path/indxpath.c:3649:26: branch_true: ...to here
postgresql-18.1/src/backend/optimizer/path/indxpath.c:3649:25: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/optimizer/path/indxpath.c:3661:28: branch_false: ...to here
postgresql-18.1/src/backend/optimizer/path/indxpath.c:3668:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/optimizer/path/indxpath.c:3668:25: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/optimizer/path/indxpath.c:3686:20: branch_false: ...to here
postgresql-18.1/src/backend/optimizer/path/indxpath.c:3686:20: branch_false: following ‘false’ branch (when ‘matching_cols <= 1’)...
postgresql-18.1/src/backend/optimizer/path/indxpath.c:3706:25: branch_false: ...to here
postgresql-18.1/src/backend/optimizer/path/indxpath.c:3706:25: release_memory: ‘new_ops’ is NULL
postgresql-18.1/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): [#def745]
postgresql-18.1/src/include/nodes/pg_list.h:281:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sortclause’
postgresql-18.1/src/backend/optimizer/plan/planner.c:3135:1: enter_function: entry to ‘reorder_grouping_sets’
postgresql-18.1/src/backend/optimizer/plan/planner.c:3141:9: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/optimizer/plan/planner.c:3147:50: call_function: inlined call to ‘list_length’ from ‘reorder_grouping_sets’
postgresql-18.1/src/backend/optimizer/plan/planner.c:3147:24: branch_false: ...to here
postgresql-18.1/src/backend/optimizer/plan/planner.c:3147:24: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/optimizer/plan/planner.c:3141:9: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/optimizer/plan/planner.c:3147:24: call_function: inlined call to ‘list_length’ from ‘reorder_grouping_sets’
postgresql-18.1/src/backend/optimizer/plan/planner.c:3147:50: call_function: inlined call to ‘list_length’ from ‘reorder_grouping_sets’
postgresql-18.1/src/backend/optimizer/plan/planner.c:3147:24: branch_true: following ‘true’ branch...
Error: GCC_ANALYZER_WARNING (CWE-476): [#def746]
postgresql-18.1/src/include/storage/block.h:105:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18.1/src/backend/access/nbtree/nbtdedup.c:648:1: enter_function: entry to ‘_bt_bottomupdel_finish_pending’
postgresql-18.1/src/backend/access/nbtree/nbtdedup.c:657:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/access/nbtree/nbtdedup.c:659:39: branch_true: ...to here
postgresql-18.1/src/backend/access/nbtree/nbtdedup.c:665:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/access/nbtree/nbtdedup.c:690:57: call_function: inlined call to ‘BTreeTupleGetNPosting’ from ‘_bt_bottomupdel_finish_pending’
postgresql-18.1/src/backend/access/nbtree/nbtdedup.c:696:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/access/nbtree/nbtdedup.c:709:42: branch_true: ...to here
postgresql-18.1/src/backend/access/nbtree/nbtdedup.c:709:42: call_function: calling ‘BTreeTupleGetHeapTID’ from ‘_bt_bottomupdel_finish_pending’
postgresql-18.1/src/backend/access/nbtree/nbtdedup.c:709:42: return_function: returning to ‘_bt_bottomupdel_finish_pending’ from ‘BTreeTupleGetHeapTID’
postgresql-18.1/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): [#def747]
postgresql-18.1/src/include/storage/itemptr.h:116:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18.1/src/backend/access/nbtree/nbtutils.c:4202:1: enter_function: entry to ‘_bt_check_third_page’
postgresql-18.1/src/backend/access/nbtree/nbtutils.c:4211:12: branch_false: following ‘false’ branch (when ‘itemsz > 2704’)...
postgresql-18.1/src/backend/access/nbtree/nbtutils.c:4219:13: branch_false: ...to here
postgresql-18.1/src/backend/access/nbtree/nbtutils.c:4219:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/access/nbtree/nbtutils.c:4226:18: branch_false: ...to here
postgresql-18.1/src/backend/access/nbtree/nbtutils.c:4227:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/backend/access/nbtree/nbtutils.c:4231:9: branch_false: ...to here
postgresql-18.1/src/backend/access/nbtree/nbtutils.c:4231:9: branch_true: following ‘true’ branch...
postgresql-18.1/src/backend/access/nbtree/nbtutils.c:4231:9: branch_true: ...to here
postgresql-18.1/src/backend/access/nbtree/nbtutils.c:4231:9: call_function: calling ‘BTreeTupleGetHeapTID’ from ‘_bt_check_third_page’
postgresql-18.1/src/backend/access/nbtree/nbtutils.c:4231:9: return_function: returning to ‘_bt_check_third_page’ from ‘BTreeTupleGetHeapTID’
postgresql-18.1/src/backend/access/nbtree/nbtutils.c:4231:9: call_function: inlined call to ‘ItemPointerGetOffsetNumber’ from ‘_bt_check_third_page’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def748]
postgresql-18.1/src/include/utils/expandedrecord.h:220:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘newerh’
postgresql-18.1/src/pl/plpgsql/src/pl_exec.c:7591:1: enter_function: entry to ‘exec_move_row_from_datum’
postgresql-18.1/src/pl/plpgsql/src/pl_exec.c:7596:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/pl/plpgsql/src/pl_exec.c:7604:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/pl/plpgsql/src/pl_exec.c:7707:21: branch_false: ...to here
postgresql-18.1/src/pl/plpgsql/src/pl_exec.c:7707:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/pl/plpgsql/src/pl_exec.c:7718:17: branch_false: ...to here
postgresql-18.1/src/pl/plpgsql/src/pl_exec.c:7719:17: call_function: calling ‘exec_move_row_from_fields’ from ‘exec_move_row_from_datum’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def749]
postgresql-18.1/src/include/utils/expandedrecord.h:220:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘srcerh’
postgresql-18.1/src/pl/plpgsql/src/pl_exec.c:7591:1: enter_function: entry to ‘exec_move_row_from_datum’
postgresql-18.1/src/pl/plpgsql/src/pl_exec.c:7596:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/pl/plpgsql/src/pl_exec.c:7604:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/pl/plpgsql/src/pl_exec.c:7707:21: branch_false: ...to here
postgresql-18.1/src/pl/plpgsql/src/pl_exec.c:7707:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/pl/plpgsql/src/pl_exec.c:7718:17: branch_false: ...to here
postgresql-18.1/src/pl/plpgsql/src/pl_exec.c:7719:17: call_function: calling ‘exec_move_row_from_fields’ from ‘exec_move_row_from_datum’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def750]
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:126:22: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:107:36: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:108:12: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:110:9: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:117:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:123:12: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:123:12: branch_true: following ‘true’ branch (when ‘password’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:126:22: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:126:22: throw: if ‘pg_saslprep’ throws an exception...
postgresql-18.1/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): [#def751]
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:126:22: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(sasl_mechanism)’
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:108:12: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:110:9: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:116:33: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:117:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:123:12: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:123:12: branch_true: following ‘true’ branch (when ‘password’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:126:22: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:126:22: throw: if ‘pg_saslprep’ throws an exception...
postgresql-18.1/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): [#def752]
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:442:9: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:363:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:369:23: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:372:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:377:23: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:379:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:384:9: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:421:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:424:28: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:427:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:434:51: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:435:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:438:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:438:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:439:12: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:442:9: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:442:9: throw: if ‘termPQExpBuffer’ throws an exception...
postgresql-18.1/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): [#def753]
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:509:37: warning[-Wanalyzer-malloc-leak]: leak of ‘cbind_input’
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:474:12: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:478:33: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:488:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:495:17: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:500:31: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:501:20: branch_false: following ‘false’ branch (when ‘cbind_input’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:506:17: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:509:37: throw: if ‘pg_b64_enc_len’ throws an exception...
postgresql-18.1/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): [#def754]
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:510:22: warning[-Wanalyzer-malloc-leak]: leak of ‘cbind_input’
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:474:12: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:478:33: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:488:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:495:17: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:500:31: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:501:20: branch_false: following ‘false’ branch (when ‘cbind_input’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:506:17: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:510:22: throw: if ‘enlargePQExpBuffer’ throws an exception...
postgresql-18.1/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): [#def755]
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:516:37: warning[-Wanalyzer-malloc-leak]: leak of ‘cbind_input’
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:474:12: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:478:33: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:488:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:495:17: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:500:31: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:501:20: branch_false: following ‘false’ branch (when ‘cbind_input’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:506:17: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:510:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:517:83: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:516:37: throw: if ‘pg_b64_encode’ throws an exception...
postgresql-18.1/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): [#def756]
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:743:32: warning[-Wanalyzer-malloc-leak]: leak of ‘decoded_server_signature’
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:693:1: enter_function: entry to ‘read_server_final_message’
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:701:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:708:13: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:708:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:725:92: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:724:36: call_function: calling ‘read_attr_value’ from ‘read_server_final_message’
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:724:36: return_function: returning to ‘read_server_final_message’ from ‘read_attr_value’
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:726:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:732:13: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:736:36: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:737:12: branch_false: following ‘false’ branch (when ‘decoded_server_signature’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:744:82: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth-scram.c:743:32: throw: if ‘pg_b64_decode’ throws an exception...
postgresql-18.1/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): [#def757]
postgresql-18.1/src/interfaces/libpq/fe-auth.c:832:38: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_pwd’
postgresql-18.1/src/interfaces/libpq/fe-auth.c:806:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-auth.c:811:13: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth.c:824:45: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-auth.c:825:36: branch_false: following ‘false’ branch (when ‘crypt_pwd’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-auth.c:831:33: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth.c:832:38: throw: if ‘pg_md5_encrypt’ throws an exception...
postgresql-18.1/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): [#def758]
postgresql-18.1/src/interfaces/libpq/fe-auth.c:1372:14: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_pwd’
postgresql-18.1/src/interfaces/libpq/fe-auth.c:1368:21: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-auth.c:1369:12: branch_false: following ‘false’ branch (when ‘crypt_pwd’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-auth.c:1372:14: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth.c:1372:14: throw: if ‘pg_md5_encrypt’ throws an exception...
postgresql-18.1/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): [#def759]
postgresql-18.1/src/interfaces/libpq/fe-auth.c:1485:30: warning[-Wanalyzer-malloc-leak]: leak of ‘crypt_pwd’
postgresql-18.1/src/interfaces/libpq/fe-auth.c:1413:12: branch_false: following ‘false’ branch (when ‘conn’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-auth.c:1416:9: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth.c:1419:12: branch_false: following ‘false’ branch (when ‘algorithm’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-auth.c:1461:13: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth.c:1468:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
postgresql-18.1/src/interfaces/libpq/fe-auth.c:1478:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth.c:1478:17: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18.1/src/interfaces/libpq/fe-auth.c:1480:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth.c:1480:29: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-auth.c:1481:20: branch_true: following ‘true’ branch (when ‘crypt_pwd’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-auth.c:1483:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-auth.c:1485:30: throw: if ‘pg_md5_encrypt’ throws an exception...
postgresql-18.1/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-401): [#def760]
postgresql-18.1/src/interfaces/libpq/fe-exec.c:192:43: warning[-Wanalyzer-malloc-leak]: leak of ‘PQmakeEmptyPGresult(conn, 0)’
postgresql-18.1/src/interfaces/libpq/fe-exec.c:2360:1: enter_function: entry to ‘PQexecStart’
postgresql-18.1/src/interfaces/libpq/fe-exec.c:2385:26: call_function: calling ‘PQgetResult’ from ‘PQexecStart’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def761]
postgresql-18.1/src/interfaces/libpq/fe-exec.c:718:31: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
postgresql-18.1/src/interfaces/libpq/fe-exec.c:2360:1: enter_function: entry to ‘PQexecStart’
postgresql-18.1/src/interfaces/libpq/fe-exec.c:2385:26: call_function: calling ‘PQgetResult’ from ‘PQexecStart’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def762]
postgresql-18.1/src/interfaces/libpq/fe-exec.c:742:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
postgresql-18.1/src/interfaces/libpq/fe-exec.c:2360:1: enter_function: entry to ‘PQexecStart’
postgresql-18.1/src/interfaces/libpq/fe-exec.c:2385:26: call_function: calling ‘PQgetResult’ from ‘PQexecStart’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def763]
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:897:15: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:897:15: throw: if ‘PQexec’ throws an exception...
postgresql-18.1/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): [#def764]
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:915:25: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:898:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:904:13: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:915:25: throw: if ‘PQntuples’ throws an exception...
postgresql-18.1/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): [#def765]
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:917:25: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:898:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:904:13: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:915:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:917:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:917:25: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18.1/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): [#def766]
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:918:35: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:898:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:904:13: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:915:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:917:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:918:35: throw: if ‘PQgetvalue’ throws an exception...
postgresql-18.1/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): [#def767]
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:947:9: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:898:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:904:13: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:915:21: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:947:9: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:947:9: throw: if ‘PQclear’ throws an exception...
postgresql-18.1/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): [#def768]
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:956:17: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:898:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:904:13: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:915:21: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:947:9: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:954:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:956:17: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:956:17: throw: if ‘libpq_append_conn_error’ throws an exception...
postgresql-18.1/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): [#def769]
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:963:17: warning[-Wanalyzer-malloc-leak]: leak of ‘lobjfuncs’
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:867:37: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:868:12: branch_false: following ‘false’ branch (when ‘lobjfuncs’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:873:9: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:898:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:904:13: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:904:12: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:915:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:917:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:919:20: branch_true: following ‘true’ branch (when the strings are equal)...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:920:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:954:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:961:13: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:961:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:963:17: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-lobj.c:963:17: throw: if ‘libpq_append_conn_error’ throws an exception...
postgresql-18.1/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): [#def770]
postgresql-18.1/src/interfaces/libpq/fe-misc.c:1391:24: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/interfaces/libpq/fe-misc.c:1383:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-misc.c:1390:17: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/interfaces/libpq/fe-misc.c:1391:24: throw: if ‘appendPQExpBufferVA’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-misc.c:1391: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): [#def771]
postgresql-18.1/src/interfaces/libpq/fe-misc.c:1420:24: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/interfaces/libpq/fe-misc.c:1412:13: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-misc.c:1412:13: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-misc.c:1419:17: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/interfaces/libpq/fe-misc.c:1420:24: throw: if ‘appendPQExpBufferVA’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-misc.c:1420: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): [#def772]
postgresql-18.1/src/interfaces/libpq/fe-print.c:134:52: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:120:36: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:134:52: throw: if ‘PQfname’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:134:52: danger: ‘fieldMax’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def773]
postgresql-18.1/src/interfaces/libpq/fe-print.c:134:52: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:118:46: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:134:52: throw: if ‘PQfname’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:134:52: danger: ‘fieldNames’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def774]
postgresql-18.1/src/interfaces/libpq/fe-print.c:134:52: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:119:49: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:134:52: throw: if ‘PQfname’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:134:52: danger: ‘fieldNotNum’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def775]
postgresql-18.1/src/interfaces/libpq/fe-print.c:190:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:120:36: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:150:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:157:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:178:33: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:179:34: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:180:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:190:33: throw: if ‘fflush’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:190:33: danger: ‘fieldMax’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def776]
postgresql-18.1/src/interfaces/libpq/fe-print.c:190:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:118:46: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:150:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:157:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:178:33: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:179:34: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:180:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:190:33: throw: if ‘fflush’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:190:33: danger: ‘fieldNames’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def777]
postgresql-18.1/src/interfaces/libpq/fe-print.c:190:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:119:49: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:150:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:157:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:178:33: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:179:34: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:180:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:190:33: throw: if ‘fflush’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:190:33: danger: ‘fieldNotNum’ leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def778]
postgresql-18.1/src/interfaces/libpq/fe-print.c:191:40: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:120:36: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:150:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:157:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:178:33: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:179:34: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:180:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:191:40: throw: if ‘popen’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:191:40: danger: ‘fieldMax’ leaks here; was allocated at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def779]
postgresql-18.1/src/interfaces/libpq/fe-print.c:191:40: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:118:46: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:150:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:157:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:178:33: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:179:34: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:180:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:191:40: throw: if ‘popen’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:191:40: danger: ‘fieldNames’ leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def780]
postgresql-18.1/src/interfaces/libpq/fe-print.c:191:40: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:119:49: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:150:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:157:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:178:33: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:179:34: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:180:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:191:40: throw: if ‘popen’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:191:40: danger: ‘fieldNotNum’ leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def781]
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:120:36: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:150:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:157:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:178:33: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:179:34: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:180:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:192:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: throw: if ‘pq_block_sigpipe’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: danger: ‘fieldMax’ leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def782]
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:118:46: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:150:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:157:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:178:33: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:179:34: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:180:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:192:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: throw: if ‘pq_block_sigpipe’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: danger: ‘fieldNames’ leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def783]
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:119:49: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:150:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:157:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:178:33: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:179:34: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:180:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:192:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: throw: if ‘pq_block_sigpipe’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: danger: ‘fieldNotNum’ leaks here; was allocated at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def784]
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(pagerenv, "w")’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:150:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:157:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:178:33: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:179:34: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:180:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:191:40: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:192:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: throw: if ‘pq_block_sigpipe’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: danger: ‘popen(pagerenv, "w")’ leaks here; was allocated at [(29)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/28)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def785]
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:150:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:157:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:178:33: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:179:34: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:180:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:191:40: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:192:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:49: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:33: throw: if ‘pg_fprintf’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:33: danger: ‘fout’ leaks here; was allocated at [(29)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/28)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def786]
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:120:36: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:49: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:49: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:49: danger: ‘fieldMax’ leaks here; was allocated at [(5)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def787]
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:118:46: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:49: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:49: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:49: danger: ‘fieldNames’ leaks here; was allocated at [(5)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def788]
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:119:49: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:49: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:49: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:49: danger: ‘fieldNotNum’ leaks here; was allocated at [(5)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def789]
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:150:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:157:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:178:33: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:179:34: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:180:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:191:40: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:192:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_true: following ‘true’ branch (when ‘fields’ is NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:49: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:49: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:211:49: danger: ‘fout’ leaks here; was allocated at [(29)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/28)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def790]
postgresql-18.1/src/interfaces/libpq/fe-print.c:220:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:120:36: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:215:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:217:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:219:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:219:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:221:103: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:220:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:220:55: danger: ‘fieldMax’ leaks here; was allocated at [(5)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def791]
postgresql-18.1/src/interfaces/libpq/fe-print.c:220:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:118:46: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:215:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:217:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:219:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:219:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:221:103: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:220:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:220:55: danger: ‘fieldNames’ leaks here; was allocated at [(5)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def792]
postgresql-18.1/src/interfaces/libpq/fe-print.c:220:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:119:49: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:215:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:217:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:219:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:219:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:221:103: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:220:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:220:55: danger: ‘fieldNotNum’ leaks here; was allocated at [(5)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def793]
postgresql-18.1/src/interfaces/libpq/fe-print.c:220:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fout’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:150:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:149:21: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:157:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:28: branch_true: following ‘true’ branch (when ‘pagerenv’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:178:33: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:179:34: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:177:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:180:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:191:40: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:192:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:196:45: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:215:25: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:217:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:219:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:219:36: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:221:103: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:220:55: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-print.c:220:55: danger: ‘fout’ leaks here; was allocated at [(29)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/28)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def794]
postgresql-18.1/src/interfaces/libpq/fe-print.c:406:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18.1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:120:36: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:254:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:256:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:265:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:267:38: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:267:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def795]
postgresql-18.1/src/interfaces/libpq/fe-print.c:406:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18.1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:118:46: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:254:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:256:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:265:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:267:38: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:267:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def796]
postgresql-18.1/src/interfaces/libpq/fe-print.c:406:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18.1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:119:49: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:254:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:256:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:265:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:267:38: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:267:38: call_function: calling ‘do_field’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def797]
postgresql-18.1/src/interfaces/libpq/fe-print.c:514:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18.1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:120:36: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def798]
postgresql-18.1/src/interfaces/libpq/fe-print.c:514:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18.1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:118:46: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def799]
postgresql-18.1/src/interfaces/libpq/fe-print.c:514:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18.1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:119:49: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def800]
postgresql-18.1/src/interfaces/libpq/fe-print.c:514:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18.1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:120:36: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def801]
postgresql-18.1/src/interfaces/libpq/fe-print.c:514:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18.1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:118:46: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def802]
postgresql-18.1/src/interfaces/libpq/fe-print.c:514:41: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18.1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:119:49: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def803]
postgresql-18.1/src/interfaces/libpq/fe-print.c:576:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18.1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:120:36: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def804]
postgresql-18.1/src/interfaces/libpq/fe-print.c:576:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18.1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:118:46: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def805]
postgresql-18.1/src/interfaces/libpq/fe-print.c:576:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18.1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:119:49: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def806]
postgresql-18.1/src/interfaces/libpq/fe-print.c:576:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18.1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:207:44: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def807]
postgresql-18.1/src/interfaces/libpq/fe-print.c:576:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldMax’
postgresql-18.1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:120:36: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: following ‘false’ branch (when ‘fieldMax’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def808]
postgresql-18.1/src/interfaces/libpq/fe-print.c:576:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNames’
postgresql-18.1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:118:46: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def809]
postgresql-18.1/src/interfaces/libpq/fe-print.c:576:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fieldNotNum’
postgresql-18.1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:119:49: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def810]
postgresql-18.1/src/interfaces/libpq/fe-print.c:576:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fields’
postgresql-18.1/src/interfaces/libpq/fe-print.c:68:1: enter_function: entry to ‘PQprint’
postgresql-18.1/src/interfaces/libpq/fe-print.c:74:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:86:57: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:111:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:117:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:121:20: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:133:37: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:25: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:137:35: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:130:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:145:55: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:205:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:207:44: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-print.c:209:28: branch_false: following ‘false’ branch (when ‘fields’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-print.c:243:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:254:29: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:22: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:275:39: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:277:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:29: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:296:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-print.c:297:42: call_function: calling ‘do_header’ from ‘PQprint’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def811]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: warning[-Wanalyzer-malloc-leak]: leak of ‘qidx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: throw: if ‘pg_encoding_max_length’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: danger: ‘qidx’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def812]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: warning[-Wanalyzer-malloc-leak]: leak of ‘scridx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: throw: if ‘pg_encoding_max_length’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: danger: ‘scridx’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def813]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: warning[-Wanalyzer-malloc-leak]: leak of ‘wquery’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: throw: if ‘pg_encoding_max_length’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: danger: ‘wquery’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def814]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1330:29: warning[-Wanalyzer-malloc-leak]: leak of ‘qidx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1286:23: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1290:21: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1298:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1299:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1326:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1330:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1330:29: throw: if ‘pg_encoding_dsplen’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1330:29: danger: ‘qidx’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def815]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1330:29: warning[-Wanalyzer-malloc-leak]: leak of ‘scridx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1286:23: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1290:21: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1298:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1299:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1326:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1330:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1330:29: throw: if ‘pg_encoding_dsplen’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1330:29: danger: ‘scridx’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def816]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1330:29: warning[-Wanalyzer-malloc-leak]: leak of ‘wquery’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1286:23: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1290:21: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1298:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1299:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1326:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1330:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1330:29: throw: if ‘pg_encoding_dsplen’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1330: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): [#def817]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1335:36: warning[-Wanalyzer-malloc-leak]: leak of ‘qidx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1286:23: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1290:21: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1298:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1299:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1326:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1330:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1335:36: throw: if ‘PQmblenBounded’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1335:36: danger: ‘qidx’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def818]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1335:36: warning[-Wanalyzer-malloc-leak]: leak of ‘scridx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1286:23: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1290:21: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1298:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1299:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1326:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1330:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1335:36: throw: if ‘PQmblenBounded’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1335:36: danger: ‘scridx’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def819]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1335:36: warning[-Wanalyzer-malloc-leak]: leak of ‘wquery’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1286:23: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1290:21: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1298:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1299:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1326:20: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1330:29: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1335:36: throw: if ‘PQmblenBounded’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1335: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): [#def820]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1394:17: warning[-Wanalyzer-malloc-leak]: leak of ‘qidx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1394:17: throw: if ‘appendPQExpBuffer’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1394:17: danger: ‘qidx’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def821]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1394:17: warning[-Wanalyzer-malloc-leak]: leak of ‘scridx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1394:17: throw: if ‘appendPQExpBuffer’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1394:17: danger: ‘scridx’ leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def822]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1394:17: warning[-Wanalyzer-malloc-leak]: leak of ‘wquery’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1394:17: throw: if ‘appendPQExpBuffer’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1394:17: danger: ‘wquery’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def823]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1394:40: warning[-Wanalyzer-malloc-leak]: leak of ‘qidx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1394:40: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1394:40: danger: ‘qidx’ leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def824]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1394:40: warning[-Wanalyzer-malloc-leak]: leak of ‘scridx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1394:40: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1394:40: danger: ‘scridx’ leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def825]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1394:40: warning[-Wanalyzer-malloc-leak]: leak of ‘wquery’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1394:40: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1394:40: danger: ‘wquery’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def826]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1403:43: warning[-Wanalyzer-malloc-leak]: leak of ‘qidx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1403:24: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1405:83: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1403:43: throw: if ‘PQmblenBounded’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1403:43: danger: ‘qidx’ leaks here; was allocated at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def827]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1403:43: warning[-Wanalyzer-malloc-leak]: leak of ‘scridx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1403:24: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1405:83: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1403:43: throw: if ‘PQmblenBounded’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1403:43: danger: ‘scridx’ leaks here; was allocated at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def828]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1403:43: warning[-Wanalyzer-malloc-leak]: leak of ‘wquery’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1403:24: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1405:83: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1403:43: throw: if ‘PQmblenBounded’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1403:43: danger: ‘wquery’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def829]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1405:53: warning[-Wanalyzer-malloc-leak]: leak of ‘qidx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1403:24: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1405:83: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1405:53: throw: if ‘pg_encoding_dsplen’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1405:53: danger: ‘qidx’ leaks here; was allocated at [(7)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def830]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1405:53: warning[-Wanalyzer-malloc-leak]: leak of ‘scridx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1403:24: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1405:83: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1405:53: throw: if ‘pg_encoding_dsplen’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1405:53: danger: ‘scridx’ leaks here; was allocated at [(9)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def831]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1405:53: warning[-Wanalyzer-malloc-leak]: leak of ‘wquery’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1403:24: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1405:83: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1405:53: throw: if ‘pg_encoding_dsplen’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1405:53: danger: ‘wquery’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def832]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1413:17: warning[-Wanalyzer-malloc-leak]: leak of ‘qidx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1413:17: throw: if ‘appendPQExpBufferStr’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1413:17: danger: ‘qidx’ leaks here; was allocated at [(7)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def833]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1413:17: warning[-Wanalyzer-malloc-leak]: leak of ‘scridx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1413:17: throw: if ‘appendPQExpBufferStr’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1413:17: danger: ‘scridx’ leaks here; was allocated at [(9)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def834]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1413:17: warning[-Wanalyzer-malloc-leak]: leak of ‘wquery’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1413:17: throw: if ‘appendPQExpBufferStr’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1413:17: danger: ‘wquery’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def835]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1416:17: warning[-Wanalyzer-malloc-leak]: leak of ‘qidx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1416:17: throw: if ‘appendPQExpBufferChar’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1416:17: danger: ‘qidx’ leaks here; was allocated at [(7)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def836]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1416:17: warning[-Wanalyzer-malloc-leak]: leak of ‘scridx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1416:17: throw: if ‘appendPQExpBufferChar’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1416:17: danger: ‘scridx’ leaks here; was allocated at [(9)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def837]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1416:17: warning[-Wanalyzer-malloc-leak]: leak of ‘wquery’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1416:17: throw: if ‘appendPQExpBufferChar’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1416:17: danger: ‘wquery’ leaks here; was allocated at [(3)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def838]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1421:25: warning[-Wanalyzer-malloc-leak]: leak of ‘qidx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1420:29: branch_true: following ‘true’ branch (when ‘i < scroffset’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1421:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1421:25: throw: if ‘appendPQExpBufferChar’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1421:25: danger: ‘qidx’ leaks here; was allocated at [(7)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def839]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1421:25: warning[-Wanalyzer-malloc-leak]: leak of ‘scridx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1420:29: branch_true: following ‘true’ branch (when ‘i < scroffset’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1421:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1421:25: throw: if ‘appendPQExpBufferChar’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1421:25: danger: ‘scridx’ leaks here; was allocated at [(9)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def840]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1421:25: warning[-Wanalyzer-malloc-leak]: leak of ‘wquery’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1420:29: branch_true: following ‘true’ branch (when ‘i < scroffset’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1421:25: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1421:25: throw: if ‘appendPQExpBufferChar’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1421:25: danger: ‘wquery’ leaks here; was allocated at [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def841]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1422:17: warning[-Wanalyzer-malloc-leak]: leak of ‘qidx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1422:17: throw: if ‘appendPQExpBufferChar’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1422:17: danger: ‘qidx’ leaks here; was allocated at [(7)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def842]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1422:17: warning[-Wanalyzer-malloc-leak]: leak of ‘scridx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1422:17: throw: if ‘appendPQExpBufferChar’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1422:17: danger: ‘scridx’ leaks here; was allocated at [(9)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def843]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1422:17: warning[-Wanalyzer-malloc-leak]: leak of ‘wquery’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1422:17: throw: if ‘appendPQExpBufferChar’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1422:17: danger: ‘wquery’ leaks here; was allocated at [(3)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def844]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1423:17: warning[-Wanalyzer-malloc-leak]: leak of ‘qidx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1423:17: throw: if ‘appendPQExpBufferChar’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1423:17: danger: ‘qidx’ leaks here; was allocated at [(7)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def845]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1423:17: warning[-Wanalyzer-malloc-leak]: leak of ‘scridx’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1423:17: throw: if ‘appendPQExpBufferChar’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1423:17: danger: ‘scridx’ leaks here; was allocated at [(9)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def846]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1423:17: warning[-Wanalyzer-malloc-leak]: leak of ‘wquery’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1222:12: branch_false: following ‘false’ branch (when ‘loc >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1226:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1227:12: branch_false: following ‘false’ branch (when ‘wquery’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1247:16: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1248:12: branch_false: following ‘false’ branch (when ‘slen >= 0’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1254:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1255:12: branch_false: following ‘false’ branch (when ‘qidx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1260:26: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1261:12: branch_false: following ‘false’ branch (when ‘scridx’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1269:24: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1353:12: branch_true: following ‘true’ branch (when ‘cno >= loc’)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1358:27: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1423:17: throw: if ‘appendPQExpBufferChar’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1423:17: danger: ‘wquery’ leaks here; was allocated at [(3)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def847]
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1660:13: warning[-Wanalyzer-malloc-leak]: leak of ‘svname’
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1642:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1644:20: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1644:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1647:25: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1647:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1648:12: branch_false: following ‘false’ branch (when ‘svname’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1660:13: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1660:13: throw: if ‘pqGets’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-protocol3.c:1660:13: danger: ‘svname’ leaks here; was allocated at [(5)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def848]
postgresql-18.1/src/interfaces/libpq/fe-secure-common.c:63:13: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
postgresql-18.1/src/interfaces/libpq/fe-secure-common.c:87:1: enter_function: entry to ‘pq_verify_peer_name_matches_certificate_name’
postgresql-18.1/src/interfaces/libpq/fe-secure-common.c:97:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-secure-common.c:107:16: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-secure-common.c:108:12: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-secure-common.c:113:9: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-common.c:120:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-secure-common.c:127:13: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-common.c:127:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-secure-common.c:132:18: branch_false: ...to here
postgresql-18.1/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): [#def849]
postgresql-18.1/src/interfaces/libpq/fe-secure-common.c:127:13: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
postgresql-18.1/src/interfaces/libpq/fe-secure-common.c:97:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-secure-common.c:107:16: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-secure-common.c:108:12: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-secure-common.c:113:9: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-common.c:120:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-secure-common.c:127:13: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-common.c:127:13: throw: if ‘pg_strcasecmp’ throws an exception...
postgresql-18.1/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): [#def850]
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1564:17: warning[-Wanalyzer-malloc-leak]: leak of ‘errbuf’
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1559:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1560:12: branch_false: following ‘false’ branch (when ‘errbuf’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1562:12: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1562:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1564:47: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1564:17: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1564: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): [#def851]
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1564:47: warning[-Wanalyzer-malloc-leak]: leak of ‘errbuf’
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1559:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1560:12: branch_false: following ‘false’ branch (when ‘errbuf’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1562:12: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1562:12: branch_true: following ‘true’ branch (when ‘ecode == 0’)...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1564:47: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1564:47: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1564: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): [#def852]
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1567:21: warning[-Wanalyzer-malloc-leak]: leak of ‘errbuf’
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1559:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1560:12: branch_false: following ‘false’ branch (when ‘errbuf’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1562:12: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1562:12: branch_false: following ‘false’ branch (when ‘ecode != 0’)...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1567:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1567:21: throw: if ‘ERR_reason_error_string’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1567: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): [#def853]
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1586:17: warning[-Wanalyzer-malloc-leak]: leak of ‘errbuf’
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1554:1: enter_function: entry to ‘SSLerrmessage’
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1559:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1560:12: branch_false: following ‘false’ branch (when ‘errbuf’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1562:12: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1562:12: branch_false: following ‘false’ branch (when ‘ecode != 0’)...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1567:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1568:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1583:13: call_function: inlined call to ‘ERR_GET_LIB’ from ‘SSLerrmessage’
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1583:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1584:17: call_function: inlined call to ‘ERR_GET_REASON’ from ‘SSLerrmessage’
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1583:13: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1586:17: branch_true: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1586:17: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1586: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): [#def854]
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1601:17: warning[-Wanalyzer-malloc-leak]: leak of ‘errbuf’
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1554:1: enter_function: entry to ‘SSLerrmessage’
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1559:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1560:12: branch_false: following ‘false’ branch (when ‘errbuf’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1562:12: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1562:12: branch_false: following ‘false’ branch (when ‘ecode != 0’)...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1567:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1568:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1583:13: call_function: inlined call to ‘ERR_GET_LIB’ from ‘SSLerrmessage’
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1599:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1601:17: call_function: inlined call to ‘ERR_GET_REASON’ from ‘SSLerrmessage’
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1601:17: throw: if ‘pg_strerror_r’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1601: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): [#def855]
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1607:9: warning[-Wanalyzer-malloc-leak]: leak of ‘errbuf’
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1554:1: enter_function: entry to ‘SSLerrmessage’
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1559:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1560:12: branch_false: following ‘false’ branch (when ‘errbuf’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1562:12: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1562:12: branch_false: following ‘false’ branch (when ‘ecode != 0’)...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1567:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1568:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1583:13: call_function: inlined call to ‘ERR_GET_LIB’ from ‘SSLerrmessage’
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1599:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1607:39: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1607:9: throw: if ‘pg_snprintf’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1607: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): [#def856]
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1607:39: warning[-Wanalyzer-malloc-leak]: leak of ‘errbuf’
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1554:1: enter_function: entry to ‘SSLerrmessage’
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1559:18: acquire_memory: allocated here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1560:12: branch_false: following ‘false’ branch (when ‘errbuf’ is non-NULL)...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1562:12: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1562:12: branch_false: following ‘false’ branch (when ‘ecode != 0’)...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1567:21: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1568:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1583:13: call_function: inlined call to ‘ERR_GET_LIB’ from ‘SSLerrmessage’
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1599:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1607:39: branch_false: ...to here
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1607:39: throw: if ‘libpq_gettext’ throws an exception...
postgresql-18.1/src/interfaces/libpq/fe-secure-openssl.c:1607: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): [#def857]
postgresql-18.1/src/interfaces/libpq/pqexpbuffer.c:308:28: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/interfaces/libpq/pqexpbuffer.c:265:1: enter_function: entry to ‘appendPQExpBuffer’
postgresql-18.1/src/interfaces/libpq/pqexpbuffer.c:271:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/interfaces/libpq/pqexpbuffer.c:278:17: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/interfaces/libpq/pqexpbuffer.c:279:24: call_function: calling ‘appendPQExpBufferVA’ from ‘appendPQExpBuffer’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def858]
postgresql-18.1/src/pl/plpgsql/src/pl_comp.c:1206:45: warning[-Wanalyzer-null-argument]: use of NULL ‘colname’ where non-null expected
postgresql-18.1/src/pl/plpgsql/src/pl_comp.c:1083:1: enter_function: entry to ‘resolve_column_ref’
postgresql-18.1/src/pl/plpgsql/src/pl_comp.c:1114:17: call_function: inlined call to ‘list_length’ from ‘resolve_column_ref’
postgresql-18.1/src/pl/plpgsql/src/pl_comp.c:1180:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/pl/plpgsql/src/pl_comp.c:1183:17: branch_false: ...to here
postgresql-18.1/src/pl/plpgsql/src/pl_comp.c:1190:28: branch_false: following ‘false’ branch...
postgresql-18.1/src/pl/plpgsql/src/pl_comp.c:1192:28: branch_false: ...to here
postgresql-18.1/src/pl/plpgsql/src/pl_comp.c:1192:28: branch_true: following ‘true’ branch...
postgresql-18.1/src/pl/plpgsql/src/pl_comp.c:1195:68: branch_true: ...to here
postgresql-18.1/src/pl/plpgsql/src/pl_comp.c:1200:40: branch_true: following ‘true’ branch (when ‘i >= 0’)...
postgresql-18.1/src/pl/plpgsql/src/pl_comp.c:1202:100: branch_true: ...to here
postgresql-18.1/src/pl/plpgsql/src/pl_comp.c:1206:45: danger: argument 2 (‘colname’) NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-768): [#def859]
postgresql-18.1/src/pl/plpgsql/src/pl_comp.c:1356: 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): [#def860]
postgresql-18.1/src/pl/plpgsql/src/pl_comp.c:1473: 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): [#def861]
postgresql-18.1/src/pl/plpgsql/src/pl_comp.c:1480: 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): [#def862]
postgresql-18.1/src/pl/plpgsql/src/pl_comp.c:1480: 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): [#def863]
postgresql-18.1/src/pl/plpgsql/src/pl_comp.c:1498: 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): [#def864]
postgresql-18.1/src/pl/plpgsql/src/pl_comp.c:1498: 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): [#def865]
postgresql-18.1/src/pl/plpgsql/src/pl_gram.c:1885:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18.1/src/pl/plpgsql/src/pl_gram.c:1840:6: branch_true: following ‘true’ branch...
postgresql-18.1/src/pl/plpgsql/src/pl_gram.c:1846:34: branch_true: ...to here
postgresql-18.1/src/pl/plpgsql/src/pl_gram.c:1872:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18.1/src/pl/plpgsql/src/pl_gram.c:1874:7: branch_false: ...to here
postgresql-18.1/src/pl/plpgsql/src/pl_gram.c:1883:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/pl/plpgsql/src/pl_gram.c:1883:12: branch_false: ...to here
postgresql-18.1/src/pl/plpgsql/src/pl_gram.c:1885:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def866]
postgresql-18.1/src/pl/plpgsql/src/pl_gram.c:2016:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
postgresql-18.1/src/pl/plpgsql/src/pl_gram.c:1840:6: branch_false: following ‘false’ branch...
postgresql-18.1/src/pl/plpgsql/src/pl_gram.c:1909:6: branch_false: ...to here
postgresql-18.1/src/pl/plpgsql/src/pl_gram.c:1909:6: branch_false: following ‘false’ branch (when ‘yystate != 3’)...
postgresql-18.1/src/pl/plpgsql/src/pl_gram.c:1912:3: branch_false: ...to here
postgresql-18.1/src/pl/plpgsql/src/pl_gram.c:1924:6: branch_true: following ‘true’ branch (when ‘yyn == -249’)...
postgresql-18.1/src/pl/plpgsql/src/pl_gram.c:1925:5: branch_true: ...to here
postgresql-18.1/src/pl/plpgsql/src/pl_gram.c:1996:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
postgresql-18.1/src/pl/plpgsql/src/pl_gram.c:1998:3: branch_false: ...to here
postgresql-18.1/src/pl/plpgsql/src/pl_gram.c:2016:3: danger: use of uninitialized value ‘*<unknown>’ here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def867]
postgresql-18.1/src/pl/plpython/plpy_elog.c:496:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/pl/plpython/plpy_elog.c:495:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/pl/plpython/plpy_elog.c:496:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18.1/src/pl/plpython/plpy_elog.c:496: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): [#def868]
postgresql-18.1/src/pl/plpython/plpy_elog.c:512:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/pl/plpython/plpy_elog.c:511:9: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/pl/plpython/plpy_elog.c:512:9: throw: if ‘pg_vsnprintf’ throws an exception...
postgresql-18.1/src/pl/plpython/plpy_elog.c:512: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-457): [#def869]
postgresql-18.1/src/test/isolation/specparse.c:1006:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
postgresql-18.1/src/test/isolation/specparse.c:964:6: branch_true: following ‘true’ branch...
postgresql-18.1/src/test/isolation/specparse.c:970:28: branch_true: ...to here
postgresql-18.1/src/test/isolation/specparse.c:993:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
postgresql-18.1/src/test/isolation/specparse.c:995:7: branch_false: ...to here
postgresql-18.1/src/test/isolation/specparse.c:1004:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
postgresql-18.1/src/test/isolation/specparse.c:1006:9: branch_false: ...to here
postgresql-18.1/src/test/isolation/specparse.c:1006:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def870]
postgresql-18.1/src/test/isolation/specparse.c:1133:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
postgresql-18.1/src/test/isolation/specparse.c:964:6: branch_false: following ‘false’ branch...
postgresql-18.1/src/test/isolation/specparse.c:1028:6: branch_false: ...to here
postgresql-18.1/src/test/isolation/specparse.c:1028:6: branch_false: following ‘false’ branch (when ‘yystate != 3’)...
postgresql-18.1/src/test/isolation/specparse.c:1031:3: branch_false: ...to here
postgresql-18.1/src/test/isolation/specparse.c:1043:6: branch_true: following ‘true’ branch (when ‘yyn == -14’)...
postgresql-18.1/src/test/isolation/specparse.c:1044:5: branch_true: ...to here
postgresql-18.1/src/test/isolation/specparse.c:1113:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
postgresql-18.1/src/test/isolation/specparse.c:1115:3: branch_false: ...to here
postgresql-18.1/src/test/isolation/specparse.c:1133:3: danger: use of uninitialized value ‘*<unknown>’ here
Error: CPPCHECK_WARNING (CWE-476): [#def871]
postgresql-18.1/src/test/isolation/specscanner.c:1768: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def872]
postgresql-18.1/src/test/isolation/specscanner.c:1769: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-404): [#def873]
postgresql-18.1/src/test/regress/pg_regress.c:387:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/test/regress/pg_regress.c:1286:1: enter_function: entry to ‘file_line_count’
postgresql-18.1/src/test/regress/pg_regress.c:1294:17: call_function: calling ‘emit_tap_output’ from ‘file_line_count’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def874]
postgresql-18.1/src/test/regress/pg_regress.c:389:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/test/regress/pg_regress.c:1286:1: enter_function: entry to ‘file_line_count’
postgresql-18.1/src/test/regress/pg_regress.c:1294:17: call_function: calling ‘emit_tap_output’ from ‘file_line_count’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def875]
postgresql-18.1/src/test/regress/pg_regress.c:392:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/test/regress/pg_regress.c:1286:1: enter_function: entry to ‘file_line_count’
postgresql-18.1/src/test/regress/pg_regress.c:1294:17: call_function: calling ‘emit_tap_output’ from ‘file_line_count’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def876]
postgresql-18.1/src/test/regress/pg_regress.c:396:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/test/regress/pg_regress.c:1286:1: enter_function: entry to ‘file_line_count’
postgresql-18.1/src/test/regress/pg_regress.c:1294:17: call_function: calling ‘emit_tap_output’ from ‘file_line_count’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def877]
postgresql-18.1/src/test/regress/pg_regress.c:413:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/test/regress/pg_regress.c:1331:1: enter_function: entry to ‘make_directory’
postgresql-18.1/src/test/regress/pg_regress.c:1334:17: call_function: calling ‘bail_out’ from ‘make_directory’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def878]
postgresql-18.1/src/test/regress/pg_regress.c:415:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/test/regress/pg_regress.c:1916:1: enter_function: entry to ‘open_result_files’
postgresql-18.1/src/test/regress/pg_regress.c:1922:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/test/regress/pg_regress.c:1926:9: branch_true: ...to here
postgresql-18.1/src/test/regress/pg_regress.c:1929:12: branch_true: following ‘true’ branch...
postgresql-18.1/src/test/regress/pg_regress.c:1930:17: branch_true: ...to here
postgresql-18.1/src/test/regress/pg_regress.c:1930:17: call_function: calling ‘bail_out’ from ‘open_result_files’
Error: COMPILER_WARNING (CWE-704): [#def879]
postgresql-18.1/src/test/regress/pg_regress.c: scope_hint: In function ‘get_expectfile’
postgresql-18.1/src/test/regress/pg_regress.c:703:34: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def880]
postgresql-18.1/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): [#def881]
postgresql-18.1/src/test/regress/pg_regress.c:1148:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
postgresql-18.1/src/test/regress/pg_regress.c:1147:17: acquire_resource: ‘va_start’ called here
postgresql-18.1/src/test/regress/pg_regress.c:1148:26: throw: if ‘appendStringInfoVA’ throws an exception...
postgresql-18.1/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): [#def882]
postgresql-18.1/src/test/regress/pg_regress.c:1276:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
postgresql-18.1/src/test/regress/pg_regress.c:1269:25: acquire_resource: opened here
postgresql-18.1/src/test/regress/pg_regress.c:1271:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/test/regress/pg_regress.c:1276:9: branch_false: ...to here
postgresql-18.1/src/test/regress/pg_regress.c:1276:9: throw: if ‘fseek’ throws an exception...
postgresql-18.1/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-775): [#def883]
postgresql-18.1/src/test/regress/pg_regress.c:1277:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
postgresql-18.1/src/test/regress/pg_regress.c:1269:25: acquire_resource: opened here
postgresql-18.1/src/test/regress/pg_regress.c:1271:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/test/regress/pg_regress.c:1276:9: branch_false: ...to here
postgresql-18.1/src/test/regress/pg_regress.c:1277:13: throw: if ‘ftell’ throws an exception...
postgresql-18.1/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-775): [#def884]
postgresql-18.1/src/test/regress/pg_regress.c:1297:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
postgresql-18.1/src/test/regress/pg_regress.c:1290:25: acquire_resource: opened here
postgresql-18.1/src/test/regress/pg_regress.c:1292:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/test/regress/pg_regress.c:1292:12: branch_false: ...to here
postgresql-18.1/src/test/regress/pg_regress.c:1297:21: throw: if ‘fgetc’ throws an exception...
postgresql-18.1/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-775): [#def885]
postgresql-18.1/src/test/regress/pg_regress.c:1683:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(schedule, "r")’
postgresql-18.1/src/test/regress/pg_regress.c:1664:15: acquire_resource: opened here
postgresql-18.1/src/test/regress/pg_regress.c:1665:12: branch_false: following ‘false’ branch...
postgresql-18.1/src/test/regress/pg_regress.c:1665:12: branch_false: ...to here
postgresql-18.1/src/test/regress/pg_regress.c:1668:16: branch_true: following ‘true’ branch...
postgresql-18.1/src/test/regress/pg_regress.c:1676:17: branch_true: ...to here
postgresql-18.1/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)
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 |
| diffbase-analyzer-version-clippy | 1.92.0 |
| diffbase-analyzer-version-cppcheck | 2.19.1 |
| diffbase-analyzer-version-gcc | 16.0.0 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.0 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-181.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | postgresql18-18beta1-4.fc43 |
| diffbase-store-results-to | /tmp/tmpeu5rmtu7/postgresql18-18beta1-4.fc43.tar.xz |
| diffbase-time-created | 2026-01-08 20:19:57 |
| diffbase-time-finished | 2026-01-08 20:44:11 |
| diffbase-tool | csmock |
| diffbase-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' |
| diffbase-tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |
| 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-18.1-2.fc44 |
| store-results-to | /tmp/tmpk6unkub7/postgresql18-18.1-2.fc44.tar.xz |
| time-created | 2026-01-08 20:45:18 |
| time-finished | 2026-01-08 21:19:59 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpk6unkub7/postgresql18-18.1-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpk6unkub7/postgresql18-18.1-2.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |