On Fri, 2 Aug 2024 18:00:28 GMT, Naoto Sato <na...@openjdk.org> wrote:

> The first call to `WideCharToMultiByte()` returns the required size for the 
> multibyte buffer. When it returns 0, `exit(1)` is issued inside 
> `JLI_MemAlloc()`.

That's a bit subtle. I think it needs to be handled here or at least include a 
comment to say that it returns 0 on error which will cause JLI_MemAlloc to exit.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20428#discussion_r1702179487

Reply via email to