Skip to content

Commit

Permalink
Fix code scanning alert no. 11: Multiplication result converted to la…
Browse files Browse the repository at this point in the history
…rger type (#287)

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
HTHou and github-advanced-security[bot] authored Nov 6, 2024
1 parent 95da9c7 commit fee2b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/third_party/zlib-1.2.13/zutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit fee2b0c

Please sign in to comment.