fix: V-004 security vulnerability

Automated security fix generated by OrbisAI Security
This commit is contained in:
anupamme
2026-08-04 14:18:09 +00:00
parent 4bee6895eb
commit 5940b25d34

View File

@@ -189,7 +189,7 @@ int bilateralFilter(const uchar* src_data, size_t src_step,
// calculate source border
std::vector<uchar> padding;
padding.resize(cal_width * cal_height * cn);
padding.resize((size_t)cal_width * cal_height * cn);
uchar* pad_data = &padding[0];
int pad_step = cal_width * cn;