diff options
author | Zhihao Cheng <chengzhihao1@huawei.com> | 2024-02-04 10:21:44 +0800 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2024-09-25 09:08:41 +0200 |
commit | 8ade2c1776dc5e9c37cd1172031a02bfbdd07601 (patch) | |
tree | b03793b416bee833b109430ff22a6862eec90d3f /tests/jittertest/plotJittervsFill.c | |
parent | 1ffb962afe2239ac02e3890df29653d84f07b104 (diff) |
mkfs.ubifs: Initialize 'cipher_name' as NULL
Variable 'cipher_name' is defined on stack without initialization, when
an user invokes mkfs with '--key' and without '-C', 'cipher_name' is a
random value, which could cause init_fscrypt_context() failed to find a
valid cipher.
Fix it by initializing 'cipher_name' as NULL when it is declared.
Fixes: cc4c5e295f546 ("mkfs.ubifs: Enable support for building without crypto")
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/jittertest/plotJittervsFill.c')
0 files changed, 0 insertions, 0 deletions