commit | 78c33f3f5e9770623b357f1d7d1ba0952d7461ee | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Thu Aug 11 23:43:36 2022 +0000 |
committer | Elliott Hughes <enh@google.com> | Mon Aug 15 23:10:28 2022 +0000 |
tree | f42b0db9d858365ab069bf8bd73d19a76bbe932c | |
parent | a5d927ba6a7b89b19e9aa7229e5adf2ab3f33a66 [diff] [blame] |
Switch to C23's memset_explicit(). Test: treehugger Change-Id: Ib6ef45cedaf95fa251d0b03de0f14701f910d063
diff --git a/Keystore.cpp b/Keystore.cpp index d993b0d..6040f2d 100644 --- a/Keystore.cpp +++ b/Keystore.cpp
@@ -48,7 +48,7 @@ } static void zeroize_vector(std::vector<uint8_t>& vec) { - memset_s(vec.data(), 0, vec.size()); + memset_explicit(vec.data(), 0, vec.size()); } static bool logKeystore2ExceptionIfPresent(::ndk::ScopedAStatus& rc, const std::string& func_name) {