khashl: use ruby_xrealloc2 to avoid overflow
commit46141941e58419b3325e50eebac683baeede2c19
authorEric Wong <bofh@yhbt.net>
Sun, 24 Mar 2024 21:10:43 +0000 (24 21:10 +0000)
committerEric Wong <bofh@yhbt.net>
Mon, 25 Mar 2024 21:19:11 +0000 (25 21:19 +0000)
tree739537e1d5b06c35110083f96f1c451655566a71
parent38eba33cb1b7b0a3c93afcaa79263e3b1daf4955
khashl: use ruby_xrealloc2 to avoid overflow

While no user is likely to have enough listeners to trigger an
overflow, just use ruby_xrealloc2 to be safe since it's already
provided by Ruby (and AFAIK reallocarray(3) isn't standardized).
ext/raindrops/khashl.h
ext/raindrops/linux_inet_diag.c