2025-11-18 22:19 ftp://ftp.de.debian.org/debian/pool/main/q/qfits/qfits_6.2.0.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 -j4 platform: Linux-6.12.57+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: 1ca1246 (2025-11-18 18:56:39 +0100) count: 296 289 elapsed-time: 1.5 1.6 head-timing-info: old-timing-info: head results: qfits-6.2.0/main/flipx.c:126:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] qfits-6.2.0/main/flipx.c:176:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/main/dfits.c:90:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] qfits-6.2.0/main/dfits.c:175:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/main/dfits.c:201:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/main/flipx.c:140:9: error: Resource leak: fd [resourceLeak] qfits-6.2.0/main/flipx.c:152:16: warning: If memory allocation fails, then there is a possible null pointer dereference: fbuf [nullPointerOutOfMemory] qfits-6.2.0/main/flipx.c:131:23: note: Assuming allocation function fails qfits-6.2.0/main/flipx.c:131:12: note: Assignment 'fbuf=(char*)mmap(0,fileinfo.st_size,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)', assigned value is 0 qfits-6.2.0/main/flipx.c:152:16: note: Null pointer dereference qfits-6.2.0/main/flipx.c:142:16: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] qfits-6.2.0/main/flipx.c:131:23: note: Assuming allocation function fails qfits-6.2.0/main/flipx.c:131:12: note: Assignment 'fbuf=(char*)mmap(0,fileinfo.st_size,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)', assigned value is 0 qfits-6.2.0/main/flipx.c:142:16: note: Null pointer addition qfits-6.2.0/main/flipx.c:68:29: style: Parameter 'pname' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/main/flipx.c:70:22: style: Variable 'sval' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/main/frameq.c:287:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qfits-6.2.0/main/frameq.c:418:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qfits-6.2.0/main/dtfits.c:89:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/main/dtfits.c:149:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qfits-6.2.0/main/qextract.c:137:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable atom_type [valueFlowBailoutIncompleteVar] qfits-6.2.0/main/qextract.c:238:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTYPE_DOUBLE [valueFlowBailoutIncompleteVar] qfits-6.2.0/main/qextract.c:178:9: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] qfits-6.2.0/main/qextract.c:174:19: note: Assuming allocation function fails qfits-6.2.0/main/qextract.c:174:19: note: Assignment 'array=malloc(array_size)', assigned value is 0 qfits-6.2.0/main/qextract.c:178:9: note: Null pointer dereference qfits-6.2.0/main/qextract.c:179:13: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] qfits-6.2.0/main/qextract.c:174:19: note: Assuming allocation function fails qfits-6.2.0/main/qextract.c:174:19: note: Assignment 'array=malloc(array_size)', assigned value is 0 qfits-6.2.0/main/qextract.c:179:13: note: Null pointer dereference qfits-6.2.0/main/qextract.c:109:26: style: Parameter 'pname' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/main/replacekey.c:93:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/main/frameq.c:100:52: error: Memory leak: fi.name [memleak] qfits-6.2.0/main/frameq.c:94:5: warning: If memory allocation fails, then there is a possible null pointer dereference: fi [nullPointerOutOfMemory] qfits-6.2.0/main/frameq.c:93:16: note: Assuming allocation function fails qfits-6.2.0/main/frameq.c:93:16: note: Assignment 'fi=malloc(sizeof(struct framei))', assigned value is 0 qfits-6.2.0/main/frameq.c:94:5: note: Null pointer dereference qfits-6.2.0/main/frameq.c:121:5: warning: If memory allocation fails, then there is a possible null pointer dereference: fi [nullPointerOutOfMemory] qfits-6.2.0/main/frameq.c:93:16: note: Assuming allocation function fails qfits-6.2.0/main/frameq.c:93:16: note: Assignment 'fi=malloc(sizeof(struct framei))', assigned value is 0 qfits-6.2.0/main/frameq.c:121:5: note: Null pointer dereference qfits-6.2.0/main/frameq.c:156:5: warning: If memory allocation fails, then there is a possible null pointer dereference: fq [nullPointerOutOfMemory] qfits-6.2.0/main/frameq.c:155:16: note: Assuming allocation function fails qfits-6.2.0/main/frameq.c:155:16: note: Assignment 'fq=malloc(sizeof(struct frameq))', assigned value is 0 qfits-6.2.0/main/frameq.c:156:5: note: Null pointer dereference qfits-6.2.0/main/frameq.c:157:5: warning: If memory allocation fails, then there is a possible null pointer dereference: fq [nullPointerOutOfMemory] qfits-6.2.0/main/frameq.c:155:16: note: Assuming allocation function fails qfits-6.2.0/main/frameq.c:155:16: note: Assignment 'fq=malloc(sizeof(struct frameq))', assigned value is 0 qfits-6.2.0/main/frameq.c:157:5: note: Null pointer dereference qfits-6.2.0/main/frameq.c:328:11: warning: If memory allocation fails, then there is a possible null pointer dereference: tplid_all [nullPointerOutOfMemory] qfits-6.2.0/main/frameq.c:317:23: note: Assuming allocation function fails qfits-6.2.0/main/frameq.c:317:23: note: Assignment 'tplid_all=malloc(fq->n*sizeof(char*))', assigned value is 0 qfits-6.2.0/main/frameq.c:328:11: note: Null pointer dereference qfits-6.2.0/main/frameq.c:333:20: warning: If memory allocation fails, then there is a possible null pointer dereference: tplid_all [nullPointerOutOfMemory] qfits-6.2.0/main/frameq.c:317:23: note: Assuming allocation function fails qfits-6.2.0/main/frameq.c:317:23: note: Assignment 'tplid_all=malloc(fq->n*sizeof(char*))', assigned value is 0 qfits-6.2.0/main/frameq.c:333:20: note: Null pointer dereference qfits-6.2.0/main/frameq.c:333:34: warning: If memory allocation fails, then there is a possible null pointer dereference: tplid_all [nullPointerOutOfMemory] qfits-6.2.0/main/frameq.c:317:23: note: Assuming allocation function fails qfits-6.2.0/main/frameq.c:317:23: note: Assignment 'tplid_all=malloc(fq->n*sizeof(char*))', assigned value is 0 qfits-6.2.0/main/frameq.c:333:34: note: Null pointer dereference qfits-6.2.0/main/frameq.c:339:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tplid [nullPointerOutOfMemory] qfits-6.2.0/main/frameq.c:338:19: note: Assuming allocation function fails qfits-6.2.0/main/frameq.c:338:19: note: Assignment 'tplid=malloc(ntplid*sizeof(char*))', assigned value is 0 qfits-6.2.0/main/frameq.c:339:5: note: Null pointer dereference qfits-6.2.0/main/frameq.c:339:16: warning: If memory allocation fails, then there is a possible null pointer dereference: tplid_all [nullPointerOutOfMemory] qfits-6.2.0/main/frameq.c:317:23: note: Assuming allocation function fails qfits-6.2.0/main/frameq.c:317:23: note: Assignment 'tplid_all=malloc(fq->n*sizeof(char*))', assigned value is 0 qfits-6.2.0/main/frameq.c:339:16: note: Null pointer dereference qfits-6.2.0/main/frameq.c:340:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tplid_all [nullPointerOutOfMemory] qfits-6.2.0/main/frameq.c:317:23: note: Assuming allocation function fails qfits-6.2.0/main/frameq.c:317:23: note: Assignment 'tplid_all=malloc(fq->n*sizeof(char*))', assigned value is 0 qfits-6.2.0/main/frameq.c:340:5: note: Null pointer dereference qfits-6.2.0/main/frameq.c:343:34: warning: If memory allocation fails, then there is a possible null pointer dereference: tplid [nullPointerOutOfMemory] qfits-6.2.0/main/frameq.c:338:19: note: Assuming allocation function fails qfits-6.2.0/main/frameq.c:338:19: note: Assignment 'tplid=malloc(ntplid*sizeof(char*))', assigned value is 0 qfits-6.2.0/main/frameq.c:343:34: note: Null pointer dereference qfits-6.2.0/main/frameq.c:442:21: warning: If resource allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfResources] qfits-6.2.0/main/frameq.c:441:25: note: Assuming allocation function fails qfits-6.2.0/main/frameq.c:441:25: note: Assignment 'list=fopen(filename,"w")', assigned value is 0 qfits-6.2.0/main/frameq.c:442:21: note: Null pointer dereference qfits-6.2.0/main/frameq.c:443:21: warning: If resource allocation fails, then there is a possible null pointer dereference: list [nullPointerOutOfResources] qfits-6.2.0/main/frameq.c:441:25: note: Assuming allocation function fails qfits-6.2.0/main/frameq.c:441:25: note: Assignment 'list=fopen(filename,"w")', assigned value is 0 qfits-6.2.0/main/frameq.c:443:21: note: Null pointer dereference qfits-6.2.0/main/frameq.c:241:14: style: Variable 'fi' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/main/frameq.c:262:29: style: Parameter 'dirname' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/main/frameq.c:310:17: style: Variable 'fn' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/main/frameq.c:364:29: style: Parameter 'dirname' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/main/dtfits.c:221:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cols [nullPointerOutOfMemory] qfits-6.2.0/main/dtfits.c:219:18: note: Assuming allocation function fails qfits-6.2.0/main/dtfits.c:219:18: note: Assignment 'cols=malloc(tdesc->nc*sizeof(void*))', assigned value is 0 qfits-6.2.0/main/dtfits.c:221:9: note: Null pointer dereference qfits-6.2.0/main/dtfits.c:222:13: warning: If memory allocation fails, then there is a possible null pointer dereference: cols [nullPointerOutOfMemory] qfits-6.2.0/main/dtfits.c:219:18: note: Assuming allocation function fails qfits-6.2.0/main/dtfits.c:219:18: note: Assignment 'cols=malloc(tdesc->nc*sizeof(void*))', assigned value is 0 qfits-6.2.0/main/dtfits.c:222:13: note: Null pointer dereference qfits-6.2.0/main/dtfits.c:272:9: warning: If memory allocation fails, then there is a possible null pointer dereference: col_sizes [nullPointerOutOfMemory] qfits-6.2.0/main/dtfits.c:269:23: note: Assuming allocation function fails qfits-6.2.0/main/dtfits.c:269:23: note: Assignment 'col_sizes=calloc(tdesc->nc,sizeof(int))', assigned value is 0 qfits-6.2.0/main/dtfits.c:272:9: note: Null pointer dereference qfits-6.2.0/main/dtfits.c:327:13: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] qfits-6.2.0/main/dtfits.c:326:25: note: Assuming allocation function fails qfits-6.2.0/main/dtfits.c:326:25: note: Assignment 'str=malloc(field_size*sizeof(char))', assigned value is 0 qfits-6.2.0/main/dtfits.c:327:13: note: Null pointer dereference qfits-6.2.0/main/dtfits.c:471:9: warning: If memory allocation fails, then there is a possible null pointer dereference: col_sizes [nullPointerOutOfMemory] qfits-6.2.0/main/dtfits.c:468:23: note: Assuming allocation function fails qfits-6.2.0/main/dtfits.c:468:23: note: Assignment 'col_sizes=calloc(tdesc->nc,sizeof(int))', assigned value is 0 qfits-6.2.0/main/dtfits.c:471:9: note: Null pointer dereference qfits-6.2.0/main/dtfits.c:510:13: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] qfits-6.2.0/main/dtfits.c:509:25: note: Assuming allocation function fails qfits-6.2.0/main/dtfits.c:509:25: note: Assignment 'str=malloc(field_size*sizeof(char))', assigned value is 0 qfits-6.2.0/main/dtfits.c:510:13: note: Null pointer dereference qfits-6.2.0/main/dtfits.c:121:26: style: Parameter 'pname' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/main/dtfits.c:136:21: style: Parameter 'name_o' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/main/dtfits.c:247:32: style: Parameter 'tdesc' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/main/dtfits.c:255:25: style: Variable 'col' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/main/dtfits.c:448:32: style: Parameter 'tdesc' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/main/dtfits.c:456:25: style: Variable 'col' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/saft/fitsmd5.c:436:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/fitsmd5.c:510:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/fitsmd5.c:669:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/fitsmd5.c:795:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/fitsort.c:118:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/fitsort.c:254:5: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] qfits-6.2.0/saft/fitsort.c:297:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] qfits-6.2.0/saft/fitsort.c:301:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] qfits-6.2.0/saft/fitsort.c:226:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] qfits-6.2.0/saft/fitsort.c:354:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] qfits-6.2.0/saft/fitsort.c:127:13: error: Common realloc mistake: 'allrecords' nulled but not freed upon failure [memleakOnRealloc] qfits-6.2.0/saft/fitsort.c:207:30: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/saft/fitsort.c:223:32: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/saft/fitsort.c:244:21: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/saft/fitsort.c:289:22: style: Parameter 'dotkey' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/saft/fitsort.c:292:13: style: Variable 'token' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/saft/fitsort.c:316:21: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/saft/fitsort.c:321:14: style: Variable 'begin' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/saft/fitsort.c:321:22: style: Variable 'end' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/saft/hierarch28.c:161:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/hierarch28.c:216:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/hierarch28.c:573:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/main/replacekey.c:182:31: warning:inconclusive: Either the condition 'key_tmp' is redundant or there is possible null pointer dereference: key_tmp. [nullPointerRedundantCheck] qfits-6.2.0/main/replacekey.c:186:13: note: Assuming that condition 'key_tmp' is not redundant qfits-6.2.0/main/replacekey.c:182:31: note: Null pointer dereference qfits-6.2.0/main/replacekey.c:193:40: warning: If memory allocation fails, then there is a possible null pointer dereference: card [nullPointerOutOfMemory] qfits-6.2.0/main/replacekey.c:189:22: note: Assuming allocation function fails qfits-6.2.0/main/replacekey.c:189:22: note: Assignment 'card=strdup(card_tmp)', assigned value is 0 qfits-6.2.0/main/replacekey.c:193:40: note: Null pointer dereference qfits-6.2.0/main/replacekey.c:69:21: style: Variable 'stmp' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/main/replacekey.c:214:26: style: Parameter 'pname' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/main/replacekey.c:84:13: style: Variable 'numeric' is assigned a value that is never used. [unreadVariable] qfits-6.2.0/main/replacekey.c:122:21: style: Variable 'numeric' is assigned a value that is never used. [unreadVariable] qfits-6.2.0/main/dfits.c:103:19: style: Parameter 'pname' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/main/dfits.c:169:22: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/main/dfits.c:192:17: style: Variable 'read_val' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/saft/stripfits.c:79:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/stripfits.c:116:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/stripfits.c:217:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/stripfits.c:280:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/stripfits.c:316:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/stripfits.c:161:9: error: Resource leak: fd_out [resourceLeak] qfits-6.2.0/saft/stripfits.c:188:12: warning: If memory allocation fails, then there is a possible null pointer dereference: buf_out [nullPointerOutOfMemory] qfits-6.2.0/saft/stripfits.c:173:26: note: Assuming allocation function fails qfits-6.2.0/saft/stripfits.c:173:15: note: Assignment 'buf_out=(char*)mmap(0,fsize_out,PROT_READ|PROT_WRITE,MAP_SHARED,fd_out,0)', assigned value is 0 qfits-6.2.0/saft/stripfits.c:188:12: note: Null pointer dereference qfits-6.2.0/saft/stripfits.c:195:12: warning: If memory allocation fails, then there is a possible null pointer dereference: buf_out [nullPointerOutOfMemory] qfits-6.2.0/saft/stripfits.c:173:26: note: Assuming allocation function fails qfits-6.2.0/saft/stripfits.c:173:15: note: Assignment 'buf_out=(char*)mmap(0,fsize_out,PROT_READ|PROT_WRITE,MAP_SHARED,fd_out,0)', assigned value is 0 qfits-6.2.0/saft/stripfits.c:195:12: note: Null pointer dereference qfits-6.2.0/saft/stripfits.c:278:20: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] qfits-6.2.0/saft/stripfits.c:120:25: note: Assuming allocation function fails qfits-6.2.0/saft/stripfits.c:120:14: note: Assignment 'buf_in=(char*)mmap(0,fsize_in,PROT_READ,MAP_SHARED,fd_in,0)', assigned value is 0 qfits-6.2.0/saft/stripfits.c:127:20: note: Calling function 'get_bitpix', 1st argument 'buf_in' value is 0 qfits-6.2.0/saft/stripfits.c:278:20: note: Null pointer dereference qfits-6.2.0/saft/stripfits.c:97:21: style: Parameter 'name_out' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/saft/stripfits.c:208:40: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/saft/stripfits.c:276:13: style: Variable 'where' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/saft/stripfits.c:310:17: style: Variable 'where' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/saft/stripfits.c:321:55: error: Uninitialized variable: lookfor [uninitvar] qfits-6.2.0/saft/iofits.c:117:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/iofits.c:161:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/iofits.c:324:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/iofits.c:375:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/iofits.c:405:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/iofits.c:434:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/iofits.c:608:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/saft/iofits.c:1289:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/md5.c:68:33: style:inconclusive: Function 'MD5Init' argument 1 names different: declaration 'context' definition 'ctx'. [funcArgNamesDifferent] qfits-6.2.0/src/md5.h:12:33: note: Function 'MD5Init' argument 1 names different: declaration 'context' definition 'ctx'. qfits-6.2.0/src/md5.c:68:33: note: Function 'MD5Init' argument 1 names different: declaration 'context' definition 'ctx'. qfits-6.2.0/src/md5.c:83:35: style:inconclusive: Function 'MD5Update' argument 1 names different: declaration 'context' definition 'ctx'. [funcArgNamesDifferent] qfits-6.2.0/src/md5.h:13:35: note: Function 'MD5Update' argument 1 names different: declaration 'context' definition 'ctx'. qfits-6.2.0/src/md5.c:83:35: note: Function 'MD5Update' argument 1 names different: declaration 'context' definition 'ctx'. qfits-6.2.0/src/md5.c:131:60: style:inconclusive: Function 'MD5Final' argument 2 names different: declaration 'context' definition 'ctx'. [funcArgNamesDifferent] qfits-6.2.0/src/md5.h:15:60: note: Function 'MD5Final' argument 2 names different: declaration 'context' definition 'ctx'. qfits-6.2.0/src/md5.c:131:60: note: Function 'MD5Final' argument 2 names different: declaration 'context' definition 'ctx'. qfits-6.2.0/src/md5.c:169:12: warning: Size of pointer 'ctx' used instead of size of its data. [pointerSize] qfits-6.2.0/saft/hierarch28.c:610:13: error: Buffer is accessed out of bounds: buf [bufferAccessOutOfBounds] qfits-6.2.0/saft/hierarch28.c:316:64: style: Condition 'search_and_replace_kw(buf,fs,key_in,key_out,nkeys)!=0' is always false [knownConditionTrueFalse] qfits-6.2.0/saft/hierarch28.c:316:30: note: Calling function 'search_and_replace_kw' returns 0 qfits-6.2.0/saft/hierarch28.c:316:64: note: Condition 'search_and_replace_kw(buf,fs,key_in,key_out,nkeys)!=0' is always false qfits-6.2.0/saft/hierarch28.c:239:17: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] qfits-6.2.0/saft/hierarch28.c:275:38: warning: If memory allocation fails, then there is a possible null pointer dereference: key_in [nullPointerOutOfMemory] qfits-6.2.0/saft/hierarch28.c:230:20: note: Assuming allocation function fails qfits-6.2.0/saft/hierarch28.c:230:20: note: Assignment 'key_in=malloc(nkeys*sizeof(char*))', assigned value is 0 qfits-6.2.0/saft/hierarch28.c:275:38: note: Null pointer dereference qfits-6.2.0/saft/hierarch28.c:275:49: warning: If memory allocation fails, then there is a possible null pointer dereference: key_out [nullPointerOutOfMemory] qfits-6.2.0/saft/hierarch28.c:231:21: note: Assuming allocation function fails qfits-6.2.0/saft/hierarch28.c:231:21: note: Assignment 'key_out=malloc(nkeys*sizeof(char*))', assigned value is 0 qfits-6.2.0/saft/hierarch28.c:275:49: note: Null pointer dereference qfits-6.2.0/saft/hierarch28.c:322:12: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] qfits-6.2.0/saft/hierarch28.c:300:22: note: Assuming allocation function fails qfits-6.2.0/saft/hierarch28.c:300:11: note: Assignment 'buf=(char*)mmap(0,fs,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)', assigned value is 0 qfits-6.2.0/saft/hierarch28.c:322:12: note: Null pointer dereference qfits-6.2.0/saft/hierarch28.c:402:28: warning: If memory allocation fails, then there is a possible null pointer dereference: keysizes [nullPointerOutOfMemory] qfits-6.2.0/saft/hierarch28.c:401:22: note: Assuming allocation function fails qfits-6.2.0/saft/hierarch28.c:401:22: note: Assignment 'keysizes=malloc(nk*sizeof(int))', assigned value is 0 qfits-6.2.0/saft/hierarch28.c:402:28: note: Null pointer dereference qfits-6.2.0/saft/hierarch28.c:166:26: style: Parameter 'pname' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/saft/hierarch28.c:198:59: style: Parameter 'name_conv' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/saft/hierarch28.c:470:44: style: Parameter 'key_i' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/saft/hierarch28.c:470:58: style: Parameter 'key_o' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/saft/hierarch28.c:473:18: style: Variable 'equal' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/saft/hierarch28.c:475:18: style: Variable 'p' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/saft/fitsmd5.c:392:16: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] qfits-6.2.0/saft/fitsmd5.c:395:16: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] qfits-6.2.0/saft/fitsmd5.c:381:36: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/saft/fitsmd5.c:425:67: style: Parameter 'datamd5' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/saft/fitsmd5.c:495:22: style: Variable 'hdrmd5' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/saft/fitsmd5.c:236:12: warning: Size of pointer 'ctx' used instead of size of its data. [pointerSize] qfits-6.2.0/src/qfits_error.c:58:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_error.c:57:45: style: Parameter 's' can be declared as pointer to const. However it seems that 'qfits_err_display_stderr' is a callback function, if 's' is declared with const you might also need to cast function pointer(s). [constParameterCallback] qfits-6.2.0/src/qfits_error.c:65:25: note: You might need to cast the function pointer here qfits-6.2.0/src/qfits_error.c:57:45: note: Parameter 's' can be declared as pointer to const qfits-6.2.0/src/qfits_filename.c:203:5: warning: memset() called to fill 0 bytes. [memsetZeroBytes] qfits-6.2.0/src/qfits_filename.c:203:18: warning: The 2nd memset() argument '4096' doesn't fit into an 'unsigned char'. [memsetValueOutOfRange] qfits-6.2.0/src/qfits_filename.c:118:23: style: Condition 'path!=NULL' is always true [knownConditionTrueFalse] qfits-6.2.0/saft/iofits.c:1213:16: style: Condition '*((char*)(&ps))' is always true [knownConditionTrueFalse] qfits-6.2.0/saft/iofits.c:1205:20: note: Assignment 'ps=0xff', assigned value is 255 qfits-6.2.0/saft/iofits.c:1213:16: note: Condition '*((char*)(&ps))' is always true qfits-6.2.0/src/qfits_float.c:110:7: style: Opposite expression on both sides of '|='. [oppositeExpression] qfits-6.2.0/src/qfits_float.c:139:8: style: Opposite expression on both sides of '|='. [oppositeExpression] qfits-6.2.0/src/qfits_float.c:111:16: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] qfits-6.2.0/src/qfits_float.c:140:17: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] qfits-6.2.0/saft/iofits.c:268:12: warning: If memory allocation fails, then there is a possible null pointer dereference: buf_out [nullPointerOutOfMemory] qfits-6.2.0/saft/iofits.c:254:26: note: Assuming allocation function fails qfits-6.2.0/saft/iofits.c:254:15: note: Assignment 'buf_out=(char*)mmap(0,fsize_out,PROT_READ|PROT_WRITE,MAP_SHARED,fd_out,0)', assigned value is 0 qfits-6.2.0/saft/iofits.c:268:12: note: Null pointer dereference qfits-6.2.0/saft/iofits.c:373:20: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] qfits-6.2.0/saft/iofits.c:165:25: note: Assuming allocation function fails qfits-6.2.0/saft/iofits.c:165:14: note: Assignment 'buf_in=(char*)mmap(0,fsize_in,PROT_READ,MAP_SHARED,fd_in,0)', assigned value is 0 qfits-6.2.0/saft/iofits.c:172:27: note: Calling function 'get_bitpix', 1st argument 'buf_in' value is 0 qfits-6.2.0/saft/iofits.c:373:20: note: Null pointer dereference qfits-6.2.0/saft/iofits.c:403:20: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] qfits-6.2.0/saft/iofits.c:254:26: note: Assuming allocation function fails qfits-6.2.0/saft/iofits.c:254:15: note: Assignment 'buf_out=(char*)mmap(0,fsize_out,PROT_READ|PROT_WRITE,MAP_SHARED,fd_out,0)', assigned value is 0 qfits-6.2.0/saft/iofits.c:269:20: note: Calling function 'set_bitpix', 1st argument 'buf_out' value is 0 qfits-6.2.0/saft/iofits.c:403:20: note: Null pointer dereference qfits-6.2.0/saft/iofits.c:858:23: portability: Casting between char * and float * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/saft/iofits.c:872:23: portability: Casting between char * and float * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/saft/iofits.c:897:23: portability: Casting between char * and float * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/saft/iofits.c:914:23: portability: Casting between char * and float * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/saft/iofits.c:941:23: portability: Casting between char * and float * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/saft/iofits.c:964:23: portability: Casting between char * and float * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/saft/iofits.c:994:31: portability: Casting between char * and float * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/saft/iofits.c:1003:31: portability: Casting between char * and float * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/saft/iofits.c:1025:23: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/saft/iofits.c:1039:23: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/saft/iofits.c:1063:23: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/saft/iofits.c:1080:23: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/saft/iofits.c:1108:23: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/saft/iofits.c:1131:23: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/saft/iofits.c:1165:30: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/saft/iofits.c:1174:30: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/saft/iofits.c:1219:13: portability:inconclusive: Casting from float * to unsigned char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] qfits-6.2.0/saft/iofits.c:1233:13: portability:inconclusive: Casting from double * to unsigned char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] qfits-6.2.0/saft/iofits.c:140:22: style: Parameter 'name_out' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/saft/iofits.c:315:40: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/saft/iofits.c:371:15: style: Variable 'where' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/saft/iofits.c:428:13: style: Variable 'where' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/saft/iofits.c:1210:16: style: Variable 'b' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/saft/iofits.c:439:55: error: Uninitialized variable: lookfor [uninitvar] qfits-6.2.0/src/qfits_card.c:239:16: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] qfits-6.2.0/src/qfits_card.c:305:20: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] qfits-6.2.0/src/qfits_card.c:321:20: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] qfits-6.2.0/src/qfits_card.c:343:16: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] qfits-6.2.0/src/qfits_card.c:351:16: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] qfits-6.2.0/src/qfits_card.c:431:16: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] qfits-6.2.0/src/qfits_card.c:540:13: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] qfits-6.2.0/src/qfits_card.c:514:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] qfits-6.2.0/src/qfits_card.c:518:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] qfits-6.2.0/src/qfits_card.c:103:12: style: Condition 'key==NULL' is always false [knownConditionTrueFalse] qfits-6.2.0/src/qfits_card.c:502:18: style: Variable 'token' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_header.c:654:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_header.c:834:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_image.c:651:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_memory.c:311:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_memory.c:504:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_memory.c:679:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_memory.c:835:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_memory.c:1000:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_memory.c:1105:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_memory.c:1250:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RLIMIT_NOFILE [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_memory.c:1340:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_header.c:298:21: style: Variable 'exp_after' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_header.c:374:21: style: Variable 'xkey' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_header.c:417:21: style: Variable 'xkey' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_header.c:526:25: style: Variable 'k' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_header.c:581:21: style: Variable 'k' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_header.c:582:21: style: Variable 'xkey' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_header.c:641:21: style: Variable 'k' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_header.c:699:21: style: Variable 'k' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_header.c:700:21: style: Variable 'xkey' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_header.c:732:17: style: Variable 'c' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_header.c:761:18: style: Variable 'c' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_header.c:797:18: style: Variable 'c' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_header.c:829:21: style: Variable 'k' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_image.c:620:16: style: Condition 'buf_out==NULL' is always true [knownConditionTrueFalse] qfits-6.2.0/src/qfits_image.c:603:15: note: Assignment 'buf_out=NULL', assigned value is 0 qfits-6.2.0/src/qfits_image.c:620:16: note: Condition 'buf_out==NULL' is always true qfits-6.2.0/src/qfits_image.c:1085:22: portability: Casting between unsigned char * and double * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/src/qfits_image.c:1185:22: portability: Casting between unsigned char * and double * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/src/qfits_image.c:1286:22: portability: Casting between unsigned char * and double * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/src/qfits_image.c:119:13: style: Variable 'sval' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_image.c:685:43: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/src/qfits_image.c:798:39: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/src/qfits_image.c:899:45: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/src/qfits_memory.c:1059:18: error: Returning pointer to local variable 't' that will be invalid when returning. [returnDanglingLifetime] qfits-6.2.0/src/qfits_memory.c:1059:19: note: Passed to 'strcpy'. qfits-6.2.0/src/qfits_memory.c:1047:17: note: Variable created here. qfits-6.2.0/src/qfits_memory.c:1059:18: note: Returning pointer to local variable 't' that will be invalid when returning. qfits-6.2.0/src/qfits_memory.c:245:17: style: Variable 'fname' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_memory.c:672:13: style: Variable 'swapname' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_memory.c:822:13: style: Variable 'swapname' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_memory.c:1203:42: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/src/qfits_memory.c:388:9: style: Variable 'pos' is assigned a value that is never used. [unreadVariable] qfits-6.2.0/src/qfits_time.c:195:23: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] qfits-6.2.0/src/qfits_time.c:229:23: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] qfits-6.2.0/src/qfits_time.c:223:16: style: Variable 'time_struct' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_rw.c:254:16: warning: Possible null pointer dereference: key [nullPointer] qfits-6.2.0/src/qfits_rw.c:212:15: note: Assignment 'key=val=com=NULL', assigned value is 0 qfits-6.2.0/src/qfits_rw.c:219:16: note: Assuming condition is false qfits-6.2.0/src/qfits_rw.c:254:16: note: Null pointer dereference qfits-6.2.0/src/qfits_rw.c:118:25: style: Variable 'key' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_rw.c:119:25: style: Variable 'val' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_rw.c:120:25: style: Variable 'com' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_rw.c:202:25: style: Variable 'key' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_rw.c:203:25: style: Variable 'val' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_rw.c:204:25: style: Variable 'com' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_rw.c:287:21: style: Variable 'key' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_rw.c:288:21: style: Variable 'val' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_rw.c:289:21: style: Variable 'com' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_rw.c:127:15: style: Variable 'val' is assigned a value that is never used. [unreadVariable] qfits-6.2.0/src/qfits_rw.c:212:15: style: Variable 'val' is assigned a value that is never used. [unreadVariable] qfits-6.2.0/src/qfits_tools.c:382:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_EXTENDED [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_tools.c:407:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_EXTENDED [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_tools.c:432:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_EXTENDED [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_tools.c:515:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_tools.c:605:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_tools.c:658:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] qfits-6.2.0/test/test_pixio.c:84:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qfits-6.2.0/test/test_pixio.c:95:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/test/test_pixio.c:183:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTYPE_INT [valueFlowBailoutIncompleteVar] qfits-6.2.0/test/test_pixio.c:371:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTYPE_INT [valueFlowBailoutIncompleteVar] qfits-6.2.0/test/test_pixio.c:605:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_tools.c:531:18: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] qfits-6.2.0/src/qfits_tools.c:517:22: note: Assuming allocation function fails qfits-6.2.0/src/qfits_tools.c:517:11: note: Assignment 'buf=(char*)mmap(0,hs,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)', assigned value is 0 qfits-6.2.0/src/qfits_tools.c:531:18: note: Null pointer dereference qfits-6.2.0/src/qfits_tools.c:623:18: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] qfits-6.2.0/src/qfits_tools.c:609:22: note: Assuming allocation function fails qfits-6.2.0/src/qfits_tools.c:609:11: note: Assignment 'buf=(char*)mmap(0,hs,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)', assigned value is 0 qfits-6.2.0/src/qfits_tools.c:623:18: note: Null pointer dereference qfits-6.2.0/src/qfits_tools.c:133:17: style: Variable 'exp_key' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_tools.c:243:18: style: Variable 'sval' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_tools.c:495:17: style: Variable 'exp_key' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_tools.c:583:17: style: Variable 'exp_key' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/test/test_qfits.c:81:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qfits-6.2.0/test/test_qfits.c:92:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/test/test_qfits.c:255:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTYPE_FLOAT [valueFlowBailoutIncompleteVar] qfits-6.2.0/test/test_qfits.c:322:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QFITS_STRING [valueFlowBailoutIncompleteVar] qfits-6.2.0/test/test_qfits.c:444:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTYPE_FLOAT [valueFlowBailoutIncompleteVar] qfits-6.2.0/test/test_qfits.c:537:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTYPE_FLOAT [valueFlowBailoutIncompleteVar] qfits-6.2.0/test/test_qfits.c:658:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/test/test_qfits.c:270:53: style: Parameter 'expval' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/test/test_pixio.c:266:31: style: Parameter 'arr' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/test/test_pixio.c:295:35: style: Parameter 'arr' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/test/test_pixio.c:324:37: style: Parameter 'arr' can be declared as pointer to const [constParameterPointer] qfits-6.2.0/test/test_pixio.c:360:13: style: Variable 'ptype_name' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/test/test_pixio.c:542:12: style: Variable 'ptype_name' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/test/test_pixio.c:575:27: style: Parameter 'argv' can be declared as const array [constParameter] qfits-6.2.0/test/test_tfits.c:65:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qfits-6.2.0/test/test_tfits.c:76:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/test/test_tfits.c:130:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QFITS_BINTABLE [valueFlowBailoutIncompleteVar] qfits-6.2.0/test/test_tfits.c:339:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] qfits-6.2.0/test/test_xmem.c:72:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] qfits-6.2.0/test/test_tfits.c:325:22: warning: If memory allocation fails, then there is a possible null pointer dereference: srcdir [nullPointerOutOfMemory] qfits-6.2.0/test/test_tfits.c:319:20: note: Assuming allocation function fails qfits-6.2.0/test/test_tfits.c:319:20: note: Assignment 'srcdir=strdup(getenv("srcdir"))', assigned value is 0 qfits-6.2.0/test/test_tfits.c:325:22: note: Null pointer dereference qfits-6.2.0/test/test_tfits.c:334:22: warning: If memory allocation fails, then there is a possible null pointer dereference: srcdir [nullPointerOutOfMemory] qfits-6.2.0/test/test_tfits.c:319:20: note: Assuming allocation function fails qfits-6.2.0/test/test_tfits.c:319:20: note: Assignment 'srcdir=strdup(getenv("srcdir"))', assigned value is 0 qfits-6.2.0/test/test_tfits.c:334:22: note: Null pointer dereference qfits-6.2.0/test/test_tfits.c:325:12: error: Uninitialized variable: filename [uninitvar] qfits-6.2.0/test/test_xmem_stress.c:59:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] qfits-6.2.0/test/test_xmem_stress.c:76:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] qfits-6.2.0/src/qfits_cache.c:324:41: style:inconclusive: Function 'qfits_cache_add' argument 1 names different: declaration 'name' definition 'filename'. [funcArgNamesDifferent] qfits-6.2.0/src/qfits_cache.c:112:41: note: Function 'qfits_cache_add' argument 1 names different: declaration 'name' definition 'filename'. qfits-6.2.0/src/qfits_cache.c:324:41: note: Function 'qfits_cache_add' argument 1 names different: declaration 'name' definition 'filename'. qfits-6.2.0/src/qfits_cache.c:335:18: style: Variable 'read_val' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:1024:21: portability: Casting between unsigned char * and double * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/src/qfits_table.c:1035:21: portability: Casting between unsigned char * and float * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/src/qfits_table.c:1226:21: portability: Casting between unsigned char * and double * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/src/qfits_table.c:1238:21: portability: Casting between unsigned char * and float * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/src/qfits_table.c:1384:21: portability: Casting between unsigned char * and double * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/src/qfits_table.c:1399:21: portability: Casting between unsigned char * and float * which have an incompatible binary data representation. [invalidPointerCast] qfits-6.2.0/src/qfits_table.c:101:18: style: Variable 'value' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:147:25: style: Variable 'curr_col' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:150:25: style: Variable 'date' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:905:25: style: Variable 'col' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:1111:25: style: Variable 'col' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:1318:25: style: Variable 'col' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:1647:21: style: Variable 'curr_col' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:1685:29: style: Variable 'col' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:1686:29: style: Variable 'ccol' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:1687:29: style: Variable 'icol' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:1688:29: style: Variable 'fcol' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:1689:29: style: Variable 'dcol' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:1791:29: style: Variable 'col' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:1792:29: style: Variable 'uccol' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:1793:29: style: Variable 'ccol' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:1794:29: style: Variable 'icol' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:1795:29: style: Variable 'scol' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:1796:29: style: Variable 'fcol' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:1797:29: style: Variable 'dcol' can be declared as pointer to const [constVariablePointer] qfits-6.2.0/src/qfits_table.c:2292:25: style: Variable 'curr_col' can be declared as pointer to const [constVariablePointer] diff: head qfits-6.2.0/main/frameq.c:241:14: style: Variable 'fi' can be declared as pointer to const [constVariablePointer] head qfits-6.2.0/main/frameq.c:310:17: style: Variable 'fn' can be declared as pointer to const [constVariablePointer] head qfits-6.2.0/src/qfits_header.c:526:25: style: Variable 'k' can be declared as pointer to const [constVariablePointer] head qfits-6.2.0/src/qfits_header.c:581:21: style: Variable 'k' can be declared as pointer to const [constVariablePointer] head qfits-6.2.0/src/qfits_header.c:641:21: style: Variable 'k' can be declared as pointer to const [constVariablePointer] head qfits-6.2.0/src/qfits_header.c:699:21: style: Variable 'k' can be declared as pointer to const [constVariablePointer] head qfits-6.2.0/src/qfits_header.c:829:21: style: Variable 'k' can be declared as pointer to const [constVariablePointer] DONE