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

Started by Tom Laneover 11 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

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_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/ef5a3b957c1d9eb405aef109df8152ec9ee96b6f

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(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers