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

RamFileRandomAccessContent.seek() allows seeking before file start.

    XMLWordPrintableJSON

    Details

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

      None.

      Description

      MRAC simply calls RFRAC with no attempt to clip pos which results in filepoitner being set to negative values which are wrong.

      MonitorRandomAccessContent {
      public void seek(long pos) throws IOException

      { content.seek(pos); }

      }

      RamFileRandomAccessContent
      public void seek(long pos) throws IOException

      { this.filePointer = (int) pos; }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mp1 Miroslav Pokorny
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: