We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7cc2df commit f892ad8Copy full SHA for f892ad8
1 file changed
onnxruntime/core/providers/cpu/nn/deform_conv.cc
@@ -285,6 +285,9 @@ ORT_FORCEINLINE void BilinearPlanOneSample(
285
T plan_w10 = lh * hw;
286
T plan_w11 = lh * lw;
287
288
+ // Safe under DeformConvValidateAndParse precondition: (H + 1) * W <= int_max.
289
+ // With h_high <= H and w_high <= W, these linearized int indices stay in range.
290
+ // Near borders h_low/w_low can be -1, but lower bounds also remain representable in int32.
291
const int base_low = h_low * width;
292
const int base_high = h_high * width;
293
int32_t idx00 = base_low + w_low;
0 commit comments