pgsql: Fix overflow check in StringInfo; add missing casts

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix overflow check in StringInfo; add missing casts
Date: 2017-01-10 14:42:56
Message-ID: E1cQxdY-0000PX-8B@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix overflow check in StringInfo; add missing casts

A few thinkos I introduced in fa2fa9955280. Also, amend a similarly
broken comment.

Report by Daniel Vérité.
Authors: Daniel Vérité, Álvaro Herrera
Discussion: https://postgr.es/m/1706e85e-60d2-494e-8a64-9af1e1b2186e@manitou-mail.org

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/42f50cb8fa9848bbbc6776bcea03293a6b28b2d4

Modified Files
--------------
src/backend/lib/stringinfo.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Stephen Frost 2017-01-10 16:35:16 pgsql: pg_dump: Strict names with no matching schema
Previous Message Robert Haas 2017-01-10 13:37:21 pgsql: Improve coding in _hash_addovflpage.