imath-3.1.11-2.fc41

List of Defects

Error: CPPCHECK_WARNING (CWE-758): [#def1]
imath-3.1.11-build/Imath-3.1.11/src/Imath/ImathColor.h:458: warning[objectIndex]: The address of variable 'r' might be accessed at non-zero index.
#  456|   Color4<T>::operator[] (int i) IMATH_NOEXCEPT
#  457|   {
#  458|->     return (&r)[i];
#  459|   }
#  460|   

Error: CPPCHECK_WARNING (CWE-758): [#def2]
imath-3.1.11-build/Imath-3.1.11/src/Imath/ImathColor.h:465: warning[objectIndex]: The address of variable 'r' might be accessed at non-zero index.
#  463|   Color4<T>::operator[] (int i) const IMATH_NOEXCEPT
#  464|   {
#  465|->     return (&r)[i];
#  466|   }
#  467|   

Error: CPPCHECK_WARNING: [#def3]
imath-3.1.11-build/Imath-3.1.11/src/Imath/ImathMatrixAlgo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-758): [#def4]
imath-3.1.11-build/Imath-3.1.11/src/Imath/ImathShear.h:314: warning[objectIndex]: The address of variable 'xy' might be accessed at non-zero index.
#  312|   Shear6<T>::operator[] (int i)
#  313|   {
#  314|->     return (&xy)[i]; // NOSONAR - suppress SonarCloud bug report.
#  315|   }
#  316|   

Error: CPPCHECK_WARNING (CWE-758): [#def5]
imath-3.1.11-build/Imath-3.1.11/src/Imath/ImathShear.h:321: warning[objectIndex]: The address of variable 'xy' might be accessed at non-zero index.
#  319|   Shear6<T>::operator[] (int i) const
#  320|   {
#  321|->     return (&xy)[i]; // NOSONAR - suppress SonarCloud bug report.
#  322|   }
#  323|   

Error: CPPCHECK_WARNING (CWE-758): [#def6]
imath-3.1.11-build/Imath-3.1.11/src/Imath/ImathVec.h:969: warning[objectIndex]: The address of variable 'x' might be accessed at non-zero index.
#  967|   Vec2<T>::operator[] (int i) IMATH_NOEXCEPT
#  968|   {
#  969|->     return (&x)[i]; // NOSONAR - suppress SonarCloud bug report.
#  970|   }
#  971|   

Error: CPPCHECK_WARNING (CWE-758): [#def7]
imath-3.1.11-build/Imath-3.1.11/src/Imath/ImathVec.h:976: warning[objectIndex]: The address of variable 'x' might be accessed at non-zero index.
#  974|   Vec2<T>::operator[] (int i) const IMATH_NOEXCEPT
#  975|   {
#  976|->     return (&x)[i]; // NOSONAR - suppress SonarCloud bug report.
#  977|   }
#  978|   

Error: CPPCHECK_WARNING (CWE-758): [#def8]
imath-3.1.11-build/Imath-3.1.11/src/Imath/ImathVec.h:1373: warning[objectIndex]: The address of variable 'x' might be accessed at non-zero index.
# 1371|   Vec3<T>::operator[] (int i) IMATH_NOEXCEPT
# 1372|   {
# 1373|->     return (&x)[i]; // NOSONAR - suppress SonarCloud bug report.
# 1374|   }
# 1375|   

Error: CPPCHECK_WARNING (CWE-758): [#def9]
imath-3.1.11-build/Imath-3.1.11/src/Imath/ImathVec.h:1380: warning[objectIndex]: The address of variable 'x' might be accessed at non-zero index.
# 1378|   Vec3<T>::operator[] (int i) const IMATH_NOEXCEPT
# 1379|   {
# 1380|->     return (&x)[i]; // NOSONAR - suppress SonarCloud bug report.
# 1381|   }
# 1382|   

Error: CPPCHECK_WARNING (CWE-758): [#def10]
imath-3.1.11-build/Imath-3.1.11/src/Imath/ImathVec.h:1841: warning[objectIndex]: The address of variable 'x' might be accessed at non-zero index.
# 1839|   Vec4<T>::operator[] (int i) IMATH_NOEXCEPT
# 1840|   {
# 1841|->     return (&x)[i]; // NOSONAR - suppress SonarCloud bug report.
# 1842|   }
# 1843|   

Error: CPPCHECK_WARNING (CWE-758): [#def11]
imath-3.1.11-build/Imath-3.1.11/src/Imath/ImathVec.h:1848: warning[objectIndex]: The address of variable 'x' might be accessed at non-zero index.
# 1846|   Vec4<T>::operator[] (int i) const IMATH_NOEXCEPT
# 1847|   {
# 1848|->     return (&x)[i]; // NOSONAR - suppress SonarCloud bug report.
# 1849|   }
# 1850|   

Error: CPPCHECK_WARNING: [#def12]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/half_c_main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testBox.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def15]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testBoxAlgo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def16]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testClassification.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def17]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testColor.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testError.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testExtractEuler.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testExtractSHRT.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testFrustum.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testFrustumTest.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testInterop.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testInvert.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def25]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testJacobiEigenSolver.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def26]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testLineAlgo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def27]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testMatrix.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def28]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testMiscMatrixAlgo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def29]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testNoInterop.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def30]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testProcrustes.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def31]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testQuat.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def32]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testQuatSetRotation.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def33]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testQuatSlerp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def34]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testRandom.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def35]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testRoots.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def36]
imath-3.1.11-build/Imath-3.1.11/src/ImathTest/testTinySVD.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def37]
imath-3.1.11-build/Imath-3.1.11/src/python/PyImath/PyImathFixedVArray.cpp: scope_hint: In member function ‘__ct_base ’
imath-3.1.11-build/Imath-3.1.11/src/python/PyImath/PyImathFixedVArray.cpp:101:44: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
#  101 |     boost::shared_array<std::vector<T> > a(new std::vector<T>[length]);
#      |                                            ^
/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)
#      |                          ^
#   99|       }
#  100|   
#  101|->     boost::shared_array<std::vector<T> > a(new std::vector<T>[length]);
#  102|    // Initial vectors in the array will be zero-length.
#  103|       _handle = a;

Error: COMPILER_WARNING: [#def38]
imath-3.1.11-build/Imath-3.1.11/src/python/PyImath/PyImathFixedVArray.cpp: scope_hint: In member function ‘__ct_base ’
imath-3.1.11-build/Imath-3.1.11/src/python/PyImath/PyImathFixedVArray.cpp:117:44: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
#  117 |     boost::shared_array<std::vector<T> > a(new std::vector<T>[length]);
#      |                                            ^
/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)
#      |                          ^
#  115|       }
#  116|   
#  117|->     boost::shared_array<std::vector<T> > a(new std::vector<T>[length]);
#  118|       for (Py_ssize_t i = 0; i < length; ++i)
#  119|       {

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-212.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameimath-3.1.11-2.fc41
store-results-to/tmp/tmp17knsvst/imath-3.1.11-2.fc41.tar.xz
time-created2024-07-03 13:32:45
time-finished2024-07-03 13:40:23
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp17knsvst/imath-3.1.11-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp17knsvst/imath-3.1.11-2.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9