Fix issues in some host calls where a buffer length error was being handled by reallocating to the new buffer size, but was discarding the new buffer's pointer. This should also fix flaky tests in CI.
It's unfortunate that cabi_realloc can't be marked [[nodiscard]], as it's defined within an extern "C" block.
Fix issues in some host calls where a buffer length error was being handled by reallocating to the new buffer size, but was discarding the new buffer's pointer. This should also fix flaky tests in CI.
It's unfortunate that
cabi_realloc
can't be marked[[nodiscard]]
, as it's defined within anextern "C"
block.