PVS-Studio Analysis Results


Date:02/05/20 20:09:36
PVS-Studio Version:7.03.32748.1771
Total Warnings (GA):16
Total Warnings (OP):12
Group Projects Location Level Code CWE Message
General Analysis

xatlas

xatlas.cpp:7810 High V1002 CWE-665 The 'RadixSort' class, containing pointers, constructor and destructor, is copied by the automatically generated operator=.
General Analysis

xatlas

xatlas.cpp:5125 High V730 CWE-457 Not all members of a class are initialized inside the constructor. Consider inspecting: m_facesLeft, m_boundaryGrid.
General Analysis

xatlas

xatlas.cpp:4923 High V730 CWE-457 Not all members of a class are initialized inside the constructor. Consider inspecting: mesh.
General Analysis

xatlas

xatlas.cpp:4352 High V730 CWE-457 Not all members of a class are initialized inside the constructor. Consider inspecting: m_area.
General Analysis

xatlas

xatlas.cpp:8822 High V595 CWE-476 The 'mesh.chartArray' pointer was utilized before it was verified against nullptr. Check lines: 8822, 8824.
General Analysis

xatlas

xatlas.cpp:8319 High V1002 CWE-665 The 'RadixSort' class, containing pointers, constructor and destructor, is copied by the automatically generated operator=.
General Analysis

xatlas

xatlas.cpp:3839 Medium V730 CWE-457 Not all members of a class are initialized inside the compiler generated constructor. Consider inspecting: ref.
General Analysis

xatlas

xatlas.cpp:2949 Medium V730 CWE-457 Not all members of a class are initialized inside the constructor. Consider inspecting: v0, v1.
General Analysis

xatlas

xatlas.cpp:692 Medium V730 CWE-457 Not all members of a class are initialized inside the constructor. Consider inspecting: x, y, z.
General Analysis

xatlas

xatlas.cpp:683 Medium V730 CWE-457 Not all members of a class are initialized inside the constructor. Consider inspecting: x, y.
General Analysis

xatlas

xatlas.cpp:530 Medium V730 CWE-457 Not all members of a class are initialized inside the constructor. Consider inspecting: x, y.
General Analysis

xatlas

xatlas.cpp:8831 Medium V547 CWE-571 Expression 'ctx->atlas.meshes' is always true.
General Analysis

xatlas

xatlas.cpp:8792 Medium V730 CWE-457 Not all members of a class are initialized inside the compiler generated constructor. Consider inspecting: atlas, taskScheduler.
General Analysis

xatlas

xatlas.cpp:9173 Medium V730 CWE-457 Not all members of a class are initialized inside the constructor. Consider inspecting: v0, v1.
General Analysis

xatlas

xatlas.cpp:4269 Medium V560 CWE-570 A part of conditional expression is always false: stepY == 0.
General Analysis

xatlas

xatlas.cpp:4265 Medium V560 CWE-570 A part of conditional expression is always false: stepX == 0.
Micro-optimizations

xatlas

xatlas.cpp:6452 Medium V807 Decreased performance. Consider creating a reference to avoid using the 'it.current()' expression repeatedly.
Micro-optimizations

xatlas

xatlas.cpp:4456 Medium V818 It is more efficient to use an initialization list 'v1(v0), v2(v2), v3(v1)' rather than an assignment operator.
Micro-optimizations

xatlas

xatlas.cpp:9748 Medium V813 Decreased performance. The 'chartOptions', 'packOptions' arguments should probably be rendered as constant references.
Micro-optimizations

xatlas

xatlas.cpp:3795 Medium V813 Decreased performance. The 'task' argument should probably be rendered as a constant reference.
Micro-optimizations

xatlas

xatlas.cpp:3727 Medium V802 On 64-bit platform, structure size can be reduced from 48 to 40 bytes by rearranging the fields according to their sizes in decreasing order.
Micro-optimizations

xatlas

xatlas.cpp:2105 Medium V802 On 64-bit platform, structure size can be reduced from 32 to 24 bytes by rearranging the fields according to their sizes in decreasing order.
Micro-optimizations

xatlas

xatlas.cpp:860 Medium V813 Decreased performance. The 'e1', 'e2' arguments should probably be rendered as constant references.
Micro-optimizations

xatlas

xatlas.cpp:6700 Medium V813 Decreased performance. The 'p1', 'p2', 'p3' arguments should probably be rendered as constant references.
Micro-optimizations

xatlas

xatlas.h:156 Medium V802 On 64-bit platform, structure size can be reduced from 56 to 48 bytes by rearranging the fields according to their sizes in decreasing order.
Micro-optimizations

xatlas

xatlas.h:89 Medium V802 On 64-bit platform, structure size can be reduced from 56 to 48 bytes by rearranging the fields according to their sizes in decreasing order.
Micro-optimizations

xatlas

xatlas.h:73 Medium V802 On 64-bit platform, structure size can be reduced from 48 to 40 bytes by rearranging the fields according to their sizes in decreasing order.
Micro-optimizations

xatlas

xatlas.h:54 Medium V802 On 64-bit platform, structure size can be reduced from 32 to 24 bytes by rearranging the fields according to their sizes in decreasing order.