2026-05-01 14:47 ftp://ftp.de.debian.org/debian/pool/main/d/db1-compat/db1-compat_2.1.3.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j6 platform: Linux-7.0.3+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a734 (2026-05-01 11:10:43 +0200) count: 125 125 elapsed-time: 0.3 0.2 head-timing-info: old-timing-info: head results: db/btree/bt_close.c:79:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/btree/bt_close.c:136:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] db/btree/bt_close.c:169:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/btree/bt_get.c:83:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] db/btree/bt_conv.c:86:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pgno_t [valueFlowBailoutIncompleteVar] db/btree/bt_conv.c:147:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pgno_t [valueFlowBailoutIncompleteVar] db/btree/bt_conv.c:210:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int32_t [valueFlowBailoutIncompleteVar] db/btree/bt_overflow.c:92:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pgno_t [valueFlowBailoutIncompleteVar] db/btree/bt_overflow.c:154:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pgno_t [valueFlowBailoutIncompleteVar] db/btree/bt_overflow.c:202:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pgno_t [valueFlowBailoutIncompleteVar] db/btree/bt_page.c:71:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPOOL_DIRTY [valueFlowBailoutIncompleteVar] db/btree/bt_open.c:118:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_DUP [valueFlowBailoutIncompleteVar] db/btree/bt_open.c:363:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_SUCCESS [valueFlowBailoutIncompleteVar] db/btree/bt_open.c:410:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] db/btree/bt_open.c:430:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BIG_ENDIAN [valueFlowBailoutIncompleteVar] db/btree/bt_open.c:454:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] db/btree/bt_conv.c:220:4: style: Variable 'p' is assigned a value that is never used. [unreadVariable] db/btree/bt_put.c:81:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pgno_t [valueFlowBailoutIncompleteVar] db/btree/bt_put.c:277:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOT [valueFlowBailoutIncompleteVar] db/btree/bt_search.c:83:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pgno_t [valueFlowBailoutIncompleteVar] db/btree/bt_search.c:204:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pgno_t [valueFlowBailoutIncompleteVar] db/btree/bt_delete.c:83:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] db/btree/bt_delete.c:190:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pgno_t [valueFlowBailoutIncompleteVar] db/btree/bt_delete.c:303:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/btree/bt_delete.c:404:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/btree/bt_delete.c:491:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/btree/bt_delete.c:568:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_SUCCESS [valueFlowBailoutIncompleteVar] db/btree/bt_delete.c:646:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/btree/bt_open.c:403:9: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] db/btree/bt_open.c:401:14: warning: Either the condition 'envtmp' is redundant or there is possible null pointer dereference: envtmp. [nullPointerRedundantCheck] db/btree/bt_open.c:407:31: note: Assuming that condition 'envtmp' is not redundant db/btree/bt_open.c:401:14: note: Null pointer dereference db/btree/bt_open.c:424:10: style: Variable 'p' can be declared as pointer to const [constVariablePointer] db/btree/bt_seq.c:113:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] db/btree/bt_seq.c:174:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] db/btree/bt_seq.c:270:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/btree/bt_seq.c:361:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_SPECIAL [valueFlowBailoutIncompleteVar] db/db/db.c:87:14: debug: Function::addArguments found argument 'void' with varid 0. [varid0] db/db/db.c:66:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] db/db/db.c:89:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/db/db.c:104:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __dberr [valueFlowBailoutIncompleteVar] db/btree/bt_utils.c:89:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/btree/bt_utils.c:197:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/btree/bt_seq.c:394:10: warning: Either the condition '(h=mpool_get(t->bt_mp,h->prevpg,0))==NULL' is redundant or there is possible null pointer dereference: h. [nullPointerRedundantCheck] db/btree/bt_seq.c:393:24: note: Assuming that condition '(h=mpool_get(t->bt_mp,h->prevpg,0))==NULL' is not redundant db/btree/bt_seq.c:394:10: note: Null pointer dereference db/btree/bt_seq.c:155:7: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] db/hash/hash.c:106:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_ACCMODE [valueFlowBailoutIncompleteVar] db/hash/hash.c:272:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] db/hash/hash.c:292:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BYTE_ORDER [valueFlowBailoutIncompleteVar] db/hash/hash.c:423:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] db/hash/hash.c:464:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] db/hash/hash.c:497:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HASHMAGIC [valueFlowBailoutIncompleteVar] db/hash/hash.c:544:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] db/hash/hash.c:560:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NOOVERWRITE [valueFlowBailoutIncompleteVar] db/hash/hash.c:581:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_CURSOR [valueFlowBailoutIncompleteVar] db/hash/hash.c:736:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NEXT [valueFlowBailoutIncompleteVar] db/hash/hash.c:917:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] db/hash/hash_bigkey.c:107:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int16_t [valueFlowBailoutIncompleteVar] db/hash/hash_bigkey.c:247:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int16_t [valueFlowBailoutIncompleteVar] db/hash/hash_bigkey.c:439:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] db/hash/hash_bigkey.c:496:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] db/hash/hash_bigkey.c:557:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] db/hash/hash_bigkey.c:628:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int16_t [valueFlowBailoutIncompleteVar] db/btree/bt_split.c:112:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/btree/bt_split.c:361:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pgno_t [valueFlowBailoutIncompleteVar] db/btree/bt_split.c:472:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pgno_t [valueFlowBailoutIncompleteVar] db/btree/bt_split.c:504:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable recno_t [valueFlowBailoutIncompleteVar] db/btree/bt_split.c:554:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int32_t [valueFlowBailoutIncompleteVar] db/btree/bt_split.c:638:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pgno_t [valueFlowBailoutIncompleteVar] db/btree/bt_split.c:799:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/btree/bt_split.c:826:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pgno_t [valueFlowBailoutIncompleteVar] db/btree/bt_delete.c:149:13: style: Variable 'bi' can be declared as pointer to const [constVariablePointer] db/hash/hash_buf.c:170:20: style: Variable 'shortp' can be declared as pointer to const [constVariablePointer] db/hash/ndbm.c:67:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBM_SUFFIX [valueFlowBailoutIncompleteVar] db/hash/ndbm.c:131:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_FIRST [valueFlowBailoutIncompleteVar] db/hash/ndbm.c:149:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NEXT [valueFlowBailoutIncompleteVar] db/hash/ndbm.c:186:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBM_INSERT [valueFlowBailoutIncompleteVar] db/hash/ndbm.c:193:8: style: Variable 'hp' can be declared as pointer to const [constVariablePointer] db/mpool/mpool.c:92:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] db/mpool/mpool.c:137:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PAGE_NUMBER [valueFlowBailoutIncompleteVar] db/mpool/mpool.c:177:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] db/mpool/mpool.c:261:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BKT [valueFlowBailoutIncompleteVar] db/mpool/mpool.c:286:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable q [valueFlowBailoutIncompleteVar] db/mpool/mpool.c:308:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPOOL_DIRTY [valueFlowBailoutIncompleteVar] db/mpool/mpool.c:356:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPOOL_PINNED [valueFlowBailoutIncompleteVar] db/mpool/mpool.c:412:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/recno/rec_close.c:74:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/recno/rec_close.c:126:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_RECNOSYNC [valueFlowBailoutIncompleteVar] db/hash/hash_page.c:118:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int16_t [valueFlowBailoutIncompleteVar] db/hash/hash_page.c:168:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int16_t [valueFlowBailoutIncompleteVar] db/hash/hash_page.c:247:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int16_t [valueFlowBailoutIncompleteVar] db/hash/hash_page.c:330:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int16_t [valueFlowBailoutIncompleteVar] db/hash/hash_page.c:421:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int16_t [valueFlowBailoutIncompleteVar] db/hash/hash_page.c:502:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int16_t [valueFlowBailoutIncompleteVar] db/hash/hash_page.c:532:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int16_t [valueFlowBailoutIncompleteVar] db/hash/hash_page.c:592:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BYTE_ORDER [valueFlowBailoutIncompleteVar] db/hash/hash_page.c:867:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] db/hash/hash_page.c:903:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int16_t [valueFlowBailoutIncompleteVar] db/recno/rec_close.c:173:14: style: Variable 't->bt_cursor.rcursor' is assigned an expression that holds the same value. [redundantAssignment] db/recno/rec_close.c:141:10: note: scursor is assigned 't->bt_cursor.rcursor' here. db/recno/rec_close.c:173:14: note: Variable 't->bt_cursor.rcursor' is assigned an expression that holds the same value. db/recno/rec_delete.c:86:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_SPECIAL [valueFlowBailoutIncompleteVar] db/recno/rec_delete.c:130:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/recno/rec_delete.c:176:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/hash/hash.c:504:8: style: Variable 'whdrp' is reassigned a value before the old one has been used. [redundantAssignment] db/hash/hash.c:502:8: note: whdrp is assigned db/hash/hash.c:504:8: note: whdrp is overwritten db/hash/hash.c:265:8: style: Variable 'hashp' can be declared as pointer to const [constVariablePointer] db/hash/hash_bigkey.c:324:13: style: Variable 'bp' can be declared as pointer to const [constVariablePointer] db/hash/hash_bigkey.c:405:7: style: Variable 'bp' is assigned a value that is never used. [unreadVariable] db/recno/rec_get.c:84:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] db/recno/rec_get.c:137:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/recno/rec_get.c:193:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] db/recno/rec_get.c:249:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/recno/rec_get.c:301:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_SPECIAL [valueFlowBailoutIncompleteVar] db/recno/rec_open.c:75:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_FIXEDLEN [valueFlowBailoutIncompleteVar] db/recno/rec_open.c:237:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] db/recno/rec_search.c:87:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pgno_t [valueFlowBailoutIncompleteVar] db/recno/rec_get.c:241:15: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] db/recno/rec_get.c:290:15: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] db/recno/rec_put.c:95:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_ERROR [valueFlowBailoutIncompleteVar] db/recno/rec_put.c:203:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pgno_t [valueFlowBailoutIncompleteVar] db/recno/rec_get.c:303:8: error: Uninitialized variable: data [uninitvar] db/recno/rec_search.c:72:13: style: Variable 'r' can be declared as pointer to const [constVariablePointer] db/recno/rec_seq.c:96:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RET_SPECIAL [valueFlowBailoutIncompleteVar] db/recno/rec_utils.c:75:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable recno_t [valueFlowBailoutIncompleteVar] db/btree/bt_split.c:91:14: style: Variable 'tbl' can be declared as pointer to const [constVariablePointer] db/btree/bt_split.c:539:12: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] db/btree/bt_split.c:620:13: style: Variable 'bi' can be declared as pointer to const [constVariablePointer] db/btree/bt_split.c:621:9: style: Variable 'bl' can be declared as pointer to const [constVariablePointer] db/btree/bt_split.c:623:9: style: Variable 'rl' can be declared as pointer to const [constVariablePointer] db/hash/hash_page.c:348:10: style: Variable 'n' is reassigned a value before the old one has been used. [redundantAssignment] db/hash/hash_page.c:338:6: note: n is assigned db/hash/hash_page.c:348:10: note: n is overwritten diff: DONE