aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-03-31 16:45:17 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2021-03-31 16:45:24 -0400
commitc545e9524dcfcfce25c370f584b31562e8d7a4b7 (patch)
treee28e8200d66b36f34b20d7e69a5cb4e28a12a2fc /contrib/postgres_fdw/postgres_fdw.c
parent3b0c647bbfc52894d979976f1e6d60e40649bba7 (diff)
downloadpostgresql-c545e9524dcfcfce25c370f584b31562e8d7a4b7.tar.gz
postgresql-c545e9524dcfcfce25c370f584b31562e8d7a4b7.zip
Don't prematurely cram a value into a short int.
Since a4d75c86b, some buildfarm members have been warning that Assert(attnum <= MaxAttrNumber); is useless if attnum is an AttrNumber. I'm not certain how plausible it is that the value coming out of the bitmap could actually exceed MaxAttrNumber, but we seem to have thought that that was possible back in 7300a6995. Revert the intermediate variable to int so that we have the same overflow protection as before.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions