aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistvacuum.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:48 -0400
commitcf665ad4c89eb9b20285dc04aec906d46ed810d2 (patch)
tree74ce060b75bf77f6e8fdec9f940f800fe38ab2b4 /src/backend/access/gist/gistvacuum.c
parentc8e0997239840888a974624b0ab020177357f0ae (diff)
downloadpostgresql-cf665ad4c89eb9b20285dc04aec906d46ed810d2.tar.gz
postgresql-cf665ad4c89eb9b20285dc04aec906d46ed810d2.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/access/gist/gistvacuum.c')
0 files changed, 0 insertions, 0 deletions