Re: pgcrypto: PGP armor headers - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: pgcrypto: PGP armor headers
Date
Msg-id 542BFC50.7020705@vmware.com
Whole thread Raw
In response to Re: pgcrypto: PGP armor headers  (Marko Tiikkaja <marko@joh.to>)
List pgsql-hackers
On 10/01/2014 02:47 PM, Marko Tiikkaja wrote:
> On 10/1/14 1:01 PM, Heikki Linnakangas wrote:
>> I think this is now ready for commit, but since I've changed it quite
>> significantly from what you originally submitted, please take a moment
>> to review this.
>
>     1) I see this compiler warning:
>
>       pgp-pgsql.c: In function ‘pg_armor’:
>       pgp-pgsql.c:960:18: warning: ‘values’ may be used uninitialized in
> this function [-Wmaybe-uninitialized]
>       pgp_armor_encode((uint8 *) VARDATA(data), data_len, &buf,
>
>        It's bogus, but worth silencing anyway.
>
>     2) There's what looks like an extra whitespace change in
> pgp_armor_encode(), but maybe that's intentional?
>
>     3) Also, I think the attached two corner cases deserve their own tests.
>
> Other than the above, the patch looks good to me.  Huge thanks for your
> work on this one!

Ok, committed with those fixes.

- Heikki




pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: pg_receivexlog and replication slots
Next
From: Simon Riggs
Date:
Subject: Re: "Value locking" Wiki page