segfault in http.c when https URL is mistyped
- From
- Lars Wendler <polynomial-c@gentoo.org>
- Date
- Sep 7, 2016, 13:44 UTC
- Message-ID
- <20160907154404.107fe6e6@abudhabi.paradoxon.rec>
- In-Reply-To
- <20160907151607.2b288034@abudhabi.paradoxon.rec>
Hi,
we at Gentoo got a bug report [1] about git-remote-https segfaulting when the URL has been mistyped. This seems to only be triggered when git was compiled with curl support:
git clone https::/some.example-site.net/test.git
Observe the "https::/" instead of "https://". As soon as you run such a command, syslog receives a message like:
kernel: git-remote-http[8766]: segfault at 0 ip 0000000000408abd sp 00007ffd70adf7c0 error 4 in git-remote-https[400000+103000]
Kind regards Lars
[1] https://bugs.gentoo.org/592522
-- Lars Wendler Gentoo package maintainer GPG: 21CC CF02 4586 0A07 ED93 9F68 498F E765 960E 9B39 Attention! New gpg key! See https://www.gentoofan.org/blog/index.php?/archives/9-New-gpg-keys.html