RFR: 8357466: Create test for Ciphers that are using ByteBuffers backed by MemorySegments [v2]

Weijun Wang weijun at openjdk.org
Fri Sep 5 13:36:12 UTC 2025


On Tue, 2 Sep 2025 12:38:57 GMT, Matthew Donovan <mdonovan at openjdk.org> wrote:

>> This PR extends security tests to use ByteBuffers backed by MemorySegments. Tests in the areas of Signature, Cipher, MessageDigest, and Mac are updated.
>
> Matthew Donovan has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains three commits:
> 
>  - addressed PR comments and refactored to use try-with-resources
>  - Merge branch 'master' into cipher-ffm
>  - 8357466: Create test for Ciphers that are using ByteBuffers backed by MemorySegments

There is a recent bug fix at https://github.com/openjdk/jdk/pull/27081 when a slice of an array-based buffer is used. Can you investigate why it has not been caught by this test? Should it be enhanced? Thanks.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/26967#issuecomment-3258377065


More information about the security-dev mailing list