Re: [PATCH 09/14] hash: expose hash context functions to Rust
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 29, 2025, 16:32 UTC
- Message-ID
- <xmqqqzulacst.fsf@gitster.g>
- In-Reply-To
- <20251027004404.2152927-10-sandals@crustytoothpaste.net>
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
> +struct git_hash_ctx *git_hash_alloc(void)
> +{
> + return malloc(sizeof(struct git_hash_ctx));
> +}Not an objection, but this looked especially curious to me because it has been customary to use xmalloc() for a thing like this. Going forward, is our intention that we'd explicitly handle OOM allocation failures ourselves, at least in the Rust part of the code base?