[Bug 3547] sftp crash with 'invalid multibyte character' when pressing Tab to complete specific Chinese filenames

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Mar 8 23:14:10 AEDT 2023


https://bugzilla.mindrot.org/show_bug.cgi?id=3547

--- Comment #2 from Darren Tucker <dtucker at dtucker.net> ---
I did manage to reproduce this on an ARM SBC running a Debian 10.13
derivative.

$ gdb -q --args /usr/bin/sftp localhost
Reading symbols from /usr/bin/sftp...(no debugging symbols
found)...done.
(gdb) run
[...]
Connected to localhost.
sftp> cd /tmp/t
sftp> ls 啊
啊一啊  啊二啊  
invalid multibyte character
[Inferior 1 (process 26809) exited with code 0377]

So it's not a crash as in segfault, it prints an error then exits.

The system has libedit 3.1-20181209-1.  If I build OpenSSH against a
locally-built libedit-20221030-3.1 it doesn't do this (it doesn't
autocomplete either, but that seems reasonable).  I think you're
looking at a libedit bug.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list