93 lines
8.2 KiB
XML
93 lines
8.2 KiB
XML
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
|
<results version="2">
|
||
|
|
<cppcheck version="2.20.0"/>
|
||
|
|
<errors>
|
||
|
|
<error id="missingIncludeSystem" severity="information" msg="Include file: <iostream> not found. Please note: Standard library headers do not need to be provided to get proper results." verbose="Include file: <iostream> not found. Please note: Standard library headers do not need to be provided to get proper results.">
|
||
|
|
<location file="src/errors.cpp" line="2" column="2"/>
|
||
|
|
</error>
|
||
|
|
<error id="arrayIndexOutOfBounds" severity="error" msg="Array 'arr[3]' accessed at index 10, which is out of bounds." verbose="Array 'arr[3]' accessed at index 10, which is out of bounds." cwe="788" file0="src/errors.cpp">
|
||
|
|
<location file="src/errors.cpp" line="13" column="21" info="Array index out of bounds"/>
|
||
|
|
</error>
|
||
|
|
<error id="nullPointer" severity="error" msg="Null pointer dereference: p" verbose="Null pointer dereference: p" cwe="476" file0="src/errors.cpp">
|
||
|
|
<location file="src/errors.cpp" line="7" column="19" info="Null pointer dereference"/>
|
||
|
|
<location file="src/errors.cpp" line="6" column="14" info="Assignment 'p=nullptr', assigned value is 0"/>
|
||
|
|
<symbol>p</symbol>
|
||
|
|
</error>
|
||
|
|
<error id="constVariablePointer" severity="style" msg="Variable 'p' can be declared as pointer to const" verbose="Variable 'p' can be declared as pointer to const" cwe="398" file0="src/errors.cpp">
|
||
|
|
<location file="src/errors.cpp" line="6" column="10" info="Variable 'p' can be declared as pointer to const"/>
|
||
|
|
<symbol>p</symbol>
|
||
|
|
</error>
|
||
|
|
<error id="constVariable" severity="style" msg="Variable 'arr' can be declared as const array" verbose="Variable 'arr' can be declared as const array" cwe="398" file0="src/errors.cpp">
|
||
|
|
<location file="src/errors.cpp" line="12" column="9" info="Variable 'arr' can be declared as const array"/>
|
||
|
|
<symbol>arr</symbol>
|
||
|
|
</error>
|
||
|
|
<error id="uninitvar" severity="error" msg="Uninitialized variable: val" verbose="Uninitialized variable: val" cwe="457" file0="src/errors.cpp">
|
||
|
|
<location file="src/errors.cpp" line="19" column="9"/>
|
||
|
|
<symbol>val</symbol>
|
||
|
|
</error>
|
||
|
|
<error id="missingIncludeSystem" severity="information" msg="Include file: <cstdio> not found. Please note: Standard library headers do not need to be provided to get proper results." verbose="Include file: <cstdio> not found. Please note: Standard library headers do not need to be provided to get proper results.">
|
||
|
|
<location file="src/memory.cpp" line="2" column="2"/>
|
||
|
|
</error>
|
||
|
|
<error id="missingIncludeSystem" severity="information" msg="Include file: <cstdlib> not found. Please note: Standard library headers do not need to be provided to get proper results." verbose="Include file: <cstdlib> not found. Please note: Standard library headers do not need to be provided to get proper results.">
|
||
|
|
<location file="src/memory.cpp" line="3" column="2"/>
|
||
|
|
</error>
|
||
|
|
<error id="memleak" severity="error" msg="Memory leak: data" verbose="Memory leak: data" cwe="401" file0="src/memory.cpp">
|
||
|
|
<location file="src/memory.cpp" line="9" column="1"/>
|
||
|
|
<symbol>data</symbol>
|
||
|
|
</error>
|
||
|
|
<error id="doubleFree" severity="error" msg="Memory pointed to by 'p' is freed twice." verbose="Memory pointed to by 'p' is freed twice." cwe="415" file0="src/memory.cpp">
|
||
|
|
<location file="src/memory.cpp" line="15" column="12"/>
|
||
|
|
<location file="src/memory.cpp" line="14" column="5"/>
|
||
|
|
<symbol>p</symbol>
|
||
|
|
</error>
|
||
|
|
<error id="resourceLeak" severity="error" msg="Resource leak: fp" verbose="Resource leak: fp" cwe="775" file0="src/memory.cpp">
|
||
|
|
<location file="src/memory.cpp" line="22" column="1"/>
|
||
|
|
<symbol>fp</symbol>
|
||
|
|
</error>
|
||
|
|
<error id="constVariablePointer" severity="style" msg="Variable 'data' can be declared as pointer to const" verbose="Variable 'data' can be declared as pointer to const" cwe="398" file0="src/memory.cpp">
|
||
|
|
<location file="src/memory.cpp" line="7" column="10" info="Variable 'data' can be declared as pointer to const"/>
|
||
|
|
<symbol>data</symbol>
|
||
|
|
</error>
|
||
|
|
<error id="constVariablePointer" severity="style" msg="Variable 'fp' can be declared as pointer to const" verbose="Variable 'fp' can be declared as pointer to const" cwe="398" file0="src/memory.cpp">
|
||
|
|
<location file="src/memory.cpp" line="20" column="11" info="Variable 'fp' can be declared as pointer to const"/>
|
||
|
|
<symbol>fp</symbol>
|
||
|
|
</error>
|
||
|
|
<error id="uninitdata" severity="error" msg="Memory is allocated but not initialized: p" verbose="Memory is allocated but not initialized: p" cwe="457" file0="src/memory.cpp">
|
||
|
|
<location file="src/memory.cpp" line="14" column="12"/>
|
||
|
|
<symbol>p</symbol>
|
||
|
|
</error>
|
||
|
|
<error id="unreadVariable" severity="style" msg="Variable 'data' is assigned a value that is never used." verbose="Variable 'data' is assigned a value that is never used." cwe="563" file0="src/memory.cpp">
|
||
|
|
<location file="src/memory.cpp" line="7" column="15"/>
|
||
|
|
<symbol>data</symbol>
|
||
|
|
</error>
|
||
|
|
<error id="unusedAllocatedMemory" severity="style" msg="Variable 'data' is allocated memory that is never used." verbose="Variable 'data' is allocated memory that is never used." cwe="563" file0="src/memory.cpp">
|
||
|
|
<location file="src/memory.cpp" line="7" column="10"/>
|
||
|
|
<symbol>data</symbol>
|
||
|
|
</error>
|
||
|
|
<error id="unusedAllocatedMemory" severity="style" msg="Variable 'p' is allocated memory that is never used." verbose="Variable 'p' is allocated memory that is never used." cwe="563" file0="src/memory.cpp">
|
||
|
|
<location file="src/memory.cpp" line="13" column="10"/>
|
||
|
|
<symbol>p</symbol>
|
||
|
|
</error>
|
||
|
|
<error id="unreadVariable" severity="style" msg="Variable 'fp' is assigned a value that is never used." verbose="Variable 'fp' is assigned a value that is never used." cwe="563" file0="src/memory.cpp">
|
||
|
|
<location file="src/memory.cpp" line="20" column="14"/>
|
||
|
|
<symbol>fp</symbol>
|
||
|
|
</error>
|
||
|
|
<error id="missingIncludeSystem" severity="information" msg="Include file: <iostream> not found. Please note: Standard library headers do not need to be provided to get proper results." verbose="Include file: <iostream> not found. Please note: Standard library headers do not need to be provided to get proper results.">
|
||
|
|
<location file="src/utils.cpp" line="2" column="2"/>
|
||
|
|
</error>
|
||
|
|
<error id="unreadVariable" severity="style" msg="Variable 'a' is assigned a value that is never used." verbose="Variable 'a' is assigned a value that is never used." cwe="563" file0="src/utils.cpp">
|
||
|
|
<location file="src/utils.cpp" line="6" column="11"/>
|
||
|
|
<symbol>a</symbol>
|
||
|
|
</error>
|
||
|
|
<error id="unreadVariable" severity="style" msg="Variable 'x' is assigned a value that is never used." verbose="Variable 'x' is assigned a value that is never used." cwe="563" file0="src/utils.cpp">
|
||
|
|
<location file="src/utils.cpp" line="11" column="11"/>
|
||
|
|
<symbol>x</symbol>
|
||
|
|
</error>
|
||
|
|
<error id="unusedFunction" severity="style" msg="The function 'unused_function' is never used." verbose="The function 'unused_function' is never used." cwe="561">
|
||
|
|
<location file="src/utils.cpp" line="5" column="13"/>
|
||
|
|
<symbol>unused_function</symbol>
|
||
|
|
</error>
|
||
|
|
<error id="checkersReport" severity="information" msg="Active checkers: 173/186 (use --checkers-report=<filename> to see details)" verbose="Active checkers: 173/186 (use --checkers-report=<filename> to see details)"/>
|
||
|
|
</errors>
|
||
|
|
</results>
|