Closed
[Bug-Report|缺陷反馈]: MaxPool/LpPool pads_vector存在越界写风险 #9248
fengjiawei1Add on  3 days agoClosed at  2 days ago
fengjiawei1
fengjiawei1Collaborators
3 days ago Create

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

当非法模型携带超长 pads(如 kernel_shape 为 2 维但 pads 给出 8 个值),且命中大核 AICPU 分支(ksize > 255 或 stride > 63)时:中 pads_vector[i + 2](std::vector<int32_t> pads_vector(8))会发生堆越界写

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

Ascend950

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

非法输入,长度超过边界时必现

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

预期没有越界问题

无日志

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

likedislike
fengjiawei1fengjiawei1Collaborators
3 days ago Added label: bug-report
yuning_chenyuning_chenCollaborators
3 days ago Assign fengjiawei1 as responsible person
CANN-robotCANN-robotCollaborators
2 days ago Close issue
CANN-robotCANN-robotCollaborators
2 days ago changed custom state from 待办的 to 已完成
CANN-robotCANN-robotCollaborators
2 days ago Added label: resolved