Skip site navigation (1) Skip section navigation (2)

pgbouncer - pgbouncer: console: fix string format in datarow packet

From: mkz(at)pgfoundry(dot)org (User Mkz)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgbouncer - pgbouncer: console: fix string format in datarow packet
Date: 2009-09-28 09:47:26
Message-ID: 20090928094726.51E1E107152E@pgfoundry.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
console: fix string format in datarow packet

pgbouncer used to store strings with final '\0', which should not be there.

It was not noticed thus far as any C clients did not saw anything wrong.

Takeover code depends on them being zero-terminated, use a hack to make them so.

Modified Files:
--------------
    pgbouncer/src:
        pktbuf.c (r1.7 -> r1.8)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgbouncer/pgbouncer/src/pktbuf.c?r1=1.7&r2=1.8)
        proto.c (r1.18 -> r1.19)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgbouncer/pgbouncer/src/proto.c?r1=1.18&r2=1.19)

pgsql-committers by date

Next:From: Andrew DunstanDate: 2009-09-28 17:30:05
Subject: pgsql: Convert a perl array to a postgres array when returned by Set
Previous:From: Michael MeskesDate: 2009-09-28 08:50:57
Subject: pgsql: Added some explanation about how the parser is generated, taken

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group