Task #952 - orc-0.4.38-2.fc41/scan-results.err
back to task #952download
Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/examples/example1.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/examples/example1.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/examples/example2.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/examples/example2.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/examples/example3.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/examples/example3.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/examples/mt19937ar.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/examples/mt19937ar.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/examples/mt19937ar.c: warning: -Wno-implicit-int detected - is this intentional ? Error: GCC_ANALYZER_WARNING (CWE-688): orc-0.4.38-build/orc-0.4.38/examples/mt19937ar.c: scope_hint: In function ‘orc_random_context_new’ orc-0.4.38-build/orc-0.4.38/examples/mt19937ar.c:157:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘context’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null # 155| OrcRandomContext *context; # 156| context = malloc(sizeof(OrcRandomContext)); # 157|-> memset (context, 0, sizeof(OrcRandomContext)); # 158| context->mti = N+1; # 159| return context; Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/examples/volscale.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/examples/volscale.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c: warning: -Wno-implicit-int detected - is this intentional ? Error: GCC_ANALYZER_WARNING (CWE-688): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c: scope_hint: In function ‘orc_array_new’ orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:50:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ar’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null # 48| # 49| ar = malloc (sizeof(OrcArray)); # 50|-> memset (ar, 0, sizeof(OrcArray)); # 51| # 52| ar->n = n; Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:114: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 112| # 113| static const orc_uint32 special_floats[] = { # 114|-> CREATE_FLOAT(0,0,0), /* 0 */ # 115| CREATE_FLOAT(1,0,0), /* -0 */ # 116| CREATE_FLOAT(0,126,0), /* 0.5 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:115: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 113| static const orc_uint32 special_floats[] = { # 114| CREATE_FLOAT(0,0,0), /* 0 */ # 115|-> CREATE_FLOAT(1,0,0), /* -0 */ # 116| CREATE_FLOAT(0,126,0), /* 0.5 */ # 117| CREATE_FLOAT(0,127,0), /* 1 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:116: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 114| CREATE_FLOAT(0,0,0), /* 0 */ # 115| CREATE_FLOAT(1,0,0), /* -0 */ # 116|-> CREATE_FLOAT(0,126,0), /* 0.5 */ # 117| CREATE_FLOAT(0,127,0), /* 1 */ # 118| CREATE_FLOAT(0,128,0), /* 2 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:117: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 115| CREATE_FLOAT(1,0,0), /* -0 */ # 116| CREATE_FLOAT(0,126,0), /* 0.5 */ # 117|-> CREATE_FLOAT(0,127,0), /* 1 */ # 118| CREATE_FLOAT(0,128,0), /* 2 */ # 119| CREATE_FLOAT(1,126,0), /* -0.5 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:118: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 116| CREATE_FLOAT(0,126,0), /* 0.5 */ # 117| CREATE_FLOAT(0,127,0), /* 1 */ # 118|-> CREATE_FLOAT(0,128,0), /* 2 */ # 119| CREATE_FLOAT(1,126,0), /* -0.5 */ # 120| CREATE_FLOAT(1,127,0), /* -1 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:119: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 117| CREATE_FLOAT(0,127,0), /* 1 */ # 118| CREATE_FLOAT(0,128,0), /* 2 */ # 119|-> CREATE_FLOAT(1,126,0), /* -0.5 */ # 120| CREATE_FLOAT(1,127,0), /* -1 */ # 121| CREATE_FLOAT(1,128,0), /* -2 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:120: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 118| CREATE_FLOAT(0,128,0), /* 2 */ # 119| CREATE_FLOAT(1,126,0), /* -0.5 */ # 120|-> CREATE_FLOAT(1,127,0), /* -1 */ # 121| CREATE_FLOAT(1,128,0), /* -2 */ # 122| CREATE_FLOAT(0,255,0), /* infinity */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:121: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 119| CREATE_FLOAT(1,126,0), /* -0.5 */ # 120| CREATE_FLOAT(1,127,0), /* -1 */ # 121|-> CREATE_FLOAT(1,128,0), /* -2 */ # 122| CREATE_FLOAT(0,255,0), /* infinity */ # 123| CREATE_FLOAT(1,255,0), /* -infinity */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:122: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 120| CREATE_FLOAT(1,127,0), /* -1 */ # 121| CREATE_FLOAT(1,128,0), /* -2 */ # 122|-> CREATE_FLOAT(0,255,0), /* infinity */ # 123| CREATE_FLOAT(1,255,0), /* -infinity */ # 124| CREATE_FLOAT(0,255,1), /* nan */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:123: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 121| CREATE_FLOAT(1,128,0), /* -2 */ # 122| CREATE_FLOAT(0,255,0), /* infinity */ # 123|-> CREATE_FLOAT(1,255,0), /* -infinity */ # 124| CREATE_FLOAT(0,255,1), /* nan */ # 125| CREATE_FLOAT(1,255,1), /* -nan */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:124: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 122| CREATE_FLOAT(0,255,0), /* infinity */ # 123| CREATE_FLOAT(1,255,0), /* -infinity */ # 124|-> CREATE_FLOAT(0,255,1), /* nan */ # 125| CREATE_FLOAT(1,255,1), /* -nan */ # 126| CREATE_FLOAT(0,0,1), /* denormal */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:125: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 123| CREATE_FLOAT(1,255,0), /* -infinity */ # 124| CREATE_FLOAT(0,255,1), /* nan */ # 125|-> CREATE_FLOAT(1,255,1), /* -nan */ # 126| CREATE_FLOAT(0,0,1), /* denormal */ # 127| CREATE_FLOAT(1,0,1), /* -denormal */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:126: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 124| CREATE_FLOAT(0,255,1), /* nan */ # 125| CREATE_FLOAT(1,255,1), /* -nan */ # 126|-> CREATE_FLOAT(0,0,1), /* denormal */ # 127| CREATE_FLOAT(1,0,1), /* -denormal */ # 128| CREATE_FLOAT(0,127+31,0), /* MAX_INT+1 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:127: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 125| CREATE_FLOAT(1,255,1), /* -nan */ # 126| CREATE_FLOAT(0,0,1), /* denormal */ # 127|-> CREATE_FLOAT(1,0,1), /* -denormal */ # 128| CREATE_FLOAT(0,127+31,0), /* MAX_INT+1 */ # 129| CREATE_FLOAT(0,127+30,0x7fffff), /* largest float < MAX_INT */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:128: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 126| CREATE_FLOAT(0,0,1), /* denormal */ # 127| CREATE_FLOAT(1,0,1), /* -denormal */ # 128|-> CREATE_FLOAT(0,127+31,0), /* MAX_INT+1 */ # 129| CREATE_FLOAT(0,127+30,0x7fffff), /* largest float < MAX_INT */ # 130| CREATE_FLOAT(0,127+23,0x7fffff), /* largest non-integer float */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:129: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 127| CREATE_FLOAT(1,0,1), /* -denormal */ # 128| CREATE_FLOAT(0,127+31,0), /* MAX_INT+1 */ # 129|-> CREATE_FLOAT(0,127+30,0x7fffff), /* largest float < MAX_INT */ # 130| CREATE_FLOAT(0,127+23,0x7fffff), /* largest non-integer float */ # 131| CREATE_FLOAT(1,127+31,0), /* MIN_INT */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:130: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 128| CREATE_FLOAT(0,127+31,0), /* MAX_INT+1 */ # 129| CREATE_FLOAT(0,127+30,0x7fffff), /* largest float < MAX_INT */ # 130|-> CREATE_FLOAT(0,127+23,0x7fffff), /* largest non-integer float */ # 131| CREATE_FLOAT(1,127+31,0), /* MIN_INT */ # 132| CREATE_FLOAT(1,127+31,1), /* MIN_INT-1 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:131: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 129| CREATE_FLOAT(0,127+30,0x7fffff), /* largest float < MAX_INT */ # 130| CREATE_FLOAT(0,127+23,0x7fffff), /* largest non-integer float */ # 131|-> CREATE_FLOAT(1,127+31,0), /* MIN_INT */ # 132| CREATE_FLOAT(1,127+31,1), /* MIN_INT-1 */ # 133| CREATE_FLOAT(1,127+30,0x7fffff), /* largest float >= MIN_INT */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:132: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 130| CREATE_FLOAT(0,127+23,0x7fffff), /* largest non-integer float */ # 131| CREATE_FLOAT(1,127+31,0), /* MIN_INT */ # 132|-> CREATE_FLOAT(1,127+31,1), /* MIN_INT-1 */ # 133| CREATE_FLOAT(1,127+30,0x7fffff), /* largest float >= MIN_INT */ # 134| CREATE_FLOAT(1,127+23,0x7fffff), /* (negative) largest non-integer float */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:133: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 131| CREATE_FLOAT(1,127+31,0), /* MIN_INT */ # 132| CREATE_FLOAT(1,127+31,1), /* MIN_INT-1 */ # 133|-> CREATE_FLOAT(1,127+30,0x7fffff), /* largest float >= MIN_INT */ # 134| CREATE_FLOAT(1,127+23,0x7fffff), /* (negative) largest non-integer float */ # 135| CREATE_FLOAT(0,127+14,(32767-16384)<<(23-14)), /* 32767 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:134: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 132| CREATE_FLOAT(1,127+31,1), /* MIN_INT-1 */ # 133| CREATE_FLOAT(1,127+30,0x7fffff), /* largest float >= MIN_INT */ # 134|-> CREATE_FLOAT(1,127+23,0x7fffff), /* (negative) largest non-integer float */ # 135| CREATE_FLOAT(0,127+14,(32767-16384)<<(23-14)), /* 32767 */ # 136| CREATE_FLOAT(0,127+15,(0)<<(23-15)), /* 32768 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:135: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 133| CREATE_FLOAT(1,127+30,0x7fffff), /* largest float >= MIN_INT */ # 134| CREATE_FLOAT(1,127+23,0x7fffff), /* (negative) largest non-integer float */ # 135|-> CREATE_FLOAT(0,127+14,(32767-16384)<<(23-14)), /* 32767 */ # 136| CREATE_FLOAT(0,127+15,(0)<<(23-15)), /* 32768 */ # 137| CREATE_FLOAT(0,127+15,(1)<<(23-15)), /* -32769 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:136: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 134| CREATE_FLOAT(1,127+23,0x7fffff), /* (negative) largest non-integer float */ # 135| CREATE_FLOAT(0,127+14,(32767-16384)<<(23-14)), /* 32767 */ # 136|-> CREATE_FLOAT(0,127+15,(0)<<(23-15)), /* 32768 */ # 137| CREATE_FLOAT(0,127+15,(1)<<(23-15)), /* -32769 */ # 138| CREATE_FLOAT(1,127+14,(32767-16384)<<(23-14)), /* -32767 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:137: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 135| CREATE_FLOAT(0,127+14,(32767-16384)<<(23-14)), /* 32767 */ # 136| CREATE_FLOAT(0,127+15,(0)<<(23-15)), /* 32768 */ # 137|-> CREATE_FLOAT(0,127+15,(1)<<(23-15)), /* -32769 */ # 138| CREATE_FLOAT(1,127+14,(32767-16384)<<(23-14)), /* -32767 */ # 139| CREATE_FLOAT(1,127+15,(0)<<(23-15)), /* -32768 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:138: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 136| CREATE_FLOAT(0,127+15,(0)<<(23-15)), /* 32768 */ # 137| CREATE_FLOAT(0,127+15,(1)<<(23-15)), /* -32769 */ # 138|-> CREATE_FLOAT(1,127+14,(32767-16384)<<(23-14)), /* -32767 */ # 139| CREATE_FLOAT(1,127+15,(0)<<(23-15)), /* -32768 */ # 140| CREATE_FLOAT(1,127+15,(1)<<(23-15)), /* -32769 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:139: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 137| CREATE_FLOAT(0,127+15,(1)<<(23-15)), /* -32769 */ # 138| CREATE_FLOAT(1,127+14,(32767-16384)<<(23-14)), /* -32767 */ # 139|-> CREATE_FLOAT(1,127+15,(0)<<(23-15)), /* -32768 */ # 140| CREATE_FLOAT(1,127+15,(1)<<(23-15)), /* -32769 */ # 141| CREATE_FLOAT(0,127+4,(27-16)<<(23-4)), /* 27 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:140: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 138| CREATE_FLOAT(1,127+14,(32767-16384)<<(23-14)), /* -32767 */ # 139| CREATE_FLOAT(1,127+15,(0)<<(23-15)), /* -32768 */ # 140|-> CREATE_FLOAT(1,127+15,(1)<<(23-15)), /* -32769 */ # 141| CREATE_FLOAT(0,127+4,(27-16)<<(23-4)), /* 27 */ # 142| CREATE_FLOAT(0,127+4,(28-16)<<(23-4)), /* 28 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:141: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 139| CREATE_FLOAT(1,127+15,(0)<<(23-15)), /* -32768 */ # 140| CREATE_FLOAT(1,127+15,(1)<<(23-15)), /* -32769 */ # 141|-> CREATE_FLOAT(0,127+4,(27-16)<<(23-4)), /* 27 */ # 142| CREATE_FLOAT(0,127+4,(28-16)<<(23-4)), /* 28 */ # 143| CREATE_FLOAT(0,127+4,(29-16)<<(23-4)), /* 29 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:142: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 140| CREATE_FLOAT(1,127+15,(1)<<(23-15)), /* -32769 */ # 141| CREATE_FLOAT(0,127+4,(27-16)<<(23-4)), /* 27 */ # 142|-> CREATE_FLOAT(0,127+4,(28-16)<<(23-4)), /* 28 */ # 143| CREATE_FLOAT(0,127+4,(29-16)<<(23-4)), /* 29 */ # 144| CREATE_FLOAT(0,127+4,(30-16)<<(23-4)), /* 30 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:143: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 141| CREATE_FLOAT(0,127+4,(27-16)<<(23-4)), /* 27 */ # 142| CREATE_FLOAT(0,127+4,(28-16)<<(23-4)), /* 28 */ # 143|-> CREATE_FLOAT(0,127+4,(29-16)<<(23-4)), /* 29 */ # 144| CREATE_FLOAT(0,127+4,(30-16)<<(23-4)), /* 30 */ # 145| CREATE_FLOAT(0,127+4,(31-16)<<(23-4)), /* 31 */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:144: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 142| CREATE_FLOAT(0,127+4,(28-16)<<(23-4)), /* 28 */ # 143| CREATE_FLOAT(0,127+4,(29-16)<<(23-4)), /* 29 */ # 144|-> CREATE_FLOAT(0,127+4,(30-16)<<(23-4)), /* 30 */ # 145| CREATE_FLOAT(0,127+4,(31-16)<<(23-4)), /* 31 */ # 146| }; Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc-test/orcarray.c:145: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 143| CREATE_FLOAT(0,127+4,(29-16)<<(23-4)), /* 29 */ # 144| CREATE_FLOAT(0,127+4,(30-16)<<(23-4)), /* 30 */ # 145|-> CREATE_FLOAT(0,127+4,(31-16)<<(23-4)), /* 31 */ # 146| }; # 147| Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc-test/orcprofile.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc-test/orcprofile.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING (CWE-786): orc-0.4.38-build/orc-0.4.38/orc-test/orcprofile.c:159: error[negativeIndex]: Array 'prof->hist_time[10]' accessed at index -1, which is out of bounds. # 157| ave = s / n; # 158| std = sqrt (s2 - s * s / n + n*n) / (n-1); # 159|-> off = (prof->hist_time[max_i] - ave)/std; # 160| # 161| if (off > 4.0) { Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc-test/orcrandom.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc-test/orcrandom.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CLANG_WARNING: orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:136:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 134| # 135| file = fopen (dump_filename, "w"); # 136|-> ret = fwrite(p->orccode->code, p->orccode->code_size, 1, file); # 137| fclose (file); # 138| Error: CLANG_WARNING: orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:259:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 257| # 258| file = fopen (dump_filename, "w"); # 259|-> ret = fwrite(p->orccode->code, p->orccode->code_size, 1, file); # 260| fclose (file); # 261| Error: CLANG_WARNING: orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:354:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 352| # 353| file = fopen (dump_filename, "w"); # 354|-> ret = fwrite(p->orccode->code, p->orccode->code_size, 1, file); # 355| fclose (file); # 356| Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/orc/orc.h:5: included_from: Included from here. orc-0.4.38-build/orc-0.4.38/orc-test/orctest.h:5: included_from: Included from here. orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:30: included_from: Included from here. orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c: scope_hint: In function ‘print_array_val_signed’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:457:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘array’ orc-0.4.38-build/orc-0.4.38/orc/orcutils.h:124:65: note: in definition of macro ‘ORC_PTR_OFFSET’ orc-0.4.38-build/orc-0.4.38/orc/orc.h:7: included_from: Included from here. orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:673:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:679:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc/orcutils.h:124:65: note: in definition of macro ‘ORC_PTR_OFFSET’ # 455| print_array_val_signed (OrcArray *array, int i, int j) # 456| { # 457|-> void *ptr = ORC_PTR_OFFSET (array->data, # 458| i*array->element_size + j*array->stride); # 459| Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c: scope_hint: In function ‘print_array_val_hex’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:536:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘array’ orc-0.4.38-build/orc-0.4.38/orc/orcutils.h:124:65: note: in definition of macro ‘ORC_PTR_OFFSET’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:673:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:679:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc/orcutils.h:124:65: note: in definition of macro ‘ORC_PTR_OFFSET’ # 534| print_array_val_hex (OrcArray *array, int i, int j) # 535| { # 536|-> void *ptr = ORC_PTR_OFFSET (array->data, # 537| i*array->element_size + j*array->stride); # 538| Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c: scope_hint: In function ‘print_array_val_float’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:561:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘array’ orc-0.4.38-build/orc-0.4.38/orc/orcutils.h:124:65: note: in definition of macro ‘ORC_PTR_OFFSET’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:673:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:679:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc/orcutils.h:124:65: note: in definition of macro ‘ORC_PTR_OFFSET’ # 559| print_array_val_float (OrcArray *array, int i, int j) # 560| { # 561|-> void *ptr = ORC_PTR_OFFSET (array->data, # 562| i*array->element_size + j*array->stride); # 563| Error: GCC_ANALYZER_WARNING (CWE-124): orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c: scope_hint: In function ‘orc_test_compare_output_full_for_target’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:753:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:673:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:679:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:753:25: note: valid subscripts for ‘src’ are ‘[0]’ to ‘[7]’ # 751| # 752| if (program->vars[i].vartype == ORC_VAR_TYPE_SRC) { # 753|-> src[i-ORC_VAR_S1] = orc_array_new (n, m, program->vars[i].size, # 754| misalignment, program->vars[i].alignment); # 755| orc_array_set_random (src[i-ORC_VAR_S1], &rand_context); Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:785:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:673:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:679:3: note: in expansion of macro ‘ORC_ASSERT’ # 783| for(i=0;i<ORC_N_VARIABLES;i++){ # 784| if (program->vars[i].vartype == ORC_VAR_TYPE_DEST) { # 785|-> orc_executor_set_array (ex, i, dest_exec[i-ORC_VAR_D1]->data); # 786| orc_executor_set_stride (ex, i, dest_exec[i-ORC_VAR_D1]->stride); # 787| have_dest = TRUE; Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:790:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:673:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:679:3: note: in expansion of macro ‘ORC_ASSERT’ # 788| } # 789| if (program->vars[i].vartype == ORC_VAR_TYPE_SRC) { # 790|-> orc_executor_set_array (ex, i, src[i-ORC_VAR_S1]->data); # 791| orc_executor_set_stride (ex, i, src[i-ORC_VAR_S1]->stride); # 792| } Error: GCC_ANALYZER_WARNING (CWE-127): orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:790:41: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:673:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:679:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:790:41: note: valid subscripts for ‘src’ are ‘[0]’ to ‘[7]’ # └─────────────────────────────────────┘ # ^ # 788| } # 789| if (program->vars[i].vartype == ORC_VAR_TYPE_SRC) { # 790|-> orc_executor_set_array (ex, i, src[i-ORC_VAR_S1]->data); # 791| orc_executor_set_stride (ex, i, src[i-ORC_VAR_S1]->stride); # 792| } Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:811:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:673:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:679:3: note: in expansion of macro ‘ORC_ASSERT’ # 809| for(i=0;i<ORC_N_VARIABLES;i++){ # 810| if (program->vars[i].vartype == ORC_VAR_TYPE_DEST) { # 811|-> orc_executor_set_array (ex, i, dest_emul[i]->data); # 812| orc_executor_set_stride (ex, i, dest_emul[i]->stride); # 813| } Error: GCC_ANALYZER_WARNING (CWE-127): orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:815:40: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read orc-0.4.38-build/orc-0.4.38/orc/orcdebug.h:139:62: note: in definition of macro ‘ORC_DEBUG_PRINT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:815:7: note: in expansion of macro ‘ORC_DEBUG’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:673:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:679:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc/orcdebug.h:139:62: note: in definition of macro ‘ORC_DEBUG_PRINT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:815:7: note: in expansion of macro ‘ORC_DEBUG’ orc-0.4.38-build/orc-0.4.38/orc/orcdebug.h:139:62: note: in definition of macro ‘ORC_DEBUG_PRINT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:815:7: note: in expansion of macro ‘ORC_DEBUG’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:815:40: note: valid subscripts for ‘src’ are ‘[0]’ to ‘[7]’ orc-0.4.38-build/orc-0.4.38/orc/orcdebug.h:139:62: note: in definition of macro ‘ORC_DEBUG_PRINT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:815:7: note: in expansion of macro ‘ORC_DEBUG’ # └─────────────────────────────────────┘ # ^ # 813| } # 814| if (program->vars[i].vartype == ORC_VAR_TYPE_SRC) { # 815|-> ORC_DEBUG("setting array %p", src[i-ORC_VAR_S1]->data); # 816| orc_executor_set_array (ex, i, src[i-ORC_VAR_S1]->data); # 817| orc_executor_set_stride (ex, i, src[i-ORC_VAR_S1]->stride); Error: GCC_ANALYZER_WARNING (CWE-127): orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:925:19: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:673:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:679:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:925:19: note: valid subscripts for ‘src’ are ‘[0]’ to ‘[7]’ # └─────────────────────────────────────┘ # ^ # 923| case ORC_VAR_TYPE_SRC: # 924| if (flags & ORC_TEST_FLAGS_FLOAT) { # 925|-> print_array_val_float (src[k - ORC_VAR_S1], i, j); # 926| } else { # 927| print_array_val_signed (src[k - ORC_VAR_S1], i, j); Error: GCC_ANALYZER_WARNING (CWE-127): orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:927:19: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:673:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:679:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:927:19: note: valid subscripts for ‘src’ are ‘[0]’ to ‘[7]’ # └─────────────────────────────────────┘ # ^ # 925| print_array_val_float (src[k - ORC_VAR_S1], i, j); # 926| } else { # 927|-> print_array_val_signed (src[k - ORC_VAR_S1], i, j); # 928| } # 929| break; Error: GCC_ANALYZER_WARNING (CWE-124): orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c: scope_hint: In function ‘orc_test_performance_full’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:1198:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:1198:25: note: valid subscripts for ‘src’ are ‘[0]’ to ‘[7]’ # 1196| # 1197| if (program->vars[i].vartype == ORC_VAR_TYPE_SRC) { # 1198|-> src[i-ORC_VAR_S1] = orc_array_new (n, m, program->vars[i].size, # 1199| misalignment, program->vars[i].alignment); # 1200| orc_array_set_random (src[i-ORC_VAR_S1], &rand_context); Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:1222:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 1220| for(j=0;j<ORC_N_VARIABLES;j++){ # 1221| if (program->vars[j].vartype == ORC_VAR_TYPE_DEST) { # 1222|-> orc_executor_set_array (ex, j, dest_exec[j-ORC_VAR_D1]->data); # 1223| orc_executor_set_stride (ex, j, dest_exec[j-ORC_VAR_D1]->stride); # 1224| } Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:1226:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ orc-0.4.38-build/orc-0.4.38/orc/orcdebug.h:107:24: note: in expansion of macro ‘ORC_DEBUG_PRINT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:1215:3: note: in expansion of macro ‘ORC_DEBUG’ # 1224| } # 1225| if (program->vars[j].vartype == ORC_VAR_TYPE_SRC) { # 1226|-> orc_executor_set_array (ex, j, src[j-ORC_VAR_S1]->data); # 1227| orc_executor_set_stride (ex, j, src[j-ORC_VAR_S1]->stride); # 1228| } Error: GCC_ANALYZER_WARNING (CWE-127): orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:1226:43: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:1226:43: note: valid subscripts for ‘src’ are ‘[0]’ to ‘[7]’ # └─────────────────────────────────────┘ # ^ # 1224| } # 1225| if (program->vars[j].vartype == ORC_VAR_TYPE_SRC) { # 1226|-> orc_executor_set_array (ex, j, src[j-ORC_VAR_S1]->data); # 1227| orc_executor_set_stride (ex, j, src[j-ORC_VAR_S1]->stride); # 1228| } Error: GCC_ANALYZER_WARNING (CWE-688): orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c: scope_hint: In function ‘orc_test_gcc_compile_mips’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:1301:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&source_filename, "w")’ where non-null expected <built-in>: note: argument 2 of ‘__builtin_fputs’ must be non-null # 1299| # 1300| file = fopen (source_filename, "w"); # 1301|-> fprintf(file, "%s", orc_target_get_preamble (target)); # 1302| fprintf(file, "%s", orc_program_get_asm_code (p)); # 1303| fclose (file); Error: CLANG_WARNING: orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:1306:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 1304| # 1305| file = fopen (dump_filename, "w"); # 1306|-> ret = fwrite(p->orccode->code, p->orccode->code_size, 1, file); # 1307| fclose (file); # 1308| Error: GCC_ANALYZER_WARNING (CWE-688): orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:1306:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&dump_filename, "w")’ where non-null expected orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:38: included_from: Included from here. /usr/include/stdio.h:735:15: note: argument 4 of ‘fwrite’ must be non-null # 1304| # 1305| file = fopen (dump_filename, "w"); # 1306|-> ret = fwrite(p->orccode->code, p->orccode->code_size, 1, file); # 1307| fclose (file); # 1308| Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/generate-bytecode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/generate-bytecode.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/generate-bytecode.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/generate-emulation.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/generate-emulation.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/generate-emulation.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orc.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orc.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcarm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcarm.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcarm.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc/orcarm.c:245: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 243| x = -1; # 244| for(i=31;i>=0;i--){ # 245|-> if (regs & (1<<i)) { # 246| if (x != -1) { # 247| if (tmp_loads == 1) break; Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc/orcarm.c:1091: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1089| snprintf (opt_rm, ARM64_MAX_OP_LEN, ", #%u", imm); # 1090| # 1091|-> code = arm64_code_arith_imm (bits, opcode, shift, imm, Rn, Rd); # 1092| break; # 1093| case ORC_ARM64_TYPE_REG: /** shifted register */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc/orcarm.c:1114: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1112| snprintf (opt_rm, ARM64_MAX_OP_LEN, ", %s", orc_arm64_reg_name (Rm, bits)); # 1113| # 1114|-> code = arm64_code_arith_reg (bits, opcode, shift, Rm, imm, Rn, Rd); # 1115| break; # 1116| case ORC_ARM64_TYPE_EXT: /** extended register */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc/orcarm.c:1138: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1136| snprintf (opt_rm, ARM64_MAX_OP_LEN, ", %s", orc_arm64_reg_name (Rm, bits)); # 1137| # 1138|-> code = arm64_code_arith_ext(bits, opcode, Rm, extend, imm, Rn, Rd); # 1139| break; # 1140| default: Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc/orcarm.c:1345: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1343| snprintf (opt_rm, ARM64_MAX_OP_LEN, ", #0x%08x", (orc_uint32) val); # 1344| # 1345|-> code = arm64_code_logical_imm (bits, opcode, imm, Rn, Rd); # 1346| break; # 1347| case ORC_ARM64_TYPE_REG: /** shifted register */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc/orcarm.c:1368: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1366| snprintf (opt_rm, ARM64_MAX_OP_LEN, ", %s", orc_arm64_reg_name (Rm, bits)); # 1367| # 1368|-> code = arm64_code_logical_reg (bits, opcode, shift, Rm, imm, Rn, Rd); # 1369| break; # 1370| default: Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc/orcarm.c:1444: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1442| hw /= 16; # 1443| imm = val; # 1444|-> code = arm64_code_mov_wide(bits, mov_op, hw, imm, Rd); # 1445| # 1446| ORC_ASM_CODE(p, " %s %s, #%u%s\n", Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc/orcarm.c:1483: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1481| } # 1482| # 1483|-> code = arm64_code_shift(bits, Rm, shift, Rn, Rd); # 1484| # 1485| ORC_ASM_CODE(p, " %s %s, %s, %s\n", Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc/orcarm.c:1627: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1625| opcode -= ORC_ARM64_DP_SBFM; # 1626| # 1627|-> code = arm64_code_bfm(bits, opcode, immr, imms, Rn, Rd); # 1628| # 1629| if (alias != -1) { Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc/orcarm.c:1665: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1663| orc_uint32 code; # 1664| # 1665|-> code = arm64_code_extr (bits, Rm, imm, Rn, Rd); # 1666| # 1667| if (Rn == Rm) { /** ROR (imm) */ Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc/orcarm.c:1946: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 1944| } # 1945| # 1946|-> code = arm64_code_mem_pair (bits, opt, opcode, imm, Rt2, Rn, Rt); # 1947| # 1948| ORC_ASM_CODE(p, " %s %s, %s%s\n", Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcavx.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcavx.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcbytecode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcbytecode.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcbytecode.c: warning: -Wno-implicit-int detected - is this intentional ? Error: GCC_ANALYZER_WARNING (CWE-401): orc-0.4.38-build/orc-0.4.38/orc/orcbytecode.c: scope_hint: In function ‘bytecode_append_byte’ orc-0.4.38-build/orc-0.4.38/orc/orcbytecode.c:191:24: warning[-Wanalyzer-malloc-leak]: leak of ‘*bytecode.bytecode’ # 189| if (bytecode->length >= bytecode->alloc_len) { # 190| bytecode->alloc_len += 256; # 191|-> bytecode->bytecode = realloc (bytecode->bytecode, bytecode->alloc_len); # 192| } # 193| bytecode->bytecode[bytecode->length] = byte; Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/orc/orcbytecode.c: scope_hint: In function ‘orc_bytecode_parse_get_string’ orc-0.4.38-build/orc-0.4.38/orc/orcbytecode.c:340:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘s’ orc-0.4.38-build/orc-0.4.38/orc/orcbytecode.c: scope_hint: In function ‘orc_bytecode_parse_get_string’ # 338| s = malloc (len + 1); # 339| for(i=0;i<len;i++){ # 340|-> s[i] = orc_bytecode_parse_get_byte (parse); # 341| } # 342| s[i] = 0; Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/orc/orcbytecode.c:342:8: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘s’ # 340| s[i] = orc_bytecode_parse_get_byte (parse); # 341| } # 342|-> s[i] = 0; # 343| # 344| return s; Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orccode.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orccode.c: warning: -Wno-implicit-int detected - is this intentional ? Error: GCC_ANALYZER_WARNING (CWE-688): orc-0.4.38-build/orc-0.4.38/orc/orccode.c: scope_hint: In function ‘orc_code_new’ orc-0.4.38-build/orc-0.4.38/orc/orccode.c:18:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘code’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null # 16| OrcCode *code; # 17| code = malloc(sizeof(OrcCode)); # 18|-> memset (code, 0, sizeof(OrcCode)); # 19| return code; # 20| } Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orccodemem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orccodemem.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orccodemem.c: warning: -Wno-implicit-int detected - is this intentional ? Error: GCC_ANALYZER_WARNING (CWE-688): orc-0.4.38-build/orc-0.4.38/orc/orccodemem.c: scope_hint: In function ‘orc_code_region_new’ orc-0.4.38-build/orc-0.4.38/orc/orccodemem.c:75:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘region’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null # 73| # 74| region = malloc(sizeof(OrcCodeRegion)); # 75|-> memset (region, 0, sizeof(OrcCodeRegion)); # 76| # 77| orc_code_region_allocate_codemem (region); Error: GCC_ANALYZER_WARNING (CWE-688): orc-0.4.38-build/orc-0.4.38/orc/orccodemem.c:80:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘chunk’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null # 78| # 79| chunk = malloc(sizeof(OrcCodeChunk)); # 80|-> memset (chunk, 0, sizeof(OrcCodeChunk)); # 81| # 82| chunk->offset = 0; Error: CPPCHECK_WARNING (CWE-401): orc-0.4.38-build/orc-0.4.38/orc/orccodemem.c:146: error[memleakOnRealloc]: Common realloc mistake: 'orc_code_regions' nulled but not freed upon failure # 144| } # 145| # 146|-> orc_code_regions = realloc (orc_code_regions, # 147| sizeof(void *)*(orc_code_n_regions+1)); # 148| if (!orc_code_regions) Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orccompiler.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orccompiler.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orccompiler.c: warning: -Wno-implicit-int detected - is this intentional ? Error: GCC_ANALYZER_WARNING (CWE-688): orc-0.4.38-build/orc-0.4.38/orc/orccompiler.c: scope_hint: In function ‘orc_compiler_dup_temporary’ orc-0.4.38-build/orc-0.4.38/orc/orccompiler.c:1124:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(strlen(*compiler.vars[var].name) + 10)’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_sprintf’ must be non-null # 1122| compiler->vars[i].size = compiler->vars[var].size; # 1123| compiler->vars[i].name = malloc (strlen(compiler->vars[var].name) + 10); # 1124|-> sprintf(compiler->vars[i].name, "%s.dup%d", compiler->vars[var].name, j); # 1125| compiler->n_dup_vars++; # 1126| Error: GCC_ANALYZER_WARNING (CWE-688): orc-0.4.38-build/orc-0.4.38/orc/orccompiler.c: scope_hint: In function ‘orc_compiler_new_temporary’ orc-0.4.38-build/orc-0.4.38/orc/orccompiler.c:1138:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(10)’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_sprintf’ must be non-null # 1136| compiler->vars[i].size = size; # 1137| compiler->vars[i].name = malloc (10); # 1138|-> sprintf(compiler->vars[i].name, "tmp%d", i); # 1139| compiler->n_dup_vars++; # 1140| Error: GCC_ANALYZER_WARNING (CWE-688): orc-0.4.38-build/orc-0.4.38/orc/orccompiler.c: scope_hint: In function ‘orc_compiler_error_valist’ orc-0.4.38-build/orc-0.4.38/orc/orccompiler.c:1357:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘s’ where non-null expected orc-0.4.38-build/orc-0.4.38/orc/orccompiler.c:4: included_from: Included from here. /usr/include/stdio.h:380:12: note: argument 1 of ‘vsprintf’ must be non-null # 1355| # 1356| s = malloc (ORC_COMPILER_ERROR_BUFFER_SIZE); # 1357|-> vsprintf (s, fmt, args); # 1358| compiler->error_msg = s; # 1359| compiler->error = TRUE; Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orccpu-x86.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orccpu-x86.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orccpu-x86.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcdebug.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcdebug.c: warning: -Wno-implicit-int detected - is this intentional ? Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/orc/orcdebug.h:139:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ orc-0.4.38-build/orc-0.4.38/orc/orcdebug.h:107:24: note: in expansion of macro ‘ORC_DEBUG_PRINT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:815:7: note: in expansion of macro ‘ORC_DEBUG’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:673:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:679:3: note: in expansion of macro ‘ORC_ASSERT’ orc-0.4.38-build/orc-0.4.38/orc/orcdebug.h:139:62: note: in definition of macro ‘ORC_DEBUG_PRINT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:815:7: note: in expansion of macro ‘ORC_DEBUG’ orc-0.4.38-build/orc-0.4.38/orc/orcdebug.h:107:24: note: in expansion of macro ‘ORC_DEBUG_PRINT’ orc-0.4.38-build/orc-0.4.38/orc-test/orctest.c:815:7: note: in expansion of macro ‘ORC_DEBUG’ # 137| */ # 138| #define ORC_DEBUG_PRINT(level, ...) do { \ # 139|-> orc_debug_print((level), __FILE__, ORC_FUNCTION, __LINE__, __VA_ARGS__); \ # 140| }while(0) # 141| Error: GCC_ANALYZER_WARNING (CWE-457): orc-0.4.38-build/orc-0.4.38/orc/orcdebug.h:139:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>.src_ptrs[1]’ orc-0.4.38-build/orc-0.4.38/orc/orcdebug.h:107:24: note: in expansion of macro ‘ORC_DEBUG_PRINT’ orc-0.4.38-build/orc-0.4.38/orc/orcexecutor.c:339:5: note: in expansion of macro ‘ORC_DEBUG’ orc-0.4.38-build/orc-0.4.38/orc/orcdebug.h:107:24: note: in expansion of macro ‘ORC_DEBUG_PRINT’ orc-0.4.38-build/orc-0.4.38/orc/orcexecutor.c:339:5: note: in expansion of macro ‘ORC_DEBUG’ orc-0.4.38-build/orc-0.4.38/orc/orcdebug.h:107:24: note: in expansion of macro ‘ORC_DEBUG_PRINT’ orc-0.4.38-build/orc-0.4.38/orc/orcexecutor.c:339:5: note: in expansion of macro ‘ORC_DEBUG’ # 137| */ # 138| #define ORC_DEBUG_PRINT(level, ...) do { \ # 139|-> orc_debug_print((level), __FILE__, ORC_FUNCTION, __LINE__, __VA_ARGS__); \ # 140| }while(0) # 141| Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcemulateopcodes.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcemulateopcodes.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcexecutor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcexecutor.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcexecutor.c: warning: -Wno-implicit-int detected - is this intentional ? Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/orc/orcexecutor.c:212:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ orc-0.4.38-build/orc-0.4.38/orc/orcexecutor.c: scope_hint: In function ‘orc_executor_emulate’ # 210| orc_int64 *d = data; # 211| for(l=0;l<CHUNK_SIZE;l++) { # 212|-> d[l] = value; # 213| } # 214| } Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/orc/orcexecutor.c: scope_hint: In function ‘orc_executor_emulate’ orc-0.4.38-build/orc-0.4.38/orc/orcexecutor.c:276:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc((long unsigned int)*code.n_insns * 88)’ # 274| opcode = insn->opcode; # 275| # 276|-> opcode_ex[j].emulateN = opcode->emulateN; # 277| opcode_ex[j].shift = 0; # 278| if (insn->flags & ORC_INSTRUCTION_FLAG_X2) { Error: GCC_ANALYZER_WARNING (CWE-401): orc-0.4.38-build/orc-0.4.38/orc/orcexecutor.c: scope_hint: In function ‘orc_executor_emulate’ orc-0.4.38-build/orc-0.4.38/orc/orcexecutor.c:393:1: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ orc-0.4.38-build/orc-0.4.38/orc/orcexecutor.c:9: included_from: Included from here. orc-0.4.38-build/orc-0.4.38/orc/orcdebug.h:107:24: note: in expansion of macro ‘ORC_DEBUG_PRINT’ orc-0.4.38-build/orc-0.4.38/orc/orcexecutor.c:344:3: note: in expansion of macro ‘ORC_DEBUG’ # 391| if (tmpspace[i]) free (tmpspace[i]); # 392| } # 393|-> } # 394| # 395| Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcfunctions.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcfunctions.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcmips.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcmips.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcmmx.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcmmx.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orconce.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orconce.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcopcodes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcopcodes.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcopcodes.c: warning: -Wno-implicit-int detected - is this intentional ? Error: GCC_ANALYZER_WARNING (CWE-688): orc-0.4.38-build/orc-0.4.38/orc/orcopcodes.c: scope_hint: In function ‘orc_rule_set_new’ orc-0.4.38-build/orc-0.4.38/orc/orcopcodes.c:187:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc((long unsigned int)*opcode_set.n_opcodes * 16)’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null # 185| # 186| rule_set->rules = malloc (sizeof(OrcRule) * opcode_set->n_opcodes); # 187|-> memset (rule_set->rules, 0, sizeof(OrcRule) * opcode_set->n_opcodes); # 188| # 189| return rule_set; Error: CPPCHECK_WARNING (CWE-401): orc-0.4.38-build/orc-0.4.38/orc/orcopcodes.c:233: error[memleakOnRealloc]: Common realloc mistake: 'opcode_sets' nulled but not freed upon failure # 231| # 232| n_opcode_sets++; # 233|-> opcode_sets = realloc (opcode_sets, sizeof(OrcOpcodeSet)*n_opcode_sets); # 234| # 235| memset (opcode_sets + major, 0, sizeof(OrcOpcodeSet)); Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcparse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcparse.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcparse.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING (CWE-401): orc-0.4.38-build/orc-0.4.38/orc/orcparse.c:365: error[memleakOnRealloc]: Common realloc mistake: '_log' nulled but not freed upon failure # 363| if (len + n >= size) { # 364| size += MAX (n, 256); # 365|-> _log = realloc(_log, size); # 366| } # 367| len += sprintf (_log + len, "%s @ %i: error: %s\n", errors[i]->source, errors[i]->line_number, errors[i]->text); Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcpowerpc.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcpowerpc.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-altivec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-altivec.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-altivec.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-avx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-avx.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-avx.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CLANG_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-avx.c:811:3: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined # 809| do_swap (int *tab, int i, int j) # 810| { # 811|-> int tmp = tab[i]; # 812| tab[i] = tab[j]; # 813| tab[j] = tmp; Error: CLANG_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-avx.c:812:10: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined # 810| { # 811| int tmp = tab[i]; # 812|-> tab[i] = tab[j]; # 813| tab[j] = tmp; # 814| } Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/orc/orcprogram-avx.c: scope_hint: In function ‘get_optimised_instruction_order’ orc-0.4.38-build/orc-0.4.38/orc/orcprogram-avx.c:917:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘instruction_idx’ # 915| int *const instruction_idx = malloc (compiler->n_insns * sizeof(int)); # 916| for (int i=0; i<compiler->n_insns; i++) # 917|-> instruction_idx[i] = i; # 918| # 919| optimise_order (compiler, instruction_idx); Error: CLANG_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-avx.c:1172:28: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value due to array index out of bounds # 1170| # 1171| for (j = 0; j < compiler->n_insns; j++) { # 1172|-> insn = compiler->insns + insn_idx[j]; # 1173| opcode = insn->opcode; # 1174| Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-c.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-c.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-c.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-c64x-c.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-c64x-c.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-c64x-c.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-mips.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-mips.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-mips.c: warning: -Wno-implicit-int detected - is this intentional ? Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/orc/orcprogram-mips.c: scope_hint: In function ‘get_optimised_instruction_order’ orc-0.4.38-build/orc-0.4.38/orc/orcprogram-mips.c:420:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘instruction_idx’ # 418| instruction_idx = malloc (compiler->n_insns * sizeof(int)); # 419| for (i=0; i<compiler->n_insns; i++) # 420|-> instruction_idx[i] = i; # 421| # 422| optimise_order (compiler, instruction_idx); Error: CLANG_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-mips.c:455:30: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value # 453| compiler->unroll_index = j; # 454| for (i=0; i<compiler->n_insns; i++) { # 455|-> insn = compiler->insns + insn_idx[i]; # 456| opcode = insn->opcode; # 457| if (insn->flags & ORC_INSN_FLAG_INVARIANT) continue; Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-mmx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-mmx.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-mmx.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-neon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-neon.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-neon.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-sse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-sse.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram-sse.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram.c: warning: -Wno-implicit-int detected - is this intentional ? Error: GCC_ANALYZER_WARNING (CWE-688): orc-0.4.38-build/orc-0.4.38/orc/orcprogram.c: scope_hint: In function ‘orc_program_new’ orc-0.4.38-build/orc-0.4.38/orc/orcprogram.c:38:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘p’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null # 36| # 37| p = malloc(sizeof(OrcProgram)); # 38|-> memset (p, 0, sizeof(OrcProgram)); # 39| # 40| p->name = malloc (40); Error: GCC_ANALYZER_WARNING (CWE-688): orc-0.4.38-build/orc-0.4.38/orc/orcprogram.c:41:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(40)’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_sprintf’ must be non-null # 39| # 40| p->name = malloc (40); # 41|-> sprintf(p->name, "func_%p", p); # 42| # 43| return p; Error: GCC_ANALYZER_WARNING (CWE-688): orc-0.4.38-build/orc-0.4.38/orc/orcprogram.c: scope_hint: In function ‘orc_program_dup_temporary’ orc-0.4.38-build/orc-0.4.38/orc/orcprogram.c:366:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(strlen(*program.vars[var].name) + 10)’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_sprintf’ must be non-null # 364| program->vars[i].size = program->vars[var].size; # 365| program->vars[i].name = malloc (strlen(program->vars[var].name) + 10); # 366|-> sprintf(program->vars[i].name, "%s.dup%d", program->vars[var].name, j); # 367| program->n_temp_vars++; # 368| Error: CLANG_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram.c:1038:24: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined # 1036| insn->dest_args[0] = args[i++]; # 1037| if (insn->opcode->dest_size[1] != 0) # 1038|-> insn->dest_args[1] = args[i++]; # 1039| if (insn->opcode->src_size[0] != 0) # 1040| insn->src_args[0] = args[i++]; Error: CLANG_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram.c:1040:23: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined # 1038| insn->dest_args[1] = args[i++]; # 1039| if (insn->opcode->src_size[0] != 0) # 1040|-> insn->src_args[0] = args[i++]; # 1041| if (insn->opcode->src_size[1] != 0) # 1042| insn->src_args[1] = args[i++]; Error: CLANG_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram.c:1042:23: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined # 1040| insn->src_args[0] = args[i++]; # 1041| if (insn->opcode->src_size[1] != 0) # 1042|-> insn->src_args[1] = args[i++]; # 1043| if (insn->opcode->src_size[2] != 0) # 1044| insn->src_args[2] = args[i++]; Error: CLANG_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram.c:1044:23: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined # 1042| insn->src_args[1] = args[i++]; # 1043| if (insn->opcode->src_size[2] != 0) # 1044|-> insn->src_args[2] = args[i++]; # 1045| if (insn->opcode->src_size[3] != 0) # 1046| insn->src_args[3] = args[i++]; Error: CLANG_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcprogram.c:1046:23: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined # 1044| insn->src_args[2] = args[i++]; # 1045| if (insn->opcode->src_size[3] != 0) # 1046|-> insn->src_args[3] = args[i++]; # 1047| # 1048| program->n_insns++; Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrule.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrule.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrules-altivec.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrules-altivec.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrules-avx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrules-avx.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrules-avx.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrules-mips.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrules-mips.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrules-mmx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrules-mmx.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrules-mmx.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CLANG_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrules-mmx.c:3462:3: warning[deadcode.DeadStores]: Value stored to 'rule_set' is never read # 3460| # 3461| /* SSE 4.1 */ # 3462|-> rule_set = orc_rule_set_new (orc_opcode_set_get("sys"), target, # 3463| ORC_TARGET_MMX_SSE4_1); # 3464| Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrules-neon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrules-neon.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrules-neon.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrules-sse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrules-sse.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcrules-sse.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcsse.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcsse.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/orc/orctarget.h:18: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 16| ORC_TARGET_CLEAN_COMPILE = (1<<29), # 17| ORC_TARGET_FAST_NAN = (1<<30), # 18|-> ORC_TARGET_FAST_DENORMAL = (1<<31) # 19| }; # 20| Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcutils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcutils.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcutils.c: warning: -Wno-implicit-int detected - is this intentional ? Error: GCC_ANALYZER_WARNING (CWE-401): orc-0.4.38-build/orc-0.4.38/orc/orcutils.c: scope_hint: In function ‘_strndup’ orc-0.4.38-build/orc-0.4.38/orc/orcutils.c:84:16: warning[-Wanalyzer-malloc-leak]: leak of ‘_strndup(colon, (int)(end - colon))’ # 82| { # 83| char *r; # 84|-> r = malloc (n+1); # 85| memcpy(r,s,n); # 86| r[n]=0; Error: GCC_ANALYZER_WARNING (CWE-401): orc-0.4.38-build/orc-0.4.38/orc/orcutils.c:84:16: warning[-Wanalyzer-malloc-leak]: leak of ‘_strndup(s, (int)(s - s))’ # 82| { # 83| char *r; # 84|-> r = malloc (n+1); # 85| memcpy(r,s,n); # 86| r[n]=0; Error: GCC_ANALYZER_WARNING (CWE-688): orc-0.4.38-build/orc-0.4.38/orc/orcutils.c:85:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘r’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 83| char *r; # 84| r = malloc (n+1); # 85|-> memcpy(r,s,n); # 86| r[n]=0; # 87| Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/orc/orcutils.c: scope_hint: In function ‘strsplit’ orc-0.4.38-build/orc-0.4.38/orc/orcutils.c:105:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘list’ # 103| while (*s && *s != delimiter) s++; # 104| # 105|-> list[n] = _strndup (tok, s - tok); # 106| while (*s && *s == delimiter) s++; # 107| list = realloc (list, (n + 2) * sizeof(char *)); Error: CPPCHECK_WARNING (CWE-401): orc-0.4.38-build/orc-0.4.38/orc/orcutils.c:107: error[memleakOnRealloc]: Common realloc mistake: 'list' nulled but not freed upon failure # 105| list[n] = _strndup (tok, s - tok); # 106| while (*s && *s == delimiter) s++; # 107|-> list = realloc (list, (n + 2) * sizeof(char *)); # 108| n++; # 109| } Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/orc/orcutils.c:111:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘list’ # 109| } # 110| # 111|-> list[n] = NULL; # 112| return list; # 113| } Error: GCC_ANALYZER_WARNING (CWE-401): orc-0.4.38-build/orc-0.4.38/orc/orcutils.c:112:10: warning[-Wanalyzer-malloc-leak]: leak of ‘list’ # 110| # 111| list[n] = NULL; # 112|-> return list; # 113| } # 114| Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcx86.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcx86.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcx86insn.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/orc/orcx86insn.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/redhat-linux-build/examples/example1orc.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/redhat-linux-build/examples/example1orc.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/redhat-linux-build/examples/example2orc.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/redhat-linux-build/examples/example2orc.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/redhat-linux-build/examples/example3orc.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/redhat-linux-build/examples/example3orc.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/redhat-linux-build/examples/mt19937arorc.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/redhat-linux-build/examples/mt19937arorc.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/redhat-linux-build/testsuite/orcc/orc_test.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/redhat-linux-build/testsuite/orcc/orc_test.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/redhat-linux-build/testsuite/orcc/testorc.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/redhat-linux-build/testsuite/orcc/testorc.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/abi.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/abi.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/benchmorc/atomics.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/benchmorc/atomics.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/benchmorc/benchmorc.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/benchmorc/benchmorc.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/compile_opcodes_sys_c64x.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/compile_opcodes_sys_c64x.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/compile_opcodes_sys_mips.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/compile_opcodes_sys_mips.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/compile_opcodes_sys_neon.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/compile_opcodes_sys_neon.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/compile_parse_neon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/compile_parse_neon.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/compile_parse_neon.c: warning: -Wno-implicit-int detected - is this intentional ? Error: GCC_ANALYZER_WARNING (CWE-401): orc-0.4.38-build/orc-0.4.38/testsuite/compile_parse_neon.c: scope_hint: In function ‘main’ orc-0.4.38-build/orc-0.4.38/testsuite/compile_parse_neon.c:80:27: warning[-Wanalyzer-malloc-leak]: leak of ‘read_file(filename)’ # 78| if (ret < 0) goto bail; # 79| # 80|-> contents = malloc (size + 1); # 81| if (contents == NULL) goto bail; # 82| Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/exec_opcodes_sys.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/exec_opcodes_sys.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/exec_opcodes_sys.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/exec_parse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/exec_parse.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/exec_parse.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/generate_xml_table.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/generate_xml_table.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/generate_xml_table2.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/generate_xml_table2.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/memcpy_speed.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/memcpy_speed.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/memcpy_speed.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/orcc/test2.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/orcc/test2.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/orcc/test3.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/orcc/test3.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/perf_opcodes_sys.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/perf_opcodes_sys.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/perf_parse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/perf_parse.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/perf_parse.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/test-limits.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/test-limits.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/test-schro.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/test-schro.c: warning: -Wno-implicit-int detected - is this intentional ? Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/testsuite/test-schro.c: scope_hint: In function ‘test_program’ orc-0.4.38-build/orc-0.4.38/testsuite/test-schro.c:229:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 227| # 228| if (ret == ORC_TEST_INDETERMINATE) { # 229|-> printf (" %24s: compiled function: COMPILE FAILED (%s)\n", p->name, # 230| p->error_msg); # 231| passed_tests++; Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/testsuite/test-schro.c:234:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 232| } else if (!ret) { # 233| error = TRUE; # 234|-> printf (" %24s: compiled function: FAILED\n", p->name); # 235| } else { # 236| printf (" %24s: compiled function: PASSED\n", p->name); Error: GCC_ANALYZER_WARNING (CWE-476): orc-0.4.38-build/orc-0.4.38/testsuite/test-schro.c:236:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 234| printf (" %24s: compiled function: FAILED\n", p->name); # 235| } else { # 236|-> printf (" %24s: compiled function: PASSED\n", p->name); # 237| passed_tests++; # 238| } Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/test_accsadubl.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/test_accsadubl.c: warning: -Wno-implicit-int detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/test_parse.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/testsuite/test_parse.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/tools/orc-bugreport.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/tools/orc-bugreport.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/tools/orc-bugreport.c: warning: -Wno-implicit-int detected - is this intentional ? Error: CPPCHECK_WARNING (CWE-758): orc-0.4.38-build/orc-0.4.38/tools/orc-bugreport.c:87: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 85| printf("Compiler options: "); # 86| for(i=0;i<32;i++){ # 87|-> if (flags & (1<<i)) { # 88| printf("%s ", orc_target_get_flag_name (orc_target_get_default(), i)); # 89| } Error: GCC_ANALYZER_WARNING (CWE-401): orc-0.4.38-build/orc-0.4.38/tools/orc-bugreport.c: scope_hint: In function ‘main’ orc-0.4.38-build/orc-0.4.38/tools/orc-bugreport.c:150:27: warning[-Wanalyzer-malloc-leak]: leak of ‘read_file(filename)’ # 148| if (ret < 0) goto bail; # 149| # 150|-> contents = malloc (size + 1); # 151| if (contents == NULL) goto bail; # 152| Error: CPPCHECK_WARNING: orc-0.4.38-build/orc-0.4.38/tools/orcc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/tools/orcc.c: warning: -Wno-implicit-function-declaration detected - is this intentional ? Error: COMPILER_WARNING: orc-0.4.38-build/orc-0.4.38/tools/orcc.c: warning: -Wno-implicit-int detected - is this intentional ?