pgsql: Loop when necessary in contrib/pgcrypto's pktreader_pull().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Loop when necessary in contrib/pgcrypto's pktreader_pull().
Date: 2014-11-11 22:23:12
Message-ID: E1XoJqC-0005xX-AQ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Loop when necessary in contrib/pgcrypto's pktreader_pull().

This fixes a scenario in which pgp_sym_decrypt() failed with "Wrong key
or corrupt data" on messages whose length is 6 less than a power of 2.

Per bug #11905 from Connor Penhale. Fix by Marko Tiikkaja, regression
test case from Jeff Janes.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/419de696a76f5884e26ecd0905a084b0f57afc93

Modified Files
--------------
contrib/pgcrypto/expected/pgp-decrypt.out | 8 ++++++++
contrib/pgcrypto/pgp-decrypt.c | 2 +-
contrib/pgcrypto/sql/pgp-decrypt.sql | 4 ++++
3 files changed, 13 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2014-11-11 23:49:41 pgsql: Remove incorrect comment.
Previous Message Tom Lane 2014-11-11 22:00:52 pgsql: Fix dependency searching for case where column is visited before