Hi,
Please find the latest report on new defect(s) introduced to coreboot found with Coverity Scan.
2 new defect(s) introduced to coreboot found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan Showing 2 of 2 defect(s)
** CID 1502248: (CHECKED_RETURN) /payloads/libpayload/build/tests/util/cmocka/CMakeFiles/CMakeScratch/TryCompile-F1Mpp0/CheckFunctionExists.c: 17 in main() /build/coverage/util/cmocka/CMakeFiles/CMakeScratch/TryCompile-f4hRas/CheckFunctionExists.c: 17 in main()
________________________________________________________________________________________________________ *** CID 1502248: (CHECKED_RETURN) /payloads/libpayload/build/tests/util/cmocka/CMakeFiles/CMakeScratch/TryCompile-F1Mpp0/CheckFunctionExists.c: 17 in main() 11 int ac; 12 char* av[]; 13 # else 14 int main(int ac, char* av[]) 15 { 16 # endif
CID 1502248: (CHECKED_RETURN) Calling "strcmp" without checking return value (as is done elsewhere 5 out of 6 times).
17 CHECK_FUNCTION_EXISTS(); 18 if (ac > 1000) { 19 return *av[0]; 20 } 21 return 0; 22 } /build/coverage/util/cmocka/CMakeFiles/CMakeScratch/TryCompile-f4hRas/CheckFunctionExists.c: 17 in main() 11 int ac; 12 char* av[]; 13 # else 14 int main(int ac, char* av[]) 15 { 16 # endif
CID 1502248: (CHECKED_RETURN) Calling "strcmp" without checking return value (as is done elsewhere 240 out of 244 times).
17 CHECK_FUNCTION_EXISTS(); 18 if (ac > 1000) { 19 return *av[0]; 20 } 21 return 0; 22 }
** CID 1502247: (PARSE_ERROR) /payloads/libpayload/build/tests/util/cmocka/CMakeFiles/CMakeScratch/TryCompile-4b1HwR/CheckIncludeFile.c: 1 in () /build/coverage/util/cmocka/CMakeFiles/CMakeScratch/TryCompile-4l7sqY/CheckIncludeFile.c: 1 in ()
________________________________________________________________________________________________________ *** CID 1502247: (PARSE_ERROR) /payloads/libpayload/build/tests/util/cmocka/CMakeFiles/CMakeScratch/TryCompile-4b1HwR/CheckIncludeFile.c: 1 in ()
CID 1502247: (PARSE_ERROR) cannot open source file "io.h"
1 #include <io.h> 2 3 #ifdef __CLASSIC_C__ 4 int main() 5 { 6 return 0; /build/coverage/util/cmocka/CMakeFiles/CMakeScratch/TryCompile-4l7sqY/CheckIncludeFile.c: 1 in ()
CID 1502247: (PARSE_ERROR) cannot open source file "io.h"
1 #include <io.h> 2 3 #ifdef __CLASSIC_C__ 4 int main() 5 { 6 return 0;
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...