RFR: 8u: 8076475: Misuses of strncpy/strncat

Andrew Haley aph at redhat.com
Fri Apr 3 13:40:06 UTC 2020


On 4/3/20 10:18 AM, Andrew Haley wrote:
>> In this case, it would lead to a strdup failure being handled
>> differently, depending on where in the code it occurred.
>> The alternative would be to use os::strdup directly and avoid
>> introducing this function. This was how JDK-8155968 already handled
>> this issue.
> That sounds like an excellent idea. I'll prepare a new patch.

http://cr.openjdk.java.net/~aph/8076475-1/

OK?

-- 
Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671



More information about the jdk8u-dev mailing list