aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2025-01-13 20:13:46 +0100
committerGitHub <noreply@github.com>2025-01-13 20:13:46 +0100
commit6b686be9d3cf9c30cb09a02a17eab45e03e7b8e4 (patch)
treefb52518994e86e1e75fc4fd99645ac9f6b7692d4
parent9ab2b31e3fdb6ff39ce50b07139ad9dc3cc99e73 (diff)
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>
-rw-r--r--example/ndpiReader.c2
1 files changed, 1 insertions, 1 deletions
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);
}