RFR: 8348323: Corrupted timezone string in JVM crash log

Amit Kumar amitkumar at openjdk.org
Fri Jan 24 07:52:50 UTC 2025


On Thu, 23 Jan 2025 01:10:05 GMT, Dhamoder Nalla <dhanalla at openjdk.org> wrote:

> Add a error check to "wcstombs" otherwise the "buf" prints junk or corrupted string.
> 
> Test performed: 
> 1. "jcmd < jvm pid > VM.info" for different JVM versions

If `wcstombs` fails, it will return `-1` of `size_t` type. So change looks correct.

I guess you should update copyright header year also.

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

Marked as reviewed by amitkumar (Committer).

PR Review: https://git.openjdk.org/jdk/pull/23246#pullrequestreview-2571929347
PR Comment: https://git.openjdk.org/jdk/pull/23246#issuecomment-2611877948


More information about the hotspot-runtime-dev mailing list