2025-05-05 04:48 ftp://ftp.de.debian.org/debian/pool/main/j/jackmeter/jackmeter_0.4.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 88ef81e (2025-05-02 08:42:38 +0200) count: 14 14 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: jackmeter-0.4/jack_meter.c:120:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jackmeter-0.4/jack_meter.c:145:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jackmeter-0.4/jack_meter.c:171:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jackmeter-0.4/jack_meter.c:268:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] jackmeter-0.4/jack_meter.c:163:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] jackmeter-0.4/jack_meter.c:191:27: warning: If memory allocation fails, then there is a possible null pointer dereference: scale [nullPointerOutOfMemory] jackmeter-0.4/jack_meter.c:186:22: note: Assuming allocation function fails jackmeter-0.4/jack_meter.c:186:22: note: Assignment 'scale=malloc(width+1)', assigned value is 0 jackmeter-0.4/jack_meter.c:191:27: note: Null pointer dereference jackmeter-0.4/jack_meter.c:191:43: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] jackmeter-0.4/jack_meter.c:187:21: note: Assuming allocation function fails jackmeter-0.4/jack_meter.c:187:21: note: Assignment 'line=malloc(width+1)', assigned value is 0 jackmeter-0.4/jack_meter.c:191:43: note: Null pointer dereference jackmeter-0.4/jack_meter.c:192:2: warning: If memory allocation fails, then there is a possible null pointer dereference: scale [nullPointerOutOfMemory] jackmeter-0.4/jack_meter.c:186:22: note: Assuming allocation function fails jackmeter-0.4/jack_meter.c:186:22: note: Assignment 'scale=malloc(width+1)', assigned value is 0 jackmeter-0.4/jack_meter.c:192:2: note: Null pointer dereference jackmeter-0.4/jack_meter.c:193:2: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] jackmeter-0.4/jack_meter.c:187:21: note: Assuming allocation function fails jackmeter-0.4/jack_meter.c:187:21: note: Assignment 'line=malloc(width+1)', assigned value is 0 jackmeter-0.4/jack_meter.c:193:2: note: Null pointer dereference jackmeter-0.4/jack_meter.c:213:3: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] jackmeter-0.4/jack_meter.c:187:21: note: Assuming allocation function fails jackmeter-0.4/jack_meter.c:187:21: note: Assignment 'line=malloc(width+1)', assigned value is 0 jackmeter-0.4/jack_meter.c:213:3: note: Null pointer dereference jackmeter-0.4/jack_meter.c:217:17: warning: If memory allocation fails, then there is a possible null pointer dereference: scale [nullPointerOutOfMemory] jackmeter-0.4/jack_meter.c:186:22: note: Assuming allocation function fails jackmeter-0.4/jack_meter.c:186:22: note: Assignment 'scale=malloc(width+1)', assigned value is 0 jackmeter-0.4/jack_meter.c:217:17: note: Null pointer dereference jackmeter-0.4/jack_meter.c:218:17: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] jackmeter-0.4/jack_meter.c:187:21: note: Assuming allocation function fails jackmeter-0.4/jack_meter.c:187:21: note: Assignment 'line=malloc(width+1)', assigned value is 0 jackmeter-0.4/jack_meter.c:218:17: note: Null pointer dereference jackmeter-0.4/jack_meter.c:210:16: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] jackmeter-0.4/jack_meter.c:186:22: note: Assuming allocation function fails jackmeter-0.4/jack_meter.c:186:22: note: Assignment 'scale=malloc(width+1)', assigned value is 0 jackmeter-0.4/jack_meter.c:210:16: note: Null pointer addition jackmeter-0.4/jack_meter.c:61:31: style: Variable 'in' can be declared as pointer to const [constVariablePointer] diff: 2.17.0 jackmeter-0.4/jack_meter.c:210:16: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] jackmeter-0.4/jack_meter.c:186:22: note: Assuming allocation function fails jackmeter-0.4/jack_meter.c:186:22: note: Assignment 'scale=malloc(width+1)', assigned value is 0 jackmeter-0.4/jack_meter.c:210:16: note: Null pointer addition head jackmeter-0.4/jack_meter.c:210:16: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] jackmeter-0.4/jack_meter.c:186:22: note: Assuming allocation function fails jackmeter-0.4/jack_meter.c:186:22: note: Assignment 'scale=malloc(width+1)', assigned value is 0 jackmeter-0.4/jack_meter.c:210:16: note: Null pointer addition DONE