Re: libpq stricter integer parsing
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Fabien COELHO <coelho@cri.ensmp.fr>,
PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2018-09-07T13:45:10Z
Lists: pgsql-hackers
On 17/08/2018 12:13, Fabien COELHO wrote: > sh> psql "connect_timeout=2,port=5433" > > The timeout is set to 2, and the port directive is silently ignored. > However, URL parsing is stricter, eg on "port". > > The attached patch checks integer syntax errors and overflows, and report > errors. This looks useful and the patch looks reasonable, but it doesn't apply anymore. Can you send in an update? -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Parse more strictly integer parameters from connection strings in libpq
- e7a2217978d9 12.0 landed