imath-3.1.12-1.fc42

List of Findings

Error: CPPCHECK_WARNING (CWE-758): [#def1]
imath-3.1.12-build/Imath-3.1.12/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.12-build/Imath-3.1.12/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 (CWE-758): [#def3]
imath-3.1.12-build/Imath-3.1.12/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): [#def4]
imath-3.1.12-build/Imath-3.1.12/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): [#def5]
imath-3.1.12-build/Imath-3.1.12/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): [#def6]
imath-3.1.12-build/Imath-3.1.12/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): [#def7]
imath-3.1.12-build/Imath-3.1.12/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): [#def8]
imath-3.1.12-build/Imath-3.1.12/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): [#def9]
imath-3.1.12-build/Imath-3.1.12/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): [#def10]
imath-3.1.12-build/Imath-3.1.12/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: COMPILER_WARNING: [#def11]
imath-3.1.12-build/Imath-3.1.12/src/python/PyImath/PyImathFixedVArray.cpp: scope_hint: In member function ‘__ct_base ’
imath-3.1.12-build/Imath-3.1.12/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: [#def12]
imath-3.1.12-build/Imath-3.1.12/src/python/PyImath/PyImathFixedVArray.cpp: scope_hint: In member function ‘__ct_base ’
imath-3.1.12-build/Imath-3.1.12/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-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-210.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameimath-3.1.12-1.fc42
store-results-to/tmp/tmpj_hs9sea/imath-3.1.12-1.fc42.tar.xz
time-created2024-11-13 00:27:11
time-finished2024-11-13 00:33:29
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpj_hs9sea/imath-3.1.12-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpj_hs9sea/imath-3.1.12-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9