commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Eckenfels (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (VFS-356) RamFileRandomAccessContent.seek() allows seeking before file start.
Date Thu, 11 Dec 2014 16:12:13 GMT

     [ https://issues.apache.org/jira/browse/VFS-356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bernd Eckenfels reopened VFS-356:
---------------------------------

Will keep it in "Resolved" state till 2.1 is shipped.

> 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
>             Fix For: 2.1
>
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message