2025-09-15 21:17 ftp://ftp.de.debian.org/debian/pool/main/r/rawtran/rawtran_1.1.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 -j1 platform: Linux-6.8.0-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 3e169d6 (2025-09-15 13:38:15 +0200) count: 47 47 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: rawtran-1.1/dark.c:57:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rawtran-1.1/dark.c:108:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] rawtran-1.1/dark.c:53:10: warning: If memory allocation fails, then there is a possible null pointer dereference: com [nullPointerOutOfMemory] rawtran-1.1/dark.c:52:15: note: Assuming allocation function fails rawtran-1.1/dark.c:52:15: note: Assignment 'com=malloc(strlen(dcraw_command)+strlen(filename)+1)', assigned value is 0 rawtran-1.1/dark.c:53:10: note: Null pointer dereference rawtran-1.1/dark.c:54:10: warning: If memory allocation fails, then there is a possible null pointer dereference: com [nullPointerOutOfMemory] rawtran-1.1/dark.c:52:15: note: Assuming allocation function fails rawtran-1.1/dark.c:52:15: note: Assignment 'com=malloc(strlen(dcraw_command)+strlen(filename)+1)', assigned value is 0 rawtran-1.1/dark.c:54:10: note: Null pointer dereference rawtran-1.1/dark.c:117:23: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: naxes [nullPointerOutOfMemory] rawtran-1.1/dark.c:113:17: note: Assuming allocation function fails rawtran-1.1/dark.c:113:17: note: Assignment 'naxes=malloc(naxis*sizeof(long))', assigned value is 0 rawtran-1.1/dark.c:117:23: note: Null pointer dereference rawtran-1.1/dark.c:36:20: style:inconclusive: Function 'darksh' argument 1 names different: declaration 'filename' definition 'fullfilename'. [funcArgNamesDifferent] rawtran-1.1/rawtran.h:25:27: note: Function 'darksh' argument 1 names different: declaration 'filename' definition 'fullfilename'. rawtran-1.1/dark.c:36:20: note: Function 'darksh' argument 1 names different: declaration 'filename' definition 'fullfilename'. rawtran-1.1/dark.c:36:20: style: Parameter 'fullfilename' can be declared as pointer to const [constParameterPointer] rawtran-1.1/dark.c:101:10: style: Variable 'fdata' can be declared as pointer to const [constVariablePointer] rawtran-1.1/fitspath.c:75:10: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] rawtran-1.1/fitspath.c:70:16: note: Assuming allocation function fails rawtran-1.1/fitspath.c:70:16: note: Assignment 'name=malloc(strlen(filename)+1)', assigned value is 0 rawtran-1.1/fitspath.c:75:10: note: Null pointer dereference rawtran-1.1/fitspath.c:37:21: style: Local variable 'basename' shadows outer function [shadowFunction] rawtran-1.1/rawtran.h:29:14: note: Shadowed declaration rawtran-1.1/fitspath.c:37:21: note: Shadow variable rawtran-1.1/main.c:153:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rawtran-1.1/main.c:365:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rawtran-1.1/main.c:394:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rawtran-1.1/main.c:416:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rawtran-1.1/main.c:344:14: warning: If memory allocation fails, then there is a possible null pointer dereference: fitsname [nullPointerOutOfMemory] rawtran-1.1/main.c:343:24: note: Assuming allocation function fails rawtran-1.1/main.c:343:24: note: Assignment 'fitsname=malloc(strlen(fits)+2)', assigned value is 0 rawtran-1.1/main.c:344:14: note: Null pointer dereference rawtran-1.1/main.c:345:14: warning: If memory allocation fails, then there is a possible null pointer dereference: fitsname [nullPointerOutOfMemory] rawtran-1.1/main.c:343:24: note: Assuming allocation function fails rawtran-1.1/main.c:343:24: note: Assignment 'fitsname=malloc(strlen(fits)+2)', assigned value is 0 rawtran-1.1/main.c:345:14: note: Null pointer dereference rawtran-1.1/main.c:92:9: style: Variable 'fits' can be declared as pointer to const [constVariablePointer] rawtran-1.1/main.c:426:22: style: Parameter 'filter' can be declared as pointer to const [constParameterPointer] rawtran-1.1/main.c:426:36: style: Parameter 'filters' can be declared as const array [constParameter] rawtran-1.1/pixmap.c:42:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] rawtran-1.1/pixmap.c:239:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rawtran-1.1/pixmap.c:178:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] rawtran-1.1/pixmap.c:99:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] rawtran-1.1/pixmap.c:98:13: note: Assuming allocation function fails rawtran-1.1/pixmap.c:98:13: note: Assignment 'p=malloc(sizeof(struct PIXMAP))', assigned value is 0 rawtran-1.1/pixmap.c:99:3: note: Null pointer dereference rawtran-1.1/pixmap.c:100:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] rawtran-1.1/pixmap.c:98:13: note: Assuming allocation function fails rawtran-1.1/pixmap.c:98:13: note: Assignment 'p=malloc(sizeof(struct PIXMAP))', assigned value is 0 rawtran-1.1/pixmap.c:100:3: note: Null pointer dereference rawtran-1.1/pixmap.c:101:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] rawtran-1.1/pixmap.c:98:13: note: Assuming allocation function fails rawtran-1.1/pixmap.c:98:13: note: Assignment 'p=malloc(sizeof(struct PIXMAP))', assigned value is 0 rawtran-1.1/pixmap.c:101:3: note: Null pointer dereference rawtran-1.1/pixmap.c:102:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] rawtran-1.1/pixmap.c:98:13: note: Assuming allocation function fails rawtran-1.1/pixmap.c:98:13: note: Assignment 'p=malloc(sizeof(struct PIXMAP))', assigned value is 0 rawtran-1.1/pixmap.c:102:3: note: Null pointer dereference rawtran-1.1/pixmap.c:103:8: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] rawtran-1.1/pixmap.c:98:13: note: Assuming allocation function fails rawtran-1.1/pixmap.c:98:13: note: Assignment 'p=malloc(sizeof(struct PIXMAP))', assigned value is 0 rawtran-1.1/pixmap.c:103:8: note: Null pointer dereference rawtran-1.1/pixmap.c:107:11: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] rawtran-1.1/pixmap.c:98:13: note: Assuming allocation function fails rawtran-1.1/pixmap.c:98:13: note: Assignment 'p=malloc(sizeof(struct PIXMAP))', assigned value is 0 rawtran-1.1/pixmap.c:103:61: note: Assuming condition is false rawtran-1.1/pixmap.c:107:11: note: Null pointer dereference rawtran-1.1/pixmap.c:122:15: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] rawtran-1.1/pixmap.c:119:16: note: Assuming allocation function fails rawtran-1.1/pixmap.c:119:16: note: Assignment 'data=malloc(lbytes)', assigned value is 0 rawtran-1.1/pixmap.c:122:15: note: Null pointer dereference rawtran-1.1/pixmap.c:161:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] rawtran-1.1/pixmap.c:160:13: note: Assuming allocation function fails rawtran-1.1/pixmap.c:160:13: note: Assignment 'p=malloc(sizeof(struct PIXMAP))', assigned value is 0 rawtran-1.1/pixmap.c:161:3: note: Null pointer dereference rawtran-1.1/pixmap.c:162:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] rawtran-1.1/pixmap.c:160:13: note: Assuming allocation function fails rawtran-1.1/pixmap.c:160:13: note: Assignment 'p=malloc(sizeof(struct PIXMAP))', assigned value is 0 rawtran-1.1/pixmap.c:162:3: note: Null pointer dereference rawtran-1.1/pixmap.c:163:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] rawtran-1.1/pixmap.c:160:13: note: Assuming allocation function fails rawtran-1.1/pixmap.c:160:13: note: Assignment 'p=malloc(sizeof(struct PIXMAP))', assigned value is 0 rawtran-1.1/pixmap.c:163:3: note: Null pointer dereference rawtran-1.1/pixmap.c:164:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] rawtran-1.1/pixmap.c:160:13: note: Assuming allocation function fails rawtran-1.1/pixmap.c:160:13: note: Assignment 'p=malloc(sizeof(struct PIXMAP))', assigned value is 0 rawtran-1.1/pixmap.c:164:3: note: Null pointer dereference rawtran-1.1/pixmap.c:166:8: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] rawtran-1.1/pixmap.c:160:13: note: Assuming allocation function fails rawtran-1.1/pixmap.c:160:13: note: Assignment 'p=malloc(sizeof(struct PIXMAP))', assigned value is 0 rawtran-1.1/pixmap.c:166:8: note: Null pointer dereference rawtran-1.1/pixmap.c:214:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] rawtran-1.1/pixmap.c:208:16: note: Assuming allocation function fails rawtran-1.1/pixmap.c:208:16: note: Assignment 'data=malloc(nbytes)', assigned value is 0 rawtran-1.1/pixmap.c:214:2: note: Null pointer dereference rawtran-1.1/pixmap.c:215:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] rawtran-1.1/pixmap.c:208:16: note: Assuming allocation function fails rawtran-1.1/pixmap.c:208:16: note: Assignment 'data=malloc(nbytes)', assigned value is 0 rawtran-1.1/pixmap.c:215:2: note: Null pointer dereference rawtran-1.1/pixmap.c:221:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] rawtran-1.1/pixmap.c:208:16: note: Assuming allocation function fails rawtran-1.1/pixmap.c:208:16: note: Assignment 'data=malloc(nbytes)', assigned value is 0 rawtran-1.1/pixmap.c:221:2: note: Null pointer dereference rawtran-1.1/pixmap.c:224:12: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] rawtran-1.1/pixmap.c:208:16: note: Assuming allocation function fails rawtran-1.1/pixmap.c:208:16: note: Assignment 'data=malloc(nbytes)', assigned value is 0 rawtran-1.1/pixmap.c:224:12: note: Null pointer dereference rawtran-1.1/pixmap.c:140:27: style: Local variable 'p' shadows outer variable [shadowVariable] rawtran-1.1/pixmap.c:68:11: note: Shadowed declaration rawtran-1.1/pixmap.c:140:27: note: Shadow variable rawtran-1.1/pixmap.c:139:22: style: Variable 'd' can be declared as pointer to const [constVariablePointer] rawtran-1.1/pixmap.c:183:26: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] rawtran-1.1/pixmap.c:183:35: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] rawtran-1.1/pixmap.c:188:23: style: Variable 'pdata' can be declared as pointer to const [constVariablePointer] rawtran-1.1/pixmap.c:231:26: style: Parameter 'ppmname' can be declared as pointer to const [constParameterPointer] rawtran-1.1/pixmap.c:235:33: style: Variable 'ppmdata' can be declared as pointer to const [constVariablePointer] rawtran-1.1/pixmap.c:148:9: style: Variable 'k' is assigned a value that is never used. [unreadVariable] rawtran-1.1/rawtran.c:81:35: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_NAME is a macro then please configure it. [unknownMacro] diff: DONE