1/*-------------------------------------------------------------------------
5 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
6 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/port/explicit_bzero.c
12 *-------------------------------------------------------------------------
15 #define __STDC_WANT_LIB_EXT1__ 1 /* needed to access memset_s() */
32 (void) SecureZeroMemory(
buf,
len);
38 * Indirect call through a volatile pointer to hopefully avoid dead-store
39 * optimisation eliminating the call. (Idea taken from OpenSSH.) We can't
40 * assume bzero() is present either, so for simplicity we define our own.
static void(*volatile bzero_p)(void *, size_t)
void explicit_bzero(void *buf, size_t len)
static void bzero2(void *buf, size_t len)