Re: libpq stricter integer parsing

Fabien COELHO <coelho@cri.ensmp.fr>

From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Michael Paquier <michael@paquier.xyz>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2018-09-07T21:22:14Z
Lists: pgsql-hackers

Attachments

Hello Michael,

>> Hmmm. It does apply on a test I just did right know...
>
> That's weird, it does not apply for me either with patch -p1 and there
> is on conflict in fe-connect.c, which looks easy enough to fix by the
> way.

Weird indeed. However, even if the patch applied cleanly for me, it was 
not compiling anymore. Attached an updated version, in which I also tried 
to improve the error message on trailing garbage.

-- 
Fabien

Commits

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