]> git.ipfire.org Git - thirdparty/git.git/commit
gpg-interface: do not scan past the end of buffer
authorSteven Roberts <fenderq@gmail.com>
Tue, 16 Jul 2019 18:47:37 +0000 (11:47 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 16 Jul 2019 19:15:12 +0000 (12:15 -0700)
commit64c45dc72ef039215f23d1b8f077dd6f9f254d38
treeb74e18fb889fd283491f42b2ba94964250f2a562
parent0d0ac3826a3bbb9247e39e12623bbcfdd722f24c
gpg-interface: do not scan past the end of buffer

If the GPG output ends with trailing blank lines, after skipping
them over inside the loop to find the terminating NUL at the end,
the loop ends up looking for the next line, starting past the end.

Signed-off-by: Steven Roberts <sroberts@fenderq.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gpg-interface.c