cppcheck analysis of db_5.0.26-3.dsc
- ./btree/bt_delete.c:520 [error] - Array index -1 is out of bounds
- ./db/db_compact.c:538 [error] - Array index -1 is out of bounds
- ./db_sql_codegen/db_sql_codegen.c:274 [error] - Common realloc mistake: "collector" nulled but not freed upon failure
- ./db_sql_codegen/db_sql_codegen.c:287 [error] - Common realloc mistake: "collector" nulled but not freed upon failure
- ./db_sql_codegen/db_sql_codegen.c:102 [error] - Resource leak: ifile
- ./db_sql_codegen/db_sql_codegen.c:127 [error] - Resource leak: hfile
- ./db_sql_codegen/db_sql_codegen.c:115 [error] - Resource leak: ofile
- ./db_sql_codegen/db_sql_codegen.c:143 [error] - Resource leak: tfile
- ./examples_c/csv/code.c:160 [error] - Common realloc mistake: "fields" nulled but not freed upon failure
- ./examples_c/ex_lock.c:132 [error] - Common realloc mistake: "locks" nulled but not freed upon failure
- ./examples_c/ex_mpool.c:128 [error] - Resource leak: fp
- ./examples_c/ex_mpool.c:142 [error] - Memory leak: p
- ./examples_c/ex_rep/base/rep_net.c:150 [error] - Memory leak: member
- ./examples_c/ex_thread.c:578 [error] - Resource leak: fp
- ./examples_c/getting_started/example_database_load.c:102 [error] - Memory leak: inventory_file
- ./examples_c/getting_started/example_database_load.c:102 [error] - Memory leak: vendor_file
- ./examples_cxx/LockExample.cpp:191 [error] - Mismatching allocation and deallocation: locks
- ./examples_cxx/LockExample.cpp:237 [error] - Mismatching allocation and deallocation: locks
- ./examples_cxx/MpoolExample.cpp:129 [error] - Memory leak: p
- ./examples_cxx/wce_tpcb/TpcbExample.cpp:467 [error] - Uninitialized variable: acurs
- ./examples_cxx/wce_tpcb/TpcbExample.cpp:469 [error] - Uninitialized variable: bcurs
- ./examples_cxx/wce_tpcb/TpcbExample.cpp:471 [error] - Uninitialized variable: tcurs
- ./examples_stl/StlAdvancedFeatures.cpp:977 [error] - Possible null pointer dereference: penv - otherwise it is redundant to check if penv is null at line 1002
- ./examples_stl/StlAdvancedFeatures.cpp:978 [error] - Possible null pointer dereference: penv - otherwise it is redundant to check if penv is null at line 1002
- ./examples_stl/StlAdvancedFeatures.cpp:988 [error] - Possible null pointer dereference: penv - otherwise it is redundant to check if penv is null at line 1002
- ./examples_stl/StlAdvancedFeatures.cpp:1004 [error] - Memory leak: envhome
- ./examples_stl/repquote/StlRepQuoteExample.cpp:430 [error] - Mismatching allocation and deallocation: symbol
- ./examples_stl/repquote/StlRepQuoteExample.cpp:431 [error] - Mismatching allocation and deallocation: price
- ./os/os_alloc.c:281 [error] - Memory leak: p
- ./os/os_alloc.c:355 [error] - Memory leak: p
- ./sql/generated/sqlite3.c:52135 [error] - Possible null pointer dereference: pExpr
- ./sql/generated/sqlite3.c:52136 [error] - Possible null pointer dereference: pExpr
- ./sql/jdbc/native/mkopc3.c:300 [error] - Memory leak: opa
- ./sql/jdbc/native/mkopc3.c:299 [error] - Memory leak: bv
- ./sql/jdbc/native/sqlite_jni.c:1066 [error] - Memory leak: h
- ./sql/jdbc/native/sqlite_jni.c:1204 [error] - Memory leak: h
- ./sql/odbc/mkopc3.c:217 [error] - Memory leak: opa
- ./sql/odbc/sqlite3odbc.c:13370 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./sql/odbc/sqlite3odbc.c:13370 [error] - Invalid number of character ({) when these macros are defined: 'ENABLE_NVFS'.
- ./sql/odbc/sqlite3odbc.c:13370 [error] - Invalid number of character ({) when these macros are defined: 'ENABLE_NVFS;HAVE_SQLITE3VFS;HAVE_SQLITE3VFS'.
- ./sql/odbc/sqlite3odbc.c:13370 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_IODBC'.
- ./sql/odbc/sqlite3odbc.c:13370 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_ODBCINSTEXT_H'.
- ./sql/odbc/sqlite3odbc.c:13370 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SQLITE3COLUMNTABLENAME'.
- ./sql/odbc/sqlite3odbc.c:13370 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SQLITE3LOADEXTENSION'.
- ./sql/odbc/sqlite3odbc.c:13370 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SQLITE3LOADEXTENSION;HAVE_SQLITE3LOADEXTENSION;_WIN32'.
- ./sql/odbc/sqlite3odbc.c:13370 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SQLITE3PREPAREV2'.
- ./sql/odbc/sqlite3odbc.c:13370 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SQLITE3TABLECOLUMNMETADATA'.
- ./sql/odbc/sqlite3odbc.c:13370 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SQLITE3VFS'.
- ./sql/odbc/sqlite3odbc.c:13370 [error] - Invalid number of character ({) when these macros are defined: 'HAVE_SQLITE3VFS;HAVE_SQLITE3VFS;WINTERFACE'.
- ./sql/odbc/sqliteodbc.c:2644 [error] - Data is allocated but not initialized: dyncols
- ./sql/odbc/sqliteodbc.c:13670 [error] - Data is allocated but not initialized: dyncols
- ./sql/sqlite/src/expr.c:2295 [error] - Possible null pointer dereference: pExpr
- ./sql/sqlite/src/expr.c:2296 [error] - Possible null pointer dereference: pExpr
- ./sql/sqlite/src/shell.c:354 [error] - Common realloc mistake: "zLine" nulled but not freed upon failure
- ./sql/sqlite/src/shell.c:374 [error] - Common realloc mistake: "zLine" nulled but not freed upon failure
- ./sql/sqlite/src/shell.c:2245 [error] - Common realloc mistake: "zSql" nulled but not freed upon failure
- ./sql/sqlite/src/tclsqlite.c:926 [error] - Common realloc mistake: "zLine" nulled but not freed upon failure
- ./sql/sqlite/src/tclsqlite.c:945 [error] - Common realloc mistake: "zLine" nulled but not freed upon failure
- ./sql/sqlite/src/test1.c:4052 [error] - Buffer access out-of-bounds: bigBuf
- ./sql/sqlite/tool/lemon.c:3248 [error] - Common realloc mistake: "z" nulled but not freed upon failure
- ./sql/sqlite/tool/lemon.c:2331 [error] - Memory leak: sp
- ./sql/sqlite/tool/lemon.c:2533 [error] - Resource leak: fp
- ./sql/sqlite/tool/lemon.c:3125 [error] - Memory leak: tpltname
- ./sql/sqlite/tool/speedtest16.c:168 [error] - Resource leak: in
- ./sql/sqlite/tool/speedtest8.c:259 [error] - Resource leak: in
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Mon, 20 Dec 2010 21:13:23 +0000, based on results by cppcheck 1.46