On Tue, 11 Aug 2026 15:27:52 GMT, Tatsunori Uchino <[email protected]> wrote:

>> Yes, that will solve the bug. The same is true for X-Buffer.java.template. 
>> I'd expect a test case for covering the case.
>
> I'm sorry to keep you waiting for so long. I just fixed it just now but I 
> have no idea how/where I should add concrete test strings to 
> test/jdk/java/nio/Buffer/CharBufferAsCharSequenceTest.java.
> 
> I have some ideas to test such an algorithm. I'm tfehe author of 
> https://github.com/open-circle/valibot/issues/888, which is a similar PR for 
> a famous JS validation library.

`X-Buffer.java.template` has been fixed, but the harmful line is still in 
`CharSequence.java`

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26461#discussion_r3762564645

Reply via email to