Another gcc 9 string op warning appeared in the tree in util_shm.c:

In file included from /usr/include/string.h:633,
                 from prov/util/src/util_shm.c:38:
prov/util/src/util_shm.c: In function 'smr_create':
prov/util/src/util_shm.c:88:2: warning: '__builtin_strncpy' specified bound 255 
equals destination size [-Wstringop-truncation]
   88 |  strncpy(ep_name->name, (char *)attr->name, NAME_MAX);
      |  ^~~~~~~

How hard would it be to add a gcc-9 compile test to catch these?

John Byrne

_______________________________________________
ofiwg mailing list
[email protected]
https://lists.openfabrics.org/mailman/listinfo/ofiwg

Reply via email to