From 2381d803c76105f44717d75f089ec37f51e5cfe4 Mon Sep 17 00:00:00 2001 From: qinxialei Date: Thu, 22 Apr 2021 11:20:15 +0800 Subject: New upstream version 0.16.3 --- src/dsp/convolve.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/dsp/convolve.cc') diff --git a/src/dsp/convolve.cc b/src/dsp/convolve.cc index 8c6f68f..727b4af 100644 --- a/src/dsp/convolve.cc +++ b/src/dsp/convolve.cc @@ -623,6 +623,8 @@ void ConvolveIntraBlockCopy2D_C(const void* const reference, const int /*vertical_filter_id*/, const int width, const int height, void* prediction, const ptrdiff_t pred_stride) { + assert(width >= 4 && width <= kMaxSuperBlockSizeInPixels); + assert(height >= 4 && height <= kMaxSuperBlockSizeInPixels); const auto* src = static_cast(reference); const ptrdiff_t src_stride = reference_stride / sizeof(Pixel); auto* dest = static_cast(prediction); @@ -676,6 +678,8 @@ void ConvolveIntraBlockCopy1D_C(const void* const reference, const int /*vertical_filter_id*/, const int width, const int height, void* prediction, const ptrdiff_t pred_stride) { + assert(width >= 4 && width <= kMaxSuperBlockSizeInPixels); + assert(height >= 4 && height <= kMaxSuperBlockSizeInPixels); const auto* src = static_cast(reference); const ptrdiff_t src_stride = reference_stride / sizeof(Pixel); auto* dest = static_cast(prediction); -- cgit v1.2.3