git/list[1] front-page[2] threads[3] people[4] search[5] about
 

segfault in http.c when https URL is mistyped

From
LWLars 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
Next: Jeff King
Message 1 of 3 in “segfault in http.c when https URL is mistyped”
  1. Lars WendlerSep 7, 2016
  2. Jeff KingSep 7, 2016
  3. Jeff KingSep 7, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.