Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-338

Possible crash in extractWindowsRootPrefix method

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Labels:
      None
    • Environment:

      Windows

      Description

      extractWindowsRootPrefix method has a possible crash. Found it trying to get special windows working.

      if (startPos == maxlen && name.length() > startPos && name.charAt(startPos + 1) == '/')

      { // Too many '/' throw new FileSystemException("vfs.provider.local/not-absolute-file-name.error", uri); }

      This should be something like so:

      if (startPos == maxlen && name.length() > startPos && name.length() > (startPos + 1) && name.charAt(startPos + 1) == '/')
      { // Too many '/' throw new FileSystemException("vfs.provider.local/not-absolute-file-name.error", uri); }

        Attachments

          Activity

            People

            • Assignee:
              b.eckenfels Bernd Eckenfels
              Reporter:
              zammbi Daniel R
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: