aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistget.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-03-10 12:58:51 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2019-03-10 12:59:16 -0400
commitac75959cdc073a09a0d3d649fb922d90e1df4c61 (patch)
tree22d20b4ed81cf893383c6d356d5590841081c682 /src/backend/access/gist/gistget.c
parent203749a8a66096171f808dd8e870d08d8ad57e5e (diff)
downloadpostgresql-ac75959cdc073a09a0d3d649fb922d90e1df4c61.tar.gz
postgresql-ac75959cdc073a09a0d3d649fb922d90e1df4c61.zip
Disallow NaN as a value for floating-point GUCs.
None of the code that uses GUC values is really prepared for them to hold NaN, but parse_real() didn't have any defense against accepting such a value. Treat it the same as a syntax error. I haven't attempted to analyze the exact consequences of setting any of the float GUCs to NaN, but since they're quite unlikely to be good, this seems like a back-patchable bug fix. Note: we don't need an explicit test for +-Infinity because those will be rejected by existing range checks. I added a regression test for that in HEAD, but not older branches because the spelling of the value in the error message will be platform-dependent in branches where we don't always use port/snprintf.c. Discussion: https://postgr.es/m/1798.1552165479@sss.pgh.pa.us
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions