On Wed, 10 Jun 2026 12:01:10 GMT, Coleen Phillimore <[email protected]> wrote:

>> src/hotspot/os/posix/attachListener_posix.cpp line 354:
>> 
>>> 352:     log_warning(attach)("Failed to attach using temporary file %s", 
>>> fn);
>>> 353:     return;
>>> 354:   }
>> 
>> Is runtime truncation actually possible?
>
> This is wrong. It should check if the return is an error -1, which should be 
> returned if truncated.  I'll add a test.

Actually it does return > UNIX_PATH_MAX if it truncates.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/31407#discussion_r3399257577

Reply via email to