Re: Moving other hex functions to /common
Bruce Momjian <bruce@momjian.us>
From: Bruce Momjian <bruce@momjian.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2021-01-12T18:13:00Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Rework refactoring of hex and encoding routines
- aef8948f38d9 14.0 landed
On Tue, Jan 12, 2021 at 11:26:51AM +0900, Michael Paquier wrote: > The two only things that were not present are the set of checks for > overflows, and the adjustments for varlena.c. The first point makes > the code of encode.c safer, as previously the code would issue a FATAL > *after* writing out-of-bound data. Now it issues an ERROR before any > overwrite is done, and I have added some assertions as an extra safety > net. For the second, I think that it makes the allocation pattern > easier to follow, similarly to checksum manifests. Thanks for you work on this. Looks good. I posted your patch under my key management patch and the cfbot reports all green: http://cfbot.cputube.org/index.html The key management patch calls the src/common hex functions from src/backend/crypto, pg_alterckey, and the crypto tests, and these are all tested by make check-world. -- Bruce Momjian <bruce@momjian.us> https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee