Unverified Commit 22c0b10f authored by Xinye Tao's avatar Xinye Tao Committed by GitHub

Fix memory corruption caused by uninitialized fields of `Env` (#596)

Signed-off-by: 's avatartabokie <xy.tao@outlook.com>
parent 2788c4df
......@@ -4250,6 +4250,9 @@ crocksdb_env_t* crocksdb_file_system_inspected_env_create(
assert(inspector != nullptr);
crocksdb_env_t* result = new crocksdb_env_t;
result->rep = NewFileSystemInspectedEnv(base_env->rep, inspector->rep);
result->block_cipher = nullptr;
result->encryption_provider = nullptr;
result->is_default = false;
return result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment