RFR: 8325002: Exceptions::fthrow needs to ensure it truncates to a valid utf8 string [v2]

David Holmes dholmes at openjdk.org
Mon Jul 29 09:56:33 UTC 2024


On Sat, 27 Jul 2024 12:15:50 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Keep in mind that 0xed a few lines above could have matched the first byte and not the fourth one.
>
> So ... the first three bytes of a six byte sequence can be indistinguishable from a three byte sequence! How does that work???

github seems to have swallowed my comment so at the risk of repeating it ...

Thanks for the off-list discussion @djelinski , I now understand what you meant. The code and comments are updated.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20345#discussion_r1694938900


More information about the hotspot-dev mailing list