Debian Codegraph @

examples/example-5.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright 2013 David Malcolm <[email protected]>
4 Copyright 2013 Red Hat, Inc.
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with this library; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19 USA
20 -->
21 <analysis>
22 <metadata>
23 <generator name="cpychecker" version="0.11"/>
24 <sut>
25 <source-rpm name="python-ethtool" version="0.7" release="4.fc19" build-arch="x86_64"/>
26 </sut>
27 <file given-path="examples/python-src-example.c">
28 <hash alg="sha1" hexdigest="6ba29daa94d64b48071e299a79f2a00dcd99eeb1"/>
29 </file>
30 <stats wall-clock-time="5"/>
31 </metadata>
32
33 <results>
34 <!-- Example of a warning that uses a range -->
35 <issue cwe="681" test-id="mismatching-type-in-pyarg-format-string">
36 <message>Mismatching type in call to PyArg_ParseTuple with format code "i"</message>
37 <notes> argument 3 ("&amp;count") had type
38 "long int *" (pointing to 64 bits)
39 but was expecting
40 "int *" (pointing to 32 bits)
41 for format code "i"</notes>
42 <location>
43 <file given-path="examples/python-src-example.c">
44 <hash alg="sha1" hexdigest="6ba29daa94d64b48071e299a79f2a00dcd99eeb1"/>
45 </file>
46 <function name="make_a_list_of_random_ints_badly"/>
47 <range>
48 <point line="10" column="9"/>
49 <point line="10" column="44"/>
50 </range>
51 </location>
52 </issue>
53 </results>
54 </analysis>