You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bn...@apache.org on 2023/03/31 16:44:10 UTC
[trafficserver] branch master updated: codeql 24: Multiplication result converted to larger type (#9569)
This is an automated email from the ASF dual-hosted git repository.
bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 674fb2619 codeql 24: Multiplication result converted to larger type (#9569)
674fb2619 is described below
commit 674fb2619798709f53582cabdedc841821d0a5dd
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Sat Apr 1 01:44:03 2023 +0900
codeql 24: Multiplication result converted to larger type (#9569)
---
src/tscore/ink_queue.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tscore/ink_queue.cc b/src/tscore/ink_queue.cc
index 42e48d05d..f2569df55 100644
--- a/src/tscore/ink_queue.cc
+++ b/src/tscore/ink_queue.cc
@@ -214,7 +214,7 @@ freelist_new(InkFreeList *f)
if (TO_PTR(FREELIST_POINTER(item)) == nullptr) {
uint32_t i;
void *newp = nullptr;
- size_t alloc_size = f->chunk_size * f->type_size;
+ size_t alloc_size = static_cast<size_t>(f->chunk_size) * f->type_size;
size_t alignment = 0;
if (f->use_hugepages) {