summaryrefslogtreecommitdiff
path: root/worktree.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2021-10-30 19:07:38 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-11-01 17:00:41 -0700
commit65db97b4fa6b03059f2f14f313e07ca799d4ef3f (patch)
treebb94834a937d98134fc36d883220ad33c21874a6 /worktree.c
parentgpg-interface: handle missing " with " gracefully in parse_ssh_output() (diff)
downloadtgif-65db97b4fa6b03059f2f14f313e07ca799d4ef3f.tar.xz
gpg-interface: avoid buffer overrun in parse_ssh_output()
If the string "key" we found in the output of ssh-keygen happens to be located at the very end of the line, then going four characters further leaves us beyond the end of the string. Explicitly search for the space after "key" to handle a missing one gracefully. Signed-off-by: René Scharfe <l.s.r@web.de> Acked-by: Fabian Stelzer <fs@gigacodes.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'worktree.c')
0 files changed, 0 insertions, 0 deletions