The Samba-Bugzilla – Attachment 7681 Details for
Bug 9019
Cppcheck report
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
cppcheck full report
cppcheck_all.txt (text/plain), 195.31 KB, created by
serval2412
on 2012-07-01 10:08:42 UTC
(
hide
)
Description:
cppcheck full report
Filename:
MIME Type:
Creator:
serval2412
Created:
2012-07-01 10:08:42 UTC
Size:
195.31 KB
patch
obsolete
>[auth/credentials/credentials_krb5.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 26. >[auth/credentials/credentials_krb5.c:457]: (style) Variable 'empty_buffer' is assigned a value that is never used >[auth/credentials/credentials_krb5.c:458]: (style) Variable 'etypes' is assigned a value that is never used >[auth/kerberos/gssapi_pac.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[auth/kerberos/kerberos_pac.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[examples/VFS/skel_opaque.c:698]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[examples/auth/crackcheck/crackcheck.c:84]: (style) The scope of the variable 'ret' can be reduced >[examples/auth/crackcheck/crackcheck.c:113]: (error) fflush() called on input stream "stdin" may result in undefined behaviour. >[examples/libsmbclient/testbrowse.c:38]: (style) The scope of the variable 'p' can be reduced >[examples/libsmbclient/testbrowse2.c:148]: (style) The scope of the variable 'i' can be reduced >[examples/libsmbclient/testsmbc.c:34]: (style) The scope of the variable 'dh1' can be reduced >[examples/libsmbclient/testsmbc.c:34]: (style) The scope of the variable 'dsize' can be reduced >[examples/libsmbclient/testsmbc.c:34]: (style) The scope of the variable 'dirc' can be reduced >[examples/libsmbclient/testsmbc.c:38]: (style) The scope of the variable 'dirbuf' can be reduced >[examples/libsmbclient/tree.c:324]: (style) The scope of the variable 'dirbuf' can be reduced >[examples/libsmbclient/tree.c:491]: (style) The scope of the variable 'dirbuf' can be reduced >[examples/libsmbclient/tree.c:323]: (style) Variable 'level' is assigned a value that is never used >[examples/libsmbclient/tree.c:340]: (style) Unused variable: server >[examples/libsmbclient/tree.c:618]: (style) Unused variable: i >[examples/nss/nss_winbind.c:263]: (error) Memory pointed to by 'buf' is freed twice. >[examples/nss/nss_winbind.c:269]: (error) Memory pointed to by 'buf' is freed twice. >[examples/nss/nss_winbind.c:276]: (error) Memory pointed to by 'buf' is freed twice. >[examples/pcap2nbench/main.cpp:626]: (style) Variable 'show_files' is assigned a value that is never used >[examples/pcap2nbench/main.cpp:559]: (warning) Member variable 'Packet::frame' is not initialized in the constructor. >[examples/perfcounter/perf_writer.c:54]: (style) The scope of the variable 'sdata' can be reduced >[examples/perfcounter/perf_writer.c:139]: (style) Unused variable: sdata >[examples/perfcounter/perf_writer.c:155]: (style) Unused variable: i >[examples/perfcounter/perf_writer_cpu.c:66]: (style) The scope of the variable 'num' can be reduced >[examples/perfcounter/perf_writer_cpu.c:152]: (style) The scope of the variable 'i' can be reduced >[examples/perfcounter/perf_writer_cpu.c:153]: (style) The scope of the variable 'buf' can be reduced >[examples/perfcounter/perf_writer_cpu.c:66]: (style) Variable 'num' is assigned a value that is never used >[examples/perfcounter/perf_writer_cpu.c:96]: (warning) scanf without field width limits can crash with huge input data >[examples/perfcounter/perf_writer_disk.c:132]: (style) The scope of the variable 'num' can be reduced >[examples/perfcounter/perf_writer_disk.c:60]: (style) Unused variable: stop >[examples/perfcounter/perf_writer_disk.c:61]: (style) Unused variable: num >[examples/perfcounter/perf_writer_disk.c:94]: (style) Unused variable: num >[examples/perfcounter/perf_writer_disk.c:132]: (style) Variable 'status' is assigned a value that is never used >[examples/perfcounter/perf_writer_disk.c:132]: (style) Variable 'num' is assigned a value that is never used >[examples/perfcounter/perf_writer_disk.c:150]: (warning) scanf without field width limits can crash with huge input data >[examples/perfcounter/perf_writer_mem.c:25]: (style) Variable 'status' is assigned a value that is never used >[examples/perfcounter/perf_writer_process.c:25]: (style) Variable 'status' is assigned a value that is never used >[examples/perfcounter/perf_writer_util.c:105]: (style) Unused variable: status >[examples/perfcounter/perf_writer_util.c:138]: (style) Unused variable: i >[examples/validchars/validchr.c:51]: (style) Unused variable: j >[examples/validchars/validchr.c:66]: (error) Buffer access out-of-bounds: map >[lib/addns/dnsgss.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 111. >[lib/addns/dnsmarshall.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 111. >[lib/addns/dnsrecord.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 111. >[lib/addns/dnssock.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 110. >[lib/addns/dnssock.c:223]: (error) Uninitialized variable: pfd >[lib/addns/dnsutils.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 111. >[lib/addns/error.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 110. >[lib/ccan/array_size/test/compile_fail-function-param.c:17]: (error) Using sizeof for array given as function argument returns the size of pointer. >[lib/ccan/array_size/test/compile_fail-function-param.c:5]: (style) struct or union member 'foo::a' is never used >[lib/ccan/array_size/test/compile_fail-function-param.c:5]: (style) struct or union member 'foo::b' is never used >[lib/ccan/array_size/test/run.c:8]: (style) struct or union member 'foo::a' is never used >[lib/ccan/array_size/test/run.c:8]: (style) struct or union member 'foo::b' is never used >[lib/ccan/array_size/test/run.c:9]: (style) struct or union member 'foo::string' is never used >[lib/ccan/cast/test/compile_fail-cast_const.c:6]: (style) struct or union member 'char_struct::c' is never used >[lib/ccan/cast/test/compile_fail-cast_const2.c:6]: (style) struct or union member 'char_struct::c' is never used >[lib/ccan/cast/test/compile_fail-cast_const3.c:6]: (style) struct or union member 'char_struct::c' is never used >[lib/ccan/cast/test/compile_fail-cast_signed-sizesame.c:6]: (style) struct or union member 'char_struct::c' is never used >[lib/ccan/failtest/failtest.c:226]: (error) Common realloc mistake: 'child_writes' nulled but not freed upon failure >[lib/ccan/failtest/failtest.c:248]: (error) Common realloc mistake: 'ret' nulled but not freed upon failure >[lib/ccan/failtest/failtest.c:840]: (error) Common realloc mistake: 'out' nulled but not freed upon failure >[lib/ccan/failtest/failtest.c:150]: (error) Returning/dereferencing 'ret' after it is deallocated / released >[lib/ccan/failtest/test/run-malloc.c:63]: (error) Common realloc mistake: 'output' nulled but not freed upon failure >[lib/ccan/hash/test/run.c:13]: (style) Variable 'array2' is not assigned a value >[lib/ccan/htable/htable.c:134]: (style) The scope of the variable 'e' can be reduced >[lib/ccan/list/test/run-single-eval.c:10]: (style) struct or union member 'parent::eval_count' is never used >[lib/ccan/tcon/test/compile_fail-tcon_cast.c:24]: (style) Variable 'x' is assigned a value that is never used >[lib/ccan/typesafe_cb/test/compile_fail-cast_if_any.c:21]: (style) struct or union member 'other::x' is never used >[lib/ccan/typesafe_cb/test/compile_fail-typesafe_cb_cast-multi.c:21]: (style) struct or union member 'other::x' is never used >[lib/compression/testsuite.c:32]: (style) Variable 'data' is assigned a value that is never used >[lib/crypto/sha256.c:166]: (warning) Redundant assignment of "x" to itself >[lib/iniparser/src/strlib.c:62]: (style) Array index i is used before limits check >[lib/iniparser/src/strlib.c:93]: (style) Array index i is used before limits check >[lib/iniparser_build/dictionary.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 105. >[lib/iniparser_build/iniparser.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 104. >[lib/iniparser_build/strlib.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 105. >[lib/krb5_wrap/keytab_util.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 24. >[lib/krb5_wrap/krb5_samba.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 60. >[lib/ldb-samba/ldif_handlers.c:1096]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/attrib_handlers.c:257] -> [lib/ldb/common/attrib_handlers.c:257]: (style) Same expression on both sides of '&&'. >[lib/ldb/common/ldb.c:576]: (error) Possible null pointer dereference: handle - otherwise it is redundant to check if handle is null at line 575 >[lib/ldb/common/ldb.c:1082]: (style) The scope of the variable 'ret' can be reduced >[lib/ldb/common/ldb_controls.c:40]: (style) The scope of the variable 'i' can be reduced >[lib/ldb/common/ldb_controls.c:59]: (style) The scope of the variable 'i' can be reduced >[lib/ldb/common/ldb_controls.c:601]: (style) Checking if unsigned variable 'secinfo_flags' is less than zero. >[lib/ldb/common/ldb_controls.c:628]: (style) Checking if unsigned variable 'search_options' is less than zero. >[lib/ldb/common/ldb_controls.c:439]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:441]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:493]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:537]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:565]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:567]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:600]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:627]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:652]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:675]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:698]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:721]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:745]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:777]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:808]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:831]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:854]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:877]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:900]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:923]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:946]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:971]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:1000]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:1023]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:1049]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_controls.c:1051]: (warning) scanf without field width limits can crash with huge input data >[lib/ldb/common/ldb_modules.c:362]: (style) The scope of the variable 'modules_string' can be reduced >[lib/ldb/common/ldb_modules.c:401]: (style) The scope of the variable 'module_list' can be reduced >[lib/ldb/common/ldb_msg.c:217]: (style) The scope of the variable 'ret' can be reduced >[lib/ldb/ldb_ldap/ldb_ldap.c:880]: (style) The scope of the variable 'ret' can be reduced >[lib/ldb/ldb_map/ldb_map_outbound.c:1074]: (style) The scope of the variable 'i' can be reduced >[lib/ldb/ldb_sqlite3/base160.c:116]: (style) The scope of the variable 'i' can be reduced >[lib/ldb/ldb_sqlite3/base160.c:118]: (style) The scope of the variable 'pTab' can be reduced >[lib/ldb/ldb_sqlite3/base160.c:117]: (style) Variable 'len' is assigned a value that is never used >[lib/ldb/ldb_sqlite3/ldb_sqlite3.c:186]: (style) The scope of the variable 'i' can be reduced >[lib/ldb/ldb_sqlite3/ldb_sqlite3.c:188]: (style) The scope of the variable 'pTab' can be reduced >[lib/ldb/ldb_sqlite3/ldb_sqlite3.c:670]: (style) The scope of the variable 'i' can be reduced >[lib/ldb/ldb_sqlite3/ldb_sqlite3.c:671]: (style) The scope of the variable 'ret' can be reduced >[lib/ldb/ldb_sqlite3/ldb_sqlite3.c:1377]: (style) The scope of the variable 'ret' can be reduced >[lib/ldb/ldb_sqlite3/ldb_sqlite3.c:1402]: (style) The scope of the variable 'ret' can be reduced >[lib/ldb/ldb_sqlite3/ldb_sqlite3.c:1878]: (style) The scope of the variable 'i' can be reduced >[lib/ldb/ldb_sqlite3/ldb_sqlite3.c:1732]: (error) Memory pointed to by 'errmsg' is freed twice. >[lib/ldb/ldb_sqlite3/ldb_sqlite3.c:1793]: (error) Memory pointed to by 'errmsg' is freed twice. >[lib/ldb/ldb_sqlite3/ldb_sqlite3.c:1816]: (error) Memory pointed to by 'errmsg' is freed twice. >[lib/ldb/ldb_sqlite3/ldb_sqlite3.c:1854]: (error) Memory pointed to by 'errmsg' is freed twice. >[lib/ldb/modules/rdn_name.c:92]: (style) The scope of the variable 'i' can be reduced >[lib/ldb/pyldb.c:245]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:416]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:486]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:730]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:741]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:752]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:761]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:770]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:779]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:788]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:797]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:809]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:818]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:826]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:834]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:953]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:1037]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:1184]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:1256]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:1336]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:1347]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:1365]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:1371]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:1429]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:1508]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:1513]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:1637]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:1656]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:1977]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:1983]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:1989]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:2058]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:2080]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:2100]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:2122]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:2250]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:2270]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:2450]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:2526]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:2655]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:3211]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/pyldb.c:873]: (style) The scope of the variable 'ret' can be reduced >[lib/ldb/pyldb.c:3071]: (style) Variable 'py_result' is assigned a value that is never used >[lib/ldb/pyldb.c:3082]: (style) Variable 'py_result' is assigned a value that is never used >[lib/ldb/pyldb_util.c:103]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ldb/tools/ldbadd.c:134]: (style) The scope of the variable 'i' can be reduced >[lib/ldb/tools/ldbmodify.c:148]: (style) The scope of the variable 'i' can be reduced >[lib/nss_wrapper/nss_wrapper.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 114. >[lib/nss_wrapper/testsuite.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 20. >[lib/ntdb/free.c:686]: (style) Variable 'len' is assigned a value that is never used >[lib/ntdb/io.c:387]: (style) The scope of the variable 'ecode' can be reduced >[lib/ntdb/io.c:441]: (style) The scope of the variable 'buf' can be reduced >[lib/ntdb/io.c:390]: (style) Clarify calculation precedence for + and ? >[lib/ntdb/lock.c:414]: (warning) Comparison of a boolean with an integer >[lib/ntdb/open.c:791]: (warning) Comparison of a boolean with an integer >[lib/ntdb/pyntdb.c:124]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/pyntdb.c:131]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/pyntdb.c:138]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/pyntdb.c:145]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/pyntdb.c:152]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/pyntdb.c:158]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/pyntdb.c:165]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/pyntdb.c:171]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/pyntdb.c:178]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/pyntdb.c:199]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/pyntdb.c:217]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/pyntdb.c:227]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/pyntdb.c:248]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/pyntdb.c:265]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/pyntdb.c:296]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/pyntdb.c:307]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/pyntdb.c:318]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/pyntdb.c:383]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/pyntdb.c:389]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/ntdb/test/api-firstkey-nextkey.c:134]: (warning) Found calculation inside sizeof() >[lib/ntdb/test/api-firstkey-nextkey.c:85]: (error) Null pointer dereference >[lib/ntdb/test/external-agent.c:159]: (style) Variable 'ret' is assigned a value that is never used >[lib/ntdb/test/helprun-layout.c:257]: (error) Uninitialized variable: e >[lib/ntdb/test/lock-tracking.c:26]: (style) The scope of the variable 'arg3' can be reduced >[lib/ntdb/test/run-56-open-during-transaction.c:67]: (error) Memory leak: contents >[lib/ntdb/test/run-capabilities.c:148]: (error) Memory pointed to by 'summary' is freed twice. >[lib/ntdb/test/run-capabilities.c:181]: (error) Memory pointed to by 'summary' is freed twice. >[lib/ntdb/test/run-capabilities.c:235]: (error) Memory pointed to by 'summary' is freed twice. >[lib/ntdb/test/run-capabilities.c:272]: (error) Memory pointed to by 'summary' is freed twice. >[lib/ntdb/tools/ntdbrestore.c:65]: (warning) scanf without field width limits can crash with huge input data >[lib/ntdb/tools/ntdbtorture.c:362]: (style) The scope of the variable 'e' can be reduced >[lib/param/loadparm.c:2420]: (style) The scope of the variable 'i' can be reduced >[lib/popt/popt.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 21. >[lib/popt/popt.c:216]: (style) The scope of the variable 'i' can be reduced >[lib/popt/popt.c:601]: (error) Common realloc mistake: 't' nulled but not freed upon failure >[lib/popt/popt.c:612]: (error) Common realloc mistake: 't' nulled but not freed upon failure >[lib/popt/popt.c:393]: (error) Memory leak: argv >[lib/popt/poptconfig.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 16. >[lib/popt/poptconfig.c:168]: (style) The scope of the variable 'fn' can be reduced >[lib/popt/popthelp.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 18. >[lib/popt/popthelp.c:371]: (style) The scope of the variable 'len' can be reduced >[lib/popt/popthelp.c:372]: (style) The scope of the variable 's' can be reduced >[lib/popt/popthelp.c:418]: (style) The scope of the variable 'i' can be reduced >[lib/popt/popthelp.c:445]: (style) The scope of the variable 'sub_transdom' can be reduced >[lib/popt/popthelp.c:485]: (style) The scope of the variable 'fn' can be reduced >[lib/popt/popthelp.c:588]: (style) The scope of the variable 'i' can be reduced >[lib/popt/poptparse.c:89]: (error) Common realloc mistake: 'argv' nulled but not freed upon failure >[lib/popt/poptparse.c:186]: (error) Common realloc mistake: 'argstr' nulled but not freed upon failure >[lib/popt/poptparse.c:215]: (error) Common realloc mistake: 'argstr' nulled but not freed upon failure >[lib/replace/crypt.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 105. >[lib/replace/crypt.c:421]: (error) Buffer access out-of-bounds: esel >[lib/replace/dlfcn.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 108. >[lib/replace/getaddrinfo.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 139. >[lib/replace/getifaddrs.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 145. >[lib/replace/getpass.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 159. >[lib/replace/inet_aton.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 137. >[lib/replace/inet_ntoa.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 137. >[lib/replace/inet_ntop.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 138. >[lib/replace/inet_pton.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 138. >[lib/replace/poll.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 106. >[lib/replace/repdir_getdirentries.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 107. >[lib/replace/replace.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 210. >[lib/replace/snprintf.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 110. >[lib/replace/snprintf.c:597] -> [lib/replace/snprintf.c:595]: (style) Found duplicate branches for if and else. >[lib/replace/snprintf.c:1142]: (style) The scope of the variable 'pos' can be reduced >[lib/replace/socket.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 137. >[lib/replace/socketpair.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 137. >[lib/replace/strptime.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 116. >[lib/replace/strptime.c:426]: (style) Checking if unsigned variable 'val' is less than zero. >[lib/replace/strptime.c:475]: (style) Checking if unsigned variable 'val' is less than zero. >[lib/replace/strptime.c:500]: (style) Checking if unsigned variable 'val' is less than zero. >[lib/replace/strptime.c:591]: (style) Checking if unsigned variable 'val' is less than zero. >[lib/replace/strptime.c:625]: (style) Checking if unsigned variable 'val' is less than zero. >[lib/replace/strptime.c:640]: (style) Checking if unsigned variable 'val' is less than zero. >[lib/replace/strptime.c:646]: (style) Checking if unsigned variable 'val' is less than zero. >[lib/replace/strptime.c:655]: (style) Checking if unsigned variable 'val' is less than zero. >[lib/replace/strptime.c:665]: (style) Checking if unsigned variable 'val' is less than zero. >[lib/replace/strptime.c:874]: (style) Checking if unsigned variable 'val' is less than zero. >[lib/replace/strptime.c:894]: (style) Checking if unsigned variable 'val' is less than zero. >[lib/replace/strptime.c:899]: (style) Checking if unsigned variable 'val' is less than zero. >[lib/replace/strptime.c:905]: (style) Checking if unsigned variable 'val' is less than zero. >[lib/replace/strptime.c:911]: (style) Checking if unsigned variable 'val' is less than zero. >[lib/replace/strptime.c:917]: (style) Checking if unsigned variable 'val' is less than zero. >[lib/replace/test/snprintf.c:24]: (error) Null pointer dereference >[lib/replace/test/testsuite.c:169]: (error) Memory leak: x >[lib/replace/test/testsuite.c:263]: (error) Memory leak: x >[lib/replace/timegm.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 110. >[lib/replace/xattr.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 183. >[lib/socket/interfaces.c:232]: (style) The scope of the variable 'r' can be reduced >[lib/socket_wrapper/py_socket_wrapper.c:378]: (style) The scope of the variable 'optval' can be reduced >[lib/socket_wrapper/socket_wrapper.c:270]: (warning) scanf without field width limits can crash with huge input data >[lib/talloc/pytalloc.c:30]: (style) Variable 'type' is assigned a value that is never used >[lib/talloc/pytalloc.c:55]: (style) Variable 'type' is assigned a value that is never used >[lib/talloc/testsuite.c:127]: (style) Variable 'ref' is assigned a value that is never used >[lib/talloc/testsuite.c:238]: (style) Variable 'ref' is assigned a value that is never used >[lib/talloc/testsuite.c:277]: (style) Variable 'ref' is assigned a value that is never used >[lib/talloc/testsuite.c:327]: (style) Variable 'ref' is assigned a value that is never used >[lib/talloc/testsuite.c:379]: (style) Variable 'name' is assigned a value that is never used >[lib/talloc/testsuite.c:594]: (style) Variable 'el2' is assigned a value that is never used >[lib/talloc/testsuite.c:827]: (style) Variable 'p2' is assigned a value that is never used >[lib/talloc/testsuite.c:827]: (style) Variable 'p3' is assigned a value that is never used >[lib/talloc/testsuite.c:846]: (style) Variable 'p2' is assigned a value that is never used >[lib/talloc/testsuite.c:846]: (style) Variable 'p3' is assigned a value that is never used >[lib/talloc/testsuite.c:863]: (style) Variable 'p1' is allocated memory that is never used >[lib/talloc/testsuite.c:863]: (style) Variable 'p2' is allocated memory that is never used >[lib/talloc/testsuite.c:863]: (style) Variable 'p3' is allocated memory that is never used >[lib/talloc/testsuite.c:1318]: (style) Variable 'p2' is assigned a value that is never used >[lib/talloc/testsuite.c:1319]: (style) Variable 'name2' is assigned a value that is never used >[lib/tdb/common/lock.c:341]: (style) The scope of the variable 'check' can be reduced >[lib/tdb/common/traverse.c:306]: (style) The scope of the variable 'k' can be reduced >[lib/tdb/pytdb.c:63]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:114]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:121]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:128]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:135]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:142]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:149]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:156]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:163]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:170]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:177]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:181]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:209]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:240]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:275]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:286]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:297]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:350]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:357]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:363]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/pytdb.c:369]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/tdb/test/external-agent.c:107]: (style) Variable 'ret' is assigned a value that is never used >[lib/tdb/test/lock-tracking.c:26]: (style) The scope of the variable 'arg3' can be reduced >[lib/tdb/test/run-open-during-transaction.c:76]: (error) Memory leak: contents >[lib/tdb/tools/tdbrestore.c:58]: (warning) scanf without field width limits can crash with huge input data >[lib/tevent/testsuite.c:67]: (style) Variable 'info_count' is assigned a value that is never used >[lib/tevent/testsuite.c:72]: (style) Variable 'se2' is assigned a value that is never used >[lib/tevent/tevent_standard.c:446]: (style) Variable 'std_ev' is assigned a value that is never used >[lib/tsocket/tsocket_bsd.c:75]: (style) The scope of the variable 'i' can be reduced >[lib/tsocket/tsocket_bsd.c:77]: (style) The scope of the variable 'fds' can be reduced >[lib/tsocket/tsocket_bsd.c:78]: (style) The scope of the variable 'num_fds' can be reduced >[lib/tsocket/tsocket_bsd.c:1184]: (style) The scope of the variable 'do_ipv6only' can be reduced >[lib/tsocket/tsocket_bsd.c:80]: (style) Unused variable: result >[lib/tsocket/tsocket_bsd.c:1184]: (style) Variable 'do_ipv6only' is assigned a value that is never used >[lib/tsocket/tsocket_bsd.c:2024]: (style) Variable 'do_ipv6only' is assigned a value that is never used >[lib/util/asn1.c:725]: (style) The scope of the variable 'bytes_left' can be reduced >[lib/util/charset/tests/iconv.c:94]: (style) Variable 'ret' is assigned a value that is never used >[lib/util/charset/util_unistr.c:200]: (style) The scope of the variable 'ret' can be reduced >[lib/util/debug.c:551]: (style) The scope of the variable 'old_fd' can be reduced >[lib/util/idtree.c:150]: (style) Checking if unsigned variable 'id' is less than zero. >[lib/util/modules.c:169]: (style) The scope of the variable 'full_path' can be reduced >[lib/util/params.c:502]: (style) The scope of the variable 'func' can be reduced >[lib/util/rfc1738.c:218]: (warning) scanf without field width limits can crash with huge input data >[lib/util/setid.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[lib/util/tests/dlinklist.c:78] -> [lib/util/tests/dlinklist.c:78]: (style) Same expression on both sides of '||'. >[lib/util/tevent_ntstatus.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 105. >[lib/util/tevent_unix.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 104. >[lib/util/tevent_werror.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 105. >[lib/util/time.c:405]: (style) Unused variable: tempTime >[lib/util/time.c:435]: (style) Unused variable: tempTime >[lib/util/util_file.c:118]: (style) Checking if unsigned variable 'hint' is less than zero. >[lib/util/util_net.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 21. >[lib/util/util_net.c:330]: (style) The scope of the variable 'ret' can be reduced >[lib/zlib/adler32.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 31. >[lib/zlib/compress.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 30. >[lib/zlib/contrib/infback9/infback9.c:232]: (style) Variable 'write' is assigned a value that is never used >[lib/zlib/contrib/iostream2/zstream_test.cpp:14]: (style) Variable 'z' is not assigned a value >[lib/zlib/contrib/masmx64/inffas8664.c:86]: (style) struct or union member 'inffast_ar::in' is never used >[lib/zlib/contrib/masmx64/inffas8664.c:87]: (style) struct or union member 'inffast_ar::last' is never used >[lib/zlib/contrib/masmx64/inffas8664.c:88]: (style) struct or union member 'inffast_ar::out' is never used >[lib/zlib/contrib/masmx64/inffas8664.c:89]: (style) struct or union member 'inffast_ar::beg' is never used >[lib/zlib/contrib/masmx64/inffas8664.c:90]: (style) struct or union member 'inffast_ar::end' is never used >[lib/zlib/contrib/masmx64/inffas8664.c:91]: (style) struct or union member 'inffast_ar::window' is never used >[lib/zlib/contrib/masmx64/inffas8664.c:94]: (style) struct or union member 'inffast_ar::hold' is never used >[lib/zlib/contrib/masmx64/inffas8664.c:95]: (style) struct or union member 'inffast_ar::bits' is never used >[lib/zlib/contrib/masmx64/inffas8664.c:96]: (style) struct or union member 'inffast_ar::wsize' is never used >[lib/zlib/contrib/masmx64/inffas8664.c:97]: (style) struct or union member 'inffast_ar::write' is never used >[lib/zlib/contrib/masmx64/inffas8664.c:98]: (style) struct or union member 'inffast_ar::lmask' is never used >[lib/zlib/contrib/masmx64/inffas8664.c:99]: (style) struct or union member 'inffast_ar::dmask' is never used >[lib/zlib/contrib/masmx64/inffas8664.c:100]: (style) struct or union member 'inffast_ar::len' is never used >[lib/zlib/contrib/masmx64/inffas8664.c:101]: (style) struct or union member 'inffast_ar::dist' is never used >[lib/zlib/contrib/masmx64/inffas8664.c:102]: (style) struct or union member 'inffast_ar::status' is never used >[lib/zlib/contrib/minizip/iowin32.c:70]: (style) Variable 'mode_fopen' is assigned a value that is never used >[lib/zlib/contrib/minizip/miniunz.c:472]: (style) The scope of the variable 'i' can be reduced >[lib/zlib/contrib/minizip/miniunz.c:256]: (style) Variable 'ratio' is assigned a value that is never used >[lib/zlib/contrib/minizip/miniunz.c:414]: (style) Variable 'fout' is assigned a value that is never used >[lib/zlib/contrib/minizip/miniunz.c:448]: (style) Variable 'err' is assigned a value that is never used >[lib/zlib/contrib/minizip/minizip.c:153]: (style) The scope of the variable 'size_read' can be reduced >[lib/zlib/contrib/minizip/minizip.c:154]: (style) The scope of the variable 'total_read' can be reduced >[lib/zlib/contrib/minizip/minizip.c:196]: (style) The scope of the variable 'err' can be reduced >[lib/zlib/contrib/minizip/minizip.c:330]: (style) The scope of the variable 'size_read' can be reduced >[lib/zlib/contrib/minizip/minizip.c:154]: (style) Variable 'total_read' is assigned a value that is never used >[lib/zlib/contrib/minizip/mztools.c:280]: (error) Memory leak: fpZip >[lib/zlib/contrib/minizip/mztools.c:280]: (error) Memory leak: fpOut >[lib/zlib/contrib/minizip/mztools.c:280]: (error) Memory leak: fpOutCD >[lib/zlib/contrib/minizip/unzip.c:1061]: (style) The scope of the variable 'source' can be reduced >[lib/zlib/contrib/minizip/unzip.c:1537]: (style) Variable 'err' is assigned a value that is never used >[lib/zlib/contrib/minizip/zip.c:613]: (error) Memory leak: zi >[lib/zlib/contrib/puff/puff.c:660]: (style) The scope of the variable 'len' can be reduced >[lib/zlib/contrib/puff/puff.c:746]: (style) The scope of the variable 'last' can be reduced >[lib/zlib/contrib/puff/puff.c:746]: (style) The scope of the variable 'type' can be reduced >[lib/zlib/contrib/puff/puff.c:632]: (style) Variable 'lencnt' is not assigned a value >[lib/zlib/contrib/puff/puff.c:632]: (style) Variable 'lensym' is not assigned a value >[lib/zlib/contrib/puff/puff.c:633]: (style) Variable 'distcnt' is not assigned a value >[lib/zlib/contrib/puff/puff.c:633]: (style) Variable 'distsym' is not assigned a value >[lib/zlib/contrib/testzlib/testzlib.c:154]: (style) Variable 'lCompressedSize' is assigned a value that is never used >[lib/zlib/contrib/testzlib/testzlib.c:195]: (style) Variable 'lOrigDone' is assigned a value that is never used >[lib/zlib/contrib/testzlib/testzlib.c:236]: (style) Variable 'lOrigDone' is assigned a value that is never used >[lib/zlib/contrib/untgz/untgz.c:72]: (style) struct or union member 'tar_header::uid' is never used >[lib/zlib/contrib/untgz/untgz.c:73]: (style) struct or union member 'tar_header::gid' is never used >[lib/zlib/contrib/untgz/untgz.c:76]: (style) struct or union member 'tar_header::chksum' is never used >[lib/zlib/contrib/untgz/untgz.c:78]: (style) struct or union member 'tar_header::linkname' is never used >[lib/zlib/contrib/untgz/untgz.c:79]: (style) struct or union member 'tar_header::magic' is never used >[lib/zlib/contrib/untgz/untgz.c:80]: (style) struct or union member 'tar_header::version' is never used >[lib/zlib/contrib/untgz/untgz.c:81]: (style) struct or union member 'tar_header::uname' is never used >[lib/zlib/contrib/untgz/untgz.c:82]: (style) struct or union member 'tar_header::gname' is never used >[lib/zlib/contrib/untgz/untgz.c:83]: (style) struct or union member 'tar_header::devmajor' is never used >[lib/zlib/contrib/untgz/untgz.c:84]: (style) struct or union member 'tar_header::devminor' is never used >[lib/zlib/contrib/untgz/untgz.c:85]: (style) struct or union member 'tar_header::prefix' is never used >[lib/zlib/contrib/untgz/untgz.c:91]: (style) struct or union member 'tar_buffer::buffer' is never used >[lib/zlib/crc32.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 32. >[lib/zlib/crc32.c:108]: (style) The scope of the variable 'c' can be reduced >[lib/zlib/crc32.c:109]: (style) The scope of the variable 'n' can be reduced >[lib/zlib/crc32.c:109]: (style) The scope of the variable 'k' can be reduced >[lib/zlib/crc32.c:110]: (style) The scope of the variable 'poly' can be reduced >[lib/zlib/crc32.c:113]: (style) The scope of the variable 'p' can be reduced >[lib/zlib/crc32.c:190]: (style) Clarify calculation precedence for % and ? >[lib/zlib/deflate.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 34. >[lib/zlib/deflate.c:158]: (style) struct or union member 'static_tree_desc_s::dummy' is never used >[lib/zlib/deflate.c:1102] -> [lib/zlib/deflate.c:1102]: (style) Same expression on both sides of '&&'. >[lib/zlib/example.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 13. >[lib/zlib/examples/gun.c:129]: (style) The scope of the variable 'ret' can be reduced >[lib/zlib/examples/gun.c:624]: (style) The scope of the variable 'len' can be reduced >[lib/zlib/examples/gun.c:625]: (style) The scope of the variable 'outname' can be reduced >[lib/zlib/examples/gzappend.c:125]: (style) The scope of the variable 'to' can be reduced >[lib/zlib/examples/gzappend.c:202]: (style) The scope of the variable 'bypass' can be reduced >[lib/zlib/examples/gzappend.c:236]: (style) The scope of the variable 'n' can be reduced >[lib/zlib/examples/zran.c:224]: (error) Common realloc mistake: 'index' nulled but not freed upon failure >[lib/zlib/gzio.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 37. >[lib/zlib/gzio.c:127]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/zlib/gzio.c:147]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/zlib/gzio.c:160]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/zlib/gzio.c:173]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/zlib/gzio.c:182]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[lib/zlib/gzio.c:17]: (style) struct or union member 'internal_state::dummy' is never used >[lib/zlib/gzio.c:97]: (style) The scope of the variable 'level' can be reduced >[lib/zlib/gzio.c:98]: (style) The scope of the variable 'strategy' can be reduced >[lib/zlib/gzio.c:97]: (style) Variable 'level' is assigned a value that is never used >[lib/zlib/gzio.c:98]: (style) Variable 'strategy' is assigned a value that is never used >[lib/zlib/infback.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 32. >[lib/zlib/inffast.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 33. >[lib/zlib/inflate.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 33. >[lib/zlib/inflate.c:328]: (style) The scope of the variable 'dist' can be reduced >[lib/zlib/inflate.c:1175]: (style) The scope of the variable 'id' can be reduced >[lib/zlib/inflate.c:1267]: (style) The scope of the variable 'buf' can be reduced >[lib/zlib/inflate.c:1330]: (style) The scope of the variable 'wsize' can be reduced >[lib/zlib/inftrees.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 30. >[lib/zlib/minigzip.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 16. >[lib/zlib/trees.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 37. >[lib/zlib/trees.c:1077]: (style) The scope of the variable 'dist' can be reduced >[lib/zlib/trees.c:1078]: (style) The scope of the variable 'lc' can be reduced >[lib/zlib/trees.c:1079]: (style) The scope of the variable 'lx' can be reduced >[lib/zlib/trees.c:1080]: (style) The scope of the variable 'code' can be reduced >[lib/zlib/trees.c:1081]: (style) The scope of the variable 'extra' can be reduced >[lib/zlib/trees.c:984]: (style) An unsigned variable 'static_lenb' can't be negative so it is unnecessary to test it. >[lib/zlib/uncompr.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 30. >[lib/zlib/zutil.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 42. >[lib/zlib/zutil.c:305] -> [lib/zlib/zutil.c:305]: (style) Same expression on both sides of '-'. >[lib/zlib/zutil.c:11]: (style) struct or union member 'internal_state::dummy' is never used >[libcli/auth/pam_errors.c:110]: (error) syntax error >[libcli/nbt/pynbt.c:371]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[libcli/security/object_tree.c:93]: (style) The scope of the variable 'i' can be reduced >[libcli/security/sddl.c:530] -> [libcli/security/sddl.c:530]: (style) Same expression on both sides of '||'. >[libcli/smb/smb_seal.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 24. >[libcli/util/errmap_unix.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[libcli/util/nterr.c:906]: (error) syntax error >[libgpo/gpo_ldap.c:472]: (style) The scope of the variable 'filter' can be reduced >[libgpo/gpo_sec.c:102]: (style) The scope of the variable 'sid_str' can be reduced >[libgpo/gpo_sec.c:124]: (style) The scope of the variable 'sid_str' can be reduced >[libgpo/gpo_util.c:582]: (error) Possible null pointer dereference: reg_ctx >[librpc/ndr/ndr.c:381] -> [librpc/ndr/ndr.c:381]: (style) Same expression on both sides of '|'. >[librpc/ndr/ndr.c:385] -> [librpc/ndr/ndr.c:385]: (style) Same expression on both sides of '|'. >[librpc/ndr/ndr_basic.c:1256] -> [librpc/ndr/ndr_basic.c:1256]: (style) Same expression on both sides of '|'. >[librpc/ndr/ndr_basic.c:1284] -> [librpc/ndr/ndr_basic.c:1284]: (style) Same expression on both sides of '|'. >[librpc/ndr/ndr_xattr.c:108]: (warning) scanf without field width limits can crash with huge input data >[nsswitch/libwbclient/tests/wbclient.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 113. >[nsswitch/libwbclient/wbc_sid.c:721]: (error) Common realloc mistake: 'extra_data' nulled but not freed upon failure >[nsswitch/libwbclient/wbclient.c:186]: (error) Memory leak: result >[nsswitch/nsstest.c:190]: (error) Common realloc mistake: 'buf' nulled but not freed upon failure >[nsswitch/nsstest.c:228]: (error) Common realloc mistake: 'buf' nulled but not freed upon failure >[nsswitch/nsstest.c:267]: (error) Common realloc mistake: 'buf' nulled but not freed upon failure >[nsswitch/pam_winbind.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 132. >[nsswitch/pam_winbind.c:1430]: (style) The scope of the variable 'error_string' can be reduced >[nsswitch/wb_common.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 16. >[nsswitch/wb_common.c:87]: (style) The scope of the variable 'new_fd' can be reduced >[nsswitch/wb_common.c:127]: (style) Unused variable: result >[nsswitch/winbind_nss_aix.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 13. >[nsswitch/winbind_nss_aix.c:156]: (warning) scanf without field width limits can crash with huge input data >[nsswitch/winbind_nss_aix.c:168]: (warning) scanf without field width limits can crash with huge input data >[nsswitch/winbind_nss_aix.c:760]: (style) Variable 'offset' is assigned a value that is never used >[nsswitch/winbind_nss_irix.c:114]: (error) Possible null pointer dereference: dx - otherwise it is redundant to check if dx is null at line 106 >[nsswitch/winbind_nss_linux.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 15. >[nsswitch/winbind_nss_linux.c:1055]: (style) The scope of the variable 'i' can be reduced >[nsswitch/wins.c:156]: (style) The scope of the variable 'addr' can be reduced >[source3/auth/auth_generic.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source3/auth/auth_generic.c:47]: (style) The scope of the variable 'i' can be reduced >[source3/auth/auth_util.c:1560]: (style) The scope of the variable 'ret' can be reduced >[source3/auth/pampass.c:458]: (style) The scope of the variable 'pam_error' can be reduced >[source3/auth/pass_check.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 17. >[source3/auth/pass_check.c:844]: (error) syntax error >[source3/auth/server_info.c:481]: (style) The scope of the variable 'i' can be reduced >[source3/client/client.c:1232]: (style) The scope of the variable 'rname' can be reduced >[source3/client/client.c:1628]: (style) The scope of the variable 'i' can be reduced >[source3/client/client.c:4709]: (style) The scope of the variable 'j' can be reduced >[source3/client/client.c:5329]: (style) The scope of the variable 'p' can be reduced >[source3/client/client.c:5578]: (warning) scanf without field width limits can crash with huge input data >[source3/client/client.c:3201] -> [source3/client/client.c:3197]: (style) Found duplicate if expressions. >[source3/client/clitar.c:950]: (style) The scope of the variable 'bufread' can be reduced >[source3/client/clitar.c:1685]: (style) The scope of the variable 'p' can be reduced >[source3/client/clitar.c:1687]: (style) The scope of the variable 'i' can be reduced >[source3/client/clitar.c:62]: (style) struct or union member 'stack::items' is never used >[source3/client/dnsbrowse.c:62]: (style) Unused variable: fdsetsz >[source3/client/dnsbrowse.c:64]: (style) Unused variable: tv >[source3/client/dnsbrowse.c:67]: (style) Variable 'ctx' is assigned a value that is never used >[source3/client/dnsbrowse.c:146]: (style) Unused variable: fdsetsz >[source3/client/dnsbrowse.c:150]: (style) Unused variable: tv >[source3/client/smbspool.c:314]: (error) Resource leak: fp >[source3/client/tree.c:78]: (style) The scope of the variable 'j' can be reduced >[source3/client/tree.c:320]: (style) The scope of the variable 'dirbuf' can be reduced >[source3/client/tree.c:487]: (style) The scope of the variable 'dirbuf' can be reduced >[source3/client/tree.c:319]: (style) Variable 'level' is assigned a value that is never used >[source3/client/tree.c:336]: (style) Unused variable: server >[source3/client/tree.c:614]: (style) Unused variable: i >[source3/groupdb/mapping.c:208]: (style) The scope of the variable 'add_script' can be reduced >[source3/groupdb/mapping.c:267]: (style) The scope of the variable 'del_script' can be reduced >[source3/groupdb/mapping.c:268]: (style) The scope of the variable 'ret' can be reduced >[source3/groupdb/mapping.c:302]: (style) The scope of the variable 'add_script' can be reduced >[source3/groupdb/mapping.c:303]: (style) The scope of the variable 'ret' can be reduced >[source3/groupdb/mapping.c:344]: (style) The scope of the variable 'add_script' can be reduced >[source3/groupdb/mapping.c:345]: (style) The scope of the variable 'ret' can be reduced >[source3/groupdb/mapping.c:384]: (style) The scope of the variable 'del_script' can be reduced >[source3/groupdb/mapping.c:385]: (style) The scope of the variable 'ret' can be reduced >[source3/groupdb/mapping.c:117]: (style) struct or union member 'aliasmem_closure::num' is never used >[source3/lib/access.c:80]: (style) The scope of the variable 'str_len' can be reduced >[source3/lib/adt_tree.c:93]: (style) The scope of the variable 'i' can be reduced >[source3/lib/afs_settoken.c:95]: (warning) scanf without field width limits can crash with huge input data >[source3/lib/afs_settoken.c:123]: (warning) scanf without field width limits can crash with huge input data >[source3/lib/afs_settoken.c:133]: (warning) scanf without field width limits can crash with huge input data >[source3/lib/afs_settoken.c:143]: (warning) scanf without field width limits can crash with huge input data >[source3/lib/ctdbd_conn.c:747]: (style) Variable 'status' is assigned a value that is never used >[source3/lib/dumpcore.c:225]: (style) The scope of the variable 'end' can be reduced >[source3/lib/errmap_unix.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 30. >[source3/lib/gencache.c:61]: (style) The scope of the variable 'first_try' can be reduced >[source3/lib/id_cache.c:42]: (warning) scanf without field width limits can crash with huge input data >[source3/lib/interface.c:498]: (style) The scope of the variable 'i' can be reduced >[source3/lib/netapi/examples/dsgetdc/dsgetdc.c:61]: (warning) scanf without field width limits can crash with huge input data >[source3/lib/netapi/examples/file/file_close.c:38]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/file/file_enum.c:48]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/file/file_getinfo.c:43]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/getdc/getdc.c:40]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/group/group_add.c:40]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/group/group_adduser.c:39]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/group/group_del.c:38]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/group/group_deluser.c:39]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/group/group_enum.c:49]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/group/group_getinfo.c:45]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/group/group_getusers.c:47]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/group/group_setinfo.c:48]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/group/group_setusers.c:47]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/join/getjoinableous.c:37]: (style) The scope of the variable 'i' can be reduced >[source3/lib/netapi/examples/join/getjoininformation.c:38]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/join/netdomjoin.c:48]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/join/rename_machine.c:38]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/localgroup/localgroup_add.c:44]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/localgroup/localgroup_addmembers.c:45]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/localgroup/localgroup_del.c:38]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/localgroup/localgroup_delmembers.c:45]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/localgroup/localgroup_enum.c:46]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/localgroup/localgroup_getinfo.c:43]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/localgroup/localgroup_getmembers.c:50]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/localgroup/localgroup_setmembers.c:46]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c:648]: (style) Variable 'initial_workgroup_type' is assigned a value that is never used >[source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c:914]: (style) Variable 'string_unchanged' is assigned a value that is never used >[source3/lib/netapi/examples/netlogon/netlogon_control.c:44]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/netlogon/netlogon_control2.c:45]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/server/remote_tod.c:38]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/server/server_getinfo.c:48]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/share/share_add.c:37]: (style) Variable 'level' is assigned a value that is never used >[source3/lib/netapi/examples/share/share_add.c:43]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/share/share_del.c:38]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/share/share_enum.c:47]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/share/share_getinfo.c:46]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/share/share_setinfo.c:44]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/shutdown/shutdown_abort.c:37]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/shutdown/shutdown_init.c:39]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/user/user_add.c:41]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/user/user_chgpwd.c:40]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/user/user_del.c:38]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/user/user_dispinfo.c:43]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/user/user_enum.c:49]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/user/user_getgroups.c:46]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/user/user_getinfo.c:52]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/user/user_getlocalgroups.c:46]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/user/user_modalsget.c:45]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/user/user_modalsset.c:37]: (style) Variable 'value' is assigned a value that is never used >[source3/lib/netapi/examples/user/user_modalsset.c:41]: (style) Unused variable: u1 >[source3/lib/netapi/examples/user/user_modalsset.c:42]: (style) Unused variable: u2 >[source3/lib/netapi/examples/user/user_modalsset.c:43]: (style) Unused variable: u3 >[source3/lib/netapi/examples/user/user_modalsset.c:49]: (style) Unused variable: u1006 >[source3/lib/netapi/examples/user/user_modalsset.c:50]: (style) Unused variable: u1007 >[source3/lib/netapi/examples/user/user_modalsset.c:53]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/user/user_setgroups.c:47]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/examples/user/user_setinfo.c:42]: (style) Unused variable: u1 >[source3/lib/netapi/examples/user/user_setinfo.c:43]: (style) Unused variable: u2 >[source3/lib/netapi/examples/user/user_setinfo.c:44]: (style) Unused variable: u3 >[source3/lib/netapi/examples/user/user_setinfo.c:45]: (style) Unused variable: u4 >[source3/lib/netapi/examples/user/user_setinfo.c:46]: (style) Unused variable: u21 >[source3/lib/netapi/examples/user/user_setinfo.c:47]: (style) Unused variable: u22 >[source3/lib/netapi/examples/user/user_setinfo.c:59]: (style) Unused variable: u1020 >[source3/lib/netapi/examples/user/user_setinfo.c:66]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/tests/netapitest.c:37]: (style) Variable 'opt' is assigned a value that is never used >[source3/lib/netapi/tests/netshare.c:145]: (error) Uninitialized variable: i2 >[source3/lib/netapi/tests/netuser.c:189]: (error) Uninitialized variable: u1 >[source3/lib/pidfile.c:40]: (style) The scope of the variable 'short_configfile' can be reduced >[source3/lib/pidfile.c:116]: (style) The scope of the variable 'short_configfile' can be reduced >[source3/lib/popt_common.c:375]: (warning) scanf without field width limits can crash with huge input data >[source3/lib/pthreadpool/tests.c:58]: (error) Memory leak: finished >[source3/lib/pthreadpool/tests.c:196]: (error) Memory leak: pools >[source3/lib/pthreadpool/tests.c:184]: (error) Memory leak: states >[source3/lib/pthreadpool/tests.c:204]: (error) Memory leak: pfds >[source3/lib/pthreadpool/tests.c:190]: (error) Memory leak: finished >[source3/lib/server_prefork.c:153]: (style) The scope of the variable 'ret' can be reduced >[source3/lib/server_prefork_util.c:69]: (style) The scope of the variable 'ret' can be reduced >[source3/lib/smbldap.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 13. >[source3/lib/smbldap.c:635]: (warning) sscanf argument no. 1: requires non-const pointers or arrays as arguments >[source3/lib/smbldap.c:635]: (warning) sscanf argument no. 2: requires non-const pointers or arrays as arguments >[source3/lib/smbldap.c:1039]: (style) The scope of the variable 'opt_rc' can be reduced >[source3/lib/smbldap.c:598]: (style) Unused variable: rc >[source3/lib/smbldap.c:635]: (warning) scanf without field width limits can crash with huge input data >[source3/lib/smbldap.c:598]: (style) The scope of the variable 'rc' can be reduced >[source3/lib/substitute.c:350]: (style) The scope of the variable 'home_path_start' can be reduced >[source3/lib/system.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 50. >[source3/lib/tdb_validate.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 105. >[source3/lib/tdb_validate.c:459]: (style) The scope of the variable 'corrupt_suffix' can be reduced >[source3/lib/tdb_validate.c:460]: (style) The scope of the variable 'rotate_suffix' can be reduced >[source3/lib/util.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 14. >[source3/lib/util.c:860]: (style) The scope of the variable 'result' can be reduced >[source3/lib/util.c:1543]: (style) The scope of the variable 'name' can be reduced >[source3/lib/util.c:325]: (style) Variable 'total' is assigned a value that is never used >[source3/lib/util.c:326]: (style) Unused variable: ret >[source3/lib/util.c:2084]: (warning) scanf without field width limits can crash with huge input data >[source3/lib/util.c:2088]: (warning) scanf without field width limits can crash with huge input data >[source3/lib/util.c:2092]: (warning) scanf without field width limits can crash with huge input data >[source3/lib/util.c:2096]: (warning) scanf without field width limits can crash with huge input data >[source3/lib/util_sock.c:968]: (error) Possible null pointer dereference: ailist - otherwise it is redundant to check if ailist is null at line 970 >[source3/lib/util_sock.c:123]: (style) Checking if unsigned variable 'maxcnt' is less than zero. >[source3/lib/util_tdb.c:190]: (style) The scope of the variable 'ps' can be reduced >[source3/lib/xattr_tdb.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 46. >[source3/libads/authdata.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source3/libads/krb5_errs.c:102]: (error) syntax error >[source3/libads/krb5_setpw.c:294]: (error) Possible null pointer dereference: packet - otherwise it is redundant to check if packet is null at line 298 >[source3/libads/ldap.c:1630]: (style) The scope of the variable 'ret' can be reduced >[source3/libads/ldap.c:2312]: (style) The scope of the variable 'str_vals' can be reduced >[source3/libads/ldap.c:2312]: (style) The scope of the variable 'utf8_vals' can be reduced >[source3/libads/ldap.c:2533]: (warning) scanf without field width limits can crash with huge input data >[source3/libads/ldap.c:2537]: (warning) scanf without field width limits can crash with huge input data >[source3/libgpo/gpext/scripts.c:392]: (style) Statements following return, break, continue, goto or throw will never be executed. >[source3/libnet/libnet_dssync_passdb.c:1587] -> [source3/libnet/libnet_dssync_passdb.c:1580]: (style) Found duplicate branches for if and else. >[source3/libnet/libnet_dssync_passdb.c:1122]: (style) Variable 'comment' is assigned a value that is never used >[source3/libnet/libnet_dssync_passdb.c:1370]: (style) Variable 'sAMAccountType' is assigned a value that is never used >[source3/libnet/libnet_dssync_passdb.c:1492]: (style) Variable 'sAMAccountType' is assigned a value that is never used >[source3/libnet/libnet_dssync_passdb.c:1493]: (style) Variable 'groupType' is assigned a value that is never used >[source3/libnet/libnet_dssync_passdb.c:1631]: (style) Variable 'sAMAccountType' is assigned a value that is never used >[source3/libnet/libnet_dssync_passdb.c:1632]: (style) Variable 'groupType' is assigned a value that is never used >[source3/libnet/libnet_dssync_passdb.c:1784]: (style) Variable 'uacc' is assigned a value that is never used >[source3/libnet/libnet_join.c:122]: (style) The scope of the variable 'cp' can be reduced >[source3/libnet/libnet_samsync_ldif.c:109]: (style) The scope of the variable 'len' can be reduced >[source3/libnet/libnet_samsync_ldif.c:881]: (style) The scope of the variable 'i' can be reduced >[source3/libnet/libnet_samsync_ldif.c:881]: (style) The scope of the variable 'j' can be reduced >[source3/libnet/libnet_samsync_ldif.c:881]: (style) The scope of the variable 'k' can be reduced >[source3/libnet/libnet_samsync_ldif.c:931]: (style) The scope of the variable 'builtin_sid' can be reduced >[source3/librpc/crypto/gse.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source3/libsmb/clidfs.c:523]: (style) The scope of the variable 'p' can be reduced >[source3/libsmb/clifile.c:2664]: (style) The scope of the variable 'set_timeout' can be reduced >[source3/libsmb/clifile.c:2836]: (style) The scope of the variable 'set_timeout' can be reduced >[source3/libsmb/clilist.c:357]: (style) The scope of the variable 'dirlist_len' can be reduced >[source3/libsmb/cliprint.c:62]: (style) The scope of the variable 'result_code' can be reduced >[source3/libsmb/clirap2.c:1267]: (style) The scope of the variable 'res' can be reduced >[source3/libsmb/clirap2.c:1491]: (style) The scope of the variable 'res' can be reduced >[source3/libsmb/clirap2.c:1794]: (style) The scope of the variable 'res' can be reduced >[source3/libsmb/clirap2.c:1868]: (style) The scope of the variable 'res' can be reduced >[source3/libsmb/clirap2.c:662]: (style) Clarify calculation precedence for - and ? >[source3/libsmb/clirap2.c:731]: (style) Clarify calculation precedence for - and ? >[source3/libsmb/clirap2.c:2106]: (style) Clarify calculation precedence for - and ? >[source3/libsmb/clirap2.c:2466]: (style) Clarify calculation precedence for - and ? >[source3/libsmb/clirap2.c:2565]: (style) Clarify calculation precedence for - and ? >[source3/libsmb/clirap2.c:2615]: (style) Clarify calculation precedence for - and ? >[source3/libsmb/conncache.c:105]: (warning) scanf without field width limits can crash with huge input data >[source3/libsmb/libsmb_context.c:545]: (style) The scope of the variable 'pid' can be reduced >[source3/libsmb/libsmb_dir.c:372]: (style) The scope of the variable 'saved_errno' can be reduced >[source3/libsmb/libsmb_dir.c:381]: (style) The scope of the variable 'p' can be reduced >[source3/libsmb/libsmb_file.c:605]: (style) The scope of the variable 'ret' can be reduced >[source3/libsmb/libsmb_server.c:688]: (style) The scope of the variable 'flags' can be reduced >[source3/libsmb/libsmb_stat.c:360]: (style) Variable 'flags' is assigned a value that is never used >[source3/libsmb/libsmb_xattr.c:1710]: (style) The scope of the variable 'ret2' can be reduced >[source3/libsmb/libsmb_xattr.c:2005]: (style) The scope of the variable 'ret' can be reduced >[source3/libsmb/libsmb_xattr.c:306]: (warning) scanf without field width limits can crash with huge input data >[source3/libsmb/libsmb_xattr.c:336]: (warning) scanf without field width limits can crash with huge input data >[source3/libsmb/libsmb_xattr.c:347]: (warning) scanf without field width limits can crash with huge input data >[source3/libsmb/namecache.c:66]: (style) The scope of the variable 'i' can be reduced >[source3/libsmb/namequery.c:3020]: (style) The scope of the variable 'i' can be reduced >[source3/libsmb/nmblib.c:295]: (style) The scope of the variable 'p' can be reduced >[source3/libsmb/trustdom_cache.c:365]: (style) The scope of the variable 'i' can be reduced >[source3/locking/brlock.c:1917] -> [source3/locking/brlock.c:1917]: (style) Same expression on both sides of '>'. >[source3/locking/brlock.c:1595]: (style) The scope of the variable 'i' can be reduced >[source3/locking/posix.c:583]: (style) The scope of the variable 'i' can be reduced >[source3/modules/getdate.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 29. >[source3/modules/getdate.c:1440]: (error) Uninitialized variable: yyptr >[source3/modules/vfs_afsacl.c:246]: (warning) scanf without field width limits can crash with huge input data >[source3/modules/vfs_afsacl.c:255]: (warning) scanf without field width limits can crash with huge input data >[source3/modules/vfs_afsacl.c:279]: (warning) scanf without field width limits can crash with huge input data >[source3/modules/vfs_aixacl.c:35]: (style) Unused variable: user_id >[source3/modules/vfs_aixacl.c:92]: (style) Unused variable: user_id >[source3/modules/vfs_aixacl2.c:208]: (style) Unused variable: ret >[source3/modules/vfs_default.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 16. >[source3/modules/vfs_full_audit.c:224]: (style) struct or union member 'Anonymous1::type' is never used >[source3/modules/vfs_gpfs.c:990]: (style) Variable 'status' is assigned a value that is never used >[source3/modules/vfs_hpuxacl.c:418]: (style) Unused variable: check_which >[source3/modules/vfs_hpuxacl.c:418]: (style) Unused variable: check_rc >[source3/modules/vfs_netatalk.c:67]: (style) The scope of the variable 'dname' can be reduced >[source3/modules/vfs_posixacl.c:230]: (error) Possible null pointer dereference: result - otherwise it is redundant to check if result is null at line 231 >[source3/modules/vfs_preopen.c:151]: (style) Variable 'nwritten' is assigned a value that is never used >[source3/modules/vfs_readonly.c:85]: (warning) Redundant assignment of "ent" to itself >[source3/modules/vfs_readonly.c:73]: (style) The scope of the variable 'i' can be reduced >[source3/modules/vfs_recycle.c:161]: (warning) scanf without field width limits can crash with huge input data >[source3/modules/vfs_recycle.c:178]: (warning) scanf without field width limits can crash with huge input data >[source3/modules/vfs_smb_traffic_analyzer.c:414]: (style) The scope of the variable 'Write' can be reduced >[source3/modules/vfs_smb_traffic_analyzer.c:417]: (style) The scope of the variable 'output' can be reduced >[source3/nmbd/nmbd.c:232]: (style) The scope of the variable 'print_waiting_msg' can be reduced >[source3/nmbd/nmbd_incomingrequests.c:453]: (style) The scope of the variable 'i' can be reduced >[source3/nmbd/nmbd_synclists.c:283]: (warning) scanf without field width limits can crash with huge input data >[source3/nmbd/nmbd_winsserver.c:1966]: (style) The scope of the variable 'i' can be reduced >[source3/nmbd/nmbd_winsserver.c:657]: (warning) scanf without field width limits can crash with huge input data >[source3/nmbd/nmbd_winsserver.c:753]: (warning) scanf without field width limits can crash with huge input data >[source3/nmbd/nmbd_winsserver.c:757]: (warning) scanf without field width limits can crash with huge input data >[source3/nmbd/nmbd_winsserver.c:758]: (warning) scanf without field width limits can crash with huge input data >[source3/pam_smbpass/support.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 13. >[source3/param/loadparm.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 15. >[source3/param/loadparm.c:6351]: (style) The scope of the variable 'err' can be reduced >[source3/param/loadparm.c:7030]: (style) The scope of the variable 'i' can be reduced >[source3/param/loadparm.c:7221]: (style) The scope of the variable 'i' can be reduced >[source3/param/loadparm.c:7848]: (style) The scope of the variable 'i' can be reduced >[source3/param/loadparm.c:8726]: (style) The scope of the variable 'n2' can be reduced >[source3/param/loadparm.c:7164]: (warning) scanf without field width limits can crash with huge input data >[source3/passdb/account_pol.c:215]: (style) The scope of the variable 'i' can be reduced >[source3/passdb/pdb_ipa.c:1134]: (style) The scope of the variable 'ret' can be reduced >[source3/passdb/pdb_ipa.c:1135]: (style) The scope of the variable 'princ' can be reduced >[source3/passdb/pdb_ipa.c:1209]: (style) The scope of the variable 'name' can be reduced >[source3/passdb/pdb_ldap.c:814]: (style) The scope of the variable 'clear_text_pw' can be reduced >[source3/passdb/pdb_ldap.c:882]: (style) The scope of the variable 'i' can be reduced >[source3/passdb/pdb_ldap.c:1378]: (style) The scope of the variable 'i' can be reduced >[source3/passdb/pdb_ldap.c:1938]: (style) The scope of the variable 'rc' can be reduced >[source3/passdb/pdb_ldap.c:1943]: (style) The scope of the variable 'attr_list' can be reduced >[source3/passdb/pdb_ldap.c:5249]: (style) The scope of the variable 'homedir' can be reduced >[source3/passdb/pdb_ldap.c:5250]: (style) The scope of the variable 'gidstr' can be reduced >[source3/passdb/pdb_ldap.c:5251]: (style) The scope of the variable 'uidstr' can be reduced >[source3/passdb/pdb_ldap.c:5252]: (style) The scope of the variable 'shell' can be reduced >[source3/passdb/pdb_ldap.c:5572]: (style) The scope of the variable 'gidstr' can be reduced >[source3/passdb/pdb_ldap.c:6226]: (style) The scope of the variable 'prev_pwd' can be reduced >[source3/passdb/pdb_nds.c:764]: (style) The scope of the variable 'attr_list' can be reduced >[source3/passdb/pdb_smbpasswd.c:755]: (style) The scope of the variable 'i' can be reduced >[source3/passdb/pdb_tdb.c:329]: (style) The scope of the variable 'ok' can be reduced >[source3/passdb/py_passdb.c:213]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:239]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:265]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:291]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:317]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:343]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:369]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:395]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:421]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:447]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:473]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:499]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:527]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:576]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:612]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:638]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:664]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:694]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:780]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:1165]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:1350]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:1385]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:1419]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:1453]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:1489]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:1687]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:1722]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:1757]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:1792]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:2007]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:2039]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:2109]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:2207]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:2244]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:2281]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:2420]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:3140]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:3173]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:3371]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:3405]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:3629]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:3670]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/passdb/py_passdb.c:3697]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/printing/nt_printing.c:1329]: (error) Possible null pointer dereference: files - otherwise it is redundant to check if files is null at line 1324 >[source3/printing/nt_printing.c:780]: (style) The scope of the variable 'i' can be reduced >[source3/printing/nt_printing.c:972]: (style) The scope of the variable 'i' can be reduced >[source3/printing/nt_printing_ads.c:212]: (style) The scope of the variable 'prt_dn' can be reduced >[source3/printing/print_generic.c:152]: (style) The scope of the variable 'i' can be reduced >[source3/printing/print_iprint.c:81]: (style) The scope of the variable 'temp' can be reduced >[source3/printing/printing.c:2650]: (style) The scope of the variable 'ret' can be reduced >[source3/printing/printing.c:2705]: (style) The scope of the variable 'path' can be reduced >[source3/printing/printing.c:2706]: (style) The scope of the variable 'len' can be reduced >[source3/registry/reg_backend_db.c:1280]: (style) The scope of the variable 'i' can be reduced >[source3/registry/reg_backend_printing.c:58]: (style) The scope of the variable 'subkey' can be reduced >[source3/registry/reg_perfcount.c:1099] -> [source3/registry/reg_perfcount.c:1094]: (style) Found duplicate branches for if and else. >[source3/registry/reg_perfcount.c:75]: (style) The scope of the variable 'buf' can be reduced >[source3/registry/reg_perfcount.c:482]: (style) The scope of the variable 'data32' can be reduced >[source3/registry/regfio.c:1471]: (warning) Using sizeof with a numeric constant as function argument might not be what you intended. >[source3/registry/regfio.c:144]: (warning) Logical disjunction always evaluates to true: returned < 32 || returned == -1. >[source3/rpc_client/cli_lsarpc.c:281]: (style) The scope of the variable 'name' can be reduced >[source3/rpc_client/cli_lsarpc.c:281]: (style) The scope of the variable 'dom_name' can be reduced >[source3/rpc_client/cli_winreg_spoolss.c:1406] -> [source3/rpc_client/cli_winreg_spoolss.c:1406]: (style) Found duplicate branches for if and else. >[source3/rpc_client/cli_winreg_spoolss.c:1407] -> [source3/rpc_client/cli_winreg_spoolss.c:1407]: (style) Found duplicate branches for if and else. >[source3/rpc_client/cli_winreg_spoolss.c:1408] -> [source3/rpc_client/cli_winreg_spoolss.c:1408]: (style) Found duplicate branches for if and else. >[source3/rpc_client/cli_winreg_spoolss.c:1409] -> [source3/rpc_client/cli_winreg_spoolss.c:1409]: (style) Found duplicate branches for if and else. >[source3/rpc_client/cli_winreg_spoolss.c:1410] -> [source3/rpc_client/cli_winreg_spoolss.c:1410]: (style) Found duplicate branches for if and else. >[source3/rpc_client/cli_winreg_spoolss.c:1411] -> [source3/rpc_client/cli_winreg_spoolss.c:1411]: (style) Found duplicate branches for if and else. >[source3/rpc_client/cli_winreg_spoolss.c:1412] -> [source3/rpc_client/cli_winreg_spoolss.c:1412]: (style) Found duplicate branches for if and else. >[source3/rpc_client/cli_winreg_spoolss.c:1413] -> [source3/rpc_client/cli_winreg_spoolss.c:1413]: (style) Found duplicate branches for if and else. >[source3/rpc_client/cli_winreg_spoolss.c:1414] -> [source3/rpc_client/cli_winreg_spoolss.c:1414]: (style) Found duplicate branches for if and else. >[source3/rpc_client/cli_winreg_spoolss.c:1415] -> [source3/rpc_client/cli_winreg_spoolss.c:1415]: (style) Found duplicate branches for if and else. >[source3/rpc_client/cli_winreg_spoolss.c:1416] -> [source3/rpc_client/cli_winreg_spoolss.c:1416]: (style) Found duplicate branches for if and else. >[source3/rpc_client/cli_winreg_spoolss.c:508]: (warning) scanf without field width limits can crash with huge input data >[source3/rpc_client/cli_winreg_spoolss.c:572]: (warning) scanf without field width limits can crash with huge input data >[source3/rpc_client/cli_winreg_spoolss.c:1406]: (warning) A boolean comparison with the string literal "" is always true. >[source3/rpc_client/cli_winreg_spoolss.c:1407]: (warning) A boolean comparison with the string literal "" is always true. >[source3/rpc_client/cli_winreg_spoolss.c:1408]: (warning) A boolean comparison with the string literal "" is always true. >[source3/rpc_client/cli_winreg_spoolss.c:1409]: (warning) A boolean comparison with the string literal "" is always true. >[source3/rpc_client/cli_winreg_spoolss.c:1410]: (warning) A boolean comparison with the string literal "" is always true. >[source3/rpc_client/cli_winreg_spoolss.c:1411]: (warning) A boolean comparison with the string literal "" is always true. >[source3/rpc_client/cli_winreg_spoolss.c:1412]: (warning) A boolean comparison with the string literal "" is always true. >[source3/rpc_client/cli_winreg_spoolss.c:1413]: (warning) A boolean comparison with the string literal "" is always true. >[source3/rpc_client/cli_winreg_spoolss.c:1414]: (warning) A boolean comparison with the string literal "" is always true. >[source3/rpc_client/cli_winreg_spoolss.c:1415]: (warning) A boolean comparison with the string literal "" is always true. >[source3/rpc_client/cli_winreg_spoolss.c:1416]: (warning) A boolean comparison with the string literal "" is always true. >[source3/rpc_server/lsa/srv_lsa_nt.c:2603]: (style) The scope of the variable 'i' can be reduced >[source3/rpc_server/lsa/srv_lsa_nt.c:2603]: (style) The scope of the variable 'j' can be reduced >[source3/rpc_server/netlogon/srv_netlog_nt.c:237] -> [source3/rpc_server/netlogon/srv_netlog_nt.c:235]: (style) Found duplicate branches for if and else. >[source3/rpc_server/netlogon/srv_netlog_nt.c:245] -> [source3/rpc_server/netlogon/srv_netlog_nt.c:243]: (style) Found duplicate branches for if and else. >[source3/rpc_server/rpc_config.c:48]: (style) The scope of the variable 'i' can be reduced >[source3/rpc_server/rpc_ncacn_np.c:783]: (error) Possible null pointer dereference: cli_pipe - otherwise it is redundant to check if cli_pipe is null at line 780 >[source3/rpc_server/rpc_sock_helper.c:41]: (style) The scope of the variable 'rc' can be reduced >[source3/rpc_server/rpc_sock_helper.c:60]: (style) The scope of the variable 'addr' can be reduced >[source3/rpc_server/rpc_sock_helper.c:165]: (style) The scope of the variable 'rc' can be reduced >[source3/rpc_server/rpc_sock_helper.c:184]: (style) The scope of the variable 'addr' can be reduced >[source3/rpc_server/samr/srv_samr_chgpasswd.c:675]: (style) The scope of the variable 'no_pw' can be reduced >[source3/rpc_server/samr/srv_samr_util.c:308]: (style) The scope of the variable 'old_string' can be reduced >[source3/rpc_server/samr/srv_samr_util.c:309]: (style) The scope of the variable 'new_string' can be reduced >[source3/rpc_server/spoolss/srv_spoolss_nt.c:6059]: (style) The scope of the variable 'p' can be reduced >[source3/rpc_server/spoolss/srv_spoolss_nt.c:6255]: (style) The scope of the variable 'spooling' can be reduced >[source3/rpc_server/spoolss/srv_spoolss_nt.c:7800]: (style) The scope of the variable 'command' can be reduced >[source3/rpc_server/spoolss/srv_spoolss_nt.c:7802]: (style) The scope of the variable 'ret' can be reduced >[source3/rpc_server/spoolss/srv_spoolss_nt.c:7861]: (style) The scope of the variable 'i' can be reduced >[source3/rpc_server/spoolss/srv_spoolss_nt.c:7913]: (style) The scope of the variable 'i' can be reduced >[source3/rpc_server/spoolss/srv_spoolss_nt.c:2074]: (style) Variable 'version' is assigned a value that is never used >[source3/rpc_server/srvsvc/srv_srvsvc_nt.c:1529]: (style) The scope of the variable 'command' can be reduced >[source3/rpc_server/srvsvc/srv_srvsvc_nt.c:1535]: (style) The scope of the variable 'ret' can be reduced >[source3/rpc_server/winreg/srv_winreg_nt.c:522]: (style) The scope of the variable 'msg' can be reduced >[source3/rpcclient/cmd_lsarpc.c:1138]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_netlogon.c:245]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_netlogon.c:304]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_netlogon.c:375]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_netlogon.c:769]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_netlogon.c:775]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_netlogon.c:879]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_netlogon.c:982]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_netlogon.c:1138]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:330]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:333]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:336]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:542]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:548]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:628]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:631]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:806]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:809]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:899]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:903]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:907]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:988]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:992]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:1072]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:1076]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:1153]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:1218]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:1221]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:1305]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:1312]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:1509]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:1512]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:1515]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:1520]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:1525]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:1710]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:1713]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:1828]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:1915]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:1992]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:2181]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:2228]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:2331]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:2446]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_samr.c:2542]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_spoolss.c:120]: (warning) scanf without field width limits can crash with huge input data >[source3/rpcclient/cmd_spoolss.c:164]: (warning) scanf without field width limits can crash with huge input data >[source3/smbd/dosmode.c:782]: (error) Analysis failed. If the code is valid then please report this failure. >[source3/smbd/fileio.c:284]: (style) The scope of the variable 'write_path' can be reduced >[source3/smbd/lanman.c:309]: (style) The scope of the variable 'stringused' can be reduced >[source3/smbd/lanman.c:4920]: (style) The scope of the variable 'i' can be reduced >[source3/smbd/lanman.c:5264]: (style) The scope of the variable 'i' can be reduced >[source3/smbd/lanman.c:5264]: (style) The scope of the variable 'n' can be reduced >[source3/smbd/lanman.c:1301]: (warning) scanf without field width limits can crash with huge input data >[source3/smbd/mangle_hash.c:173]: (style) The scope of the variable 'ext_len' can be reduced >[source3/smbd/mangle_hash2.c:371]: (style) Array index i is used before limits check >[source3/smbd/open.c:290]: (error) Analysis failed. If the code is valid then please report this failure. >[source3/smbd/open.c:626]: (error) Analysis failed. If the code is valid then please report this failure. >[source3/smbd/open.c:1995]: (error) Analysis failed. If the code is valid then please report this failure. >[source3/smbd/perfcount.c:102]: (style) The scope of the variable 'module_param' can be reduced >[source3/smbd/posix_acls.c:847]: (style) The scope of the variable 'count' can be reduced >[source3/smbd/posix_acls.c:3309]: (style) The scope of the variable 'num_acls' can be reduced >[source3/smbd/posix_acls.c:3310]: (style) The scope of the variable 'num_def_acls' can be reduced >[source3/smbd/posix_acls.c:3318]: (style) The scope of the variable 'i' can be reduced >[source3/smbd/posix_acls.c:2828]: (style) Variable 'mask_perms' is assigned a value that is never used >[source3/smbd/process.c:1865]: (style) The scope of the variable 'unknown_name' can be reduced >[source3/smbd/quotas.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 16. >[source3/smbd/quotas.c:1491]: (error) Uninitialized variable: D >[source3/smbd/quotas.c:517]: (style) The scope of the variable 'quota_default' can be reduced >[source3/smbd/quotas.c:141]: (style) Variable 'pathname' is assigned a value that is never used >[source3/smbd/quotas.c:959]: (style) Unused variable: S >[source3/smbd/reply.c:1905]: (style) The scope of the variable 'retval' can be reduced >[source3/smbd/reply.c:4288]: (style) The scope of the variable 'saved_errno' can be reduced >[source3/smbd/reply.c:461]: (warning) scanf without field width limits can crash with huge input data >[source3/smbd/reply.c:530]: (error) Uninitialized variable: name1 >[source3/smbd/reply.c:530]: (error) Uninitialized variable: name2 >[source3/smbd/server.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 16. >[source3/smbd/server.c:736]: (style) The scope of the variable 'i' can be reduced >[source3/smbd/sesssetup.c:528]: (style) The scope of the variable 'native_os' can be reduced >[source3/smbd/sesssetup.c:529]: (style) The scope of the variable 'native_lanman' can be reduced >[source3/smbd/sesssetup.c:530]: (style) The scope of the variable 'primary_domain' can be reduced >[source3/smbd/statcache.c:338]: (error) Assigning address of local auto-variable to a function parameter. >[source3/smbd/trans2.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 29. >[source3/smbd/trans2.c:6207]: (style) The scope of the variable 'p' can be reduced >[source3/smbd/uid.c:94]: (style) The scope of the variable 'i' can be reduced >[source3/smbd/utmp.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 37. >[source3/smbd/vfs.c:1302]: (style) The scope of the variable 'ret' can be reduced >[source3/tests/sysquotas.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 14. >[source3/torture/cmd_vfs.c:314]: (warning) scanf without field width limits can crash with huge input data >[source3/torture/cmd_vfs.c:985]: (warning) scanf without field width limits can crash with huge input data >[source3/torture/cmd_vfs.c:1006]: (warning) scanf without field width limits can crash with huge input data >[source3/torture/cmd_vfs.c:1011]: (warning) scanf without field width limits can crash with huge input data >[source3/torture/cmd_vfs.c:1114]: (warning) scanf without field width limits can crash with huge input data >[source3/torture/cmd_vfs.c:1119]: (warning) scanf without field width limits can crash with huge input data >[source3/torture/nbio.c:307]: (style) Variable 'i' is assigned a value that is never used >[source3/torture/pdbtest.c:114] -> [source3/torture/pdbtest.c:114]: (style) Same expression on both sides of '!='. >[source3/torture/test_notify.c:578]: (style) Variable 'status' is assigned a value that is never used >[source3/torture/test_smb2.c:634] -> [source3/torture/test_smb2.c:634]: (style) Same expression on both sides of '&&'. >[source3/torture/torture.c:4287]: (style) Statements following return, break, continue, goto or throw will never be executed. >[source3/torture/torture.c:4324]: (style) Statements following return, break, continue, goto or throw will never be executed. >[source3/torture/torture.c:4361]: (style) Statements following return, break, continue, goto or throw will never be executed. >[source3/torture/torture.c:4366]: (style) Statements following return, break, continue, goto or throw will never be executed. >[source3/torture/torture.c:424]: (style) The scope of the variable 'unc_list' can be reduced >[source3/torture/torture.c:426]: (style) The scope of the variable 'result' can be reduced >[source3/torture/torture.c:9174]: (style) The scope of the variable 'i' can be reduced >[source3/torture/torture.c:732]: (style) Variable 'buf_rd' is not assigned a value >[source3/torture/vfstest.c:290]: (error) Possible null pointer dereference: argv - otherwise it is redundant to check if argv is null at line 292 >[source3/torture/vfstest.c:273]: (style) The scope of the variable 'i' can be reduced >[source3/torture/wbc_async.c:136]: (style) Unused variable: result >[source3/utils/dbwrap_tool.c:105]: (style) The scope of the variable 'hex_string' can be reduced >[source3/utils/dbwrap_torture.c:250]: (style) The scope of the variable 'extra_argc' can be reduced >[source3/utils/dbwrap_torture.c:335]: (warning) Comparison of a boolean with an integer >[source3/utils/eventlogadm.c:54]: (style) The scope of the variable 'i' can be reduced >[source3/utils/log2pcaphex.c:218]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/log2pcaphex.c:230]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/log2pcaphex.c:231]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/log2pcaphex.c:232]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/log2pcaphex.c:233]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/log2pcaphex.c:234]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/log2pcaphex.c:235]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/log2pcaphex.c:236]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/log2pcaphex.c:237]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/log2pcaphex.c:238]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/log2pcaphex.c:239]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/log2pcaphex.c:240]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/log2pcaphex.c:242]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/log2pcaphex.c:247]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/net.c:97]: (style) The scope of the variable 'trust_pw' can be reduced >[source3/utils/net_ads.c:232]: (style) The scope of the variable 'second_time' can be reduced >[source3/utils/net_ads.c:461]: (style) The scope of the variable 'userdn' can be reduced >[source3/utils/net_ads.c:711]: (style) The scope of the variable 'shortattrs' can be reduced >[source3/utils/net_ads.c:712]: (style) The scope of the variable 'longattrs' can be reduced >[source3/utils/net_ads.c:713]: (style) The scope of the variable 'disp_fields' can be reduced >[source3/utils/net_ads.c:864]: (style) The scope of the variable 'shortattrs' can be reduced >[source3/utils/net_ads.c:865]: (style) The scope of the variable 'longattrs' can be reduced >[source3/utils/net_ads.c:866]: (style) The scope of the variable 'disp_fields' can be reduced >[source3/utils/net_dns.c:49]: (style) Checking if unsigned variable 'num_addrs' is less than zero. >[source3/utils/net_idmap.c:273]: (error) sscanf width 128 in format string (no. 2) is larger than destination, use %127s to prevent overflowing destination: sid_string[128] >[source3/utils/net_idmap.c:280]: (error) sscanf width 128 in format string (no. 2) is larger than destination, use %127s to prevent overflowing destination: sid_string[128] >[source3/utils/net_idmap.c:273]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/net_idmap.c:280]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/net_idmap.c:287]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/net_idmap.c:296]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/net_idmap_check.c:583]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/net_lookup.c:59]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/net_lookup.c:412]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/net_rap.c:731]: (style) The scope of the variable 'ret' can be reduced >[source3/utils/net_rpc.c:879]: (style) The scope of the variable 'ret' can be reduced >[source3/utils/net_rpc.c:4360]: (style) The scope of the variable 'j' can be reduced >[source3/utils/net_rpc_registry.c:1463]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/net_sam.c:568]: (style) The scope of the variable 'i' can be reduced >[source3/utils/net_sam.c:599]: (style) The scope of the variable 'i' can be reduced >[source3/utils/net_sam.c:1843]: (style) The scope of the variable 'princ' can be reduced >[source3/utils/nmblookup.c:115]: (style) The scope of the variable 'i' can be reduced >[source3/utils/nmblookup.c:115]: (style) The scope of the variable 'j' can be reduced >[source3/utils/nmblookup.c:340]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/nmblookup.c:243]: (error) Uninitialized variable: lookup >[source3/utils/ntlm_auth.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 35. >[source3/utils/ntlm_auth.c:721]: (style) The scope of the variable 'i' can be reduced >[source3/utils/ntlm_auth.c:1645]: (style) The scope of the variable 'base64_key' can be reduced >[source3/utils/ntlm_auth.c:2255]: (style) The scope of the variable 'hex_lm_key' can be reduced >[source3/utils/ntlm_auth.c:2256]: (style) The scope of the variable 'hex_user_session_key' can be reduced >[source3/utils/ntlm_auth.c:2377]: (style) The scope of the variable 'full_username' can be reduced >[source3/utils/ntlm_auth.c:2685]: (style) The scope of the variable 'hex_lm_key' can be reduced >[source3/utils/ntlm_auth.c:2686]: (style) The scope of the variable 'hex_user_session_key' can be reduced >[source3/utils/passwd_util.c:36]: (style) The scope of the variable 'len' can be reduced >[source3/utils/pdbedit.c:962]: (style) Statements following return, break, continue, goto or throw will never be executed. >[source3/utils/pdbedit.c:1144]: (style) The scope of the variable 'i' can be reduced >[source3/utils/pdbedit.c:70]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/sharesec.c:188]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/sharesec.c:228]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/sharesec.c:245]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/smbcacls.c:1446]: (error) Possible null pointer dereference: share - otherwise it is redundant to check if share is null at line 1445 >[source3/utils/smbcacls.c:491]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/smbcacls.c:546]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/smbcacls.c:554]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/smbcacls.c:572]: (warning) scanf without field width limits can crash with huge input data >[source3/utils/smbcontrol.c:92]: (style) Variable 'te' is assigned a value that is never used >[source3/utils/smbcquotas.c:700]: (error) Possible null pointer dereference: share - otherwise it is redundant to check if share is null at line 699 >[source3/utils/smbfilter.c:179]: (style) Variable 'status' is assigned a value that is never used >[source3/utils/smbget.c:95]: (style) The scope of the variable 'tmp' can be reduced >[source3/utils/smbget.c:490]: (style) The scope of the variable 'i' can be reduced >[source3/utils/smbget.c:535]: (style) The scope of the variable 'intdata' can be reduced >[source3/utils/smbget.c:535]: (style) The scope of the variable 'stringdata' can be reduced >[source3/utils/smbta-util.c:74]: (style) Variable 'l' is assigned a value that is never used >[source3/utils/smbta-util.c:80]: (warning) scanf without field width limits can crash with huge input data >[source3/web/cgi.c:411]: (error) syntax error >[source3/web/neg_lang.c:35]: (style) The scope of the variable 'fd' can be reduced >[source3/web/neg_lang.c:97]: (warning) scanf without field width limits can crash with huge input data >[source3/web/swat.c:622]: (style) The scope of the variable 'i' can be reduced >[source3/web/swat.c:623]: (style) The scope of the variable 's' can be reduced >[source3/web/swat.c:818]: (style) The scope of the variable 'HomeExpo' can be reduced >[source3/web/swat.c:819]: (style) The scope of the variable 'SerType' can be reduced >[source3/web/swat.c:471]: (style) Boolean result is used in bitwise operation. Clarify expression with parentheses >[source3/winbindd/idmap.c:205]: (warning) scanf without field width limits can crash with huge input data >[source3/winbindd/idmap_ad.c:260]: (style) Array index i is used before limits check >[source3/winbindd/idmap_ad.c:277]: (style) Array index i is used before limits check >[source3/winbindd/idmap_adex/provider_unified.c:680]: (style) The scope of the variable 's' can be reduced >[source3/winbindd/idmap_adex/provider_unified.c:751]: (style) The scope of the variable 'keywords' can be reduced >[source3/winbindd/idmap_adex/provider_unified.c:862]: (style) The scope of the variable 'keywords' can be reduced >[source3/winbindd/idmap_adex/provider_unified.c:61]: (style) Unused variable: nt_status >[source3/winbindd/idmap_autorid.c:683]: (warning) scanf without field width limits can crash with huge input data >[source3/winbindd/idmap_tdb.c:298]: (style) The scope of the variable 'config_error' can be reduced >[source3/winbindd/idmap_tdb2.c:290]: (warning) scanf without field width limits can crash with huge input data >[source3/winbindd/idmap_tdb2.c:293]: (warning) scanf without field width limits can crash with huge input data >[source3/winbindd/idmap_tdb2.c:494]: (warning) scanf without field width limits can crash with huge input data >[source3/winbindd/idmap_tdb2.c:500]: (warning) scanf without field width limits can crash with huge input data >[source3/winbindd/idmap_tdb_common.c:490]: (warning) scanf without field width limits can crash with huge input data >[source3/winbindd/idmap_tdb_common.c:499]: (warning) scanf without field width limits can crash with huge input data >[source3/winbindd/winbindd.c:277]: (style) The scope of the variable 'is_parent' can be reduced >[source3/winbindd/winbindd.c:891]: (style) The scope of the variable 'nwritten' can be reduced >[source3/winbindd/winbindd_cache.c:4161]: (style) The scope of the variable 'ok' can be reduced >[source3/winbindd/winbindd_cred_cache.c:504]: (style) The scope of the variable 'ret' can be reduced >[source3/winbindd/winbindd_msrpc.c:543]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source3/winbindd/winbindd_pam.c:1369]: (style) The scope of the variable 'local_nt_response' can be reduced >[source3/winbindd/winbindd_pam.c:1531]: (style) The scope of the variable 'domain_user' can be reduced >[source3/winbindd/winbindd_util.c:214]: (warning) scanf without field width limits can crash with huge input data >[source4/auth/gensec/gensec_gssapi.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/auth/gensec/gensec_gssapi.c:234]: (style) The scope of the variable 'ret' can be reduced >[source4/auth/gensec/gensec_gssapi.c:58]: (style) Variable 'maj_stat' is assigned a value that is never used >[source4/auth/gensec/gensec_gssapi.c:120]: (style) Unused variable: realm >[source4/auth/gensec/gensec_gssapi.c:447]: (style) Unused variable: ret >[source4/auth/gensec/gensec_krb5.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/auth/kerberos/kerberos_pac.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 25. >[source4/auth/kerberos/kerberos_util.c:152]: (style) Variable 'self_service' is assigned a value that is never used >[source4/auth/kerberos/krb5_init_context.c:49]: (style) struct or union member 'smb_krb5_socket::partial_read' is never used >[source4/auth/ntlm/auth_unix.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 18. >[source4/auth/ntlm/auth_unix.c:514]: (style) Unused variable: ret >[source4/auth/ntlm/auth_unix.c:301]: (style) The scope of the variable 'pam_error' can be reduced >[source4/auth/pyauth.c:228]: (style) The scope of the variable 'methods' can be reduced >[source4/cldap_server/netlogon.c:60]: (style) The scope of the variable 'none_attrs' can be reduced >[source4/client/cifsdd.c:545]: (style) Variable 'i' is assigned a value that is never used >[source4/client/client.c:859]: (style) The scope of the variable 'rname' can be reduced >[source4/client/client.c:1029]: (style) The scope of the variable 'p' can be reduced >[source4/client/client.c:1848]: (style) The scope of the variable 'i' can be reduced >[source4/client/client.c:2817]: (style) The scope of the variable 'j' can be reduced >[source4/client/client.c:1534]: (style) Variable 'attribute' is assigned a value that is never used >[source4/client/client.c:3338]: (warning) scanf without field width limits can crash with huge input data >[source4/client/client.c:3344]: (error) Memory leak: base_directory >[source4/client/client.c:3344]: (error) Memory leak: desthost >[source4/client/tree.c:319]: (style) The scope of the variable 'dirbuf' can be reduced >[source4/client/tree.c:486]: (style) The scope of the variable 'dirbuf' can be reduced >[source4/client/tree.c:318]: (style) Variable 'level' is assigned a value that is never used >[source4/client/tree.c:335]: (style) Unused variable: server >[source4/client/tree.c:613]: (style) Unused variable: i >[source4/dns_server/dns_server.c:749]: (error) Possible null pointer dereference: z - otherwise it is redundant to check if z is null at line 746 >[source4/dns_server/dns_server.c:750]: (error) Possible null pointer dereference: z - otherwise it is redundant to check if z is null at line 746 >[source4/dns_server/dns_server.c:546]: (style) Variable 'ret' is assigned a value that is never used >[source4/dsdb/common/dsdb_dn.c:79]: (style) Variable 'data' is assigned a value that is never used >[source4/dsdb/common/util.c:1905]: (style) The scope of the variable 'ret' can be reduced >[source4/dsdb/common/util.c:2370]: (style) The scope of the variable 'domain_ref2_attrs' can be reduced >[source4/dsdb/common/util.c:4003]: (style) The scope of the variable 'expression' can be reduced >[source4/dsdb/kcc/kcc_drs_replica_info.c:228]: (error) Possible null pointer dereference: schema_attr - otherwise it is redundant to check if schema_attr is null at line 234 >[source4/dsdb/kcc/kcc_drs_replica_info.c:398]: (style) Variable 'is_level_post_2003' is assigned a value that is never used >[source4/dsdb/kcc/kcc_drs_replica_info.c:790]: (style) Variable 'flags' is assigned a value that is never used >[source4/dsdb/kcc/kcc_drs_replica_info.c:791]: (style) Variable 'value_dn' is assigned a value that is never used >[source4/dsdb/kcc/kcc_periodic.c:159]: (style) Variable 'status' is assigned a value that is never used >[source4/dsdb/kcc/kcc_topology.c:1411] -> [source4/dsdb/kcc/kcc_topology.c:1408]: (style) Found duplicate if expressions. >[source4/dsdb/kcc/kcc_topology.c:1239] -> [source4/dsdb/kcc/kcc_topology.c:1231]: (style) Found duplicate branches for if and else. >[source4/dsdb/kcc/kcc_topology.c:3081]: (style) Variable 'opts' is assigned a value that is never used >[source4/dsdb/pydsdb.c:436]: (error) Possible null pointer dereference: target_attr - otherwise it is redundant to check if target_attr is null at line 430 >[source4/dsdb/pydsdb.c:918]: (style) Variable 'mod' is assigned a value that is never used >[source4/dsdb/repl/replicated_objects.c:219]: (style) The scope of the variable 'ret' can be reduced >[source4/dsdb/samdb/cracknames.c:373]: (style) The scope of the variable 'account' can be reduced >[source4/dsdb/samdb/ldb_modules/acl.c:154]: (style) The scope of the variable 'ret' can be reduced >[source4/dsdb/samdb/ldb_modules/acl.c:1478]: (style) The scope of the variable 'i' can be reduced >[source4/dsdb/samdb/ldb_modules/acl_read.c:257]: (style) The scope of the variable 'acl_attrs' can be reduced >[source4/dsdb/samdb/ldb_modules/descriptor.c:468]: (style) The scope of the variable 'parent_attrs' can be reduced >[source4/dsdb/samdb/ldb_modules/descriptor.c:598]: (style) The scope of the variable 'parent_attrs' can be reduced >[source4/dsdb/samdb/ldb_modules/descriptor.c:47]: (style) struct or union member 'descriptor_data::_dummy' is never used >[source4/dsdb/samdb/ldb_modules/dirsync.c:573]: (warning) Redundant assignment of "tmpel" to itself >[source4/dsdb/samdb/ldb_modules/dirsync.c:984]: (style) The scope of the variable 'ndr_err' can be reduced >[source4/dsdb/samdb/ldb_modules/dirsync.c:78]: (style) Variable 'deletedattr' is assigned a value that is never used >[source4/dsdb/samdb/ldb_modules/extended_dn_in.c:537]: (style) The scope of the variable 'base_dn_filter' can be reduced >[source4/dsdb/samdb/ldb_modules/extended_dn_in.c:543]: (style) The scope of the variable 'all_partitions' can be reduced >[source4/dsdb/samdb/ldb_modules/extended_dn_out.c:82]: (error) Possible null pointer dereference: dereference_control - otherwise it is redundant to check if dereference_control is null at line 85 >[source4/dsdb/samdb/ldb_modules/extended_dn_out.c:83]: (error) Possible null pointer dereference: dereference_control - otherwise it is redundant to check if dereference_control is null at line 85 >[source4/dsdb/samdb/ldb_modules/extended_dn_out.c:710]: (style) The scope of the variable 'critical' can be reduced >[source4/dsdb/samdb/ldb_modules/extended_dn_out.c:710]: (style) Variable 'critical' is assigned a value that is never used >[source4/dsdb/samdb/ldb_modules/linked_attributes.c:898]: (style) The scope of the variable 'ret' can be reduced >[source4/dsdb/samdb/ldb_modules/local_password.c:1015]: (style) The scope of the variable 'i' can be reduced >[source4/dsdb/samdb/ldb_modules/new_partition.c:151]: (style) The scope of the variable 'ret' can be reduced >[source4/dsdb/samdb/ldb_modules/objectclass.c:387]: (style) The scope of the variable 'rdn_name' can be reduced >[source4/dsdb/samdb/ldb_modules/objectclass.c:388]: (style) The scope of the variable 'value' can be reduced >[source4/dsdb/samdb/ldb_modules/objectclass.c:392]: (style) The scope of the variable 'i' can be reduced >[source4/dsdb/samdb/ldb_modules/objectclass.c:392]: (style) The scope of the variable 'j' can be reduced >[source4/dsdb/samdb/ldb_modules/objectclass.c:393]: (style) The scope of the variable 'found' can be reduced >[source4/dsdb/samdb/ldb_modules/objectclass.c:1287]: (style) The scope of the variable 'isCriticalSystemObject' can be reduced >[source4/dsdb/samdb/ldb_modules/operational.c:679]: (error) Invalid number of character (() when these macros are defined: ''. >[source4/dsdb/samdb/ldb_modules/partition.c:473]: (style) The scope of the variable 'i' can be reduced >[source4/dsdb/samdb/ldb_modules/partition.c:848]: (style) An unsigned variable 'i' can't be negative so it is unnecessary to test it. >[source4/dsdb/samdb/ldb_modules/partition_init.c:205]: (style) The scope of the variable 'backend_url' can be reduced >[source4/dsdb/samdb/ldb_modules/partition_metadata.c:185]: (style) The scope of the variable 'dirname' can be reduced >[source4/dsdb/samdb/ldb_modules/password_hash.c:1823]: (warning) Redundant assignment of "lp_ctx" to itself >[source4/dsdb/samdb/ldb_modules/password_hash.c:2150]: (warning) Redundant assignment of "lp_ctx" to itself >[source4/dsdb/samdb/ldb_modules/password_hash.c:1723]: (style) The scope of the variable 'ok' can be reduced >[source4/dsdb/samdb/ldb_modules/ranged_results.c:98]: (style) The scope of the variable 'orig_num_values' can be reduced >[source4/dsdb/samdb/ldb_modules/ranged_results.c:98]: (style) Variable 'orig_num_values' is assigned a value that is never used >[source4/dsdb/samdb/ldb_modules/ranged_results.c:109]: (warning) scanf without field width limits can crash with huge input data >[source4/dsdb/samdb/ldb_modules/ranged_results.c:110]: (warning) scanf without field width limits can crash with huge input data >[source4/dsdb/samdb/ldb_modules/ranged_results.c:216]: (warning) scanf without field width limits can crash with huge input data >[source4/dsdb/samdb/ldb_modules/ranged_results.c:217]: (warning) scanf without field width limits can crash with huge input data >[source4/dsdb/samdb/ldb_modules/repl_meta_data.c:3492]: (style) Statements following return, break, continue, goto or throw will never be executed. >[source4/dsdb/samdb/ldb_modules/repl_meta_data.c:379]: (style) The scope of the variable 'ret' can be reduced >[source4/dsdb/samdb/ldb_modules/repl_meta_data.c:1222]: (style) The scope of the variable 'i' can be reduced >[source4/dsdb/samdb/ldb_modules/repl_meta_data.c:1228]: (style) The scope of the variable 'attrs2' can be reduced >[source4/dsdb/samdb/ldb_modules/resolve_oids.c:415]: (style) Variable 'ldb' is assigned a value that is never used >[source4/dsdb/samdb/ldb_modules/rootdse.c:1216]: (style) Unused variable: ext_res >[source4/dsdb/samdb/ldb_modules/samba_dsdb.c:218]: (style) Variable 'serverRole' is assigned a value that is never used >[source4/dsdb/samdb/ldb_modules/samldb.c:1883]: (style) The scope of the variable 'i' can be reduced >[source4/dsdb/samdb/ldb_modules/samldb.c:1883]: (style) The scope of the variable 'j' can be reduced >[source4/dsdb/samdb/ldb_modules/schema_load.c:461]: (style) The scope of the variable 'ret' can be reduced >[source4/dsdb/samdb/ldb_modules/simple_ldap_map.c:825]: (style) Variable 'entryuuid_private' is assigned a value that is never used >[source4/dsdb/samdb/ldb_modules/subtree_delete.c:46]: (style) The scope of the variable 'i' can be reduced >[source4/dsdb/samdb/ldb_modules/subtree_rename.c:55]: (style) Variable 'ldb' is assigned a value that is never used >[source4/dsdb/samdb/ldb_modules/update_keytab.c:400]: (style) The scope of the variable 'upper_realm' can be reduced >[source4/dsdb/samdb/ldb_modules/update_keytab.c:404]: (style) The scope of the variable 'i' can be reduced >[source4/dsdb/samdb/ldb_modules/util.c:690]: (style) The scope of the variable 'i' can be reduced >[source4/dsdb/schema/schema_query.c:242]: (style) The scope of the variable 'i' can be reduced >[source4/dsdb/schema/schema_query.c:243]: (style) The scope of the variable 'new_len' can be reduced >[source4/dsdb/schema/schema_syntax.c:1827]: (style) The scope of the variable 'ndr_err' can be reduced >[source4/echo_server/echo_server.c:160]: (style) Variable 'ret' is assigned a value that is never used >[source4/heimdal/base/heimbase.c:414]: (style) The scope of the variable 'ret' can be reduced >[source4/heimdal/kdc/default_config.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 20. >[source4/heimdal/kdc/digest.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 18. >[source4/heimdal/kdc/digest.c:801]: (style) The scope of the variable 'md' can be reduced >[source4/heimdal/kdc/kerberos5.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 19. >[source4/heimdal/kdc/kerberos5.c:389]: (error) Memory pointed to by 'buf' is freed twice. >[source4/heimdal/kdc/kerberos5.c:397]: (error) Memory pointed to by 'buf' is freed twice. >[source4/heimdal/kdc/kerberos5.c:410]: (error) Memory pointed to by 'buf' is freed twice. >[source4/heimdal/kdc/kerberos5.c:420]: (error) Memory pointed to by 'buf' is freed twice. >[source4/heimdal/kdc/kerberos5.c:431]: (error) Memory pointed to by 'buf' is freed twice. >[source4/heimdal/kdc/kerberos5.c:436]: (error) Dereferencing 'buf' after it is deallocated / released >[source4/heimdal/kdc/krb5tgs.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 18. >[source4/heimdal/kdc/krb5tgs.c:514]: (style) The scope of the variable 'i' can be reduced >[source4/heimdal/kdc/krb5tgs.c:1520]: (style) The scope of the variable 'nloop' can be reduced >[source4/heimdal/kdc/krb5tgs.c:1621]: (style) The scope of the variable 'new_rlm' can be reduced >[source4/heimdal/kdc/krb5tgs.c:1069]: (error) Memory pointed to by 'buf' is freed twice. >[source4/heimdal/kdc/krb5tgs.c:1080]: (error) Memory pointed to by 'buf' is freed twice. >[source4/heimdal/kdc/krb5tgs.c:2242]: (error) Memory pointed to by 'spn' is freed twice. >[source4/heimdal/kdc/kx509.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 18. >[source4/heimdal/kdc/log.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 18. >[source4/heimdal/kdc/log.c:43]: (style) The scope of the variable 'p' can be reduced >[source4/heimdal/kdc/misc.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 18. >[source4/heimdal/kdc/pkinit.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 20. >[source4/heimdal/kdc/pkinit.c:1250]: (style) The scope of the variable 'i' can be reduced >[source4/heimdal/kdc/pkinit.c:1481]: (error) Memory pointed to by 'buf' is freed twice. >[source4/heimdal/kdc/process.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 18. >[source4/heimdal/kdc/windc.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 18. >[source4/heimdal/kpasswd/kpasswd.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 19. >[source4/heimdal/kuser/kgetcred.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 14. >[source4/heimdal/kuser/kinit.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 17. >[source4/heimdal/lib/asn1/asn1_gen.c:75]: (style) The scope of the variable 'pdata' can be reduced >[source4/heimdal/lib/asn1/symbol.h:80] -> [source4/heimdal/lib/asn1/symbol.h:73]: (style) Variable 'booleanvalue' hides enumerator with same name >[source4/heimdal/lib/asn1/symbol.h:81] -> [source4/heimdal/lib/asn1/symbol.h:75]: (style) Variable 'integervalue' hides enumerator with same name >[source4/heimdal/lib/asn1/der_get.c:89]: (style) Checking if unsigned variable 'len' is less than zero. >[source4/heimdal/lib/asn1/gen.c:285]: (error) Possible null pointer dereference: headerfile - otherwise it is redundant to check if headerfile is null at line 287 >[source4/heimdal/lib/asn1/gen.c:295]: (error) Possible null pointer dereference: logfile - otherwise it is redundant to check if logfile is null at line 293 >[source4/heimdal/lib/asn1/gen.c:637]: (style) The scope of the variable 'classnames' can be reduced >[source4/heimdal/lib/asn1/lex.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 17. >[source4/heimdal/lib/asn1/lex.c:368]: (style) struct or union member 'yy_trans_info::yy_verify' is never used >[source4/heimdal/lib/asn1/lex.c:369]: (style) struct or union member 'yy_trans_info::yy_nxt' is never used >[source4/heimdal/lib/asn1/main.c:103]: (style) The scope of the variable 'i' can be reduced >[source4/heimdal/lib/com_err/lex.c:368]: (style) struct or union member 'yy_trans_info::yy_verify' is never used >[source4/heimdal/lib/com_err/lex.c:369]: (style) struct or union member 'yy_trans_info::yy_nxt' is never used >[source4/heimdal/lib/gssapi/krb5/8003.c:182]: (style) The scope of the variable 'DlgOpt' can be reduced >[source4/heimdal/lib/gssapi/krb5/accept_sec_context.c:365]: (style) The scope of the variable 'is_cfx' can be reduced >[source4/heimdal/lib/gssapi/krb5/accept_sec_context.c:107]: (style) Variable 'ret' is assigned a value that is never used >[source4/heimdal/lib/gssapi/krb5/add_cred.c:146]: (style) The scope of the variable 'name' can be reduced >[source4/heimdal/lib/gssapi/krb5/cfx.c:728]: (style) The scope of the variable 'j' can be reduced >[source4/heimdal/lib/gssapi/krb5/import_name.c:91]: (style) The scope of the variable 'hostname' can be reduced >[source4/heimdal/lib/gssapi/krb5/import_name.c:91]: (style) The scope of the variable 'service' can be reduced >[source4/heimdal/lib/gssapi/krb5/set_sec_context_option.c:155]: (error) Memory leak: str >[source4/heimdal/lib/gssapi/krb5/set_sec_context_option.c:167]: (error) Memory leak: str >[source4/heimdal/lib/gssapi/krb5/set_sec_context_option.c:203]: (error) Memory leak: str >[source4/heimdal/lib/gssapi/krb5/unwrap.c:57]: (style) The scope of the variable 'i' can be reduced >[source4/heimdal/lib/gssapi/krb5/wrap.c:218]: (style) The scope of the variable 'i' can be reduced >[source4/heimdal/lib/gssapi/mech/gss_accept_sec_context.c:36]: (style) The scope of the variable 'b' can be reduced >[source4/heimdal/lib/gssapi/mech/gss_delete_sec_context.c:36]: (style) Variable 'major_status' is assigned a value that is never used >[source4/heimdal/lib/gssapi/mech/gss_krb5.c:746]: (error) Possible null pointer dereference: keyblock - otherwise it is redundant to check if keyblock is null at line 747 >[source4/heimdal/lib/gssapi/mech/gss_krb5.c:141]: (error) Memory pointed to by 'str' is freed twice. >[source4/heimdal/lib/gssapi/mech/gss_krb5.c:156]: (error) Memory pointed to by 'str' is freed twice. >[source4/heimdal/lib/gssapi/mech/gss_mech_switch.c:230]: (style) Unused variable: fp >[source4/heimdal/lib/gssapi/mech/gss_mech_switch.c:231]: (style) Unused variable: buf >[source4/heimdal/lib/gssapi/mech/gss_mech_switch.c:232]: (style) Unused variable: p >[source4/heimdal/lib/gssapi/mech/gss_mech_switch.c:233]: (style) Unused variable: name >[source4/heimdal/lib/gssapi/mech/gss_mech_switch.c:233]: (style) Unused variable: oid >[source4/heimdal/lib/gssapi/mech/gss_mech_switch.c:233]: (style) Unused variable: lib >[source4/heimdal/lib/gssapi/mech/gss_mech_switch.c:233]: (style) Unused variable: kobj >[source4/heimdal/lib/gssapi/mech/gss_mech_switch.c:234]: (style) Unused variable: m >[source4/heimdal/lib/gssapi/mech/gss_mech_switch.c:235]: (style) Unused variable: so >[source4/heimdal/lib/gssapi/mech/gss_mech_switch.c:236]: (style) Unused variable: mech_oid >[source4/heimdal/lib/gssapi/mech/gss_mech_switch.c:237]: (style) Unused variable: found >[source4/heimdal/lib/gssapi/mech/gss_mech_switch.c:307] -> [source4/heimdal/lib/gssapi/mech/gss_mech_switch.c:307]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/gssapi/mech/gss_mo.c:426]: (style) Boolean result is used in bitwise operation. Clarify expression with parentheses >[source4/heimdal/lib/gssapi/spnego/accept_sec_context.c:369]: (style) The scope of the variable 'hostname' can be reduced >[source4/heimdal/lib/gssapi/spnego/accept_sec_context.c:415]: (style) The scope of the variable 'verify_mic' can be reduced >[source4/heimdal/lib/hcrypto/dh.c:520]: (style) The scope of the variable 'ret' can be reduced >[source4/heimdal/lib/hcrypto/engine.c:91]: (warning, inconclusive) Using size of pointer engine instead of size of its data. >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_abs.c:25]: (style) The scope of the variable 'res' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_clear.c:22]: (style) The scope of the variable 'i' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_copy.c:22]: (style) The scope of the variable 'res' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_copy.c:22]: (style) The scope of the variable 'n' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_div.c:45]: (style) Suspicious condition (assignment+comparison), it can be clarified with parentheses >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_div_2.c:21]: (style) The scope of the variable 'x' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_div_2.c:21]: (style) The scope of the variable 'res' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_div_2d.c:22]: (style) The scope of the variable 'x' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_exptmod.c:26]: (style) Variable 'dr' is assigned a value that is never used >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_exptmod_fast.c:122] -> [source4/heimdal/lib/hcrypto/libtommath/bn_mp_exptmod_fast.c:113]: (style) Found duplicate branches for if and else. >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_exptmod_fast.c:42]: (style) Variable 'redux' is not assigned a value >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_grow.c:21]: (style) The scope of the variable 'i' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_lshd.c:21]: (style) The scope of the variable 'x' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_lshd.c:21]: (style) The scope of the variable 'res' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_mul.c:43]: (style) Variable 'digs' is assigned a value that is never used >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_mul_2.c:21]: (style) The scope of the variable 'x' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_mul_2.c:21]: (style) The scope of the variable 'res' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_neg.c:21]: (style) The scope of the variable 'res' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_prime_miller_rabin.c:28]: (style) The scope of the variable 'j' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_reduce_is_2k.c:21]: (style) The scope of the variable 'ix' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_reduce_is_2k.c:21]: (style) The scope of the variable 'iy' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_reduce_is_2k.c:21]: (style) The scope of the variable 'iw' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_reduce_is_2k_l.c:21]: (style) The scope of the variable 'ix' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_reduce_is_2k_l.c:21]: (style) The scope of the variable 'iy' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_mp_rshd.c:21]: (style) The scope of the variable 'x' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_s_mp_add.c:23]: (style) The scope of the variable 'res' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/bn_s_mp_sub.c:22]: (style) The scope of the variable 'res' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/mtest/mpi.c:1415]: (style) The scope of the variable 'res' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/mtest/mpi.c:2546]: (style) The scope of the variable 'ix' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/mtest/mpi.c:2546]: (style) The scope of the variable 'pos' can be reduced >[source4/heimdal/lib/hcrypto/libtommath/mtest/mtest.c:46]: (style) Unused variable: n >[source4/heimdal/lib/hcrypto/libtommath/mtest/mtest.c:58]: (style) Unused variable: n >[source4/heimdal/lib/hcrypto/libtommath/mtest/mtest.c:74]: (style) Variable 't1' is assigned a value that is never used >[source4/heimdal/lib/hcrypto/md2.c:133]: (warning, inconclusive) Using size of pointer m instead of size of its data. >[source4/heimdal/lib/hcrypto/hash.h:65]: (warning) Redundant assignment of "x" to itself >[source4/heimdal/lib/hcrypto/md4.c:169]: (style) struct or union member 'x32::a' is never used >[source4/heimdal/lib/hcrypto/md4.c:170]: (style) struct or union member 'x32::b' is never used >[source4/heimdal/lib/hcrypto/md5.c:193]: (style) struct or union member 'x32::a' is never used >[source4/heimdal/lib/hcrypto/md5.c:194]: (style) struct or union member 'x32::b' is never used >[source4/heimdal/lib/hcrypto/rand-fortuna.c:521]: (style) Variable 'n' is assigned a value that is never used >[source4/heimdal/lib/hcrypto/rand-timer.c:112]: (style) Unused variable: otv >[source4/heimdal/lib/hcrypto/rsa.c:639]: (style) The scope of the variable 'ret' can be reduced >[source4/heimdal/lib/hdb/hdb.c:229]: (warning) scanf without field width limits can crash with huge input data >[source4/heimdal/lib/hdb/hdb.c:312] -> [source4/heimdal/lib/hdb/hdb.c:312]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/hdb/mkey.c:601]: (error) Memory leak: set_time >[source4/heimdal/lib/hx509/cert.c:1762]: (style) The scope of the variable 'len1' can be reduced >[source4/heimdal/lib/hx509/cert.c:1762]: (style) The scope of the variable 'len2' can be reduced >[source4/heimdal/lib/hx509/cert.c:2834]: (style) The scope of the variable 'ret' can be reduced >[source4/heimdal/lib/hx509/cert.c:3201]: (warning) scanf without field width limits can crash with huge input data >[source4/heimdal/lib/hx509/cert.c:3529]: (error) Memory pointed to by 'buf' is freed twice. >[source4/heimdal/lib/hx509/cert.c:3587]: (error) Memory pointed to by 'str' is freed twice. >[source4/heimdal/lib/hx509/cert.c:3600]: (error) Memory pointed to by 'str' is freed twice. >[source4/heimdal/lib/hx509/cert.c:3607]: (error) Memory pointed to by 'str' is freed twice. >[source4/heimdal/lib/hx509/cms.c:1448]: (style) The scope of the variable 'i' can be reduced >[source4/heimdal/lib/hx509/cms.c:1448]: (style) The scope of the variable 'j' can be reduced >[source4/heimdal/lib/hx509/crypto.c:3042]: (style) The scope of the variable 'i' can be reduced >[source4/heimdal/lib/hx509/crypto.c:3042]: (style) The scope of the variable 'j' can be reduced >[source4/heimdal/lib/hx509/crypto.c:644]: (performance) Function parameter 'signer' should be passed by reference. >[source4/heimdal/lib/hx509/crypto.c:857]: (performance) Function parameter 'key' should be passed by reference. >[source4/heimdal/lib/hx509/crypto.c:1147]: (performance) Function parameter 'signer' should be passed by reference. >[source4/heimdal/lib/hx509/crypto.c:1483]: (performance) Function parameter 'pk' should be passed by reference. >[source4/heimdal/lib/hx509/crypto.c:1623]: (performance) Function parameter 'signer' should be passed by reference. >[source4/heimdal/lib/hx509/crypto.c:1650]: (performance) Function parameter 'signer' should be passed by reference. >[source4/heimdal/lib/hx509/crypto.c:2061]: (performance) Function parameter 'key' should be passed by reference. >[source4/heimdal/lib/hx509/crypto.c:2091]: (performance) Function parameter 'key' should be passed by reference. >[source4/heimdal/lib/hx509/crypto.c:2148]: (performance) Function parameter 'crypto' should be passed by reference. >[source4/heimdal/lib/hx509/crypto.c:2187]: (performance) Function parameter 'crypto' should be passed by reference. >[source4/heimdal/lib/hx509/crypto.c:3021]: (performance) Function parameter 'key' should be passed by reference. >[source4/heimdal/lib/hx509/crypto.c:3037]: (performance) Function parameter 'source' should be passed by reference. >[source4/heimdal/lib/hx509/crypto.c:586]: (error) Memory pointed to by 'to' is freed twice. >[source4/heimdal/lib/hx509/crypto.c:630]: (error) Memory pointed to by 'to' is freed twice. >[source4/heimdal/lib/hx509/crypto.c:414]: (performance) Function parameter 'signer' should be passed by reference. >[source4/heimdal/lib/hx509/crypto.c:485]: (performance) Function parameter 'signer' should be passed by reference. >[source4/heimdal/lib/hx509/crypto.c:936]: (performance) Function parameter 'key' should be passed by reference. >[source4/heimdal/lib/hx509/ks_file.c:181]: (style) The scope of the variable 'i' can be reduced >[source4/heimdal/lib/hx509/ks_file.c:249]: (style) Redundant condition: If ssize < 8, the comparison ssize < 0 is always true. >[source4/heimdal/lib/hx509/lex.yy.c:368]: (style) struct or union member 'yy_trans_info::yy_verify' is never used >[source4/heimdal/lib/hx509/lex.yy.c:369]: (style) struct or union member 'yy_trans_info::yy_nxt' is never used >[source4/heimdal/lib/hx509/name.c:414]: (style) The scope of the variable 'i' can be reduced >[source4/heimdal/lib/hx509/name.c:242]: (error) Memory leak: oidname >[source4/heimdal/lib/hx509/name.c:419]: (error) Memory leak: ds1lp >[source4/heimdal/lib/hx509/name.c:423]: (error) Memory leak: ds2lp >[source4/heimdal/lib/hx509/print.c:923]: (error) Memory pointed to by 'str' is freed twice. >[source4/heimdal/lib/hx509/print.c:936]: (error) Memory pointed to by 'str' is freed twice. >[source4/heimdal/lib/hx509/print.c:939]: (error) Memory pointed to by 'str' is freed twice. >[source4/heimdal/lib/hx509/req.c:311]: (style) The scope of the variable 'ret' can be reduced >[source4/heimdal/lib/hx509/sel-lex.c:368]: (style) struct or union member 'yy_trans_info::yy_verify' is never used >[source4/heimdal/lib/hx509/sel-lex.c:369]: (style) struct or union member 'yy_trans_info::yy_nxt' is never used >[source4/heimdal/lib/hx509/sel.c:117]: (style) The scope of the variable 's1' can be reduced >[source4/heimdal/lib/krb5/acache.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 32. >[source4/heimdal/lib/krb5/acache.c:317]: (style) The scope of the variable 'i' can be reduced >[source4/heimdal/lib/krb5/acache.c:134] -> [source4/heimdal/lib/krb5/acache.c:134]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/krb5/acache.c:129] -> [source4/heimdal/lib/krb5/acache.c:129]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/krb5/add_et_list.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/addr_families.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 30. >[source4/heimdal/lib/krb5/addr_families.c:643]: (style) The scope of the variable 'tmp2' can be reduced >[source4/heimdal/lib/krb5/addr_families.c:1440]: (style) The scope of the variable 'i' can be reduced >[source4/heimdal/lib/krb5/addr_families.c:353]: (style) The scope of the variable 'buf2' can be reduced >[source4/heimdal/lib/krb5/aname_to_localname.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/appdefault.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/asn1_glue.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/auth_context.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/build_ap_req.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/build_auth.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/cache.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/cache.c:225]: (style) Variable 'colon' is assigned a value that is never used >[source4/heimdal/lib/krb5/changepw.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 29. >[source4/heimdal/lib/krb5/changepw.c:841]: (style) The scope of the variable 'strings' can be reduced >[source4/heimdal/lib/krb5/codec.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/config_file.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/constants.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/context.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 37. >[source4/heimdal/lib/krb5/convert_creds.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/copy_host_realm.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/crc.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/creds.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/creds.c:250]: (style) The scope of the variable 'i' can be reduced >[source4/heimdal/lib/krb5/crypto-aes.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/crypto-algs.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 29. >[source4/heimdal/lib/krb5/crypto-arcfour.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/crypto-des-common.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/crypto-des.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/crypto-des3.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/crypto-evp.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/crypto-null.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/crypto-pk.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/crypto-rand.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/crypto-rand.c:49] -> [source4/heimdal/lib/krb5/crypto-rand.c:49]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/krb5/crypto-rand.c:43]: (style) The scope of the variable 'buf' can be reduced >[source4/heimdal/lib/krb5/crypto-rand.c:67]: (style) The scope of the variable 'p' can be reduced >[source4/heimdal/lib/krb5/crypto.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/crypto.c:2548]: (style) The scope of the variable 'i' can be reduced >[source4/heimdal/lib/krb5/crypto.c:1006]: (error) Memory leak: p >[source4/heimdal/lib/krb5/crypto.c:1083]: (error) Memory leak: p >[source4/heimdal/lib/krb5/crypto.c:1924]: (error) Memory leak: c >[source4/heimdal/lib/krb5/crypto.c:1931]: (error) Common realloc mistake: 'd' nulled but not freed upon failure >[source4/heimdal/lib/krb5/data.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/eai_to_heim_errno.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 30. >[source4/heimdal/lib/krb5/error_string.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/expand_hostname.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/expand_path.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/expand_path.c:333]: (style) struct or union member 'Anonymous1::ftype' is never used >[source4/heimdal/lib/krb5/fcache.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 29. >[source4/heimdal/lib/krb5/fcache.c:430] -> [source4/heimdal/lib/krb5/fcache.c:430]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/krb5/fcache.c:505] -> [source4/heimdal/lib/krb5/fcache.c:505]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/krb5/fcache.c:552] -> [source4/heimdal/lib/krb5/fcache.c:552]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/krb5/fcache.c:979] -> [source4/heimdal/lib/krb5/fcache.c:979]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/krb5/fcache.c:986] -> [source4/heimdal/lib/krb5/fcache.c:986]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/krb5/fcache.c:1055] -> [source4/heimdal/lib/krb5/fcache.c:1055]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/krb5/fcache.c:334]: (error) Memory leak: f >[source4/heimdal/lib/krb5/free.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/free_host_realm.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/generate_seq_number.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/generate_subkey.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/get_addrs.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 29. >[source4/heimdal/lib/krb5/get_cred.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/get_cred.c:1408]: (error) Memory pointed to by 'res_creds' is freed twice. >[source4/heimdal/lib/krb5/get_cred.c:726]: (error) Common realloc mistake: 'tmp' nulled but not freed upon failure >[source4/heimdal/lib/krb5/get_cred.c:1505]: (error) Memory leak: out >[source4/heimdal/lib/krb5/get_default_principal.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/get_default_realm.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/get_for_creds.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/get_for_creds.c:450]: (error) Dereferencing 'buf' after it is deallocated / released >[source4/heimdal/lib/krb5/get_host_realm.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/get_in_tkt.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/get_in_tkt.c:86]: (error) Dereferencing 'buf' after it is deallocated / released >[source4/heimdal/lib/krb5/get_port.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/init_creds.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/init_creds_pw.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/init_creds_pw.c:975]: (error) Memory pointed to by 'buf' is freed twice. >[source4/heimdal/lib/krb5/init_creds_pw.c:1221]: (error) Memory leak: paid >[source4/heimdal/lib/krb5/kcm.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 29. >[source4/heimdal/lib/krb5/kcm.c:1168]: (style) Variable 'ccdata' is not assigned a value >[source4/heimdal/lib/krb5/keyblock.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/keytab.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/keytab_any.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/keytab_file.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/keytab_file.c:438] -> [source4/heimdal/lib/krb5/keytab_file.c:438]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/krb5/keytab_file.c:552] -> [source4/heimdal/lib/krb5/keytab_file.c:552]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/krb5/keytab_file.c:554] -> [source4/heimdal/lib/krb5/keytab_file.c:554]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/krb5/keytab_file.c:737] -> [source4/heimdal/lib/krb5/keytab_file.c:737]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/krb5/keytab_keyfile.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/keytab_keyfile.c:206] -> [source4/heimdal/lib/krb5/keytab_keyfile.c:206]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/krb5/keytab_keyfile.c:317] -> [source4/heimdal/lib/krb5/keytab_keyfile.c:317]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/krb5/keytab_keyfile.c:320] -> [source4/heimdal/lib/krb5/keytab_keyfile.c:320]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/krb5/keytab_memory.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/krbhst.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/krbhst.c:446]: (error) Memory leak: res >[source4/heimdal/lib/krb5/kuserok.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 29. >[source4/heimdal/lib/krb5/log.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 32. >[source4/heimdal/lib/krb5/log.c:370]: (style) The scope of the variable 'q' can be reduced >[source4/heimdal/lib/krb5/log.c:281]: (warning) scanf without field width limits can crash with huge input data >[source4/heimdal/lib/krb5/mcache.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/misc.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 30. >[source4/heimdal/lib/krb5/misc.c:102]: (style) The scope of the variable 'i' can be reduced >[source4/heimdal/lib/krb5/mit_glue.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/mk_error.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/mk_priv.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/mk_priv.c:150]: (error) Memory pointed to by 'buf' is freed twice. >[source4/heimdal/lib/krb5/mk_priv.c:140]: (error) Memory pointed to by 'buf' is freed twice. >[source4/heimdal/lib/krb5/mk_priv.c:143]: (error) Memory pointed to by 'buf' is freed twice. >[source4/heimdal/lib/krb5/mk_rep.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/mk_req.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/mk_req_ext.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/n-fold.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/n-fold.c:40]: (style) The scope of the variable 'i' can be reduced >[source4/heimdal/lib/krb5/pac.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/pac.c:759]: (error) Memory leak: s2 >[source4/heimdal/lib/krb5/padata.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/pcache.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/pkinit.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 29. >[source4/heimdal/lib/krb5/pkinit.c:39]: (style) struct or union member 'krb5_dh_moduli::name' is never used >[source4/heimdal/lib/krb5/pkinit.c:40]: (style) struct or union member 'krb5_dh_moduli::bits' is never used >[source4/heimdal/lib/krb5/pkinit.c:1214]: (error) Memory leak: ptr >[source4/heimdal/lib/krb5/pkinit.c:1824]: (error) Memory pointed to by 'str' is freed twice. >[source4/heimdal/lib/krb5/plugin.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 33. >[source4/heimdal/lib/krb5/plugin.c:222]: (style) Unused variable: e >[source4/heimdal/lib/krb5/plugin.c:223]: (style) Unused variable: ret >[source4/heimdal/lib/krb5/plugin.c:225]: (style) Unused variable: entry >[source4/heimdal/lib/krb5/plugin.c:226]: (style) Unused variable: path >[source4/heimdal/lib/krb5/plugin.c:227]: (style) Variable 'd' is assigned a value that is never used >[source4/heimdal/lib/krb5/plugin.c:116] -> [source4/heimdal/lib/krb5/plugin.c:116]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/krb5/plugin.c:482] -> [source4/heimdal/lib/krb5/plugin.c:482]: (style) Same expression on both sides of '|'. >[source4/heimdal/lib/krb5/principal.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 29. >[source4/heimdal/lib/krb5/prog_setup.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/prompter_posix.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/rd_cred.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/rd_error.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/rd_priv.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/rd_rep.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/rd_req.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/replay.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/replay.c:133]: (style) The scope of the variable 'ret' can be reduced >[source4/heimdal/lib/krb5/replay.c:159]: (style) The scope of the variable 'ret' can be reduced >[source4/heimdal/lib/krb5/salt-aes.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/salt-arcfour.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/salt-des.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 29. >[source4/heimdal/lib/krb5/salt-des.c:196]: (error) Memory leak: s >[source4/heimdal/lib/krb5/salt-des3.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/salt-des3.c:47]: (style) The scope of the variable 'tmp' can be reduced >[source4/heimdal/lib/krb5/salt-des3.c:55]: (error) Memory leak: str >[source4/heimdal/lib/krb5/salt-des3.c:117]: (error) Memory leak: s >[source4/heimdal/lib/krb5/salt.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/send_to_kdc.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/heimdal/lib/krb5/send_to_kdc.c:246]: (warning) scanf without field width limits can crash with huge input data >[source4/heimdal/lib/krb5/set_default_realm.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/store-int.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/store.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/store_emem.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/store_fd.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 29. >[source4/heimdal/lib/krb5/store_mem.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/ticket.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/ticket.c:389]: (style) The scope of the variable 'cmp' can be reduced >[source4/heimdal/lib/krb5/time.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/transited.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/transited.c:284]: (error) Memory leak: tmp >[source4/heimdal/lib/krb5/version.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/warn.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 27. >[source4/heimdal/lib/krb5/warn.c:205]: (style) Variable 'ret' is assigned a value that is never used >[source4/heimdal/lib/krb5/warn.c:244]: (style) Variable 'ret' is assigned a value that is never used >[source4/heimdal/lib/krb5/warn.c:286]: (style) Variable 'ret' is assigned a value that is never used >[source4/heimdal/lib/krb5/warn.c:314]: (style) Variable 'ret' is assigned a value that is never used >[source4/heimdal/lib/roken/getaddrinfo.c:191]: (style) The scope of the variable 'ret' can be reduced >[source4/heimdal/lib/roken/getaddrinfo.c:279]: (style) The scope of the variable 'ret' can be reduced >[source4/heimdal/lib/roken/getaddrinfo.c:191]: (style) Variable 'ret' is assigned a value that is never used >[source4/heimdal/lib/roken/getarg.c:410]: (warning) scanf without field width limits can crash with huge input data >[source4/heimdal/lib/roken/getarg.c:447]: (warning) scanf without field width limits can crash with huge input data >[source4/heimdal/lib/roken/getarg.c:455]: (warning) scanf without field width limits can crash with huge input data >[source4/heimdal/lib/roken/getarg.c:519]: (warning) scanf without field width limits can crash with huge input data >[source4/heimdal/lib/roken/getarg.c:530]: (warning) scanf without field width limits can crash with huge input data >[source4/heimdal/lib/roken/getdtablesize.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 13. >[source4/heimdal/lib/roken/getdtablesize.c:78]: (style) Variable 'len' is assigned a value that is never used >[source4/heimdal/lib/roken/hostent_find_fqdn.c:46]: (style) The scope of the variable 'h' can be reduced >[source4/heimdal/lib/roken/rkpty.c:252]: (style) Array index i is used before limits check >[source4/heimdal/lib/roken/roken_gethostby.c:191]: (style) Variable 'addrs' is assigned a value that is never used >[source4/heimdal/lib/roken/roken_gethostby.c:94]: (warning) scanf without field width limits can crash with huge input data >[source4/heimdal/lib/roken/signal.c:65] -> [source4/heimdal/lib/roken/signal.c:59]: (style) Found duplicate branches for if and else. >[source4/kdc/db-glue.c:1387]: (style) Variable 'realm' is assigned a value that is never used >[source4/kdc/hdb-samba4-plugin.c:35]: (warning) scanf without field width limits can crash with huge input data >[source4/kdc/kdc.c:620]: (style) Variable 'ret' is assigned a value that is never used >[source4/kdc/pac-glue.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 26. >[source4/kdc/pac-glue.c:431] -> [source4/kdc/pac-glue.c:429]: (style) Found duplicate branches for if and else. >[source4/ldap_server/ldap_backend.c:734]: (style) The scope of the variable 'ldb_ret' can be reduced >[source4/ldap_server/ldap_backend.c:842]: (style) The scope of the variable 'ldb_ret' can be reduced >[source4/ldap_server/ldap_backend.c:930]: (style) The scope of the variable 'ldb_ret' can be reduced >[source4/ldap_server/ldap_backend.c:986]: (style) The scope of the variable 'ldb_ret' can be reduced >[source4/ldap_server/ldap_backend.c:1095]: (style) The scope of the variable 'ldb_ret' can be reduced >[source4/ldap_server/ldap_server.c:102]: (style) Variable 'ret' is assigned a value that is never used >[source4/ldap_server/ldap_server.c:218]: (style) Variable 's' is assigned a value that is never used >[source4/ldap_server/ldap_server.c:220]: (warning) scanf without field width limits can crash with huge input data >[source4/lib/com/dcom/main.c:341]: (error) Possible null pointer dereference: ru_template - otherwise it is redundant to check if ru_template is null at line 336 >[source4/lib/com/dcom/main.c:543]: (style) Variable 'ox' is assigned a value that is never used >[source4/lib/policy/gp_filesys.c:56]: (style) The scope of the variable 'rv' can be reduced >[source4/lib/policy/gp_filesys.c:324]: (style) The scope of the variable 'rv' can be reduced >[source4/lib/registry/ldb.c:694]: (style) The scope of the variable 'i' can be reduced >[source4/lib/registry/local.c:385]: (style) The scope of the variable 'i' can be reduced >[source4/lib/registry/tools/regpatch.c:31]: (style) Variable 'opt' is assigned a value that is never used >[source4/lib/registry/tools/regshell.c:549]: (style) Variable 'opt' is assigned a value that is never used >[source4/lib/registry/tools/regtree.c:104]: (style) The scope of the variable 'i' can be reduced >[source4/lib/registry/tools/regtree.c:103]: (style) Variable 'opt' is assigned a value that is never used >[source4/lib/registry/util.c:142]: (warning) scanf without field width limits can crash with huge input data >[source4/lib/registry/util.c:27]: (performance) Function parameter 'data' should be passed by reference. >[source4/lib/registry/util.c:76]: (performance) Function parameter 'data' should be passed by reference. >[source4/lib/socket/access.c:78]: (style) The scope of the variable 'str_len' can be reduced >[source4/lib/socket/interface.c:380]: (style) Unused variable: i >[source4/lib/wmi/tools/wmic.c:46]: (style) Variable 'opt' is assigned a value that is never used >[source4/lib/wmi/tools/wmis.c:48]: (style) Variable 'opt' is assigned a value that is never used >[source4/lib/wmi/wmi_wrap.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 28. >[source4/lib/wmi/wmi_wrap.c:190]: (error) Invalid number of character ({) when these macros are defined: 'METH_O'. >[source4/libcli/clilist.c:111]: (style) Variable 'num_received' is assigned a value that is never used >[source4/libcli/clilist.c:114]: (style) Variable 'ff_searchcount' is assigned a value that is never used >[source4/libcli/clilist.c:270]: (style) Variable 'num_received' is assigned a value that is never used >[source4/libcli/finddcs_nbt.c:252]: (style) The scope of the variable 'j' can be reduced >[source4/libcli/ldap/ldap_client.c:255]: (warning) scanf without field width limits can crash with huge input data >[source4/libcli/ldap/ldap_controls.c:435]: (style) The scope of the variable 'len' can be reduced >[source4/libcli/pysmb.c:150]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source4/libcli/pysmb.c:242]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source4/libcli/pysmb.c:262]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source4/libcli/pysmb.c:428]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source4/libcli/pysmb.c:505]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source4/libcli/resolve/dns_ex.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 112. >[source4/libcli/resolve/dns_ex.c:391]: (error) Uninitialized variable: hints >[source4/libcli/smb2/transport.c:114]: (style) The scope of the variable 'i' can be reduced >[source4/libcli/smb_composite/appendacl.c:62]: (style) The scope of the variable 'i' can be reduced >[source4/libnet/groupman.c:94]: (style) Variable 's' is assigned a value that is never used >[source4/libnet/libnet_become_dc.c:1537]: (style) The scope of the variable 'binding_str' can be reduced >[source4/libnet/libnet_samsync_ldb.c:1174]: (style) The scope of the variable 'ldap_url' can be reduced >[source4/libnet/libnet_vampire.c:530]: (style) Variable 'linked_attributes' is assigned a value that is never used >[source4/librpc/ndr/py_security.c:157]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source4/librpc/ndr/py_security.c:174]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source4/librpc/ndr/py_security.c:190]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source4/librpc/ndr/py_security.c:206]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source4/librpc/ndr/py_security.c:359]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source4/librpc/ndr/py_xattr.c:83]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source4/librpc/rpc/dcerpc_util.c:230]: (style) The scope of the variable 'i' can be reduced >[source4/nbt_server/wins/winsserver.c:564] -> [source4/nbt_server/wins/winsserver.c:564]: (style) Same expression on both sides of '||'. >[source4/ntvfs/common/brlock_tdb.c:302]: (style) The scope of the variable 'i' can be reduced >[source4/ntvfs/common/notify.c:550]: (style) Variable 'status' is assigned a value that is never used >[source4/ntvfs/ipc/vfs_ipc.c:620]: (error) Uninitialized variable: rd >[source4/ntvfs/ipc/vfs_ipc.c:621]: (error) Uninitialized variable: rd >[source4/ntvfs/ipc/vfs_ipc.c:622]: (error) Uninitialized variable: rd >[source4/ntvfs/ipc/vfs_ipc.c:702]: (error) Uninitialized variable: wr >[source4/ntvfs/ipc/vfs_ipc.c:703]: (error) Uninitialized variable: wr >[source4/ntvfs/ipc/vfs_ipc.c:1269]: (error) Uninitialized variable: io >[source4/ntvfs/posix/pvfs_aio.c:59]: (error) Uninitialized variable: rd >[source4/ntvfs/posix/pvfs_aio.c:61]: (error) Uninitialized variable: rd >[source4/ntvfs/posix/pvfs_aio.c:62]: (error) Uninitialized variable: rd >[source4/ntvfs/posix/pvfs_aio.c:63]: (error) Uninitialized variable: rd >[source4/ntvfs/posix/pvfs_aio.c:124]: (error) Uninitialized variable: wr >[source4/ntvfs/posix/pvfs_aio.c:126]: (error) Uninitialized variable: wr >[source4/ntvfs/posix/pvfs_aio.c:127]: (error) Uninitialized variable: wr >[source4/ntvfs/posix/pvfs_lock.c:107]: (error) Uninitialized variable: lck >[source4/ntvfs/posix/pvfs_resolve.c:718]: (style) The scope of the variable 'orig_dir' can be reduced >[source4/ntvfs/posix/pvfs_setfileinfo.c:128]: (style) The scope of the variable 'p' can be reduced >[source4/ntvfs/posix/pvfs_shortname.c:181]: (style) Array index i is used before limits check >[source4/ntvfs/posix/pvfs_sys.c:118] -> [source4/ntvfs/posix/pvfs_sys.c:118]: (style) Same expression on both sides of '|'. >[source4/ntvfs/posix/pvfs_sys.c:246] -> [source4/ntvfs/posix/pvfs_sys.c:246]: (style) Same expression on both sides of '|'. >[source4/ntvfs/posix/pvfs_sys.c:264]: (style) The scope of the variable 'retries' can be reduced >[source4/ntvfs/posix/pvfs_sys.c:508]: (style) Variable 'orig_errno' is assigned a value that is never used >[source4/ntvfs/print/vfs_print.c:78]: (style) The scope of the variable 'p' can be reduced >[source4/param/share_classic.c:54]: (style) The scope of the variable 'parm' can be reduced >[source4/param/share_classic.c:54]: (style) The scope of the variable 'val' can be reduced >[source4/param/share_classic.c:55]: (style) The scope of the variable 'ret' can be reduced >[source4/param/share_classic.c:116]: (style) The scope of the variable 'parm' can be reduced >[source4/param/share_classic.c:116]: (style) The scope of the variable 'val' can be reduced >[source4/param/share_classic.c:117]: (style) The scope of the variable 'ret' can be reduced >[source4/param/share_classic.c:174]: (style) The scope of the variable 'parm' can be reduced >[source4/param/share_classic.c:174]: (style) The scope of the variable 'val' can be reduced >[source4/param/share_classic.c:175]: (style) The scope of the variable 'ret' can be reduced >[source4/param/share_classic.c:247]: (style) The scope of the variable 'parm' can be reduced >[source4/param/share_classic.c:247]: (style) The scope of the variable 'val' can be reduced >[source4/param/share_classic.c:248]: (style) The scope of the variable 'ret' can be reduced >[source4/rpc_server/backupkey/dcesrv_backupkey.c:1158]: (style) The scope of the variable 'guid_string' can be reduced >[source4/rpc_server/dcerpc_server.c:1385]: (style) The scope of the variable 'ret' can be reduced >[source4/rpc_server/dnsserver/dcerpc_dnsserver.c:1209]: (style) The scope of the variable 'zcount' can be reduced >[source4/rpc_server/dnsserver/dcerpc_dnsserver.c:1210]: (style) The scope of the variable 'found1' can be reduced >[source4/rpc_server/dnsserver/dcerpc_dnsserver.c:1210]: (style) The scope of the variable 'found2' can be reduced >[source4/rpc_server/dnsserver/dcerpc_dnsserver.c:1210]: (style) The scope of the variable 'found3' can be reduced >[source4/rpc_server/dnsserver/dcerpc_dnsserver.c:1210]: (style) The scope of the variable 'found4' can be reduced >[source4/rpc_server/dnsserver/dcerpc_dnsserver.c:1614]: (style) The scope of the variable 'rname' can be reduced >[source4/rpc_server/dnsserver/dcerpc_dnsserver.c:1616]: (style) The scope of the variable 'len' can be reduced >[source4/rpc_server/dnsserver/dcerpc_dnsserver.c:1710]: (style) The scope of the variable 'rname' can be reduced >[source4/rpc_server/dnsserver/dcerpc_dnsserver.c:1712]: (style) The scope of the variable 'len' can be reduced >[source4/rpc_server/dnsserver/dnsdata.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 42. >[source4/rpc_server/dnsserver/dnsdb.c:158]: (style) The scope of the variable 'i' can be reduced >[source4/rpc_server/dnsserver/dnsdb.c:319]: (style) The scope of the variable 'i' can be reduced >[source4/rpc_server/dnsserver/dnsutils.c:37]: (style) The scope of the variable 'i' can be reduced >[source4/rpc_server/dnsserver/dnsutils.c:162]: (style) The scope of the variable 'revzone6' can be reduced >[source4/rpc_server/dnsserver/dnsutils.c:341]: (error) Uninitialized variable: request_filter >[source4/rpc_server/drsuapi/dcesrv_drsuapi.c:824]: (style) The scope of the variable 'level' can be reduced >[source4/rpc_server/drsuapi/getncchanges.c:691]: (style) Variable 'base_dn' is assigned a value that is never used >[source4/rpc_server/drsuapi/updaterefs.c:203]: (style) The scope of the variable 'ret' can be reduced >[source4/rpc_server/drsuapi/writespn.c:150]: (style) Variable 'level' is assigned a value that is never used >[source4/rpc_server/lsa/dcesrv_lsa.c:1357]: (style) The scope of the variable 'dns' can be reduced >[source4/rpc_server/lsa/dcesrv_lsa.c:1358]: (style) The scope of the variable 'nbn' can be reduced >[source4/rpc_server/lsa/dcesrv_lsa.c:1359]: (style) The scope of the variable 'sidstr' can be reduced >[source4/rpc_server/lsa/dcesrv_lsa.c:1610]: (style) The scope of the variable 'del_outgoing' can be reduced >[source4/rpc_server/lsa/dcesrv_lsa.c:4120]: (style) The scope of the variable 'nb_len' can be reduced >[source4/rpc_server/lsa/dcesrv_lsa.c:294]: (style) Variable 'state' is assigned a value that is never used >[source4/rpc_server/lsa/dcesrv_lsa.c:1610]: (style) Variable 'del_outgoing' is assigned a value that is never used >[source4/rpc_server/lsa/dcesrv_lsa.c:3299]: (style) Variable 'msg' is assigned a value that is never used >[source4/rpc_server/lsa/dcesrv_lsa.c:3425]: (style) Variable 'state' is assigned a value that is never used >[source4/rpc_server/lsa/dcesrv_lsa.c:3452]: (style) Variable 'state' is assigned a value that is never used >[source4/rpc_server/lsa/dcesrv_lsa.c:3490]: (style) Variable 'state' is assigned a value that is never used >[source4/rpc_server/lsa/dcesrv_lsa.c:4120]: (style) Variable 'nb_len' is assigned a value that is never used >[source4/rpc_server/lsa/dcesrv_lsa.c:4122]: (style) Variable 'nt_status' is assigned a value that is never used >[source4/rpc_server/lsa/lsa_lookup.c:551]: (style) Variable 'status' is assigned a value that is never used >[source4/rpc_server/netlogon/dcerpc_netlogon.c:1819] -> [source4/rpc_server/netlogon/dcerpc_netlogon.c:1816]: (style) Found duplicate branches for if and else. >[source4/rpc_server/netlogon/dcerpc_netlogon.c:92]: (style) The scope of the variable 'trust_dom_attrs' can be reduced >[source4/rpc_server/netlogon/dcerpc_netlogon.c:2198]: (style) The scope of the variable 'ret' can be reduced >[source4/rpc_server/netlogon/dcerpc_netlogon.c:2200]: (style) The scope of the variable 'dom_attrs' can be reduced >[source4/rpc_server/netlogon/dcerpc_netlogon.c:2203]: (style) The scope of the variable 'p' can be reduced >[source4/rpc_server/samr/dcesrv_samr.c:329]: (style) Variable 'c_state' is assigned a value that is never used >[source4/rpc_server/spoolss/dcesrv_spoolss.c:50]: (style) The scope of the variable 'server' can be reduced >[source4/rpc_server/srvsvc/dcesrv_srvsvc.c:1393]: (style) The scope of the variable 'type' can be reduced >[source4/scripting/python/pyglue.c:120]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source4/scripting/python/pyglue.c:203]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary. >[source4/smb_server/smb/nttrans.c:335]: (error) Uninitialized variable: info >[source4/smb_server/smb/receive.c:453]: (style) The scope of the variable 'unknown_name' can be reduced >[source4/smb_server/smb/reply.c:818]: (error) Uninitialized variable: req >[source4/smb_server/smb/request.c:404]: (style) The scope of the variable 'max_bytes_per_char' can be reduced >[source4/smb_server/smb2/keepalive.c:54]: (style) Variable '_pad' is assigned a value that is never used >[source4/smb_server/smb2/sesssetup.c:285]: (style) Variable '_pad' is assigned a value that is never used >[source4/smb_server/smb2/tcon.c:436]: (style) Variable '_pad' is assigned a value that is never used >[source4/smbd/process_thread.c:258]: (style) The scope of the variable 't' can be reduced >[source4/smbd/process_thread.c:320]: (style) The scope of the variable 't' can be reduced >[source4/smbd/process_thread.c:349]: (style) The scope of the variable 't' can be reduced >[source4/smbd/process_thread.c:391]: (style) The scope of the variable 'i' can be reduced >[source4/smbd/process_thread.c:415]: (style) The scope of the variable 'i' can be reduced >[source4/smbd/process_thread.c:498]: (style) The scope of the variable 'i' can be reduced >[source4/smbd/service_stream.c:275]: (style) The scope of the variable 'i' can be reduced >[source4/torture/auth/pac.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 25. >[source4/torture/basic/delaywrite.c:2011]: (style) Variable 'finfo4' is assigned a value that is never used >[source4/torture/basic/delaywrite.c:2012]: (style) Variable 'pinfo5' is assigned a value that is never used >[source4/torture/basic/delete.c:1532]: (style) Variable 'correct' is assigned a value that is never used >[source4/torture/basic/denytest.c:2295]: (style) The scope of the variable 'fnum' can be reduced >[source4/torture/basic/denytest.c:2295]: (style) The scope of the variable 'fnum2' can be reduced >[source4/torture/basic/denytest.c:1805]: (style) Variable 'tdif' is assigned a value that is never used >[source4/torture/basic/misc.c:497]: (style) The scope of the variable 'unc_list' can be reduced >[source4/torture/basic/misc.c:498]: (style) The scope of the variable 'conn_index' can be reduced >[source4/torture/basic/misc.c:498]: (style) The scope of the variable 'empty_lines' can be reduced >[source4/torture/basic/misc.c:82]: (error) Memory leak: fname >[source4/torture/drs/rpc/dssync.c:523]: (style) Variable 'rid' is assigned a value that is never used >[source4/torture/drs/rpc/dssync.c:1039]: (style) Variable 'test' is assigned a value that is never used >[source4/torture/drs/rpc/msds_intid.c:724]: (style) Variable 'test' is assigned a value that is never used >[source4/torture/ldap/ldap_sort.c:41]: (style) The scope of the variable 'i' can be reduced >[source4/torture/ldap/ldap_sort.c:50]: (style) The scope of the variable 'prev_txt' can be reduced >[source4/torture/ldap/ldap_sort.c:51]: (style) The scope of the variable 'prev_len' can be reduced >[source4/torture/ldap/ldap_sort.c:53]: (style) The scope of the variable 'cur_txt' can be reduced >[source4/torture/ldap/ldap_sort.c:54]: (style) The scope of the variable 'cur_len' can be reduced >[source4/torture/libnet/libnet_lookup.c:166]: (style) Variable 'status' is assigned a value that is never used >[source4/torture/libnetapi/libnetapi.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 50. >[source4/torture/locktest.c:133]: (style) The scope of the variable 'unc_list' can be reduced >[source4/torture/locktest.c:224]: (style) Variable 'ret' is assigned a value that is never used >[source4/torture/raw/eas.c:265]: (warning) Comparison of a boolean with an integer >[source4/torture/raw/open.c:1398]: (error) Buffer access out-of-bounds: buf2 >[source4/torture/raw/open.c:1749]: (error) Buffer access out-of-bounds: buf2 >[source4/torture/raw/open.c:1398]: (error) Buffer access out-of-bounds >[source4/torture/raw/open.c:1749]: (error) Buffer access out-of-bounds >[source4/torture/raw/oplock.c:221]: (style) Variable 'te' is assigned a value that is never used >[source4/torture/raw/oplock.c:3751]: (style) Variable 'correct' is assigned a value that is never used >[source4/torture/raw/samba3misc.c:823] -> [source4/torture/raw/samba3misc.c:823]: (style) Same expression on both sides of '|'. >[source4/torture/raw/samba3misc.c:864]: (style) Variable 'fnum1' is assigned a value that is never used >[source4/torture/raw/samba3misc.c:868]: (style) Variable 'req' is assigned a value that is never used >[source4/torture/raw/search.c:263]: (style) Variable 'all_info_supported' is assigned a value that is never used >[source4/torture/raw/search.c:56]: (error) Uninitialized variable: data >[source4/torture/raw/setfileinfo.c:458]: (error) Memory leak: fnum_fname_new >[source4/torture/raw/setfileinfo.c:458]: (error) Memory leak: path_fname_new >[source4/torture/raw/setfileinfo.c:684]: (error) Memory leak: fnum_fname >[source4/torture/raw/setfileinfo.c:684]: (error) Memory leak: fnum_fname_new >[source4/torture/raw/setfileinfo.c:684]: (error) Memory leak: path_fname_new >[source4/torture/raw/setfileinfo.c:684]: (error) Memory leak: path_dname >[source4/torture/raw/setfileinfo.c:684]: (error) Memory leak: path_dname_new >[source4/torture/raw/streams.c:1079]: (style) The scope of the variable 'check_fnum' can be reduced >[source4/torture/raw/streams.c:1080]: (style) The scope of the variable 'call_name' can be reduced >[source4/torture/raw/streams.c:655]: (style) Variable 'snamer2' is assigned a value that is never used >[source4/torture/raw/streams.c:1079]: (style) Variable 'check_fnum' is assigned a value that is never used >[source4/torture/raw/streams.c:1080]: (style) Variable 'call_name' is assigned a value that is never used >[source4/torture/raw/streams.c:1355]: (style) Variable 'check_fnum' is assigned a value that is never used >[source4/torture/raw/streams.c:1356]: (style) Variable 'call_name' is assigned a value that is never used >[source4/torture/rpc/alter_context.c:33]: (style) Variable 'syntax' is assigned a value that is never used >[source4/torture/rpc/alter_context.c:34]: (style) Variable 'transfer_syntax' is assigned a value that is never used >[source4/torture/rpc/backupkey.c:999]: (style) Variable 'test' is assigned a value that is never used >[source4/torture/rpc/drsuapi.c:851]: (style) Variable 'test' is assigned a value that is never used >[source4/torture/rpc/drsuapi_cracknames.c:1020]: (style) Variable 'test' is assigned a value that is never used >[source4/torture/rpc/dsgetinfo.c:422]: (style) Variable 'test' is assigned a value that is never used >[source4/torture/rpc/frsapi.c:259]: (style) Variable 'test' is assigned a value that is never used >[source4/torture/rpc/lsa.c:1273]: (style) Variable 'blob2' is assigned a value that is never used >[source4/torture/rpc/lsa.c:1282]: (style) Variable 'LOCAL' is assigned a value that is never used >[source4/torture/rpc/lsa.c:1283]: (style) Variable 'GLOBAL' is assigned a value that is never used >[source4/torture/rpc/netlogon.c]: (information) Too many #ifdef configurations - cppcheck will only check 12 of 42. >[source4/torture/rpc/ntsvcs.c:175]: (style) Variable 'test' is assigned a value that is never used >[source4/torture/rpc/samlogon.c:1645]: (style) The scope of the variable 'i' can be reduced >[source4/torture/rpc/samlogon.c:1646]: (style) The scope of the variable 'ci' can be reduced >[source4/torture/rpc/samlogon.c:1648]: (style) The scope of the variable 'credential_flags' can be reduced >[source4/torture/rpc/samlogon.c:1641]: (style) Variable 'test_machine_account' is assigned a value that is never used >[source4/torture/rpc/samr.c:6778]: (style) The scope of the variable 'ret' can be reduced >[source4/torture/rpc/samr.c:222]: (style) Variable 'test_account_name' is assigned a value that is never used >[source4/torture/rpc/samr.c:2470]: (style) Variable 'oldpass' is assigned a value that is never used >[source4/torture/rpc/samr.c:2777]: (style) Variable 'pwdlastset3' is assigned a value that is never used >[source4/torture/rpc/samr.c:6778]: (style) Variable 'ret' is assigned a value that is never used >[source4/torture/rpc/samr_priv.c:37]: (style) struct or union member 'torture_user::admin_rights' is never used >[source4/torture/rpc/samsync.c:646] -> [source4/torture/rpc/samsync.c:642]: (style) Found duplicate if expressions. >[source4/torture/rpc/session_key.c:50]: (style) Variable 'blob2' is assigned a value that is never used >[source4/torture/rpc/spoolss.c:6378]: (style) The scope of the variable 'short_name' can be reduced >[source4/torture/rpc/spoolss.c:6395]: (style) The scope of the variable 'p' can be reduced >[source4/torture/rpc/spoolss.c:6892]: (style) The scope of the variable 'existing_printer_deleted' can be reduced >[source4/torture/rpc/spoolss.c:8975]: (style) The scope of the variable 'i' can be reduced >[source4/torture/rpc/spoolss.c:9044]: (style) The scope of the variable 'i' can be reduced >[source4/torture/rpc/spoolss.c:9116]: (style) The scope of the variable 'i' can be reduced >[source4/torture/rpc/spoolss.c:2134]: (style) Variable 'q0' is assigned a value that is never used >[source4/torture/rpc/spoolss.c:3182]: (style) Variable 'status' is assigned a value that is never used >[source4/torture/rpc/spoolss_access.c:831]: (style) Variable 'ret' is assigned a value that is never used >[source4/torture/rpc/srvsvc.c:102]: (style) The scope of the variable 'j' can be reduced >[source4/torture/rpc/srvsvc.c:253]: (style) The scope of the variable 'j' can be reduced >[source4/torture/rpc/srvsvc.c:778]: (style) The scope of the variable 'j' can be reduced >[source4/torture/rpc/winreg.c:2864]: (style) The scope of the variable 'deleted' can be reduced >[source4/torture/rpc/winreg.c:2865]: (style) The scope of the variable 'created3' can be reduced >[source4/torture/rpc/winreg.c:2867]: (style) The scope of the variable 'test_key3' can be reduced >[source4/torture/rpc/winreg.c:2868]: (style) The scope of the variable 'test_subkey' can be reduced >[source4/torture/rpc/wkssvc.c:538]: (style) The scope of the variable 'i' can be reduced >[source4/torture/smb2/dir.c:1098]: (style) The scope of the variable 'resume_index' can be reduced >[source4/torture/smb2/dir.c:294]: (style) struct or union member 'Anonymous0::resume_key_offset' is never used >[source4/torture/smb2/notify.c:471]: (style) The scope of the variable 'ret' can be reduced >[source4/torture/smb2/notify.c:471]: (style) Variable 'ret' is assigned a value that is never used >[source4/torture/smb2/notify.c:845]: (style) Variable 'mask' is assigned a value that is never used >[source4/torture/smb2/notify.c:478]: (error) Uninitialized variable: h1 >[source4/torture/smb2/oplock.c:324]: (style) Variable 'te' is assigned a value that is never used >[source4/torture/smb2/oplock.c:2976]: (style) Variable 'correct' is assigned a value that is never used >[source4/torture/smb2/oplock.c:3099]: (style) Variable 'correct' is assigned a value that is never used >[source4/torture/smb2/oplock.c:3201]: (style) Variable 'correct' is assigned a value that is never used >[source4/torture/smb2/session.c:594]: (style) Variable 'f_sd2' is assigned a value that is never used >[source4/torture/smb2/streams.c:1163]: (style) The scope of the variable 'check_handle' can be reduced >[source4/torture/smb2/streams.c:1164]: (style) The scope of the variable 'call_name' can be reduced >[source4/torture/smb2/streams.c:733]: (style) Variable 'snamer2' is assigned a value that is never used >[source4/torture/smb2/streams.c:1163]: (style) Variable 'check_handle' is assigned a value that is never used >[source4/torture/smb2/streams.c:1164]: (style) Variable 'call_name' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:70]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:91]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:109]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:123]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:149]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:168]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:188]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:284]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:349]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:360]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:429]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:602]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:654]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:720]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:795]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:832]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:848]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:855]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:860]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:885]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:940]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:949]: (style) The scope of the variable '__noop' can be reduced >[source4/torture/winbind/struct_based.c:70]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:91]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:109]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:123]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:149]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:168]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:188]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:284]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:349]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:360]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:429]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:602]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:654]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:720]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:795]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:832]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:848]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:855]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:860]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:885]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:940]: (style) Variable '__noop' is assigned a value that is never used >[source4/torture/winbind/struct_based.c:949]: (style) Variable '__noop' is assigned a value that is never used >[source4/utils/ntlm_auth.c:605]: (style) The scope of the variable 'base64_key' can be reduced >[source4/utils/ntlm_auth.c:975]: (warning) scanf without field width limits can crash with huge input data >[source4/winbind/idmap.c:398]: (style) The scope of the variable 'sam_attrs' can be reduced >[source4/winbind/wb_cmd_getgroups.c:121]: (style) The scope of the variable 'sid_str' can be reduced >[source4/winbind/wb_samba3_cmd.c:1454]: (style) The scope of the variable 'sid_str' can be reduced >[source4/winbind/wb_samba3_cmd.c:1502]: (style) The scope of the variable 'sid_str' can be reduced >[source4/wrepl_server/wrepl_apply_records.c:897]: (style) Variable 'status' is assigned a value that is never used >[source4/wrepl_server/wrepl_apply_records.c:1094]: (style) Variable 'status' is assigned a value that is never used >[testprogs/win32/npecho/npecho_client.c:21]: (error) Memory leak: outbuffer >[testprogs/win32/npecho/npecho_client.c:27]: (error) Memory leak: outbuffer >[testprogs/win32/npecho/npecho_client.c:32]: (error) Memory leak: outbuffer >[testprogs/win32/npecho/npecho_client2.c:20]: (style) Variable 'flags' is assigned a value that is never used >[testprogs/win32/npecho/npecho_client2.c:116]: (error) Memory leak: outbuffer >[testprogs/win32/npecho/npecho_client2.c:37]: (error) Memory leak: outbuffer >[testprogs/win32/npecho/npecho_server2.c:17]: (style) Variable 'outbuffer' is allocated memory that is never used >[testprogs/win32/npecho/npecho_server2.c:75]: (error) Memory leak: outbuffer >[testprogs/win32/npecho/npecho_server2.c:51]: (error) Memory leak: outbuffer >[testprogs/win32/npecho/npecho_server2.c:58]: (error) Memory leak: outbuffer >[testprogs/win32/npecho/npecho_server2.c:63]: (error) Memory leak: outbuffer >[testprogs/win32/npecho/npecho_server2.c:70]: (error) Memory leak: outbuffer >[testprogs/win32/prepare_dcpromo/prepare_dcpromo.c:192]: (style) Variable 'cbSecurityDescriptor' is assigned a value that is never used >[testprogs/win32/prepare_dcpromo/prepare_dcpromo.c:518]: (style) Unused variable: hk_child >[testprogs/win32/prepare_dcpromo/prepare_dcpromo.c:649]: (style) Unused variable: hk_child >[testprogs/win32/prepare_dcpromo/prepare_dcpromo.c:782]: (style) Variable 'cbTmp' is assigned a value that is never used >[testprogs/win32/prepare_dcpromo/prepare_dcpromo.c:241]: (error) Memory leak: AbsoluteSD >[testprogs/win32/prepare_dcpromo/prepare_dcpromo.c:246]: (error) Memory leak: old_Dacl >[testprogs/win32/prepare_dcpromo/prepare_dcpromo.c:246]: (error) Memory leak: AbsoluteSD >[testprogs/win32/prepare_dcpromo/prepare_dcpromo.c:251]: (error) Memory leak: old_Dacl >[testprogs/win32/prepare_dcpromo/prepare_dcpromo.c:251]: (error) Memory leak: AbsoluteSD >[testprogs/win32/prepare_dcpromo/prepare_dcpromo.c:251]: (error) Memory leak: Sacl >[testprogs/win32/prepare_dcpromo/prepare_dcpromo.c:256]: (error) Memory leak: old_Dacl >[testprogs/win32/prepare_dcpromo/prepare_dcpromo.c:256]: (error) Memory leak: AbsoluteSD >[testprogs/win32/prepare_dcpromo/prepare_dcpromo.c:256]: (error) Memory leak: Sacl >[testprogs/win32/prepare_dcpromo/prepare_dcpromo.c:256]: (error) Memory leak: Owner >[testprogs/win32/prepare_dcpromo/prepare_dcpromo.c:813]: (error) Memory leak: newDomainSid >[testprogs/win32/prepare_dcpromo/prepare_dcpromo.c:228]: (error) Uninitialized variable: status >[testprogs/win32/rpcecho/client.c:321]: (style) Variable 'arg' is assigned a value that is never used >[testprogs/win32/rpcecho/client.c:321]: (style) Unused variable: result >[testprogs/win32/spoolss/printlib.c:1237]: (style) Variable 'i' is assigned a value that is never used >[testprogs/win32/spoolss/testspoolss.c:84]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:136]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:189]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:241]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:297]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:348]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:400]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:451]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:497]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:538]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:590]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:644]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:762]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:945]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:1128]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:1180]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:1231]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:1284]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:1337]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:1385]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:1409]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:1433]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:1456]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:1483]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:1510]: (style) The scope of the variable 'tmp' can be reduced >[testprogs/win32/spoolss/testspoolss.c:713]: (error) Memory leak: value_name >[testprogs/win32/testmailslot/testmailslot.c:15]: (style) Unused variable: nextsize >[testprogs/win32/testmailslot/testmailslot.c:15]: (style) Variable 'nummsg' is assigned a value that is never used >[testprogs/win32/testmailslot/testmailslot.c:53]: (style) Found obsolete function 'gets'. It is recommended to use the function 'fgets' instead >[tests/crypttest.c:444]: (error) Buffer access out-of-bounds: esel >[tests/fcntl_lock.c:118]: (warning) Redundant assignment of "status" to itself >[tests/fcntl_lock_thread.c:85] -> [tests/fcntl_lock_thread.c:85]: (style) Same expression on both sides of '|'. >[tests/fcntl_lock_thread.c:62]: (style) Unused variable: ret >[tests/fcntl_lock_thread.c:63]: (style) Unused variable: pid >[tests/fcntl_lock_thread.c:108]: (warning) Redundant assignment of "status" to itself >[testsuite/nsswitch/getgrent_r.c:35]: (error) fprintf format string has 4 parameters but only 3 are given >[testsuite/nsswitch/longarg_getgrnam.c:33]: (style) Variable 'failed' is assigned a value that is never used >[testsuite/nsswitch/longarg_getpwnam.c:33]: (style) Variable 'failed' is assigned a value that is never used >[testsuite/nsswitch/nss_winbind_syms.c:30]: (style) Unused variable: y >[testsuite/nsswitch/pam_winbind_syms.c:22]: (style) Unused variable: y >[testsuite/smbd/se_access_check_allowsome.c:40]: (style) Unused variable: name >[testsuite/smbd/se_access_check_denysome.c:42]: (style) Unused variable: name >[testsuite/smbd/sec_ctx_utils.c:34]: (error) Possible null pointer dereference: groups - otherwise it is redundant to check if groups is null at line 36
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 9019
: 7681