Unverified Commit fa138ed5 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!339 ima: Fix a potential NULL pointer access in ima_restore_measurement_list

Merge Pull Request from: @HuaxinLuGitee 
 
In restore_template_fmt, when kstrdup fails, a non-NULL value will still be
returned, which causes a NULL pointer access in template_desc_init_fields. 
 
Link:https://gitee.com/openeuler/kernel/pulls/339

 
Reviewed-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parents bbee829a f402238d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment