Description
If a zero-length file is sent/received via SCP then we run the risk of using a zero-length copy buffer size - in which case, the copy loop may run forever. This can also happen if using SCP to copy special files - e.g., /proc/mounts, /dev/xxx which seemingly have zero size, but if opened and read do have content.