pgsql: pgcrypto: fix memset() calls that might be optimized away
От | Bruce Momjian |
---|---|
Тема | pgsql: pgcrypto: fix memset() calls that might be optimized away |
Дата | |
Msg-id | E1WapKD-0006QA-0d@gemulon.postgresql.org обсуждение исходный текст |
Список | pgsql-committers |
pgcrypto: fix memset() calls that might be optimized away Specifically, on-stack memset() might be removed, so: * Replace memset() with px_memset() * Add px_memset to copy_crlf() * Add px_memset to pgp-s2k.c Patch by Marko Kreen Report by PVS-Studio Backpatch through 8.4. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/fc72e94a13026b86a06c7f5c670f4c16420d3d77 Modified Files -------------- contrib/pgcrypto/crypt-blowfish.c | 5 +++-- contrib/pgcrypto/crypt-md5.c | 4 ++-- contrib/pgcrypto/fortuna.c | 15 ++++++++------- contrib/pgcrypto/internal-sha2.c | 8 ++++---- contrib/pgcrypto/internal.c | 10 +++++----- contrib/pgcrypto/mbuf.c | 12 ++++++------ contrib/pgcrypto/openssl.c | 4 ++-- contrib/pgcrypto/pgp-cfb.c | 2 +- contrib/pgcrypto/pgp-compress.c | 4 ++-- contrib/pgcrypto/pgp-decrypt.c | 19 ++++++++++--------- contrib/pgcrypto/pgp-encrypt.c | 10 +++++----- contrib/pgcrypto/pgp-mpi.c | 2 +- contrib/pgcrypto/pgp-pgsql.c | 6 +++--- contrib/pgcrypto/pgp-pubenc.c | 6 +++--- contrib/pgcrypto/pgp-pubkey.c | 8 ++++---- contrib/pgcrypto/pgp-s2k.c | 3 +++ contrib/pgcrypto/pgp.c | 2 +- contrib/pgcrypto/px-crypt.c | 2 +- contrib/pgcrypto/px-hmac.c | 8 ++++---- contrib/pgcrypto/px.c | 8 +++++++- contrib/pgcrypto/px.h | 2 ++ contrib/pgcrypto/sha2.c | 9 +++++---- 22 files changed, 82 insertions(+), 67 deletions(-)
В списке pgsql-committers по дате отправления: