mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
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.
This commit is contained in:
@ -203,6 +203,8 @@ const char *px_resolve_alias(const PX_Alias *aliases, const char *name);
|
||||
|
||||
void px_set_debug_handler(void (*handler) (const char *));
|
||||
|
||||
void px_memset(void *ptr, int c, size_t len);
|
||||
|
||||
#ifdef PX_DEBUG
|
||||
void
|
||||
px_debug(const char *fmt,...)
|
||||
|
Reference in New Issue
Block a user