]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jk/parse-int' into jch
authorJunio C Hamano <gitster@pobox.com>
Tue, 23 Dec 2025 02:33:36 +0000 (11:33 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Dec 2025 02:33:36 +0000 (11:33 +0900)
Introduce a more robust way to parse a decimal integer stored in a
piece of memory that is not necessarily terminated with NUL (which
Asan strict-string-check complains even when use of strtol() is
safe due to varified existence of whitespace after the digits).

* jk/parse-int:
  fsck: use parse_unsigned_from_buf() for parsing timestamp
  cache-tree: use parse_int_from_buf()
  parse: add functions for parsing from non-string buffers
  parse: prefer bool to int for boolean returns

1  2 
Makefile
compat/posix.h
fsck.c
t/meson.build

diff --cc Makefile
Simple merge
diff --cc compat/posix.h
Simple merge
diff --cc fsck.c
Simple merge
diff --cc t/meson.build
Simple merge