diff options
author | Patrick Steinhardt <ps@pks.im> | 2025-02-18 10:20:44 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-02-18 10:55:37 -0800 |
commit | 6e3ea71639a3541523f2be8f950325c8a0aa6768 (patch) | |
tree | d0e848e9c47e0de543bf76399f804d8ffe1fd296 /builtin/commit-graph.c | |
parent | 445f9f4f35c663fb668425f8c8fe0a1d58e1d8c7 (diff) |
reftable/basics: stop using `st_mult()` in array allocators
We're using `st_mult()` as part of our macro helpers that allocate
arrays. This is bad due two two reasons:
- `st_mult()` causes us to die in case the multiplication overflows.
- `st_mult()` ties us to the Git codebase.
Refactor the code to instead detect overflows manually and return an
error in such cases.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions