2026-05-02 00:14 ftp://ftp.de.debian.org/debian/pool/main/g/gap-nq/gap-nq_2.5.11.orig.tar.gz cppcheck-options: --library=posix --library=gnu --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: 60 59 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: nq-2.5.11/src/addgen.c:190:2: error: Common realloc mistake: 'Definition' nulled but not freed upon failure [memleakOnRealloc] nq-2.5.11/src/addgen.c:132:4: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] nq-2.5.11/src/addgen.c:130:20: note: Assuming allocation function fails nq-2.5.11/src/addgen.c:130:8: note: Assignment 'w=(struct wordword)malloc((l+2)*sizeof(struct gpower))', assigned value is 0 nq-2.5.11/src/addgen.c:132:4: note: Null pointer dereference nq-2.5.11/src/addgen.c:133:4: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] nq-2.5.11/src/addgen.c:130:20: note: Assuming allocation function fails nq-2.5.11/src/addgen.c:130:8: note: Assignment 'w=(struct wordword)malloc((l+2)*sizeof(struct gpower))', assigned value is 0 nq-2.5.11/src/addgen.c:133:4: note: Null pointer dereference nq-2.5.11/src/addgen.c:134:4: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] nq-2.5.11/src/addgen.c:130:20: note: Assuming allocation function fails nq-2.5.11/src/addgen.c:130:8: note: Assignment 'w=(struct wordword)malloc((l+2)*sizeof(struct gpower))', assigned value is 0 nq-2.5.11/src/addgen.c:134:4: note: Null pointer dereference nq-2.5.11/src/addgen.c:135:4: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] nq-2.5.11/src/addgen.c:130:20: note: Assuming allocation function fails nq-2.5.11/src/addgen.c:130:8: note: Assignment 'w=(struct wordword)malloc((l+2)*sizeof(struct gpower))', assigned value is 0 nq-2.5.11/src/addgen.c:135:4: note: Null pointer dereference nq-2.5.11/src/addgen.c:157:5: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] nq-2.5.11/src/addgen.c:155:21: note: Assuming allocation function fails nq-2.5.11/src/addgen.c:155:9: note: Assignment 'w=(struct wordword)malloc((l+2)*sizeof(struct gpower))', assigned value is 0 nq-2.5.11/src/addgen.c:157:5: note: Null pointer dereference nq-2.5.11/src/addgen.c:158:5: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] nq-2.5.11/src/addgen.c:155:21: note: Assuming allocation function fails nq-2.5.11/src/addgen.c:155:9: note: Assignment 'w=(struct wordword)malloc((l+2)*sizeof(struct gpower))', assigned value is 0 nq-2.5.11/src/addgen.c:158:5: note: Null pointer dereference nq-2.5.11/src/addgen.c:159:5: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] nq-2.5.11/src/addgen.c:155:21: note: Assuming allocation function fails nq-2.5.11/src/addgen.c:155:9: note: Assignment 'w=(struct wordword)malloc((l+2)*sizeof(struct gpower))', assigned value is 0 nq-2.5.11/src/addgen.c:159:5: note: Null pointer dereference nq-2.5.11/src/addgen.c:160:5: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] nq-2.5.11/src/addgen.c:155:21: note: Assuming allocation function fails nq-2.5.11/src/addgen.c:155:9: note: Assignment 'w=(struct wordword)malloc((l+2)*sizeof(struct gpower))', assigned value is 0 nq-2.5.11/src/addgen.c:160:5: note: Null pointer dereference nq-2.5.11/src/combicol.c:220:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g [valueFlowBailoutIncompleteVar] nq-2.5.11/src/glimt.c:75:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MP_INT [valueFlowBailoutIncompleteVar] nq-2.5.11/src/glimt.c:153:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nq-2.5.11/src/glimt.c:190:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nq-2.5.11/src/glimt.c:266:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] nq-2.5.11/src/glimt.c:335:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] nq-2.5.11/src/glimt.c:361:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _mp_size [valueFlowBailoutIncompleteVar] nq-2.5.11/src/glimt.c:378:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _mp_size [valueFlowBailoutIncompleteVar] nq-2.5.11/src/glimt.c:422:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _mp_size [valueFlowBailoutIncompleteVar] nq-2.5.11/src/glimt.c:545:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _mp_size [valueFlowBailoutIncompleteVar] nq-2.5.11/src/eliminate.c:218:6: error: Common realloc mistake: 'w' nulled but not freed upon failure [memleakOnRealloc] nq-2.5.11/src/eliminate.c:250:2: error: Common realloc mistake: 'Commute' nulled but not freed upon failure [memleakOnRealloc] nq-2.5.11/src/eliminate.c:253:2: error: Common realloc mistake: 'Exponent' nulled but not freed upon failure [memleakOnRealloc] nq-2.5.11/src/eliminate.c:167:25: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] nq-2.5.11/src/eliminate.c:164:20: note: Assuming allocation function fails nq-2.5.11/src/eliminate.c:164:8: note: Assignment 'w=(struct wordword)malloc((l+NrCenGens+1-n)*sizeof(struct gpower))', assigned value is 0 nq-2.5.11/src/eliminate.c:167:25: note: Null pointer dereference nq-2.5.11/src/eliminate.c:167:56: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] nq-2.5.11/src/eliminate.c:164:20: note: Assuming allocation function fails nq-2.5.11/src/eliminate.c:164:8: note: Assignment 'w=(struct wordword)malloc((l+NrCenGens+1-n)*sizeof(struct gpower))', assigned value is 0 nq-2.5.11/src/eliminate.c:167:56: note: Null pointer addition nq-2.5.11/src/engel.c:170:8: style: Condition '!EarlyStop' is always true [knownConditionTrueFalse] nq-2.5.11/src/engel.c:168:8: note: Assuming that condition 'EarlyStop' is not redundant nq-2.5.11/src/engel.c:170:8: note: Condition '!EarlyStop' is always true nq-2.5.11/src/eliminate.c:14:53: style: Parameter 'renumber' can be declared as pointer to const [constParameterPointer] nq-2.5.11/src/eliminate.c:45:35: style: Parameter 'eRow' can be declared as pointer to const [constParameterPointer] nq-2.5.11/src/eliminate.c:45:46: style: Parameter 'renumber' can be declared as pointer to const [constParameterPointer] nq-2.5.11/src/mem.c:11:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] nq-2.5.11/src/nq.c:34:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nq-2.5.11/src/nq.c:71:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] nq-2.5.11/src/nq.c:114:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nq-2.5.11/src/glimt.c:238:11: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] nq-2.5.11/src/glimt.c:236:18: note: outer condition: j' definition 'fp'. [funcArgNamesDifferentUnnamed] nq-2.5.11/src/presentation.c:67:28: style: Parameter 'gname' can be declared as pointer to const [constParameterPointer] nq-2.5.11/src/presentation.c:950:41: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] nq-2.5.11/src/trmetab.c:147:8: style: Condition '!EarlyStop' is always true [knownConditionTrueFalse] nq-2.5.11/src/trmetab.c:145:8: note: Assuming that condition 'EarlyStop' is not redundant nq-2.5.11/src/trmetab.c:147:8: note: Condition '!EarlyStop' is always true diff: head nq-2.5.11/src/presentation.c:1102:25: style:inconclusive: Function 'InitPrint' argument 1 names different: declaration '' definition 'fp'. [funcArgNamesDifferentUnnamed] DONE