]> git.99rst.org Git - git.git/commit
reftable/writer: improve error when passed an invalid block size
authorPatrick Steinhardt <redacted>
Mon, 13 May 2024 08:18:09 +0000 (10:18 +0200)
committerJunio C Hamano <redacted>
Tue, 14 May 2024 00:02:38 +0000 (17:02 -0700)
commitc22d75b02784baa1713e0c007fcd0cb675dd9f43
tree5e1d22a6b01c9824f5473bc8d900c471c068097b
parente0cf3d8f8bc0480e67ac83502c10d6e6c38e1e11
reftable/writer: improve error when passed an invalid block size

The reftable format only supports block sizes up to 16MB. When the
writer is being passed a value bigger than that it simply calls
abort(3P), which isn't all that helpful due to the lack of a proper
error message.

Improve this by calling `BUG()` instead.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
reftable/writer.c
git clone https://git.99rst.org/PROJECT