From 6b686be9d3cf9c30cb09a02a17eab45e03e7b8e4 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 13 Jan 2025 20:13:46 +0100 Subject: Fix code scanning alert no. 7: Multiplication result converted to larger type (#2677) Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- example/ndpiReader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 59bafe15f..02af0c699 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -5249,7 +5249,7 @@ void analyzeUnitTest() { u_int32_t i; for(i=0; i<256; i++) { - ndpi_data_add_value(s, rand()*i); + ndpi_data_add_value(s, rand() * (u_int64_t)i); // ndpi_data_add_value(s, i+1); } -- cgit v1.2.3