orc-0.4.41-1.fc43

List of Findings

Error: CPPCHECK_WARNING (CWE-476): [#def1]
orc-0.4.41/examples/mt19937ar.c:157: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: context
#  155|     OrcRandomContext *context;
#  156|     context = malloc(sizeof(OrcRandomContext));
#  157|->   memset (context, 0, sizeof(OrcRandomContext));
#  158|     context->mti = N+1;
#  159|     return context;

Error: CPPCHECK_WARNING (CWE-476): [#def2]
orc-0.4.41/examples/mt19937ar.c:158: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: context
#  156|     context = malloc(sizeof(OrcRandomContext));
#  157|     memset (context, 0, sizeof(OrcRandomContext));
#  158|->   context->mti = N+1;
#  159|     return context;
#  160|   }

Error: CPPCHECK_WARNING (CWE-476): [#def3]
orc-0.4.41/orc-test/orcarray.c:50: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ar
#   48|   
#   49|     ar = malloc (sizeof(OrcArray));
#   50|->   memset (ar, 0, sizeof(OrcArray));
#   51|   
#   52|     ar->n = n;

Error: CPPCHECK_WARNING (CWE-476): [#def4]
orc-0.4.41/orc-test/orcarray.c:52: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ar
#   50|     memset (ar, 0, sizeof(OrcArray));
#   51|   
#   52|->   ar->n = n;
#   53|     ar->m = m;
#   54|     ar->element_size = element_size;

Error: CPPCHECK_WARNING (CWE-476): [#def5]
orc-0.4.41/orc-test/orcarray.c:53: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ar
#   51|   
#   52|     ar->n = n;
#   53|->   ar->m = m;
#   54|     ar->element_size = element_size;
#   55|   

Error: CPPCHECK_WARNING (CWE-476): [#def6]
orc-0.4.41/orc-test/orcarray.c:54: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ar
#   52|     ar->n = n;
#   53|     ar->m = m;
#   54|->   ar->element_size = element_size;
#   55|   
#   56|     ar->stride = (n*element_size + EXTEND_STRIDE);

Error: CPPCHECK_WARNING (CWE-476): [#def7]
orc-0.4.41/orc-test/orcarray.c:56: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ar
#   54|     ar->element_size = element_size;
#   55|   
#   56|->   ar->stride = (n*element_size + EXTEND_STRIDE);
#   57|     ar->stride = (ar->stride + (ALIGNMENT-1)) & (~(ALIGNMENT-1));
#   58|     ar->alloc_len = ar->stride * (m+2*EXTEND_ROWS) + (ALIGNMENT * element_size);

Error: CPPCHECK_WARNING (CWE-476): [#def8]
orc-0.4.41/orc-test/orcarray.c:57: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ar
#   55|   
#   56|     ar->stride = (n*element_size + EXTEND_STRIDE);
#   57|->   ar->stride = (ar->stride + (ALIGNMENT-1)) & (~(ALIGNMENT-1));
#   58|     ar->alloc_len = ar->stride * (m+2*EXTEND_ROWS) + (ALIGNMENT * element_size);
#   59|     ar->alloc_len = (ar->alloc_len + 4095) & (~4095);

Error: CPPCHECK_WARNING (CWE-476): [#def9]
orc-0.4.41/orc-test/orcarray.c:58: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ar
#   56|     ar->stride = (n*element_size + EXTEND_STRIDE);
#   57|     ar->stride = (ar->stride + (ALIGNMENT-1)) & (~(ALIGNMENT-1));
#   58|->   ar->alloc_len = ar->stride * (m+2*EXTEND_ROWS) + (ALIGNMENT * element_size);
#   59|     ar->alloc_len = (ar->alloc_len + 4095) & (~4095);
#   60|   

Error: CPPCHECK_WARNING (CWE-476): [#def10]
orc-0.4.41/orc-test/orcarray.c:59: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ar
#   57|     ar->stride = (ar->stride + (ALIGNMENT-1)) & (~(ALIGNMENT-1));
#   58|     ar->alloc_len = ar->stride * (m+2*EXTEND_ROWS) + (ALIGNMENT * element_size);
#   59|->   ar->alloc_len = (ar->alloc_len + 4095) & (~4095);
#   60|   
#   61|   #ifdef USE_MMAP

Error: CPPCHECK_WARNING (CWE-476): [#def11]
orc-0.4.41/orc-test/orcarray.c:69: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ar
#   67|   #else
#   68|   #ifdef HAVE_POSIX_MEMALIGN
#   69|->   ret = posix_memalign (&data, ALIGNMENT, ar->alloc_len);
#   70|     ORC_ASSERT (ret == 0);
#   71|     ar->alloc_data = data;

Error: CPPCHECK_WARNING (CWE-758): [#def12]
orc-0.4.41/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): [#def13]
orc-0.4.41/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): [#def14]
orc-0.4.41/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): [#def15]
orc-0.4.41/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): [#def16]
orc-0.4.41/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): [#def17]
orc-0.4.41/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): [#def18]
orc-0.4.41/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): [#def19]
orc-0.4.41/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): [#def20]
orc-0.4.41/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): [#def21]
orc-0.4.41/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): [#def22]
orc-0.4.41/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): [#def23]
orc-0.4.41/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): [#def24]
orc-0.4.41/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): [#def25]
orc-0.4.41/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): [#def26]
orc-0.4.41/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): [#def27]
orc-0.4.41/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): [#def28]
orc-0.4.41/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): [#def29]
orc-0.4.41/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): [#def30]
orc-0.4.41/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): [#def31]
orc-0.4.41/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): [#def32]
orc-0.4.41/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): [#def33]
orc-0.4.41/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): [#def34]
orc-0.4.41/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): [#def35]
orc-0.4.41/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): [#def36]
orc-0.4.41/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): [#def37]
orc-0.4.41/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): [#def38]
orc-0.4.41/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): [#def39]
orc-0.4.41/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): [#def40]
orc-0.4.41/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): [#def41]
orc-0.4.41/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): [#def42]
orc-0.4.41/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): [#def43]
orc-0.4.41/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: CPPCHECK_WARNING (CWE-786): [#def44]
orc-0.4.41/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: CPPCHECK_WARNING (CWE-476): [#def45]
orc-0.4.41/orc-test/orctest.c:132: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
#  130|   
#  131|     file = fopen (source_filename, "w");
#  132|->   fprintf(file, "%s", orc_program_get_asm_code (p));
#  133|     fclose (file);
#  134|   

Error: CPPCHECK_WARNING (CWE-476): [#def46]
orc-0.4.41/orc-test/orctest.c:133: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
#  131|     file = fopen (source_filename, "w");
#  132|     fprintf(file, "%s", orc_program_get_asm_code (p));
#  133|->   fclose (file);
#  134|   
#  135|     file = fopen (dump_filename, "w");

Error: CPPCHECK_WARNING (CWE-476): [#def47]
orc-0.4.41/orc-test/orctest.c:136: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
#  134|   
#  135|     file = fopen (dump_filename, "w");
#  136|->   ret = fwrite(p->orccode->code, p->orccode->code_size, 1, file);
#  137|     fclose (file);
#  138|   

Error: CPPCHECK_WARNING (CWE-476): [#def48]
orc-0.4.41/orc-test/orctest.c:137: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
#  135|     file = fopen (dump_filename, "w");
#  136|     ret = fwrite(p->orccode->code, p->orccode->code_size, 1, file);
#  137|->   fclose (file);
#  138|   
#  139|   #if defined(HAVE_POWERPC)

Error: CPPCHECK_WARNING (CWE-476): [#def49]
orc-0.4.41/orc-test/orctest.c:255: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
#  253|   
#  254|     file = fopen (source_filename, "w");
#  255|->   fprintf(file, "%s", orc_program_get_asm_code (p));
#  256|     fclose (file);
#  257|   

Error: CPPCHECK_WARNING (CWE-476): [#def50]
orc-0.4.41/orc-test/orctest.c:256: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
#  254|     file = fopen (source_filename, "w");
#  255|     fprintf(file, "%s", orc_program_get_asm_code (p));
#  256|->   fclose (file);
#  257|   
#  258|     file = fopen (dump_filename, "w");

Error: CPPCHECK_WARNING (CWE-476): [#def51]
orc-0.4.41/orc-test/orctest.c:259: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
#  257|   
#  258|     file = fopen (dump_filename, "w");
#  259|->   ret = fwrite(p->orccode->code, p->orccode->code_size, 1, file);
#  260|     fclose (file);
#  261|   

Error: CPPCHECK_WARNING (CWE-476): [#def52]
orc-0.4.41/orc-test/orctest.c:260: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
#  258|     file = fopen (dump_filename, "w");
#  259|     ret = fwrite(p->orccode->code, p->orccode->code_size, 1, file);
#  260|->   fclose (file);
#  261|   
#  262|     sprintf (cmd, PREFIX "gcc -march=armv6t2 -mcpu=cortex-a8 -mfpu=neon -Wall "

Error: CPPCHECK_WARNING (CWE-476): [#def53]
orc-0.4.41/orc-test/orctest.c:349: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
#  347|   
#  348|     file = fopen (source_filename, "w");
#  349|->   fprintf(file, "%s", orc_target_get_preamble (target));
#  350|     fprintf(file, "%s", orc_program_get_asm_code (p));
#  351|     fclose (file);

Error: CPPCHECK_WARNING (CWE-476): [#def54]
orc-0.4.41/orc-test/orctest.c:350: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
#  348|     file = fopen (source_filename, "w");
#  349|     fprintf(file, "%s", orc_target_get_preamble (target));
#  350|->   fprintf(file, "%s", orc_program_get_asm_code (p));
#  351|     fclose (file);
#  352|   

Error: CPPCHECK_WARNING (CWE-476): [#def55]
orc-0.4.41/orc-test/orctest.c:351: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
#  349|     fprintf(file, "%s", orc_target_get_preamble (target));
#  350|     fprintf(file, "%s", orc_program_get_asm_code (p));
#  351|->   fclose (file);
#  352|   
#  353|     file = fopen (dump_filename, "w");

Error: CPPCHECK_WARNING (CWE-476): [#def56]
orc-0.4.41/orc-test/orctest.c:354: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
#  352|   
#  353|     file = fopen (dump_filename, "w");
#  354|->   ret = fwrite(p->orccode->code, p->orccode->code_size, 1, file);
#  355|     fclose (file);
#  356|   

Error: CPPCHECK_WARNING (CWE-476): [#def57]
orc-0.4.41/orc-test/orctest.c:355: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
#  353|     file = fopen (dump_filename, "w");
#  354|     ret = fwrite(p->orccode->code, p->orccode->code_size, 1, file);
#  355|->   fclose (file);
#  356|   
#  357|     sprintf (cmd, C64X_PREFIX "cl6x -mv=6400+ "

Error: CPPCHECK_WARNING (CWE-476): [#def58]
orc-0.4.41/orc-test/orctest.c:1301: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
# 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: CPPCHECK_WARNING (CWE-476): [#def59]
orc-0.4.41/orc-test/orctest.c:1302: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
# 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);
# 1304|   

Error: CPPCHECK_WARNING (CWE-476): [#def60]
orc-0.4.41/orc-test/orctest.c:1303: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
# 1301|     fprintf(file, "%s", orc_target_get_preamble (target));
# 1302|     fprintf(file, "%s", orc_program_get_asm_code (p));
# 1303|->   fclose (file);
# 1304|   
# 1305|     file = fopen (dump_filename, "w");

Error: CPPCHECK_WARNING (CWE-476): [#def61]
orc-0.4.41/orc-test/orctest.c:1306: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
# 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 (CWE-476): [#def62]
orc-0.4.41/orc-test/orctest.c:1307: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
# 1305|     file = fopen (dump_filename, "w");
# 1306|     ret = fwrite(p->orccode->code, p->orccode->code_size, 1, file);
# 1307|->   fclose (file);
# 1308|   
# 1309|     sprintf (cmd, MIPS_PREFIX "gcc -mips32r2 -mdspr2 -Wall "

Error: CPPCHECK_WARNING (CWE-758): [#def63]
orc-0.4.41/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): [#def64]
orc-0.4.41/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): [#def65]
orc-0.4.41/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): [#def66]
orc-0.4.41/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): [#def67]
orc-0.4.41/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): [#def68]
orc-0.4.41/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): [#def69]
orc-0.4.41/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): [#def70]
orc-0.4.41/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): [#def71]
orc-0.4.41/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): [#def72]
orc-0.4.41/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): [#def73]
orc-0.4.41/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: CPPCHECK_WARNING (CWE-401): [#def74]
orc-0.4.41/orc/orccodemem.c:165: error[memleakOnRealloc]: Common realloc mistake: 'orc_code_regions' nulled but not freed upon failure
#  163|       return NULL;
#  164|   
#  165|->   orc_code_regions = realloc (orc_code_regions,
#  166|         sizeof(void *)*(orc_code_n_regions+1));
#  167|     if (!orc_code_regions) {

Error: CPPCHECK_WARNING (CWE-758): [#def75]
orc-0.4.41/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: GCC_ANALYZER_WARNING (CWE-688): [#def76]
orc-0.4.41/redhat-linux-build/../examples/mt19937ar.c:157:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘context’ where non-null expected
orc-0.4.41/redhat-linux-build/../examples/mt19937ar.c:156:13: acquire_memory: this call could return NULL
orc-0.4.41/redhat-linux-build/../examples/mt19937ar.c:157:3: danger: argument 1 (‘context’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#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: GCC_ANALYZER_WARNING (CWE-688): [#def77]
orc-0.4.41/redhat-linux-build/../orc-test/orcarray.c:50:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ar’ where non-null expected
orc-0.4.41/redhat-linux-build/../orc-test/orcarray.c:49:8: acquire_memory: this call could return NULL
orc-0.4.41/redhat-linux-build/../orc-test/orcarray.c:50:3: danger: argument 1 (‘ar’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#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: GCC_ANALYZER_WARNING (CWE-476): [#def78]
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:457:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘array’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:686:1: enter_function: entry to ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:715:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: call_function: calling ‘dump_program’ from ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: return_function: returning to ‘orc_test_compare_output_full_for_target’ from ‘dump_program’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:728:6: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:734:8: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:750:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:783:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:789:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:802:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:803:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:802:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:809:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:810:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:810:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:814:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:821:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:822:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:827:20: branch_true: following ‘true’ branch (when ‘k != 4’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:828:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:827:20: branch_false: following ‘false’ branch (when ‘k == 4’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:840:6: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:840:6: branch_true: following ‘true’ branch (when ‘bad != 0’)...
 branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:842:13: branch_true: following ‘true’ branch (when ‘m > j’)...
 branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:843:15: branch_true: following ‘true’ branch (when ‘n > i’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:848:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:850:26: branch_true: following ‘true’ branch (when ‘l != 12’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:851:19: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:853:16: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:856:43: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:856:15: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:856:15: call_function: calling ‘print_array_val_signed’ from ‘orc_test_compare_output_full_for_target’
#  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): [#def79]
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:536:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘array’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:686:1: enter_function: entry to ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:715:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: call_function: calling ‘dump_program’ from ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: return_function: returning to ‘orc_test_compare_output_full_for_target’ from ‘dump_program’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:728:6: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:734:8: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:736:6: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:737:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:737:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:740:16: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:750:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:783:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:789:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:802:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:803:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:802:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:809:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:810:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:810:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:814:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:821:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:822:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:827:20: branch_true: following ‘true’ branch (when ‘k != 4’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:828:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:827:20: branch_false: following ‘false’ branch (when ‘k == 4’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:840:6: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:840:6: branch_true: following ‘true’ branch (when ‘bad != 0’)...
 branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:842:13: branch_true: following ‘true’ branch (when ‘m > j’)...
 branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:843:15: branch_true: following ‘true’ branch (when ‘n > i’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:848:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:850:26: branch_true: following ‘true’ branch (when ‘l != 12’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:851:19: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:850:26: branch_false: following ‘false’ branch (when ‘l == 12’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:881:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:882:26: branch_true: following ‘true’ branch (when ‘l != 4’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:883:15: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:883:14: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:884:17: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:884:16: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:892:19: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:892:19: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:892:19: call_function: calling ‘print_array_val_hex’ from ‘orc_test_compare_output_full_for_target’
#  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): [#def80]
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:561:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘array’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:686:1: enter_function: entry to ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:715:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: call_function: calling ‘dump_program’ from ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: return_function: returning to ‘orc_test_compare_output_full_for_target’ from ‘dump_program’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:728:6: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:734:8: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:750:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:783:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:789:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:802:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:803:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:802:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:809:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:810:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:810:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:814:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:821:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:822:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:827:20: branch_true: following ‘true’ branch (when ‘k != 4’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:828:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:827:20: branch_false: following ‘false’ branch (when ‘k == 4’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:840:6: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:840:6: branch_true: following ‘true’ branch (when ‘bad != 0’)...
 branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:842:13: branch_true: following ‘true’ branch (when ‘m > j’)...
 branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:843:15: branch_true: following ‘true’ branch (when ‘n > i’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:848:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:850:26: branch_true: following ‘true’ branch (when ‘l != 12’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:851:19: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:853:16: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:854:42: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:854:15: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:854:15: call_function: calling ‘print_array_val_float’ from ‘orc_test_compare_output_full_for_target’
#  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): [#def81]
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:753:7: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:686:1: enter_function: entry to ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:715:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: call_function: calling ‘dump_program’ from ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: return_function: returning to ‘orc_test_compare_output_full_for_target’ from ‘dump_program’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:728:6: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:734:8: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:750:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:750:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:752:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:752:8: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:753:27: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:753:7: danger: out-of-bounds write from byte -32 till byte -25 but ‘src’ starts at byte 0
#  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): [#def82]
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:785:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:686:1: enter_function: entry to ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:715:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: call_function: calling ‘dump_program’ from ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: return_function: returning to ‘orc_test_compare_output_full_for_target’ from ‘dump_program’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:728:6: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:734:8: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:750:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:783:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:8: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:785:38: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:785:38: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:785:7: danger: dereference of NULL ‘dest_exec[i]’
#  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): [#def83]
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:790:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:686:1: enter_function: entry to ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:715:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: call_function: calling ‘dump_program’ from ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: return_function: returning to ‘orc_test_compare_output_full_for_target’ from ‘dump_program’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:728:6: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:734:8: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:750:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:783:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:789:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:783:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:790:38: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:790:7: danger: dereference of NULL ‘src[<unknown>]’
#  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): [#def84]
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:790:38: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:686:1: enter_function: entry to ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:715:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: call_function: calling ‘dump_program’ from ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: return_function: returning to ‘orc_test_compare_output_full_for_target’ from ‘dump_program’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:728:6: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:734:8: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:750:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:783:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:789:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:789:8: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:790:42: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:790:38: danger: out-of-bounds read from byte -32 till byte -25 but ‘src’ starts at byte 0
#  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): [#def85]
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:811:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:686:1: enter_function: entry to ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:715:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: call_function: calling ‘dump_program’ from ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: return_function: returning to ‘orc_test_compare_output_full_for_target’ from ‘dump_program’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:728:6: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:734:8: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:750:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:783:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:789:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:802:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:803:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:802:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:809:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:810:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:810:8: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:811:38: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:811:38: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:811:7: danger: dereference of NULL ‘dest_emul[i]’
#  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-476): [#def86]
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:815:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:686:1: enter_function: entry to ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:691:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:692:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:715:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: call_function: calling ‘dump_program’ from ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: return_function: returning to ‘orc_test_compare_output_full_for_target’ from ‘dump_program’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:728:6: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:734:8: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:750:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:783:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:789:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:802:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:803:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:802:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:809:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:810:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:810:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:814:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:809:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:810:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:815:7: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:815:7: danger: dereference of NULL ‘src[<unknown>]’
#  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): [#def87]
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:815:7: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:686:1: enter_function: entry to ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:715:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: call_function: calling ‘dump_program’ from ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: return_function: returning to ‘orc_test_compare_output_full_for_target’ from ‘dump_program’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:728:6: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:734:8: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:750:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:783:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:789:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:802:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:803:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:802:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:809:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:810:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:810:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:814:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:814:8: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:815:7: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:815:7: danger: out-of-bounds read from byte -32 till byte -25 but ‘src’ starts at byte 0
#  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): [#def88]
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:925:19: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:686:1: enter_function: entry to ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:715:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: call_function: calling ‘dump_program’ from ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: return_function: returning to ‘orc_test_compare_output_full_for_target’ from ‘dump_program’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:728:6: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:734:8: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:750:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:783:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:789:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:802:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:803:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:802:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:809:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:810:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:810:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:814:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:821:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:822:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:827:20: branch_true: following ‘true’ branch (when ‘k != 4’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:828:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:827:20: branch_false: following ‘false’ branch (when ‘k == 4’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:840:6: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:914:6: branch_true: following ‘true’ branch (when ‘have_acc != 0’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:915:8: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:915:8: branch_true: following ‘true’ branch (when ‘acc_exec != acc_emul’)...
 branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:916:15: branch_true: following ‘true’ branch (when ‘m > j’)...
 branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:917:17: branch_true: following ‘true’ branch (when ‘n > i’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:919:11: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:921:19: branch_true: following ‘true’ branch (when ‘k != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:922:21: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:924:20: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:925:46: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:925:19: danger: out-of-bounds read from byte -32 till byte -25 but ‘src’ starts at byte 0
#  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): [#def89]
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:927:19: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:686:1: enter_function: entry to ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:715:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:719:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: call_function: calling ‘dump_program’ from ‘orc_test_compare_output_full_for_target’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:725:5: return_function: returning to ‘orc_test_compare_output_full_for_target’ from ‘dump_program’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:728:6: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:734:8: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:750:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:749:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:783:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:784:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:789:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:802:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:803:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:802:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
 branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:809:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:810:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:810:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:814:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:821:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:822:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:827:20: branch_true: following ‘true’ branch (when ‘k != 4’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:828:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:827:20: branch_false: following ‘false’ branch (when ‘k == 4’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:840:6: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:914:6: branch_true: following ‘true’ branch (when ‘have_acc != 0’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:915:8: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:915:8: branch_true: following ‘true’ branch (when ‘acc_exec != acc_emul’)...
 branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:916:15: branch_true: following ‘true’ branch (when ‘m > j’)...
 branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:917:17: branch_true: following ‘true’ branch (when ‘n > i’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:919:11: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:921:19: branch_true: following ‘true’ branch (when ‘k != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:922:21: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:924:20: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:927:47: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:927:19: danger: out-of-bounds read from byte -32 till byte -25 but ‘src’ starts at byte 0
#  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): [#def90]
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1198:7: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1194:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1195:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1195:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1197:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1197:8: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1198:27: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1198:7: danger: out-of-bounds write from byte -32 till byte -25 but ‘src’ starts at byte 0
# 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): [#def91]
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1222:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1143:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1143:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1143:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1143:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1144:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1144:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1144:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1144:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1194:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1195:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1217:11: branch_true: following ‘true’ branch (when ‘i != 10’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1218:5: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1220:13: branch_true: following ‘true’ branch (when ‘j != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1221:11: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1221:10: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1222:40: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1222:40: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1222:9: danger: dereference of NULL ‘dest_exec[j]’
# 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): [#def92]
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1226:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1143:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1143:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1143:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1143:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1144:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1144:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1144:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1144:13: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1181:6: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1182:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1182:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1185:16: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1194:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1195:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1194:11: branch_false: following ‘false’ branch (when ‘i == 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1215:3: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1217:11: branch_true: following ‘true’ branch (when ‘i != 10’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1218:5: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1220:13: branch_true: following ‘true’ branch (when ‘j != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1221:11: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1221:10: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1225:11: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1220:13: branch_true: following ‘true’ branch (when ‘j != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1221:11: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1226:40: release_memory: ‘0’ is NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1226:9: danger: dereference of NULL ‘src[<unknown>]’
# 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): [#def93]
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1226:40: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1194:11: branch_true: following ‘true’ branch (when ‘i != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1195:9: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1217:11: branch_true: following ‘true’ branch (when ‘i != 10’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1218:5: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1220:13: branch_true: following ‘true’ branch (when ‘j != 64’)...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1221:11: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1221:10: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1225:11: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1225:10: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1226:44: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1226:40: danger: out-of-bounds read from byte -32 till byte -25 but ‘src’ starts at byte 0
# 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): [#def94]
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1301:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&source_filename, "w")’ where non-null expected
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1293:6: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1298:3: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1300:10: acquire_memory: this call could return NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1301:3: danger: argument 2 (‘fopen(&source_filename, "w")’) from [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
#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: GCC_ANALYZER_WARNING (CWE-688): [#def95]
orc-0.4.41/redhat-linux-build/../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.41/redhat-linux-build/../orc-test/orctest.c:1293:6: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1298:3: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1305:10: acquire_memory: this call could return NULL
orc-0.4.41/redhat-linux-build/../orc-test/orctest.c:1306:9: danger: argument 4 (‘fopen(&dump_filename, "w")’) from [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
# 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-401): [#def96]
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:100:19: warning[-Wanalyzer-malloc-leak]: leak of ‘_strndup(colon, (int)(end - colon))’
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:146:1: enter_function: entry to ‘get_tag_value’
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:153:6: branch_false: following ‘false’ branch (when ‘flags’ is non-NULL)...
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:155:9: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:156:6: branch_false: following ‘false’ branch (when ‘end’ is non-NULL)...
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:157:11: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:158:6: branch_false: following ‘false’ branch (when ‘colon’ is non-NULL)...
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:159:3: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:160:5: branch_false: following ‘false’ branch (when ‘end > colon’)...
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:162:27: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:162:10: acquire_memory: allocated here
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:162:10: call_function: calling ‘_strndup’ from ‘get_tag_value’
#   98|   {
#   99|     char *r;
#  100|->   r = orc_malloc (n+1);
#  101|     memcpy(r,s,n);
#  102|     r[n]=0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:100:19: warning[-Wanalyzer-malloc-leak]: leak of ‘_strndup(s, (int)(s - s))’
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:122:1: enter_function: entry to ‘strsplit’
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:130:10: call_function: calling ‘orc_malloc’ from ‘strsplit’
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:130:10: return_function: returning to ‘strsplit’ from ‘orc_malloc’
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:131:10: branch_true: following ‘true’ branch...
 branch_true: ...to here
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:135:15: acquire_memory: allocated here
orc-0.4.41/redhat-linux-build/../orc/orcutils.c:135:15: call_function: calling ‘_strndup’ from ‘strsplit’
#   98|   {
#   99|     char *r;
#  100|->   r = orc_malloc (n+1);
#  101|     memcpy(r,s,n);
#  102|     r[n]=0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
orc-0.4.41/redhat-linux-build/../testsuite/compile_parse_neon.c:80:22: warning[-Wanalyzer-malloc-leak]: leak of ‘read_file(filename)’
orc-0.4.41/redhat-linux-build/../testsuite/compile_parse_neon.c:17:1: enter_function: entry to ‘main’
orc-0.4.41/redhat-linux-build/../testsuite/compile_parse_neon.c:37:10: call_function: calling ‘read_file’ from ‘main’
orc-0.4.41/redhat-linux-build/../testsuite/compile_parse_neon.c:37:10: return_function: returning to ‘main’ from ‘read_file’
orc-0.4.41/redhat-linux-build/../testsuite/compile_parse_neon.c:38:6: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../testsuite/compile_parse_neon.c:43:7: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../testsuite/compile_parse_neon.c:80:22: danger: ‘read_file(filename)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
#   78|     if (ret < 0) goto bail;
#   79|   
#   80|->   contents = malloc (size + 1);
#   81|     if (contents == NULL) goto bail;
#   82|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def99]
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:229:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:214:1: enter_function: entry to ‘test_program’
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:220:7: call_function: calling ‘get_program’ from ‘test_program’
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:220:7: return_function: returning to ‘test_program’ from ‘get_program’
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:228:6: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:229:5: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:229:5: danger: dereference of NULL ‘get_program(type)’
#  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): [#def100]
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:234:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:214:1: enter_function: entry to ‘test_program’
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:220:7: call_function: calling ‘get_program’ from ‘test_program’
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:220:7: return_function: returning to ‘test_program’ from ‘get_program’
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:228:6: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:232:13: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:232:13: branch_true: following ‘true’ branch...
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:233:5: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:234:5: danger: dereference of NULL ‘get_program(type)’
#  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): [#def101]
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:236:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:214:1: enter_function: entry to ‘test_program’
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:220:7: call_function: calling ‘get_program’ from ‘test_program’
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:220:7: return_function: returning to ‘test_program’ from ‘get_program’
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:228:6: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:232:13: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:232:13: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:236:5: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../testsuite/test-schro.c:236:5: danger: dereference of NULL ‘get_program(type)’
#  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: GCC_ANALYZER_WARNING (CWE-401): [#def102]
orc-0.4.41/redhat-linux-build/../tools/orc-bugreport.c:151:22: warning[-Wanalyzer-malloc-leak]: leak of ‘read_file(filename)’
orc-0.4.41/redhat-linux-build/../tools/orc-bugreport.c:22:1: enter_function: entry to ‘main’
orc-0.4.41/redhat-linux-build/../tools/orc-bugreport.c:31:11: branch_true: following ‘true’ branch (when ‘i < argc’)...
orc-0.4.41/redhat-linux-build/../tools/orc-bugreport.c:32:20: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../tools/orc-bugreport.c:32:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
orc-0.4.41/redhat-linux-build/../tools/orc-bugreport.c:31:18: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../tools/orc-bugreport.c:87:13: branch_true: following ‘true’ branch (when ‘i != 32’)...
orc-0.4.41/redhat-linux-build/../tools/orc-bugreport.c:88:11: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../tools/orc-bugreport.c:95:6: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
orc-0.4.41/redhat-linux-build/../tools/orc-bugreport.c:100:12: branch_true: ...to here
orc-0.4.41/redhat-linux-build/../tools/orc-bugreport.c:100:12: call_function: calling ‘read_file’ from ‘main’
orc-0.4.41/redhat-linux-build/../tools/orc-bugreport.c:100:12: return_function: returning to ‘main’ from ‘read_file’
orc-0.4.41/redhat-linux-build/../tools/orc-bugreport.c:101:8: branch_false: following ‘false’ branch...
orc-0.4.41/redhat-linux-build/../tools/orc-bugreport.c:106:5: branch_false: ...to here
orc-0.4.41/redhat-linux-build/../tools/orc-bugreport.c:151:22: danger: ‘read_file(filename)’ leaks here; was allocated at [(20)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/19)
#  149|     if (ret < 0) goto bail;
#  150|   
#  151|->   contents = malloc (size + 1);
#  152|     if (contents == NULL) goto bail;
#  153|   

Error: CPPCHECK_WARNING (CWE-682): [#def103]
orc-0.4.41/testsuite/memcpy_speed.c:66: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#   64|     s = malloc(MAX_SIZE_TO_CHECK);
#   65|     d = malloc(MAX_SIZE_TO_CHECK);
#   66|->   src = ORC_PTR_OFFSET(ALIGN(s,128),unalign);
#   67|     dest = ALIGN(d,128);
#   68|   

Error: CPPCHECK_WARNING (CWE-682): [#def104]
orc-0.4.41/testsuite/memcpy_speed.c:67: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#   65|     d = malloc(MAX_SIZE_TO_CHECK);
#   66|     src = ORC_PTR_OFFSET(ALIGN(s,128),unalign);
#   67|->   dest = ALIGN(d,128);
#   68|   
#   69|     orc_profile_init (&prof);

Error: CPPCHECK_WARNING (CWE-758): [#def105]
orc-0.4.41/tools/orc-bugreport.c:88: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   86|       printf("Compiler options: ");
#   87|       for(i=0;i<32;i++){
#   88|->       if (flags & (1<<i)) {
#   89|           printf("%s ", orc_target_get_flag_name (orc_target_get_default(), i));
#   90|         }

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-239.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameorc-0.4.41-1.fc43
store-results-to/tmp/tmp84zaq9hx/orc-0.4.41-1.fc43.tar.xz
time-created2025-04-25 14:39:25
time-finished2025-04-25 14:41:15
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp84zaq9hx/orc-0.4.41-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp84zaq9hx/orc-0.4.41-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9