You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have found critical defect inside ftplib::FtpXfer function.
The rv variable is signalised to 0 when 'short write' occurs. But the signal is not used in the further code. It means that file written is cut and user is not notified about it.
Anyway, rv variable is only assigned a value that is never used.
I propose following fix at the end of the function:
------------------CURRENT---------------
free(dbuf);
fflush(local);
if (localfile != NULL) fclose(local);
return FtpClose(nData);
}
I have found critical defect inside ftplib::FtpXfer function.
The rv variable is signalised to 0 when 'short write' occurs. But the signal is not used in the further code. It means that file written is cut and user is not notified about it.
Anyway, rv variable is only assigned a value that is never used.
I propose following fix at the end of the function:
------------------CURRENT---------------
-----------------FIXED-----------------------
Any other idea?
The text was updated successfully, but these errors were encountered: