- Notifications
You must be signed in to change notification settings - Fork5
Commitc79bdc9
committed
Use "g" not "f" format in ecpg's PGTYPESnumeric_from_double().
The previous coding could overrun the provided buffer size for a very largeinput, or lose precision for a very small input. Adopt the methodologythat's been in use in the equivalent backend code for a long time.Per private report from Bas van Schaik. Back-patch to all supportedbranches.1 parent6fe8ca0 commitc79bdc9
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
1497 | 1498 | | |
1498 | 1499 | | |
1499 | 1500 | | |
1500 | | - | |
| 1501 | + | |
1501 | 1502 | | |
1502 | 1503 | | |
1503 | 1504 | | |
1504 | | - | |
| 1505 | + | |
1505 | 1506 | | |
1506 | 1507 | | |
1507 | 1508 | | |
| |||
0 commit comments
Comments
(0)