diff options
author | Jeff King <peff@peff.net> | 2015-09-24 21:07:31 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-25 17:18:18 (GMT) |
commit | 54ba4c5fa2d7de216ca090ac2e657728462c81d5 (patch) | |
tree | c76231dded57746aa6478fe63dd5d35b49707bd3 /git-p4.py | |
parent | 7d0581a9abe733d8880113370c4d956b50f5bd9f (diff) | |
download | git-54ba4c5fa2d7de216ca090ac2e657728462c81d5.zip git-54ba4c5fa2d7de216ca090ac2e657728462c81d5.tar.gz git-54ba4c5fa2d7de216ca090ac2e657728462c81d5.tar.bz2 |
http-walker: store url in a strbuf
We do an unchecked sprintf directly into our url buffer.
This doesn't overflow because we know that it was sized for
"$base/objects/info/http-alternates", and we are writing
"$base/objects/info/alternates", which must be smaller. But
that is not immediately obvious to a reader who is looking
for buffer overflows. Let's switch to a strbuf, so that we
do not have to think about this issue at all.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-p4.py')
0 files changed, 0 insertions, 0 deletions