diff options
author | René Scharfe <l.s.r@web.de> | 2021-10-30 19:04:56 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-11-01 17:00:41 -0700 |
commit | 18b18503e3b3721e0a513cbc83971a960e944c19 (patch) | |
tree | 9e42c9bec86dfb51d5c58e2c686b15c9318894ae /templates/hooks--applypatch-msg.sample | |
parent | Git 2.34-rc0 (diff) | |
download | tgif-18b18503e3b3721e0a513cbc83971a960e944c19.tar.xz |
gpg-interface: handle missing " with " gracefully in parse_ssh_output()
If the output of ssh-keygen starts with "Good \"git\" signature for ",
but is not followed by " with " for some reason, then parse_ssh_output()
uses -1 as the len parameter of xmemdupz(), which in turn will end the
program. Reject the signature and carry on instead in that case.
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 'templates/hooks--applypatch-msg.sample')
0 files changed, 0 insertions, 0 deletions