SEGV on mget with wildcards with no match

luis fernandes elf at
Mon Aug 19 01:27:49 EST 2002

This is on FreeBSD 4.6-STABLE, doing an mget with wildcard char on a
non-existent file(s) produces a SEGV.

Reproduce the bug as follows (Note: "zqw*" is a pattern that does not

% sftp user at host
  user at host's password:
sftp> mget zqw*

Program received signal SIGSEGV, Segmentation fault.
0x804c5db in process_get (conn=0x80520e0, src=0x80540b0 "zwq*",
    pwd=0x8052100 "/home/faculty/elf", pflag=0)
(gdb) p g.gl_pathv[0]
Error accessing memory address 0x0: Bad address.

More information about the openssh-unix-dev mailing list