已关闭
[Bug-Report|缺陷反馈]: max_pool_with_argmax strides属性h、w轴缺少不大于0校验 #4650
ideal_创建于  8月7日关闭于  29 天前
ideal_
ideal_成员
8月7日 创建

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

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

针对MaxPoolWithArgmax算子输入参数进行泛化,构造参数执行后,程序coredump

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

950

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

strides=[1,0,0,1],NHWC 格式,h_dim=1 维值为 0

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

校验拦截报错,返回异常

  • 触发向量strides=[1,0,0,1],NHWC 格式,h_dim=1 维值为 0
  • 漏洞源码max_pool_with_argmax_infershape.cpp:173(in_shape->GetDim(h) + strides_data[h] - 1) / strides_data[h]
  • 崩溃位置ge::MaxPoolWithArgmaxInferShape() in libopsproto.so(V1 InferFunc 路径)

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

likedislike
ideal_ideal_成员
8月7日 添加了label:bug-report
yuning_chenyuning_chen成员
8月8日 将 wang-shilong32 设为负责人
CANN-robotCANN-robot成员
29 天前 关闭了 issue
CANN-robotCANN-robot成员
29 天前 添加了label:resolved