On 01/09/2020 09:57, David Holmes wrote: > We already build with gcc 9.2 and don't see any issues with shared code > compiling for hotspot - which of these require --enable-asan? It > certainly looks like an unnecessary warning - the whole point of strncpy > is to truncate at a safe length. :(
Yes, exactly. As long as the destination buffer isn't overrun, the code is working as it should. -- 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