summaryrefslogtreecommitdiff
path: root/t/t4018/java-class-member-function
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2021-10-30 19:07:38 +0200
committerJunio C Hamano <gitster@pobox.com>2021-11-01 17:00:41 -0700
commit65db97b4fa6b03059f2f14f313e07ca799d4ef3f (patch)
treebb94834a937d98134fc36d883220ad33c21874a6 /t/t4018/java-class-member-function
parent18b18503e3b3721e0a513cbc83971a960e944c19 (diff)
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 't/t4018/java-class-member-function')
0 files changed, 0 insertions, 0 deletions