This is an automated email from the ASF dual-hosted git repository.

jiangtian pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git

commit 44ed5561f5bf20d7c6ee89bf463c9eb7d1934e39
Author: Haonan <[email protected]>
AuthorDate: Wed Nov 6 10:14:08 2024 +0800

    Fix code scanning alert no. 11: Multiplication result converted to larger 
type (#287)
    
    Co-authored-by: Copilot Autofix powered by AI 
<62310815+github-advanced-security[bot]@users.noreply.github.com>
    (cherry picked from commit fee2b0c60105f8161d4e46c4587965dfb44cd302)
---
 cpp/third_party/zlib-1.2.13/zutil.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpp/third_party/zlib-1.2.13/zutil.c 
b/cpp/third_party/zlib-1.2.13/zutil.c
index 9543ae82..34129b57 100644
--- a/cpp/third_party/zlib-1.2.13/zutil.c
+++ b/cpp/third_party/zlib-1.2.13/zutil.c
@@ -310,7 +310,7 @@ voidpf ZLIB_INTERNAL zcalloc(opaque, items, size)
     unsigned size;
 {
     (void)opaque;
-    return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) :
+    return sizeof(uInt) > 2 ? (voidpf)malloc((size_t)items * size) :
                               (voidpf)calloc(items, size);
 }
 

Reply via email to