2026-05-02 11:34 ftp://ftp.de.debian.org/debian/pool/main/h/haskell-lpeg/haskell-lpeg_1.1.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=lua --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 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 60 60 elapsed-time: 0.9 0.8 head-timing-info: old-timing-info: head results: lpeg-1.1.0/cbits/lpeg-1.1.0/lpcap.c:167:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_OPEQ [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcap.c:269:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_MULTRET [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcap.c:346:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_MULTRET [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcap.c:526:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable idx [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcap.c:603:12: warning: Assert statement calls a function which may have desired side effects: 'lua_gettop'. [assertWithSideEffect] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcap.c:24:34: style: Parameter 'cap' can be declared as pointer to const [constParameterPointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcap.c:24:48: style: Parameter 'close' can be declared as pointer to const [constParameterPointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcap.c:138:34: style: Parameter 'cs' can be declared as pointer to const [constParameterPointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcap.c:138:61: style: Parameter 'ref' can be declared as pointer to const [constParameterPointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcap.c:199:12: style: Variable 'head' can be declared as pointer to const [constVariablePointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcap.c:243:12: style: Variable 'head' can be declared as pointer to const [constVariablePointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcap.c:317:26: style: Parameter 'cap' can be declared as pointer to const [constParameterPointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcap.c:317:40: style: Parameter 'last' can be declared as pointer to const [constParameterPointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcode.c:52:54: debug: Function::addArguments found argument 't' with varid 0. [varid0] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcode.c:162:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cap [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcode.c:225:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcode.c:491:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable n [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcode.c:580:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buff [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcode.c:924:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tag [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcode.c:557:24: style: Redundant initialization for 'I'. The initialized value is overwritten before it is read. [redundantInitialization] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcode.c:553:18: note: I is initialized lpeg-1.1.0/cbits/lpeg-1.1.0/lpcode.c:557:24: note: I is overwritten lpeg-1.1.0/cbits/lpeg-1.1.0/lpcode.c:551:70: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcode.c:570:35: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcode.c:570:51: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcode.c:610:56: style: Parameter 'cs' can be declared as pointer to const [constParameterPointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lpcode.c:877:54: style: Parameter 'positions' can be declared as pointer to const [constParameterPointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:1308:64: debug: Function::addArguments found argument 'catf' with varid 0. [varid0] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:250:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_OPEQ [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:392:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bitmap [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:429:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tag [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:496:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tag [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:664:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tag [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:750:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tag [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:804:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tag [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:877:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TFUNCTION [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:929:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:941:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TFUNCTION [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:1000:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_OPEQ [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:1161:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:1283:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:1325:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_TTABLE [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:1389:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:1210:3: style: Statements following noreturn function 'luaL_error()' will never be executed. [unreachableCode] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:1218:3: style: Statements following noreturn function 'luaL_error()' will never be executed. [unreachableCode] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:51:60: style: Parameter 'g' can be declared as pointer to const [constParameterPointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:343:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:378:47: style: Parameter 'cs' can be declared as pointer to const [constParameterPointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:413:43: style: Parameter 'sib' can be declared as pointer to const [constParameterPointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:516:10: style: Variable 'tree1' can be declared as pointer to const [constVariablePointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:531:10: style: Variable 'tree1' can be declared as pointer to const [constVariablePointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:532:10: style: Variable 'tree2' can be declared as pointer to const [constVariablePointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:557:10: style: Variable 'tree1' can be declared as pointer to const [constVariablePointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:558:10: style: Variable 'tree2' can be declared as pointer to const [constVariablePointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:1025:12: style: Variable 'rn' can be declared as pointer to const [constVariablePointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:1068:55: style: Parameter 'passed' can be declared as pointer to const [constParameterPointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:356:43: warning: Expression 'len' can have a negative value. That is converted to an unsigned value and used in an unsigned calculation. [signConversionCond] lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:448:11: note: Assuming that condition 'n>0' is not redundant lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:452:27: note: Calling function 'newtree', 2nd argument '2*n' value is -2 lpeg-1.1.0/cbits/lpeg-1.1.0/lptree.c:356:43: note: Negative value is converted to an unsigned value lpeg-1.1.0/cbits/lpeg-1.1.0/lpvm.c:126:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LUA_REGISTRYINDEX [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lpvm.c:262:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] lpeg-1.1.0/cbits/lpeg-1.1.0/lpvm.c:249:40: warning: Assert statement calls a function which may have desired side effects: 'lua_gettop'. [assertWithSideEffect] lpeg-1.1.0/cbits/lpeg-1.1.0/lpvm.c:122:10: style: Variable 'stack' can be declared as pointer to const [constVariablePointer] lpeg-1.1.0/cbits/lpeg-1.1.0/lpvm.c:231:33: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] diff: DONE