You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Michael Paquier
ca2a12c935
Fix potential memory leak in pgcrypto
...
When allocating a EVP context, it would have been possible to leak some
memory allocated directly by OpenSSL, that PostgreSQL lost track of if
the initialization of the context allocated failed. The cleanup can be
done with EVP_MD_CTX_destroy().
Note that EVP APIs exist since OpenSSL 0.9.7 and we have in the tree
equivalent implementations for older versions since ce9b75d (code
removed with 9b7cd59a as of 10~). However, in 9.5 and 9.6, the existing
code makes use of EVP_MD_CTX_destroy() and EVP_MD_CTX_create() without
an equivalent implementation when building the tree with OpenSSL 0.9.6
or older, meaning that this code is in reality broken with such versions
since it got introduced in e2838c5 . As we have heard no complains about
that, it does not seem worth bothering with in 9.5 and 9.6, so I have
left that out for simplicity.
Author: Michael Paquier
Discussion: https://postgr.es/m/20201015072212.GC2305@paquier.xyz
Backpatch-through: 9.5
5 years ago
..
expected
Fix corner case with 16kB-long decompression in pgcrypto, take 2
5 years ago
sql
Fix corner case with 16kB-long decompression in pgcrypto, take 2
5 years ago
.gitignore
Support SCRAM-SHA-256 authentication (RFC 5802 and 7677).
9 years ago
Makefile
Remove support for upgrading extensions from "unpackaged" state.
6 years ago
blf.c
…
blf.h
…
crypt-blowfish.c
Get rid of trailing semicolons in C macro definitions.
6 years ago
crypt-des.c
Replace remaining StrNCpy() by strlcpy()
5 years ago
crypt-gensalt.c
Phase 3 of pgindent updates.
9 years ago
crypt-md5.c
Add missing error check in pgcrypto/crypt-md5.c.
5 years ago
imath.c
Remove custom memory allocation layer in pgcrypto
5 years ago
imath.h
Initial pgindent run for v12.
7 years ago
internal-sha2.c
Remove custom memory allocation layer in pgcrypto
5 years ago
internal.c
Remove custom memory allocation layer in pgcrypto
5 years ago
mbuf.c
Remove custom memory allocation layer in pgcrypto
5 years ago
mbuf.h
Phase 2 pgindent run for v12.
7 years ago
md5.c
Resolve one unconstify use
7 years ago
md5.h
Phase 2 of pgindent updates.
9 years ago
openssl.c
Fix potential memory leak in pgcrypto
5 years ago
pgcrypto--1.0--1.1.sql
…
pgcrypto--1.1--1.2.sql
…
pgcrypto--1.2--1.3.sql
…
pgcrypto--1.3.sql
Minor fixes in contrib installation scripts.
10 years ago
pgcrypto.c
Make the order of the header file includes consistent in contrib modules.
6 years ago
pgcrypto.control
Mark some contrib modules as "trusted".
6 years ago
pgcrypto.h
Remove unnecessary prototypes
9 years ago
pgp-armor.c
Make the order of the header file includes consistent in contrib modules.
6 years ago
pgp-cfb.c
Remove custom memory allocation layer in pgcrypto
5 years ago
pgp-compress.c
Remove custom memory allocation layer in pgcrypto
5 years ago
pgp-decrypt.c
Remove custom memory allocation layer in pgcrypto
5 years ago
pgp-encrypt.c
Remove custom memory allocation layer in pgcrypto
5 years ago
pgp-info.c
Dial back -Wimplicit-fallthrough to level 3
6 years ago
pgp-mpi-internal.c
Remove custom memory allocation layer in pgcrypto
5 years ago
pgp-mpi-openssl.c
Make the order of the header file includes consistent in contrib modules.
6 years ago
pgp-mpi.c
Remove custom memory allocation layer in pgcrypto
5 years ago
pgp-pgsql.c
Introduce macros for typalign and typstorage constants.
6 years ago
pgp-pubdec.c
Make the order of the header file includes consistent in contrib modules.
6 years ago
pgp-pubenc.c
Remove custom memory allocation layer in pgcrypto
5 years ago
pgp-pubkey.c
Remove custom memory allocation layer in pgcrypto
5 years ago
pgp-s2k.c
Make the order of the header file includes consistent in contrib modules.
6 years ago
pgp.c
Remove custom memory allocation layer in pgcrypto
5 years ago
pgp.h
Fix inconsistencies and typos in the tree, take 10
6 years ago
px-crypt.c
Make the order of the header file includes consistent in contrib modules.
6 years ago
px-crypt.h
Phase 2 pgindent run for v12.
7 years ago
px-hmac.c
Remove custom memory allocation layer in pgcrypto
5 years ago
px.c
Remove custom memory allocation layer in pgcrypto
5 years ago
px.h
Remove custom memory allocation layer in pgcrypto
5 years ago
rijndael.c
Fix a boatload of typos in C comments.
8 years ago
rijndael.h
Phase 2 of pgindent updates.
9 years ago
rijndael.tbl
…
sha1.c
Fix inconsistencies and typos in the tree, take 9
6 years ago
sha1.h
Phase 2 of pgindent updates.
9 years ago