代码拉取完成,页面将自动刷新
【标题描述】能够简要描述问题:入参未作非空判断
【环境信息】
硬件信息:
1) 裸机场景提供出问题的硬件信息;
2) 虚机场景提供虚机XML文件或者配置信息
软件信息:
1) OS版本及分支
2) 内核信息
3) 发现问题的组件版本信息
如果有特殊组网,请提供网络拓扑图
【问题复现步骤】
int util_getgrent_r(FILE *stream, struct group *resbuf, char *buffer, size_t buflen, struct group **result)
{
const char delim = ':';
if (stream == NULL || resbuf == NULL || buffer == NULL) {
ERROR("Group obj, params is NULL.");
return -1;
}
if (buflen <= 1) {
ERROR("Inadiquate buffer length was given.");
return -1;
}
if (*result != NULL) {
ERROR("Result shall point to null to start.");
return -1;
}
util_getpwent_r 相似
问题汇总:
Hi duguhaotian, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: iSulad, and any of the maintainers: @haomintsai , @lifeng_isula , @haozi007 , @jingxiaolu , @JingWoo
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论