]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'pw/apply-ulong-overflow-check'
authorJunio C Hamano <gitster@pobox.com>
Mon, 10 Feb 2025 18:18:30 +0000 (10:18 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Feb 2025 18:18:30 +0000 (10:18 -0800)
commit34736ff48e684dac08bacdad60db41219ce1c520
tree24378b85a4c8ccba59a7290096600d003ac3f5c2
parent442b7e0018fac61874a8423270e8fee2c0c7e689
parenta206058fdaab6274ae7b9bdca274011efba74e11
Merge branch 'pw/apply-ulong-overflow-check'

"git apply" internally uses unsigned long for line numbers and uses
strtoul() to parse numbers on the hunk headers.  It however forgot
to check parse errors.

* pw/apply-ulong-overflow-check:
  apply: detect overflow when parsing hunk header
apply.c
t/t4100-apply-stat.sh