diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2025-03-01 14:22:56 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2025-03-01 14:22:56 -0500 |
commit | 00d61a08c5fadca869c66a988b722e543d8e7100 (patch) | |
tree | 30460d123b334f43c5942d46c28966f90aac4910 /contrib/postgres_fdw/sql/postgres_fdw.sql | |
parent | 56ba0463d38c17400a090353db47cf455ce01c3d (diff) | |
download | postgresql-00d61a08c5fadca869c66a988b722e543d8e7100.tar.gz postgresql-00d61a08c5fadca869c66a988b722e543d8e7100.zip |
Fix pg_strtof() to not crash on NULL endptr.
We had managed not to notice this simple oversight because none
of our calls exercised the case --- until commit 8f427187d.
That led to pg_dump crashing on any platform that uses this code
(currently Cygwin and Mingw).
Even though there's no immediate bug in the back branches, backpatch,
because a non-POSIX-compliant strtof() substitute is trouble waiting
to happen for extensions or future back-patches.
Diagnosed-by: Alexander Lakhin <exclusion@gmail.com>
Author: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/339b3902-4e98-4e31-a744-94e43b7b9292@gmail.com
Backpatch-through: 13
Diffstat (limited to 'contrib/postgres_fdw/sql/postgres_fdw.sql')
0 files changed, 0 insertions, 0 deletions