File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
features/storage/kvstore/securestore Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -52,19 +52,19 @@ static const uint32_t security_flags = KVStore::REQUIRE_CONFIDENTIALITY_FLAG | K
52
52
namespace {
53
53
54
54
typedef struct {
55
- uint16_t metadata_size;
56
- uint16_t revision;
57
- uint32_t data_size;
58
- uint32_t create_flags;
59
- uint8_t iv[iv_size];
55
+ uint16_t metadata_size = 0u ;
56
+ uint16_t revision = 0u ;
57
+ uint32_t data_size = 0u ;
58
+ uint32_t create_flags = 0u ;
59
+ uint8_t iv[iv_size] = { 0u } ;
60
60
} record_metadata_t ;
61
61
62
62
// incremental set handle
63
63
typedef struct {
64
64
record_metadata_t metadata;
65
- char *key;
66
- uint32_t offset_in_data;
67
- uint8_t ctr_buf[enc_block_size];
65
+ char *key = nullptr ;
66
+ uint32_t offset_in_data = 0u ;
67
+ uint8_t ctr_buf[enc_block_size] = { 0u } ;
68
68
mbedtls_aes_context enc_ctx;
69
69
mbedtls_cipher_context_t auth_ctx;
70
70
KVStore::set_handle_t underlying_handle;
You can’t perform that action at this time.
0 commit comments