1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2013 David Malcolm <dmalcolm@redhat.com>
Copyright 2013 Red Hat, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
-->
<analysis>
<metadata>
<generator name="cpychecker" version="0.11"/>
<sut>
<source-rpm name="python-ethtool" version="0.7"
release="4.fc19" build-arch="x86_64"/>
</sut>
</metadata>
<results>
<issue cwe="401" test-id="refcount-too-high">
<!-- Example of a report with a trace -->
<message>ob_refcnt of '*item' is 1 too high</message>
<notes>was expecting final item->ob_refcnt to be N + 1 (for some unknown N)
due to object being referenced by: PyListObject.ob_item[0]
but final item->ob_refcnt is N + 2</notes>
<location>
<file given-path="examples/python-src-example.c">
<hash alg="sha1" hexdigest="6ba29daa94d64b48071e299a79f2a00dcd99eeb1"/>
</file>
<function name="make_a_list_of_random_ints_badly"/>
<point line="40" column="4"/>
</location>
<trace>
<state>
<location>
<file given-path="examples/python-src-example.c">
<hash alg="sha1" hexdigest="6ba29daa94d64b48071e299a79f2a00dcd99eeb1"/>
</file>
<function name="make_a_list_of_random_ints_badly"/>
<point line="36" column="14"/>
</location>
<notes>PyLongObject allocated at: item = PyLong_FromLong(random());</notes>
</state>
<state>
<location>
<file given-path="examples/python-src-example.c">
<hash alg="sha1" hexdigest="6ba29daa94d64b48071e299a79f2a00dcd99eeb1"/>
</file>
<function name="make_a_list_of_random_ints_badly"/>
<point line="37" column="8"/>
</location>
<notes>when PyList_Append() succeeds</notes>
</state>
<state>
<location>
<file given-path="examples/python-src-example.c">
<hash alg="sha1" hexdigest="6ba29daa94d64b48071e299a79f2a00dcd99eeb1"/>
</file>
<function name="make_a_list_of_random_ints_badly"/>
<point line="40" column="4"/>
</location>
</state>
</trace>
</issue>
</results>
</analysis>
|