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

  1. Parse more strictly integer parameters from connection strings in libpq