Closed
[Bug-Report|缺陷反馈]: MaxPool/LpPool pads_vector存在越界写风险 #9248
fengjiawei1Add on 3 days agoClosed at 2 days ago
3 days ago Added label: bug-report
3 days ago Assign fengjiawei1 as responsible person
2 days ago Close issue
2 days ago changed custom state from 待办的 to 已完成
2 days ago Added label: resolved
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 / 必填)
预期没有越界问题
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
无日志
Special notes for this issue/备注 (Optional / 选填)