Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.0.0
Description
`DirectByteBufferOutputStream#close()` calls `StorageUtils.dispose()` to free its direct byte buffer. This puts the object into an unspecified and dangerous state after being closed, and can cause unpredictable JVM crashes if it the object is used after close.
We can make this safer by modifying `close()` to place the object into a known-closed state, and modify all methods to assert not closed.
Attachments
Issue Links
- links to