summaryrefslogtreecommitdiff
path: root/gitweb/gitweb.css
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2026-08-25 20:03:47 +0200
committerJunio C Hamano <gitster@pobox.com>2026-08-25 12:35:30 -0700
commit997c1daf1dce036cd52ba2a4a3d4060b74dd9d54 (patch)
treefdbcc257aa83f6ed9db52f47db9584ef127a1263 /gitweb/gitweb.css
parente9019fcafe0040228b8631c30f97ae1adb61bcdc (diff)
worktree add: don't read out of bounds in worktree_basename()
When we search for the start of the basename and `len` is zero, `name` ends up being `path` - 1, out of bounds. Avoid that by checking before decrementing. Fixes https://github.com/git-for-windows/git/issues/6346. Original-patch-by: Matthias Aßhauer <mha1993@live.de> Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/gitweb.css')
0 files changed, 0 insertions, 0 deletions