Task #118952 - fixed.err
back to task #118952download
Error: COMPILER_WARNING: ima-evm-utils-1.6.2/src/evmctl.c: scope_hint: In function ‘read_one_bank’ ima-evm-utils-1.6.2/src/evmctl.c:2014:39: warning[-Wformat-overflow=]: ‘%2.2d’ directive writing between 2 and 11 bytes into a region of size 4 # 2014 | sprintf(pcr_str, "PCR-%2.2d", i); # | ^~~~~ ima-evm-utils-1.6.2/src/evmctl.c:2014:34: note: directive argument in the range [-2147483648, 23] # 2014 | sprintf(pcr_str, "PCR-%2.2d", i); # | ^~~~~~~~~~~ /usr/include/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 7 and 16 bytes into a destination of size 8 # 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 31 | __glibc_objsize (__s), __fmt, # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 32 | __va_arg_pack ()); # | ~~~~~~~~~~~~~~~~~ # 2012| if (!p || i >= NUM_PCRS) # 2013| break; # 2014|-> sprintf(pcr_str, "PCR-%2.2d", i); # 2015| if (!strncmp(p, pcr_str, 6)) # 2016| hex2bin(tpm_bank->pcr[i++], p + 7, tpm_bank->digest_size);