Bug 1691 - sftp segfaults when entering just '-'
Summary: sftp segfaults when entering just '-'
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sftp (show other bugs)
Version: 5.3p1
Hardware: ix86 Linux
: P2 normal
Assignee: Assigned to nobody
URL: http://bugs.debian.org/cgi-bin/bugrep...
Keywords:
Depends on:
Blocks: V_5_4
  Show dependency treegraph
 
Reported: 2010-01-05 01:04 AEDT by Colin Watson
Modified: 2010-03-26 10:50 AEDT (History)
1 user (show)

See Also:


Attachments
don't dereference NULL if a command does not follow '-' (697 bytes, patch)
2010-01-05 01:04 AEDT, Colin Watson
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Watson 2010-01-05 01:04:17 AEDT
Created attachment 1764 [details]
don't dereference NULL if a command does not follow '-'

In http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531561, Petri Laakso reported that sftp segfaults when entering just '-'. The attached patch corrects this, and also handles '-' followed by whitespace but nothing else.
Comment 1 Darren Tucker 2010-01-09 22:13:28 AEDT
Patch applied, thanks.  It will be in the 5.4 release.
Comment 2 Darren Tucker 2010-03-26 10:50:58 AEDT
With the release of 5.4p1, this bug is now considered closed.