aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeProjectSet.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-07-06 11:25:37 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2019-07-06 11:25:37 -0400
commitfb30c9c1c5c36989d6b93906986358cb96936d64 (patch)
treeb52a47704d2333120d09e68e4d03b7f5e1c4c7ab /src/backend/executor/nodeProjectSet.c
parentb33283c36409aef7eddb5ba92bdd9300dd45d974 (diff)
downloadpostgresql-fb30c9c1c5c36989d6b93906986358cb96936d64.tar.gz
postgresql-fb30c9c1c5c36989d6b93906986358cb96936d64.zip
In pg_log_generic(), be more paranoid about preserving errno.
This code failed to account for the possibility that malloc() would change errno, resulting in wrong output for %m, not to mention the possibility of message truncation. Such a change is obviously expected when malloc fails, but there's reason to fear that on some platforms even a successful malloc call can modify errno. Discussion: https://postgr.es/m/2576.1527382833@sss.pgh.pa.us
Diffstat (limited to 'src/backend/executor/nodeProjectSet.c')
0 files changed, 0 insertions, 0 deletions