Re: [PATCH 8/9] fsck: avoid parse_timestamp() on buffer that isn't NUL-terminated
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 12, 2025, 19:36 UTC
- Message-ID
- <xmqq346jqc0e.fsf@gitster.g>
- In-Reply-To
- <aRRux2uBfORc214r@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
> So this is another site that would benefit from having something like > `git_parse_int()` with an extra parameter indicating the number of > bytes available for parsing (and a way to disable unit factors).
It is certainly an interesting approach that would work well.