openexr-3.2.4-2.fc41
List of Defects
Error: CPPCHECK_WARNING: [#def1]
openexr-3.2.4-build/openexr-3.2.4/src/bin/exr2aces/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2]
openexr-3.2.4-build/openexr-3.2.4/src/bin/exrcheck/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def3]
openexr-3.2.4-build/openexr-3.2.4/src/bin/exrenvmap/blurImage.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def4]
openexr-3.2.4-build/openexr-3.2.4/src/bin/exrenvmap/blurImage.cpp:95:9: warning[deadcode.DeadStores]: Value stored to 'h' during its initialization is never read
# 93|
# 94| int w = image1.dataWindow ().max.x - image1.dataWindow ().min.x + 1;
# 95|-> int h = w * 6;
# 96|
# 97| if (iptr1->type () == ENVMAP_LATLONG)
Error: CPPCHECK_WARNING: [#def5]
openexr-3.2.4-build/openexr-3.2.4/src/bin/exrenvmap/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def6]
openexr-3.2.4-build/openexr-3.2.4/src/bin/exrenvmap/makeCubeMap.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def7]
openexr-3.2.4-build/openexr-3.2.4/src/bin/exrenvmap/makeLatLongMap.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def8]
openexr-3.2.4-build/openexr-3.2.4/src/bin/exrenvmap/readInputImage.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def9]
openexr-3.2.4-build/openexr-3.2.4/src/bin/exrheader/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def10]
openexr-3.2.4-build/openexr-3.2.4/src/bin/exrinfo/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def11]
openexr-3.2.4-build/openexr-3.2.4/src/bin/exrmakepreview/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def12]
openexr-3.2.4-build/openexr-3.2.4/src/bin/exrmaketiled/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def13]
openexr-3.2.4-build/openexr-3.2.4/src/bin/exrmaketiled/makeTiled.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def14]
openexr-3.2.4-build/openexr-3.2.4/src/bin/exrmanifest/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def15]
openexr-3.2.4-build/openexr-3.2.4/src/bin/exrmultipart/exrmultipart.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def16]
openexr-3.2.4-build/openexr-3.2.4/src/bin/exrmultiview/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def17]
openexr-3.2.4-build/openexr-3.2.4/src/bin/exrmultiview/makeMultiView.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def18]
openexr-3.2.4-build/openexr-3.2.4/src/bin/exrstdattr/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def19]
openexr-3.2.4-build/openexr-3.2.4/src/examples/deepExamples.cpp:104:27: warning[core.uninitialized.NewArraySize]: Element count in new[] is a garbage value
# 102| {
# 103|
# 104|-> dataZ[i][j] = new float[sampleCount[i][j]];
# 105| dataA[i][j] = new half[sampleCount[i][j]];
# 106| }
Error: CPPCHECK_WARNING: [#def20]
openexr-3.2.4-build/openexr-3.2.4/src/examples/deepidexample.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def21]
openexr-3.2.4-build/openexr-3.2.4/src/examples/deepidselect.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def22]
openexr-3.2.4-build/openexr-3.2.4/src/examples/drawImage.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def23]
openexr-3.2.4-build/openexr-3.2.4/src/examples/generalInterfaceExamples.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def24]
openexr-3.2.4-build/openexr-3.2.4/src/examples/generalInterfaceTiledExamples.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def25]
openexr-3.2.4-build/openexr-3.2.4/src/examples/multipartExamples.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def26]
openexr-3.2.4-build/openexr-3.2.4/src/examples/rgbaInterfaceExamples.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def27]
openexr-3.2.4-build/openexr-3.2.4/src/examples/rgbaInterfaceTiledExamples.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def28]
openexr-3.2.4-build/openexr-3.2.4/src/lib/Iex/IexMathFpu.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def29]
openexr-3.2.4-build/openexr-3.2.4/src/lib/IlmThread/IlmThreadPool.cpp:604:9: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
# 602| rv > static_cast<unsigned> (std::numeric_limits<int>::max ()))
# 603| {
# 604|-> rv = 1;
# 605| # if (defined(_WIN32) || defined(_WIN64))
# 606| SYSTEM_INFO si;
Error: CPPCHECK_WARNING: [#def30]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfAcesFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def31]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfArray.h:59:17: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
# 59 | _data = new T[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)
# | ^
# 57| Array (long size)
# 58| {
# 59|-> _data = new T[size];
# 60| _size = size;
# 61| }
Error: CLANG_WARNING: [#def32]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRUtil/ImfCheckFile.cpp:6: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfArray.h:68:29: warning[cplusplus.NewDelete]: Use of memory allocated with size zero
# 66| //-----------------------------
# 67|
# 68|-> operator T* () { return _data; }
# 69| operator const T* () const { return _data; }
# 70|
Error: COMPILER_WARNING: [#def33]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfArray.h:161:14: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
# 161 | 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)
# | ^
# 159| Array<T>::resizeErase (long size)
# 160| {
# 161|-> T* tmp = new T[size];
# 162| delete[] _data;
# 163| _size = size;
Error: CLANG_WARNING: [#def34]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfArray.h:200:12: warning[cplusplus.NewDelete]: Use of memory allocated with size zero
# 198| Array2D<T>::operator[] (long x)
# 199| {
# 200|-> return _data + x * _sizeY;
# 201| }
# 202|
Error: CPPCHECK_WARNING: [#def35]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfB44Compressor.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def36]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfCRgbaFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def37]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfChromaticities.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def38]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfChromaticitiesAttribute.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def39]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfCompositeDeepScanLine.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def40]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfDeepScanLineInputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def41]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfDeepScanLineOutputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def42]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfDeepTiledInputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def43]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfDeepTiledOutputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def44]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfDwaCompressor.cpp:1289:30: warning[deadcode.DeadStores]: Value stored to 'quantBaseError' is never read
# 1287| }
# 1288|
# 1289|-> if (_quantBaseError < 0) quantBaseError = 0;
# 1290| }
# 1291|
Error: CLANG_WARNING: [#def45]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfDwaCompressor.cpp:1928:5: warning[deadcode.DeadStores]: Value stored to 'inDataPtr' is never read
# 1926| }
# 1927|
# 1928|-> inDataPtr = inPtr;
# 1929|
# 1930| //
Error: CLANG_WARNING: [#def46]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfDwaCompressor.cpp:2352:11: warning[deadcode.DeadStores]: Value stored to 'outBufferEnd' during its initialization is never read
# 2350| }
# 2351|
# 2352|-> char* outBufferEnd = _outBuffer;
# 2353|
# 2354| //
Error: CPPCHECK_WARNING: [#def47]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfFastHuf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def48]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfFastHuf.cpp:352:34: warning[core.BitwiseShift]: Left shift by '64' overflows the capacity of 'uint64_t'
# 350| if (base[i] != 0xffffffffffffffffULL)
# 351| {
# 352|-> _ljBase[i] = base[i] << (64 - i);
# 353| }
# 354| else
Error: CPPCHECK_WARNING: [#def49]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfGenericOutputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def50]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfHeader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def51]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfHeader.cpp:690: error[returnTempReference]: Reference to temporary returned.
# 688| Header::zipCompressionLevel ()
# 689| {
# 690|-> return retrieveCompressionRecord (this).zip_level;
# 691| }
# 692|
Error: CPPCHECK_WARNING (CWE-562): [#def52]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfHeader.cpp:702: error[returnTempReference]: Reference to temporary returned.
# 700| Header::dwaCompressionLevel ()
# 701| {
# 702|-> return retrieveCompressionRecord (this).dwa_level;
# 703| }
# 704|
Error: CPPCHECK_WARNING: [#def53]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfHuf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def54]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfIDManifest.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-401): [#def55]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfIDManifest.cpp:1088: error[memleakOnRealloc]: Common realloc mistake: '_data' nulled but not freed upon failure
# 1086|
# 1087| // now call realloc to reallocate the buffer to a smaller size - this might free up memory
# 1088|-> _data = (unsigned char*) realloc (_data, compressedDataSize);
# 1089|
# 1090| _uncompressedDataSize = outputSize;
Error: CPPCHECK_WARNING (CWE-457): [#def56]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfIDManifest.cpp:1257: error[legacyUninitvar]: Uninitialized variable: hash
# 1255| "Cannot compute hash: unknown hashing scheme");
# 1256| }
# 1257|-> insert (hash, text);
# 1258| return hash;
# 1259| }
Error: CPPCHECK_WARNING (CWE-457): [#def57]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfIDManifest.cpp:1276: error[legacyUninitvar]: Uninitialized variable: hash
# 1274| "Cannot compute hash: unknown hashing scheme");
# 1275| }
# 1276|-> insert (hash, text);
# 1277| return hash;
# 1278| }
Error: CPPCHECK_WARNING: [#def58]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfInputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def59]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfMatrixAttribute.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def60]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfMisc.cpp:515: error[uninitvar]: Uninitialized variable: f
# 513| ((char*) &f)[i] = readPtr[i];
# 514|
# 515|-> *(unsigned int*) writePtr = floatToUint (f);
# 516| readPtr += sizeof (float);
# 517| writePtr += xStride;
Error: CPPCHECK_WARNING (CWE-457): [#def61]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfMisc.cpp:541: error[uninitvar]: Uninitialized variable: ui
# 539| ((char*) &ui)[i] = readPtr[i];
# 540|
# 541|-> *(half*) writePtr = uintToHalf (ui);
# 542| readPtr += sizeof (unsigned int);
# 543| writePtr += xStride;
Error: CLANG_WARNING: [#def62]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfMisc.cpp:555:29: warning[deadcode.DeadStores]: Value stored to 'writePtr' is never read
# 553| memcpy (writePtr, readPtr, numBytes);
# 554| readPtr += numBytes;
# 555|-> writePtr += numBytes;
# 556| }
# 557| else
Error: CPPCHECK_WARNING (CWE-457): [#def63]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfMisc.cpp:577: error[uninitvar]: Uninitialized variable: f
# 575| ((char*) &f)[i] = readPtr[i];
# 576|
# 577|-> *(half*) writePtr = floatToHalf (f);
# 578| readPtr += sizeof (float);
# 579| writePtr += xStride;
Error: CPPCHECK_WARNING (CWE-457): [#def64]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfMisc.cpp:1197: error[uninitvar]: Uninitialized variable: f
# 1195| ((char*) &f)[i] = readPtr[i];
# 1196|
# 1197|-> *(unsigned int*) writePtr = floatToUint (f);
# 1198| readPtr += sizeof (float);
# 1199| writePtr += sampleStride;
Error: CPPCHECK_WARNING (CWE-457): [#def65]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfMisc.cpp:1244: error[uninitvar]: Uninitialized variable: ui
# 1242| ((char*) &ui)[i] = readPtr[i];
# 1243|
# 1244|-> *(half*) writePtr = uintToHalf (ui);
# 1245| readPtr += sizeof (unsigned int);
# 1246| writePtr += sampleStride;
Error: CPPCHECK_WARNING (CWE-457): [#def66]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfMisc.cpp:1309: error[uninitvar]: Uninitialized variable: f
# 1307| ((char*) &f)[i] = readPtr[i];
# 1308|
# 1309|-> *(half*) writePtr = floatToHalf (f);
# 1310| readPtr += sizeof (float);
# 1311| writePtr += sampleStride;
Error: CPPCHECK_WARNING: [#def67]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfMultiPartInputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def68]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfMultiPartInputFile.cpp:94: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
# 92| Data& operator= (Data&& other) = delete;
# 93|
# 94|-> template <class T> T* createInputPartT (int partNumber) {}
# 95| };
# 96|
Error: CPPCHECK_WARNING: [#def69]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfMultiPartOutputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def70]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfMultiView.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def71]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfOutputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def72]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfPizCompressor.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def73]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfRgbaFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def74]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfRgbaYca.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def75]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfRle.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def76]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfRleCompressor.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def77]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfScanLineInputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def78]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def79]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp: scope_hint: In function ‘const float& Imf_3_2::dwaCompressionLevel(const Header&)’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:50:42: warning[-Wdeprecated-declarations]: ‘const Imf_3_2::TypedAttribute<float>& Imf_3_2::dwaCompressionLevelAttribute(const Header&)’ is deprecated: use compression method in ImfHeader
# 50 | return IMF_NAME_ATTRIBUTE (name) (header).value (); \
# | ^
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:119:1: note: in expansion of macro ‘IMF_STD_ATTRIBUTE_IMP’
# 119 | IMF_STD_ATTRIBUTE_IMP (dwaCompressionLevel, DwaCompressionLevel, float)
# | ^~~~~~~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:119:24: note: declared here
# 119 | IMF_STD_ATTRIBUTE_IMP (dwaCompressionLevel, DwaCompressionLevel, float)
# | ^~~~~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.h:47:34: note: in definition of macro ‘IMF_NAME_ATTRIBUTE’
# 47 | #define IMF_NAME_ATTRIBUTE(name) name##Attribute
# | ^~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:119:1: note: in expansion of macro ‘IMF_STD_ATTRIBUTE_IMP’
# 119 | IMF_STD_ATTRIBUTE_IMP (dwaCompressionLevel, DwaCompressionLevel, float)
# | ^~~~~~~~~~~~~~~~~~~~~
# 48| const type& name (const Header& header) \
# 49| { \
# 50|-> return IMF_NAME_ATTRIBUTE (name) (header).value (); \
# 51| } \
# 52| \
Error: COMPILER_WARNING (CWE-477): [#def80]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp: scope_hint: In function ‘const std::string& Imf_3_2::lookModTransform(const Header&)’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:50:42: warning[-Wdeprecated-declarations]: ‘const Imf_3_2::TypedAttribute<std::__cxx11::basic_string<char> >& Imf_3_2::lookModTransformAttribute(const Header&)’ is deprecated: this attribute is obsolete as of OpenEXR v3.2
# 50 | return IMF_NAME_ATTRIBUTE (name) (header).value (); \
# | ^
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:114:1: note: in expansion of macro ‘IMF_STD_ATTRIBUTE_IMP’
# 114 | IMF_STD_ATTRIBUTE_IMP (lookModTransform, LookModTransform, string)
# | ^~~~~~~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:114:24: note: declared here
# 114 | IMF_STD_ATTRIBUTE_IMP (lookModTransform, LookModTransform, string)
# | ^~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.h:47:34: note: in definition of macro ‘IMF_NAME_ATTRIBUTE’
# 47 | #define IMF_NAME_ATTRIBUTE(name) name##Attribute
# | ^~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:114:1: note: in expansion of macro ‘IMF_STD_ATTRIBUTE_IMP’
# 114 | IMF_STD_ATTRIBUTE_IMP (lookModTransform, LookModTransform, string)
# | ^~~~~~~~~~~~~~~~~~~~~
# 48| const type& name (const Header& header) \
# 49| { \
# 50|-> return IMF_NAME_ATTRIBUTE (name) (header).value (); \
# 51| } \
# 52| \
Error: COMPILER_WARNING (CWE-477): [#def81]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp: scope_hint: In function ‘const std::string& Imf_3_2::renderingTransform(const Header&)’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:50:42: warning[-Wdeprecated-declarations]: ‘const Imf_3_2::TypedAttribute<std::__cxx11::basic_string<char> >& Imf_3_2::renderingTransformAttribute(const Header&)’ is deprecated: this attribute is obsolete as of OpenEXR v3.2
# 50 | return IMF_NAME_ATTRIBUTE (name) (header).value (); \
# | ^
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:113:1: note: in expansion of macro ‘IMF_STD_ATTRIBUTE_IMP’
# 113 | IMF_STD_ATTRIBUTE_IMP (renderingTransform, RenderingTransform, string)
# | ^~~~~~~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:12: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:113:24: note: declared here
# 113 | IMF_STD_ATTRIBUTE_IMP (renderingTransform, RenderingTransform, string)
# | ^~~~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.h:47:34: note: in definition of macro ‘IMF_NAME_ATTRIBUTE’
# 47 | #define IMF_NAME_ATTRIBUTE(name) name##Attribute
# | ^~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:113:1: note: in expansion of macro ‘IMF_STD_ATTRIBUTE_IMP’
# 113 | IMF_STD_ATTRIBUTE_IMP (renderingTransform, RenderingTransform, string)
# | ^~~~~~~~~~~~~~~~~~~~~
# 48| const type& name (const Header& header) \
# 49| { \
# 50|-> return IMF_NAME_ATTRIBUTE (name) (header).value (); \
# 51| } \
# 52| \
Error: COMPILER_WARNING (CWE-477): [#def82]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp: scope_hint: In function ‘float& Imf_3_2::dwaCompressionLevel(Header&)’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:55:42: warning[-Wdeprecated-declarations]: ‘Imf_3_2::TypedAttribute<float>& Imf_3_2::dwaCompressionLevelAttribute(Header&)’ is deprecated: use compression method in ImfHeader
# 55 | return IMF_NAME_ATTRIBUTE (name) (header).value (); \
# | ^
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:119:1: note: in expansion of macro ‘IMF_STD_ATTRIBUTE_IMP’
# 119 | IMF_STD_ATTRIBUTE_IMP (dwaCompressionLevel, DwaCompressionLevel, float)
# | ^~~~~~~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:119:24: note: declared here
# 119 | IMF_STD_ATTRIBUTE_IMP (dwaCompressionLevel, DwaCompressionLevel, float)
# | ^~~~~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.h:47:34: note: in definition of macro ‘IMF_NAME_ATTRIBUTE’
# 47 | #define IMF_NAME_ATTRIBUTE(name) name##Attribute
# | ^~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:119:1: note: in expansion of macro ‘IMF_STD_ATTRIBUTE_IMP’
# 119 | IMF_STD_ATTRIBUTE_IMP (dwaCompressionLevel, DwaCompressionLevel, float)
# | ^~~~~~~~~~~~~~~~~~~~~
# 53| type& name (Header& header) \
# 54| { \
# 55|-> return IMF_NAME_ATTRIBUTE (name) (header).value (); \
# 56| }
# 57|
Error: COMPILER_WARNING (CWE-477): [#def83]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp: scope_hint: In function ‘std::string& Imf_3_2::lookModTransform(Header&)’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:55:42: warning[-Wdeprecated-declarations]: ‘Imf_3_2::TypedAttribute<std::__cxx11::basic_string<char> >& Imf_3_2::lookModTransformAttribute(Header&)’ is deprecated: this attribute is obsolete as of OpenEXR v3.2
# 55 | return IMF_NAME_ATTRIBUTE (name) (header).value (); \
# | ^
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:114:1: note: in expansion of macro ‘IMF_STD_ATTRIBUTE_IMP’
# 114 | IMF_STD_ATTRIBUTE_IMP (lookModTransform, LookModTransform, string)
# | ^~~~~~~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:114:24: note: declared here
# 114 | IMF_STD_ATTRIBUTE_IMP (lookModTransform, LookModTransform, string)
# | ^~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.h:47:34: note: in definition of macro ‘IMF_NAME_ATTRIBUTE’
# 47 | #define IMF_NAME_ATTRIBUTE(name) name##Attribute
# | ^~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:114:1: note: in expansion of macro ‘IMF_STD_ATTRIBUTE_IMP’
# 114 | IMF_STD_ATTRIBUTE_IMP (lookModTransform, LookModTransform, string)
# | ^~~~~~~~~~~~~~~~~~~~~
# 53| type& name (Header& header) \
# 54| { \
# 55|-> return IMF_NAME_ATTRIBUTE (name) (header).value (); \
# 56| }
# 57|
Error: COMPILER_WARNING (CWE-477): [#def84]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp: scope_hint: In function ‘std::string& Imf_3_2::renderingTransform(Header&)’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:55:42: warning[-Wdeprecated-declarations]: ‘Imf_3_2::TypedAttribute<std::__cxx11::basic_string<char> >& Imf_3_2::renderingTransformAttribute(Header&)’ is deprecated: this attribute is obsolete as of OpenEXR v3.2
# 55 | return IMF_NAME_ATTRIBUTE (name) (header).value (); \
# | ^
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:113:1: note: in expansion of macro ‘IMF_STD_ATTRIBUTE_IMP’
# 113 | IMF_STD_ATTRIBUTE_IMP (renderingTransform, RenderingTransform, string)
# | ^~~~~~~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:113:24: note: declared here
# 113 | IMF_STD_ATTRIBUTE_IMP (renderingTransform, RenderingTransform, string)
# | ^~~~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.h:47:34: note: in definition of macro ‘IMF_NAME_ATTRIBUTE’
# 47 | #define IMF_NAME_ATTRIBUTE(name) name##Attribute
# | ^~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.cpp:113:1: note: in expansion of macro ‘IMF_STD_ATTRIBUTE_IMP’
# 113 | IMF_STD_ATTRIBUTE_IMP (renderingTransform, RenderingTransform, string)
# | ^~~~~~~~~~~~~~~~~~~~~
# 53| type& name (Header& header) \
# 54| { \
# 55|-> return IMF_NAME_ATTRIBUTE (name) (header).value (); \
# 56| }
# 57|
Error: CPPCHECK_WARNING: [#def85]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfTileOffsets.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def86]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfTiledInputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def87]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfTiledOutputFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def88]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfTiledRgbaFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def89]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfWav.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def90]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRCoreTest/general_attr.cpp:21: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:490:33: warning[core.NullDereference]: Access to field 'num_attributes' results in a dereference of a null pointer (loaded from variable 'list')
# 488| const char* name)
# 489| {
# 490|-> int cattrsz = list->num_attributes;
# 491| int nattrsz = cattrsz + 1;
# 492| int insertpos;
Error: CLANG_WARNING: [#def91]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:771:36: warning[core.NullDereference]: Access to field 'type_name' results in a dereference of a null pointer
# 769| if (rval < 0)
# 770| {
# 771|-> if (0 != strcmp (type, (*attr)->type_name))
# 772| {
# 773| nattr = *attr;
Error: CLANG_WARNING: [#def92]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:771:36: warning[core.NullDereference]: Access to field 'type_name' results in a dereference of an undefined pointer value
# 769| if (rval < 0)
# 770| {
# 771|-> if (0 != strcmp (type, (*attr)->type_name))
# 772| {
# 773| nattr = *attr;
Error: CLANG_WARNING: [#def93]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:771:36: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'attr')
# 769| if (rval < 0)
# 770| {
# 771|-> if (0 != strcmp (type, (*attr)->type_name))
# 772| {
# 773| nattr = *attr;
Error: CLANG_WARNING: [#def94]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:788:12: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 786| }
# 787|
# 788|-> slen = strlen (name);
# 789| mlen = (int32_t) pctxt->max_name_length;
# 790|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c: scope_hint: In function ‘exr_attr_list_add_by_type’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:840:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:9: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:757:5: note: in expansion of macro ‘INTERN_EXR_PROMOTE_CONTEXT_OR_ERROR’
# 838| if (rval == EXR_ERR_SUCCESS)
# 839| {
# 840|-> nattr->type_name = known->name;
# 841| nattr->type_name_length = (uint8_t) known->name_len;
# 842| nattr->type = known->type;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def96]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:858:50: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:757:5: note: in expansion of macro ‘INTERN_EXR_PROMOTE_CONTEXT_OR_ERROR’
# 856| tlen);
# 857|
# 858|-> if (rval == EXR_ERR_SUCCESS) nattr->type = EXR_ATTR_OPAQUE;
# 859| }
# 860| if (rval == EXR_ERR_SUCCESS) rval = add_to_list (pctxt, list, nattr, name);
Error: CLANG_WARNING: [#def97]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:863:15: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'attr')
# 861| if (rval == EXR_ERR_SUCCESS)
# 862| {
# 863|-> *attr = nattr;
# 864| check_attr_handler (pctxt, nattr);
# 865| }
Error: CLANG_WARNING: [#def98]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:899:17: warning[core.NullDereference]: Access to field 'type' results in a dereference of a null pointer
# 897| if (rval < 0)
# 898| {
# 899|-> if ((*attr)->type != type)
# 900| {
# 901| nattr = *attr;
Error: CLANG_WARNING: [#def99]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:899:17: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'attr')
# 897| if (rval < 0)
# 898| {
# 899|-> if ((*attr)->type != type)
# 900| {
# 901| nattr = *attr;
Error: CLANG_WARNING: [#def100]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:915:12: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 913| }
# 914|
# 915|-> slen = strlen (name);
# 916| mlen = (int32_t) pctxt->max_name_length;
# 917| if (slen > (size_t) mlen)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def101]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c: scope_hint: In function ‘exr_attr_list_add’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:962:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:891:5: note: in expansion of macro ‘INTERN_EXR_PROMOTE_CONTEXT_OR_ERROR’
# 960| if (rval == EXR_ERR_SUCCESS)
# 961| {
# 962|-> nattr->type_name = known->name;
# 963| nattr->type_name_length = (uint8_t) known->name_len;
# 964| nattr->type = known->type;
Error: CLANG_WARNING: [#def102]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:962:33: warning[core.NullDereference]: Access to field 'type_name' results in a dereference of a null pointer (loaded from variable 'nattr')
# 960| if (rval == EXR_ERR_SUCCESS)
# 961| {
# 962|-> nattr->type_name = known->name;
# 963| nattr->type_name_length = (uint8_t) known->name_len;
# 964| nattr->type = known->type;
Error: CLANG_WARNING: [#def103]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:970:15: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'attr')
# 968| if (rval == EXR_ERR_SUCCESS)
# 969| {
# 970|-> *attr = nattr;
# 971| check_attr_handler (pctxt, nattr);
# 972| }
Error: CLANG_WARNING: [#def104]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:1005:17: warning[core.NullDereference]: Access to field 'type' results in a dereference of a null pointer
# 1003| if (rval < 0)
# 1004| {
# 1005|-> if ((*attr)->type != type)
# 1006| {
# 1007| nattr = *attr;
Error: CLANG_WARNING: [#def105]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:1005:17: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'attr')
# 1003| if (rval < 0)
# 1004| {
# 1005|-> if ((*attr)->type != type)
# 1006| {
# 1007| nattr = *attr;
Error: CLANG_WARNING: [#def106]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:1022:12: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1020|
# 1021| mlen = (int32_t) pctxt->max_name_length;
# 1022|-> slen = strlen (name);
# 1023| if (slen > (size_t) mlen)
# 1024| {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def107]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c: scope_hint: In function ‘exr_attr_list_add_static_name’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:1059:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:997:5: note: in expansion of macro ‘INTERN_EXR_PROMOTE_CONTEXT_OR_ERROR’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:423:5: note: in expansion of macro ‘INTERN_EXR_PROMOTE_CONST_CONTEXT_OR_ERROR’
# 1057| if (rval == EXR_ERR_SUCCESS)
# 1058| {
# 1059|-> nattr->name = name;
# 1060| nattr->type_name = known->name;
# 1061| nattr->name_length = (uint8_t) nlen;
Error: CLANG_WARNING: [#def108]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:1059:33: warning[core.NullDereference]: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'nattr')
# 1057| if (rval == EXR_ERR_SUCCESS)
# 1058| {
# 1059|-> nattr->name = name;
# 1060| nattr->type_name = known->name;
# 1061| nattr->name_length = (uint8_t) nlen;
Error: CLANG_WARNING: [#def109]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/attributes.c:1069:15: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'attr')
# 1067| if (rval == EXR_ERR_SUCCESS)
# 1068| {
# 1069|-> *attr = nattr;
# 1070| check_attr_handler (pctxt, nattr);
# 1071| }
Error: CLANG_WARNING: [#def110]
openexr-3.2.4-build/openexr-3.2.4/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: [#def111]
openexr-3.2.4-build/openexr-3.2.4/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: CLANG_WARNING: [#def112]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/chunk.c:486:23: warning[core.NullDereference]: Array access (from variable 'curctable') results in an undefined pointer dereference
# 484| if (rv != EXR_ERR_SUCCESS) return rv;
# 485|
# 486|-> chunk_start = curctable[0];
# 487| for (int ci = 1; ci < curpart->chunk_count; ++ci)
# 488| {
Error: CLANG_WARNING: [#def113]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/chunk.c:621:25: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
# 619| ctxt->free_fn (ctable);
# 620| ctable = (uint64_t *) UINTPTR_MAX;
# 621|-> rv = ctxt->report_error (
# 622| ctxt,
# 623| EXR_ERR_BAD_CHUNK_LEADER,
Error: CLANG_WARNING: [#def114]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/chunk.c:627:25: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
# 625| }
# 626| else
# 627|-> rv = EXR_ERR_SUCCESS;
# 628| }
# 629| }
Error: CLANG_WARNING: [#def115]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/chunk.c:1077:15: warning[core.NullDereference]: Array access (from variable 'ctable') results in an undefined pointer dereference
# 1075| fsize = pctxt->file_size;
# 1076|
# 1077|-> dataoff = ctable[cidx];
# 1078| if (dataoff < chunkmin || (fsize > 0 && dataoff > (uint64_t) fsize))
# 1079| {
Error: CLANG_WARNING: [#def116]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/chunk.c:1615:18: warning[core.NullDereference]: Array access (from variable 'ctable') results in an undefined pointer dereference
# 1613| if (rv != EXR_ERR_SUCCESS) return rv;
# 1614|
# 1615|-> ctable[cidx] = pctxt->output_file_offset;
# 1616| rv = pctxt->do_write (
# 1617| pctxt,
Error: CLANG_WARNING: [#def117]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/chunk.c:2033:18: warning[core.NullDereference]: Array access (from variable 'ctable') results in an undefined pointer dereference
# 2031| if (rv != EXR_ERR_SUCCESS) return rv;
# 2032|
# 2033|-> ctable[cidx] = pctxt->output_file_offset;
# 2034| rv = pctxt->do_write (
# 2035| pctxt,
Error: GCC_ANALYZER_WARNING (CWE-688): [#def118]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/float_vector.c: scope_hint: In function ‘exr_attr_float_vector_create’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/float_vector.c:112:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/float_vector.c:8: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/float_vector.c:102:5: note: in expansion of macro ‘INTERN_EXR_PROMOTE_CONTEXT_OR_ERROR’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/float_vector.c:22:5: note: in expansion of macro ‘INTERN_EXR_PROMOTE_CONTEXT_OR_ERROR’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_structs.h:226: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 (
# 113| EXR_CONST_CAST (float*, fv->arr),
# 114| arr,
Error: CLANG_WARNING: [#def119]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRCoreTest/general_attr.cpp:23: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/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 (
# 113| EXR_CONST_CAST (float*, fv->arr),
# 114| arr,
Error: CLANG_WARNING: [#def120]
openexr-3.2.4-build/openexr-3.2.4/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 (
# 113| EXR_CONST_CAST (float*, fv->arr),
# 114| arr,
Error: CLANG_WARNING: [#def121]
openexr-3.2.4-build/openexr-3.2.4/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: CLANG_WARNING: [#def122]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_dwa.c:121: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_dwa_helpers.h:66: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_dwa_compressor.h:260:5: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
# 258| sizeof (sDefaultChannelRules) / sizeof (Classifier);
# 259|
# 260|-> rv = DwaCompressor_initializeBuffers (me, &outBufferSize);
# 261|
# 262| nAvail = me->_encode->compressed_alloc_size;
Error: CLANG_WARNING: [#def123]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_dwa_compressor.h:794:9: warning[deadcode.DeadStores]: Value stored to 'headerSize' is never read
# 792| DwaCompressor_readChannelRules (me, &dataPtr, &dataLeft, &ruleSize);
# 793|
# 794|-> headerSize += ruleSize;
# 795| }
# 796|
Error: COMPILER_WARNING (CWE-457): [#def124]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_dwa_helpers.h:65: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_dwa.c:121: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_dwa_encoder.h: scope_hint: In function ‘LossyDctEncoder_execute’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_dwa_encoder.h:386:13: warning[-Wmaybe-uninitialized]: ‘chanData’ may be used uninitialized
# 386 | chanData[0]->_dc_comp = (uint16_t*) e->_packedDc;
# | ~~~~~~~~^~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_dwa_encoder.h:311:26: note: ‘chanData’ declared here
# 311 | DctCoderChannelData* chanData[3];
# | ^~~~~~~~
# 384| //
# 385|
# 386|-> chanData[0]->_dc_comp = (uint16_t*) e->_packedDc;
# 387| for (int chan = 1; chan < numComp; ++chan)
# 388| chanData[chan]->_dc_comp =
Error: CLANG_WARNING: [#def125]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_huf.c:67:32: warning[core.BitwiseShift]: Right shift overflows the capacity of 'uint64_t'
# 65| {
# 66| if (out >= outend) return EXR_ERR_ARGUMENT_OUT_OF_RANGE;
# 67|-> *out++ = (uint8_t) (*c >> (*lc -= 8));
# 68| }
# 69| *outptr = out;
Error: CLANG_WARNING: [#def126]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_huf.c:1098:39: warning[core.BitwiseShift]: Left shift by '64' overflows the capacity of 'uint64_t'
# 1096| if (base[i] != 0xffffffffffffffffULL)
# 1097| {
# 1098|-> fhd->_ljBase[i] = base[i] << (64 - i);
# 1099| }
# 1100| else
Error: CLANG_WARNING: [#def127]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_huf.c:1235:17: warning[deadcode.DeadStores]: Value stored to 'shift' is never read
# 1233|
# 1234| (*currByte)++;
# 1235|-> shift -= 8;
# 1236| *currBitsLeft = 0;
# 1237| }
Error: COMPILER_WARNING: [#def128]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_posix_file_impl.h: scope_hint: In function ‘exr_start_write’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_posix_file_impl.h:457:13: warning[-Wstringop-truncation]: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length
# 457 | strncpy (tmpname + nPrev, tmproot, tlen);
# | ^
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_posix_file_impl.h:438:14: note: length computed here
# 438 | tlen = strlen (tmproot);
# | ^~~~~~~~~~~~~~~~
# 455| uint64_t nPrev = (uintptr_t) lastslash - (uintptr_t) srcfile + 1;
# 456| strncpy (tmpname, srcfile, nPrev);
# 457|-> strncpy (tmpname + nPrev, tmproot, tlen);
# 458| strncpy (
# 459| tmpname + nPrev + tlen,
Error: COMPILER_WARNING: [#def129]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/context.c:23: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_posix_file_impl.h: scope_hint: In function ‘exr_start_write’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_posix_file_impl.h:466:13: warning[-Wstringop-truncation]: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length
# 466 | strncpy (tmpname, tmproot, tlen);
# | ^
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_posix_file_impl.h:438:14: note: length computed here
# 438 | tlen = strlen (tmproot);
# | ^~~~~~~~~~~~~~~~
# 464| else
# 465| {
# 466|-> strncpy (tmpname, tmproot, tlen);
# 467| strncpy (tmpname + tlen, srcfile, (size_t) ret->filename.length);
# 468| tmpname[newlen] = '\0';
Error: CLANG_WARNING: [#def130]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRCoreTest/general_attr.cpp:26: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/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): [#def131]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c: scope_hint: In function ‘default_pack’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c:65:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cdata’
# 63| {
# 64| unaligned_store16 (
# 65|-> dst, *((const uint16_t*) cdata));
# 66| ++dst;
# 67| cdata += pixincrement;
Error: CLANG_WARNING: [#def132]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c:65:42: warning[core.NullDereference]: Dereference of null pointer
# 63| {
# 64| unaligned_store16 (
# 65|-> dst, *((const uint16_t*) cdata));
# 66| ++dst;
# 67| cdata += pixincrement;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def133]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c:76:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cdata’
# 74| {
# 75| uint16_t cval =
# 76|-> float_to_half (*((const float*) cdata));
# 77| unaligned_store16 (dst, cval);
# 78| ++dst;
Error: CLANG_WARNING: [#def134]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c:76:52: warning[core.NullDereference]: Dereference of null pointer
# 74| {
# 75| uint16_t cval =
# 76|-> float_to_half (*((const float*) cdata));
# 77| unaligned_store16 (dst, cval);
# 78| ++dst;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def135]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c:88:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cdata’
# 86| {
# 87| uint16_t cval =
# 88|-> uint_to_half (*((const uint32_t*) cdata));
# 89| unaligned_store16 (dst, cval);
# 90| ++dst;
Error: CLANG_WARNING: [#def136]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c:88:51: warning[core.NullDereference]: Dereference of null pointer
# 86| {
# 87| uint16_t cval =
# 88|-> uint_to_half (*((const uint32_t*) cdata));
# 89| unaligned_store16 (dst, cval);
# 90| ++dst;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def137]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c:106:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cdata’
# 104| {
# 105| uint32_t fint = half_to_float_int (
# 106|-> *((const uint16_t*) cdata));
# 107| unaligned_store32 (dst, fint);
# 108| ++dst;
Error: CLANG_WARNING: [#def138]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c:106:37: warning[core.NullDereference]: Dereference of null pointer
# 104| {
# 105| uint32_t fint = half_to_float_int (
# 106|-> *((const uint16_t*) cdata));
# 107| unaligned_store32 (dst, fint);
# 108| ++dst;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def139]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c:117:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cdata’
# 115| for (int x = 0; x < w; ++x)
# 116| {
# 117|-> unaligned_store32 (
# 118| dst, *((const uint32_t*) cdata));
# 119| ++dst;
Error: CLANG_WARNING: [#def140]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c:118:42: warning[core.NullDereference]: Dereference of null pointer
# 116| {
# 117| unaligned_store32 (
# 118|-> dst, *((const uint32_t*) cdata));
# 119| ++dst;
# 120| cdata += pixincrement;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def141]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c:128:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cdata’
# 126| for (int x = 0; x < w; ++x)
# 127| {
# 128|-> uint32_t fint = uint_to_float_int (
# 129| *((const uint32_t*) cdata));
# 130| unaligned_store32 (dst, fint);
Error: CLANG_WARNING: [#def142]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c:129:37: warning[core.NullDereference]: Dereference of null pointer
# 127| {
# 128| uint32_t fint = uint_to_float_int (
# 129|-> *((const uint32_t*) cdata));
# 130| unaligned_store32 (dst, fint);
# 131| ++dst;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def143]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c:146:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cdata’
# 144| for (int x = 0; x < w; ++x)
# 145| {
# 146|-> uint16_t tmp = *((const uint16_t*) cdata);
# 147| unaligned_store32 (dst, half_to_uint (tmp));
# 148| ++dst;
Error: CLANG_WARNING: [#def144]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c:146:48: warning[core.NullDereference]: Dereference of null pointer
# 144| for (int x = 0; x < w; ++x)
# 145| {
# 146|-> uint16_t tmp = *((const uint16_t*) cdata);
# 147| unaligned_store32 (dst, half_to_uint (tmp));
# 148| ++dst;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def145]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c:157:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cdata’
# 155| for (int x = 0; x < w; ++x)
# 156| {
# 157|-> float tmp = *((const float*) cdata);
# 158| unaligned_store32 (dst, float_to_uint (tmp));
# 159| ++dst;
Error: CLANG_WARNING: [#def146]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c:157:45: warning[core.NullDereference]: Dereference of null pointer
# 155| for (int x = 0; x < w; ++x)
# 156| {
# 157|-> float tmp = *((const float*) cdata);
# 158| unaligned_store32 (dst, float_to_uint (tmp));
# 159| ++dst;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def147]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c:168:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cdata’
# 166| for (int x = 0; x < w; ++x)
# 167| {
# 168|-> unaligned_store32 (
# 169| dst, *((const uint32_t*) cdata));
# 170| ++dst;
Error: CLANG_WARNING: [#def148]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/pack.c:169:42: warning[core.NullDereference]: Dereference of null pointer
# 167| {
# 168| unaligned_store32 (
# 169|-> dst, *((const uint32_t*) cdata));
# 170| ++dst;
# 171| cdata += pixincrement;
Error: CLANG_WARNING: [#def149]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/parse_header.c:568:20: warning[core.NullDereference]: Array access (from variable 'strptr') results in a null pointer dereference
# 566| ctxt, rv, "Unable to read '%s' %s data", aname, tname);
# 567|
# 568|-> strptr[attrsz] = '\0';
# 569|
# 570| return exr_attr_string_init_static_with_length (
Error: CLANG_WARNING: [#def150]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/parse_header.c:975:30: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 973| EXR_REQ_COMP_STR);
# 974|
# 975|-> curpart->compression->uc = data;
# 976| curpart->comp_type = (exr_compression_t) data;
# 977| return rv;
Error: CLANG_WARNING: [#def151]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/parse_header.c:1155:28: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1153| EXR_REQ_LO_STR);
# 1154|
# 1155|-> curpart->lineOrder->uc = data;
# 1156| curpart->lineorder = data;
# 1157| return rv;
Error: CLANG_WARNING: [#def152]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/parse_header.c:2586:40: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value
# 2584| }
# 2585|
# 2586|-> ctxt->is_singlepart_tiled = (flags & EXR_TILED_FLAG) ? 1 : 0;
# 2587| if (ctxt->strict_header)
# 2588| {
Error: CLANG_WARNING: [#def153]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/parse_header.c:2633:23: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 2631| }
# 2632|
# 2633|-> if (next_byte == '\0')
# 2634| {
# 2635| rv = internal_exr_validate_read_part (ctxt, curpart);
Error: CLANG_WARNING: [#def154]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/parse_header.c:2674:13: warning[deadcode.DeadStores]: Value stored to 'rv' is never read
# 2672| {
# 2673| if (ctxt->strict_header) { break; }
# 2674|-> rv = EXR_ERR_SUCCESS;
# 2675| }
# 2676| } while (1);
Error: CLANG_WARNING: [#def155]
openexr-3.2.4-build/openexr-3.2.4/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): [#def156]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/preview.c: scope_hint: In function ‘exr_attr_preview_create’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/preview.c:67:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/preview.c:8: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/preview.c:21:5: note: in expansion of macro ‘INTERN_EXR_PROMOTE_CONTEXT_OR_ERROR’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_structs.h:226:47: note: in definition of macro ‘EXR_CONST_CAST’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/internal_structs.h:226: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: [#def157]
openexr-3.2.4-build/openexr-3.2.4/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: [#def158]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRCoreTest/general_attr.cpp:28: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/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.2.4-build/openexr-3.2.4/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: [#def159]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRCoreTest/general_attr.cpp:29: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRCore/string_vector.c:97:49: warning[core.NullDereference]: Access to field 'strings' results in a dereference of a null pointer (loaded from variable 'sv')
# 95| rv = exr_attr_string_set_with_length (
# 96| ctxt,
# 97|-> EXR_CONST_CAST (exr_attr_string_t*, sv->strings + i),
# 98| src->strings[i].str,
# 99| src->strings[i].length);
Error: CPPCHECK_WARNING: [#def160]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRUtil/ImfCheckFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def161]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRUtil/ImfCheckFile.cpp:486:36: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 484| for (int k = 0; k < channelCount; k++)
# 485| {
# 486|-> fileBufferSize += localSampleCount[j];
# 487| //
# 488| // don't read samples which require a lot of memory in reduceMemory mode
Error: COMPILER_WARNING (CWE-563): [#def162]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRUtil/ImfCheckFile.cpp: scope_hint: In function ‘bool Imf_3_2::{anonymous}::readCoreTiledPart(exr_context_t, int, bool, bool)’
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRUtil/ImfCheckFile.cpp:1406:22: warning[-Wunused-but-set-variable]: variable ‘frv’ set but not used
# 1406 | exr_result_t rv, frv;
# | ^~~
# 1404| exr_context_t f, int part, bool reduceMemory, bool reduceTime)
# 1405| {
# 1406|-> exr_result_t rv, frv;
# 1407|
# 1408| exr_attr_box2i_t datawin;
Error: CLANG_WARNING: [#def163]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRUtil/ImfCheckFile.cpp:1424:5: warning[deadcode.DeadStores]: Value stored to 'frv' is never read
# 1422| if (rv != EXR_ERR_SUCCESS) return true;
# 1423|
# 1424|-> frv = rv;
# 1425| bool keepgoing = true;
# 1426| for (int32_t ylevel = 0; keepgoing && ylevel < levelsy; ++ylevel)
Error: CLANG_WARNING: [#def164]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRUtil/ImfCheckFile.cpp:1434:17: warning[deadcode.DeadStores]: Value stored to 'frv' is never read
# 1432| if (rv != EXR_ERR_SUCCESS)
# 1433| {
# 1434|-> frv = rv;
# 1435| if (reduceTime)
# 1436| {
Error: CLANG_WARNING: [#def165]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRUtil/ImfCheckFile.cpp:1447:17: warning[deadcode.DeadStores]: Value stored to 'frv' is never read
# 1445| if (rv != EXR_ERR_SUCCESS)
# 1446| {
# 1447|-> frv = rv;
# 1448| if (reduceTime)
# 1449| {
Error: CLANG_WARNING: [#def166]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRUtil/ImfCheckFile.cpp:1477:25: warning[deadcode.DeadStores]: Value stored to 'frv' is never read
# 1475| if (rv != EXR_ERR_SUCCESS)
# 1476| {
# 1477|-> frv = rv;
# 1478| if (reduceTime)
# 1479| {
Error: CLANG_WARNING: [#def167]
openexr-3.2.4-build/openexr-3.2.4/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: [#def168]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRUtil/ImfCheckFile.cpp:1530:29: warning[deadcode.DeadStores]: Value stored to 'frv' is never read
# 1528| if (rv != EXR_ERR_SUCCESS)
# 1529| {
# 1530|-> frv = rv;
# 1531| keepgoing = false;
# 1532| break;
Error: CLANG_WARNING: [#def169]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRUtil/ImfCheckFile.cpp:1540:29: warning[deadcode.DeadStores]: Value stored to 'frv' is never read
# 1538| if (rv != EXR_ERR_SUCCESS)
# 1539| {
# 1540|-> frv = rv;
# 1541| if (reduceTime)
# 1542| {
Error: CLANG_WARNING: [#def170]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRUtil/ImfCheckFile.cpp:1573:29: warning[deadcode.DeadStores]: Value stored to 'frv' is never read
# 1571| if (rv != EXR_ERR_SUCCESS)
# 1572| {
# 1573|-> frv = rv;
# 1574| if (reduceTime)
# 1575| {
Error: CPPCHECK_WARNING: [#def171]
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXRUtil/ImfImage.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def172]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRCoreTest/buffer.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def173]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRCoreTest/compression.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def174]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRCoreTest/deep.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def175]
openexr-3.2.4-build/openexr-3.2.4/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: [#def176]
openexr-3.2.4-build/openexr-3.2.4/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: [#def177]
openexr-3.2.4-build/openexr-3.2.4/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: [#def178]
openexr-3.2.4-build/openexr-3.2.4/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): [#def179]
openexr-3.2.4-build/openexr-3.2.4/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: [#def180]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRCoreTest/performance.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def181]
openexr-3.2.4-build/openexr-3.2.4/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: [#def182]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRCoreTest/read.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def183]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRCoreTest/write.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def184]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/compareB44.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def185]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testBackwardCompatibility.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def186]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testCompositeDeepScanLine.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def187]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testCompression.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def188]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testCopyDeepScanLine.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def189]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testCopyDeepTiled.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def190]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testCopyMultiPartFile.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def191]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testCopyMultiPartFile.cpp:1043: warning[uninitvar]: Uninitialized variable: partNumber
# 1041| catch (...)
# 1042| {
# 1043|-> cout << "Error while reading part " << partNumber << endl << flush;
# 1044| throw;
# 1045| }
Error: CPPCHECK_WARNING: [#def192]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testDeepScanLineBasic.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def193]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testDeepScanLineHuge.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-369): [#def194]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testDeepScanLineHuge.cpp:155: error[zerodiv]: Division by zero.
# 153| // compute ideal number of samples per pixel assuming we want abotut 15GiB of data
# 154| int samples_per_pixel =
# 155|-> int (numGib * 1024l * 1024l * 1024l / uint64_t (width * height)) /
# 156| bytes_per_sample;
# 157|
Error: CPPCHECK_WARNING: [#def195]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testDeepScanLineMultipleRead.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def196]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testDeepTiledBasic.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def197]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testDeepTiledBasic.cpp:378:33: warning[core.CallAndMessage]: Argument to 'delete[]' is uninitialized
# 376| {
# 377| if (channelTypes[k] == 0)
# 378|-> delete[](unsigned int*) data[k][i][j];
# 379| if (channelTypes[k] == 1)
# 380| delete[](half*) data[k][i][j];
Error: CLANG_WARNING: [#def198]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testDeepTiledBasic.cpp:380:33: warning[core.CallAndMessage]: Argument to 'delete[]' is uninitialized
# 378| delete[](unsigned int*) data[k][i][j];
# 379| if (channelTypes[k] == 1)
# 380|-> delete[](half*) data[k][i][j];
# 381| if (channelTypes[k] == 2)
# 382| delete[](float*) data[k][i][j];
Error: CLANG_WARNING: [#def199]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testDeepTiledBasic.cpp:382:33: warning[core.CallAndMessage]: Argument to 'delete[]' is uninitialized
# 380| delete[](half*) data[k][i][j];
# 381| if (channelTypes[k] == 2)
# 382|-> delete[](float*) data[k][i][j];
# 383| }
# 384| }
Error: CPPCHECK_WARNING: [#def200]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testDwaCompressorSimd.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def201]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testDwaLookups.cpp: scope_hint: In function ‘void testToNonlinear()’
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testDwaLookups.cpp:315:20: warning[-Wunused-but-set-variable]: variable ‘toNonlinear’ set but not used
# 315 | unsigned short toNonlinear[65536];
# | ^~~~~~~~~~~
# 313| testToNonlinear ()
# 314| {
# 315|-> unsigned short toNonlinear[65536];
# 316|
# 317| toNonlinear[0] = 0;
Error: CPPCHECK_WARNING: [#def202]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testExistingStreams.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def203]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testFutureProofing.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def204]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testFutureProofing.cpp:1089: warning[uninitvar]: Uninitialized variable: partNumber
# 1087| catch (...)
# 1088| {
# 1089|-> cout << "Error while reading part " << partNumber << endl << flush;
# 1090| throw;
# 1091| }
Error: COMPILER_WARNING: [#def205]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testHeader.cpp:37:15: warning[-Wdangling-reference]: possibly dangling reference to a temporary
# 37 | auto& comparand = header.find("displayWindow").attribute();
# | ^~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testHeader.cpp:37:65: note: the temporary was destroyed at the end of the full expression ‘header.Imf_3_2::Header::find(((const char*)"displayWindow")).Imf_3_2::Header::ConstIterator::attribute()’
# 37 | auto& comparand = header.find("displayWindow").attribute();
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testHeader.cpp: scope_hint: In instantiation of ‘void Test<Header>::testIterators(const std::string&) [with Header = const Imf_3_2::Header; std::string = std::__cxx11::basic_string<char>]’
#/builddir/build/BUILD/openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testHeader.cpp:98:37: required from here
# 98 | headerTest.testIterators("displayWindow");
# | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
# 35| {
# 36| Header header;
# 37|-> auto& comparand = header.find("displayWindow").attribute();
# 38| auto& attribute = header[name];
# 39| assert(&attribute == &comparand);
Error: COMPILER_WARNING: [#def206]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testHeader.cpp:46:15: warning[-Wdangling-reference]: possibly dangling reference to a temporary
# 46 | auto& comparand = header.find("displayWindow").attribute();
# | ^~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testHeader.cpp:46:65: note: the temporary was destroyed at the end of the full expression ‘header.Imf_3_2::Header::find(((const char*)"displayWindow")).Imf_3_2::Header::ConstIterator::attribute()’
# 46 | auto& comparand = header.find("displayWindow").attribute();
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
# 44| Header header;
# 45|
# 46|-> auto& comparand = header.find("displayWindow").attribute();
# 47|
# 48| for (auto iterator = header.begin(); iterator != header.end(); ++iterator)
Error: CPPCHECK_WARNING: [#def207]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testHuf.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def208]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testIDManifest.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def209]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testInputPart.cpp:602: warning[uninitvar]: Uninitialized variable: partNumber
# 600| catch (...)
# 601| {
# 602|-> cout << "Error while reading part " << partNumber << endl << flush;
# 603| throw;
# 604| }
Error: CPPCHECK_WARNING: [#def210]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testLargeDataWindowOffsets.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def211]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testMultiPartApi.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def212]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testMultiPartApi.cpp:624: warning[uninitvar]: Uninitialized variable: partNumber
# 622| catch (...)
# 623| {
# 624|-> cout << "Error while reading part " << partNumber << endl << flush;
# 625| throw;
# 626| }
Error: CPPCHECK_WARNING: [#def213]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testMultiPartFileMixingBasic.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def214]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testMultiPartFileMixingBasic.cpp:1061: warning[uninitvar]: Uninitialized variable: partNumber
# 1059| catch (...)
# 1060| {
# 1061|-> cout << "Error while reading part " << partNumber << endl << flush;
# 1062| throw;
# 1063| }
Error: CPPCHECK_WARNING (CWE-398): [#def215]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testMultiPartFileMixingBasic.cpp:1744: error[containerOutOfBounds]: Out of bounds access in expression 'new_offset_tables[0]' because 'new_offset_tables' is empty.
# 1742| // write blank offset table
# 1743| vector<uint64_t> new_offset_tables (size);
# 1744|-> fwrite (&new_offset_tables[0], sizeof (uint64_t), size, f);
# 1745|
# 1746| fclose (f);
Error: CPPCHECK_WARNING: [#def216]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testMultiPartSharedAttributes.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def217]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testMultiPartThreading.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def218]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testMultiPartThreading.cpp:795: warning[uninitvar]: Uninitialized variable: partNumber
# 793| catch (...)
# 794| {
# 795|-> cout << "Error while reading part " << partNumber << endl << flush;
# 796| throw;
# 797| }
Error: CPPCHECK_WARNING: [#def219]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testMultiTiledPartThreading.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def220]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testOptimized.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def221]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testOptimizedInterleavePatterns.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def222]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testPartHelper.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def223]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testPreviewImage.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def224]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testRgba.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def225]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testScanLineApi.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def226]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testStandardAttributes.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def227]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testStandardAttributes.cpp:15: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testStandardAttributes.cpp: scope_hint: In function ‘void {anonymous}::generatedFunctions()’
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testStandardAttributes.cpp:902:35: warning[-Wdeprecated-declarations]: ‘bool Imf_3_2::hasRenderingTransform(const Header&)’ is deprecated: this attribute is obsolete as of OpenEXR v3.2
# 902 | assert (hasRenderingTransform (header) == false);
# | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testStandardAttributes.cpp:14: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.h:46:32: note: declared here
# 46 | #define IMF_HAS_SUFFIX(suffix) has##suffix
# | ^~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.h:70:21: note: in expansion of macro ‘IMF_HAS_SUFFIX’
# 70 | IMF_EXPORT bool IMF_HAS_SUFFIX (suffix) (const Header& header); \
# | ^~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.h:629:1: note: in expansion of macro ‘IMF_STD_ATTRIBUTE_DEF_DEPRECATED’
# 629 | IMF_STD_ATTRIBUTE_DEF_DEPRECATED (renderingTransform, RenderingTransform, std::string, "this attribute is obsolete as of OpenEXR v3.2")
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 900| assert (hasWhiteLuminance (header) == false);
# 901| assert (hasAdoptedNeutral (header) == false);
# 902|-> assert (hasRenderingTransform (header) == false);
# 903| assert (hasLookModTransform (header) == false);
# 904| assert (hasEnvmap (header) == false);
Error: COMPILER_WARNING (CWE-477): [#def228]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testStandardAttributes.cpp:903:33: warning[-Wdeprecated-declarations]: ‘bool Imf_3_2::hasLookModTransform(const Header&)’ is deprecated: this attribute is obsolete as of OpenEXR v3.2
# 903 | assert (hasLookModTransform (header) == false);
# | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.h:46:32: note: declared here
# 46 | #define IMF_HAS_SUFFIX(suffix) has##suffix
# | ^~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.h:70:21: note: in expansion of macro ‘IMF_HAS_SUFFIX’
# 70 | IMF_EXPORT bool IMF_HAS_SUFFIX (suffix) (const Header& header); \
# | ^~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/src/lib/OpenEXR/ImfStandardAttributes.h:630:1: note: in expansion of macro ‘IMF_STD_ATTRIBUTE_DEF_DEPRECATED’
# 630 | IMF_STD_ATTRIBUTE_DEF_DEPRECATED (lookModTransform, LookModTransform, std::string, "this attribute is obsolete as of OpenEXR v3.2")
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 901| assert (hasAdoptedNeutral (header) == false);
# 902| assert (hasRenderingTransform (header) == false);
# 903|-> assert (hasLookModTransform (header) == false);
# 904| assert (hasEnvmap (header) == false);
# 905| assert (hasWrapmodes (header) == false);
Error: CPPCHECK_WARNING: [#def229]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testTiledCompression.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def230]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testTiledCopyPixels.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def231]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testTiledLineOrder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def232]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRTest/testTiledRgba.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def233]
openexr-3.2.4-build/openexr-3.2.4/src/test/OpenEXRUtilTest/testIO.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def234]
openexr-3.2.4-build/openexr-3.2.4/website/src/all.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def235]
openexr-3.2.4-build/openexr-3.2.4/website/src/all.cpp:128: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/website/src/envmap.cpp: scope_hint: In function ‘void envmap()’
openexr-3.2.4-build/openexr-3.2.4/website/src/envmap.cpp:8:12: warning[-Wunused-variable]: unused variable ‘type’
# 8 | Envmap type = envmap (file.header());
# | ^~~~
# 6| if (hasEnvmap (file.header()))
# 7| {
# 8|-> Envmap type = envmap (file.header());
# 9| // ...
# 10| }
Error: CLANG_WARNING: [#def236]
openexr-3.2.4-build/openexr-3.2.4/website/src/all.cpp:128: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/website/src/envmap.cpp:8:12: warning[deadcode.DeadStores]: Value stored to 'type' during its initialization is never read
# 6| if (hasEnvmap (file.header()))
# 7| {
# 8|-> Envmap type = envmap (file.header());
# 9| // ...
# 10| }
Error: COMPILER_WARNING (CWE-195): [#def237]
openexr-3.2.4-build/openexr-3.2.4/website/src/all.cpp:113: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/website/src/previewImageExamples.cpp: scope_hint: In function ‘void accessPreviewImage(const char*)’
openexr-3.2.4-build/openexr-3.2.4/website/src/previewImageExamples.cpp:11:27: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’
# 11 | for (int y = 0; y < preview.height(); ++y)
# | ~~^~~~~~~~~~~~~~~~~~
# 9| const PreviewImage &preview = file.header().previewImage();
# 10|
# 11|-> for (int y = 0; y < preview.height(); ++y)
# 12| {
# 13| for (int x = 0; x < preview.width(); ++x)
Error: COMPILER_WARNING (CWE-195): [#def238]
openexr-3.2.4-build/openexr-3.2.4/website/src/previewImageExamples.cpp:13:31: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’
# 13 | for (int x = 0; x < preview.width(); ++x)
# | ~~^~~~~~~~~~~~~~~~~
# 11| for (int y = 0; y < preview.height(); ++y)
# 12| {
# 13|-> for (int x = 0; x < preview.width(); ++x)
# 14| {
# 15|
Error: COMPILER_WARNING (CWE-563): [#def239]
openexr-3.2.4-build/openexr-3.2.4/website/src/previewImageExamples.cpp:16:36: warning[-Wunused-variable]: unused variable ‘pixel’
# 16 | const PreviewRgba &pixel = preview.pixel (x, y);
# | ^~~~~
# 14| {
# 15|
# 16|-> const PreviewRgba &pixel = preview.pixel (x, y);
# 17|
# 18| // ...
Error: COMPILER_WARNING (CWE-563): [#def240]
openexr-3.2.4-build/openexr-3.2.4/website/src/all.cpp:110: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/website/src/readChannelsAndLayers.cpp: scope_hint: In function ‘void readChannels(const char*)’
openexr-3.2.4-build/openexr-3.2.4/website/src/readChannelsAndLayers.cpp:11:24: warning[-Wunused-variable]: unused variable ‘channel’
# 11 | const Channel &channel = i.channel();
# | ^~~~~~~
# 9| for (ChannelList::ConstIterator i = channels.begin(); i != channels.end(); ++i)
# 10| {
# 11|-> const Channel &channel = i.channel();
# 12| // ...
# 13| }
Error: COMPILER_WARNING (CWE-563): [#def241]
openexr-3.2.4-build/openexr-3.2.4/website/src/readChannelsAndLayers.cpp:19:20: warning[-Wunused-variable]: unused variable ‘channel’
# 19 | const Channel &channel = channels["G"];
# | ^~~~~~~
# 17| // const ChannelList &channels = file.header().channels();
# 18|
# 19|-> const Channel &channel = channels["G"];
# 20|
# 21| const Channel *channelPtr = channels.findChannel("G");
Error: COMPILER_WARNING (CWE-563): [#def242]
openexr-3.2.4-build/openexr-3.2.4/website/src/readChannelsAndLayers.cpp:21:20: warning[-Wunused-variable]: unused variable ‘channelPtr’
# 21 | const Channel *channelPtr = channels.findChannel("G");
# | ^~~~~~~~~~
# 19| const Channel &channel = channels["G"];
# 20|
# 21|-> const Channel *channelPtr = channels.findChannel("G");
# 22| // [end directAccess]
# 23|
Error: CLANG_WARNING: [#def243]
openexr-3.2.4-build/openexr-3.2.4/website/src/all.cpp:110: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/website/src/readChannelsAndLayers.cpp:21:20: warning[deadcode.DeadStores]: Value stored to 'channelPtr' during its initialization is never read
# 19| const Channel &channel = channels["G"];
# 20|
# 21|-> const Channel *channelPtr = channels.findChannel("G");
# 22| // [end directAccess]
# 23|
Error: COMPILER_WARNING (CWE-457): [#def244]
openexr-3.2.4-build/openexr-3.2.4/website/src/readTiled1.cpp:45:17: warning[-Wuninitialized]: ‘levelX’ is used uninitialized
# 45 | in.readTile (tileX, tileY, levelX, levelY);
# | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/website/src/readTiled1.cpp:43:23: note: ‘levelX’ was declared here
# 43 | int tileX, tileY, levelX, levelY, tileXMin, tileXMax, tileYMin, tileYMax;
# | ^~~~~~
# 43| int tileX, tileY, levelX, levelY, tileXMin, tileXMax, tileYMin, tileYMax;
# 44| // [begin v1]
# 45|-> in.readTile (tileX, tileY, levelX, levelY);
# 46| // [end v1]
# 47| in.readTiles (tileXMin, tileXMax, tileYMin, tileYMax, levelX, levelY);
Error: COMPILER_WARNING (CWE-457): [#def245]
openexr-3.2.4-build/openexr-3.2.4/website/src/readTiled1.cpp:45:17: warning[-Wuninitialized]: ‘levelY’ is used uninitialized
# 45 | in.readTile (tileX, tileY, levelX, levelY);
# | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/website/src/readTiled1.cpp:43:31: note: ‘levelY’ was declared here
# 43 | int tileX, tileY, levelX, levelY, tileXMin, tileXMax, tileYMin, tileYMax;
# | ^~~~~~
# 43| int tileX, tileY, levelX, levelY, tileXMin, tileXMax, tileYMin, tileYMax;
# 44| // [begin v1]
# 45|-> in.readTile (tileX, tileY, levelX, levelY);
# 46| // [end v1]
# 47| in.readTiles (tileXMin, tileXMax, tileYMin, tileYMax, levelX, levelY);
Error: COMPILER_WARNING (CWE-457): [#def246]
openexr-3.2.4-build/openexr-3.2.4/website/src/all.cpp:101: included_from: Included from here.
openexr-3.2.4-build/openexr-3.2.4/website/src/readTiled1.cpp: scope_hint: In function ‘readTiledOtherVersions(char const*)’
openexr-3.2.4-build/openexr-3.2.4/website/src/readTiled1.cpp:45:17: warning[-Wuninitialized]: ‘tileX’ is used uninitialized
# 45 | in.readTile (tileX, tileY, levelX, levelY);
# | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/website/src/readTiled1.cpp:43:9: note: ‘tileX’ was declared here
# 43 | int tileX, tileY, levelX, levelY, tileXMin, tileXMax, tileYMin, tileYMax;
# | ^~~~~
# 43| int tileX, tileY, levelX, levelY, tileXMin, tileXMax, tileYMin, tileYMax;
# 44| // [begin v1]
# 45|-> in.readTile (tileX, tileY, levelX, levelY);
# 46| // [end v1]
# 47| in.readTiles (tileXMin, tileXMax, tileYMin, tileYMax, levelX, levelY);
Error: COMPILER_WARNING (CWE-457): [#def247]
openexr-3.2.4-build/openexr-3.2.4/website/src/readTiled1.cpp:45:17: warning[-Wuninitialized]: ‘tileY’ is used uninitialized
# 45 | in.readTile (tileX, tileY, levelX, levelY);
# | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/website/src/readTiled1.cpp:43:16: note: ‘tileY’ was declared here
# 43 | int tileX, tileY, levelX, levelY, tileXMin, tileXMax, tileYMin, tileYMax;
# | ^~~~~
# 43| int tileX, tileY, levelX, levelY, tileXMin, tileXMax, tileYMin, tileYMax;
# 44| // [begin v1]
# 45|-> in.readTile (tileX, tileY, levelX, levelY);
# 46| // [end v1]
# 47| in.readTiles (tileXMin, tileXMax, tileYMin, tileYMax, levelX, levelY);
Error: COMPILER_WARNING (CWE-457): [#def248]
openexr-3.2.4-build/openexr-3.2.4/website/src/readTiled1.cpp:47:18: warning[-Wuninitialized]: ‘tileXMax’ is used uninitialized
# 47 | in.readTiles (tileXMin, tileXMax, tileYMin, tileYMax, levelX, levelY);
# | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/website/src/readTiled1.cpp:43:49: note: ‘tileXMax’ was declared here
# 43 | int tileX, tileY, levelX, levelY, tileXMin, tileXMax, tileYMin, tileYMax;
# | ^~~~~~~~
# 45| in.readTile (tileX, tileY, levelX, levelY);
# 46| // [end v1]
# 47|-> in.readTiles (tileXMin, tileXMax, tileYMin, tileYMax, levelX, levelY);
# 48| // [end v2]
# 49| }
Error: COMPILER_WARNING (CWE-457): [#def249]
openexr-3.2.4-build/openexr-3.2.4/website/src/readTiled1.cpp:47:18: warning[-Wuninitialized]: ‘tileXMin’ is used uninitialized
# 47 | in.readTiles (tileXMin, tileXMax, tileYMin, tileYMax, levelX, levelY);
# | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/website/src/readTiled1.cpp:43:39: note: ‘tileXMin’ was declared here
# 43 | int tileX, tileY, levelX, levelY, tileXMin, tileXMax, tileYMin, tileYMax;
# | ^~~~~~~~
# 45| in.readTile (tileX, tileY, levelX, levelY);
# 46| // [end v1]
# 47|-> in.readTiles (tileXMin, tileXMax, tileYMin, tileYMax, levelX, levelY);
# 48| // [end v2]
# 49| }
Error: COMPILER_WARNING (CWE-457): [#def250]
openexr-3.2.4-build/openexr-3.2.4/website/src/readTiled1.cpp:47:18: warning[-Wuninitialized]: ‘tileYMax’ is used uninitialized
# 47 | in.readTiles (tileXMin, tileXMax, tileYMin, tileYMax, levelX, levelY);
# | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/website/src/readTiled1.cpp:43:69: note: ‘tileYMax’ was declared here
# 43 | int tileX, tileY, levelX, levelY, tileXMin, tileXMax, tileYMin, tileYMax;
# | ^~~~~~~~
# 45| in.readTile (tileX, tileY, levelX, levelY);
# 46| // [end v1]
# 47|-> in.readTiles (tileXMin, tileXMax, tileYMin, tileYMax, levelX, levelY);
# 48| // [end v2]
# 49| }
Error: COMPILER_WARNING (CWE-457): [#def251]
openexr-3.2.4-build/openexr-3.2.4/website/src/readTiled1.cpp:47:18: warning[-Wuninitialized]: ‘tileYMin’ is used uninitialized
# 47 | in.readTiles (tileXMin, tileXMax, tileYMin, tileYMax, levelX, levelY);
# | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
openexr-3.2.4-build/openexr-3.2.4/website/src/readTiled1.cpp:43:59: note: ‘tileYMin’ was declared here
# 43 | int tileX, tileY, levelX, levelY, tileXMin, tileXMax, tileYMin, tileYMax;
# | ^~~~~~~~
# 45| in.readTile (tileX, tileY, levelX, levelY);
# 46| // [end v1]
# 47|-> in.readTiles (tileXMin, tileXMax, tileYMin, tileYMax, levelX, levelY);
# 48| // [end v2]
# 49| }
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.2.4-2.fc41 |
store-results-to | /tmp/tmp4xv_i8va/openexr-3.2.4-2.fc41.tar.xz |
time-created | 2024-07-03 16:39:38 |
time-finished | 2024-07-03 16:46:13 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp4xv_i8va/openexr-3.2.4-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp4xv_i8va/openexr-3.2.4-2.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |