[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug #1190] java.io.RandomAccessFile.skipBytes() seeks past EOF
From: |
nobody |
Subject: |
[Bug #1190] java.io.RandomAccessFile.skipBytes() seeks past EOF |
Date: |
Thu, 12 Sep 2002 12:16:03 -0400 |
=================== BUG #1190: FULL BUG SNAPSHOT ===================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=1190&group_id=85
Submitted by: crawley Project: classpath
Submitted on: 2002-Sep-12 16:16
Severity: 5 - Major Resolution: None
Assigned to: None Status: Open
Platform Version: Red Hat 7.x
Summary: java.io.RandomAccessFile.skipBytes() seeks past EOF
Original Submission: The Sun javadocs imply that skipBytes() should not skip
past the EOF of a file, and that's the way that JDK 1.4
behaves. But the Classpath version will seek of into
the distance.
This bug is exercised by Mauve testcase
gnu.testlet.java.io.RandomAccessFile.raf.java
which goes into an infinite loop.
The bug is in the native code. The lseek(2) syscall
can seek beyond the EOF position on Linux. A 3rd lseek
call is needed to test for this, and a 4th to correct it.
No Followups Have Been Posted
CC list is empty
No files currently attached
For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=1190&group_id=85
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug #1190] java.io.RandomAccessFile.skipBytes() seeks past EOF,
nobody <=