提交 bd3b7478 编写于 作者: H Heinrich Schuchardt

efi_loader: endless loop in add_strings_package()

Avoid an endless loop in add_strings_package().
Suggested-by: NTakahiro Akashi <takahiro.akashi@linaro.org>
Reported-by: Coverity (CID 185833)
Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
上级 306b1671
......@@ -227,9 +227,8 @@ out:
error:
if (stbl) {
free(stbl->language);
if (idx > 0)
while (--idx >= 0)
free(stbl->strings[idx].string);
while (idx > 0)
free(stbl->strings[--idx].string);
free(stbl->strings);
}
free(stbl);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册