RFR (XS): 8199010: attachListener.hpp: Fix potential null termination issue found by coverity scans
Thomas Stüfe
thomas.stuefe at gmail.com
Mon Mar 5 14:52:32 UTC 2018
Hi Christoph,
Seeing that truncation is considered assertion worthy, should we really
hide it in release?
Gruß Thomas
On Mar 5, 2018 10:03, "Langer, Christoph" <christoph.langer at sap.com> wrote:
> Hi,
>
> please review a small fix that was identified by a coverity code scan.
>
> In case strlen(name) was the same or larger than name_length_max or resp.
> strlen(arg) >= arg_length_max, the _name or _arg fields would not get null
> terminated correctly.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8199010
> Webrev: http://cr.openjdk.java.net/~clanger/webrevs/8199010.0/
>
> Thanks
> Christoph
>
>
More information about the hotspot-runtime-dev
mailing list