Newly introduced defects
List of Defects
Error: CPPCHECK_WARNING: [#def1]
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: [#def2]
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: [#def3]
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: [#def4]
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: [#def5]
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: [#def6]
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: COMPILER_WARNING (CWE-477): [#def7]
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): [#def8]
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): [#def9]
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): [#def10]
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): [#def11]
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): [#def12]
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: CLANG_WARNING: [#def13]
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: [#def14]
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: CPPCHECK_WARNING: [#def15]
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: COMPILER_WARNING: [#def16]
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: [#def17]
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: COMPILER_WARNING (CWE-477): [#def18]
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): [#def19]
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: [#def20]
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): [#def21]
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: [#def22]
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): [#def23]
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): [#def24]
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): [#def25]
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): [#def26]
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): [#def27]
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): [#def28]
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: [#def29]
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): [#def30]
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): [#def31]
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): [#def32]
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): [#def33]
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): [#def34]
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): [#def35]
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): [#def36]
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): [#def37]
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 |
diffbase-analyzer-version-clang | 18.1.7 |
diffbase-analyzer-version-cppcheck | 2.14.2 |
diffbase-analyzer-version-gcc | 14.1.1 |
diffbase-analyzer-version-gcc-analyzer | 14.1.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-155.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | openexr-3.1.10-5.fc40 |
diffbase-store-results-to | /tmp/tmpe5yhzj2m/openexr-3.1.10-5.fc40.tar.xz |
diffbase-time-created | 2024-07-03 16:32:46 |
diffbase-time-finished | 2024-07-03 16:39:24 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpe5yhzj2m/openexr-3.1.10-5.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpe5yhzj2m/openexr-3.1.10-5.fc40.src.rpm' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
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 |
title | Newly introduced defects |
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 |