diff options
author | Anthony Green <green@redhat.com> | 2005-04-03 08:08:59 +0000 |
---|---|---|
committer | Anthony Green <green@gcc.gnu.org> | 2005-04-03 08:08:59 +0000 |
commit | 2be74e4108a753c5b5117e4de6b6bbe2c8f01b36 (patch) | |
tree | 2a1e4ca65c3adeaaf6f6d3a7c4c959577bc04c02 | |
parent | 00f07d96bdb702f5c6020d1f447d7572dc1aa452 (diff) | |
download | gcc-2be74e4108a753c5b5117e4de6b6bbe2c8f01b36.zip gcc-2be74e4108a753c5b5117e4de6b6bbe2c8f01b36.tar.gz gcc-2be74e4108a753c5b5117e4de6b6bbe2c8f01b36.tar.bz2 |
re PR libgcj/20727 (double free or corruption)
2005-04-02 Anthony Green <green@redhat.com>
PR libgcj/20727
* java/nio/DirectByteBufferImpl.java: Fix buffer ownership bug.
From-SVN: r97479
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/java/nio/DirectByteBufferImpl.java | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 291f254..4a88ac6 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2005-04-02 Anthony Green <green@redhat.com> + + PR libgcj/20727 + * java/nio/DirectByteBufferImpl.java: Fix buffer ownership bug. + 2005-04-02 Mark Wielaard <mark@klomp.org> * javax/naming/directory/BasicAttributes.java (equals): Compare to any diff --git a/libjava/java/nio/DirectByteBufferImpl.java b/libjava/java/nio/DirectByteBufferImpl.java index 8327938..a0599c7 100644 --- a/libjava/java/nio/DirectByteBufferImpl.java +++ b/libjava/java/nio/DirectByteBufferImpl.java @@ -117,7 +117,7 @@ abstract class DirectByteBufferImpl extends ByteBuffer DirectByteBufferImpl(RawData address, int capacity) { super(capacity, capacity, 0, -1); - this.owner = this; + this.owner = null; this.address = address; } |