forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite7a2217
committed
Parse more strictly integer parameters from connection strings in libpq
The following parameters have been parsed in lossy ways when specifiedin a connection string processed by libpq:- connect_timeout- keepalives- keepalives_count- keepalives_idle- keepalives_interval- portOverflowing values or the presence of incorrect characters were notproperly checked, leading to libpq trying to use such values and failwith unhelpful error messages. This commit hardens the parsing of thoseparameters so as it is possible to find easily incorrect values.Author: Fabien CoelhoReviewed-by: Peter Eisentraut, Michael PaquierDiscussion:https://postgr.es/m/alpine.DEB.2.21.1808171206180.20841@lancre1 parent0d45cd9 commite7a2217
1 file changed
+54
-9
lines changedLines changed: 54 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1587 | 1587 |
| |
1588 | 1588 |
| |
1589 | 1589 |
| |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
1590 | 1618 |
| |
1591 | 1619 |
| |
1592 | 1620 |
| |
| |||
1599 | 1627 |
| |
1600 | 1628 |
| |
1601 | 1629 |
| |
1602 |
| - | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
1603 | 1633 |
| |
1604 | 1634 |
| |
1605 | 1635 |
| |
| |||
1631 | 1661 |
| |
1632 | 1662 |
| |
1633 | 1663 |
| |
1634 |
| - | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
1635 | 1667 |
| |
1636 | 1668 |
| |
1637 | 1669 |
| |
| |||
1664 | 1696 |
| |
1665 | 1697 |
| |
1666 | 1698 |
| |
1667 |
| - | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
1668 | 1702 |
| |
1669 | 1703 |
| |
1670 | 1704 |
| |
| |||
1698 | 1732 |
| |
1699 | 1733 |
| |
1700 | 1734 |
| |
1701 |
| - | |
1702 |
| - | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
1703 | 1739 |
| |
1704 | 1740 |
| |
1705 | 1741 |
| |
1706 |
| - | |
1707 |
| - | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
1708 | 1746 |
| |
1709 | 1747 |
| |
1710 | 1748 |
| |
| |||
1831 | 1869 |
| |
1832 | 1870 |
| |
1833 | 1871 |
| |
1834 |
| - | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
1835 | 1876 |
| |
1836 | 1877 |
| |
1837 | 1878 |
| |
| |||
1842 | 1883 |
| |
1843 | 1884 |
| |
1844 | 1885 |
| |
| 1886 | + | |
| 1887 | + | |
1845 | 1888 |
| |
1846 | 1889 |
| |
1847 | 1890 |
| |
| |||
2108 | 2151 |
| |
2109 | 2152 |
| |
2110 | 2153 |
| |
2111 |
| - | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
2112 | 2157 |
| |
2113 | 2158 |
| |
2114 | 2159 |
| |
|
0 commit comments
Comments
(0)