pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove custom memory allocation layer in pgcrypto
Date: Fri, 25 Sep 2020 01:27:03 +0000
Message-ID: <E1kLcVr-0004Tm-OZ@gemulon.postgresql.org> (raw)

Remove custom memory allocation layer in pgcrypto

PX_OWN_ALLOC was intended as a way to disable the use of palloc(), and
over the time new palloc() or equivalent calls have been added like in
32984d8, making this extra layer losing its original purpose.  This
simplifies on the way some code paths to use palloc0() rather than
palloc() followed by memset(0).

Author: Daniel Gustafsson
Discussion: https://postgr.es/m/A5BFAA1A-B2E8-4CBC-895E-7B1B9475A527@yesql.se

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ca7f8e2b86e5f15a40b67e6199d714f45a467ff1

Modified Files
--------------
contrib/pgcrypto/imath.c            | 10 +++++-----
contrib/pgcrypto/internal-sha2.c    | 28 ++++++++++++----------------
contrib/pgcrypto/internal.c         | 32 +++++++++++++-------------------
contrib/pgcrypto/mbuf.c             | 30 ++++++++++++++----------------
contrib/pgcrypto/openssl.c          |  8 ++++----
contrib/pgcrypto/pgp-cfb.c          |  5 ++---
contrib/pgcrypto/pgp-compress.c     | 18 ++++++++----------
contrib/pgcrypto/pgp-decrypt.c      | 11 +++++------
contrib/pgcrypto/pgp-encrypt.c      |  9 ++++-----
contrib/pgcrypto/pgp-mpi-internal.c |  6 +++---
contrib/pgcrypto/pgp-mpi.c          |  4 ++--
contrib/pgcrypto/pgp-pubenc.c       | 12 ++++++------
contrib/pgcrypto/pgp-pubkey.c       |  5 ++---
contrib/pgcrypto/pgp.c              |  5 ++---
contrib/pgcrypto/px-hmac.c          | 21 ++++++++++-----------
contrib/pgcrypto/px.c               | 32 ++++++++++++++------------------
contrib/pgcrypto/px.h               | 13 -------------
17 files changed, 106 insertions(+), 143 deletions(-)



Message-ID: <E1kLcVr-0004Tm-OZ@gemulon.postgresql.org>
Permalink:  ../E1kLcVr-0004Tm-OZ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kLcVr-0004Tm-OZ@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Remove custom memory allocation layer in pgcrypto
  In-Reply-To: <E1kLcVr-0004Tm-OZ@gemulon.postgresql.org>
  References: <E1kLcVr-0004Tm-OZ@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox