You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file included from /usr/include/string.h:630, from cram_io.c:60:
In function ‘full_path’, inlined from ‘cram_write_SAM_hdr’ at cram_io.c:4622:3:
cram_io.c:4564:6: warning: ‘__builtin_strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation]
4564 | strncpy(out, in, PATH_MAX);
when compiling io_lib with gcc 9.1.0. The complaint here is that out is an array of size PATH_MAX, so there is no space for putting an extra 0 in case in actually has PATH_MAX non null symbols. Maybe making sure there is a terminator in all cases would be a good idea (in terms of security).
The text was updated successfully, but these errors were encountered:
I see a few warnings like
when compiling io_lib with gcc 9.1.0. The complaint here is that out is an array of size PATH_MAX, so there is no space for putting an extra 0 in case in actually has PATH_MAX non null symbols. Maybe making sure there is a terminator in all cases would be a good idea (in terms of security).
The text was updated successfully, but these errors were encountered: