Fix static analysis warnings With this fix the number of warnings from deep analysis is 2 (excluding warnings in third_party). Shallow analysis ends with no warnings Change-Id: I680379dc2e55dcd5fbe86a6f445719e5e7b41112
diff --git a/av1/common/convolve.c b/av1/common/convolve.c index 5a55ece..85baf45 100644 --- a/av1/common/convolve.c +++ b/av1/common/convolve.c
@@ -121,6 +121,7 @@ int16_t im_block[(MAX_SB_SIZE + MAX_FILTER_TAP - 1) * MAX_SB_SIZE]; int im_h = h + filter_params_y->taps - 1; int im_stride = w; + assert(w <= MAX_SB_SIZE && h <= MAX_SB_SIZE); const int fo_vert = filter_params_y->taps / 2 - 1; const int fo_horiz = filter_params_x->taps / 2 - 1; const int bd = 8; @@ -704,6 +705,7 @@ int16_t im_block[(MAX_SB_SIZE + MAX_FILTER_TAP - 1) * MAX_SB_SIZE]; int im_h = h + filter_params_y->taps - 1; int im_stride = w; + assert(w <= MAX_SB_SIZE && h <= MAX_SB_SIZE); const int fo_vert = filter_params_y->taps / 2 - 1; const int fo_horiz = filter_params_x->taps / 2 - 1; const int bits =
diff --git a/av1/common/warped_motion.c b/av1/common/warped_motion.c index e232e10..0c91cfd 100644 --- a/av1/common/warped_motion.c +++ b/av1/common/warped_motion.c
@@ -574,7 +574,6 @@ CONVERT_TO_BYTEPTR(tmp), j, i, warp_w, warp_h, WARP_ERROR_BLOCK, subsampling_x, subsampling_y, bd, &conv_params); - gm_sumerr += highbd_frame_error( tmp, WARP_ERROR_BLOCK, CONVERT_TO_SHORTPTR(dst8) + j + i * p_stride, warp_w, warp_h, p_stride, bd);