diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2022-02-14 11:25:46 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2022-02-14 11:25:46 -0500 |
commit | 291ec6e45ebe1a87f930a250ad3c6672472b9b19 (patch) | |
tree | 847bdf9597ff6ae5d9c4fb0bdde59d2f26ca09dc /src/backend/parser/parse_node.c | |
parent | fd2abeb7c2b285d0575eeb743744e3dca4f66323 (diff) | |
download | postgresql-291ec6e45ebe1a87f930a250ad3c6672472b9b19.tar.gz postgresql-291ec6e45ebe1a87f930a250ad3c6672472b9b19.zip |
Suppress integer-overflow compiler warning for inconsistent sun_len.
On AIX 7.1, struct sockaddr_un is declared to be 1025 bytes long,
but the sun_len field that should hold the length is only a byte.
Clamp the value we try to store to ensure it will fit in the field.
(This coding might need adjustment if there are any machines out
there where sun_len is as wide as size_t; but a preliminary survey
suggests there's not, so let's keep it simple.)
Discussion: https://postgr.es/m/2781112.1644819528@sss.pgh.pa.us
Diffstat (limited to 'src/backend/parser/parse_node.c')
0 files changed, 0 insertions, 0 deletions