Task #114207 - added.err

back to task #114207
download
Error: COMPILER_WARNING:
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c: scope_hint: In function ‘xiconf_getservice’
openscap-1.4.5/src/OVAL/probes/unix/xinetd_probe.c:1234:53: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 256 bytes into a region of size between 1 and 257
# 1234 |         snprintf(strans_key, sizeof(strans_key), "%s%s", name, prot);
#      |                                                     ^~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 1 and 513 bytes into a destination of size 257
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
# 1232|   		return (NULL);
# 1233|   
# 1234|-> 	snprintf(strans_key, sizeof(strans_key), "%s%s", name, prot);
# 1235|   
# 1236|   	rbt_str_get(xiconf->ttree, strans_key, (void *)&strans);