diff options
author | Giel van Schijndel <[email protected]> | 2015-01-06 22:37:00 +0100 |
---|---|---|
committer | Steve French <[email protected]> | 2015-01-19 15:32:13 -0600 |
commit | f99dbfa4b39f90c3ba95169000cc2cdd59413f4e (patch) | |
tree | 3473d944a6d76de1877503636567d84051bd6228 /lib/memory-notifier-error-inject.c | |
parent | ec6f34e5b552fb0a52e6aae1a5afbbb1605cc6cc (diff) |
cifs: use memzero_explicit to clear stack buffer
When leaving a function use memzero_explicit instead of memset(0) to
clear stack allocated buffers. memset(0) may be optimized away.
This particular buffer is highly likely to contain sensitive data which
we shouldn't leak (it's named 'passwd' after all).
Signed-off-by: Giel van Schijndel <[email protected]>
Acked-by: Herbert Xu <[email protected]>
Reported-at: http://www.viva64.com/en/b/0299/
Reported-by: Andrey Karpov
Reported-by: Svyatoslav Razmyslov
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions