hg: jdk7/tl/jdk: 6934977: (bf) MappedByteBuffer.load can SIGBUS if file is truncated; ...

alan.bateman at oracle.com alan.bateman at oracle.com
Thu Jul 29 06:33:59 PDT 2010


Changeset: 24741c4bf300
Author:    alanb
Date:      2010-07-29 13:08 +0100
URL:       http://hg.openjdk.java.net/jdk7/tl/jdk/rev/24741c4bf300

6934977: (bf) MappedByteBuffer.load can SIGBUS if file is truncated
6799037: (fs) MappedByteBuffer.load crash with unaligned file-mapping (sol)
Reviewed-by: chegar, forax

! src/share/classes/java/nio/Bits.java
! src/share/classes/java/nio/MappedByteBuffer.java
! src/solaris/native/java/nio/MappedByteBuffer.c
! src/windows/native/java/nio/MappedByteBuffer.c
! test/java/nio/MappedByteBuffer/Basic.java
+ test/java/nio/MappedByteBuffer/Truncate.java




More information about the security-dev mailing list