cppcheck analysis of db4.8_4.8.30-3.dsc
- ./btree/bt_compact.c:2322 [error] - Array index -1 is out of bounds
- ./btree/bt_delete.c:627 [error] - Array index -1 is out of bounds
- ./db_sql/db_sql.c:270 [error] - Common realloc mistake: "collector" nulled but not freed upon failure
- ./db_sql/db_sql.c:283 [error] - Common realloc mistake: "collector" nulled but not freed upon failure
- ./db_sql/db_sql.c:98 [error] - Resource leak: ifile
- ./db_sql/db_sql.c:123 [error] - Resource leak: hfile
- ./db_sql/db_sql.c:111 [error] - Resource leak: ofile
- ./db_sql/db_sql.c:139 [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/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
- ./test_stl/base/test_mt.h:150 [error] - Dereferenced iterator 'itr' has been erased
- ./test_stl/base/test_mt.h:305 [error] - Dereferenced iterator 'itr' has been erased
- ./test_stl/base/test_mt.h:466 [error] - Dereferenced iterator 'itr' has been erased
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