KEYS: Fix error path return value in pgp_generate_fingerprint
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5GRSV CVE: NA -------------------------------- In function pgp_generate_fingerprint, return value is not set correctly shall kmalloc failed, leading to the caller triggering a read out-of-bound while reading ctx.fingerprint or ctx.raw_fingerprint. This patch fixes this issue by setting correct return value on the error path. Fixes: 4006f47d ("KEYS: PGP data parser") Signed-off-by:GUO Zihua <guozihua@huawei.com> Reviewed-by:
Roberto Sassu <roberto.sassu@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment