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

RamFileRandomAccessContent.seek() allows seeking before file start.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 2.1
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: