mirror of
https://github.com/opencv/opencv.git
synced 2026-07-21 19:33:03 +04:00
fix: V-002 security vulnerability
Automated security fix generated by OrbisAI Security
This commit is contained in:
@@ -141,7 +141,7 @@ int filter(cvhalFilter2D *context,
|
|||||||
int cal_y = offset_y - ctx->anchor_y; // negative if top border exceeded
|
int cal_y = offset_y - ctx->anchor_y; // negative if top border exceeded
|
||||||
|
|
||||||
// calculate source border
|
// 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];
|
uchar* pad_data = &ctx->padding[0];
|
||||||
int pad_step = cal_width * cnes;
|
int pad_step = cal_width * cnes;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user