openexr-3.1.10-5.fc40
List of Defects
Error: CPPCHECK_WARNING: [#def1]
openexr-3.1.10-build/openexr-3.1.10/src/bin/exrcheck/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2]
openexr-3.1.10-build/openexr-3.1.10/src/bin/exrenvmap/blurImage.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def3]
openexr-3.1.10-build/openexr-3.1.10/src/bin/exrenvmap/blurImage.cpp:101:9: warning[deadcode.DeadStores]: Value stored to 'h' during its initialization is never read
# 99|
# 100| int w = image1.dataWindow().max.x - image1.dataWindow().min.x + 1;
# 101|-> int h = w * 6;
# 102|
# 103| if (iptr1->type() == ENVMAP_LATLONG)
Error: CPPCHECK_WARNING: [#def4]
openexr-3.1.10-build/openexr-3.1.10/src/bin/exrenvmap/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def5]
openexr-3.1.10-build/openexr-3.1.10/src/bin/exrenvmap/makeCubeMap.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def6]
openexr-3.1.10-build/openexr-3.1.10/src/bin/exrenvmap/makeLatLongMap.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def7]
openexr-3.1.10-build/openexr-3.1.10/src/bin/exrenvmap/readInputImage.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def8]
openexr-3.1.10-build/openexr-3.1.10/src/bin/exrheader/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def9]
openexr-3.1.10-build/openexr-3.1.10/src/bin/exrinfo/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def10]
openexr-3.1.10-build/openexr-3.1.10/src/bin/exrmakepreview/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def11]
openexr-3.1.10-build/openexr-3.1.10/src/bin/exrmaketiled/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def12]
openexr-3.1.10-build/openexr-3.1.10/src/bin/exrmaketiled/makeTiled.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def13]
openexr-3.1.10-build/openexr-3.1.10/src/bin/exrmultipart/exrmultipart.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def14]
openexr-3.1.10-build/openexr-3.1.10/src/bin/exrmultiview/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def15]
openexr-3.1.10-build/openexr-3.1.10/src/bin/exrmultiview/makeMultiView.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def16]
openexr-3.1.10-build/openexr-3.1.10/src/bin/exrstdattr/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def17]
openexr-3.1.10-build/openexr-3.1.10/src/examples/drawImage.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def18]
openexr-3.1.10-build/openexr-3.1.10/src/examples/generalInterfaceExamples.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def19]
openexr-3.1.10-build/openexr-3.1.10/src/examples/generalInterfaceTiledExamples.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def20]
openexr-3.1.10-build/openexr-3.1.10/src/examples/rgbaInterfaceExamples.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def21]
openexr-3.1.10-build/openexr-3.1.10/src/examples/rgbaInterfaceTiledExamples.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def22]
openexr-3.1.10-build/openexr-3.1.10/src/lib/Iex/IexMathFpu.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def23]
openexr-3.1.10-build/openexr-3.1.10/src/lib/IlmThread/IlmThreadPool.cpp:628:9: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
# 626| rv > static_cast<unsigned> (std::numeric_limits<int>::max ()))
# 627| {
# 628|-> rv = 1;
# 629| # if (defined(_WIN32) || defined(_WIN64))
# 630| SYSTEM_INFO si;
Error: CPPCHECK_WARNING: [#def24]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfAcesFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def25]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfArray.h:56:50: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
# 56 | Array (long size) {_data = new T[size]; _size = size;}
# | ^
/usr/include/c++/14/new: scope_hint: In function ‘readFile’
/usr/include/c++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
# 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
# | ^
# 54|
# 55| Array () {_data = 0; _size = 0;}
# 56|-> Array (long size) {_data = new T[size]; _size = size;}
# 57| ~Array () {delete [] _data;}
# 58|
Error: CLANG_WARNING: [#def26]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp:8: included_from: Included from here.
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfArray.h:64:31: warning[cplusplus.NewDelete]: Use of memory allocated with size zero
# 62| //-----------------------------
# 63|
# 64|-> operator T * () {return _data;}
# 65| operator const T * () const {return _data;}
# 66|
Error: COMPILER_WARNING: [#def27]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfArray.h:170:14: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
# 170 | T *tmp = new T[size];
# | ^
/usr/include/c++/14/new: scope_hint: In member function ‘initialize’
/usr/include/c++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
# 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
# | ^
# 168| Array<T>::resizeErase (long size)
# 169| {
# 170|-> T *tmp = new T[size];
# 171| delete [] _data;
# 172| _size = size;
Error: CLANG_WARNING: [#def28]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfArray.h:219:12: warning[cplusplus.NewDelete]: Use of memory allocated with size zero
# 217| Array2D<T>::operator [] (long x)
# 218| {
# 219|-> return _data + x * _sizeY;
# 220| }
# 221|
Error: CPPCHECK_WARNING: [#def29]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfB44Compressor.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def30]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfCRgbaFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def31]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfChromaticities.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def32]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfChromaticitiesAttribute.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def33]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfCompositeDeepScanLine.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def34]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfDeepScanLineInputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def35]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfDeepScanLineOutputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def36]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfDeepTiledInputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def37]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfDeepTiledOutputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def38]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfDwaCompressor.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def39]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfDwaCompressor.cpp:1341:9: warning[deadcode.DeadStores]: Value stored to 'quantBaseError' is never read
# 1339|
# 1340| if (_quantBaseError < 0)
# 1341|-> quantBaseError = 0;
# 1342| }
# 1343|
Error: CLANG_WARNING: [#def40]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfDwaCompressor.cpp:2027:5: warning[deadcode.DeadStores]: Value stored to 'inDataPtr' is never read
# 2025| }
# 2026|
# 2027|-> inDataPtr = inPtr;
# 2028|
# 2029| //
Error: CLANG_WARNING: [#def41]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfDwaCompressor.cpp:2462:11: warning[deadcode.DeadStores]: Value stored to 'outBufferEnd' during its initialization is never read
# 2460|
# 2461|
# 2462|-> char *outBufferEnd = _outBuffer;
# 2463|
# 2464|
Error: CPPCHECK_WARNING: [#def42]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfFastHuf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def43]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfFastHuf.cpp:356:34: warning[core.BitwiseShift]: Left shift by '64' overflows the capacity of 'uint64_t'
# 354| if (base[i] != 0xffffffffffffffffULL)
# 355| {
# 356|-> _ljBase[i] = base[i] << (64 - i);
# 357| }
# 358| else
Error: CPPCHECK_WARNING: [#def44]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfGenericOutputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def45]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfHeader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def46]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfHeader.cpp:722: error[returnTempReference]: Reference to temporary returned.
# 720| Header::zipCompressionLevel ()
# 721| {
# 722|-> return retrieveCompressionRecord (this).zip_level;
# 723| }
# 724|
Error: CPPCHECK_WARNING (CWE-562): [#def47]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfHeader.cpp:734: error[returnTempReference]: Reference to temporary returned.
# 732| Header::dwaCompressionLevel ()
# 733| {
# 734|-> return retrieveCompressionRecord (this).dwa_level;
# 735| }
# 736|
Error: CPPCHECK_WARNING: [#def48]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfHuf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def49]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfIDManifest.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-401): [#def50]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfIDManifest.cpp:1118: error[memleakOnRealloc]: Common realloc mistake: '_data' nulled but not freed upon failure
# 1116|
# 1117| // now call realloc to reallocate the buffer to a smaller size - this might free up memory
# 1118|-> _data = (unsigned char*) realloc (_data, compressedDataSize);
# 1119|
# 1120| _uncompressedDataSize = outputSize;
Error: CPPCHECK_WARNING (CWE-457): [#def51]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfIDManifest.cpp:1276: error[legacyUninitvar]: Uninitialized variable: hash
# 1274| THROW (IEX_NAMESPACE::ArgExc, "Cannot compute hash: unknown hashing scheme");
# 1275| }
# 1276|-> insert(hash,text);
# 1277| return hash;
# 1278|
Error: CPPCHECK_WARNING (CWE-457): [#def52]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfIDManifest.cpp:1297: error[legacyUninitvar]: Uninitialized variable: hash
# 1295| THROW (IEX_NAMESPACE::ArgExc, "Cannot compute hash: unknown hashing scheme");
# 1296| }
# 1297|-> insert(hash,text);
# 1298| return hash;
# 1299| }
Error: CPPCHECK_WARNING: [#def53]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfInputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def54]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfMatrixAttribute.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def55]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfMisc.cpp:518: error[uninitvar]: Uninitialized variable: f
# 516| ((char *)&f)[i] = readPtr[i];
# 517|
# 518|-> *(unsigned int *)writePtr = floatToUint (f);
# 519| readPtr += sizeof (float);
# 520| writePtr += xStride;
Error: CPPCHECK_WARNING (CWE-457): [#def56]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfMisc.cpp:543: error[uninitvar]: Uninitialized variable: ui
# 541| ((char *)&ui)[i] = readPtr[i];
# 542|
# 543|-> *(half *) writePtr = uintToHalf (ui);
# 544| readPtr += sizeof (unsigned int);
# 545| writePtr += xStride;
Error: CLANG_WARNING: [#def57]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfMisc.cpp:556:21: warning[deadcode.DeadStores]: Value stored to 'writePtr' is never read
# 554| memcpy(writePtr, readPtr, numBytes);
# 555| readPtr += numBytes;
# 556|-> writePtr += numBytes;
# 557| } else {
# 558| while (writePtr <= endPtr)
Error: CPPCHECK_WARNING (CWE-457): [#def58]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfMisc.cpp:576: error[uninitvar]: Uninitialized variable: f
# 574| ((char *)&f)[i] = readPtr[i];
# 575|
# 576|-> *(half *) writePtr = floatToHalf (f);
# 577| readPtr += sizeof (float);
# 578| writePtr += xStride;
Error: CPPCHECK_WARNING (CWE-457): [#def59]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfMisc.cpp:1128: error[uninitvar]: Uninitialized variable: f
# 1126| ((char *)&f)[i] = readPtr[i];
# 1127|
# 1128|-> *(unsigned int *)writePtr = floatToUint (f);
# 1129| readPtr += sizeof (float);
# 1130| writePtr += sampleStride;
Error: CPPCHECK_WARNING (CWE-457): [#def60]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfMisc.cpp:1168: error[uninitvar]: Uninitialized variable: ui
# 1166| ((char *)&ui)[i] = readPtr[i];
# 1167|
# 1168|-> *(half *) writePtr = uintToHalf (ui);
# 1169| readPtr += sizeof (unsigned int);
# 1170| writePtr += sampleStride;
Error: CPPCHECK_WARNING (CWE-457): [#def61]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfMisc.cpp:1225: error[uninitvar]: Uninitialized variable: f
# 1223| ((char *)&f)[i] = readPtr[i];
# 1224|
# 1225|-> *(half *) writePtr = floatToHalf (f);
# 1226| readPtr += sizeof (float);
# 1227| writePtr += sampleStride;
Error: CPPCHECK_WARNING: [#def62]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfMultiPartInputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def63]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfMultiPartInputFile.cpp:97: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
# 95| {
# 96|
# 97|-> }
# 98| };
# 99|
Error: CPPCHECK_WARNING: [#def64]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfMultiPartOutputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def65]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfMultiView.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def66]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfOutputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def67]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfPizCompressor.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def68]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfRgbaFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def69]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfRgbaYca.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def70]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfRle.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def71]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfRleCompressor.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def72]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfScanLineInputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def73]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfStandardAttributes.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def74]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfStandardAttributes.cpp: scope_hint: In function ‘const float& Imf_3_1::dwaCompressionLevel(const Header&)’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfStandardAttributes.cpp:55:41: warning[-Wdeprecated-declarations]: ‘const Imf_3_1::TypedAttribute<float>& Imf_3_1::dwaCompressionLevelAttribute(const Header&)’ is deprecated: use compression method in ImfHeader
# 55 | return IMF_NAME_ATTRIBUTE(name) (header).value(); \
# | ^
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfStandardAttributes.cpp:99:1: note: in expansion of macro ‘IMF_STD_ATTRIBUTE_IMP’
# 99 | IMF_STD_ATTRIBUTE_IMP (dwaCompressionLevel, DwaCompressionLevel, float)
# | ^~~~~~~~~~~~~~~~~~~~~
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfStandardAttributes.cpp:12: included_from: Included from here.
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfStandardAttributes.cpp:99:24: note: declared here
# 99 | IMF_STD_ATTRIBUTE_IMP (dwaCompressionLevel, DwaCompressionLevel, float)
# | ^~~~~~~~~~~~~~~~~~~
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfStandardAttributes.h:46:34: note: in definition of macro ‘IMF_NAME_ATTRIBUTE’
# 46 | #define IMF_NAME_ATTRIBUTE(name) name##Attribute
# | ^~~~
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfStandardAttributes.cpp:99:1: note: in expansion of macro ‘IMF_STD_ATTRIBUTE_IMP’
# 99 | IMF_STD_ATTRIBUTE_IMP (dwaCompressionLevel, DwaCompressionLevel, float)
# | ^~~~~~~~~~~~~~~~~~~~~
# 53| name (const Header &header) \
# 54| { \
# 55|-> return IMF_NAME_ATTRIBUTE(name) (header).value(); \
# 56| } \
# 57| \
Error: COMPILER_WARNING (CWE-477): [#def75]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfStandardAttributes.cpp: scope_hint: In function ‘float& Imf_3_1::dwaCompressionLevel(Header&)’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfStandardAttributes.cpp:61:41: warning[-Wdeprecated-declarations]: ‘Imf_3_1::TypedAttribute<float>& Imf_3_1::dwaCompressionLevelAttribute(Header&)’ is deprecated: use compression method in ImfHeader
# 61 | return IMF_NAME_ATTRIBUTE(name) (header).value(); \
# | ^
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfStandardAttributes.cpp:99:1: note: in expansion of macro ‘IMF_STD_ATTRIBUTE_IMP’
# 99 | IMF_STD_ATTRIBUTE_IMP (dwaCompressionLevel, DwaCompressionLevel, float)
# | ^~~~~~~~~~~~~~~~~~~~~
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfStandardAttributes.cpp:99:24: note: declared here
# 99 | IMF_STD_ATTRIBUTE_IMP (dwaCompressionLevel, DwaCompressionLevel, float)
# | ^~~~~~~~~~~~~~~~~~~
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfStandardAttributes.h:46:34: note: in definition of macro ‘IMF_NAME_ATTRIBUTE’
# 46 | #define IMF_NAME_ATTRIBUTE(name) name##Attribute
# | ^~~~
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfStandardAttributes.cpp:99:1: note: in expansion of macro ‘IMF_STD_ATTRIBUTE_IMP’
# 99 | IMF_STD_ATTRIBUTE_IMP (dwaCompressionLevel, DwaCompressionLevel, float)
# | ^~~~~~~~~~~~~~~~~~~~~
# 59| name (Header &header) \
# 60| { \
# 61|-> return IMF_NAME_ATTRIBUTE(name) (header).value(); \
# 62| }
# 63|
Error: CPPCHECK_WARNING: [#def76]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfTileOffsets.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def77]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfTiledInputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def78]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfTiledOutputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def79]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfTiledRgbaFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def80]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXR/ImfWav.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def81]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRCoreTest/general_attr.cpp:21: included_from: Included from here.
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:491:33: warning[core.NullDereference]: Access to field 'num_attributes' results in a dereference of a null pointer (loaded from variable 'list')
# 489| const char* name)
# 490| {
# 491|-> int cattrsz = list->num_attributes;
# 492| int nattrsz = cattrsz + 1;
# 493| int insertpos;
Error: CLANG_WARNING: [#def82]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:772:36: warning[core.NullDereference]: Access to field 'type_name' results in a dereference of a null pointer
# 770| if (rval < 0)
# 771| {
# 772|-> if (0 != strcmp (type, (*attr)->type_name))
# 773| {
# 774| nattr = *attr;
Error: CLANG_WARNING: [#def83]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:772:36: warning[core.NullDereference]: Access to field 'type_name' results in a dereference of an undefined pointer value
# 770| if (rval < 0)
# 771| {
# 772|-> if (0 != strcmp (type, (*attr)->type_name))
# 773| {
# 774| nattr = *attr;
Error: CLANG_WARNING: [#def84]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:772:36: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'attr')
# 770| if (rval < 0)
# 771| {
# 772|-> if (0 != strcmp (type, (*attr)->type_name))
# 773| {
# 774| nattr = *attr;
Error: CLANG_WARNING: [#def85]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:789:12: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 787| }
# 788|
# 789|-> slen = strlen (name);
# 790| mlen = (int32_t) pctxt->max_name_length;
# 791|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c: scope_hint: In function ‘exr_attr_list_add_by_type’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:841:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:9: included_from: Included from here.
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:758:5: note: in expansion of macro ‘INTERN_EXR_PROMOTE_CONTEXT_OR_ERROR’
# 839| if (rval == EXR_ERR_SUCCESS)
# 840| {
# 841|-> nattr->type_name = known->name;
# 842| nattr->type_name_length = (uint8_t) known->name_len;
# 843| nattr->type = known->type;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:859:50: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:758:5: note: in expansion of macro ‘INTERN_EXR_PROMOTE_CONTEXT_OR_ERROR’
# 857| tlen);
# 858|
# 859|-> if (rval == EXR_ERR_SUCCESS) nattr->type = EXR_ATTR_OPAQUE;
# 860| }
# 861| if (rval == EXR_ERR_SUCCESS) rval = add_to_list (pctxt, list, nattr, name);
Error: CLANG_WARNING: [#def88]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:864:15: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'attr')
# 862| if (rval == EXR_ERR_SUCCESS)
# 863| {
# 864|-> *attr = nattr;
# 865| check_attr_handler (pctxt, nattr);
# 866| }
Error: CLANG_WARNING: [#def89]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:900:17: warning[core.NullDereference]: Access to field 'type' results in a dereference of a null pointer
# 898| if (rval < 0)
# 899| {
# 900|-> if ((*attr)->type != type)
# 901| {
# 902| nattr = *attr;
Error: CLANG_WARNING: [#def90]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:900:17: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'attr')
# 898| if (rval < 0)
# 899| {
# 900|-> if ((*attr)->type != type)
# 901| {
# 902| nattr = *attr;
Error: CLANG_WARNING: [#def91]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:916:12: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 914| }
# 915|
# 916|-> slen = strlen (name);
# 917| mlen = (int32_t) pctxt->max_name_length;
# 918| if (slen > (size_t) mlen)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c: scope_hint: In function ‘exr_attr_list_add’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:963:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:892:5: note: in expansion of macro ‘INTERN_EXR_PROMOTE_CONTEXT_OR_ERROR’
# 961| if (rval == EXR_ERR_SUCCESS)
# 962| {
# 963|-> nattr->type_name = known->name;
# 964| nattr->type_name_length = (uint8_t) known->name_len;
# 965| nattr->type = known->type;
Error: CLANG_WARNING: [#def93]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:963:33: warning[core.NullDereference]: Access to field 'type_name' results in a dereference of a null pointer (loaded from variable 'nattr')
# 961| if (rval == EXR_ERR_SUCCESS)
# 962| {
# 963|-> nattr->type_name = known->name;
# 964| nattr->type_name_length = (uint8_t) known->name_len;
# 965| nattr->type = known->type;
Error: CLANG_WARNING: [#def94]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:971:15: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'attr')
# 969| if (rval == EXR_ERR_SUCCESS)
# 970| {
# 971|-> *attr = nattr;
# 972| check_attr_handler (pctxt, nattr);
# 973| }
Error: CLANG_WARNING: [#def95]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:1006:17: warning[core.NullDereference]: Access to field 'type' results in a dereference of a null pointer
# 1004| if (rval < 0)
# 1005| {
# 1006|-> if ((*attr)->type != type)
# 1007| {
# 1008| nattr = *attr;
Error: CLANG_WARNING: [#def96]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:1006:17: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'attr')
# 1004| if (rval < 0)
# 1005| {
# 1006|-> if ((*attr)->type != type)
# 1007| {
# 1008| nattr = *attr;
Error: CLANG_WARNING: [#def97]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:1023:12: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1021|
# 1022| mlen = (int32_t) pctxt->max_name_length;
# 1023|-> slen = strlen (name);
# 1024| if (slen > (size_t) mlen)
# 1025| {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def98]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c: scope_hint: In function ‘exr_attr_list_add_static_name’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:1060:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:998:5: note: in expansion of macro ‘INTERN_EXR_PROMOTE_CONTEXT_OR_ERROR’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:424:5: note: in expansion of macro ‘INTERN_EXR_PROMOTE_CONST_CONTEXT_OR_ERROR’
# 1058| if (rval == EXR_ERR_SUCCESS)
# 1059| {
# 1060|-> nattr->name = name;
# 1061| nattr->type_name = known->name;
# 1062| nattr->name_length = (uint8_t) nlen;
Error: CLANG_WARNING: [#def99]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:1060:33: warning[core.NullDereference]: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'nattr')
# 1058| if (rval == EXR_ERR_SUCCESS)
# 1059| {
# 1060|-> nattr->name = name;
# 1061| nattr->type_name = known->name;
# 1062| nattr->name_length = (uint8_t) nlen;
Error: CLANG_WARNING: [#def100]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/attributes.c:1070:15: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'attr')
# 1068| if (rval == EXR_ERR_SUCCESS)
# 1069| {
# 1070|-> *attr = nattr;
# 1071| check_attr_handler (pctxt, nattr);
# 1072| }
Error: CLANG_WARNING: [#def101]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/chunk.c:413:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 411| part->storage_mode == EXR_STORAGE_DEEP_SCANLINE)
# 412| {
# 413|-> int64_t chunk = (int64_t) leader.scanline_y;
# 414| chunk -= (int64_t) part->data_window.min.y;
# 415| chunk /= part->lines_per_chunk;
Error: CLANG_WARNING: [#def102]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/chunk.c:434:14: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
# 432| int32_t cidx = 0;
# 433|
# 434|-> rv = validate_and_compute_tile_chunk_off (
# 435| ctxt,
# 436| part,
Error: COMPILER_WARNING (CWE-563): [#def103]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/chunk.c: scope_hint: In function ‘reconstruct_chunk_table’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/chunk.c:460:38: warning[-Wunused-but-set-variable]: variable ‘maxidx’ set but not used
# 460 | int maxidx, found_ci, computed_ci, partnum = 0;
# | ^~~~~~
# 458| uint64_t* curctable;
# 459| const struct _internal_exr_part* curpart = NULL;
# 460|-> int maxidx, found_ci, computed_ci, partnum = 0;
# 461|
# 462| curpart = ctxt->parts[ctxt->num_parts - 1];
Error: CLANG_WARNING: [#def104]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/chunk.c:484:23: warning[core.NullDereference]: Array access (from variable 'curctable') results in an undefined pointer dereference
# 482| if (rv != EXR_ERR_SUCCESS) return rv;
# 483|
# 484|-> chunk_start = curctable[0];
# 485| maxidx = 0;
# 486| for (int ci = 1; ci < curpart->chunk_count; ++ci)
Error: CLANG_WARNING: [#def105]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/chunk.c:485:9: warning[deadcode.DeadStores]: Value stored to 'maxidx' is never read
# 483|
# 484| chunk_start = curctable[0];
# 485|-> maxidx = 0;
# 486| for (int ci = 1; ci < curpart->chunk_count; ++ci)
# 487| {
Error: CLANG_WARNING: [#def106]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/chunk.c:490:17: warning[deadcode.DeadStores]: Value stored to 'maxidx' is never read
# 488| if (curctable[ci] > chunk_start)
# 489| {
# 490|-> maxidx = ci;
# 491| chunk_start = curctable[ci];
# 492| }
Error: CLANG_WARNING: [#def107]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/chunk.c:1055:15: warning[core.NullDereference]: Array access (from variable 'ctable') results in an undefined pointer dereference
# 1053| fsize = pctxt->file_size;
# 1054|
# 1055|-> dataoff = ctable[cidx];
# 1056| if (dataoff < chunkmin || (fsize > 0 && dataoff > (uint64_t) fsize))
# 1057| {
Error: CLANG_WARNING: [#def108]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/chunk.c:1595:18: warning[core.NullDereference]: Array access (from variable 'ctable') results in an undefined pointer dereference
# 1593| if (rv != EXR_ERR_SUCCESS) return rv;
# 1594|
# 1595|-> ctable[cidx] = pctxt->output_file_offset;
# 1596| rv = pctxt->do_write (
# 1597| pctxt,
Error: CLANG_WARNING: [#def109]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/chunk.c:2013:18: warning[core.NullDereference]: Array access (from variable 'ctable') results in an undefined pointer dereference
# 2011| if (rv != EXR_ERR_SUCCESS) return rv;
# 2012|
# 2013|-> ctable[cidx] = pctxt->output_file_offset;
# 2014| rv = pctxt->do_write (
# 2015| pctxt,
Error: GCC_ANALYZER_WARNING (CWE-688): [#def110]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/float_vector.c: scope_hint: In function ‘exr_attr_float_vector_create’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/float_vector.c:112:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/float_vector.c:8: included_from: Included from here.
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/float_vector.c:102:5: note: in expansion of macro ‘INTERN_EXR_PROMOTE_CONTEXT_OR_ERROR’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/float_vector.c:22:5: note: in expansion of macro ‘INTERN_EXR_PROMOTE_CONTEXT_OR_ERROR’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_structs.h:227:47: note: in definition of macro ‘EXR_CONST_CAST’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 110| rv = exr_attr_float_vector_init (ctxt, fv, nent);
# 111| if (rv == EXR_ERR_SUCCESS && nent > 0)
# 112|-> memcpy (EXR_CONST_CAST (float*, fv->arr), arr, (size_t)(nent) * sizeof (float));
# 113| return rv;
# 114| }
Error: CLANG_WARNING: [#def111]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRCoreTest/general_attr.cpp:23: included_from: Included from here.
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/float_vector.c:112:9: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 110| rv = exr_attr_float_vector_init (ctxt, fv, nent);
# 111| if (rv == EXR_ERR_SUCCESS && nent > 0)
# 112|-> memcpy (EXR_CONST_CAST (float*, fv->arr), arr, (size_t)(nent) * sizeof (float));
# 113| return rv;
# 114| }
Error: CLANG_WARNING: [#def112]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/float_vector.c:112:9: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 110| rv = exr_attr_float_vector_init (ctxt, fv, nent);
# 111| if (rv == EXR_ERR_SUCCESS && nent > 0)
# 112|-> memcpy (EXR_CONST_CAST (float*, fv->arr), arr, (size_t)(nent) * sizeof (float));
# 113| return rv;
# 114| }
Error: CLANG_WARNING: [#def113]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_b44.c:322:5: warning[deadcode.DeadStores]: Value stored to 'nOut' is never read
# 320| if (rv != EXR_ERR_SUCCESS) return rv;
# 321|
# 322|-> nOut = 0;
# 323| packed = encode->packed_buffer;
# 324| for (int y = 0; y < encode->chunk.height; ++y)
Error: COMPILER_WARNING (CWE-457): [#def114]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_cpuid.h:58:18: warning[-Wmaybe-uninitialized]: ‘MEM[(unsigned int *)®s + 8B]’ may be used uninitialized
# 56| regs[2] = 0;
# 57| # else
# 58|-> unsigned int regs[4], osxsave;
# 59| __get_cpuid (0, ®s[0], ®s[1], ®s[2], ®s[3]);
# 60| if (regs[0] >= 1)
Error: COMPILER_WARNING (CWE-457): [#def115]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_cpuid.h:60:5: warning[-Wmaybe-uninitialized]: ‘regs’ may be used uninitialized
# 60 | if (regs[0] >= 1)
# | ^~
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_cpuid.h: scope_hint: In function ‘testCPUIdent(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_cpuid.h:58:18: note: ‘regs’ was declared here
# 58 | unsigned int regs[4], osxsave;
# | ^~~~
# 58| unsigned int regs[4], osxsave;
# 59| __get_cpuid (0, ®s[0], ®s[1], ®s[2], ®s[3]);
# 60|-> if (regs[0] >= 1)
# 61| {
# 62| __get_cpuid (1, ®s[0], ®s[1], ®s[2], ®s[3]);
Error: COMPILER_WARNING (CWE-457): [#def116]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_cpuid.h:60:8: warning[-Wmaybe-uninitialized]: ‘regs’ may be used uninitialized
# 60 | if (regs[0] >= 1)
# | ^
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_cpuid.h: scope_hint: In function ‘DwaCompressor_construct’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_cpuid.h:58:18: note: ‘regs’ was declared here
# 58 | unsigned int regs[4], osxsave;
# | ^~~~
# 58| unsigned int regs[4], osxsave;
# 59| __get_cpuid (0, ®s[0], ®s[1], ®s[2], ®s[3]);
# 60|-> if (regs[0] >= 1)
# 61| {
# 62| __get_cpuid (1, ®s[0], ®s[1], ®s[2], ®s[3]);
Error: COMPILER_WARNING (CWE-457): [#def117]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_cpuid.h:79:37: warning[-Wmaybe-uninitialized]: ‘MEM[(unsigned int *)®s + 12B]’ may be used uninitialized
# 79 | *sse2 = (regs[3] & (1 << 26)) ? 1 : 0;
# | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_cpuid.h: scope_hint: In function ‘testCPUIdent(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_cpuid.h:58:18: note: ‘MEM[(unsigned int *)®s + 12B]’ was declared here
# 58 | unsigned int regs[4], osxsave;
# | ^~~~
# 77| *f16c = (regs[2] & (1 << 29)) ? 1 : 0;
# 78| /* sse2 is in EDX bit 26 */
# 79|-> *sse2 = (regs[3] & (1 << 26)) ? 1 : 0;
# 80|
# 81| if (!osxsave)
Error: COMPILER_WARNING (CWE-457): [#def118]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_cpuid.h:79:41: warning[-Wmaybe-uninitialized]: ‘MEM[(unsigned int *)®s + 12B]’ may be used uninitialized
# 79 | *sse2 = (regs[3] & (1 << 26)) ? 1 : 0;
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_cpuid.h: scope_hint: In function ‘DwaCompressor_construct’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_cpuid.h:58:18: note: ‘MEM[(unsigned int *)®s + 12B]’ was declared here
# 58 | unsigned int regs[4], osxsave;
# | ^~~~
# 77| *f16c = (regs[2] & (1 << 29)) ? 1 : 0;
# 78| /* sse2 is in EDX bit 26 */
# 79|-> *sse2 = (regs[3] & (1 << 26)) ? 1 : 0;
# 80|
# 81| if (!osxsave)
Error: CLANG_WARNING: [#def119]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_dwa.c:121: included_from: Included from here.
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_dwa_helpers.h:66: included_from: Included from here.
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_dwa_compressor.h:338:5: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
# 336| }
# 337|
# 338|-> rv = DwaCompressor_initializeBuffers (me, &outBufferSize);
# 339|
# 340| nAvail = me->_encode->compressed_alloc_size;
Error: CLANG_WARNING: [#def120]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_dwa_compressor.h:867:9: warning[deadcode.DeadStores]: Value stored to 'headerSize' is never read
# 865| DwaCompressor_readChannelRules (me, &dataPtr, &dataLeft, &ruleSize);
# 866|
# 867|-> headerSize += ruleSize;
# 868| }
# 869|
Error: COMPILER_WARNING (CWE-457): [#def121]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_dwa_helpers.h:65: included_from: Included from here.
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_dwa.c:121: included_from: Included from here.
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_dwa_encoder.h: scope_hint: In function ‘LossyDctEncoder_execute’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_dwa_encoder.h:384:13: warning[-Wmaybe-uninitialized]: ‘chanData’ may be used uninitialized
# 384 | chanData[0]->_dc_comp = (uint16_t*) e->_packedDc;
# | ~~~~~~~~^~~
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_dwa_encoder.h:309:26: note: ‘chanData’ declared here
# 309 | DctCoderChannelData* chanData[3];
# | ^~~~~~~~
# 382| //
# 383|
# 384|-> chanData[0]->_dc_comp = (uint16_t*) e->_packedDc;
# 385| for (int chan = 1; chan < numComp; ++chan)
# 386| chanData[chan]->_dc_comp =
Error: CLANG_WARNING: [#def122]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_huf.c:61:32: warning[core.BitwiseShift]: Right shift overflows the capacity of 'uint64_t'
# 59| {
# 60| if (out >= outend) return EXR_ERR_ARGUMENT_OUT_OF_RANGE;
# 61|-> *out++ = (uint8_t) (*c >> (*lc -= 8));
# 62| }
# 63| *outptr = out;
Error: CLANG_WARNING: [#def123]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_huf.c:1073:39: warning[core.BitwiseShift]: Left shift by '64' overflows the capacity of 'uint64_t'
# 1071| if (base[i] != 0xffffffffffffffffULL)
# 1072| {
# 1073|-> fhd->_ljBase[i] = base[i] << (64 - i);
# 1074| }
# 1075| else
Error: CLANG_WARNING: [#def124]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_huf.c:1210:17: warning[deadcode.DeadStores]: Value stored to 'shift' is never read
# 1208|
# 1209| (*currByte)++;
# 1210|-> shift -= 8;
# 1211| *currBitsLeft = 0;
# 1212| }
Error: COMPILER_WARNING: [#def125]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_posix_file_impl.h: scope_hint: In function ‘exr_start_write’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_posix_file_impl.h:456:13: warning[-Wstringop-truncation]: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length
# 456 | strncpy (tmpname + nPrev, tmproot, tlen);
# | ^
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_posix_file_impl.h:437:14: note: length computed here
# 437 | tlen = strlen (tmproot);
# | ^~~~~~~~~~~~~~~~
# 454| uint64_t nPrev = (uintptr_t) lastslash - (uintptr_t) srcfile + 1;
# 455| strncpy (tmpname, srcfile, nPrev);
# 456|-> strncpy (tmpname + nPrev, tmproot, tlen);
# 457| strncpy (
# 458| tmpname + nPrev + tlen,
Error: COMPILER_WARNING: [#def126]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/context.c:21: included_from: Included from here.
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_posix_file_impl.h: scope_hint: In function ‘exr_start_write’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_posix_file_impl.h:465:13: warning[-Wstringop-truncation]: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length
# 465 | strncpy (tmpname, tmproot, tlen);
# | ^
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_posix_file_impl.h:437:14: note: length computed here
# 437 | tlen = strlen (tmproot);
# | ^~~~~~~~~~~~~~~~
# 463| else
# 464| {
# 465|-> strncpy (tmpname, tmproot, tlen);
# 466| strncpy (tmpname + tlen, srcfile, (size_t) ret->filename.length);
# 467| tmpname[newlen] = '\0';
Error: CLANG_WARNING: [#def127]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRCoreTest/general_attr.cpp:26: included_from: Included from here.
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/opaque.c:59:18: warning[core.NullDereference]: Access to field 'packed_data' results in a dereference of a null pointer (loaded from variable 'u')
# 57| if (rv == EXR_ERR_SUCCESS)
# 58| {
# 59|-> if (d && u->packed_data) memcpy ((void*) u->packed_data, d, b);
# 60| }
# 61|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def128]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c: scope_hint: In function ‘default_pack’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c:68:57: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cdata’
# 66| for (int x = 0; x < w; ++x)
# 67| {
# 68|-> unaligned_store16( dst, *((const uint16_t*) cdata) );
# 69| ++dst;
# 70| cdata += pixincrement;
Error: CLANG_WARNING: [#def129]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c:68:57: warning[core.NullDereference]: Dereference of null pointer
# 66| for (int x = 0; x < w; ++x)
# 67| {
# 68|-> unaligned_store16( dst, *((const uint16_t*) cdata) );
# 69| ++dst;
# 70| cdata += pixincrement;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def130]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c:79:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cdata’
# 77| {
# 78| uint16_t cval =
# 79|-> float_to_half (*((const float*) cdata));
# 80| unaligned_store16( dst, cval );
# 81| ++dst;
Error: CLANG_WARNING: [#def131]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c:79:52: warning[core.NullDereference]: Dereference of null pointer
# 77| {
# 78| uint16_t cval =
# 79|-> float_to_half (*((const float*) cdata));
# 80| unaligned_store16( dst, cval );
# 81| ++dst;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def132]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c:91:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cdata’
# 89| {
# 90| uint16_t cval =
# 91|-> uint_to_half (*((const uint32_t*) cdata));
# 92| unaligned_store16( dst, cval );
# 93| ++dst;
Error: CLANG_WARNING: [#def133]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c:91:51: warning[core.NullDereference]: Dereference of null pointer
# 89| {
# 90| uint16_t cval =
# 91|-> uint_to_half (*((const uint32_t*) cdata));
# 92| unaligned_store16( dst, cval );
# 93| ++dst;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def134]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c:109:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cdata’
# 107| {
# 108| uint32_t fint = half_to_float_int (
# 109|-> *((const uint16_t*) cdata));
# 110| unaligned_store32( dst, fint );
# 111| ++dst;
Error: CLANG_WARNING: [#def135]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c:109:37: warning[core.NullDereference]: Dereference of null pointer
# 107| {
# 108| uint32_t fint = half_to_float_int (
# 109|-> *((const uint16_t*) cdata));
# 110| unaligned_store32( dst, fint );
# 111| ++dst;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def136]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c:120:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cdata’
# 118| for (int x = 0; x < w; ++x)
# 119| {
# 120|-> unaligned_store32( dst, *((const uint32_t*) cdata) );
# 121| ++dst;
# 122| cdata += pixincrement;
Error: CLANG_WARNING: [#def137]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c:120:57: warning[core.NullDereference]: Dereference of null pointer
# 118| for (int x = 0; x < w; ++x)
# 119| {
# 120|-> unaligned_store32( dst, *((const uint32_t*) cdata) );
# 121| ++dst;
# 122| cdata += pixincrement;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def138]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c:130:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cdata’
# 128| for (int x = 0; x < w; ++x)
# 129| {
# 130|-> uint32_t fint = uint_to_float_int (
# 131| *((const uint32_t*) cdata));
# 132| unaligned_store32( dst, fint );
Error: CLANG_WARNING: [#def139]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c:131:37: warning[core.NullDereference]: Dereference of null pointer
# 129| {
# 130| uint32_t fint = uint_to_float_int (
# 131|-> *((const uint32_t*) cdata));
# 132| unaligned_store32( dst, fint );
# 133| ++dst;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def140]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c:148:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cdata’
# 146| for (int x = 0; x < w; ++x)
# 147| {
# 148|-> uint16_t tmp = *((const uint16_t*) cdata);
# 149| unaligned_store32( dst, half_to_uint(tmp) );
# 150| ++dst;
Error: CLANG_WARNING: [#def141]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c:148:48: warning[core.NullDereference]: Dereference of null pointer
# 146| for (int x = 0; x < w; ++x)
# 147| {
# 148|-> uint16_t tmp = *((const uint16_t*) cdata);
# 149| unaligned_store32( dst, half_to_uint(tmp) );
# 150| ++dst;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def142]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c:159:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cdata’
# 157| for (int x = 0; x < w; ++x)
# 158| {
# 159|-> float tmp = *((const float*) cdata);
# 160| unaligned_store32( dst, float_to_uint(tmp) );
# 161| ++dst;
Error: CLANG_WARNING: [#def143]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c:159:45: warning[core.NullDereference]: Dereference of null pointer
# 157| for (int x = 0; x < w; ++x)
# 158| {
# 159|-> float tmp = *((const float*) cdata);
# 160| unaligned_store32( dst, float_to_uint(tmp) );
# 161| ++dst;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def144]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c:170:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cdata’
# 168| for (int x = 0; x < w; ++x)
# 169| {
# 170|-> unaligned_store32( dst, *((const uint32_t*) cdata) );
# 171| ++dst;
# 172| cdata += pixincrement;
Error: CLANG_WARNING: [#def145]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/pack.c:170:57: warning[core.NullDereference]: Dereference of null pointer
# 168| for (int x = 0; x < w; ++x)
# 169| {
# 170|-> unaligned_store32( dst, *((const uint32_t*) cdata) );
# 171| ++dst;
# 172| cdata += pixincrement;
Error: CLANG_WARNING: [#def146]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/parse_header.c:571:20: warning[core.NullDereference]: Array access (from variable 'strptr') results in a null pointer dereference
# 569| ctxt, rv, "Unable to read '%s' %s data", aname, tname);
# 570|
# 571|-> strptr[attrsz] = '\0';
# 572|
# 573| return exr_attr_string_init_static_with_length (
Error: CLANG_WARNING: [#def147]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/parse_header.c:978:30: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 976| EXR_REQ_COMP_STR);
# 977|
# 978|-> curpart->compression->uc = data;
# 979| curpart->comp_type = (exr_compression_t) data;
# 980| return rv;
Error: CLANG_WARNING: [#def148]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/parse_header.c:1158:28: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1156| EXR_REQ_LO_STR);
# 1157|
# 1158|-> curpart->lineOrder->uc = data;
# 1159| curpart->lineorder = data;
# 1160| return rv;
Error: CLANG_WARNING: [#def149]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/parse_header.c:2591:40: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value
# 2589| }
# 2590|
# 2591|-> ctxt->is_singlepart_tiled = (flags & EXR_TILED_FLAG) ? 1 : 0;
# 2592| if (ctxt->strict_header)
# 2593| {
Error: CLANG_WARNING: [#def150]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/parse_header.c:2641:23: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 2639| }
# 2640|
# 2641|-> if (next_byte == '\0')
# 2642| {
# 2643| rv = internal_exr_validate_read_part (ctxt, curpart);
Error: CLANG_WARNING: [#def151]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/parse_header.c:2682:13: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
# 2680| {
# 2681| if (ctxt->strict_header) { break; }
# 2682|-> rv = EXR_ERR_SUCCESS;
# 2683| }
# 2684| } while (1);
Error: CLANG_WARNING: [#def152]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/part_attr.c:2350:9: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
# 2348| if (pctxt->mode != EXR_CONTEXT_WRITE)
# 2349| return EXR_UNLOCK_AND_RETURN_PCTXT (rv);
# 2350|-> rv = exr_attr_list_add_by_type (
# 2351| ctxt, &(part->attributes), name, type, 0, NULL, &(attr));
# 2352| }
Error: GCC_ANALYZER_WARNING (CWE-688): [#def153]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/preview.c: scope_hint: In function ‘exr_attr_preview_create’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/preview.c:67:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/preview.c:8: included_from: Included from here.
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/preview.c:21:5: note: in expansion of macro ‘INTERN_EXR_PROMOTE_CONTEXT_OR_ERROR’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_structs.h:227:47: note: in definition of macro ‘EXR_CONST_CAST’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/internal_structs.h:227:47: note: in definition of macro ‘EXR_CONST_CAST’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 65| size_t copybytes = w * h * 4;
# 66| if (copybytes > 0)
# 67|-> memcpy (EXR_CONST_CAST (uint8_t*, p->rgba), d, copybytes);
# 68| }
# 69| return rv;
Error: CLANG_WARNING: [#def154]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/preview.c:67:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 65| size_t copybytes = w * h * 4;
# 66| if (copybytes > 0)
# 67|-> memcpy (EXR_CONST_CAST (uint8_t*, p->rgba), d, copybytes);
# 68| }
# 69| return rv;
Error: COMPILER_WARNING: [#def155]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRCoreTest/general_attr.cpp:28: included_from: Included from here.
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/string.c: scope_hint: In function ‘testAttrStrings(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/string.c:130:25: warning[-Wstringop-truncation]: ‘strncpy’ output truncated copying 3 bytes from a string of length 7
# 130 | strncpy (outs, d, (size_t)len);
# | ^
# 128| #endif
# 129| if (d)
# 130|-> strncpy (outs, d, (size_t)len);
# 131| else
# 132| memset (outs, 0, (size_t)len);
Error: CLANG_WARNING: [#def156]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRCoreTest/general_attr.cpp:29: included_from: Included from here.
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/string_vector.c:96:48: warning[core.NullDereference]: Access to field 'strings' results in a dereference of a null pointer (loaded from variable 'sv')
# 94| rv = exr_attr_string_set_with_length (
# 95| ctxt,
# 96|-> EXR_CONST_CAST(exr_attr_string_t*, sv->strings + i),
# 97| src->strings[i].str,
# 98| src->strings[i].length);
Error: COMPILER_WARNING (CWE-563): [#def157]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/unpack.c:376:21: warning[-Wunused-but-set-variable]: variable ‘inc0’ set but not used
# 376 | int inc0, inc1, inc2;
# | ^~~~
# 374| uint8_t * out0, *out1, *out2;
# 375| int w, h;
# 376|-> int inc0, inc1, inc2;
# 377| int linc0, linc1, linc2;
# 378|
Error: COMPILER_WARNING (CWE-563): [#def158]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/unpack.c:376:27: warning[-Wunused-but-set-variable]: variable ‘inc1’ set but not used
# 376 | int inc0, inc1, inc2;
# | ^~~~
# 374| uint8_t * out0, *out1, *out2;
# 375| int w, h;
# 376|-> int inc0, inc1, inc2;
# 377| int linc0, linc1, linc2;
# 378|
Error: COMPILER_WARNING (CWE-563): [#def159]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/unpack.c: scope_hint: In function ‘unpack_16bit_3chan_planar’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/unpack.c:376:33: warning[-Wunused-but-set-variable]: variable ‘inc2’ set but not used
# 376 | int inc0, inc1, inc2;
# | ^~~~
# 374| uint8_t * out0, *out1, *out2;
# 375| int w, h;
# 376|-> int inc0, inc1, inc2;
# 377| int linc0, linc1, linc2;
# 378|
Error: CLANG_WARNING: [#def160]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/unpack.c:381:5: warning[deadcode.DeadStores]: Value stored to 'inc0' is never read
# 379| w = decode->channels[0].width;
# 380| h = decode->chunk.height;
# 381|-> inc0 = decode->channels[0].user_pixel_stride;
# 382| inc1 = decode->channels[1].user_pixel_stride;
# 383| inc2 = decode->channels[2].user_pixel_stride;
Error: CLANG_WARNING: [#def161]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/unpack.c:382:5: warning[deadcode.DeadStores]: Value stored to 'inc1' is never read
# 380| h = decode->chunk.height;
# 381| inc0 = decode->channels[0].user_pixel_stride;
# 382|-> inc1 = decode->channels[1].user_pixel_stride;
# 383| inc2 = decode->channels[2].user_pixel_stride;
# 384| linc0 = decode->channels[0].user_line_stride;
Error: CLANG_WARNING: [#def162]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/unpack.c:383:5: warning[deadcode.DeadStores]: Value stored to 'inc2' is never read
# 381| inc0 = decode->channels[0].user_pixel_stride;
# 382| inc1 = decode->channels[1].user_pixel_stride;
# 383|-> inc2 = decode->channels[2].user_pixel_stride;
# 384| linc0 = decode->channels[0].user_line_stride;
# 385| linc1 = decode->channels[1].user_line_stride;
Error: COMPILER_WARNING (CWE-563): [#def163]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/unpack.c:430:21: warning[-Wunused-but-set-variable]: variable ‘inc0’ set but not used
# 430 | int inc0, inc1, inc2;
# | ^~~~
# 428| uint8_t * out0, *out1, *out2;
# 429| int w, h;
# 430|-> int inc0, inc1, inc2;
# 431| int linc0, linc1, linc2;
# 432|
Error: COMPILER_WARNING (CWE-563): [#def164]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/unpack.c:430:27: warning[-Wunused-but-set-variable]: variable ‘inc1’ set but not used
# 430 | int inc0, inc1, inc2;
# | ^~~~
# 428| uint8_t * out0, *out1, *out2;
# 429| int w, h;
# 430|-> int inc0, inc1, inc2;
# 431| int linc0, linc1, linc2;
# 432|
Error: COMPILER_WARNING (CWE-563): [#def165]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/unpack.c: scope_hint: In function ‘unpack_half_to_float_3chan_planar’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/unpack.c:430:33: warning[-Wunused-but-set-variable]: variable ‘inc2’ set but not used
# 430 | int inc0, inc1, inc2;
# | ^~~~
# 428| uint8_t * out0, *out1, *out2;
# 429| int w, h;
# 430|-> int inc0, inc1, inc2;
# 431| int linc0, linc1, linc2;
# 432|
Error: CLANG_WARNING: [#def166]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/unpack.c:435:5: warning[deadcode.DeadStores]: Value stored to 'inc0' is never read
# 433| w = decode->channels[0].width;
# 434| h = decode->chunk.height;
# 435|-> inc0 = decode->channels[0].user_pixel_stride;
# 436| inc1 = decode->channels[1].user_pixel_stride;
# 437| inc2 = decode->channels[2].user_pixel_stride;
Error: CLANG_WARNING: [#def167]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/unpack.c:436:5: warning[deadcode.DeadStores]: Value stored to 'inc1' is never read
# 434| h = decode->chunk.height;
# 435| inc0 = decode->channels[0].user_pixel_stride;
# 436|-> inc1 = decode->channels[1].user_pixel_stride;
# 437| inc2 = decode->channels[2].user_pixel_stride;
# 438| linc0 = decode->channels[0].user_line_stride;
Error: CLANG_WARNING: [#def168]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRCore/unpack.c:437:5: warning[deadcode.DeadStores]: Value stored to 'inc2' is never read
# 435| inc0 = decode->channels[0].user_pixel_stride;
# 436| inc1 = decode->channels[1].user_pixel_stride;
# 437|-> inc2 = decode->channels[2].user_pixel_stride;
# 438| linc0 = decode->channels[0].user_line_stride;
# 439| linc1 = decode->channels[1].user_line_stride;
Error: CPPCHECK_WARNING: [#def169]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def170]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp:455:36: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 453| for (int k = 0; k < channelCount; k++)
# 454| {
# 455|-> fileBufferSize += localSampleCount[j];
# 456| //
# 457| // don't read samples which require a lot of memory in reduceMemory mode
Error: COMPILER_WARNING (CWE-563): [#def171]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp:540:18: warning[-Wunused-variable]: unused variable ‘height’
# 540 | uint64_t height = static_cast<uint64_t>(dataWindow.size().y)+1;
# | ^~~~~~
# 538| // use uint64_t for dimensions, since dataWindow+1 could overflow int storage
# 539| //
# 540|-> uint64_t height = static_cast<uint64_t>(dataWindow.size().y)+1;
# 541| uint64_t width = static_cast<uint64_t>(dataWindow.size().x)+1;
# 542| int bytesPerSample = calculateBytesPerPixel(in.header());
Error: COMPILER_WARNING (CWE-563): [#def172]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp:541:18: warning[-Wunused-variable]: unused variable ‘width’
# 541 | uint64_t width = static_cast<uint64_t>(dataWindow.size().x)+1;
# | ^~~~~
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp: scope_hint: In instantiation of ‘bool Imf_3_1::{anonymous}::readDeepTile(T&, bool, bool) [with T = Imf_3_1::DeepTiledInputFile]’
#/builddir/build/BUILD/openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp:1160:34: required from ‘bool Imf_3_1::{anonymous}::runChecks(T&, bool, bool) [with T = const char*]’
# 1160 | gotThrow = readDeepTile( rgba, reduceMemory , reduceTime );
# | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1719 | if (!threw) threw = runChecks (fileName, reduceMemory, reduceTime);
# | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 539| //
# 540| uint64_t height = static_cast<uint64_t>(dataWindow.size().y)+1;
# 541|-> uint64_t width = static_cast<uint64_t>(dataWindow.size().x)+1;
# 542| int bytesPerSample = calculateBytesPerPixel(in.header());
# 543|
Error: COMPILER_WARNING (CWE-563): [#def173]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp: scope_hint: In function ‘bool Imf_3_1::{anonymous}::readCoreTiledPart(exr_context_t, int, bool, bool)’
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp:1374:22: warning[-Wunused-but-set-variable]: variable ‘frv’ set but not used
# 1374 | exr_result_t rv, frv;
# | ^~~
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp: scope_hint: In instantiation of ‘bool Imf_3_1::{anonymous}::readDeepTile(T&, bool, bool) [with T = Imf_3_1::DeepTiledInputPart]’
#/builddir/build/BUILD/openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp:883:40: required from here
# 883 | gotThrow = readDeepTile( pt , reduceMemory , reduceTime);
# | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1372| bool readCoreTiledPart(exr_context_t f, int part, bool reduceMemory, bool reduceTime)
# 1373| {
# 1374|-> exr_result_t rv, frv;
# 1375|
# 1376| exr_attr_box2i_t datawin;
Error: CLANG_WARNING: [#def174]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp:1394:5: warning[deadcode.DeadStores]: Value stored to 'frv' is never read
# 1392| return true;
# 1393|
# 1394|-> frv = rv;
# 1395| bool keepgoing = true;
# 1396| for (int32_t ylevel = 0; keepgoing && ylevel < levelsy; ++ylevel )
Error: CLANG_WARNING: [#def175]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp:1404:17: warning[deadcode.DeadStores]: Value stored to 'frv' is never read
# 1402| if (rv != EXR_ERR_SUCCESS)
# 1403| {
# 1404|-> frv = rv;
# 1405| if (reduceTime)
# 1406| {
Error: CLANG_WARNING: [#def176]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp:1417:17: warning[deadcode.DeadStores]: Value stored to 'frv' is never read
# 1415| if (rv != EXR_ERR_SUCCESS)
# 1416| {
# 1417|-> frv = rv;
# 1418| if (reduceTime)
# 1419| {
Error: CLANG_WARNING: [#def177]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp:1444:25: warning[deadcode.DeadStores]: Value stored to 'frv' is never read
# 1442| if (rv != EXR_ERR_SUCCESS)
# 1443| {
# 1444|-> frv = rv;
# 1445| if (reduceTime)
# 1446| {
Error: CLANG_WARNING: [#def178]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp:1458:29: warning[deadcode.DeadStores]: Value stored to 'frv' is never read
# 1456| if (rv != EXR_ERR_SUCCESS)
# 1457| {
# 1458|-> frv = rv;
# 1459| keepgoing = false;
# 1460| break;
Error: CLANG_WARNING: [#def179]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp:1492:29: warning[deadcode.DeadStores]: Value stored to 'frv' is never read
# 1490| if (rv != EXR_ERR_SUCCESS)
# 1491| {
# 1492|-> frv = rv;
# 1493| keepgoing = false;
# 1494| break;
Error: CLANG_WARNING: [#def180]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp:1502:29: warning[deadcode.DeadStores]: Value stored to 'frv' is never read
# 1500| if (rv != EXR_ERR_SUCCESS)
# 1501| {
# 1502|-> frv = rv;
# 1503| if (reduceTime)
# 1504| {
Error: CLANG_WARNING: [#def181]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfCheckFile.cpp:1535:29: warning[deadcode.DeadStores]: Value stored to 'frv' is never read
# 1533| if (rv != EXR_ERR_SUCCESS)
# 1534| {
# 1535|-> frv = rv;
# 1536| if (reduceTime)
# 1537| {
Error: CPPCHECK_WARNING: [#def182]
openexr-3.1.10-build/openexr-3.1.10/src/lib/OpenEXRUtil/ImfImage.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def183]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRCoreTest/compression.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def184]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRCoreTest/deep.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def185]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRCoreTest/deep.cpp:357:29: warning[core.CallAndMessage]: Argument to 'delete[]' is uninitialized
# 355| {
# 356| if (channelTypes[k] == 0)
# 357|-> delete[](unsigned int*) data[k][i][j];
# 358| if (channelTypes[k] == 1) delete[](half*) data[k][i][j];
# 359| if (channelTypes[k] == 2)
Error: CLANG_WARNING: [#def186]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRCoreTest/deep.cpp:358:51: warning[core.CallAndMessage]: Argument to 'delete[]' is uninitialized
# 356| if (channelTypes[k] == 0)
# 357| delete[](unsigned int*) data[k][i][j];
# 358|-> if (channelTypes[k] == 1) delete[](half*) data[k][i][j];
# 359| if (channelTypes[k] == 2)
# 360| delete[](float*) data[k][i][j];
Error: CLANG_WARNING: [#def187]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRCoreTest/deep.cpp:360:29: warning[core.CallAndMessage]: Argument to 'delete[]' is uninitialized
# 358| if (channelTypes[k] == 1) delete[](half*) data[k][i][j];
# 359| if (channelTypes[k] == 2)
# 360|-> delete[](float*) data[k][i][j];
# 361| }
# 362| }
Error: CPPCHECK_WARNING: [#def188]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRCoreTest/general_attr.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-1164): [#def189]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRCoreTest/general_attr.cpp:57:1: warning[-Wunused-function]: ‘void failable_free(void*)’ defined but not used
# 57 | failable_free (void* p)
# | ^~~~~~~~~~~~~
# 55|
# 56| static void
# 57|-> failable_free (void* p)
# 58| {
# 59| if (!p) abort ();
Error: CPPCHECK_WARNING: [#def190]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRCoreTest/performance.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def191]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRCoreTest/performance.cpp:71:36: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
# 69| rv = exr_decoding_choose_default_routines (_f, 0, &chunk);
# 70| }
# 71|-> if (rv == EXR_ERR_SUCCESS) rv = exr_decoding_run (_f, 0, &chunk);
# 72| exr_decoding_destroy (_f, &chunk);
# 73| }
Error: CPPCHECK_WARNING: [#def192]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRCoreTest/read.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def193]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRCoreTest/write.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def194]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/compareB44.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def195]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testBackwardCompatibility.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def196]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testCompositeDeepScanLine.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def197]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testCompression.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def198]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testCopyDeepScanLine.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def199]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testCopyDeepTiled.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def200]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testCopyMultiPartFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def201]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testCopyMultiPartFile.cpp:858: warning[uninitvar]: Uninitialized variable: partNumber
# 856| catch (...)
# 857| {
# 858|-> cout << "Error while reading part " << partNumber << endl << flush;
# 859| throw;
# 860| }
Error: CPPCHECK_WARNING: [#def202]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testDeepScanLineBasic.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def203]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testDeepScanLineHuge.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-369): [#def204]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testDeepScanLineHuge.cpp:156: error[zerodiv]: Division by zero.
# 154|
# 155| // compute ideal number of samples per pixel assuming we want abotut 15GiB of data
# 156|-> int samples_per_pixel = int(numGib*1024l*1024l*1024l/uint64_t(width*height)) / bytes_per_sample;
# 157|
# 158| cout << " generating approx. " << samples_per_pixel << " samples per pixel\n";
Error: CPPCHECK_WARNING: [#def205]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testDeepScanLineMultipleRead.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def206]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testDeepTiledBasic.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def207]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testDeepTiledBasic.cpp:338:33: warning[core.CallAndMessage]: Argument to 'delete[]' is uninitialized
# 336| {
# 337| if (channelTypes[k] == 0)
# 338|-> delete[] (unsigned int*) data[k][i][j];
# 339| if (channelTypes[k] == 1)
# 340| delete[] (half*) data[k][i][j];
Error: CLANG_WARNING: [#def208]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testDeepTiledBasic.cpp:340:33: warning[core.CallAndMessage]: Argument to 'delete[]' is uninitialized
# 338| delete[] (unsigned int*) data[k][i][j];
# 339| if (channelTypes[k] == 1)
# 340|-> delete[] (half*) data[k][i][j];
# 341| if (channelTypes[k] == 2)
# 342| delete[] (float*) data[k][i][j];
Error: CLANG_WARNING: [#def209]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testDeepTiledBasic.cpp:342:33: warning[core.CallAndMessage]: Argument to 'delete[]' is uninitialized
# 340| delete[] (half*) data[k][i][j];
# 341| if (channelTypes[k] == 2)
# 342|-> delete[] (float*) data[k][i][j];
# 343| }
# 344| }
Error: CPPCHECK_WARNING: [#def210]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testDwaCompressorSimd.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def211]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testDwaLookups.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def212]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testDwaLookups.cpp: scope_hint: In function ‘void testToNonlinear()’
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testDwaLookups.cpp:329:20: warning[-Wunused-but-set-variable]: variable ‘toNonlinear’ set but not used
# 329 | unsigned short toNonlinear[65536];
# | ^~~~~~~~~~~
# 327| testToNonlinear()
# 328| {
# 329|-> unsigned short toNonlinear[65536];
# 330|
# 331| toNonlinear[0] = 0;
Error: CPPCHECK_WARNING: [#def213]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testExistingStreams.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def214]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testFutureProofing.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def215]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testFutureProofing.cpp:939: warning[uninitvar]: Uninitialized variable: partNumber
# 937| catch (...)
# 938| {
# 939|-> cout << "Error while reading part " << partNumber << endl << flush;
# 940| throw;
# 941| }
Error: CPPCHECK_WARNING: [#def216]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testHuf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def217]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testIDManifest.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def218]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testInputPart.cpp:555: warning[uninitvar]: Uninitialized variable: partNumber
# 553| catch (...)
# 554| {
# 555|-> cout << "Error while reading part " << partNumber << endl << flush;
# 556| throw;
# 557| }
Error: CPPCHECK_WARNING: [#def219]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testLargeDataWindowOffsets.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def220]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testMultiPartApi.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def221]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testMultiPartApi.cpp:577: warning[uninitvar]: Uninitialized variable: partNumber
# 575| catch (...)
# 576| {
# 577|-> cout << "Error while reading part " << partNumber << endl << flush;
# 578| throw;
# 579| }
Error: CPPCHECK_WARNING: [#def222]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testMultiPartFileMixingBasic.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def223]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testMultiPartFileMixingBasic.cpp:865: warning[uninitvar]: Uninitialized variable: partNumber
# 863| catch (...)
# 864| {
# 865|-> cout << "Error while reading part " << partNumber << endl << flush;
# 866| throw;
# 867| }
Error: CPPCHECK_WARNING (CWE-398): [#def224]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testMultiPartFileMixingBasic.cpp:1414: error[containerOutOfBounds]: Out of bounds access in expression 'new_offset_tables[0]' because 'new_offset_tables' is empty.
# 1412| // write blank offset table
# 1413| vector<uint64_t> new_offset_tables(size);
# 1414|-> fwrite(&new_offset_tables[0],sizeof(uint64_t),size,f);
# 1415|
# 1416| fclose(f);
Error: CPPCHECK_WARNING: [#def225]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testMultiPartSharedAttributes.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def226]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testMultiPartThreading.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def227]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testMultiPartThreading.cpp:742: warning[uninitvar]: Uninitialized variable: partNumber
# 740| catch (...)
# 741| {
# 742|-> cout << "Error while reading part " << partNumber << endl << flush;
# 743| throw;
# 744| }
Error: CPPCHECK_WARNING: [#def228]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testMultiTiledPartThreading.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def229]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testOptimized.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def230]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testOptimizedInterleavePatterns.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def231]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testPartHelper.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def232]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testPreviewImage.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def233]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testRgba.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def234]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testScanLineApi.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def235]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testStandardAttributes.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def236]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testTiledCompression.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def237]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testTiledCopyPixels.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def238]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testTiledLineOrder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def239]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRTest/testTiledRgba.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def240]
openexr-3.1.10-build/openexr-3.1.10/src/test/OpenEXRUtilTest/testIO.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-155.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | openexr-3.1.10-5.fc40 |
store-results-to | /tmp/tmpe5yhzj2m/openexr-3.1.10-5.fc40.tar.xz |
time-created | 2024-07-03 16:32:46 |
time-finished | 2024-07-03 16:39:24 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpe5yhzj2m/openexr-3.1.10-5.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpe5yhzj2m/openexr-3.1.10-5.fc40.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |