Opened 12 years ago

Last modified 12 years ago

#1210 closed Bug report

Crash when creating too long filename

Reported by: ville Owned by:
Priority: normal Component: FileZilla Client
Keywords: Cc: ville, Tim Kosse
Component version: Operating system type:
Operating system version:

Description

FileZilla client 2.2.29 crashes when it tries to create on the client side a file whose path+filename is over the Windows filename length limit (which seems to be 256 characters excluding C:\ or similar in the beginning of the path).

The following log is from downloading files test56789012.txt and test567890123.txt to client directory C:\testdir01\testdir02\testdir03\testdir04\testdir05\testdir06\testdir07\testdir08\testdir09\testdir10\testdir11\testdir12\testdir13\testdir14\testdir15\testdir16\testdir17\testdir18\testdir19\testdir20\testdir21\testdir22\testdir23\testdir24
The first file succeeds (having path+filename only 256 characters long), but the second one fails (its path+filename being 257 characters long).

Status: Starting download of /test56789012.txt
Command: TYPE A
Trace: FtpControlSocket.cpp(823): OnReceive(0) OpMode=24 OpState=13 caller=0x003f95b4
Response: 200 Type set to A
Trace: FtpControlSocket.cpp(2004): FileTransfer(0, FALSE, 0) OpMode=24 OpState=13 caller=0x003f95b4
Command: PASV
Trace: FtpControlSocket.cpp(823): OnReceive(0) OpMode=24 OpState=17 caller=0x003f95b4
Response: 227 Entering Passive Mode (217,78,32,197,224,216).
Trace: FtpControlSocket.cpp(2004): FileTransfer(0, FALSE, 0) OpMode=24 OpState=17 caller=0x003f95b4
Command: RETR test56789012.txt
Trace: TransferSocket.cpp(446): OnConnect(0) caller=0x01107ccc
Trace: FtpControlSocket.cpp(823): OnReceive(0) OpMode=24 OpState=18 caller=0x003f95b4
Response: 150 Opening ASCII mode data connection for test56789012.txt (746 bytes)
Trace: FtpControlSocket.cpp(2004): FileTransfer(0, FALSE, 0) OpMode=24 OpState=18 caller=0x003f95b4
Trace: TransferSocket.cpp(558): SetActive() caller=0x01107ccc
Trace: TransferSocket.cpp(446): OnConnect(0) caller=0x01107ccc
Trace: TransferSocket.cpp(518): OnClose(0) caller=0x01107ccc
Trace: TransferSocket.cpp(1125): Close() caller=0x01107ccc
Trace: TransferSocket.cpp(1125): Close() caller=0x01107ccc
Trace: FtpControlSocket.cpp(1969): TransferEnd(24) OpMode=24 OpState=19 caller=0x003f95b4
Trace: FtpControlSocket.cpp(2004): FileTransfer(0, TRUE, 0) OpMode=24 OpState=19 caller=0x003f95b4
Trace: TransferSocket.cpp(96): ~CTransferSocket() caller=0x01107ccc
Trace: TransferSocket.cpp(1125): Close() caller=0x01107ccc
Trace: FtpControlSocket.cpp(823): OnReceive(0) OpMode=24 OpState=19 caller=0x003f95b4
Response: 226 Transfer complete.
Trace: FtpControlSocket.cpp(2004): FileTransfer(0, FALSE, 0) OpMode=24 OpState=19 caller=0x003f95b4
Trace: FtpControlSocket.cpp(3988): ResetOperation(1) OpMode=24 OpState=19 caller=0x003f95b4
Status: Download successful
Trace: FtpControlSocket.cpp(2004): FileTransfer(17852120, FALSE, 0) OpMode=0 OpState=-1 caller=0x003f95b4
Status: Starting download of /test567890123.txt

Change History (1)

comment:1 Changed 12 years ago by Tim Kosse

Thanks, will be fixed in the next version.

Note: See TracTickets for help on using tickets.