From a9573e5ac0d030c3c065d95dce7d8dcdc2da2c23 Mon Sep 17 00:00:00 2001 From: orbisai0security Date: Sun, 5 Jul 2026 12:15:53 +0000 Subject: [PATCH] fix: V-002 security vulnerability Automated security fix generated by OrbisAI Security --- hal/ndsrvp/src/filter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hal/ndsrvp/src/filter.cpp b/hal/ndsrvp/src/filter.cpp index 85f02b99c0..b873b87474 100644 --- a/hal/ndsrvp/src/filter.cpp +++ b/hal/ndsrvp/src/filter.cpp @@ -141,7 +141,7 @@ int filter(cvhalFilter2D *context, int cal_y = offset_y - ctx->anchor_y; // negative if top border exceeded // calculate source border - ctx->padding.resize(cal_width * cal_height * cnes); + ctx->padding.resize((size_t)cal_width * cal_height * cnes); uchar* pad_data = &ctx->padding[0]; int pad_step = cal_width * cnes;