已关闭
[Bug-Report|缺陷反馈]: matmul_emu_split_weight算子遗漏空指针校验 #5475
wuyufei创建于  29 天前关闭于  6 天前
wuyufei成员
29 天前 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Describe the current behavior / 问题描述 (Mandatory / 必填)

op_host/op_tiling/arch35/matmul_emu_split_weight_tiling.cpp
context_->GetInputShape(INDEX_X)、GetInputShape(INDEX_W_HIGH)、GetInputShape(INDEX_W_LOW) 返回值未做空指针检查即直接调用 ->GetOriginShape()。对比同模块 infershape 函数(matmul_emu_split_weight_infershape.cpp:39-41)对同样的 API 调用做了 nullptr 检查,此处遗漏。

Environment / 环境信息 (Mandatory / 必填)

950

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

当 GetInputShape 返回 nullptr(如输入索引越界或 context 异常)

Describe the expected behavior / 预期结果 (Mandatory / 必填)

进行空指针校验拦截

auto xShape = context_->GetInputShape(INDEX_X)->GetOriginShape(); // no null check
auto wHighShape = context_->GetInputShape(INDEX_W_HIGH)->GetOriginShape(); // no null check
auto wLowShape = context_->GetInputShape(INDEX_W_LOW)->GetOriginShape(); // no null check

Special notes for this issue/备注 (Optional / 选填)

likedislike
Wwuyufei成员
29 天前 添加了label:bug-report
opengoodopengood
29 天前 关联了pull request:fix(matmul_emu_split_weight): 补充输入shape与scale属性空指针校验
yuning_chenyuning_chen成员
29 天前 将 wuyufei 设为负责人
Cchenqi317成员
6 天前 issue状态由 进行中 改变为 已完成
Cchenqi317成员
6 天前 关闭了 issue
chenqi317成员
6 天前 评论:
likedislike