2025-11-04 00:32 ftp://ftp.de.debian.org/debian/pool/main/c/chaos-marmosets/chaos-marmosets_0.2.0.orig.tar.xz 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 -j4 platform: Linux-6.12.48+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 1f35303 (2025-11-01 19:39:44 +0100) count: 2 16 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: chaos-marmosets-0.2.0/noinline.h:19:0: error: failed to evaluate #elif condition, undefined function-like macro invocation: __has_attribute( ... ) [preprocessorErrorDirective] chaos-marmosets-0.2.0/noinline.h:19:2: error: failed to evaluate #elif condition, undefined function-like macro invocation: __has_attribute( ... ) [preprocessorErrorDirective] diff: 2.18.0 chaos-marmosets-0.2.0/divide-by-zero.c:25:15: error: Division by zero. [zerodiv] chaos-marmosets-0.2.0/divide-by-zero.c:23:16: note: Assignment 'zero=0', assigned value is 0 chaos-marmosets-0.2.0/divide-by-zero.c:25:15: note: Division by zero 2.18.0 chaos-marmosets-0.2.0/divide-by-zero.c:28:26: style: Parameter 'argv' can be declared as const array [constParameter] 2.18.0 chaos-marmosets-0.2.0/divide-by-zero.c:30:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 chaos-marmosets-0.2.0/leak-memory.c:123:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.18.0 chaos-marmosets-0.2.0/leak-memory.c:129:10: warning: If memory allocation fails, then there is a possible null pointer dereference: chunk [nullPointerOutOfMemory] chaos-marmosets-0.2.0/leak-memory.c:128:23: note: Assuming allocation function fails chaos-marmosets-0.2.0/leak-memory.c:128:23: note: Assignment 'chunk=malloc(chunk_size)', assigned value is 0 chaos-marmosets-0.2.0/leak-memory.c:129:10: note: Null pointer dereference 2.18.0 chaos-marmosets-0.2.0/leak-memory.c:130:32: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] chaos-marmosets-0.2.0/leak-memory.c:128:23: note: Assuming allocation function fails chaos-marmosets-0.2.0/leak-memory.c:128:23: note: Assignment 'chunk=malloc(chunk_size)', assigned value is 0 chaos-marmosets-0.2.0/leak-memory.c:130:32: note: Null pointer addition 2.18.0 chaos-marmosets-0.2.0/leak-memory.c:130:47: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] chaos-marmosets-0.2.0/leak-memory.c:128:23: note: Assuming allocation function fails chaos-marmosets-0.2.0/leak-memory.c:128:23: note: Assignment 'chunk=malloc(chunk_size)', assigned value is 0 chaos-marmosets-0.2.0/leak-memory.c:130:47: note: Null pointer addition 2.18.0 chaos-marmosets-0.2.0/leak-memory.c:156:24: style: Parameter 'prog' can be declared as pointer to const [constParameterPointer] 2.18.0 chaos-marmosets-0.2.0/leak-memory.c:157:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 chaos-marmosets-0.2.0/leak-memory.c:180:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 chaos-marmosets-0.2.0/leak-memory.c:52:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head chaos-marmosets-0.2.0/noinline.h:19:0: error: failed to evaluate #elif condition, undefined function-like macro invocation: __has_attribute( ... ) [preprocessorErrorDirective] head chaos-marmosets-0.2.0/noinline.h:19:2: error: failed to evaluate #elif condition, undefined function-like macro invocation: __has_attribute( ... ) [preprocessorErrorDirective] 2.18.0 chaos-marmosets-0.2.0/seg-fault.c:24:6: error: Null pointer dereference: null_pointer [nullPointer] chaos-marmosets-0.2.0/seg-fault.c:23:25: note: Assignment 'null_pointer=NULL', assigned value is 0 chaos-marmosets-0.2.0/seg-fault.c:24:6: note: Null pointer dereference 2.18.0 chaos-marmosets-0.2.0/seg-fault.c:28:26: style: Parameter 'argv' can be declared as const array [constParameter] 2.18.0 chaos-marmosets-0.2.0/seg-fault.c:30:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 chaos-marmosets-0.2.0/seg-fault.c:34:10: style: Variable 'fourty_two' can be declared as pointer to const [constVariablePointer] 2.18.0 chaos-marmosets-0.2.0/seg-fault.c:36:13: error: Null pointer dereference: fourty_two [nullPointer] chaos-marmosets-0.2.0/seg-fault.c:23:25: note: Assignment 'null_pointer=NULL', assigned value is 0 chaos-marmosets-0.2.0/seg-fault.c:34:41: note: Calling function 'segmentation_fault' returns 0 chaos-marmosets-0.2.0/seg-fault.c:34:41: note: Assignment 'fourty_two=segmentation_fault()', assigned value is 0 chaos-marmosets-0.2.0/seg-fault.c:36:13: note: Null pointer dereference DONE