Missing checking of allocation retvals
Closed this issue · 1 comments
est31 commented
The library isn't watertight regarding the checking of allocation results. The result should be sent to the caller like a nice C library should do.
- ignoring the result of
hash_num
may lead to read of uninit memory, and wrong results instead of errors. This point comes from minetest/minetest#3921 and was the motivation of the issue. - similar in
update_hash_n
mpz_init
innew_ng
is called before checking the return value