319 Star 2.1K Fork 1K

OpenHarmony / kernel_liteos_a

 / 详情

kernal_liteos_a/base/ipc/los_signal.c 函数中存在空指针解引用

已完成
缺陷
创建于  
2020-10-13 16:54

该问题是怎么引起的?

kernal_liteos_a/base/ipc/los_signal.c line202:
info->sigInfo 存在空指针解引用
输入图片说明

重现步骤

kernal_liteos_a/base/ipc/los_signal.c line263:
输入图片说明
kernal_liteos_a/base/ipc/los_signal.c line275:
Take the false branch:
** *info.sigInfo == ((void )0) **
会调用函数:OsSigProcessForeachChild(spcb, SigProcessSignalHandler, &info)
输入图片说明
kernal_liteos_a/base/ipc/los_signal.c line180: (arg->sigInfo=NULL;)
Take the true branch:&(taskCB)->threadList != (&(spcb->threadSiblingList))
执行 ret = handler(taskCB, arg);
输入图片说明
kernal_liteos_a/base/ipc/los_signal.c line189: (arg->sigInfo=NULL;)
*info = (struct ProcessSignalInfo *)arg ;
line202: The pointer is NULL. info->sigInfo
输入图片说明

报错信息

输入图片说明

评论 (0)

star-os-bugs 创建了缺陷
Denny 负责人设置为MGY917
MGY917 通过openharmony/kernel_liteos_a Pull Request !183任务状态待办的 修改为已验收
MGY917 任务状态已验收 修改为已完成
展开全部操作日志

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(1)
C
1
https://gitee.com/openharmony/kernel_liteos_a.git
git@gitee.com:openharmony/kernel_liteos_a.git
openharmony
kernel_liteos_a
kernel_liteos_a

搜索帮助