forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd69c781
committed
Fix pg_strtof() to not crash on NULL endptr.
We had managed not to notice this simple oversight because noneof our calls exercised the case --- until commit8f42718.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 waitingto 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.comBackpatch-through: 131 parentee78823 commitd69c781
1 file changed
+7
-3
lines changedLines changed: 7 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
34 | 35 |
| |
35 | 36 |
| |
36 |
| - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 |
| |
38 | 41 |
| |
39 | 42 |
| |
40 | 43 |
| |
41 | 44 |
| |
42 |
| - | |
| 45 | + | |
43 | 46 |
| |
44 | 47 |
| |
45 | 48 |
| |
| |||
53 | 56 |
| |
54 | 57 |
| |
55 | 58 |
| |
56 |
| - | |
| 59 | + | |
| 60 | + | |
57 | 61 |
| |
58 | 62 |
| |
59 | 63 |
| |
|
0 commit comments
Comments
(0)