khashl: avoid multiplication overflow + memset
commit1056445ba4e412f93174ca440028a9fe9dba4b2b
authorEric Wong <bofh@yhbt.net>
Sat, 30 Mar 2024 18:03:54 +0000 (30 18:03 +0000)
committerEric Wong <bofh@yhbt.net>
Wed, 3 Apr 2024 08:35:12 +0000 (3 08:35 +0000)
tree95a7eec727f906e55eec182e89dc89277c3ddb4a
parentdb72c4bf2385deb118d98fbf3459633f324ed822
khashl: avoid multiplication overflow + memset

Instead of a malloc where arguments can silently overflow,
use calloc directly to handle the overflow and zeroing for
us.
ext/raindrops/khashl.h