]> git.ipfire.org Git - thirdparty/git.git/commit
imap-send: avoid buffer overflow
authorJeff King <peff@peff.net>
Sat, 10 Dec 2011 10:40:45 +0000 (05:40 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Dec 2011 00:09:38 +0000 (16:09 -0800)
commit50d0158fbba5c4cd04184bb757bf43a84c290405
tree25066f3cd87576fda794d9f3fb71d59db9a28d94
parent861444f6d702b15713d0875ce9dc5aff64885fba
imap-send: avoid buffer overflow

We format the password prompt in an 80-character static
buffer. It contains the remote host and username, so it's
unlikely to overflow (or be exploitable by a remote
attacker), but there's no reason not to be careful and use
a strbuf.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c