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

utf-8 filename woes

From
JHJeremy Harris <jgh@wizmail.org>
Date
Apr 22, 2015, 19:50 UTC
Message-ID
<5537FB82.4000302@wizmail.org>
Hi,
  I have a git version 1.7.1 running on Scientific Linux 6.
When a filename with UTF-8 is present in a tree-ish the
"git archive" command crashes:
------------%%----------------
*** buffer overflow detected ***: git terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x32c1502527]
/lib64/libc.so.6[0x32c1500410]
/lib64/libc.so.6[0x32c14ff869]
/lib64/libc.so.6(_IO_default_xsputn+0xc9)[0x32c1474639]
/lib64/libc.so.6(_IO_vfprintf+0x11d8)[0x32c14451a8]
/lib64/libc.so.6(__vsprintf_chk+0x9d)[0x32c14ff90d]
/lib64/libc.so.6(__sprintf_chk+0x7f)[0x32c14ff84f]
git[0x4620bc]
git[0x4616bc]
git[0x4bd832]
git[0x4bda79]
git[0x4bda79]
git[0x4613e1]
git[0x4623ed]
git[0x4612ed]
git[0x40caf3]
git[0x4041a1]
git[0x404382]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x32c141ed5d]
git[0x403ba9]
======= Memory map: ========
00400000-00510000 r-xp 00000000 fd:00 4121
 /usr/bin/git
------------%%----------------

Installing the git-debuginfo package gave no additional information. The symptom does not show on a Fedora 21 system with git 2.1.0 (and I note that gitk properly shows those filenames on f21, and does not on sl6).

Is this a known and fixed issue, or something my sl6 system needs installing?

-- 
Thanks,
  Jeremy
Next: Jeff King
Message 1 of 2 in “utf-8 filename woes”
  1. Jeremy HarrisApr 22, 2015
  2. Jeff KingApr 22, 2015

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.