RFR: 8345012: os::build_agent_function_name potentially wastes a byte when allocating the buffer [v3]
David Holmes
dholmes at openjdk.org
Fri Nov 29 01:29:11 UTC 2024
On Thu, 28 Nov 2024 12:36:22 GMT, David Holmes <dholmes at openjdk.org> wrote:
> I think there is a preexisting error in that `name_len` is fed as `size` parameter to `strncat`. Since the buffer is already partly filled at that point, we cannot use the full buffer size but should use the size of the remaining space in the buffer.
@tstuefe `name_len` is the length of the lib-name being concatenated, not the length of the buffer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22404#issuecomment-2506917858
More information about the hotspot-runtime-dev
mailing list