Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F643683B for ; Tue, 19 Jul 2011 05:30:57 +0000 (UTC) Received: (qmail 65547 invoked by uid 500); 19 Jul 2011 05:30:52 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 65066 invoked by uid 500); 19 Jul 2011 05:30:29 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 65009 invoked by uid 99); 19 Jul 2011 05:30:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2011 05:30:20 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2011 05:30:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2952F431ED for ; Tue, 19 Jul 2011 05:29:58 +0000 (UTC) Date: Tue, 19 Jul 2011 05:29:58 +0000 (UTC) From: "Miroslav Pokorny (JIRA)" To: issues@commons.apache.org Message-ID: <2027707905.2917.1311053398166.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (VFS-356) RamFileRandomAccessContent.seek() allows seeking before file start. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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