diff options
author | René Scharfe <l.s.r@web.de> | 2021-10-30 19:07:38 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-11-01 17:00:41 -0700 |
commit | 65db97b4fa6b03059f2f14f313e07ca799d4ef3f (patch) | |
tree | bb94834a937d98134fc36d883220ad33c21874a6 /dir-iterator.h | |
parent | gpg-interface: handle missing " with " gracefully in parse_ssh_output() (diff) | |
download | tgif-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 'dir-iterator.h')
0 files changed, 0 insertions, 0 deletions