Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-57

SCPCommand erroneously assumes file lenghts fit in integers.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.3.0
    • None

    Description

      They don't. Any file larger than 2 GB will fail when SCP command tries to write it.

      Simple fix in writeFile, replace parseInt with parseLong

      long length = Long.parseLong(header.substring(6, header.indexOf(' ', 6)));

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            lagergren Marcus Lagergren
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: