pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix thinkos from 4f4061b for libpq integer parsing
2+ messages / 1 participants
[nested] [flat]

* pgsql: Fix thinkos from 4f4061b for libpq integer parsing
@ 2019-10-23 02:35  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2019-10-23 02:35 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix thinkos from 4f4061b for libpq integer parsing

A check was redundant.  While on it, add an assertion to make sure that
the parsing routine is never called with a NULL input.  All the code
paths currently calling the parsing routine are careful with NULL inputs
already, but future callers may forget that.

Reported-by: Peter Eisentraut, Lars Kanis
Discussion: https://postgr.es/m/ec64956b-4597-56b6-c3db-457d15250fe4@2ndquadrant.com
Backpatch-through: 12

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/57379cd5ac56e575630a5fee5777a1035d0a764a

Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Fix thinkos from 4f4061b for libpq integer parsing
@ 2019-10-23 02:35  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2019-10-23 02:35 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix thinkos from 4f4061b for libpq integer parsing

A check was redundant.  While on it, add an assertion to make sure that
the parsing routine is never called with a NULL input.  All the code
paths currently calling the parsing routine are careful with NULL inputs
already, but future callers may forget that.

Reported-by: Peter Eisentraut, Lars Kanis
Discussion: https://postgr.es/m/ec64956b-4597-56b6-c3db-457d15250fe4@2ndquadrant.com
Backpatch-through: 12

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a6a95d4f382b67bc80b63e4769dfb240bafd9aa7

Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2019-10-23 02:35 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-10-23 02:35 pgsql: Fix thinkos from 4f4061b for libpq integer parsing Michael Paquier <michael@paquier.xyz>
2019-10-23 02:35 pgsql: Fix thinkos from 4f4061b for libpq integer parsing Michael Paquier <michael@paquier.xyz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox