提交 ef82516d 编写于 作者: M Markus Armbruster

QemuOpts: Fix qemu_config_parse() to catch file read errors

上级 cf5a65aa
......@@ -475,6 +475,10 @@ int qemu_config_parse(FILE *fp, const char *fname)
error_report("parse error");
goto out;
}
if (ferror(fp)) {
error_report("error reading file");
goto out;
}
res = 0;
out:
loc_pop(&loc);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册