commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miroslav Pokorny (JIRA)" <j...@apache.org>
Subject [jira] [Created] (VFS-356) RamFileRandomAccessContent.seek() allows seeking before file start.
Date Tue, 19 Jul 2011 05:29:58 GMT
RamFileRandomAccessContent.seek() allows seeking before file start.
-------------------------------------------------------------------

                 Key: VFS-356
                 URL: https://issues.apache.org/jira/browse/VFS-356
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: 1.0
         Environment: None.
            Reporter: Miroslav Pokorny


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;
    }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message