_encode_pwd_buffer_from_str() declares `buf` as uint8_t buf[N],
which decays to a pointer. BURN_DATA_SIZE(buf, N) expands to
memset_explicit(&buf, 0, N), taking the address of the pointer
variable (8 bytes) rather than the buffer itself, triggering a
GCC -Wstringop-overflow error.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=16006
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
PASSWORD_BUFFER_LEN,
string_flags);
if (new_pw_len < 0) {
- BURN_DATA_SIZE(buf, PASSWORD_BUFFER_LEN);
+ BURN_PTR_SIZE(buf, PASSWORD_BUFFER_LEN);
return -1;
}