2025-01-28 02:17 ftp://ftp.de.debian.org/debian/pool/main/f/fitsh/fitsh_0.9.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 -j1 platform: Linux-6.8.0-51-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.65 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.16.0 head-info: b9644e7 (2025-01-27 23:14:41 +0100) count: 1613 1222 elapsed-time: 131.4 151.0 head-timing-info: old-timing-info: head results: fitsh-0.9.4/libastro/easpec.c:66:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable r_earth_equ [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libastro/easpec.c:150:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_jupiter [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libastro/output.c:24:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRDEG_SIGN [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libastro/planets.c:698:10: style: Variable 'pd' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/libfits/fits-bintable.c:82:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsbtable [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-bintable.c:176:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsbfield [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-bintable.c:224:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable form [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-bintable.c:269:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable repeat [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-bintable.c:392:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-bintable.c:493:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsbfield [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-bintable.c:444:12: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fitsh-0.9.4/libfits/fits-bintable.c:442:30: note: Assuming allocation function fails fitsh-0.9.4/libfits/fits-bintable.c:442:7: note: Assignment 'data=(unsigned char*)malloc(fb->rowsize)', assigned value is 0 fitsh-0.9.4/libfits/fits-bintable.c:444:12: note: Null pointer dereference fitsh-0.9.4/libfits/fits-bintable.c:454:9: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fitsh-0.9.4/libfits/fits-bintable.c:453:30: note: Assuming allocation function fails fitsh-0.9.4/libfits/fits-bintable.c:453:7: note: Assignment 'data=(unsigned char*)malloc(psize)', assigned value is 0 fitsh-0.9.4/libfits/fits-bintable.c:454:9: note: Null pointer dereference fitsh-0.9.4/libfits/fits-bintable.c:77:14: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/libfits/fits-bintable.c:209:44: style: Parameter 'fb' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-bintable.c:230:61: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-bintable.c:230:72: style: Parameter 'unit' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-bintable.c:230:83: style: Parameter 'null' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-bintable.c:337:85: style: Parameter 'fb' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-bintable.c:485:56: style: Parameter 'sb' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-common.c:124:21: style: Condition '*(char*)(&a)==1' is always true [knownConditionTrueFalse] fitsh-0.9.4/libfits/fits-common.c:123:4: note: Assignment 'a=1', assigned value is 1 fitsh-0.9.4/libfits/fits-common.c:124:21: note: Condition '*(char*)(&a)==1' is always true fitsh-0.9.4/libfits/fits-common.c:67:56: style: Parameter 'arr' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-common.c:191:37: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-common.c:203:41: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-core.c:66:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fits [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-core.c:105:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fits [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-core.c:189:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable header [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-core.c:378:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FORCEFIRST [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-core.c:384:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-core.c:390:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_ADD [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-core.c:436:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsextension [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-core.c:567:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsextension [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-core.c:682:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsheaderset [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-core.c:761:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_EXT_IMAGE [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-core.c:861:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable header [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-core.c:813:7: style: Condition 'i' is always false [knownConditionTrueFalse] fitsh-0.9.4/libfits/fits-core.c:812:21: note: Calling function 'fits_read_rawdata' returns 0 fitsh-0.9.4/libfits/fits-core.c:812:21: note: Assignment 'i=fits_read_rawdata(fr,img)', assigned value is 0 fitsh-0.9.4/libfits/fits-core.c:813:7: note: Condition 'i' is always false fitsh-0.9.4/libfits/fits-core.c:415:3: error: Common realloc mistake: 'data' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/libfits/fits-core.c:417:2: error: Common realloc mistake: 'data' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/libfits/fits-core.c:885:9: warning: If memory allocation fails, then there is a possible null pointer dereference: wbuff [nullPointerOutOfMemory] fitsh-0.9.4/libfits/fits-core.c:884:22: note: Assuming allocation function fails fitsh-0.9.4/libfits/fits-core.c:884:8: note: Assignment 'wbuff=(char*)malloc(wn)', assigned value is 0 fitsh-0.9.4/libfits/fits-core.c:885:9: note: Null pointer dereference fitsh-0.9.4/libfits/fits-core.c:580:14: style: Variable 'hx' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/libfits/fits-draw.c:61:29: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] fitsh-0.9.4/libfits/fits-draw.c:70:29: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] fitsh-0.9.4/libfits/fits-header.c:36:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:55:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:107:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VINT [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:177:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_EMPTY [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:278:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vtype [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:402:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:411:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:447:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VINT [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:464:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:480:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:501:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:521:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FORCEFIRST [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:575:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VINT [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:583:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VDOUBLE [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:592:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VSTR [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:603:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VBOOLEAN [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:616:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:628:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:641:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:656:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_INSERT [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:692:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VSTR [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-header.c:692:10: style: Condition 'hx!=NULL' is always true [knownConditionTrueFalse] fitsh-0.9.4/libfits/fits-header.c:32:64: style: Parameter 'act' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-header.c:193:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/libfits/fits-header.c:397:45: style: Parameter 'header' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-header.c:397:58: style: Parameter 'hdr' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-header.c:406:42: style: Parameter 'header' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-header.c:406:55: style: Parameter 'hdr' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-header.c:440:14: style: Variable 'h' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/libfits/fits-header.c:516:80: style: Parameter 'comment' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-header.c:587:75: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-header.c:636:59: style: Parameter 'im2' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-image.c:79:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_MAX_NAXIS [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-image.c:223:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VINT [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-image.c:240:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_MAX_NAXIS [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-image.c:384:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-image.c:585:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsscale [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-image.c:216:3: warning: Either the condition 'rbscale!=NULL' is redundant or there is possible null pointer dereference: rbscale. [nullPointerRedundantCheck] fitsh-0.9.4/libfits/fits-image.c:232:15: note: Assuming that condition 'rbscale!=NULL' is not redundant fitsh-0.9.4/libfits/fits-image.c:216:3: note: Null pointer dereference fitsh-0.9.4/libfits/fits-image.c:217:3: warning: Either the condition 'rbzero!=NULL' is redundant or there is possible null pointer dereference: rbzero. [nullPointerRedundantCheck] fitsh-0.9.4/libfits/fits-image.c:233:15: note: Assuming that condition 'rbzero!=NULL' is not redundant fitsh-0.9.4/libfits/fits-image.c:217:3: note: Null pointer dereference fitsh-0.9.4/libfits/fits-image.c:544:9: warning: If memory allocation fails, then there is a possible null pointer dereference: padding [nullPointerOutOfMemory] fitsh-0.9.4/libfits/fits-image.c:543:24: note: Assuming allocation function fails fitsh-0.9.4/libfits/fits-image.c:543:10: note: Assignment 'padding=(char*)malloc(psize)', assigned value is 0 fitsh-0.9.4/libfits/fits-image.c:544:9: note: Null pointer dereference fitsh-0.9.4/libfits/fits-image.c:189:23: portability: Casting between unsigned char * and float * which have an incompatible binary data representation. [invalidPointerCast] fitsh-0.9.4/libfits/fits-image.c:193:23: portability: Casting between unsigned char * and double * which have an incompatible binary data representation. [invalidPointerCast] fitsh-0.9.4/libfits/fits-image.c:505:6: portability: Casting between unsigned char * and float * which have an incompatible binary data representation. [invalidPointerCast] fitsh-0.9.4/libfits/fits-image.c:509:6: portability: Casting between unsigned char * and double * which have an incompatible binary data representation. [invalidPointerCast] fitsh-0.9.4/libfits/fits-image.c:211:59: style: Parameter 'fi' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-image.c:213:14: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/libfits/fits-image.c:241:14: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/libfits/fits-image.c:468:100: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-image.c:562:10: style: Variable 'ddata' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/libfits/fits-image.c:580:10: style: Variable 'idata' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/libfits/fits-image.c:365:9: warning: Shifting 32-bit value by 127 bits is undefined behaviour. See condition at line 347. [shiftTooManyBits] fitsh-0.9.4/libfits/fits-image.c:347:19: note: Assuming that condition 'nquantizebit>=sizeof(long double)*8' is not redundant fitsh-0.9.4/libfits/fits-image.c:365:9: note: Shift fitsh-0.9.4/libfits/fits-image.c:365:6: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] fitsh-0.9.4/libfits/fits-table.c:32:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsttable [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-table.c:157:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-table.c:249:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitstfield [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-table.c:213:9: warning: If memory allocation fails, then there is a possible null pointer dereference: padding [nullPointerOutOfMemory] fitsh-0.9.4/libfits/fits-table.c:212:24: note: Assuming allocation function fails fitsh-0.9.4/libfits/fits-table.c:212:10: note: Assignment 'padding=(char*)malloc(psize)', assigned value is 0 fitsh-0.9.4/libfits/fits-table.c:213:9: note: Null pointer dereference fitsh-0.9.4/libfits/fits-table.c:27:14: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/libfits/fits-table.c:128:82: style: Parameter 'ft' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-table.c:241:53: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-ui.c:103:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_ADD [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-ui.c:172:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-ui.c:185:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-ui.c:195:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libfits/fits-ui.c:43:3: error: Common realloc mistake: 'local_basename' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/libfits/fits-ui.c:109:2: error: Common realloc mistake: 'buff' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/libfits/fits-ui.c:49:7: warning: If memory allocation fails, then there is a possible null pointer dereference: rname [nullPointerOutOfMemory] fitsh-0.9.4/libfits/fits-ui.c:40:26: note: Assuming allocation function fails fitsh-0.9.4/libfits/fits-ui.c:40:26: note: Assignment 'local_basename=strdup(name)', assigned value is 0 fitsh-0.9.4/libfits/fits-ui.c:47:7: note: rname is assigned 'local_basename' here. fitsh-0.9.4/libfits/fits-ui.c:49:7: note: Null pointer dereference fitsh-0.9.4/libfits/fits-ui.c:87:30: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-ui.c:165:29: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libfits/fits-ui.c:178:31: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:61:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psn [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:92:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psnterm [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:102:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psnterm [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:115:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psnterm [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:138:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psnterm [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:149:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psnterm [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:216:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_FN [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:251:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_CONST [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:387:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:423:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_PAROPEN [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:509:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:566:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:590:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:638:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_OP [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:657:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEOK [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:667:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable major [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:680:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_OP [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:699:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:715:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_PAROPEN [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:766:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEPARSE [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:795:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEPARSE [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:835:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PENOTFOUND [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:894:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:1071:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psnterm [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:1087:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEALLOC [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:1240:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEALLOC [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:1376:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:1416:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEALLOC [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:1495:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEINVALID [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:1617:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEINVALID [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:1695:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEMULTI [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:2065:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:2143:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SS_REF [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:2333:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:2437:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEOK [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:2471:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEINVALID [valueFlowBailoutIncompleteVar] fitsh-0.9.4/libpsn/psn.c:981:36: style: Condition '*dr<=-1' is always true [knownConditionTrueFalse] fitsh-0.9.4/libpsn/psn.c:971:15: note: Assuming that condition '*dr>=0' is not redundant fitsh-0.9.4/libpsn/psn.c:981:36: note: Condition '*dr<=-1' is always true fitsh-0.9.4/libpsn/psn.c:1496:2: error: Memory leak: pc [memleak] fitsh-0.9.4/libpsn/psn.c:857:3: error: Common realloc mistake: 'stack_dynamic' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/libpsn/psn.c:1032:3: error: Common realloc mistake: 'pc' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/libpsn/psn.c:1160:7: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/libpsn/psn.c:1197:2: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/libpsn/psn.c:1339:2: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/libpsn/psn.c:1824:3: error: Common realloc mistake: 'chstack' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/libpsn/psn.c:1931:3: error: Common realloc mistake: 'opstack' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/libpsn/psn.c:1967:3: error: Common realloc mistake: 'alltree' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/libpsn/psn.c:2045:3: error: Common realloc mistake: 'opstack' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/libpsn/psn.c:2294:3: error: Common realloc mistake: 'wtree' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/libpsn/psn.c:2482:3: error: Common realloc mistake: 'chain' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/libpsn/psn.c:2494:3: error: Common realloc mistake: 'stack_dynamic' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/libpsn/psn.c:315:11: warning: If memory allocation fails, then there is a possible null pointer dereference: stack_dyn [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:314:31: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:314:14: note: Assignment 'stack_dyn=(psnterm*)malloc(sizeof(psnterm)*stacklen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:315:11: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:540:11: warning: If memory allocation fails, then there is a possible null pointer dereference: stack_dyn [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:539:27: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:539:14: note: Assignment 'stack_dyn=(int*)malloc(sizeof(int)*stacklen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:540:11: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:853:6: warning: If memory allocation fails, then there is a possible null pointer dereference: stack_dynamic [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:851:33: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:851:17: note: Assignment 'stack_dynamic=(double*)malloc(sizeof(double)*stacklen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:853:6: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:918:7: warning: If memory allocation fails, then there is a possible null pointer dereference: pc [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:917:18: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:917:5: note: Assignment 'pc=(int*)malloc(sizeof(int)*4*stacklen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:918:7: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:1093:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:1091:24: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:1091:8: note: Assignment 'stack=(struct istack*)malloc(sizeof(struct istack)*stacklen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:1093:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:1094:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:1091:24: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:1091:8: note: Assignment 'stack=(struct istack*)malloc(sizeof(struct istack)*stacklen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:1094:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:1251:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:1249:24: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:1249:8: note: Assignment 'stack=(struct istack*)malloc(sizeof(struct istack)*stacklen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:1251:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:1252:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:1249:24: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:1249:8: note: Assignment 'stack=(struct istack*)malloc(sizeof(struct istack)*stacklen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:1252:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:1661:9: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:1660:20: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:1660:6: note: Assignment 'ret=(char*)malloc(strlen(buff)+1)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:1661:9: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:1670:9: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:1669:20: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:1669:6: note: Assignment 'ret=(char*)malloc(strlen(name)+1)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:1670:9: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:1953:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: psc [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:1948:28: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:1948:6: note: Assignment 'psc=(struct psnsimpcache*)malloc(sizeof(struct psnsimpcache)*ns)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:1953:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:2336:2: warning: Possible null pointer dereference: wsym [nullPointer] fitsh-0.9.4/libpsn/psn.c:2331:6: note: Assignment 'c=0', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2335:6: note: wsym is assigned '(*syms)+c' here. fitsh-0.9.4/libpsn/psn.c:2336:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:2337:2: warning: Possible null pointer dereference: wsym [nullPointer] fitsh-0.9.4/libpsn/psn.c:2331:6: note: Assignment 'c=0', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2335:6: note: wsym is assigned '(*syms)+c' here. fitsh-0.9.4/libpsn/psn.c:2337:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:2338:2: warning: Possible null pointer dereference: wsym [nullPointer] fitsh-0.9.4/libpsn/psn.c:2331:6: note: Assignment 'c=0', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2335:6: note: wsym is assigned '(*syms)+c' here. fitsh-0.9.4/libpsn/psn.c:2338:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:2339:2: warning: Possible null pointer dereference: wsym [nullPointer] fitsh-0.9.4/libpsn/psn.c:2331:6: note: Assignment 'c=0', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2335:6: note: wsym is assigned '(*syms)+c' here. fitsh-0.9.4/libpsn/psn.c:2339:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:2349:2: warning: Possible null pointer dereference: wprop [nullPointer] fitsh-0.9.4/libpsn/psn.c:2344:5: note: Assignment 'c=0', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2348:7: note: wprop is assigned '(*props)+c' here. fitsh-0.9.4/libpsn/psn.c:2349:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:2350:2: warning: Possible null pointer dereference: wprop [nullPointer] fitsh-0.9.4/libpsn/psn.c:2344:5: note: Assignment 'c=0', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2348:7: note: wprop is assigned '(*props)+c' here. fitsh-0.9.4/libpsn/psn.c:2350:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:2351:2: warning: Possible null pointer dereference: wprop [nullPointer] fitsh-0.9.4/libpsn/psn.c:2344:5: note: Assignment 'c=0', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2348:7: note: wprop is assigned '(*props)+c' here. fitsh-0.9.4/libpsn/psn.c:2351:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:2352:2: warning: Possible null pointer dereference: wprop [nullPointer] fitsh-0.9.4/libpsn/psn.c:2344:5: note: Assignment 'c=0', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2348:7: note: wprop is assigned '(*props)+c' here. fitsh-0.9.4/libpsn/psn.c:2352:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:2362:2: warning: Possible null pointer dereference: wfunct [nullPointer] fitsh-0.9.4/libpsn/psn.c:2357:6: note: Assignment 'c=0', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2361:8: note: wfunct is assigned '(*functs)+c' here. fitsh-0.9.4/libpsn/psn.c:2362:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:2363:2: warning: Possible null pointer dereference: wfunct [nullPointer] fitsh-0.9.4/libpsn/psn.c:2357:6: note: Assignment 'c=0', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2361:8: note: wfunct is assigned '(*functs)+c' here. fitsh-0.9.4/libpsn/psn.c:2363:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:2374:2: warning: Possible null pointer dereference: wdiff [nullPointer] fitsh-0.9.4/libpsn/psn.c:2369:6: note: Assignment 'c=0', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2373:7: note: wdiff is assigned '(*diffs)+c' here. fitsh-0.9.4/libpsn/psn.c:2374:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:2375:2: warning: Possible null pointer dereference: wdiff [nullPointer] fitsh-0.9.4/libpsn/psn.c:2369:6: note: Assignment 'c=0', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2373:7: note: wdiff is assigned '(*diffs)+c' here. fitsh-0.9.4/libpsn/psn.c:2375:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:2386:2: warning: Possible null pointer dereference: wsymeval [nullPointer] fitsh-0.9.4/libpsn/psn.c:2381:6: note: Assignment 'c=0', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2385:10: note: wsymeval is assigned '(*symevals)+c' here. fitsh-0.9.4/libpsn/psn.c:2386:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:2387:2: warning: Possible null pointer dereference: wsymeval [nullPointer] fitsh-0.9.4/libpsn/psn.c:2381:6: note: Assignment 'c=0', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2385:10: note: wsymeval is assigned '(*symevals)+c' here. fitsh-0.9.4/libpsn/psn.c:2387:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:2388:2: warning: Possible null pointer dereference: wsymeval [nullPointer] fitsh-0.9.4/libpsn/psn.c:2381:6: note: Assignment 'c=0', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2385:10: note: wsymeval is assigned '(*symevals)+c' here. fitsh-0.9.4/libpsn/psn.c:2388:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:2389:2: warning: Possible null pointer dereference: wsymeval [nullPointer] fitsh-0.9.4/libpsn/psn.c:2381:6: note: Assignment 'c=0', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2385:10: note: wsymeval is assigned '(*symevals)+c' here. fitsh-0.9.4/libpsn/psn.c:2389:2: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:2460:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: chain [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:2456:21: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:2456:8: note: Assignment 'chain=(int*)malloc(sizeof(int)*chainlen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2460:5: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:2490:6: warning: If memory allocation fails, then there is a possible null pointer dereference: stack_dynamic [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:2488:30: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:2488:17: note: Assignment 'stack_dynamic=(int*)malloc(sizeof(int)*stacklen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2490:6: note: Null pointer dereference fitsh-0.9.4/libpsn/psn.c:1129:4: style: Variable 'pn' is reassigned a value before the old one has been used. [redundantAssignment] fitsh-0.9.4/libpsn/psn.c:1121:4: note: pn is assigned fitsh-0.9.4/libpsn/psn.c:1129:4: note: pn is overwritten fitsh-0.9.4/libpsn/psn.c:849:13: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/libpsn/psn.c:803:7: note: Shadowed declaration fitsh-0.9.4/libpsn/psn.c:849:13: note: Shadow variable fitsh-0.9.4/libpsn/psn.c:2486:13: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/libpsn/psn.c:2446:7: note: Shadowed declaration fitsh-0.9.4/libpsn/psn.c:2486:13: note: Shadow variable fitsh-0.9.4/libpsn/psn.c:96:35: style: Parameter 'terms' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:203:40: style: Parameter 'ps1' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:203:53: style: Parameter 'ps2' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:205:16: style: Variable 'pl2' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/libpsn/psn.c:381:48: style: Parameter 'wp' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:559:45: style: Parameter 'pseq' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:633:26: style: Parameter 'seq' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:663:42: style: Parameter 'flist' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:674:25: style: Parameter 'pseq' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:708:30: style: Parameter 'seq' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:711:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/libpsn/psn.c:746:25: style: Parameter 'pseq' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:778:25: style: Parameter 'seq' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:782:23: style: Parameter 'seq' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:800:70: style: Parameter 'vars' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:889:11: style: Variable 'pr' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/libpsn/psn.c:1059:29: style: Parameter 'seq' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:1069:29: style: Parameter 'seq' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:1212:42: style: Parameter 'varlist' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:1370:32: style: Parameter 'ps2' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:1560:47: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:1655:50: style: Parameter 'dformat' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:1666:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/libpsn/psn.c:1687:11: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/libpsn/psn.c:1879:11: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/libpsn/psn.c:1992:32: style: Parameter 'seq' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:2144:11: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/libpsn/psn.c:2443:31: style: Parameter 'pseq' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/libpsn/psn.c:52:11: style: struct member 'dstack::orig' is never used. [unusedStructMember] fitsh-0.9.4/libpsn/psn.c:53:9: style: struct member 'dstack::diff' is never used. [unusedStructMember] fitsh-0.9.4/src/apphot.c:63:2: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] fitsh-0.9.4/src/apphot.c:57:20: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:57:4: note: Assignment 'x=(double*)malloc(sizeof(double)*(3*n))', assigned value is 0 fitsh-0.9.4/src/apphot.c:63:2: note: Null pointer dereference fitsh-0.9.4/src/apphot.c:475:5: warning: If memory allocation fails, then there is a possible null pointer dereference: xpolypoints [nullPointerOutOfMemory] fitsh-0.9.4/src/apphot.c:465:30: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:465:14: note: Assignment 'xpolypoints=(double*)malloc(sizeof(double)*2*(nxpolypoint+16))', assigned value is 0 fitsh-0.9.4/src/apphot.c:475:5: note: Null pointer dereference fitsh-0.9.4/src/apphot.c:476:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xpolypoints [nullPointerOutOfMemory] fitsh-0.9.4/src/apphot.c:465:30: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:465:14: note: Assignment 'xpolypoints=(double*)malloc(sizeof(double)*2*(nxpolypoint+16))', assigned value is 0 fitsh-0.9.4/src/apphot.c:476:3: note: Null pointer dereference fitsh-0.9.4/src/apphot.c:482:5: warning: If memory allocation fails, then there is a possible null pointer dereference: xpolypoints [nullPointerOutOfMemory] fitsh-0.9.4/src/apphot.c:465:30: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:465:14: note: Assignment 'xpolypoints=(double*)malloc(sizeof(double)*2*(nxpolypoint+16))', assigned value is 0 fitsh-0.9.4/src/apphot.c:482:5: note: Null pointer dereference fitsh-0.9.4/src/apphot.c:483:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xpolypoints [nullPointerOutOfMemory] fitsh-0.9.4/src/apphot.c:465:30: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:465:14: note: Assignment 'xpolypoints=(double*)malloc(sizeof(double)*2*(nxpolypoint+16))', assigned value is 0 fitsh-0.9.4/src/apphot.c:483:3: note: Null pointer dereference fitsh-0.9.4/src/apphot.c:822:5: warning: If memory allocation fails, then there is a possible null pointer dereference: xpolypoints [nullPointerOutOfMemory] fitsh-0.9.4/src/apphot.c:813:30: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:813:14: note: Assignment 'xpolypoints=(double*)malloc(sizeof(double)*2*(nppoly+16))', assigned value is 0 fitsh-0.9.4/src/apphot.c:822:5: note: Null pointer dereference fitsh-0.9.4/src/apphot.c:823:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xpolypoints [nullPointerOutOfMemory] fitsh-0.9.4/src/apphot.c:813:30: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:813:14: note: Assignment 'xpolypoints=(double*)malloc(sizeof(double)*2*(nppoly+16))', assigned value is 0 fitsh-0.9.4/src/apphot.c:823:3: note: Null pointer dereference fitsh-0.9.4/src/apphot.c:827:5: warning: If memory allocation fails, then there is a possible null pointer dereference: xpolypoints [nullPointerOutOfMemory] fitsh-0.9.4/src/apphot.c:813:30: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:813:14: note: Assignment 'xpolypoints=(double*)malloc(sizeof(double)*2*(nppoly+16))', assigned value is 0 fitsh-0.9.4/src/apphot.c:827:5: note: Null pointer dereference fitsh-0.9.4/src/apphot.c:828:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xpolypoints [nullPointerOutOfMemory] fitsh-0.9.4/src/apphot.c:813:30: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:813:14: note: Assignment 'xpolypoints=(double*)malloc(sizeof(double)*2*(nppoly+16))', assigned value is 0 fitsh-0.9.4/src/apphot.c:828:3: note: Null pointer dereference fitsh-0.9.4/src/apphot.c:58:5: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fitsh-0.9.4/src/apphot.c:57:20: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:57:4: note: Assignment 'x=(double*)malloc(sizeof(double)*(3*n))', assigned value is 0 fitsh-0.9.4/src/apphot.c:58:5: note: Null pointer addition fitsh-0.9.4/src/apphot.c:916:39: style:inconclusive: Function 'aperture_photometry_flux_biquad' argument 13 names different: declaration 'maskingonre' definition 'maskignore'. [funcArgNamesDifferent] fitsh-0.9.4/src/apphot.h:98:7: note: Function 'aperture_photometry_flux_biquad' argument 13 names different: declaration 'maskingonre' definition 'maskignore'. fitsh-0.9.4/src/apphot.c:916:39: note: Function 'aperture_photometry_flux_biquad' argument 13 names different: declaration 'maskingonre' definition 'maskignore'. fitsh-0.9.4/src/apphot.c:45:16: style: Local variable 'median' shadows outer function [shadowFunction] fitsh-0.9.4/src/statistics.h:13:8: note: Shadowed declaration fitsh-0.9.4/src/apphot.c:45:16: note: Shadow variable fitsh-0.9.4/src/apphot.c:291:26: style: Local variable 'mean' shadows outer function [shadowFunction] fitsh-0.9.4/src/statistics.h:17:8: note: Shadowed declaration fitsh-0.9.4/src/apphot.c:291:26: note: Shadow variable fitsh-0.9.4/src/apphot.c:431:26: style: Local variable 'mean' shadows outer function [shadowFunction] fitsh-0.9.4/src/statistics.h:17:8: note: Shadowed declaration fitsh-0.9.4/src/apphot.c:431:26: note: Shadow variable fitsh-0.9.4/src/apphot.c:596:42: style: Parameter 'pixel' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/apphot.c:766:30: style: Parameter 'poly' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/cache.c:153:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/cache.c:237:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROT_READ [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/cache.c:496:12: style: Local variable 'hi' shadows outer variable [shadowVariable] fitsh-0.9.4/src/cache.c:408:12: note: Shadowed declaration fitsh-0.9.4/src/cache.c:496:12: note: Shadow variable fitsh-0.9.4/src/cache.c:496:15: style: Local variable 'lo' shadows outer variable [shadowVariable] fitsh-0.9.4/src/cache.c:408:9: note: Shadowed declaration fitsh-0.9.4/src/cache.c:496:15: note: Shadow variable fitsh-0.9.4/src/cache.c:275:14: style: Variable 'cb' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/cache.c:287:53: style: Parameter 'record' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/cache.c:303:38: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/cache.c:303:53: style: Parameter 'cb' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/combine.c:342:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/combine.c:463:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/combine.c:69:40: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] fitsh-0.9.4/src/combine.c:571:14: style:inconclusive: Function 'combine_images_from_files' argument 7 names different: declaration 'pss' definition 'presubs'. [funcArgNamesDifferent] fitsh-0.9.4/src/combine.h:77:15: note: Function 'combine_images_from_files' argument 7 names different: declaration 'pss' definition 'presubs'. fitsh-0.9.4/src/combine.c:571:14: note: Function 'combine_images_from_files' argument 7 names different: declaration 'pss' definition 'presubs'. fitsh-0.9.4/src/combine.c:571:26: style:inconclusive: Function 'combine_images_from_files' argument 8 names different: declaration 'nps' definition 'npresub'. [funcArgNamesDifferent] fitsh-0.9.4/src/combine.h:77:23: note: Function 'combine_images_from_files' argument 8 names different: declaration 'nps' definition 'npresub'. fitsh-0.9.4/src/combine.c:571:26: note: Function 'combine_images_from_files' argument 8 names different: declaration 'nps' definition 'npresub'. fitsh-0.9.4/src/combine.c:133:64: style: Parameter 'cp' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/common.c:119:43: style:inconclusive: Function 'mark_integerlimited_pixels' argument 1 names different: declaration 'img' definition 'i'. [funcArgNamesDifferent] fitsh-0.9.4/src/common.h:29:43: note: Function 'mark_integerlimited_pixels' argument 1 names different: declaration 'img' definition 'i'. fitsh-0.9.4/src/common.c:119:43: note: Function 'mark_integerlimited_pixels' argument 1 names different: declaration 'img' definition 'i'. fitsh-0.9.4/src/common.c:31:38: style: Parameter 'img' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/common.c:31:65: style: Parameter 'satimg' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fbase.c:29:5: warning: If memory allocation fails, then there is a possible null pointer dereference: y1 [nullPointerOutOfMemory] fitsh-0.9.4/src/fbase.c:24:21: note: Assuming allocation function fails fitsh-0.9.4/src/fbase.c:24:5: note: Assignment 'y1=(double*)malloc(sizeof(double)*(order+1))', assigned value is 0 fitsh-0.9.4/src/fbase.c:29:5: note: Null pointer dereference fitsh-0.9.4/src/fiarith.c:154:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiarith.c:165:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiarith.c:190:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiarith.c:261:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiarith.c:299:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiarith.c:337:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiarith.c:645:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiarith.c:1146:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiarith.c:1316:3: error: Common realloc mistake: 'expr' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/fiarith.c:1321:3: error: Common realloc mistake: 'udfsym' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/fiarith.c:629:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fr [nullPointerOutOfResources] fitsh-0.9.4/src/fiarith.c:626:13: note: Assuming allocation function fails fitsh-0.9.4/src/fiarith.c:626:13: note: Assignment 'fr=fopen(ed->ops[k].filename,"rb")', assigned value is 0 fitsh-0.9.4/src/fiarith.c:629:10: note: Null pointer dereference fitsh-0.9.4/src/fiarith.c:1366:5: warning: If memory allocation fails, then there is a possible null pointer dereference: csym [nullPointerOutOfMemory] fitsh-0.9.4/src/fiarith.c:1364:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiarith.c:1364:7: note: Assignment 'csym=(psnsym*)malloc(sizeof(psnsym)*(ed->nop+1))', assigned value is 0 fitsh-0.9.4/src/fiarith.c:1366:5: note: Null pointer dereference fitsh-0.9.4/src/fiarith.c:1367:2: warning: If memory allocation fails, then there is a possible null pointer dereference: csym [nullPointerOutOfMemory] fitsh-0.9.4/src/fiarith.c:1364:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiarith.c:1364:7: note: Assignment 'csym=(psnsym*)malloc(sizeof(psnsym)*(ed->nop+1))', assigned value is 0 fitsh-0.9.4/src/fiarith.c:1367:2: note: Null pointer dereference fitsh-0.9.4/src/fiarith.c:1368:2: warning: If memory allocation fails, then there is a possible null pointer dereference: csym [nullPointerOutOfMemory] fitsh-0.9.4/src/fiarith.c:1364:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiarith.c:1364:7: note: Assignment 'csym=(psnsym*)malloc(sizeof(psnsym)*(ed->nop+1))', assigned value is 0 fitsh-0.9.4/src/fiarith.c:1368:2: note: Null pointer dereference fitsh-0.9.4/src/fiarith.c:1370:2: warning: If memory allocation fails, then there is a possible null pointer dereference: csym [nullPointerOutOfMemory] fitsh-0.9.4/src/fiarith.c:1364:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiarith.c:1364:7: note: Assignment 'csym=(psnsym*)malloc(sizeof(psnsym)*(ed->nop+1))', assigned value is 0 fitsh-0.9.4/src/fiarith.c:1370:2: note: Null pointer dereference fitsh-0.9.4/src/fiarith.c:1371:2: warning: If memory allocation fails, then there is a possible null pointer dereference: csym [nullPointerOutOfMemory] fitsh-0.9.4/src/fiarith.c:1364:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiarith.c:1364:7: note: Assignment 'csym=(psnsym*)malloc(sizeof(psnsym)*(ed->nop+1))', assigned value is 0 fitsh-0.9.4/src/fiarith.c:1371:2: note: Null pointer dereference fitsh-0.9.4/src/fiarith.c:1372:2: warning: If memory allocation fails, then there is a possible null pointer dereference: csym [nullPointerOutOfMemory] fitsh-0.9.4/src/fiarith.c:1364:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiarith.c:1364:7: note: Assignment 'csym=(psnsym*)malloc(sizeof(psnsym)*(ed->nop+1))', assigned value is 0 fitsh-0.9.4/src/fiarith.c:1372:2: note: Null pointer dereference fitsh-0.9.4/src/fiarith.c:1373:2: warning: If memory allocation fails, then there is a possible null pointer dereference: csym [nullPointerOutOfMemory] fitsh-0.9.4/src/fiarith.c:1364:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiarith.c:1364:7: note: Assignment 'csym=(psnsym*)malloc(sizeof(psnsym)*(ed->nop+1))', assigned value is 0 fitsh-0.9.4/src/fiarith.c:1373:2: note: Null pointer dereference fitsh-0.9.4/src/fiarith.c:1183:4: style: Variable 'j' is reassigned a value before the old one has been used. [redundantAssignment] fitsh-0.9.4/src/fiarith.c:1182:14: note: j is assigned fitsh-0.9.4/src/fiarith.c:1183:4: note: j is overwritten fitsh-0.9.4/src/fiarith.c:1319:4: style: Variable 'i' is reassigned a value before the old one has been used. [redundantAssignment] fitsh-0.9.4/src/fiarith.c:1299:4: note: i is assigned fitsh-0.9.4/src/fiarith.c:1319:4: note: i is overwritten fitsh-0.9.4/src/fiarith.c:1158:33: style: Checking if unsigned expression 'strlen(expr)' is less than zero. [unsignedLessThanZero] fitsh-0.9.4/src/fiarith.c:1138:14: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] fitsh-0.9.4/src/fiarith.c:1180:9: style: Local variable 'j' shadows outer variable [shadowVariable] fitsh-0.9.4/src/fiarith.c:1105:9: note: Shadowed declaration fitsh-0.9.4/src/fiarith.c:1180:9: note: Shadow variable fitsh-0.9.4/src/fiarith.c:1261:9: style: Local variable 'j' shadows outer variable [shadowVariable] fitsh-0.9.4/src/fiarith.c:1105:9: note: Shadowed declaration fitsh-0.9.4/src/fiarith.c:1261:9: note: Shadow variable fitsh-0.9.4/src/fiarith.c:421:31: style: Parameter 'ed' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiarith.c:472:36: style: Parameter 'ed' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiarith.c:578:8: style: Variable 'w.im' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/fic_mpstack.c:64:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fic_mpstack.c:75:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fic_mpstack.c:124:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITSH_MAINT_EMAIL [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fic_mpstack.c:191:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fic_mpstack.c:251:2: error: Common realloc mistake: 'images' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/fic_mpstack.c:361:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] fitsh-0.9.4/src/fic_mpstack.c:336:19: note: Assuming allocation function fails fitsh-0.9.4/src/fic_mpstack.c:336:6: note: Assignment 'idx=(int*)malloc(sizeof(int)*nimage)', assigned value is 0 fitsh-0.9.4/src/fic_mpstack.c:361:3: note: Null pointer dereference fitsh-0.9.4/src/fic_mpstack.c:362:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idy [nullPointerOutOfMemory] fitsh-0.9.4/src/fic_mpstack.c:337:19: note: Assuming allocation function fails fitsh-0.9.4/src/fic_mpstack.c:337:6: note: Assignment 'idy=(int*)malloc(sizeof(int)*nimage)', assigned value is 0 fitsh-0.9.4/src/fic_mpstack.c:362:3: note: Null pointer dereference fitsh-0.9.4/src/fic_mpstack.c:365:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cxy [nullPointerOutOfMemory] fitsh-0.9.4/src/fic_mpstack.c:338:22: note: Assuming allocation function fails fitsh-0.9.4/src/fic_mpstack.c:338:6: note: Assignment 'cxy=(double*)malloc(sizeof(double)*nimage*4)', assigned value is 0 fitsh-0.9.4/src/fic_mpstack.c:365:3: note: Null pointer dereference fitsh-0.9.4/src/fic_mpstack.c:366:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cxy [nullPointerOutOfMemory] fitsh-0.9.4/src/fic_mpstack.c:338:22: note: Assuming allocation function fails fitsh-0.9.4/src/fic_mpstack.c:338:6: note: Assignment 'cxy=(double*)malloc(sizeof(double)*nimage*4)', assigned value is 0 fitsh-0.9.4/src/fic_mpstack.c:366:3: note: Null pointer dereference fitsh-0.9.4/src/fic_mpstack.c:367:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cxy [nullPointerOutOfMemory] fitsh-0.9.4/src/fic_mpstack.c:338:22: note: Assuming allocation function fails fitsh-0.9.4/src/fic_mpstack.c:338:6: note: Assignment 'cxy=(double*)malloc(sizeof(double)*nimage*4)', assigned value is 0 fitsh-0.9.4/src/fic_mpstack.c:367:3: note: Null pointer dereference fitsh-0.9.4/src/fic_mpstack.c:368:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cxy [nullPointerOutOfMemory] fitsh-0.9.4/src/fic_mpstack.c:338:22: note: Assuming allocation function fails fitsh-0.9.4/src/fic_mpstack.c:338:6: note: Assignment 'cxy=(double*)malloc(sizeof(double)*nimage*4)', assigned value is 0 fitsh-0.9.4/src/fic_mpstack.c:368:3: note: Null pointer dereference fitsh-0.9.4/src/fic_mpstack.c:183:8: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] fitsh-0.9.4/src/fic_mpstack.c:230:8: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/fic_mpstack.c:137:7: note: Shadowed declaration fitsh-0.9.4/src/fic_mpstack.c:230:8: note: Shadow variable fitsh-0.9.4/src/fic_mpstack.c:302:6: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/fic_mpstack.c:137:7: note: Shadowed declaration fitsh-0.9.4/src/fic_mpstack.c:302:6: note: Shadow variable fitsh-0.9.4/src/fic_mpstack.c:349:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/ficalib.c:56:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ficalib.c:67:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ficalib.c:341:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ficalib.c:372:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ficalib.c:504:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_ADD [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ficalib.c:667:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_ADD [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ficalib.c:761:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ficalib.c:1113:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ficalib.c:1797:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ficalib.c:595:9: style: Condition 'lp>0' is always false [knownConditionTrueFalse] fitsh-0.9.4/src/ficalib.c:585:8: note: Assignment 'lp=0', assigned value is 0 fitsh-0.9.4/src/ficalib.c:595:9: note: Condition 'lp>0' is always false fitsh-0.9.4/src/ficalib.c:1876:2: error: Memory leak: g.overscans [memleak] fitsh-0.9.4/src/ficalib.c:535:3: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:523:23: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:523:7: note: Assignment 'line=(double*)malloc(sizeof(double)*wx)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:535:3: note: Null pointer dereference fitsh-0.9.4/src/ficalib.c:562:30: warning: If memory allocation fails, then there is a possible null pointer dereference: spm [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:556:24: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:556:8: note: Assignment 'spm=(double*)malloc(sizeof(double)*sy)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:562:30: note: Null pointer dereference fitsh-0.9.4/src/ficalib.c:593:3: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:581:23: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:581:7: note: Assignment 'line=(double*)malloc(sizeof(double)*wy)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:593:3: note: Null pointer dereference fitsh-0.9.4/src/ficalib.c:601:5: warning: If memory allocation fails, then there is a possible null pointer dereference: spw [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:579:23: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:579:7: note: Assignment 'spw=(double*)malloc(sizeof(double)*sx)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:601:5: note: Null pointer dereference fitsh-0.9.4/src/ficalib.c:602:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spy [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:580:23: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:580:7: note: Assignment 'spy=(double*)malloc(sizeof(double)*sx)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:602:3: note: Null pointer dereference fitsh-0.9.4/src/ficalib.c:619:30: warning: If memory allocation fails, then there is a possible null pointer dereference: spm [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:613:24: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:613:8: note: Assignment 'spm=(double*)malloc(sizeof(double)*sx)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:619:30: note: Null pointer dereference fitsh-0.9.4/src/ficalib.c:1092:6: warning: If memory allocation fails, then there is a possible null pointer dereference: arr [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1089:22: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1089:6: note: Assignment 'arr=(double*)malloc(sizeof(double)*sx)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1092:6: note: Null pointer dereference fitsh-0.9.4/src/ficalib.c:1439:12: warning: If memory allocation fails, then there is a possible null pointer dereference: p1 [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1438:11: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1438:11: note: Assignment 'p1=strdup(to)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1439:12: note: Null pointer dereference fitsh-0.9.4/src/ficalib.c:1523:14: warning: If memory allocation fails, then there is a possible null pointer dereference: wms [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1521:12: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1521:12: note: Assignment 'wms=strdup(mstr)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1523:14: note: Null pointer dereference fitsh-0.9.4/src/ficalib.c:1524:10: warning: If memory allocation fails, then there is a possible null pointer dereference: wms [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1521:12: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1521:12: note: Assignment 'wms=strdup(mstr)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1524:10: note: Null pointer dereference fitsh-0.9.4/src/ficalib.c:1531:18: warning: If memory allocation fails, then there is a possible null pointer dereference: wms [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1521:12: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1521:12: note: Assignment 'wms=strdup(mstr)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1531:18: note: Null pointer dereference fitsh-0.9.4/src/ficalib.c:1532:10: warning: If memory allocation fails, then there is a possible null pointer dereference: wms [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1521:12: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1521:12: note: Assignment 'wms=strdup(mstr)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1532:10: note: Null pointer dereference fitsh-0.9.4/src/ficalib.c:1926:11: warning: If memory allocation fails, then there is a possible null pointer dereference: from [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1925:25: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1925:11: note: Assignment 'from=(char*)malloc(flen+1)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1926:11: note: Null pointer dereference fitsh-0.9.4/src/ficalib.c:1927:4: warning: If memory allocation fails, then there is a possible null pointer dereference: from [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1925:25: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1925:11: note: Assignment 'from=(char*)malloc(flen+1)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1927:4: note: Null pointer dereference fitsh-0.9.4/src/ficalib.c:1933:5: warning: If memory allocation fails, then there is a possible null pointer dereference: newlist [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1931:25: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1931:10: note: Assignment 'newlist=(char**)malloc(sizeof(char*)*(ninimg+1))', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1933:5: note: Null pointer dereference fitsh-0.9.4/src/ficalib.c:1934:8: warning: If memory allocation fails, then there is a possible null pointer dereference: newlist [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1931:25: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1931:10: note: Assignment 'newlist=(char**)malloc(sizeof(char*)*(ninimg+1))', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1934:8: note: Null pointer dereference fitsh-0.9.4/src/ficalib.c:1490:42: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] fitsh-0.9.4/src/ficalib.c:1789:19: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] fitsh-0.9.4/src/ficalib.c:1850:30: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] fitsh-0.9.4/src/ficalib.c:862:7: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/ficalib.c:839:13: note: Shadowed declaration fitsh-0.9.4/src/ficalib.c:862:7: note: Shadow variable fitsh-0.9.4/src/ficalib.c:1067:18: style: Local variable 'm' shadows outer argument [shadowArgument] fitsh-0.9.4/src/ficalib.c:832:22: note: Shadowed declaration fitsh-0.9.4/src/ficalib.c:1067:18: note: Shadow variable fitsh-0.9.4/src/ficalib.c:1183:9: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/ficalib.c:839:13: note: Shadowed declaration fitsh-0.9.4/src/ficalib.c:1183:9: note: Shadow variable fitsh-0.9.4/src/ficalib.c:2003:9: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/ficalib.c:1675:8: note: Shadowed declaration fitsh-0.9.4/src/ficalib.c:2003:9: note: Shadow variable fitsh-0.9.4/src/ficalib.c:382:35: style: Parameter 'spy' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/ficalib.c:483:20: style: Variable 'type' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/ficalib.c:631:26: style: Parameter 'area' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/ficalib.c:631:37: style: Parameter 'o' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/ficalib.c:643:58: style: Parameter 'area' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/ficalib.c:754:70: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/ficalib.c:758:14: style: Variable 'hd' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/ficalib.c:832:80: style: Parameter 'fdp' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/ficalib.c:1381:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/ficalib.c:1452:40: style: Parameter 'imgarea' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/ficalib.c:1515:37: style: Parameter 'mstr' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/ficalib.c:306:6: style: struct member 'calibdata::is_calc_gainpoly' is never used. [unusedStructMember] fitsh-0.9.4/src/ficalib.c:502:3: style: Variable 'l' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/ficombine.c:42:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ficombine.c:53:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ficombine.c:247:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ficombine.c:239:20: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] fitsh-0.9.4/src/ficonv.c:51:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ficonv.c:62:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ficonv.c:526:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ficonv.c:810:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ficonv.c:190:17: warning: If memory allocation fails, then there is a possible null pointer dereference: coeff [nullPointerOutOfMemory] fitsh-0.9.4/src/ficonv.c:1010:25: note: Assuming allocation function fails fitsh-0.9.4/src/ficonv.c:1010:9: note: Assignment 'coeff=(double*)malloc(sizeof(double)*2*(psx+1)*(psy+1))', assigned value is 0 fitsh-0.9.4/src/ficonv.c:1013:66: note: Calling function 'affine_img_transformation_spline_eval', 5th argument 'coeff' value is 0 fitsh-0.9.4/src/ficonv.c:190:17: note: Null pointer dereference fitsh-0.9.4/src/ficonv.c:191:15: warning: If memory allocation fails, then there is a possible null pointer dereference: coeff [nullPointerOutOfMemory] fitsh-0.9.4/src/ficonv.c:1010:25: note: Assuming allocation function fails fitsh-0.9.4/src/ficonv.c:1010:9: note: Assignment 'coeff=(double*)malloc(sizeof(double)*2*(psx+1)*(psy+1))', assigned value is 0 fitsh-0.9.4/src/ficonv.c:1013:66: note: Calling function 'affine_img_transformation_spline_eval', 5th argument 'coeff' value is 0 fitsh-0.9.4/src/ficonv.c:191:15: note: Null pointer dereference fitsh-0.9.4/src/ficonv.c:802:8: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] fitsh-0.9.4/src/ficonv.c:428:11: style: Local variable 'k' shadows outer variable [shadowVariable] fitsh-0.9.4/src/ficonv.c:410:20: note: Shadowed declaration fitsh-0.9.4/src/ficonv.c:428:11: note: Shadow variable fitsh-0.9.4/src/ficonv.c:508:8: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/ficonv.c:471:12: note: Shadowed declaration fitsh-0.9.4/src/ficonv.c:508:8: note: Shadow variable fitsh-0.9.4/src/ficonv.c:1140:9: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/ficonv.c:745:7: note: Shadowed declaration fitsh-0.9.4/src/ficonv.c:1140:9: note: Shadow variable fitsh-0.9.4/src/ficonv.c:176:92: style: Parameter 'coeff' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/ficonv.c:390:31: style: Parameter 'img' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/ficonv.c:550:32: style: Parameter 'stamparg' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiheader.c:67:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiheader.c:78:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiheader.c:93:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VINT [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiheader.c:215:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable header [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiheader.c:420:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiheader.c:480:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiheader.c:517:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiheader.c:696:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiheader.c:331:7: warning: Either the condition 'lk<80' is redundant or the array 'sk[16]' is accessed at index 79, which is out of bounds. [arrayIndexOutOfBoundsCond] fitsh-0.9.4/src/fiheader.c:330:41: note: Assuming that condition 'lk<80' is not redundant fitsh-0.9.4/src/fiheader.c:331:7: note: Array index out of bounds fitsh-0.9.4/src/fiheader.c:332:4: warning: Either the condition 'lk<80' is redundant or the array 'sk[16]' is accessed at index 80, which is out of bounds. [arrayIndexOutOfBoundsCond] fitsh-0.9.4/src/fiheader.c:330:41: note: Assuming that condition 'lk<80' is not redundant fitsh-0.9.4/src/fiheader.c:332:4: note: Array index out of bounds fitsh-0.9.4/src/fiheader.c:718:17: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] fitsh-0.9.4/src/fiheader.c:353:38: style: Condition '*p==0' is always false [knownConditionTrueFalse] fitsh-0.9.4/src/fiheader.c:380:2: error: Common realloc mistake: 'alters' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/fiheader.c:737:2: warning: If memory allocation fails, then there is a possible null pointer dereference: format [nullPointerOutOfMemory] fitsh-0.9.4/src/fiheader.c:713:22: note: Assuming allocation function fails fitsh-0.9.4/src/fiheader.c:713:9: note: Assignment 'format=(int*)malloc(8*sizeof(int))', assigned value is 0 fitsh-0.9.4/src/fiheader.c:737:2: note: Null pointer dereference fitsh-0.9.4/src/fiheader.c:688:18: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] fitsh-0.9.4/src/fiheader.c:210:9: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/fiheader.c:199:7: note: Shadowed declaration fitsh-0.9.4/src/fiheader.c:210:9: note: Shadow variable fitsh-0.9.4/src/fiheader.c:241:9: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/fiheader.c:199:7: note: Shadowed declaration fitsh-0.9.4/src/fiheader.c:241:9: note: Shadow variable fitsh-0.9.4/src/fiheader.c:712:6: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/fiheader.c:650:7: note: Shadowed declaration fitsh-0.9.4/src/fiheader.c:712:6: note: Shadow variable fitsh-0.9.4/src/fiheader.c:91:46: style: Parameter 'hdr' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiheader.c:109:45: style: Parameter 'sfbuff' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiheader.c:109:58: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiheader.c:109:69: style: Parameter 'keyw' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiheader.c:109:79: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiheader.c:147:27: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiheader.c:195:49: style: Parameter 'extension' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiheader.c:217:17: style: Variable 'fh' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/fiheader.c:279:37: style: Parameter 'kw' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiheader.c:282:8: style: Variable 'rk' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/fiheader.c:293:28: style: Parameter 'act' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiheader.c:755:8: style: Variable 'mxflen' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/fiign.c:66:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiign.c:77:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiign.c:461:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiign.c:498:5: error: Common realloc mistake: 'mcls' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/fiign.c:508:6: error: Common realloc mistake: 'mcls' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/fiign.c:453:19: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] fitsh-0.9.4/src/fiign.c:475:7: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/fiign.c:393:7: note: Shadowed declaration fitsh-0.9.4/src/fiign.c:475:7: note: Shadow variable fitsh-0.9.4/src/fiign.c:615:18: style: Variable 'wm' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/fiign.c:52:8: style: struct member 'maskblock::x0' is never used. [unusedStructMember] fitsh-0.9.4/src/fiign.c:52:11: style: struct member 'maskblock::y0' is never used. [unusedStructMember] fitsh-0.9.4/src/fiign.c:54:6: style: struct member 'maskblock::mask' is never used. [unusedStructMember] fitsh-0.9.4/src/fiinfo-image.c:188:7: warning: If memory allocation fails, then there is a possible null pointer dereference: rawdata [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-image.c:348:25: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-image.c:348:9: note: Assignment 'rdata=(double*)malloc(sizeof(double)*tn)', assigned value is 0 fitsh-0.9.4/src/fiinfo-image.c:354:30: note: Calling function 'fits_stat_raw_sky_skysigma', 1st argument 'rdata' value is 0 fitsh-0.9.4/src/fiinfo-image.c:214:30: note: Calling function 'estimate_skysigma_naive', 1st argument 'data' value is 0 fitsh-0.9.4/src/fiinfo-image.c:188:7: note: Null pointer dereference fitsh-0.9.4/src/fiinfo-image.c:222:30: warning: If memory allocation fails, then there is a possible null pointer dereference: histo [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-image.c:221:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-image.c:221:8: note: Assignment 'histo=(double*)malloc(sizeof(double)*nhist)', assigned value is 0 fitsh-0.9.4/src/fiinfo-image.c:222:30: note: Null pointer dereference fitsh-0.9.4/src/fiinfo-image.c:225:7: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-image.c:348:25: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-image.c:348:9: note: Assignment 'rdata=(double*)malloc(sizeof(double)*tn)', assigned value is 0 fitsh-0.9.4/src/fiinfo-image.c:354:30: note: Calling function 'fits_stat_raw_sky_skysigma', 1st argument 'rdata' value is 0 fitsh-0.9.4/src/fiinfo-image.c:225:7: note: Null pointer dereference fitsh-0.9.4/src/fiinfo-image.c:300:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rawdata [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-image.c:297:26: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-image.c:297:10: note: Assignment 'rawdata=(double*)malloc(sizeof(double)*sx*sy)', assigned value is 0 fitsh-0.9.4/src/fiinfo-image.c:300:5: note: Null pointer dereference fitsh-0.9.4/src/fiinfo-image.c:323:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rawdata [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-image.c:320:26: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-image.c:320:10: note: Assignment 'rawdata=(double*)malloc(sizeof(double)*sx*sy)', assigned value is 0 fitsh-0.9.4/src/fiinfo-image.c:323:5: note: Null pointer dereference fitsh-0.9.4/src/fiinfo-image.c:351:7: warning: If memory allocation fails, then there is a possible null pointer dereference: rdata [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-image.c:348:25: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-image.c:348:9: note: Assignment 'rdata=(double*)malloc(sizeof(double)*tn)', assigned value is 0 fitsh-0.9.4/src/fiinfo-image.c:351:7: note: Null pointer dereference fitsh-0.9.4/src/fiinfo-image.c:382:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rawdata [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-image.c:379:26: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-image.c:379:10: note: Assignment 'rawdata=(double*)malloc(sizeof(double)*sx*sy)', assigned value is 0 fitsh-0.9.4/src/fiinfo-image.c:382:5: note: Null pointer dereference fitsh-0.9.4/src/fiinfo-image.c:388:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rawdata [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-image.c:379:26: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-image.c:379:10: note: Assignment 'rawdata=(double*)malloc(sizeof(double)*sx*sy)', assigned value is 0 fitsh-0.9.4/src/fiinfo-image.c:388:5: note: Null pointer dereference fitsh-0.9.4/src/fiinfo-image.c:153:9: style: Local variable 'mean' shadows outer function [shadowFunction] fitsh-0.9.4/src/statistics.h:17:8: note: Shadowed declaration fitsh-0.9.4/src/fiinfo-image.c:153:9: note: Shadow variable fitsh-0.9.4/src/fiinfo-image.c:181:40: style: Parameter 'rawdata' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiinfo-image.c:262:3: style: Variable 'i' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/fiinfo-pnm.c:417:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiinfo-pnm.c:362:2: error: Common realloc mistake: 'pal' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/fiinfo-pnm.c:151:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:151:3: note: Null pointer dereference fitsh-0.9.4/src/fiinfo-pnm.c:152:8: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:152:8: note: Null pointer dereference fitsh-0.9.4/src/fiinfo-pnm.c:153:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:153:3: note: Null pointer dereference fitsh-0.9.4/src/fiinfo-pnm.c:154:5: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:154:5: note: Null pointer dereference fitsh-0.9.4/src/fiinfo-pnm.c:155:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:155:3: note: Null pointer dereference fitsh-0.9.4/src/fiinfo-pnm.c:161:7: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:161:7: note: Null pointer dereference fitsh-0.9.4/src/fiinfo-pnm.c:163:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:163:3: note: Null pointer dereference fitsh-0.9.4/src/fiinfo-pnm.c:164:7: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:164:7: note: Null pointer dereference fitsh-0.9.4/src/fiinfo-pnm.c:168:9: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:168:9: note: Null pointer dereference fitsh-0.9.4/src/fiinfo-pnm.c:169:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:169:3: note: Null pointer dereference fitsh-0.9.4/src/fiinfo-pnm.c:144:19: style: Local variable 'w' shadows outer variable [shadowVariable] fitsh-0.9.4/src/fiinfo-pnm.c:54:31: note: Shadowed declaration fitsh-0.9.4/src/fiinfo-pnm.c:144:19: note: Shadow variable fitsh-0.9.4/src/fiinfo-pnm.c:336:25: style: Parameter 'pstr' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiinfo.c:49:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiinfo.c:60:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiinfo.c:639:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable colindex [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiinfo.c:671:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable repeat [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiinfo.c:773:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable format [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiinfo.c:793:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable repeat [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiinfo.c:839:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable header [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiinfo.c:935:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiinfo.c:375:2: error: Common realloc mistake: 'dats' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/fiinfo.c:448:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rawdata [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo.c:445:26: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo.c:445:10: note: Assignment 'rawdata=(double*)malloc(sizeof(double)*(nbx*nby))', assigned value is 0 fitsh-0.9.4/src/fiinfo.c:448:3: note: Null pointer dereference fitsh-0.9.4/src/fiinfo.c:453:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rawdata [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo.c:445:26: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo.c:445:10: note: Assignment 'rawdata=(double*)malloc(sizeof(double)*(nbx*nby))', assigned value is 0 fitsh-0.9.4/src/fiinfo.c:453:3: note: Null pointer dereference fitsh-0.9.4/src/fiinfo.c:699:27: portability: Casting between unsigned char * and float * which have an incompatible binary data representation. [invalidPointerCast] fitsh-0.9.4/src/fiinfo.c:702:28: portability: Casting between unsigned char * and double * which have an incompatible binary data representation. [invalidPointerCast] fitsh-0.9.4/src/fiinfo.c:705:34: portability: Casting between unsigned char * and float * which have an incompatible binary data representation. [invalidPointerCast] fitsh-0.9.4/src/fiinfo.c:708:36: portability: Casting between unsigned char * and double * which have an incompatible binary data representation. [invalidPointerCast] fitsh-0.9.4/src/fiinfo.c:927:17: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] fitsh-0.9.4/src/fiinfo.c:977:31: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] fitsh-0.9.4/src/fiinfo.c:1028:33: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] fitsh-0.9.4/src/fiinfo.c:398:18: style: Local variable 'mean' shadows outer function [shadowFunction] fitsh-0.9.4/src/statistics.h:17:8: note: Shadowed declaration fitsh-0.9.4/src/fiinfo.c:398:18: note: Shadow variable fitsh-0.9.4/src/fiinfo.c:424:6: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/fiinfo.c:396:7: note: Shadowed declaration fitsh-0.9.4/src/fiinfo.c:424:6: note: Shadow variable fitsh-0.9.4/src/fiinfo.c:424:8: style: Local variable 'j' shadows outer variable [shadowVariable] fitsh-0.9.4/src/fiinfo.c:396:9: note: Shadowed declaration fitsh-0.9.4/src/fiinfo.c:424:8: note: Shadow variable fitsh-0.9.4/src/fiinfo.c:1121:7: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/fiinfo.c:870:7: note: Shadowed declaration fitsh-0.9.4/src/fiinfo.c:1121:7: note: Shadow variable fitsh-0.9.4/src/fiinfo.c:1121:9: style: Local variable 'j' shadows outer variable [shadowVariable] fitsh-0.9.4/src/fiinfo.c:870:9: note: Shadowed declaration fitsh-0.9.4/src/fiinfo.c:1121:9: note: Shadow variable fitsh-0.9.4/src/fiinfo.c:282:24: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiinfo.c:626:17: style: Variable 'line' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/fiinfo.c:657:23: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/fiinfo.c:767:17: style: Variable 'format' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/fiinfo.c:786:35: style: Variable 'cname' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/fiinfo.c:838:17: style: Variable 'fh' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/fiphot-io.c:206:3: error: Common realloc mistake: 'inaps' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/fiphot-io.c:249:2: error: Common realloc mistake: 'ps' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/fiphot-io.c:308:2: error: Common realloc mistake: 'ps' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/fiphot-io.c:793:3: error: Common realloc mistake: 'colap' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/fiphot-io.c:837:5: error: Common realloc mistake: 'inaps' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/fiphot-io.c:44:5: warning: If memory allocation fails, then there is a possible null pointer dereference: poly [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:42:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:42:7: note: Assignment 'poly=(double*)malloc(sizeof(double)*2*nvertex)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:44:5: note: Null pointer dereference fitsh-0.9.4/src/fiphot-io.c:45:2: warning: If memory allocation fails, then there is a possible null pointer dereference: poly [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:42:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:42:7: note: Assignment 'poly=(double*)malloc(sizeof(double)*2*nvertex)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:45:2: note: Null pointer dereference fitsh-0.9.4/src/fiphot-io.c:65:5: warning: If memory allocation fails, then there is a possible null pointer dereference: poly [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:63:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:63:7: note: Assignment 'poly=(double*)malloc(sizeof(double)*2*nvertex)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:65:5: note: Null pointer dereference fitsh-0.9.4/src/fiphot-io.c:66:2: warning: If memory allocation fails, then there is a possible null pointer dereference: poly [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:63:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:63:7: note: Assignment 'poly=(double*)malloc(sizeof(double)*2*nvertex)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:66:2: note: Null pointer dereference fitsh-0.9.4/src/fiphot-io.c:335:3: warning: If memory allocation fails, then there is a possible null pointer dereference: inaps [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:327:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:327:8: note: Assignment 'inaps=(struct apgeom*)malloc(sizeof(struct apgeom)*n)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:335:3: note: Null pointer dereference fitsh-0.9.4/src/fiphot-io.c:342:33: warning: If memory allocation fails, then there is a possible null pointer dereference: rfflux [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:339:27: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:339:9: note: Assignment 'rfflux=(struct photflux*)malloc(sizeof(struct photflux)*n)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:342:33: note: Null pointer dereference fitsh-0.9.4/src/fiphot-io.c:343:33: warning: If memory allocation fails, then there is a possible null pointer dereference: rfflux [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:339:27: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:339:9: note: Assignment 'rfflux=(struct photflux*)malloc(sizeof(struct photflux)*n)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:343:33: note: Null pointer dereference fitsh-0.9.4/src/fiphot-io.c:353:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rfflux [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:339:27: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:339:9: note: Assignment 'rfflux=(struct photflux*)malloc(sizeof(struct photflux)*n)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:353:3: note: Null pointer dereference fitsh-0.9.4/src/fiphot-io.c:354:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rfflux [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:339:27: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:339:9: note: Assignment 'rfflux=(struct photflux*)malloc(sizeof(struct photflux)*n)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:354:3: note: Null pointer dereference fitsh-0.9.4/src/fiphot-io.c:355:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rfflux [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:339:27: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:339:9: note: Assignment 'rfflux=(struct photflux*)malloc(sizeof(struct photflux)*n)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:355:3: note: Null pointer dereference fitsh-0.9.4/src/fiphot-io.c:356:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rfflux [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:339:27: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:339:9: note: Assignment 'rfflux=(struct photflux*)malloc(sizeof(struct photflux)*n)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:356:3: note: Null pointer dereference fitsh-0.9.4/src/fiphot-io.c:357:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rfflux [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:339:27: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:339:9: note: Assignment 'rfflux=(struct photflux*)malloc(sizeof(struct photflux)*n)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:357:3: note: Null pointer dereference fitsh-0.9.4/src/fiphot-io.c:783:2: warning: If memory allocation fails, then there is a possible null pointer dereference: colap [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:782:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:782:11: note: Assignment 'colap=(int*)malloc(sizeof(int)*1)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:783:2: note: Null pointer dereference fitsh-0.9.4/src/fiphot-io.c:801:2: warning: Possible null pointer dereference: colap [nullPointer] fitsh-0.9.4/src/fiphot-io.c:779:8: note: Assignment 'colap=NULL', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:789:15: note: Assuming condition is false fitsh-0.9.4/src/fiphot-io.c:801:2: note: Null pointer dereference fitsh-0.9.4/src/fiphot-io.c:826:14: warning: If memory allocation fails, then there is a possible null pointer dereference: ap [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:824:11: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:824:11: note: Assignment 'ap=strdup(appar)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:826:14: note: Null pointer dereference fitsh-0.9.4/src/fiphot-io.c:827:10: warning: If memory allocation fails, then there is a possible null pointer dereference: ap [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:824:11: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:824:11: note: Assignment 'ap=strdup(appar)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:827:10: note: Null pointer dereference fitsh-0.9.4/src/fiphot-io.c:168:24: style: Variable 'id' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/fiphot-io.c:280:21: style: Variable 'id' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/fiphot-io.c:378:40: style: Parameter 'ps' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiphot-io.c:420:47: style: Parameter 'pf' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiphot-io.c:455:24: style: Parameter 'nanstring' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiphot-io.c:455:40: style: Parameter 'serialstring' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiphot-io.c:674:12: style: Variable 'pf' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/fiphot-io.c:730:15: style: Variable 'achr' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/fiphot-io.c:773:32: style: Parameter 'apcolpar' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiphot-io.c:809:32: style: Parameter 'appar' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/fiphot.c:55:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiphot.c:66:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiphot.c:1685:81: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VSTR [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiphot.c:1844:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/fiphot.c:1843:19: style: Condition 'is_help<0' is always false [knownConditionTrueFalse] fitsh-0.9.4/src/fiphot.c:1753:32: note: Assignment 'is_help=0', assigned value is 0 fitsh-0.9.4/src/fiphot.c:1843:19: note: Condition 'is_help<0' is always false fitsh-0.9.4/src/fiphot.c:1847:13: style: Condition '1nbit)', assigned value is 0 fitsh-0.9.4/src/index/multiindex.c:279:11: note: Null pointer dereference fitsh-0.9.4/src/index/multiindex.c:280:6: warning: If memory allocation fails, then there is a possible null pointer dereference: nis [nullPointerOutOfMemory] fitsh-0.9.4/src/index/multiindex.c:272:28: note: Assuming allocation function fails fitsh-0.9.4/src/index/multiindex.c:272:6: note: Assignment 'nis=(struct nodeinterval*)malloc(sizeof(struct nodeinterval)*2*mi->nbit)', assigned value is 0 fitsh-0.9.4/src/index/multiindex.c:280:6: note: Null pointer dereference fitsh-0.9.4/src/index/multiindex.c:281:6: warning: If memory allocation fails, then there is a possible null pointer dereference: nis [nullPointerOutOfMemory] fitsh-0.9.4/src/index/multiindex.c:272:28: note: Assuming allocation function fails fitsh-0.9.4/src/index/multiindex.c:272:6: note: Assignment 'nis=(struct nodeinterval*)malloc(sizeof(struct nodeinterval)*2*mi->nbit)', assigned value is 0 fitsh-0.9.4/src/index/multiindex.c:281:6: note: Null pointer dereference fitsh-0.9.4/src/index/multiindex.c:55:36: style:inconclusive: Function 'index_quicksort' argument 2 names different: declaration 'n' definition 'size'. [funcArgNamesDifferent] fitsh-0.9.4/src/index/multiindex.h:33:36: note: Function 'index_quicksort' argument 2 names different: declaration 'n' definition 'size'. fitsh-0.9.4/src/index/multiindex.c:55:36: note: Function 'index_quicksort' argument 2 names different: declaration 'n' definition 'size'. fitsh-0.9.4/src/index/multiindex.c:63:34: style:inconclusive: Function 'index_subsort' argument 6 names different: declaration 'arr' definition 'param'. [funcArgNamesDifferent] fitsh-0.9.4/src/index/multiindex.h:47:35: note: Function 'index_subsort' argument 6 names different: declaration 'arr' definition 'param'. fitsh-0.9.4/src/index/multiindex.c:63:34: note: Function 'index_subsort' argument 6 names different: declaration 'arr' definition 'param'. fitsh-0.9.4/src/index/multiindex.c:84:32: style:inconclusive: Function 'check_if_in_interval' argument 1 names different: declaration 'arr' definition 'param'. [funcArgNamesDifferent] fitsh-0.9.4/src/index/multiindex.h:36:32: note: Function 'check_if_in_interval' argument 1 names different: declaration 'arr' definition 'param'. fitsh-0.9.4/src/index/multiindex.c:84:32: note: Function 'check_if_in_interval' argument 1 names different: declaration 'arr' definition 'param'. fitsh-0.9.4/src/index/multiindex.c:95:35: style:inconclusive: Function 'search_index_boundaries' argument 1 names different: declaration 'arr' definition 'param'. [funcArgNamesDifferent] fitsh-0.9.4/src/index/multiindex.h:39:35: note: Function 'search_index_boundaries' argument 1 names different: declaration 'arr' definition 'param'. fitsh-0.9.4/src/index/multiindex.c:95:35: note: Function 'search_index_boundaries' argument 1 names different: declaration 'arr' definition 'param'. fitsh-0.9.4/src/index/multiindex.c:97:10: style: Parameter 'rx0' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/index/multiindex.c:98:10: style: Parameter 'rx1' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/io/format.c:65:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/io/format.c:167:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/io/format.c:59:47: style: Parameter 'len' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/io/format.c:103:50: style: Parameter 'fchars' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/io/format.c:127:85: style: Parameter 'vs' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/io/iof.c:62:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/io/iof.c:81:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/io/iof.c:103:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/io/iof.c:111:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/io/iof.c:119:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/io/iof.c:125:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/io/iof.c:61:9: error: Common realloc mistake: 'ret' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/io/iof.c:100:23: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/io/iof.c:108:24: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/io/scanarg.c:381:19: style: Redundant condition: narg>0. 'narg<=0 || (narg>0 && l0. 'narg<=0 || (narg>0 && l0. 'narg<=0 || (narg>0 && lcols[k].name)' is less than zero. [unsignedLessThanZero] fitsh-0.9.4/src/lfit.c:7184:62: style: Checking if unsigned expression 'strlen(db->cols[l].name)' is less than zero. [unsignedLessThanZero] fitsh-0.9.4/src/lfit.c:7275:60: style: Checking if unsigned expression 'strlen(db->cols[k].name)' is less than zero. [unsignedLessThanZero] fitsh-0.9.4/src/lfit.c:7286:61: style: Checking if unsigned expression 'strlen(db->cols[l].name)' is less than zero. [unsignedLessThanZero] fitsh-0.9.4/src/lfit.c:6780:47: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] fitsh-0.9.4/src/lfit.c:364:8: style: Local variable 'w' shadows outer argument [shadowArgument] fitsh-0.9.4/src/lfit.c:353:61: note: Shadowed declaration fitsh-0.9.4/src/lfit.c:364:8: note: Shadow variable fitsh-0.9.4/src/lfit.c:1246:13: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/lfit.c:1093:7: note: Shadowed declaration fitsh-0.9.4/src/lfit.c:1246:13: note: Shadow variable fitsh-0.9.4/src/lfit.c:1601:14: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/lfit.c:1501:6: note: Shadowed declaration fitsh-0.9.4/src/lfit.c:1601:14: note: Shadow variable fitsh-0.9.4/src/lfit.c:4452:7: style: Local variable 'j' shadows outer variable [shadowVariable] fitsh-0.9.4/src/lfit.c:4144:9: note: Shadowed declaration fitsh-0.9.4/src/lfit.c:4452:7: note: Shadow variable fitsh-0.9.4/src/lfit.c:4452:9: style: Local variable 'n' shadows outer variable [shadowVariable] fitsh-0.9.4/src/lfit.c:4144:11: note: Shadowed declaration fitsh-0.9.4/src/lfit.c:4452:9: note: Shadow variable fitsh-0.9.4/src/lfit.c:4767:15: style: Local variable 'n' shadows outer variable [shadowVariable] fitsh-0.9.4/src/lfit.c:4630:11: note: Shadowed declaration fitsh-0.9.4/src/lfit.c:4767:15: note: Shadow variable fitsh-0.9.4/src/lfit.c:4938:7: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/lfit.c:4877:7: note: Shadowed declaration fitsh-0.9.4/src/lfit.c:4938:7: note: Shadow variable fitsh-0.9.4/src/lfit.c:5704:7: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/lfit.c:5691:16: note: Shadowed declaration fitsh-0.9.4/src/lfit.c:5704:7: note: Shadow variable fitsh-0.9.4/src/lfit.c:5954:19: style: Local variable 'cstr' shadows outer variable [shadowVariable] fitsh-0.9.4/src/lfit.c:5931:14: note: Shadowed declaration fitsh-0.9.4/src/lfit.c:5954:19: note: Shadow variable fitsh-0.9.4/src/lfit.c:6033:10: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/lfit.c:5918:7: note: Shadowed declaration fitsh-0.9.4/src/lfit.c:6033:10: note: Shadow variable fitsh-0.9.4/src/lfit.c:6033:12: style: Local variable 'j' shadows outer variable [shadowVariable] fitsh-0.9.4/src/lfit.c:5918:9: note: Shadowed declaration fitsh-0.9.4/src/lfit.c:6033:12: note: Shadow variable fitsh-0.9.4/src/lfit.c:7018:10: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/lfit.c:6489:7: note: Shadowed declaration fitsh-0.9.4/src/lfit.c:7018:10: note: Shadow variable fitsh-0.9.4/src/lfit.c:7048:10: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/lfit.c:6489:7: note: Shadowed declaration fitsh-0.9.4/src/lfit.c:7048:10: note: Shadow variable fitsh-0.9.4/src/lfit.c:7138:10: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/lfit.c:6489:7: note: Shadowed declaration fitsh-0.9.4/src/lfit.c:7138:10: note: Shadow variable fitsh-0.9.4/src/lfit.c:7491:7: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/lfit.c:6489:7: note: Shadowed declaration fitsh-0.9.4/src/lfit.c:7491:7: note: Shadow variable fitsh-0.9.4/src/lfit.c:7611:7: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/lfit.c:6489:7: note: Shadowed declaration fitsh-0.9.4/src/lfit.c:7611:7: note: Shadow variable fitsh-0.9.4/src/lfit.c:168:35: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:168:48: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:353:77: style: Parameter 'desc' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:394:66: style: Parameter 'pl' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:522:58: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:932:60: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:934:8: style: Variable 'wkey' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:950:55: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:1040:30: style: Parameter 'cvector' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:1069:16: style: Variable 'w' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:1089:41: style: Parameter 'chain' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:1090:25: style: Parameter 'vars' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:1272:34: style: Parameter 'bvector' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:1272:52: style: Parameter 'vars' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:1283:35: style: Parameter 'bvector' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:1283:54: style: Parameter 'vars' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:1295:39: style: Parameter 'bvector' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:1296:12: style: Parameter 'vars' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:1316:8: style: Variable 'format' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:1333:8: style: Variable 'format' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:1358:8: style: Variable 'format' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:1375:8: style: Variable 'format' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:1394:35: style: Parameter 'a' can be declared as pointer to const. However it seems that 'fit_function' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fitsh-0.9.4/src/lfit.c:4010:4: note: You might need to cast the function pointer here fitsh-0.9.4/src/lfit.c:1394:35: note: Parameter 'a' can be declared as pointer to const fitsh-0.9.4/src/lfit.c:1442:56: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:1443:16: style: Parameter 'idxs' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:1498:10: style: Parameter 'fitwght' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:1498:26: style: Parameter 'fitdep' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:1498:46: style: Parameter 'fitinputrows' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:1680:59: style: Parameter 'cols' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:2380:49: style: Parameter 'fitdep' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:2380:64: style: Parameter 'fitwght' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:2386:15: style: Variable 'fir' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:2436:15: style: Variable 'fir' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:2549:45: style: Parameter 'fitdep' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:2549:60: style: Parameter 'fitwght' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:2555:15: style: Variable 'fir' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:2599:74: style: Parameter 'fitwght' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:2715:52: style: Parameter 'fitdep' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:2742:44: style: Parameter 'fiteval' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:2745:15: style: Variable 'fir' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:2747:13: style: Variable 'db' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:2761:44: style: Parameter 'fiteval' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:2765:15: style: Variable 'fir' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:2801:19: style: Parameter 'bvector' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:2867:12: style: Variable 'fp' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:3597:34: style: Parameter 'vars' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:4062:56: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:4120:39: style: Parameter 'arr' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:4157:12: style: Variable 'fp' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:4487:11: style: Variable 'fstr' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:4641:12: style: Variable 'fp' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:4752:11: style: Variable 'fstr' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:4987:31: style: Parameter 'colouts' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:4988:12: style: Parameter 'exprs' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:5110:34: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:5291:24: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:5305:36: style: Parameter 'formatstr' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:5361:40: style: Parameter 'vardiffstr' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:5403:36: style: Parameter 'formatstr' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:5522:31: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:5549:58: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:5667:50: style: Parameter 'll' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:5676:42: style: Parameter 'll' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:5914:55: style: Parameter 'cntstr' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:6326:42: style: Parameter 'imacro' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:6407:47: style: Parameter 'fc' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/lfit.c:6409:20: style: Variable 'p' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:6477:36: style: Parameter 'stack' can be declared as pointer to const. However it seems that 'f_lfitfunction_generic' is a callback function, if 'stack' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fitsh-0.9.4/src/lfit.c:7050:64: note: You might need to cast the function pointer here fitsh-0.9.4/src/lfit.c:6477:36: note: Parameter 'stack' can be declared as pointer to const fitsh-0.9.4/src/lfit.c:6943:16: style: Variable 'lff' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:7139:19: style: Variable 'arg2' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/lfit.c:1675:4: style: Variable 'ln' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/lfit.c:3038:18: style: Variable 'is_not_accepted' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/lfit.c:3211:7: style: Variable 'ngrid' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/lfit.c:3215:8: style: Variable 'ngrid' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/lfit.c:4447:19: style: Variable 'is_not_accepted' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/lfit.c:5848:4: style: Variable 'j' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/lfit.c:6191:3: style: Variable 'r' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/lfit.c:6192:3: style: Variable 'r' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/lfit.c:6193:3: style: Variable 'r' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/lfit.c:6415:7: style: Variable 'list' is allocated memory that is never used. [unusedAllocatedMemory] fitsh-0.9.4/src/lfit.c:7740:7: style: Variable 'nldyn' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/linear.c:29:34: style: Parameter 'vars' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/linear.c:29:47: style: Parameter 'idvs' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/link/floodfill.c:111:13: warning: If memory allocation fails, then there is a possible null pointer dereference: stack_dynamic [nullPointerOutOfMemory] fitsh-0.9.4/src/link/floodfill.c:110:37: note: Assuming allocation function fails fitsh-0.9.4/src/link/floodfill.c:110:22: note: Assignment 'stack_dynamic=(struct point*)malloc(sizeof(struct point)*mxsp)', assigned value is 0 fitsh-0.9.4/src/link/floodfill.c:111:13: note: Null pointer dereference fitsh-0.9.4/src/link/floodfill.c:130:13: warning: If memory allocation fails, then there is a possible null pointer dereference: stack_dynamic [nullPointerOutOfMemory] fitsh-0.9.4/src/link/floodfill.c:129:37: note: Assuming allocation function fails fitsh-0.9.4/src/link/floodfill.c:129:22: note: Assignment 'stack_dynamic=(struct point*)malloc(sizeof(struct point)*mxsp)', assigned value is 0 fitsh-0.9.4/src/link/floodfill.c:130:13: note: Null pointer dereference fitsh-0.9.4/src/link/floodfill.c:85:19: style:inconclusive: Function 'floodfill' argument 1 names different: declaration 'x0' definition 'x'. [funcArgNamesDifferent] fitsh-0.9.4/src/link/floodfill.h:19:20: note: Function 'floodfill' argument 1 names different: declaration 'x0' definition 'x'. fitsh-0.9.4/src/link/floodfill.c:85:19: note: Function 'floodfill' argument 1 names different: declaration 'x0' definition 'x'. fitsh-0.9.4/src/link/floodfill.c:85:25: style:inconclusive: Function 'floodfill' argument 2 names different: declaration 'y0' definition 'y'. [funcArgNamesDifferent] fitsh-0.9.4/src/link/floodfill.h:19:27: note: Function 'floodfill' argument 2 names different: declaration 'y0' definition 'y'. fitsh-0.9.4/src/link/floodfill.c:85:25: note: Function 'floodfill' argument 2 names different: declaration 'y0' definition 'y'. fitsh-0.9.4/src/link/linkblock.c:40:23: style: Array index 'j' is used before limits check. [arrayIndexThenCheck] fitsh-0.9.4/src/link/linkblock.c:22:46: style:inconclusive: Function 'linkblock_connect' argument 2 names different: declaration 'lnblock' definition 'nlblock'. [funcArgNamesDifferent] fitsh-0.9.4/src/link/linkblock.h:24:46: note: Function 'linkblock_connect' argument 2 names different: declaration 'lnblock' definition 'nlblock'. fitsh-0.9.4/src/link/linkblock.c:22:46: note: Function 'linkblock_connect' argument 2 names different: declaration 'lnblock' definition 'nlblock'. fitsh-0.9.4/src/link/linkpoint.c:149:7: style: Variable '*rny' is reassigned a value before the old one has been used. [redundantAssignment] fitsh-0.9.4/src/link/linkpoint.c:148:9: note: *rny is assigned fitsh-0.9.4/src/link/linkpoint.c:149:7: note: *rny is overwritten fitsh-0.9.4/src/link/linkpoint.c:65:18: style:inconclusive: Function 'linkpoint_local_extreme' argument 7 names different: declaration 'x' definition 'j'. [funcArgNamesDifferent] fitsh-0.9.4/src/link/linkpoint.h:59:6: note: Function 'linkpoint_local_extreme' argument 7 names different: declaration 'x' definition 'j'. fitsh-0.9.4/src/link/linkpoint.c:65:18: note: Function 'linkpoint_local_extreme' argument 7 names different: declaration 'x' definition 'j'. fitsh-0.9.4/src/link/linkpoint.c:65:24: style:inconclusive: Function 'linkpoint_local_extreme' argument 8 names different: declaration 'y' definition 'i'. [funcArgNamesDifferent] fitsh-0.9.4/src/link/linkpoint.h:59:12: note: Function 'linkpoint_local_extreme' argument 8 names different: declaration 'y' definition 'i'. fitsh-0.9.4/src/link/linkpoint.c:65:24: note: Function 'linkpoint_local_extreme' argument 8 names different: declaration 'y' definition 'i'. fitsh-0.9.4/src/link/linkpoint.c:156:67: style:inconclusive: Function 'linkpoint_mask_same_group' argument 4 names different: declaration 'x' definition 'j'. [funcArgNamesDifferent] fitsh-0.9.4/src/link/linkpoint.h:66:67: note: Function 'linkpoint_mask_same_group' argument 4 names different: declaration 'x' definition 'j'. fitsh-0.9.4/src/link/linkpoint.c:156:67: note: Function 'linkpoint_mask_same_group' argument 4 names different: declaration 'x' definition 'j'. fitsh-0.9.4/src/link/linkpoint.c:156:73: style:inconclusive: Function 'linkpoint_mask_same_group' argument 5 names different: declaration 'y' definition 'i'. [funcArgNamesDifferent] fitsh-0.9.4/src/link/linkpoint.h:66:73: note: Function 'linkpoint_mask_same_group' argument 5 names different: declaration 'y' definition 'i'. fitsh-0.9.4/src/link/linkpoint.c:156:73: note: Function 'linkpoint_mask_same_group' argument 5 names different: declaration 'y' definition 'i'. fitsh-0.9.4/src/link/linkpoint.c:186:68: style: Parameter 'lr' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/longhelp.c:84:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/longhelp.c:261:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable options [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/longhelp.c:97:4: error: Common realloc mistake: 'rtokens' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/longhelp.c:227:3: error: Common realloc mistake: 'out' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/longhelp.c:89:11: warning: If memory allocation fails, then there is a possible null pointer dereference: buff [nullPointerOutOfMemory] fitsh-0.9.4/src/longhelp.c:134:11: note: Assuming allocation function fails fitsh-0.9.4/src/longhelp.c:134:11: note: Assignment 'dd=strdup(desc)', assigned value is 0 fitsh-0.9.4/src/longhelp.c:135:26: note: Calling function 'tokenize_spaces_dyn', 1st argument 'dd' value is 0 fitsh-0.9.4/src/longhelp.c:84:2: note: Assuming condition is false fitsh-0.9.4/src/longhelp.c:89:11: note: Null pointer dereference fitsh-0.9.4/src/longhelp.c:183:46: style:inconclusive: Function 'longhelp_fprint' argument 2 names different: declaration 'entries' definition 'entry'. [funcArgNamesDifferent] fitsh-0.9.4/src/longhelp.h:49:46: note: Function 'longhelp_fprint' argument 2 names different: declaration 'entries' definition 'entry'. fitsh-0.9.4/src/longhelp.c:183:46: note: Function 'longhelp_fprint' argument 2 names different: declaration 'entries' definition 'entry'. fitsh-0.9.4/src/longhelp.c:133:8: style: Local variable 'w' shadows outer argument [shadowArgument] fitsh-0.9.4/src/longhelp.c:122:63: note: Shadowed declaration fitsh-0.9.4/src/longhelp.c:133:8: note: Shadow variable fitsh-0.9.4/src/longhelp.c:122:88: style: Parameter 'desc' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/longhelp.c:217:40: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/magnitude.c:17:27: style:inconclusive: Function 'mag_to_flux' argument 1 names different: declaration 'magn' definition 'mag'. [funcArgNamesDifferent] fitsh-0.9.4/src/magnitude.h:15:27: note: Function 'mag_to_flux' argument 1 names different: declaration 'magn' definition 'mag'. fitsh-0.9.4/src/magnitude.c:17:27: note: Function 'mag_to_flux' argument 1 names different: declaration 'magn' definition 'mag'. fitsh-0.9.4/src/magnitude.c:17:40: style: Parameter 'mf' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/magnitude.c:26:41: style: Parameter 'mf' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/maskdraw.c:103:61: style: Parameter 'maskblock' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/convexhull.c:33:43: style: Parameter 'p1' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/convexhull.c:33:53: style: Parameter 'p2' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/convexhull.c:33:63: style: Parameter 'p3' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/cpmatch.c:295:2: error: Common realloc mistake: 'hits' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/math/cpmatch.c:383:2: error: Common realloc mistake: 'hits' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/math/cpmatch.c:345:2: warning: If memory allocation fails, then there is a possible null pointer dereference: whits [nullPointerOutOfMemory] fitsh-0.9.4/src/math/cpmatch.c:341:23: note: Assuming allocation function fails fitsh-0.9.4/src/math/cpmatch.c:341:8: note: Assignment 'whits=(struct cphit*)malloc(maxlen*sizeof(struct cphit))', assigned value is 0 fitsh-0.9.4/src/math/cpmatch.c:345:2: note: Null pointer dereference fitsh-0.9.4/src/math/cpmatch.c:346:2: warning: If memory allocation fails, then there is a possible null pointer dereference: whits [nullPointerOutOfMemory] fitsh-0.9.4/src/math/cpmatch.c:341:23: note: Assuming allocation function fails fitsh-0.9.4/src/math/cpmatch.c:341:8: note: Assignment 'whits=(struct cphit*)malloc(maxlen*sizeof(struct cphit))', assigned value is 0 fitsh-0.9.4/src/math/cpmatch.c:346:2: note: Null pointer dereference fitsh-0.9.4/src/math/cpmatch.c:348:28: warning: If memory allocation fails, then there is a possible null pointer dereference: whits [nullPointerOutOfMemory] fitsh-0.9.4/src/math/cpmatch.c:341:23: note: Assuming allocation function fails fitsh-0.9.4/src/math/cpmatch.c:341:8: note: Assignment 'whits=(struct cphit*)malloc(maxlen*sizeof(struct cphit))', assigned value is 0 fitsh-0.9.4/src/math/cpmatch.c:348:28: note: Null pointer dereference fitsh-0.9.4/src/math/cpmatch.c:352:2: warning: If memory allocation fails, then there is a possible null pointer dereference: whits [nullPointerOutOfMemory] fitsh-0.9.4/src/math/cpmatch.c:341:23: note: Assuming allocation function fails fitsh-0.9.4/src/math/cpmatch.c:341:8: note: Assignment 'whits=(struct cphit*)malloc(maxlen*sizeof(struct cphit))', assigned value is 0 fitsh-0.9.4/src/math/cpmatch.c:352:2: note: Null pointer dereference fitsh-0.9.4/src/math/cpmatch.c:354:28: warning: If memory allocation fails, then there is a possible null pointer dereference: whits [nullPointerOutOfMemory] fitsh-0.9.4/src/math/cpmatch.c:341:23: note: Assuming allocation function fails fitsh-0.9.4/src/math/cpmatch.c:341:8: note: Assignment 'whits=(struct cphit*)malloc(maxlen*sizeof(struct cphit))', assigned value is 0 fitsh-0.9.4/src/math/cpmatch.c:354:28: note: Null pointer dereference fitsh-0.9.4/src/math/cpmatch.c:31:34: style:inconclusive: Function 'cphit_sort_dist' argument 1 names different: declaration 'cphit1' definition 'p1'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/cpmatch.h:83:33: note: Function 'cphit_sort_dist' argument 1 names different: declaration 'cphit1' definition 'p1'. fitsh-0.9.4/src/math/cpmatch.c:31:34: note: Function 'cphit_sort_dist' argument 1 names different: declaration 'cphit1' definition 'p1'. fitsh-0.9.4/src/math/cpmatch.c:31:50: style:inconclusive: Function 'cphit_sort_dist' argument 2 names different: declaration 'cphit2' definition 'p2'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/cpmatch.h:83:53: note: Function 'cphit_sort_dist' argument 2 names different: declaration 'cphit2' definition 'p2'. fitsh-0.9.4/src/math/cpmatch.c:31:50: note: Function 'cphit_sort_dist' argument 2 names different: declaration 'cphit2' definition 'p2'. fitsh-0.9.4/src/math/cpmatch.c:72:10: style:inconclusive: Function 'cpmatch_find_nearest' argument 4 names different: declaration 'retdistance' definition 'rdistance'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/cpmatch.h:49:10: note: Function 'cpmatch_find_nearest' argument 4 names different: declaration 'retdistance' definition 'rdistance'. fitsh-0.9.4/src/math/cpmatch.c:72:10: note: Function 'cpmatch_find_nearest' argument 4 names different: declaration 'retdistance' definition 'rdistance'. fitsh-0.9.4/src/math/cpmatch.c:239:28: style:inconclusive: Function 'cpmatch' argument 1 names different: declaration 'reference' definition 'base'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/cpmatch.h:82:27: note: Function 'cpmatch' argument 1 names different: declaration 'reference' definition 'base'. fitsh-0.9.4/src/math/cpmatch.c:239:28: note: Function 'cpmatch' argument 1 names different: declaration 'reference' definition 'base'. fitsh-0.9.4/src/math/cpmatch.c:239:44: style:inconclusive: Function 'cpmatch' argument 2 names different: declaration 'input' definition 'probe'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/cpmatch.h:82:48: note: Function 'cpmatch' argument 2 names different: declaration 'input' definition 'probe'. fitsh-0.9.4/src/math/cpmatch.c:239:44: note: Function 'cpmatch' argument 2 names different: declaration 'input' definition 'probe'. fitsh-0.9.4/src/math/cpmatch.c:239:56: style:inconclusive: Function 'cpmatch' argument 3 names different: declaration 'hlength' definition 'hlen'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/cpmatch.h:82:59: note: Function 'cpmatch' argument 3 names different: declaration 'hlength' definition 'hlen'. fitsh-0.9.4/src/math/cpmatch.c:239:56: note: Function 'cpmatch' argument 3 names different: declaration 'hlength' definition 'hlen'. fitsh-0.9.4/src/math/cpmatch.c:308:8: style:inconclusive: Function 'cpmatch_symmetric' argument 3 names different: declaration 'rlen' definition 'hlen'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/cpmatch.h:72:7: note: Function 'cpmatch_symmetric' argument 3 names different: declaration 'rlen' definition 'hlen'. fitsh-0.9.4/src/math/cpmatch.c:308:8: note: Function 'cpmatch_symmetric' argument 3 names different: declaration 'rlen' definition 'hlen'. fitsh-0.9.4/src/math/cpmatch.c:399:44: style:inconclusive: Function 'cphit_revise' argument 3 names different: declaration 'maxarrlen' definition 'maxhlen'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/cpmatch.h:85:45: note: Function 'cphit_revise' argument 3 names different: declaration 'maxarrlen' definition 'maxhlen'. fitsh-0.9.4/src/math/cpmatch.c:399:44: note: Function 'cphit_revise' argument 3 names different: declaration 'maxarrlen' definition 'maxhlen'. fitsh-0.9.4/src/math/cpmatch.c:399:60: style:inconclusive: Function 'cphit_revise' argument 4 names different: declaration 'matchtype' definition 'mtype'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/cpmatch.h:86:10: note: Function 'cphit_revise' argument 4 names different: declaration 'matchtype' definition 'mtype'. fitsh-0.9.4/src/math/cpmatch.c:399:60: note: Function 'cphit_revise' argument 4 names different: declaration 'matchtype' definition 'mtype'. fitsh-0.9.4/src/math/cpmatch.c:43:31: style: Parameter 'probe' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/cpmatch.c:71:34: style: Parameter 'probe' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/cpmatch.c:81:19: style: Variable 'nbpoint' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/math/cpmatch.c:111:10: style: Variable 'xdist' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/delaunay.c:368:25: style: Condition 'above_l_cand' is always true [knownConditionTrueFalse] fitsh-0.9.4/src/math/delaunay.c:368:7: note: Assuming that condition '!above_l_cand' is not redundant fitsh-0.9.4/src/math/delaunay.c:312:26: note: Assignment 'above_l_cand=c_p_l_cand>0.0', assigned value is less than 2 fitsh-0.9.4/src/math/delaunay.c:315:21: note: Assuming condition is false fitsh-0.9.4/src/math/delaunay.c:368:25: note: Condition 'above_l_cand' is always true fitsh-0.9.4/src/math/delaunay.c:494:6: error: Common realloc mistake: 'triangles' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/math/delaunay.c:636:4: error: Common realloc mistake: 'ngs' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/math/delaunay.c:655:6: error: Common realloc mistake: 'ngs' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/math/delaunay.c:670:5: error: Common realloc mistake: 'tris' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/math/delaunay.c:125:2: warning: If memory allocation fails, then there is a possible null pointer dereference: e [nullPointerOutOfMemory] fitsh-0.9.4/src/math/delaunay.c:121:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/delaunay.c:121:4: note: Assignment 'e=(struct edge*)malloc(sizeof(struct edge))', assigned value is 0 fitsh-0.9.4/src/math/delaunay.c:125:2: note: Null pointer dereference fitsh-0.9.4/src/math/delaunay.c:126:2: warning: If memory allocation fails, then there is a possible null pointer dereference: e [nullPointerOutOfMemory] fitsh-0.9.4/src/math/delaunay.c:121:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/delaunay.c:121:4: note: Assignment 'e=(struct edge*)malloc(sizeof(struct edge))', assigned value is 0 fitsh-0.9.4/src/math/delaunay.c:126:2: note: Null pointer dereference fitsh-0.9.4/src/math/delaunay.c:127:7: warning: If memory allocation fails, then there is a possible null pointer dereference: e [nullPointerOutOfMemory] fitsh-0.9.4/src/math/delaunay.c:121:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/delaunay.c:121:4: note: Assignment 'e=(struct edge*)malloc(sizeof(struct edge))', assigned value is 0 fitsh-0.9.4/src/math/delaunay.c:127:7: note: Null pointer dereference fitsh-0.9.4/src/math/delaunay.c:534:2: warning: If memory allocation fails, then there is a possible null pointer dereference: neigindx [nullPointerOutOfMemory] fitsh-0.9.4/src/math/delaunay.c:565:24: note: Assuming allocation function fails fitsh-0.9.4/src/math/delaunay.c:565:11: note: Assignment 'neigindx=(int*)malloc(sizeof(int)*len)', assigned value is 0 fitsh-0.9.4/src/math/delaunay.c:566:41: note: Calling function 'make_neighbour_list', 4th argument 'neigindx' value is 0 fitsh-0.9.4/src/math/delaunay.c:534:2: note: Null pointer dereference fitsh-0.9.4/src/math/delaunay.c:569:34: warning: If memory allocation fails, then there is a possible null pointer dereference: neigindx [nullPointerOutOfMemory] fitsh-0.9.4/src/math/delaunay.c:565:24: note: Assuming allocation function fails fitsh-0.9.4/src/math/delaunay.c:565:11: note: Assignment 'neigindx=(int*)malloc(sizeof(int)*len)', assigned value is 0 fitsh-0.9.4/src/math/delaunay.c:569:34: note: Null pointer dereference fitsh-0.9.4/src/math/delaunay.c:686:8: warning: If memory allocation fails, then there is a possible null pointer dereference: tris [nullPointerOutOfMemory] fitsh-0.9.4/src/math/delaunay.c:621:25: note: Assuming allocation function fails fitsh-0.9.4/src/math/delaunay.c:621:7: note: Assignment 'tris=(struct triangle*)malloc(sizeof(struct triangle)*atri)', assigned value is 0 fitsh-0.9.4/src/math/delaunay.c:627:15: note: Assuming condition is false fitsh-0.9.4/src/math/delaunay.c:686:8: note: Null pointer dereference fitsh-0.9.4/src/math/delaunay.c:689:10: warning: If memory allocation fails, then there is a possible null pointer dereference: wtris [nullPointerOutOfMemory] fitsh-0.9.4/src/math/delaunay.c:688:26: note: Assuming allocation function fails fitsh-0.9.4/src/math/delaunay.c:688:8: note: Assignment 'wtris=(struct triangle*)malloc(sizeof(struct triangle)*atri)', assigned value is 0 fitsh-0.9.4/src/math/delaunay.c:689:10: note: Null pointer dereference fitsh-0.9.4/src/math/delaunay.c:689:20: warning: If memory allocation fails, then there is a possible null pointer dereference: tris [nullPointerOutOfMemory] fitsh-0.9.4/src/math/delaunay.c:621:25: note: Assuming allocation function fails fitsh-0.9.4/src/math/delaunay.c:621:7: note: Assignment 'tris=(struct triangle*)malloc(sizeof(struct triangle)*atri)', assigned value is 0 fitsh-0.9.4/src/math/delaunay.c:627:15: note: Assuming condition is false fitsh-0.9.4/src/math/delaunay.c:689:20: note: Null pointer dereference fitsh-0.9.4/src/math/delaunay.c:546:36: style:inconclusive: Function 'delaunay_triangulation' argument 1 names different: declaration 'ps' definition 'points'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/delaunay.h:32:36: note: Function 'delaunay_triangulation' argument 1 names different: declaration 'ps' definition 'points'. fitsh-0.9.4/src/math/delaunay.c:546:36: note: Function 'delaunay_triangulation' argument 1 names different: declaration 'ps' definition 'points'. fitsh-0.9.4/src/math/delaunay.c:546:47: style:inconclusive: Function 'delaunay_triangulation' argument 2 names different: declaration 'np' definition 'len'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/delaunay.h:32:43: note: Function 'delaunay_triangulation' argument 2 names different: declaration 'np' definition 'len'. fitsh-0.9.4/src/math/delaunay.c:546:47: note: Function 'delaunay_triangulation' argument 2 names different: declaration 'np' definition 'len'. fitsh-0.9.4/src/math/delaunay.c:70:35: style: Parameter 'p1' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/delaunay.c:70:46: style: Parameter 'p2' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/delaunay.c:70:57: style: Parameter 'p3' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/delaunay.c:202:62: style: Parameter 'pp' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/delaunay.c:525:17: style: Variable 'fd' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/math/delaunay.c:603:12: style: Variable 't1' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/math/delaunay.c:604:12: style: Variable 't2' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/math/delaunay.c:693:17: warning: Size of pointer 'tris' used instead of size of its data. [pointerSize] fitsh-0.9.4/src/math/delaunay.c:408:7: style: Variable 'ec' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/elliptic.c:214:39: style:inconclusive: Function 'elliptic_complete_first' argument 1 names different: declaration 'k' definition 'ak'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/elliptic/elliptic.h:17:39: note: Function 'elliptic_complete_first' argument 1 names different: declaration 'k' definition 'ak'. fitsh-0.9.4/src/math/elliptic/elliptic.c:214:39: note: Function 'elliptic_complete_first' argument 1 names different: declaration 'k' definition 'ak'. fitsh-0.9.4/src/math/elliptic/elliptic.c:224:40: style:inconclusive: Function 'elliptic_complete_second' argument 1 names different: declaration 'k' definition 'ak'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/elliptic/elliptic.h:18:40: note: Function 'elliptic_complete_second' argument 1 names different: declaration 'k' definition 'ak'. fitsh-0.9.4/src/math/elliptic/elliptic.c:224:40: note: Function 'elliptic_complete_second' argument 1 names different: declaration 'k' definition 'ak'. fitsh-0.9.4/src/math/elliptic/elliptic.c:236:39: style:inconclusive: Function 'elliptic_complete_third' argument 1 names different: declaration 'n' definition 'en'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/elliptic/elliptic.h:19:39: note: Function 'elliptic_complete_third' argument 1 names different: declaration 'n' definition 'en'. fitsh-0.9.4/src/math/elliptic/elliptic.c:236:39: note: Function 'elliptic_complete_third' argument 1 names different: declaration 'n' definition 'en'. fitsh-0.9.4/src/math/elliptic/elliptic.c:236:49: style:inconclusive: Function 'elliptic_complete_third' argument 2 names different: declaration 'k' definition 'ak'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/elliptic/elliptic.h:19:48: note: Function 'elliptic_complete_third' argument 2 names different: declaration 'k' definition 'ak'. fitsh-0.9.4/src/math/elliptic/elliptic.c:236:49: note: Function 'elliptic_complete_third' argument 2 names different: declaration 'k' definition 'ak'. fitsh-0.9.4/src/math/elliptic/ntiq.c:512:4: style: Variable 'fk' is reassigned a value before the old one has been used. [redundantAssignment] fitsh-0.9.4/src/math/elliptic/ntiq.c:501:4: note: fk is assigned fitsh-0.9.4/src/math/elliptic/ntiq.c:512:4: note: fk is overwritten fitsh-0.9.4/src/math/elliptic/ntiq.c:515:4: style: Variable 'fe' is reassigned a value before the old one has been used. [redundantAssignment] fitsh-0.9.4/src/math/elliptic/ntiq.c:502:4: note: fe is assigned fitsh-0.9.4/src/math/elliptic/ntiq.c:515:4: note: fe is overwritten fitsh-0.9.4/src/math/elliptic/ntiq.c:264:16: style: Variable 'fppp' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:265:16: style: Variable 'fpzz' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:283:16: style: Variable 'fppp' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:284:16: style: Variable 'fpzz' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:321:6: style: Variable 'fppp' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:322:6: style: Variable 'fpzz' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:348:16: style: Variable 'fppp' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:349:16: style: Variable 'fpzz' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:394:6: style: Variable 'fppp' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:395:6: style: Variable 'fpzz' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:435:6: style: Variable 'fppp' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:436:6: style: Variable 'fpzz' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:471:6: style: Variable 'fppp' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:472:6: style: Variable 'fpzz' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:519:6: style: Variable 'fppp' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:520:6: style: Variable 'fpzz' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:561:6: style: Variable 'fppp' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:562:6: style: Variable 'fpzz' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:589:16: style: Variable 'fppp' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:590:16: style: Variable 'fpzz' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:635:6: style: Variable 'fppp' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:636:6: style: Variable 'fpzz' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:663:16: style: Variable 'fppp' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/elliptic/ntiq.c:664:16: style: Variable 'fpzz' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/expint/expint.c:59:102: style: Parameter 'ee' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/expint/expint.c:116:118: style: Parameter 'ee' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/expint/expint.c:189:76: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/fit/downhill.c:61:2: warning: If memory allocation fails, then there is a possible null pointer dereference: y [nullPointerOutOfMemory] fitsh-0.9.4/src/math/fit/downhill.c:56:23: note: Assuming allocation function fails fitsh-0.9.4/src/math/fit/downhill.c:56:7: note: Assignment 'y=(double*)malloc(sizeof(double)*(nvar+1))', assigned value is 0 fitsh-0.9.4/src/math/fit/downhill.c:61:2: note: Null pointer dereference fitsh-0.9.4/src/math/fit/downhill.c:68:2: warning: If memory allocation fails, then there is a possible null pointer dereference: psum [nullPointerOutOfMemory] fitsh-0.9.4/src/math/fit/downhill.c:57:23: note: Assuming allocation function fails fitsh-0.9.4/src/math/fit/downhill.c:57:7: note: Assignment 'psum=(double*)malloc(sizeof(double)*ndim)', assigned value is 0 fitsh-0.9.4/src/math/fit/downhill.c:68:2: note: Null pointer dereference fitsh-0.9.4/src/math/fit/downhill.c:103:9: style: Variable 'ytry' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/fit/lmfit.c:195:9: style: Variable 'da' is reassigned a value before the old one has been used. [redundantAssignment] fitsh-0.9.4/src/math/fit/lmfit.c:194:4: note: da is assigned fitsh-0.9.4/src/math/fit/lmfit.c:195:9: note: da is overwritten fitsh-0.9.4/src/math/fit/lmfit.c:304:9: style: Variable 'da' is reassigned a value before the old one has been used. [redundantAssignment] fitsh-0.9.4/src/math/fit/lmfit.c:303:4: note: da is assigned fitsh-0.9.4/src/math/fit/lmfit.c:304:9: note: da is overwritten fitsh-0.9.4/src/math/fit/lmfit.c:430:9: style: Variable 'da' is reassigned a value before the old one has been used. [redundantAssignment] fitsh-0.9.4/src/math/fit/lmfit.c:428:4: note: da is assigned fitsh-0.9.4/src/math/fit/lmfit.c:430:9: note: da is overwritten fitsh-0.9.4/src/math/fit/lmfit.c:186:9: style:inconclusive: Function 'nlm_fit_base_con' argument 10 names different: declaration 'lam' definition 'lambda'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/fit/lmfit.h:118:11: note: Function 'nlm_fit_base_con' argument 10 names different: declaration 'lam' definition 'lambda'. fitsh-0.9.4/src/math/fit/lmfit.c:186:9: note: Function 'nlm_fit_base_con' argument 10 names different: declaration 'lam' definition 'lambda'. fitsh-0.9.4/src/math/fit/lmfit.c:186:23: style:inconclusive: Function 'nlm_fit_base_con' argument 11 names different: declaration 'lam_mpy' definition 'lambda_mpy'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/fit/lmfit.h:118:22: note: Function 'nlm_fit_base_con' argument 11 names different: declaration 'lam_mpy' definition 'lambda_mpy'. fitsh-0.9.4/src/math/fit/lmfit.c:186:23: note: Function 'nlm_fit_base_con' argument 11 names different: declaration 'lam_mpy' definition 'lambda_mpy'. fitsh-0.9.4/src/math/fit/lmfit.c:282:37: style:inconclusive: Function 'nlm_fit_base' argument 9 names different: declaration 'lam' definition 'lambda'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/fit/lmfit.h:97:11: note: Function 'nlm_fit_base' argument 9 names different: declaration 'lam' definition 'lambda'. fitsh-0.9.4/src/math/fit/lmfit.c:282:37: note: Function 'nlm_fit_base' argument 9 names different: declaration 'lam' definition 'lambda'. fitsh-0.9.4/src/math/fit/lmfit.c:282:51: style:inconclusive: Function 'nlm_fit_base' argument 10 names different: declaration 'lam_mpy' definition 'lambda_mpy'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/fit/lmfit.h:97:22: note: Function 'nlm_fit_base' argument 10 names different: declaration 'lam_mpy' definition 'lambda_mpy'. fitsh-0.9.4/src/math/fit/lmfit.c:282:51: note: Function 'nlm_fit_base' argument 10 names different: declaration 'lam_mpy' definition 'lambda_mpy'. fitsh-0.9.4/src/math/fit/lmfit.c:295:9: style:inconclusive: Function 'nlm_fit_nmdf_con' argument 10 names different: declaration 'lam' definition 'lambda'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/fit/lmfit.h:128:11: note: Function 'nlm_fit_nmdf_con' argument 10 names different: declaration 'lam' definition 'lambda'. fitsh-0.9.4/src/math/fit/lmfit.c:295:9: note: Function 'nlm_fit_nmdf_con' argument 10 names different: declaration 'lam' definition 'lambda'. fitsh-0.9.4/src/math/fit/lmfit.c:295:23: style:inconclusive: Function 'nlm_fit_nmdf_con' argument 11 names different: declaration 'lam_mpy' definition 'lambda_mpy'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/fit/lmfit.h:128:22: note: Function 'nlm_fit_nmdf_con' argument 11 names different: declaration 'lam_mpy' definition 'lambda_mpy'. fitsh-0.9.4/src/math/fit/lmfit.c:295:23: note: Function 'nlm_fit_nmdf_con' argument 11 names different: declaration 'lam_mpy' definition 'lambda_mpy'. fitsh-0.9.4/src/math/fit/lmfit.c:295:42: style:inconclusive: Function 'nlm_fit_nmdf_con' argument 12 names different: declaration 'da' definition 'dda'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/fit/lmfit.h:128:38: note: Function 'nlm_fit_nmdf_con' argument 12 names different: declaration 'da' definition 'dda'. fitsh-0.9.4/src/math/fit/lmfit.c:295:42: note: Function 'nlm_fit_nmdf_con' argument 12 names different: declaration 'da' definition 'dda'. fitsh-0.9.4/src/math/fit/lmfit.c:407:9: style:inconclusive: Function 'nlm_fit_nmdf' argument 9 names different: declaration 'lam' definition 'lambda'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/fit/lmfit.h:137:11: note: Function 'nlm_fit_nmdf' argument 9 names different: declaration 'lam' definition 'lambda'. fitsh-0.9.4/src/math/fit/lmfit.c:407:9: note: Function 'nlm_fit_nmdf' argument 9 names different: declaration 'lam' definition 'lambda'. fitsh-0.9.4/src/math/fit/lmfit.c:407:23: style:inconclusive: Function 'nlm_fit_nmdf' argument 10 names different: declaration 'lam_mpy' definition 'lambda_mpy'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/fit/lmfit.h:137:22: note: Function 'nlm_fit_nmdf' argument 10 names different: declaration 'lam_mpy' definition 'lambda_mpy'. fitsh-0.9.4/src/math/fit/lmfit.c:407:23: note: Function 'nlm_fit_nmdf' argument 10 names different: declaration 'lam_mpy' definition 'lambda_mpy'. fitsh-0.9.4/src/math/fit/lmfit.c:407:42: style:inconclusive: Function 'nlm_fit_nmdf' argument 11 names different: declaration 'da' definition 'dda'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/fit/lmfit.h:137:38: note: Function 'nlm_fit_nmdf' argument 11 names different: declaration 'da' definition 'dda'. fitsh-0.9.4/src/math/fit/lmfit.c:407:42: note: Function 'nlm_fit_nmdf' argument 11 names different: declaration 'da' definition 'dda'. fitsh-0.9.4/src/math/fit/lmfit.c:183:42: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/fit/lmfit.c:183:62: style: Parameter 'weight' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/fit/lmfit.c:292:42: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/fit/lmfit.c:292:62: style: Parameter 'weight' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/fit/lmfit.c:295:42: style: Parameter 'dda' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/fit/lmfit.c:418:34: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/fit/lmfit.c:418:54: style: Parameter 'weight' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/intersec/intersec.c:18:67: style:inconclusive: Function 'intersec_rectangles' argument 3 names different: declaration 'ret' definition 'ir'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/intersec/intersec.h:23:67: note: Function 'intersec_rectangles' argument 3 names different: declaration 'ret' definition 'ir'. fitsh-0.9.4/src/math/intersec/intersec.c:18:67: note: Function 'intersec_rectangles' argument 3 names different: declaration 'ret' definition 'ir'. fitsh-0.9.4/src/math/intersec/intersec.c:18:37: style: Parameter 'r1' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/intersec/intersec.c:18:52: style: Parameter 'r2' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/intersec/intersec.c:36:35: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/intersec/intersec.c:42:29: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/intersec/intersec.c:105:47: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/intersec/intersec.c:105:58: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/poly.c:254:2: warning: If memory allocation fails, then there is a possible null pointer dereference: xm [nullPointerOutOfMemory] fitsh-0.9.4/src/math/poly.c:251:21: note: Assuming allocation function fails fitsh-0.9.4/src/math/poly.c:251:5: note: Assignment 'xm=(double*)malloc(sizeof(double)*nvar)', assigned value is 0 fitsh-0.9.4/src/math/poly.c:254:2: note: Null pointer dereference fitsh-0.9.4/src/math/poly.c:254:8: warning: If memory allocation fails, then there is a possible null pointer dereference: ym [nullPointerOutOfMemory] fitsh-0.9.4/src/math/poly.c:252:21: note: Assuming allocation function fails fitsh-0.9.4/src/math/poly.c:252:5: note: Assignment 'ym=(double*)malloc(sizeof(double)*nvar)', assigned value is 0 fitsh-0.9.4/src/math/poly.c:254:8: note: Null pointer dereference fitsh-0.9.4/src/math/poly.c:256:5: warning: If memory allocation fails, then there is a possible null pointer dereference: xm [nullPointerOutOfMemory] fitsh-0.9.4/src/math/poly.c:251:21: note: Assuming allocation function fails fitsh-0.9.4/src/math/poly.c:251:5: note: Assignment 'xm=(double*)malloc(sizeof(double)*nvar)', assigned value is 0 fitsh-0.9.4/src/math/poly.c:256:5: note: Null pointer dereference fitsh-0.9.4/src/math/poly.c:257:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ym [nullPointerOutOfMemory] fitsh-0.9.4/src/math/poly.c:252:21: note: Assuming allocation function fails fitsh-0.9.4/src/math/poly.c:252:5: note: Assignment 'ym=(double*)malloc(sizeof(double)*nvar)', assigned value is 0 fitsh-0.9.4/src/math/poly.c:257:2: note: Null pointer dereference fitsh-0.9.4/src/math/poly.c:264:5: warning: If memory allocation fails, then there is a possible null pointer dereference: xm [nullPointerOutOfMemory] fitsh-0.9.4/src/math/poly.c:251:21: note: Assuming allocation function fails fitsh-0.9.4/src/math/poly.c:251:5: note: Assignment 'xm=(double*)malloc(sizeof(double)*nvar)', assigned value is 0 fitsh-0.9.4/src/math/poly.c:264:5: note: Null pointer dereference fitsh-0.9.4/src/math/poly.c:264:11: warning: If memory allocation fails, then there is a possible null pointer dereference: ym [nullPointerOutOfMemory] fitsh-0.9.4/src/math/poly.c:252:21: note: Assuming allocation function fails fitsh-0.9.4/src/math/poly.c:252:5: note: Assignment 'ym=(double*)malloc(sizeof(double)*nvar)', assigned value is 0 fitsh-0.9.4/src/math/poly.c:264:11: note: Null pointer dereference fitsh-0.9.4/src/math/poly.c:266:5: warning: If memory allocation fails, then there is a possible null pointer dereference: xm [nullPointerOutOfMemory] fitsh-0.9.4/src/math/poly.c:251:21: note: Assuming allocation function fails fitsh-0.9.4/src/math/poly.c:251:5: note: Assignment 'xm=(double*)malloc(sizeof(double)*nvar)', assigned value is 0 fitsh-0.9.4/src/math/poly.c:266:5: note: Null pointer dereference fitsh-0.9.4/src/math/poly.c:191:23: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fitsh-0.9.4/src/math/poly.c:190:23: note: Assuming allocation function fails fitsh-0.9.4/src/math/poly.c:190:7: note: Assignment 'tarr=(double*)malloc(sizeof(double)*nvar*2)', assigned value is 0 fitsh-0.9.4/src/math/poly.c:191:23: note: Null pointer addition fitsh-0.9.4/src/math/poly.c:158:26: style: Parameter 'coeff' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/poly.c:221:73: style: Parameter 'lin' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/poly.c:238:41: style: Parameter 'coeff' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/polyfit.c:61:24: style:inconclusive: Function 'fit_2d_poly' argument 1 names different: declaration 'dat' definition 'data'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/polyfit.h:24:28: note: Function 'fit_2d_poly' argument 1 names different: declaration 'dat' definition 'data'. fitsh-0.9.4/src/math/polyfit.c:61:24: note: Function 'fit_2d_poly' argument 1 names different: declaration 'dat' definition 'data'. fitsh-0.9.4/src/math/polyfit.c:91:28: style:inconclusive: Function 'fit_2d_leg_poly' argument 1 names different: declaration 'dat' definition 'data'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/polyfit.h:30:28: note: Function 'fit_2d_leg_poly' argument 1 names different: declaration 'dat' definition 'data'. fitsh-0.9.4/src/math/polyfit.c:91:28: note: Function 'fit_2d_leg_poly' argument 1 names different: declaration 'dat' definition 'data'. fitsh-0.9.4/src/math/polyfit.c:123:62: style:inconclusive: Function 'fit_1d_poly' argument 5 names different: declaration 'w' definition 'wv'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/polyfit.h:38:62: note: Function 'fit_1d_poly' argument 5 names different: declaration 'w' definition 'wv'. fitsh-0.9.4/src/math/polyfit.c:123:62: note: Function 'fit_1d_poly' argument 5 names different: declaration 'w' definition 'wv'. fitsh-0.9.4/src/math/polyfit.c:123:35: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/polyfit.c:123:45: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/polyfit.c:123:62: style: Parameter 'wv' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/polygon.c:135:7: warning: If memory allocation fails, then there is a possible null pointer dereference: flags [nullPointerOutOfMemory] fitsh-0.9.4/src/math/polygon.c:125:31: note: Assuming allocation function fails fitsh-0.9.4/src/math/polygon.c:125:8: note: Assignment 'flags=(unsigned char*)malloc(2*n)', assigned value is 0 fitsh-0.9.4/src/math/polygon.c:135:7: note: Null pointer dereference fitsh-0.9.4/src/math/polygon.c:23:36: style: Parameter 'poly' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/polygon.c:54:45: style: Parameter 'poly' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/polygon.c:78:31: style: Parameter 'poly' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/polygon.c:150:7: style: Variable 'p1' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/polygon.c:157:8: style: Variable 'p1' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/polygon.c:176:9: style: Variable 'p1' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/spline/biquad-isc.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] fitsh-0.9.4/src/math/spline/biquad-isc.c:655:7: style: Local variable 'k' shadows outer variable [shadowVariable] fitsh-0.9.4/src/math/spline/biquad-isc.c:513:36: note: Shadowed declaration fitsh-0.9.4/src/math/spline/biquad-isc.c:655:7: note: Shadow variable fitsh-0.9.4/src/math/spline/biquad-isc.c:47:54: style: Parameter 'pc' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/biquad-isc.c:74:61: style: Parameter 'pc' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/biquad-isc.c:88:57: style: Parameter 'pc' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/biquad-isc.c:400:49: style: Parameter 'pcf' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/biquad-isc.c:400:61: style: Parameter 'xcf' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/biquad-isc.c:653:13: style: Variable 'pv' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/math/spline/biquad.c:296:2: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] fitsh-0.9.4/src/math/spline/biquad.c:320:2: note: Found duplicate branches for 'if' and 'else'. fitsh-0.9.4/src/math/spline/biquad.c:296:2: note: Found duplicate branches for 'if' and 'else'. fitsh-0.9.4/src/math/spline/biquad.c:141:33: style: Parameter 'cf' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:37:2: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:26:20: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:26:4: note: Assignment 'u=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:37:2: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:38:2: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:26:20: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:26:4: note: Assignment 'u=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:38:2: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:46:17: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:26:20: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:26:4: note: Assignment 'u=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:46:17: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:48:25: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:26:20: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:26:4: note: Assignment 'u=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:48:25: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:96:8: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:95:20: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:95:4: note: Assignment 'u=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:96:8: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:100:2: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:95:20: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:95:4: note: Assignment 'u=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:100:2: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:101:2: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:95:20: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:95:4: note: Assignment 'u=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:101:2: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:104:17: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:95:20: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:95:4: note: Assignment 'u=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:104:17: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:106:25: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:95:20: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:95:4: note: Assignment 'u=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:106:25: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:169:2: warning: If memory allocation fails, then there is a possible null pointer dereference: da [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:167:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:167:5: note: Assignment 'da=(int*)malloc(sizeof(int)*(n+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:169:2: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:169:14: warning: If memory allocation fails, then there is a possible null pointer dereference: db [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:168:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:168:5: note: Assignment 'db=(int*)malloc(sizeof(int)*(n+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:169:14: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:170:2: warning: If memory allocation fails, then there is a possible null pointer dereference: da [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:167:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:167:5: note: Assignment 'da=(int*)malloc(sizeof(int)*(n+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:170:2: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:171:2: warning: If memory allocation fails, then there is a possible null pointer dereference: db [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:168:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:168:5: note: Assignment 'db=(int*)malloc(sizeof(int)*(n+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:171:2: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:183:17: warning: If memory allocation fails, then there is a possible null pointer dereference: da [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:167:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:167:5: note: Assignment 'da=(int*)malloc(sizeof(int)*(n+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:183:17: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:183:23: warning: If memory allocation fails, then there is a possible null pointer dereference: db [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:168:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:168:5: note: Assignment 'db=(int*)malloc(sizeof(int)*(n+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:183:23: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:189:13: warning: If memory allocation fails, then there is a possible null pointer dereference: da [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:167:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:167:5: note: Assignment 'da=(int*)malloc(sizeof(int)*(n+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:189:13: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:189:19: warning: If memory allocation fails, then there is a possible null pointer dereference: db [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:168:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:168:5: note: Assignment 'db=(int*)malloc(sizeof(int)*(n+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:189:19: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:246:5: warning: If memory allocation fails, then there is a possible null pointer dereference: gam [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:242:22: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:242:6: note: Assignment 'gam=(double*)malloc(sizeof(double)*(p+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:246:5: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:247:10: warning: If memory allocation fails, then there is a possible null pointer dereference: gam [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:242:22: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:242:6: note: Assignment 'gam=(double*)malloc(sizeof(double)*(p+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:247:10: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:250:2: warning: If memory allocation fails, then there is a possible null pointer dereference: gam [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:242:22: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:242:6: note: Assignment 'gam=(double*)malloc(sizeof(double)*(p+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:250:2: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:251:10: warning: If memory allocation fails, then there is a possible null pointer dereference: gam [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:242:22: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:242:6: note: Assignment 'gam=(double*)malloc(sizeof(double)*(p+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:251:10: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:254:13: warning: If memory allocation fails, then there is a possible null pointer dereference: gam [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:242:22: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:242:6: note: Assignment 'gam=(double*)malloc(sizeof(double)*(p+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:254:13: note: Null pointer dereference fitsh-0.9.4/src/math/spline/spline.c:54:29: warning: Function 'spline_inter' argument order different: declaration 'x, y, y2, n, xp' definition 'xa, ya, y2a, n, x' [funcArgOrderDifferent] fitsh-0.9.4/src/math/spline/spline.h:23:29: note: Function 'spline_inter' argument order different: declaration 'x, y, y2, n, xp' definition 'xa, ya, y2a, n, x' fitsh-0.9.4/src/math/spline/spline.c:54:29: note: Function 'spline_inter' argument order different: declaration 'x, y, y2, n, xp' definition 'xa, ya, y2a, n, x' fitsh-0.9.4/src/math/spline/spline.c:71:33: warning: Function 'spline_inter_der' argument order different: declaration 'x, y, y2, n, xp' definition 'xa, ya, y2a, n, x' [funcArgOrderDifferent] fitsh-0.9.4/src/math/spline/spline.h:24:33: note: Function 'spline_inter_der' argument order different: declaration 'x, y, y2, n, xp' definition 'xa, ya, y2a, n, x' fitsh-0.9.4/src/math/spline/spline.c:71:33: note: Function 'spline_inter_der' argument order different: declaration 'x, y, y2, n, xp' definition 'xa, ya, y2a, n, x' fitsh-0.9.4/src/math/spline/spline.c:21:26: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:21:36: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:21:52: style: Parameter 'yp1' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:21:64: style: Parameter 'ypn' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:54:29: style: Parameter 'xa' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:54:40: style: Parameter 'ya' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:54:51: style: Parameter 'y2a' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:71:33: style: Parameter 'xa' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:71:44: style: Parameter 'ya' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:71:55: style: Parameter 'y2a' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:90:29: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:112:32: style: Parameter 'ya' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:112:43: style: Parameter 'y2a' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:125:36: style: Parameter 'ya' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:125:47: style: Parameter 'y2a' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:139:28: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:198:31: style: Parameter 'ya' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:198:42: style: Parameter 'y2a' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:214:35: style: Parameter 'ya' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:214:46: style: Parameter 'y2a' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:232:29: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:260:32: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:260:42: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spline/spline.c:280:3: style: Variable 'x' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/math/splinefit.c:50:43: style:inconclusive: Function 'fit_1d_spline' argument 3 names different: declaration 'bx' definition 'nx'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/splinefit.h:22:43: note: Function 'fit_1d_spline' argument 3 names different: declaration 'bx' definition 'nx'. fitsh-0.9.4/src/math/splinefit.c:50:43: note: Function 'fit_1d_spline' argument 3 names different: declaration 'bx' definition 'nx'. fitsh-0.9.4/src/math/splinefit.c:130:43: style:inconclusive: Function 'fit_2d_spline' argument 3 names different: declaration 'bx' definition 'nx'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/splinefit.h:35:43: note: Function 'fit_2d_spline' argument 3 names different: declaration 'bx' definition 'nx'. fitsh-0.9.4/src/math/splinefit.c:130:43: note: Function 'fit_2d_spline' argument 3 names different: declaration 'bx' definition 'nx'. fitsh-0.9.4/src/math/splinefit.c:130:70: style:inconclusive: Function 'fit_2d_spline' argument 6 names different: declaration 'by' definition 'ny'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/splinefit.h:35:70: note: Function 'fit_2d_spline' argument 6 names different: declaration 'by' definition 'ny'. fitsh-0.9.4/src/math/splinefit.c:130:70: note: Function 'fit_2d_spline' argument 6 names different: declaration 'by' definition 'ny'. fitsh-0.9.4/src/math/splinefit.c:51:10: style: Parameter 'xv' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/splinefit.c:51:21: style: Parameter 'yv' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/splinefit.c:51:43: style: Parameter 'wv' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/spmatrix.c:172:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable count [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/math/spmatrix.c:519:46: style:inconclusive: Function 'spm_getnextnode' argument 2 names different: declaration 'last' definition 'snd'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/spmatrix.h:44:42: note: Function 'spm_getnextnode' argument 2 names different: declaration 'last' definition 'snd'. fitsh-0.9.4/src/math/spmatrix.c:519:46: note: Function 'spm_getnextnode' argument 2 names different: declaration 'last' definition 'snd'. fitsh-0.9.4/src/math/tpoint.c:250:55: style:inconclusive: Function 'tpoint_rrotate' argument 3 names different: declaration 'rotangdeg' definition 'rotang'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/tpoint.h:44:54: note: Function 'tpoint_rrotate' argument 3 names different: declaration 'rotangdeg' definition 'rotang'. fitsh-0.9.4/src/math/tpoint.c:250:55: note: Function 'tpoint_rrotate' argument 3 names different: declaration 'rotangdeg' definition 'rotang'. fitsh-0.9.4/src/math/tpoint.c:50:32: style: Parameter 'p1' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/tpoint.c:50:43: style: Parameter 'p2' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/tpoint.c:61:33: style: Parameter 'p1' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/tpoint.c:61:45: style: Parameter 'p2' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/tpoint.c:290:39: style: Parameter 'points' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/trimatch.c:264:5: warning: If memory allocation fails, then there is a possible null pointer dereference: fpoints [nullPointerOutOfMemory] fitsh-0.9.4/src/math/trimatch.c:262:25: note: Assuming allocation function fails fitsh-0.9.4/src/math/trimatch.c:262:10: note: Assignment 'fpoints=(struct point*)malloc(len*sizeof(struct point))', assigned value is 0 fitsh-0.9.4/src/math/trimatch.c:264:5: note: Null pointer dereference fitsh-0.9.4/src/math/trimatch.c:265:2: warning: If memory allocation fails, then there is a possible null pointer dereference: fpoints [nullPointerOutOfMemory] fitsh-0.9.4/src/math/trimatch.c:262:25: note: Assuming allocation function fails fitsh-0.9.4/src/math/trimatch.c:262:10: note: Assignment 'fpoints=(struct point*)malloc(len*sizeof(struct point))', assigned value is 0 fitsh-0.9.4/src/math/trimatch.c:265:2: note: Null pointer dereference fitsh-0.9.4/src/math/trimatch.c:266:2: warning: If memory allocation fails, then there is a possible null pointer dereference: fpoints [nullPointerOutOfMemory] fitsh-0.9.4/src/math/trimatch.c:262:25: note: Assuming allocation function fails fitsh-0.9.4/src/math/trimatch.c:262:10: note: Assignment 'fpoints=(struct point*)malloc(len*sizeof(struct point))', assigned value is 0 fitsh-0.9.4/src/math/trimatch.c:266:2: note: Null pointer dereference fitsh-0.9.4/src/math/trimatch.c:270:5: warning: If memory allocation fails, then there is a possible null pointer dereference: fpoints [nullPointerOutOfMemory] fitsh-0.9.4/src/math/trimatch.c:262:25: note: Assuming allocation function fails fitsh-0.9.4/src/math/trimatch.c:262:10: note: Assignment 'fpoints=(struct point*)malloc(len*sizeof(struct point))', assigned value is 0 fitsh-0.9.4/src/math/trimatch.c:270:5: note: Null pointer dereference fitsh-0.9.4/src/math/trimatch.c:552:3: warning: Either the condition 'ntri!=NULL' is redundant or there is possible null pointer dereference: ntri. [nullPointerRedundantCheck] fitsh-0.9.4/src/math/trimatch.c:575:12: note: Assuming that condition 'ntri!=NULL' is not redundant fitsh-0.9.4/src/math/trimatch.c:552:3: note: Null pointer dereference fitsh-0.9.4/src/math/trimatch.c:670:22: style:inconclusive: Function 'trimatch' argument 1 names different: declaration 'p1' definition 'cat'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/trimatch.h:63:22: note: Function 'trimatch' argument 1 names different: declaration 'p1' definition 'cat'. fitsh-0.9.4/src/math/trimatch.c:670:22: note: Function 'trimatch' argument 1 names different: declaration 'p1' definition 'cat'. fitsh-0.9.4/src/math/trimatch.c:670:30: style:inconclusive: Function 'trimatch' argument 2 names different: declaration 'n1' definition 'catlen'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/trimatch.h:63:29: note: Function 'trimatch' argument 2 names different: declaration 'n1' definition 'catlen'. fitsh-0.9.4/src/math/trimatch.c:670:30: note: Function 'trimatch' argument 2 names different: declaration 'n1' definition 'catlen'. fitsh-0.9.4/src/math/trimatch.c:670:45: style:inconclusive: Function 'trimatch' argument 3 names different: declaration 'p2' definition 'obj'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/trimatch.h:63:40: note: Function 'trimatch' argument 3 names different: declaration 'p2' definition 'obj'. fitsh-0.9.4/src/math/trimatch.c:670:45: note: Function 'trimatch' argument 3 names different: declaration 'p2' definition 'obj'. fitsh-0.9.4/src/math/trimatch.c:670:53: style:inconclusive: Function 'trimatch' argument 4 names different: declaration 'n2' definition 'objlen'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/trimatch.h:63:47: note: Function 'trimatch' argument 4 names different: declaration 'n2' definition 'objlen'. fitsh-0.9.4/src/math/trimatch.c:670:53: note: Function 'trimatch' argument 4 names different: declaration 'n2' definition 'objlen'. fitsh-0.9.4/src/math/trimatch.c:671:25: style:inconclusive: Function 'trimatch' argument 6 names different: declaration 'tmp' definition 'itmp'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/trimatch.h:63:73: note: Function 'trimatch' argument 6 names different: declaration 'tmp' definition 'itmp'. fitsh-0.9.4/src/math/trimatch.c:671:25: note: Function 'trimatch' argument 6 names different: declaration 'tmp' definition 'itmp'. fitsh-0.9.4/src/math/trimatch.c:672:17: style:inconclusive: Function 'trimatch' argument 7 names different: declaration 'hits' definition 'rhits'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/trimatch.h:64:10: note: Function 'trimatch' argument 7 names different: declaration 'hits' definition 'rhits'. fitsh-0.9.4/src/math/trimatch.c:672:17: note: Function 'trimatch' argument 7 names different: declaration 'hits' definition 'rhits'. fitsh-0.9.4/src/math/trimatch.c:672:29: style:inconclusive: Function 'trimatch' argument 8 names different: declaration 'nhit' definition 'rnhit'. [funcArgNamesDifferent] fitsh-0.9.4/src/math/trimatch.h:64:20: note: Function 'trimatch' argument 8 names different: declaration 'nhit' definition 'rnhit'. fitsh-0.9.4/src/math/trimatch.c:672:29: note: Function 'trimatch' argument 8 names different: declaration 'nhit' definition 'rnhit'. fitsh-0.9.4/src/math/trimatch.c:89:39: style: Parameter 's' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/trimatch.c:422:10: style: Variable 'p0' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/math/trimatch.c:422:14: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/math/trimatch.c:422:18: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/math/trimatch.c:549:23: style: Variable 'e1' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/math/trimatch.c:549:27: style: Variable 'e2' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/math/trimatch.c:549:31: style: Variable 'e3' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/math/trimatch.c:579:34: style: Parameter 'tris' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/math/trimatch.c:680:20: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/optcalc.c:210:23: style: Local variable 'dz' shadows outer variable [shadowVariable] fitsh-0.9.4/src/optcalc.c:192:11: note: Shadowed declaration fitsh-0.9.4/src/optcalc.c:210:23: note: Shadow variable fitsh-0.9.4/src/optcalc.c:210:26: style: Local variable 'r2' shadows outer variable [shadowVariable] fitsh-0.9.4/src/optcalc.c:192:14: note: Shadowed declaration fitsh-0.9.4/src/optcalc.c:210:26: note: Shadow variable fitsh-0.9.4/src/optcalc.c:335:12: style: Local variable 'z0' shadows outer variable [shadowVariable] fitsh-0.9.4/src/optcalc.c:308:14: note: Shadowed declaration fitsh-0.9.4/src/optcalc.c:335:12: note: Shadow variable fitsh-0.9.4/src/optcalc.c:362:12: style: Local variable 'z0' shadows outer variable [shadowVariable] fitsh-0.9.4/src/optcalc.c:308:14: note: Shadowed declaration fitsh-0.9.4/src/optcalc.c:362:12: note: Shadow variable fitsh-0.9.4/src/optcalc.c:602:8: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/optcalc.c:578:6: note: Shadowed declaration fitsh-0.9.4/src/optcalc.c:602:8: note: Shadow variable fitsh-0.9.4/src/optcalc.c:602:10: style: Local variable 'n' shadows outer variable [shadowVariable] fitsh-0.9.4/src/optcalc.c:578:8: note: Shadowed declaration fitsh-0.9.4/src/optcalc.c:602:10: note: Shadow variable fitsh-0.9.4/src/optcalc.c:629:8: style: Local variable 'i' shadows outer variable [shadowVariable] fitsh-0.9.4/src/optcalc.c:578:6: note: Shadowed declaration fitsh-0.9.4/src/optcalc.c:629:8: note: Shadow variable fitsh-0.9.4/src/optcalc.c:140:72: style: Parameter 'alphas' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/optcalc.c:160:72: style: Parameter 'alphas' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/optcalc.c:296:50: style: Parameter 's' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/optcalc.c:447:18: style: Variable 'l' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/optcalc.c:491:18: style: Variable 'lnext' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/optcalc.c:518:34: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/optcalc.c:556:30: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/projection.c:255:32: warning: Function 'projection_do_coord' argument order different: declaration 'ra0, de0, roll0, ra, de, rx, ry, rz' definition 'ra, de, ra0, de0, roll0, rx, ry, rz' [funcArgOrderDifferent] fitsh-0.9.4/src/projection.h:42:32: note: Function 'projection_do_coord' argument order different: declaration 'ra0, de0, roll0, ra, de, rx, ry, rz' definition 'ra, de, ra0, de0, roll0, rx, ry, rz' fitsh-0.9.4/src/projection.c:255:32: note: Function 'projection_do_coord' argument order different: declaration 'ra0, de0, roll0, ra, de, rx, ry, rz' definition 'ra, de, ra0, de0, roll0, rx, ry, rz' fitsh-0.9.4/src/projection.c:113:94: style: Parameter 'rz' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/pselect.c:105:8: warning: If memory allocation fails, then there is a possible null pointer dereference: index [nullPointerOutOfMemory] fitsh-0.9.4/src/pselect.c:100:24: note: Assuming allocation function fails fitsh-0.9.4/src/pselect.c:100:11: note: Assignment 'index=(int*)malloc(sizeof(int)*n)', assigned value is 0 fitsh-0.9.4/src/pselect.c:105:8: note: Null pointer dereference fitsh-0.9.4/src/pselect.c:109:8: warning: If memory allocation fails, then there is a possible null pointer dereference: index [nullPointerOutOfMemory] fitsh-0.9.4/src/pselect.c:100:24: note: Assuming allocation function fails fitsh-0.9.4/src/pselect.c:100:11: note: Assignment 'index=(int*)malloc(sizeof(int)*n)', assigned value is 0 fitsh-0.9.4/src/pselect.c:109:8: note: Null pointer dereference fitsh-0.9.4/src/pselect.c:66:9: style: Variable 'points' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/pselect.c:90:5: style: Variable 'npp' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/psf-base.c:15:25: style:inconclusive: Function 'psf_symmetrize' argument 1 names different: declaration 'p' definition 'pdata'. [funcArgNamesDifferent] fitsh-0.9.4/src/psf-base.h:12:25: note: Function 'psf_symmetrize' argument 1 names different: declaration 'p' definition 'pdata'. fitsh-0.9.4/src/psf-base.c:15:25: note: Function 'psf_symmetrize' argument 1 names different: declaration 'p' definition 'pdata'. fitsh-0.9.4/src/psf-determine.c:256:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/psf-determine.c:300:22: style: The if condition is the same as the previous if condition [duplicateCondition] fitsh-0.9.4/src/psf-determine.c:299:22: note: First condition fitsh-0.9.4/src/psf-determine.c:300:22: note: Second condition fitsh-0.9.4/src/psf-determine.c:480:22: style: The if condition is the same as the previous if condition [duplicateCondition] fitsh-0.9.4/src/psf-determine.c:479:22: note: First condition fitsh-0.9.4/src/psf-determine.c:480:22: note: Second condition fitsh-0.9.4/src/psf-determine.c:604:22: style: The if condition is the same as the previous if condition [duplicateCondition] fitsh-0.9.4/src/psf-determine.c:603:22: note: First condition fitsh-0.9.4/src/psf-determine.c:604:22: note: Second condition fitsh-0.9.4/src/psf-determine.c:788:22: style: The if condition is the same as the previous if condition [duplicateCondition] fitsh-0.9.4/src/psf-determine.c:787:22: note: First condition fitsh-0.9.4/src/psf-determine.c:788:22: note: Second condition fitsh-0.9.4/src/psf-determine.c:954:22: style: The if condition is the same as the previous if condition [duplicateCondition] fitsh-0.9.4/src/psf-determine.c:953:22: note: First condition fitsh-0.9.4/src/psf-determine.c:954:22: note: Second condition fitsh-0.9.4/src/psf-determine.c:1007:22: style: The if condition is the same as the previous if condition [duplicateCondition] fitsh-0.9.4/src/psf-determine.c:1006:22: note: First condition fitsh-0.9.4/src/psf-determine.c:1007:22: note: Second condition fitsh-0.9.4/src/psf-determine.c:563:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rings [nullPointerOutOfMemory] fitsh-0.9.4/src/psf-determine.c:561:22: note: Assuming allocation function fails fitsh-0.9.4/src/psf-determine.c:561:8: note: Assignment 'rings=(struct ring*)malloc(sizeof(struct ring)*nring)', assigned value is 0 fitsh-0.9.4/src/psf-determine.c:563:5: note: Null pointer dereference fitsh-0.9.4/src/psf-determine.c:565:2: warning: If memory allocation fails, then there is a possible null pointer dereference: rings [nullPointerOutOfMemory] fitsh-0.9.4/src/psf-determine.c:561:22: note: Assuming allocation function fails fitsh-0.9.4/src/psf-determine.c:561:8: note: Assignment 'rings=(struct ring*)malloc(sizeof(struct ring)*nring)', assigned value is 0 fitsh-0.9.4/src/psf-determine.c:565:2: note: Null pointer dereference fitsh-0.9.4/src/psf-determine.c:566:2: warning: If memory allocation fails, then there is a possible null pointer dereference: rings [nullPointerOutOfMemory] fitsh-0.9.4/src/psf-determine.c:561:22: note: Assuming allocation function fails fitsh-0.9.4/src/psf-determine.c:561:8: note: Assignment 'rings=(struct ring*)malloc(sizeof(struct ring)*nring)', assigned value is 0 fitsh-0.9.4/src/psf-determine.c:566:2: note: Null pointer dereference fitsh-0.9.4/src/psf-determine.c:571:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rings [nullPointerOutOfMemory] fitsh-0.9.4/src/psf-determine.c:561:22: note: Assuming allocation function fails fitsh-0.9.4/src/psf-determine.c:561:8: note: Assignment 'rings=(struct ring*)malloc(sizeof(struct ring)*nring)', assigned value is 0 fitsh-0.9.4/src/psf-determine.c:571:5: note: Null pointer dereference fitsh-0.9.4/src/psf-determine.c:572:2: warning: If memory allocation fails, then there is a possible null pointer dereference: rings [nullPointerOutOfMemory] fitsh-0.9.4/src/psf-determine.c:561:22: note: Assuming allocation function fails fitsh-0.9.4/src/psf-determine.c:561:8: note: Assignment 'rings=(struct ring*)malloc(sizeof(struct ring)*nring)', assigned value is 0 fitsh-0.9.4/src/psf-determine.c:572:2: note: Null pointer dereference fitsh-0.9.4/src/psf-determine.c:573:10: warning: If memory allocation fails, then there is a possible null pointer dereference: rings [nullPointerOutOfMemory] fitsh-0.9.4/src/psf-determine.c:561:22: note: Assuming allocation function fails fitsh-0.9.4/src/psf-determine.c:561:8: note: Assignment 'rings=(struct ring*)malloc(sizeof(struct ring)*nring)', assigned value is 0 fitsh-0.9.4/src/psf-determine.c:573:10: note: Null pointer dereference fitsh-0.9.4/src/psf-determine.c:574:7: warning: If memory allocation fails, then there is a possible null pointer dereference: rings [nullPointerOutOfMemory] fitsh-0.9.4/src/psf-determine.c:561:22: note: Assuming allocation function fails fitsh-0.9.4/src/psf-determine.c:561:8: note: Assignment 'rings=(struct ring*)malloc(sizeof(struct ring)*nring)', assigned value is 0 fitsh-0.9.4/src/psf-determine.c:574:7: note: Null pointer dereference fitsh-0.9.4/src/psf-determine.c:979:32: warning: If memory allocation fails, then there is a possible null pointer dereference: pvals [nullPointerOutOfMemory] fitsh-0.9.4/src/psf-determine.c:946:24: note: Assuming allocation function fails fitsh-0.9.4/src/psf-determine.c:946:8: note: Assignment 'pvals=(double*)malloc(sizeof(double)*nyval)', assigned value is 0 fitsh-0.9.4/src/psf-determine.c:979:32: note: Null pointer dereference fitsh-0.9.4/src/psf-determine.c:111:36: style:inconclusive: Function 'psf_determine_native' argument 9 names different: declaration 'p' definition 'out'. [funcArgNamesDifferent] fitsh-0.9.4/src/psf-determine.h:50:37: note: Function 'psf_determine_native' argument 9 names different: declaration 'p' definition 'out'. fitsh-0.9.4/src/psf-determine.c:111:36: note: Function 'psf_determine_native' argument 9 names different: declaration 'p' definition 'out'. fitsh-0.9.4/src/psf-determine.c:241:36: style:inconclusive: Function 'psf_determine_integral' argument 9 names different: declaration 'p' definition 'out'. [funcArgNamesDifferent] fitsh-0.9.4/src/psf-determine.h:53:37: note: Function 'psf_determine_integral' argument 9 names different: declaration 'p' definition 'out'. fitsh-0.9.4/src/psf-determine.c:241:36: note: Function 'psf_determine_integral' argument 9 names different: declaration 'p' definition 'out'. fitsh-0.9.4/src/psf-determine.c:536:36: style:inconclusive: Function 'psf_determine_circle' argument 9 names different: declaration 'p' definition 'out'. [funcArgNamesDifferent] fitsh-0.9.4/src/psf-determine.h:56:37: note: Function 'psf_determine_circle' argument 9 names different: declaration 'p' definition 'out'. fitsh-0.9.4/src/psf-determine.c:536:36: note: Function 'psf_determine_circle' argument 9 names different: declaration 'p' definition 'out'. fitsh-0.9.4/src/psf-determine.c:248:11: style: Variable 'wi' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/psf-determine.c:544:11: style: Variable 'wi' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/psf-determine.c:547:16: style: Variable 'rw' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/psf-determine.c:809:16: style: Parameter 'pd' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/psf-determine.c:932:11: style: Variable 'wi' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/psf-io.c:87:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/psf-io.c:25:29: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-base.c:152:2: error: Common realloc mistake: 'stars' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/star-base.c:175:2: error: Common realloc mistake: 'cands' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/star-base.c:140:9: warning: If memory allocation fails, then there is a possible null pointer dereference: tstars [nullPointerOutOfMemory] fitsh-0.9.4/src/star-base.c:139:23: note: Assuming allocation function fails fitsh-0.9.4/src/star-base.c:139:9: note: Assignment 'tstars=(struct star*)malloc(sizeof(struct star)*nstar)', assigned value is 0 fitsh-0.9.4/src/star-base.c:140:9: note: Null pointer dereference fitsh-0.9.4/src/star-base.c:144:12: warning: If memory allocation fails, then there is a possible null pointer dereference: tstars [nullPointerOutOfMemory] fitsh-0.9.4/src/star-base.c:139:23: note: Assuming allocation function fails fitsh-0.9.4/src/star-base.c:139:9: note: Assignment 'tstars=(struct star*)malloc(sizeof(struct star)*nstar)', assigned value is 0 fitsh-0.9.4/src/star-base.c:144:12: note: Null pointer dereference fitsh-0.9.4/src/star-base.c:118:13: style: Variable 'c1' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/star-base.c:118:17: style: Variable 'c2' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/star-base.c:243:48: style: Variable 'a0' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/star-base.c:290:10: style: Variable 'wi' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/star-base.c:385:20: style: Variable 'mom' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/star-cand-biq.c:145:3: error: Common realloc mistake: 'cands' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/star-cand-biq.c:54:48: style: Parameter 'pcf' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-cand-lnk.c:174:3: error: Common realloc mistake: 'cands' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/star-cand-lnk.c:114:5: warning: If memory allocation fails, then there is a possible null pointer dereference: lbgs [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-lnk.c:112:31: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-lnk.c:112:10: note: Assignment 'lbgs=(struct lbackground*)malloc(sizeof(struct lbackground)*icand)', assigned value is 0 fitsh-0.9.4/src/star-cand-lnk.c:114:5: note: Null pointer dereference fitsh-0.9.4/src/star-cand-lnk.c:115:3: warning: If memory allocation fails, then there is a possible null pointer dereference: lbgs [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-lnk.c:112:31: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-lnk.c:112:10: note: Assignment 'lbgs=(struct lbackground*)malloc(sizeof(struct lbackground)*icand)', assigned value is 0 fitsh-0.9.4/src/star-cand-lnk.c:115:3: note: Null pointer dereference fitsh-0.9.4/src/star-cand-lnk.c:116:3: warning: If memory allocation fails, then there is a possible null pointer dereference: lbgs [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-lnk.c:112:31: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-lnk.c:112:10: note: Assignment 'lbgs=(struct lbackground*)malloc(sizeof(struct lbackground)*icand)', assigned value is 0 fitsh-0.9.4/src/star-cand-lnk.c:116:3: note: Null pointer dereference fitsh-0.9.4/src/star-cand-lnk.c:117:3: warning: If memory allocation fails, then there is a possible null pointer dereference: lbgs [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-lnk.c:112:31: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-lnk.c:112:10: note: Assignment 'lbgs=(struct lbackground*)malloc(sizeof(struct lbackground)*icand)', assigned value is 0 fitsh-0.9.4/src/star-cand-lnk.c:117:3: note: Null pointer dereference fitsh-0.9.4/src/star-cand-lnk.c:118:3: warning: If memory allocation fails, then there is a possible null pointer dereference: lbgs [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-lnk.c:112:31: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-lnk.c:112:10: note: Assignment 'lbgs=(struct lbackground*)malloc(sizeof(struct lbackground)*icand)', assigned value is 0 fitsh-0.9.4/src/star-cand-lnk.c:118:3: note: Null pointer dereference fitsh-0.9.4/src/star-cand-lnk.c:38:9: style: Parameter 'srcrange' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-cand-pp.c:133:3: error: Common realloc mistake: 'cands' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/star-cand-pp.c:242:5: warning: If memory allocation fails, then there is a possible null pointer dereference: fillmask [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-pp.c:228:24: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-pp.c:228:11: note: Assignment 'fillmask=(int*)malloc(sizeof(int)*bs*bs)', assigned value is 0 fitsh-0.9.4/src/star-cand-pp.c:242:5: note: Null pointer dereference fitsh-0.9.4/src/star-cand-pp.c:225:5: style: Variable 'hbs' is reassigned a value before the old one has been used. [redundantAssignment] fitsh-0.9.4/src/star-cand-pp.c:224:5: note: hbs is assigned fitsh-0.9.4/src/star-cand-pp.c:225:5: note: hbs is overwritten fitsh-0.9.4/src/star-cand-pp.c:27:128: style:inconclusive: Function 'search_star_candidates' argument 7 names different: declaration 'bg' definition 'spbg'. [funcArgNamesDifferent] fitsh-0.9.4/src/stars.h:256:28: note: Function 'search_star_candidates' argument 7 names different: declaration 'bg' definition 'spbg'. fitsh-0.9.4/src/star-cand-pp.c:27:128: note: Function 'search_star_candidates' argument 7 names different: declaration 'bg' definition 'spbg'. fitsh-0.9.4/src/star-cand-pp.c:27:93: style: Parameter 'srcrange' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-cand-trb.c:64:20: style: Condition 'neig[j]!=NULL' is always true [knownConditionTrueFalse] fitsh-0.9.4/src/star-cand-trb.c:157:3: error: Common realloc mistake: 'cands' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/star-cand-trb.c:183:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tps [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-trb.c:181:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-trb.c:181:6: note: Assignment 'tps=(struct tpoint*)malloc(sizeof(struct tpoint)*ncand)', assigned value is 0 fitsh-0.9.4/src/star-cand-trb.c:183:5: note: Null pointer dereference fitsh-0.9.4/src/star-cand-trb.c:184:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tps [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-trb.c:181:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-trb.c:181:6: note: Assignment 'tps=(struct tpoint*)malloc(sizeof(struct tpoint)*ncand)', assigned value is 0 fitsh-0.9.4/src/star-cand-trb.c:184:2: note: Null pointer dereference fitsh-0.9.4/src/star-cand-trb.c:185:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tps [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-trb.c:181:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-trb.c:181:6: note: Assignment 'tps=(struct tpoint*)malloc(sizeof(struct tpoint)*ncand)', assigned value is 0 fitsh-0.9.4/src/star-cand-trb.c:185:2: note: Null pointer dereference fitsh-0.9.4/src/star-cand-trb.c:208:3: warning: If memory allocation fails, then there is a possible null pointer dereference: darr [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-trb.c:202:23: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-trb.c:202:7: note: Assignment 'darr=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/star-cand-trb.c:208:3: note: Null pointer dereference fitsh-0.9.4/src/star-cand-trb.c:212:5: warning: If memory allocation fails, then there is a possible null pointer dereference: darr [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-trb.c:202:23: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-trb.c:202:7: note: Assignment 'darr=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/star-cand-trb.c:212:5: note: Null pointer dereference fitsh-0.9.4/src/star-cand-trb.c:44:33: style: Parameter 'p1' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-cand-trb.c:44:44: style: Parameter 'p2' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-cand-trb.c:44:55: style: Parameter 'points' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-cand-trb.c:106:97: style: Parameter 'srcrange' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-cand-trb.c:108:24: style: Variable 'nc' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/star-cand-trb.c:108:28: style: Variable 'nc1' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/star-cand-trb.c:108:33: style: Variable 'nc2' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/star-draw.c:113:50: style: Parameter 'mom' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:725:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/star-model.c:828:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/star-model.c:1774:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/star-model.c:744:2: error: Common realloc mistake: 'eevals' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/star-model.c:847:2: error: Common realloc mistake: 'eevals' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/star-model.c:1232:2: error: Common realloc mistake: 'stars' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/star-model.c:1420:2: error: Common realloc mistake: 'eevals' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/star-model.c:1471:2: error: Common realloc mistake: 'eevals' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/star-model.c:1760:3: error: Common realloc mistake: 'ixs' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/star-model.c:1037:2: warning: If memory allocation fails, then there is a possible null pointer dereference: afp [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1033:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1033:6: note: Assignment 'afp=(double*)malloc(sizeof(double)*nfv)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1037:2: note: Null pointer dereference fitsh-0.9.4/src/star-model.c:1038:2: warning: If memory allocation fails, then there is a possible null pointer dereference: afp [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1033:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1033:6: note: Assignment 'afp=(double*)malloc(sizeof(double)*nfv)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1038:2: note: Null pointer dereference fitsh-0.9.4/src/star-model.c:1039:2: warning: If memory allocation fails, then there is a possible null pointer dereference: afp [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1033:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1033:6: note: Assignment 'afp=(double*)malloc(sizeof(double)*nfv)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1039:2: note: Null pointer dereference fitsh-0.9.4/src/star-model.c:1044:5: warning: If memory allocation fails, then there is a possible null pointer dereference: afp [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1033:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1033:6: note: Assignment 'afp=(double*)malloc(sizeof(double)*nfv)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1044:5: note: Null pointer dereference fitsh-0.9.4/src/star-model.c:1045:2: warning: If memory allocation fails, then there is a possible null pointer dereference: afp [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1033:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1033:6: note: Assignment 'afp=(double*)malloc(sizeof(double)*nfv)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1045:2: note: Null pointer dereference fitsh-0.9.4/src/star-model.c:1046:2: warning: If memory allocation fails, then there is a possible null pointer dereference: afp [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1033:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1033:6: note: Assignment 'afp=(double*)malloc(sizeof(double)*nfv)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1046:2: note: Null pointer dereference fitsh-0.9.4/src/star-model.c:1047:2: warning: If memory allocation fails, then there is a possible null pointer dereference: afp [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1033:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1033:6: note: Assignment 'afp=(double*)malloc(sizeof(double)*nfv)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1047:2: note: Null pointer dereference fitsh-0.9.4/src/star-model.c:1048:2: warning: If memory allocation fails, then there is a possible null pointer dereference: afp [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1033:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1033:6: note: Assignment 'afp=(double*)malloc(sizeof(double)*nfv)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1048:2: note: Null pointer dereference fitsh-0.9.4/src/star-model.c:1713:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sfs [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1711:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1711:6: note: Assignment 'sfs=(struct sfdata*)malloc(sizeof(struct sfdata)*nstar)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1713:5: note: Null pointer dereference fitsh-0.9.4/src/star-model.c:1714:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sfs [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1711:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1711:6: note: Assignment 'sfs=(struct sfdata*)malloc(sizeof(struct sfdata)*nstar)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1714:2: note: Null pointer dereference fitsh-0.9.4/src/star-model.c:1715:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sfs [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1711:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1711:6: note: Assignment 'sfs=(struct sfdata*)malloc(sizeof(struct sfdata)*nstar)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1715:2: note: Null pointer dereference fitsh-0.9.4/src/star-model.c:1723:5: warning: If memory allocation fails, then there is a possible null pointer dereference: yvaldata [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1721:27: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1721:11: note: Assignment 'yvaldata=(double*)malloc(sizeof(double)*asize)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1723:5: note: Null pointer dereference fitsh-0.9.4/src/star-model.c:1727:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ypl [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1724:23: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1724:6: note: Assignment 'ypl=(double**)malloc(sizeof(double*)*nstar)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1727:5: note: Null pointer dereference fitsh-0.9.4/src/star-model.c:1736:33: warning: If memory allocation fails, then there is a possible null pointer dereference: ypl [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1724:23: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1724:6: note: Assignment 'ypl=(double**)malloc(sizeof(double*)*nstar)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1736:33: note: Null pointer dereference fitsh-0.9.4/src/star-model.c:1727:20: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fitsh-0.9.4/src/star-model.c:1721:27: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1721:11: note: Assignment 'yvaldata=(double*)malloc(sizeof(double)*asize)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1727:20: note: Null pointer addition fitsh-0.9.4/src/star-model.c:1170:37: style:inconclusive: Function 'fit_star_single_model' argument 7 names different: declaration 'fgp' definition 'sfp'. [funcArgNamesDifferent] fitsh-0.9.4/src/stars.h:224:38: note: Function 'fit_star_single_model' argument 7 names different: declaration 'fgp' definition 'sfp'. fitsh-0.9.4/src/star-model.c:1170:37: note: Function 'fit_star_single_model' argument 7 names different: declaration 'fgp' definition 'sfp'. fitsh-0.9.4/src/star-model.c:1170:45: style:inconclusive: Function 'fit_star_single_model' argument 8 names different: declaration 'model' definition 'shapemodel'. [funcArgNamesDifferent] fitsh-0.9.4/src/stars.h:224:46: note: Function 'fit_star_single_model' argument 8 names different: declaration 'model' definition 'shapemodel'. fitsh-0.9.4/src/star-model.c:1170:45: note: Function 'fit_star_single_model' argument 8 names different: declaration 'model' definition 'shapemodel'. fitsh-0.9.4/src/star-model.c:56:45: style: Parameter 'a' can be declared as pointer to const. However it seems that 'gauss_2d_nmom_exact' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fitsh-0.9.4/src/star-model.c:1031:8: note: You might need to cast the function pointer here fitsh-0.9.4/src/star-model.c:56:45: note: Parameter 'a' can be declared as pointer to const fitsh-0.9.4/src/star-model.c:201:45: style: Parameter 'a' can be declared as pointer to const. However it seems that 'gauss_2d_wmom_exact' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fitsh-0.9.4/src/star-model.c:1002:9: note: You might need to cast the function pointer here fitsh-0.9.4/src/star-model.c:201:45: note: Parameter 'a' can be declared as pointer to const fitsh-0.9.4/src/star-model.c:307:50: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:711:44: style: Parameter 'sfp' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:785:72: style: Parameter 'wc' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:810:44: style: Parameter 'sfp' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:893:81: style: Parameter 'wc' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:914:51: style: Parameter 'yvals' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:915:16: style: Parameter 'loc' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:915:31: style: Parameter 'shp' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:915:44: style: Parameter 'sfp' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:920:75: style: Parameter 'wc' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:921:44: style: Parameter 'sfp' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:983:75: style: Parameter 'wc' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:985:30: style: Parameter 'sfp' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:1389:82: style: Parameter 'loc' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:1389:97: style: Parameter 'shp' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:1440:91: style: Parameter 'loc' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:1440:106: style: Parameter 'shp' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:1493:37: style: Parameter 'ipoints' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:1493:65: style: Parameter 'yvals' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:1493:85: style: Parameter 'loc' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:1493:100: style: Parameter 'shp' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-model.c:1660:8: style: Variable 'stars' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/star-model.c:1667:8: style: Variable 'stars' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/star-model.c:1674:8: style: Variable 'stars' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/star-model.c:1681:8: style: Variable 'stars' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/star-model.c:160:5: style: Variable 'efc' is assigned a value that is never used. [unreadVariable] fitsh-0.9.4/src/star-psf.c:291:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/star-psf.c:210:7: style: Condition 'i' is always false [knownConditionTrueFalse] fitsh-0.9.4/src/star-psf.c:209:11: note: Calling function 'fit_psf' returns 0 fitsh-0.9.4/src/star-psf.c:209:11: note: Assignment 'i=fit_psf(wc->nipoint,yvals,fitpnt,wc,&loc,pfp,tpd)', assigned value is 0 fitsh-0.9.4/src/star-psf.c:210:7: note: Condition 'i' is always false fitsh-0.9.4/src/star-psf.c:220:2: error: Common realloc mistake: 'stars' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/star-psf.c:298:2: error: Common realloc mistake: 'stars' nulled but not freed upon failure [memleakOnRealloc] fitsh-0.9.4/src/star-psf.c:38:41: style: Parameter 'a' can be declared as pointer to const. However it seems that 'psf_2d_exact_xy' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fitsh-0.9.4/src/star-psf.c:94:11: note: You might need to cast the function pointer here fitsh-0.9.4/src/star-psf.c:38:41: note: Parameter 'a' can be declared as pointer to const fitsh-0.9.4/src/star-psf.c:85:64: style: Parameter 'wc' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-psf.c:86:28: style: Parameter 'pfp' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-psf.c:255:115: style: Parameter 'tpd' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/star-psf.c:258:13: style: Variable 'wc' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/statistics.c:40:21: style:inconclusive: Function 'mean' argument 1 names different: declaration 'data' definition 'arr'. [funcArgNamesDifferent] fitsh-0.9.4/src/statistics.h:17:21: note: Function 'mean' argument 1 names different: declaration 'data' definition 'arr'. fitsh-0.9.4/src/statistics.c:40:21: note: Function 'mean' argument 1 names different: declaration 'data' definition 'arr'. fitsh-0.9.4/src/statistics.c:40:21: style: Parameter 'arr' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/str.c:18:39: style:inconclusive: Function 'strkcpy' argument 3 names different: declaration 'max' definition 'size'. [funcArgNamesDifferent] fitsh-0.9.4/src/str.h:13:39: note: Function 'strkcpy' argument 3 names different: declaration 'max' definition 'size'. fitsh-0.9.4/src/str.c:18:39: note: Function 'strkcpy' argument 3 names different: declaration 'max' definition 'size'. fitsh-0.9.4/src/str.c:27:22: style:inconclusive: Function 'strappend' argument 1 names different: declaration 'string' definition 'str'. [funcArgNamesDifferent] fitsh-0.9.4/src/str.h:18:22: note: Function 'strappend' argument 1 names different: declaration 'string' definition 'str'. fitsh-0.9.4/src/str.c:27:22: note: Function 'strappend' argument 1 names different: declaration 'string' definition 'str'. fitsh-0.9.4/src/str.c:48:24: style:inconclusive: Function 'vstrappendf' argument 1 names different: declaration 'string' definition 'str'. [funcArgNamesDifferent] fitsh-0.9.4/src/str.h:28:24: note: Function 'vstrappendf' argument 1 names different: declaration 'string' definition 'str'. fitsh-0.9.4/src/str.c:48:24: note: Function 'vstrappendf' argument 1 names different: declaration 'string' definition 'str'. fitsh-0.9.4/src/str.c:48:34: style:inconclusive: Function 'vstrappendf' argument 2 names different: declaration 'format' definition 'fmt'. [funcArgNamesDifferent] fitsh-0.9.4/src/str.h:28:37: note: Function 'vstrappendf' argument 2 names different: declaration 'format' definition 'fmt'. fitsh-0.9.4/src/str.c:48:34: note: Function 'vstrappendf' argument 2 names different: declaration 'format' definition 'fmt'. fitsh-0.9.4/src/str.c:74:23: style:inconclusive: Function 'strappendf' argument 1 names different: declaration 'string' definition 'str'. [funcArgNamesDifferent] fitsh-0.9.4/src/str.h:25:23: note: Function 'strappendf' argument 1 names different: declaration 'string' definition 'str'. fitsh-0.9.4/src/str.c:74:23: note: Function 'strappendf' argument 1 names different: declaration 'string' definition 'str'. fitsh-0.9.4/src/str.c:74:33: style:inconclusive: Function 'strappendf' argument 2 names different: declaration 'format' definition 'fmt'. [funcArgNamesDifferent] fitsh-0.9.4/src/str.h:25:36: note: Function 'strappendf' argument 2 names different: declaration 'format' definition 'fmt'. fitsh-0.9.4/src/str.c:74:33: note: Function 'strappendf' argument 2 names different: declaration 'format' definition 'fmt'. fitsh-0.9.4/src/str.c:18:32: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/str.c:27:32: style: Parameter 'cat' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/str.c:48:34: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/tensor.c:20:51: style: Parameter 'arr' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/transform.c:118:12: style: Condition '!type' is always false [knownConditionTrueFalse] fitsh-0.9.4/src/transform.c:258:21: style: Condition '*(char*)(&a)==1' is always true [knownConditionTrueFalse] fitsh-0.9.4/src/transform.c:257:4: note: Assignment 'a=1', assigned value is 1 fitsh-0.9.4/src/transform.c:258:21: note: Condition '*(char*)(&a)==1' is always true fitsh-0.9.4/src/transform.c:409:5: warning: If memory allocation fails, then there is a possible null pointer dereference: jxx [nullPointerOutOfMemory] fitsh-0.9.4/src/transform.c:403:22: note: Assuming allocation function fails fitsh-0.9.4/src/transform.c:403:6: note: Assignment 'jxx=(double*)malloc(sizeof(double)*jnvar)', assigned value is 0 fitsh-0.9.4/src/transform.c:409:5: note: Null pointer dereference fitsh-0.9.4/src/transform.c:409:12: warning: If memory allocation fails, then there is a possible null pointer dereference: jxy [nullPointerOutOfMemory] fitsh-0.9.4/src/transform.c:404:22: note: Assuming allocation function fails fitsh-0.9.4/src/transform.c:404:6: note: Assignment 'jxy=(double*)malloc(sizeof(double)*jnvar)', assigned value is 0 fitsh-0.9.4/src/transform.c:409:12: note: Null pointer dereference fitsh-0.9.4/src/transform.c:409:19: warning: If memory allocation fails, then there is a possible null pointer dereference: jyx [nullPointerOutOfMemory] fitsh-0.9.4/src/transform.c:405:22: note: Assuming allocation function fails fitsh-0.9.4/src/transform.c:405:6: note: Assignment 'jyx=(double*)malloc(sizeof(double)*jnvar)', assigned value is 0 fitsh-0.9.4/src/transform.c:409:19: note: Null pointer dereference fitsh-0.9.4/src/transform.c:409:26: warning: If memory allocation fails, then there is a possible null pointer dereference: jyy [nullPointerOutOfMemory] fitsh-0.9.4/src/transform.c:406:22: note: Assuming allocation function fails fitsh-0.9.4/src/transform.c:406:6: note: Assignment 'jyy=(double*)malloc(sizeof(double)*jnvar)', assigned value is 0 fitsh-0.9.4/src/transform.c:409:26: note: Null pointer dereference fitsh-0.9.4/src/transform.c:412:12: warning: If memory allocation fails, then there is a possible null pointer dereference: jxx [nullPointerOutOfMemory] fitsh-0.9.4/src/transform.c:403:22: note: Assuming allocation function fails fitsh-0.9.4/src/transform.c:403:6: note: Assignment 'jxx=(double*)malloc(sizeof(double)*jnvar)', assigned value is 0 fitsh-0.9.4/src/transform.c:412:12: note: Null pointer dereference fitsh-0.9.4/src/transform.c:413:3: warning: If memory allocation fails, then there is a possible null pointer dereference: jxy [nullPointerOutOfMemory] fitsh-0.9.4/src/transform.c:404:22: note: Assuming allocation function fails fitsh-0.9.4/src/transform.c:404:6: note: Assignment 'jxy=(double*)malloc(sizeof(double)*jnvar)', assigned value is 0 fitsh-0.9.4/src/transform.c:413:3: note: Null pointer dereference fitsh-0.9.4/src/transform.c:414:3: warning: If memory allocation fails, then there is a possible null pointer dereference: jyx [nullPointerOutOfMemory] fitsh-0.9.4/src/transform.c:405:22: note: Assuming allocation function fails fitsh-0.9.4/src/transform.c:405:6: note: Assignment 'jyx=(double*)malloc(sizeof(double)*jnvar)', assigned value is 0 fitsh-0.9.4/src/transform.c:414:3: note: Null pointer dereference fitsh-0.9.4/src/transform.c:415:3: warning: If memory allocation fails, then there is a possible null pointer dereference: jyy [nullPointerOutOfMemory] fitsh-0.9.4/src/transform.c:406:22: note: Assuming allocation function fails fitsh-0.9.4/src/transform.c:406:6: note: Assignment 'jyy=(double*)malloc(sizeof(double)*jnvar)', assigned value is 0 fitsh-0.9.4/src/transform.c:415:3: note: Null pointer dereference fitsh-0.9.4/src/transform.c:269:4: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] fitsh-0.9.4/src/transform.c:287:4: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] fitsh-0.9.4/src/transform.c:318:37: style:inconclusive: Function 'transformation_write_data' argument 1 names different: declaration 'fr' definition 'fw'. [funcArgNamesDifferent] fitsh-0.9.4/src/transform.h:34:37: note: Function 'transformation_write_data' argument 1 names different: declaration 'fr' definition 'fw'. fitsh-0.9.4/src/transform.c:318:37: note: Function 'transformation_write_data' argument 1 names different: declaration 'fr' definition 'fw'. fitsh-0.9.4/src/transform.c:39:67: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/transform.c:81:54: style: Parameter 'tf' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/transform.c:170:19: style: Parameter 'b1' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/transform.c:170:28: style: Parameter 'b2' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/transform.c:244:57: style: Parameter 'fit' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/transform.c:266:8: style: Variable 'b' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/transform.c:284:8: style: Variable 'b' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/transform.c:299:62: style: Parameter 'fit' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/transform.c:370:50: style: Parameter 'tf' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/ui.c:43:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITSH_VERSION [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ui.c:68:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITSH_MAINT_EMAIL [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ui.c:81:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/ui.c:111:18: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] fitsh-0.9.4/src/ui.c:139:38: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] fitsh-0.9.4/src/ui.c:22:26: style:inconclusive: Function 'get_progname' argument 1 names different: declaration 'argv0' definition 'a0'. [funcArgNamesDifferent] fitsh-0.9.4/src/fitsh.h:69:26: note: Function 'get_progname' argument 1 names different: declaration 'argv0' definition 'a0'. fitsh-0.9.4/src/ui.c:22:26: note: Function 'get_progname' argument 1 names different: declaration 'argv0' definition 'a0'. fitsh-0.9.4/src/ui.c:94:28: style:inconclusive: Function 'parse_mask_flags' argument 1 names different: declaration 'list' definition 'par'. [funcArgNamesDifferent] fitsh-0.9.4/src/fitsh.h:83:28: note: Function 'parse_mask_flags' argument 1 names different: declaration 'list' definition 'par'. fitsh-0.9.4/src/ui.c:94:28: note: Function 'parse_mask_flags' argument 1 names different: declaration 'list' definition 'par'. fitsh-0.9.4/src/ui.c:118:33: style:inconclusive: Function 'parse_fits_data_param' argument 1 names different: declaration 'param' definition 'par'. [funcArgNamesDifferent] fitsh-0.9.4/src/fitsh.h:97:33: note: Function 'parse_fits_data_param' argument 1 names different: declaration 'param' definition 'par'. fitsh-0.9.4/src/ui.c:118:33: note: Function 'parse_fits_data_param' argument 1 names different: declaration 'param' definition 'par'. fitsh-0.9.4/src/ui.c:31:54: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/ui.c:49:78: style: Parameter 'synopsis' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/ui.c:49:93: style: Parameter 'description' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/ui.c:188:29: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/ui.c:199:38: style: Parameter 'maxmemstr' can be declared as pointer to const [constParameterPointer] fitsh-0.9.4/src/ui.c:161:56: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] fitsh-0.9.4/src/weight-gen.c:31:10: style: Variable 'w1' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/weight-gen.c:31:14: style: Variable 'w2' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/weight-gen.c:135:10: style: Variable 'ww' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/weight-gen.c:69:18: warning: Uninitialized variable: mid [uninitvar] fitsh-0.9.4/src/weight-gen.c:61:13: note: Assuming condition is false fitsh-0.9.4/src/weight-gen.c:69:18: note: Uninitialized variable: mid fitsh-0.9.4/src/weight-io.c:69:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/weight-io.c:119:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VBOOLEAN [valueFlowBailoutIncompleteVar] fitsh-0.9.4/src/weight-io.c:47:11: style: Variable 'ww' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/weight-io.c:103:14: style: Variable 'hd' can be declared as pointer to const [constVariablePointer] fitsh-0.9.4/src/io/tokenize.c:70:11: error: Null pointer dereference: buff [ctunullpointer] fitsh-0.9.4/src/ficalib.c:1521:12: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1521:12: note: Assignment 'wms=strdup(mstr)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1522:28: note: Calling function remove_spaces_and_comments, 1st argument is null fitsh-0.9.4/src/io/tokenize.c:70:11: note: Dereferencing argument buff that is null fitsh-0.9.4/src/io/tokenize.c:84:11: error: Null pointer dereference: buff [ctunullpointer] fitsh-0.9.4/src/fiheader.c:714:11: note: Assuming allocation function fails fitsh-0.9.4/src/fiheader.c:714:11: note: Assignment 'af=strdup(argformat)', assigned value is 0 fitsh-0.9.4/src/fiheader.c:715:15: note: Calling function remove_spaces, 1st argument is null fitsh-0.9.4/src/io/tokenize.c:84:11: note: Dereferencing argument buff that is null fitsh-0.9.4/src/io/tokenize.c:196:8: error: Null pointer dereference: buff [ctunullpointer] fitsh-0.9.4/src/fiheader.c:714:11: note: Assuming allocation function fails fitsh-0.9.4/src/fiheader.c:714:11: note: Assignment 'af=strdup(argformat)', assigned value is 0 fitsh-0.9.4/src/fiheader.c:716:17: note: Calling function tokenize_char, 1st argument is null fitsh-0.9.4/src/io/tokenize.c:196:8: note: Dereferencing argument buff that is null fitsh-0.9.4/src/math/convexhull.c:45:8: error: Null pointer dereference: points [ctunullpointer] fitsh-0.9.4/src/grmatch.c:620:28: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:620:13: note: Assignment 'hullpoints=(struct point*)malloc(sizeof(struct point)*ninp)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:626:26: note: Calling function convexhull_compute, 1st argument is null fitsh-0.9.4/src/math/convexhull.c:45:8: note: Dereferencing argument points that is null fitsh-0.9.4/src/math/spline/spline.c:65:4: error: Null pointer dereference: xa [ctunullpointer] fitsh-0.9.4/src/apphot.c:57:20: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:57:4: note: Assignment 'x=(double*)malloc(sizeof(double)*(3*n))', assigned value is 0 fitsh-0.9.4/src/apphot.c:68:21: note: Calling function spline_inter, 1st argument is null fitsh-0.9.4/src/math/spline/spline.c:65:4: note: Dereferencing argument xa that is null fitsh-0.9.4/src/math/spline/spline.c:96:2: error: Null pointer dereference: y2 [ctunullpointer] fitsh-0.9.4/src/fbase.c:25:21: note: Assuming allocation function fails fitsh-0.9.4/src/fbase.c:25:5: note: Assignment 'y2=(double*)malloc(sizeof(double)*(order+1))', assigned value is 0 fitsh-0.9.4/src/fbase.c:30:17: note: Calling function natspline_coeff, 3rd argument is null fitsh-0.9.4/src/math/spline/spline.c:96:2: note: Dereferencing argument y2 that is null fitsh-0.9.4/src/math/spline/spline.c:120:6: error: Null pointer dereference: ya [ctunullpointer] fitsh-0.9.4/src/fbase.c:24:21: note: Assuming allocation function fails fitsh-0.9.4/src/fbase.c:24:5: note: Assignment 'y1=(double*)malloc(sizeof(double)*(order+1))', assigned value is 0 fitsh-0.9.4/src/fbase.c:33:30: note: Calling function natspline_inter, 1st argument is null fitsh-0.9.4/src/math/spline/spline.c:120:6: note: Dereferencing argument ya that is null fitsh-0.9.4/src/math/spline/spline.c:120:35: error: Null pointer dereference: y2a [ctunullpointer] fitsh-0.9.4/src/fbase.c:25:21: note: Assuming allocation function fails fitsh-0.9.4/src/fbase.c:25:5: note: Assignment 'y2=(double*)malloc(sizeof(double)*(order+1))', assigned value is 0 fitsh-0.9.4/src/fbase.c:33:30: note: Calling function natspline_inter, 2nd argument is null fitsh-0.9.4/src/math/spline/spline.c:120:35: note: Dereferencing argument y2a that is null diff: 2.16.0 fitsh-0.9.4/libastro/easpec.c:150:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable m_jupiter [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libastro/easpec.c:150:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_jupiter [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libastro/easpec.c:66:5: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable r_earth_equ [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libastro/easpec.c:66:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable r_earth_equ [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libastro/output.c:24:13: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable STRDEG_SIGN [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libastro/output.c:24:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRDEG_SIGN [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-bintable.c:176:42: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fitsbfield [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-bintable.c:176:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsbfield [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-bintable.c:224:22: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable form [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-bintable.c:224:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable form [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-bintable.c:269:14: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable repeat [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-bintable.c:269:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable repeat [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-bintable.c:392:62: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-bintable.c:392:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-bintable.c:444:12: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fitsh-0.9.4/libfits/fits-bintable.c:442:30: note: Assuming allocation function fails fitsh-0.9.4/libfits/fits-bintable.c:442:7: note: Assignment 'data=(unsigned char*)malloc(fb->rowsize)', assigned value is 0 fitsh-0.9.4/libfits/fits-bintable.c:444:12: note: Null pointer dereference head fitsh-0.9.4/libfits/fits-bintable.c:454:9: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fitsh-0.9.4/libfits/fits-bintable.c:453:30: note: Assuming allocation function fails fitsh-0.9.4/libfits/fits-bintable.c:453:7: note: Assignment 'data=(unsigned char*)malloc(psize)', assigned value is 0 fitsh-0.9.4/libfits/fits-bintable.c:454:9: note: Null pointer dereference 2.16.0 fitsh-0.9.4/libfits/fits-bintable.c:493:42: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fitsbfield [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-bintable.c:493:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsbfield [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-bintable.c:82:21: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fitsbtable [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-bintable.c:82:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsbtable [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-core.c:105:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fits [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-core.c:105:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fits [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-core.c:189:39: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable header [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-core.c:189:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable header [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-core.c:378:2: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FORCEFIRST [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-core.c:378:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FORCEFIRST [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-core.c:384:2: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-core.c:384:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-core.c:390:2: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_ADD [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-core.c:390:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_ADD [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-core.c:436:54: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fitsextension [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-core.c:436:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsextension [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-core.c:567:54: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fitsextension [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-core.c:567:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsextension [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-core.c:66:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fits [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-core.c:66:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fits [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-core.c:682:37: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fitsheaderset [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-core.c:682:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsheaderset [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-core.c:761:13: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_EXT_IMAGE [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-core.c:761:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_EXT_IMAGE [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-core.c:861:62: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable header [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-core.c:861:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable header [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-core.c:885:9: warning: If memory allocation fails, then there is a possible null pointer dereference: wbuff [nullPointerOutOfMemory] fitsh-0.9.4/libfits/fits-core.c:884:22: note: Assuming allocation function fails fitsh-0.9.4/libfits/fits-core.c:884:8: note: Assignment 'wbuff=(char*)malloc(wn)', assigned value is 0 fitsh-0.9.4/libfits/fits-core.c:885:9: note: Null pointer dereference 2.16.0 fitsh-0.9.4/libfits/fits-header.c:107:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_VINT [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:107:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VINT [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:177:14: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_EMPTY [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:177:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_EMPTY [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:193:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:278:27: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable vtype [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:278:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vtype [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:36:40: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:36:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:402:33: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:402:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:411:33: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:411:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:447:19: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_VINT [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:447:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VINT [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:464:43: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:464:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:480:43: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:480:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:501:43: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:501:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:521:13: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FORCEFIRST [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:521:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FORCEFIRST [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:55:46: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:55:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:575:12: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_VINT [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:575:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VINT [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:583:12: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_VDOUBLE [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:583:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VDOUBLE [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:592:12: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_VSTR [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:592:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VSTR [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:603:12: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_VBOOLEAN [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:603:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VBOOLEAN [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:616:62: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:616:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:628:62: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:628:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:641:40: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:641:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsheader [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:656:54: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_INSERT [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:656:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_INSERT [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-header.c:692:32: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_VSTR [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-header.c:692:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VSTR [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-image.c:223:24: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_VINT [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-image.c:223:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VINT [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-image.c:240:23: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_MAX_NAXIS [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-image.c:240:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_MAX_NAXIS [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-image.c:384:59: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-image.c:384:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-image.c:544:9: warning: If memory allocation fails, then there is a possible null pointer dereference: padding [nullPointerOutOfMemory] fitsh-0.9.4/libfits/fits-image.c:543:24: note: Assuming allocation function fails fitsh-0.9.4/libfits/fits-image.c:543:10: note: Assignment 'padding=(char*)malloc(psize)', assigned value is 0 fitsh-0.9.4/libfits/fits-image.c:544:9: note: Null pointer dereference 2.16.0 fitsh-0.9.4/libfits/fits-image.c:585:38: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fitsscale [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-image.c:585:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsscale [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-image.c:79:20: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_MAX_NAXIS [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-image.c:79:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_MAX_NAXIS [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-table.c:157:62: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-table.c:157:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-table.c:213:9: warning: If memory allocation fails, then there is a possible null pointer dereference: padding [nullPointerOutOfMemory] fitsh-0.9.4/libfits/fits-table.c:212:24: note: Assuming allocation function fails fitsh-0.9.4/libfits/fits-table.c:212:10: note: Assignment 'padding=(char*)malloc(psize)', assigned value is 0 fitsh-0.9.4/libfits/fits-table.c:213:9: note: Null pointer dereference 2.16.0 fitsh-0.9.4/libfits/fits-table.c:249:42: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fitstfield [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-table.c:249:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitstfield [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-table.c:32:21: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable fitsttable [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-table.c:32:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fitsttable [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-ui.c:103:45: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_ADD [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-ui.c:103:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_ADD [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-ui.c:172:5: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-ui.c:172:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-ui.c:185:5: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-ui.c:185:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libfits/fits-ui.c:195:27: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-ui.c:195:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libfits/fits-ui.c:49:7: warning: If memory allocation fails, then there is a possible null pointer dereference: rname [nullPointerOutOfMemory] fitsh-0.9.4/libfits/fits-ui.c:40:26: note: Assuming allocation function fails fitsh-0.9.4/libfits/fits-ui.c:40:26: note: Assignment 'local_basename=strdup(name)', assigned value is 0 fitsh-0.9.4/libfits/fits-ui.c:47:7: note: rname is assigned 'local_basename' here. fitsh-0.9.4/libfits/fits-ui.c:49:7: note: Null pointer dereference 2.16.0 fitsh-0.9.4/libpsn/psn.c:102:52: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable psnterm [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:102:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psnterm [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:1071:47: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable psnterm [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:1071:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psnterm [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:1087:35: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable PEALLOC [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:1087:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEALLOC [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:1093:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:1091:24: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:1091:8: note: Assignment 'stack=(struct istack*)malloc(sizeof(struct istack)*stacklen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:1093:2: note: Null pointer dereference head fitsh-0.9.4/libpsn/psn.c:1094:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:1091:24: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:1091:8: note: Assignment 'stack=(struct istack*)malloc(sizeof(struct istack)*stacklen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:1094:2: note: Null pointer dereference 2.16.0 fitsh-0.9.4/libpsn/psn.c:115:52: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable psnterm [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:115:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psnterm [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:1240:14: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable PEALLOC [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:1240:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEALLOC [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:1251:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:1249:24: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:1249:8: note: Assignment 'stack=(struct istack*)malloc(sizeof(struct istack)*stacklen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:1251:2: note: Null pointer dereference head fitsh-0.9.4/libpsn/psn.c:1252:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:1249:24: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:1249:8: note: Assignment 'stack=(struct istack*)malloc(sizeof(struct istack)*stacklen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:1252:2: note: Null pointer dereference 2.16.0 fitsh-0.9.4/libpsn/psn.c:1376:25: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:1376:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:138:62: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable psnterm [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:138:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psnterm [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:1416:14: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable PEALLOC [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:1416:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEALLOC [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:1495:14: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable PEINVALID [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:1495:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEINVALID [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:149:52: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable psnterm [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:149:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psnterm [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:1560:47: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] 2.16.0 fitsh-0.9.4/libpsn/psn.c:1617:13: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable PEINVALID [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:1617:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEINVALID [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:1661:9: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:1660:20: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:1660:6: note: Assignment 'ret=(char*)malloc(strlen(buff)+1)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:1661:9: note: Null pointer dereference head fitsh-0.9.4/libpsn/psn.c:1670:9: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:1669:20: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:1669:6: note: Assignment 'ret=(char*)malloc(strlen(name)+1)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:1670:9: note: Null pointer dereference 2.16.0 fitsh-0.9.4/libpsn/psn.c:1695:14: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable PEMULTI [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:1695:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEMULTI [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:1953:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: psc [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:1948:28: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:1948:6: note: Assignment 'psc=(struct psnsimpcache*)malloc(sizeof(struct psnsimpcache)*ns)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:1953:2: note: Null pointer dereference 2.16.0 fitsh-0.9.4/libpsn/psn.c:2065:23: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:2065:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:2143:20: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable SS_REF [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:2143:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SS_REF [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:216:18: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable T_FN [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:216:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_FN [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:2333:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:2333:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:2437:11: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable PEOK [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:2437:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEOK [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:2460:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: chain [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:2456:21: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:2456:8: note: Assignment 'chain=(int*)malloc(sizeof(int)*chainlen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2460:5: note: Null pointer dereference 2.16.0 fitsh-0.9.4/libpsn/psn.c:2471:13: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable PEINVALID [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:2471:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEINVALID [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:2490:6: warning: If memory allocation fails, then there is a possible null pointer dereference: stack_dynamic [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:2488:30: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:2488:17: note: Assignment 'stack_dynamic=(int*)malloc(sizeof(int)*stacklen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:2490:6: note: Null pointer dereference 2.16.0 fitsh-0.9.4/libpsn/psn.c:251:20: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable T_CONST [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:251:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_CONST [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:315:11: warning: If memory allocation fails, then there is a possible null pointer dereference: stack_dyn [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:314:31: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:314:14: note: Assignment 'stack_dyn=(psnterm*)malloc(sizeof(psnterm)*stacklen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:315:11: note: Null pointer dereference 2.16.0 fitsh-0.9.4/libpsn/psn.c:387:25: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:387:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:423:44: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable T_PAROPEN [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:423:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_PAROPEN [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:509:21: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:509:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:540:11: warning: If memory allocation fails, then there is a possible null pointer dereference: stack_dyn [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:539:27: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:539:14: note: Assignment 'stack_dyn=(int*)malloc(sizeof(int)*stacklen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:540:11: note: Null pointer dereference 2.16.0 fitsh-0.9.4/libpsn/psn.c:566:21: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:566:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:590:29: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:590:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:61:37: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable psn [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:61:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psn [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:638:22: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable T_OP [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:638:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_OP [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:657:11: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable PEOK [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:657:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEOK [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:667:23: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable major [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:667:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable major [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:680:21: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable T_OP [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:680:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_OP [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:699:32: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:699:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:715:18: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable T_PAROPEN [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:715:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_PAROPEN [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:766:16: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable PEPARSE [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:766:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEPARSE [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:795:26: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable PEPARSE [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:795:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PEPARSE [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/libpsn/psn.c:835:21: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable PENOTFOUND [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:835:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PENOTFOUND [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:853:6: warning: If memory allocation fails, then there is a possible null pointer dereference: stack_dynamic [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:851:33: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:851:17: note: Assignment 'stack_dynamic=(double*)malloc(sizeof(double)*stacklen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:853:6: note: Null pointer dereference 2.16.0 fitsh-0.9.4/libpsn/psn.c:894:25: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:894:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:918:7: warning: If memory allocation fails, then there is a possible null pointer dereference: pc [nullPointerOutOfMemory] fitsh-0.9.4/libpsn/psn.c:917:18: note: Assuming allocation function fails fitsh-0.9.4/libpsn/psn.c:917:5: note: Assignment 'pc=(int*)malloc(sizeof(int)*4*stacklen)', assigned value is 0 fitsh-0.9.4/libpsn/psn.c:918:7: note: Null pointer dereference 2.16.0 fitsh-0.9.4/libpsn/psn.c:92:55: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable psnterm [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/libpsn/psn.c:92:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psnterm [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/apphot.c:475:5: warning: If memory allocation fails, then there is a possible null pointer dereference: xpolypoints [nullPointerOutOfMemory] fitsh-0.9.4/src/apphot.c:465:30: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:465:14: note: Assignment 'xpolypoints=(double*)malloc(sizeof(double)*2*(nxpolypoint+16))', assigned value is 0 fitsh-0.9.4/src/apphot.c:475:5: note: Null pointer dereference head fitsh-0.9.4/src/apphot.c:476:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xpolypoints [nullPointerOutOfMemory] fitsh-0.9.4/src/apphot.c:465:30: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:465:14: note: Assignment 'xpolypoints=(double*)malloc(sizeof(double)*2*(nxpolypoint+16))', assigned value is 0 fitsh-0.9.4/src/apphot.c:476:3: note: Null pointer dereference head fitsh-0.9.4/src/apphot.c:482:5: warning: If memory allocation fails, then there is a possible null pointer dereference: xpolypoints [nullPointerOutOfMemory] fitsh-0.9.4/src/apphot.c:465:30: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:465:14: note: Assignment 'xpolypoints=(double*)malloc(sizeof(double)*2*(nxpolypoint+16))', assigned value is 0 fitsh-0.9.4/src/apphot.c:482:5: note: Null pointer dereference head fitsh-0.9.4/src/apphot.c:483:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xpolypoints [nullPointerOutOfMemory] fitsh-0.9.4/src/apphot.c:465:30: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:465:14: note: Assignment 'xpolypoints=(double*)malloc(sizeof(double)*2*(nxpolypoint+16))', assigned value is 0 fitsh-0.9.4/src/apphot.c:483:3: note: Null pointer dereference head fitsh-0.9.4/src/apphot.c:58:5: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fitsh-0.9.4/src/apphot.c:57:20: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:57:4: note: Assignment 'x=(double*)malloc(sizeof(double)*(3*n))', assigned value is 0 fitsh-0.9.4/src/apphot.c:58:5: note: Null pointer addition head fitsh-0.9.4/src/apphot.c:63:2: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] fitsh-0.9.4/src/apphot.c:57:20: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:57:4: note: Assignment 'x=(double*)malloc(sizeof(double)*(3*n))', assigned value is 0 fitsh-0.9.4/src/apphot.c:63:2: note: Null pointer dereference head fitsh-0.9.4/src/apphot.c:822:5: warning: If memory allocation fails, then there is a possible null pointer dereference: xpolypoints [nullPointerOutOfMemory] fitsh-0.9.4/src/apphot.c:813:30: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:813:14: note: Assignment 'xpolypoints=(double*)malloc(sizeof(double)*2*(nppoly+16))', assigned value is 0 fitsh-0.9.4/src/apphot.c:822:5: note: Null pointer dereference head fitsh-0.9.4/src/apphot.c:823:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xpolypoints [nullPointerOutOfMemory] fitsh-0.9.4/src/apphot.c:813:30: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:813:14: note: Assignment 'xpolypoints=(double*)malloc(sizeof(double)*2*(nppoly+16))', assigned value is 0 fitsh-0.9.4/src/apphot.c:823:3: note: Null pointer dereference head fitsh-0.9.4/src/apphot.c:827:5: warning: If memory allocation fails, then there is a possible null pointer dereference: xpolypoints [nullPointerOutOfMemory] fitsh-0.9.4/src/apphot.c:813:30: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:813:14: note: Assignment 'xpolypoints=(double*)malloc(sizeof(double)*2*(nppoly+16))', assigned value is 0 fitsh-0.9.4/src/apphot.c:827:5: note: Null pointer dereference head fitsh-0.9.4/src/apphot.c:828:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xpolypoints [nullPointerOutOfMemory] fitsh-0.9.4/src/apphot.c:813:30: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:813:14: note: Assignment 'xpolypoints=(double*)malloc(sizeof(double)*2*(nppoly+16))', assigned value is 0 fitsh-0.9.4/src/apphot.c:828:3: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/cache.c:153:13: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/cache.c:153:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/cache.c:237:4: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable PROT_READ [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/cache.c:237:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROT_READ [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/combine.c:342:25: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/combine.c:342:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/combine.c:463:25: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/combine.c:463:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable i [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fbase.c:29:5: warning: If memory allocation fails, then there is a possible null pointer dereference: y1 [nullPointerOutOfMemory] fitsh-0.9.4/src/fbase.c:24:21: note: Assuming allocation function fails fitsh-0.9.4/src/fbase.c:24:5: note: Assignment 'y1=(double*)malloc(sizeof(double)*(order+1))', assigned value is 0 fitsh-0.9.4/src/fbase.c:29:5: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/fiarith.c:1146:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiarith.c:1146:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiarith.c:1366:5: warning: If memory allocation fails, then there is a possible null pointer dereference: csym [nullPointerOutOfMemory] fitsh-0.9.4/src/fiarith.c:1364:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiarith.c:1364:7: note: Assignment 'csym=(psnsym*)malloc(sizeof(psnsym)*(ed->nop+1))', assigned value is 0 fitsh-0.9.4/src/fiarith.c:1366:5: note: Null pointer dereference head fitsh-0.9.4/src/fiarith.c:1367:2: warning: If memory allocation fails, then there is a possible null pointer dereference: csym [nullPointerOutOfMemory] fitsh-0.9.4/src/fiarith.c:1364:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiarith.c:1364:7: note: Assignment 'csym=(psnsym*)malloc(sizeof(psnsym)*(ed->nop+1))', assigned value is 0 fitsh-0.9.4/src/fiarith.c:1367:2: note: Null pointer dereference head fitsh-0.9.4/src/fiarith.c:1368:2: warning: If memory allocation fails, then there is a possible null pointer dereference: csym [nullPointerOutOfMemory] fitsh-0.9.4/src/fiarith.c:1364:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiarith.c:1364:7: note: Assignment 'csym=(psnsym*)malloc(sizeof(psnsym)*(ed->nop+1))', assigned value is 0 fitsh-0.9.4/src/fiarith.c:1368:2: note: Null pointer dereference head fitsh-0.9.4/src/fiarith.c:1370:2: warning: If memory allocation fails, then there is a possible null pointer dereference: csym [nullPointerOutOfMemory] fitsh-0.9.4/src/fiarith.c:1364:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiarith.c:1364:7: note: Assignment 'csym=(psnsym*)malloc(sizeof(psnsym)*(ed->nop+1))', assigned value is 0 fitsh-0.9.4/src/fiarith.c:1370:2: note: Null pointer dereference head fitsh-0.9.4/src/fiarith.c:1371:2: warning: If memory allocation fails, then there is a possible null pointer dereference: csym [nullPointerOutOfMemory] fitsh-0.9.4/src/fiarith.c:1364:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiarith.c:1364:7: note: Assignment 'csym=(psnsym*)malloc(sizeof(psnsym)*(ed->nop+1))', assigned value is 0 fitsh-0.9.4/src/fiarith.c:1371:2: note: Null pointer dereference head fitsh-0.9.4/src/fiarith.c:1372:2: warning: If memory allocation fails, then there is a possible null pointer dereference: csym [nullPointerOutOfMemory] fitsh-0.9.4/src/fiarith.c:1364:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiarith.c:1364:7: note: Assignment 'csym=(psnsym*)malloc(sizeof(psnsym)*(ed->nop+1))', assigned value is 0 fitsh-0.9.4/src/fiarith.c:1372:2: note: Null pointer dereference head fitsh-0.9.4/src/fiarith.c:1373:2: warning: If memory allocation fails, then there is a possible null pointer dereference: csym [nullPointerOutOfMemory] fitsh-0.9.4/src/fiarith.c:1364:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiarith.c:1364:7: note: Assignment 'csym=(psnsym*)malloc(sizeof(psnsym)*(ed->nop+1))', assigned value is 0 fitsh-0.9.4/src/fiarith.c:1373:2: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/fiarith.c:154:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiarith.c:154:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiarith.c:165:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiarith.c:165:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiarith.c:190:39: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiarith.c:190:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiarith.c:261:23: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiarith.c:261:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiarith.c:299:23: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiarith.c:299:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiarith.c:337:23: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiarith.c:337:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiarith.c:629:10: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fr [nullPointerOutOfResources] fitsh-0.9.4/src/fiarith.c:626:13: note: Assuming allocation function fails fitsh-0.9.4/src/fiarith.c:626:13: note: Assignment 'fr=fopen(ed->ops[k].filename,"rb")', assigned value is 0 fitsh-0.9.4/src/fiarith.c:629:10: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/fiarith.c:645:27: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiarith.c:645:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fic_mpstack.c:124:37: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITSH_MAINT_EMAIL [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fic_mpstack.c:124:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITSH_MAINT_EMAIL [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fic_mpstack.c:191:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fic_mpstack.c:191:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fic_mpstack.c:361:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] fitsh-0.9.4/src/fic_mpstack.c:336:19: note: Assuming allocation function fails fitsh-0.9.4/src/fic_mpstack.c:336:6: note: Assignment 'idx=(int*)malloc(sizeof(int)*nimage)', assigned value is 0 fitsh-0.9.4/src/fic_mpstack.c:361:3: note: Null pointer dereference head fitsh-0.9.4/src/fic_mpstack.c:362:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idy [nullPointerOutOfMemory] fitsh-0.9.4/src/fic_mpstack.c:337:19: note: Assuming allocation function fails fitsh-0.9.4/src/fic_mpstack.c:337:6: note: Assignment 'idy=(int*)malloc(sizeof(int)*nimage)', assigned value is 0 fitsh-0.9.4/src/fic_mpstack.c:362:3: note: Null pointer dereference head fitsh-0.9.4/src/fic_mpstack.c:365:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cxy [nullPointerOutOfMemory] fitsh-0.9.4/src/fic_mpstack.c:338:22: note: Assuming allocation function fails fitsh-0.9.4/src/fic_mpstack.c:338:6: note: Assignment 'cxy=(double*)malloc(sizeof(double)*nimage*4)', assigned value is 0 fitsh-0.9.4/src/fic_mpstack.c:365:3: note: Null pointer dereference head fitsh-0.9.4/src/fic_mpstack.c:366:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cxy [nullPointerOutOfMemory] fitsh-0.9.4/src/fic_mpstack.c:338:22: note: Assuming allocation function fails fitsh-0.9.4/src/fic_mpstack.c:338:6: note: Assignment 'cxy=(double*)malloc(sizeof(double)*nimage*4)', assigned value is 0 fitsh-0.9.4/src/fic_mpstack.c:366:3: note: Null pointer dereference head fitsh-0.9.4/src/fic_mpstack.c:367:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cxy [nullPointerOutOfMemory] fitsh-0.9.4/src/fic_mpstack.c:338:22: note: Assuming allocation function fails fitsh-0.9.4/src/fic_mpstack.c:338:6: note: Assignment 'cxy=(double*)malloc(sizeof(double)*nimage*4)', assigned value is 0 fitsh-0.9.4/src/fic_mpstack.c:367:3: note: Null pointer dereference head fitsh-0.9.4/src/fic_mpstack.c:368:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cxy [nullPointerOutOfMemory] fitsh-0.9.4/src/fic_mpstack.c:338:22: note: Assuming allocation function fails fitsh-0.9.4/src/fic_mpstack.c:338:6: note: Assignment 'cxy=(double*)malloc(sizeof(double)*nimage*4)', assigned value is 0 fitsh-0.9.4/src/fic_mpstack.c:368:3: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/fic_mpstack.c:64:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fic_mpstack.c:64:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fic_mpstack.c:75:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fic_mpstack.c:75:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficalib.c:1092:6: warning: If memory allocation fails, then there is a possible null pointer dereference: arr [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1089:22: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1089:6: note: Assignment 'arr=(double*)malloc(sizeof(double)*sx)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1092:6: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/ficalib.c:1113:5: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficalib.c:1113:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficalib.c:1381:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] head fitsh-0.9.4/src/ficalib.c:1439:12: warning: If memory allocation fails, then there is a possible null pointer dereference: p1 [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1438:11: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1438:11: note: Assignment 'p1=strdup(to)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1439:12: note: Null pointer dereference head fitsh-0.9.4/src/ficalib.c:1523:14: warning: If memory allocation fails, then there is a possible null pointer dereference: wms [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1521:12: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1521:12: note: Assignment 'wms=strdup(mstr)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1523:14: note: Null pointer dereference head fitsh-0.9.4/src/ficalib.c:1524:10: warning: If memory allocation fails, then there is a possible null pointer dereference: wms [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1521:12: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1521:12: note: Assignment 'wms=strdup(mstr)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1524:10: note: Null pointer dereference head fitsh-0.9.4/src/ficalib.c:1531:18: warning: If memory allocation fails, then there is a possible null pointer dereference: wms [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1521:12: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1521:12: note: Assignment 'wms=strdup(mstr)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1531:18: note: Null pointer dereference head fitsh-0.9.4/src/ficalib.c:1532:10: warning: If memory allocation fails, then there is a possible null pointer dereference: wms [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1521:12: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1521:12: note: Assignment 'wms=strdup(mstr)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1532:10: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/ficalib.c:1797:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficalib.c:1797:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficalib.c:1926:11: warning: If memory allocation fails, then there is a possible null pointer dereference: from [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1925:25: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1925:11: note: Assignment 'from=(char*)malloc(flen+1)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1926:11: note: Null pointer dereference head fitsh-0.9.4/src/ficalib.c:1927:4: warning: If memory allocation fails, then there is a possible null pointer dereference: from [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1925:25: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1925:11: note: Assignment 'from=(char*)malloc(flen+1)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1927:4: note: Null pointer dereference head fitsh-0.9.4/src/ficalib.c:1933:5: warning: If memory allocation fails, then there is a possible null pointer dereference: newlist [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1931:25: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1931:10: note: Assignment 'newlist=(char**)malloc(sizeof(char*)*(ninimg+1))', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1933:5: note: Null pointer dereference head fitsh-0.9.4/src/ficalib.c:1934:8: warning: If memory allocation fails, then there is a possible null pointer dereference: newlist [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:1931:25: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1931:10: note: Assignment 'newlist=(char**)malloc(sizeof(char*)*(ninimg+1))', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1934:8: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/ficalib.c:341:25: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficalib.c:341:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/ficalib.c:372:16: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficalib.c:372:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/ficalib.c:504:46: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_ADD [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficalib.c:504:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_ADD [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficalib.c:535:3: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:523:23: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:523:7: note: Assignment 'line=(double*)malloc(sizeof(double)*wx)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:535:3: note: Null pointer dereference head fitsh-0.9.4/src/ficalib.c:562:30: warning: If memory allocation fails, then there is a possible null pointer dereference: spm [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:556:24: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:556:8: note: Assignment 'spm=(double*)malloc(sizeof(double)*sy)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:562:30: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/ficalib.c:56:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficalib.c:56:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficalib.c:593:3: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:581:23: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:581:7: note: Assignment 'line=(double*)malloc(sizeof(double)*wy)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:593:3: note: Null pointer dereference head fitsh-0.9.4/src/ficalib.c:601:5: warning: If memory allocation fails, then there is a possible null pointer dereference: spw [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:579:23: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:579:7: note: Assignment 'spw=(double*)malloc(sizeof(double)*sx)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:601:5: note: Null pointer dereference head fitsh-0.9.4/src/ficalib.c:602:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spy [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:580:23: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:580:7: note: Assignment 'spy=(double*)malloc(sizeof(double)*sx)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:602:3: note: Null pointer dereference head fitsh-0.9.4/src/ficalib.c:619:30: warning: If memory allocation fails, then there is a possible null pointer dereference: spm [nullPointerOutOfMemory] fitsh-0.9.4/src/ficalib.c:613:24: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:613:8: note: Assignment 'spm=(double*)malloc(sizeof(double)*sx)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:619:30: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/ficalib.c:667:46: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_ADD [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficalib.c:667:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_ADD [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/ficalib.c:67:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficalib.c:67:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/ficalib.c:761:23: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficalib.c:761:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/ficombine.c:247:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficombine.c:247:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/ficombine.c:42:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficombine.c:42:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/ficombine.c:53:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficombine.c:53:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficonv.c:190:17: warning: If memory allocation fails, then there is a possible null pointer dereference: coeff [nullPointerOutOfMemory] fitsh-0.9.4/src/ficonv.c:1010:25: note: Assuming allocation function fails fitsh-0.9.4/src/ficonv.c:1010:9: note: Assignment 'coeff=(double*)malloc(sizeof(double)*2*(psx+1)*(psy+1))', assigned value is 0 fitsh-0.9.4/src/ficonv.c:1013:66: note: Calling function 'affine_img_transformation_spline_eval', 5th argument 'coeff' value is 0 fitsh-0.9.4/src/ficonv.c:190:17: note: Null pointer dereference head fitsh-0.9.4/src/ficonv.c:191:15: warning: If memory allocation fails, then there is a possible null pointer dereference: coeff [nullPointerOutOfMemory] fitsh-0.9.4/src/ficonv.c:1010:25: note: Assuming allocation function fails fitsh-0.9.4/src/ficonv.c:1010:9: note: Assignment 'coeff=(double*)malloc(sizeof(double)*2*(psx+1)*(psy+1))', assigned value is 0 fitsh-0.9.4/src/ficonv.c:1013:66: note: Calling function 'affine_img_transformation_spline_eval', 5th argument 'coeff' value is 0 fitsh-0.9.4/src/ficonv.c:191:15: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/ficonv.c:51:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficonv.c:51:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/ficonv.c:526:11: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficonv.c:526:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/ficonv.c:62:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficonv.c:62:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/ficonv.c:810:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ficonv.c:810:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiheader.c:147:27: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] 2.16.0 fitsh-0.9.4/src/fiheader.c:215:26: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable header [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiheader.c:215:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable header [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiheader.c:420:14: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiheader.c:420:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiheader.c:480:14: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiheader.c:480:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiheader.c:517:31: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiheader.c:517:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiheader.c:67:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiheader.c:67:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiheader.c:696:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiheader.c:696:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiheader.c:737:2: warning: If memory allocation fails, then there is a possible null pointer dereference: format [nullPointerOutOfMemory] fitsh-0.9.4/src/fiheader.c:713:22: note: Assuming allocation function fails fitsh-0.9.4/src/fiheader.c:713:9: note: Assignment 'format=(int*)malloc(8*sizeof(int))', assigned value is 0 fitsh-0.9.4/src/fiheader.c:737:2: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/fiheader.c:78:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiheader.c:78:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiheader.c:93:19: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_VINT [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiheader.c:93:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VINT [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiign.c:461:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiign.c:461:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiign.c:66:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiign.c:66:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiign.c:77:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiign.c:77:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiinfo-image.c:188:7: warning: If memory allocation fails, then there is a possible null pointer dereference: rawdata [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-image.c:348:25: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-image.c:348:9: note: Assignment 'rdata=(double*)malloc(sizeof(double)*tn)', assigned value is 0 fitsh-0.9.4/src/fiinfo-image.c:354:30: note: Calling function 'fits_stat_raw_sky_skysigma', 1st argument 'rdata' value is 0 fitsh-0.9.4/src/fiinfo-image.c:214:30: note: Calling function 'estimate_skysigma_naive', 1st argument 'data' value is 0 fitsh-0.9.4/src/fiinfo-image.c:188:7: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo-image.c:222:30: warning: If memory allocation fails, then there is a possible null pointer dereference: histo [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-image.c:221:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-image.c:221:8: note: Assignment 'histo=(double*)malloc(sizeof(double)*nhist)', assigned value is 0 fitsh-0.9.4/src/fiinfo-image.c:222:30: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo-image.c:225:7: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-image.c:348:25: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-image.c:348:9: note: Assignment 'rdata=(double*)malloc(sizeof(double)*tn)', assigned value is 0 fitsh-0.9.4/src/fiinfo-image.c:354:30: note: Calling function 'fits_stat_raw_sky_skysigma', 1st argument 'rdata' value is 0 fitsh-0.9.4/src/fiinfo-image.c:225:7: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo-image.c:300:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rawdata [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-image.c:297:26: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-image.c:297:10: note: Assignment 'rawdata=(double*)malloc(sizeof(double)*sx*sy)', assigned value is 0 fitsh-0.9.4/src/fiinfo-image.c:300:5: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo-image.c:323:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rawdata [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-image.c:320:26: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-image.c:320:10: note: Assignment 'rawdata=(double*)malloc(sizeof(double)*sx*sy)', assigned value is 0 fitsh-0.9.4/src/fiinfo-image.c:323:5: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo-image.c:351:7: warning: If memory allocation fails, then there is a possible null pointer dereference: rdata [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-image.c:348:25: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-image.c:348:9: note: Assignment 'rdata=(double*)malloc(sizeof(double)*tn)', assigned value is 0 fitsh-0.9.4/src/fiinfo-image.c:351:7: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo-image.c:382:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rawdata [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-image.c:379:26: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-image.c:379:10: note: Assignment 'rawdata=(double*)malloc(sizeof(double)*sx*sy)', assigned value is 0 fitsh-0.9.4/src/fiinfo-image.c:382:5: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo-image.c:388:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rawdata [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-image.c:379:26: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-image.c:379:10: note: Assignment 'rawdata=(double*)malloc(sizeof(double)*sx*sy)', assigned value is 0 fitsh-0.9.4/src/fiinfo-image.c:388:5: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo-pnm.c:151:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:151:3: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo-pnm.c:152:8: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:152:8: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo-pnm.c:153:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:153:3: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo-pnm.c:154:5: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:154:5: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo-pnm.c:155:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:155:3: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo-pnm.c:161:7: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:161:7: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo-pnm.c:163:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:163:3: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo-pnm.c:164:7: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:164:7: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo-pnm.c:168:9: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:168:9: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo-pnm.c:169:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hd [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo-pnm.c:146:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo-pnm.c:146:5: note: Assignment 'hd=(struct histodata*)malloc(sizeof(struct histodata)*nh)', assigned value is 0 fitsh-0.9.4/src/fiinfo-pnm.c:169:3: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo-pnm.c:336:25: style: Parameter 'pstr' can be declared as pointer to const [constParameterPointer] 2.16.0 fitsh-0.9.4/src/fiinfo-pnm.c:417:13: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiinfo-pnm.c:417:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiinfo.c:282:24: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] head fitsh-0.9.4/src/fiinfo.c:448:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rawdata [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo.c:445:26: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo.c:445:10: note: Assignment 'rawdata=(double*)malloc(sizeof(double)*(nbx*nby))', assigned value is 0 fitsh-0.9.4/src/fiinfo.c:448:3: note: Null pointer dereference head fitsh-0.9.4/src/fiinfo.c:453:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rawdata [nullPointerOutOfMemory] fitsh-0.9.4/src/fiinfo.c:445:26: note: Assuming allocation function fails fitsh-0.9.4/src/fiinfo.c:445:10: note: Assignment 'rawdata=(double*)malloc(sizeof(double)*(nbx*nby))', assigned value is 0 fitsh-0.9.4/src/fiinfo.c:453:3: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/fiinfo.c:49:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiinfo.c:49:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiinfo.c:60:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiinfo.c:60:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiinfo.c:639:22: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable colindex [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiinfo.c:639:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable colindex [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiinfo.c:671:27: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable repeat [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiinfo.c:671:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable repeat [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiinfo.c:767:17: style: Variable 'format' can be declared as pointer to const [constVariablePointer] 2.16.0 fitsh-0.9.4/src/fiinfo.c:773:24: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable format [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiinfo.c:773:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable format [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiinfo.c:793:37: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable repeat [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiinfo.c:793:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable repeat [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiinfo.c:839:45: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable header [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiinfo.c:839:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable header [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiinfo.c:935:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiinfo.c:935:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiphot-io.c:335:3: warning: If memory allocation fails, then there is a possible null pointer dereference: inaps [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:327:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:327:8: note: Assignment 'inaps=(struct apgeom*)malloc(sizeof(struct apgeom)*n)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:335:3: note: Null pointer dereference head fitsh-0.9.4/src/fiphot-io.c:342:33: warning: If memory allocation fails, then there is a possible null pointer dereference: rfflux [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:339:27: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:339:9: note: Assignment 'rfflux=(struct photflux*)malloc(sizeof(struct photflux)*n)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:342:33: note: Null pointer dereference head fitsh-0.9.4/src/fiphot-io.c:343:33: warning: If memory allocation fails, then there is a possible null pointer dereference: rfflux [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:339:27: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:339:9: note: Assignment 'rfflux=(struct photflux*)malloc(sizeof(struct photflux)*n)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:343:33: note: Null pointer dereference head fitsh-0.9.4/src/fiphot-io.c:353:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rfflux [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:339:27: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:339:9: note: Assignment 'rfflux=(struct photflux*)malloc(sizeof(struct photflux)*n)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:353:3: note: Null pointer dereference head fitsh-0.9.4/src/fiphot-io.c:354:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rfflux [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:339:27: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:339:9: note: Assignment 'rfflux=(struct photflux*)malloc(sizeof(struct photflux)*n)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:354:3: note: Null pointer dereference head fitsh-0.9.4/src/fiphot-io.c:355:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rfflux [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:339:27: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:339:9: note: Assignment 'rfflux=(struct photflux*)malloc(sizeof(struct photflux)*n)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:355:3: note: Null pointer dereference head fitsh-0.9.4/src/fiphot-io.c:356:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rfflux [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:339:27: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:339:9: note: Assignment 'rfflux=(struct photflux*)malloc(sizeof(struct photflux)*n)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:356:3: note: Null pointer dereference head fitsh-0.9.4/src/fiphot-io.c:357:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rfflux [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:339:27: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:339:9: note: Assignment 'rfflux=(struct photflux*)malloc(sizeof(struct photflux)*n)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:357:3: note: Null pointer dereference head fitsh-0.9.4/src/fiphot-io.c:44:5: warning: If memory allocation fails, then there is a possible null pointer dereference: poly [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:42:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:42:7: note: Assignment 'poly=(double*)malloc(sizeof(double)*2*nvertex)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:44:5: note: Null pointer dereference head fitsh-0.9.4/src/fiphot-io.c:45:2: warning: If memory allocation fails, then there is a possible null pointer dereference: poly [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:42:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:42:7: note: Assignment 'poly=(double*)malloc(sizeof(double)*2*nvertex)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:45:2: note: Null pointer dereference head fitsh-0.9.4/src/fiphot-io.c:65:5: warning: If memory allocation fails, then there is a possible null pointer dereference: poly [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:63:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:63:7: note: Assignment 'poly=(double*)malloc(sizeof(double)*2*nvertex)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:65:5: note: Null pointer dereference head fitsh-0.9.4/src/fiphot-io.c:66:2: warning: If memory allocation fails, then there is a possible null pointer dereference: poly [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:63:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:63:7: note: Assignment 'poly=(double*)malloc(sizeof(double)*2*nvertex)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:66:2: note: Null pointer dereference head fitsh-0.9.4/src/fiphot-io.c:783:2: warning: If memory allocation fails, then there is a possible null pointer dereference: colap [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:782:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:782:11: note: Assignment 'colap=(int*)malloc(sizeof(int)*1)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:783:2: note: Null pointer dereference head fitsh-0.9.4/src/fiphot-io.c:826:14: warning: If memory allocation fails, then there is a possible null pointer dereference: ap [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:824:11: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:824:11: note: Assignment 'ap=strdup(appar)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:826:14: note: Null pointer dereference head fitsh-0.9.4/src/fiphot-io.c:827:10: warning: If memory allocation fails, then there is a possible null pointer dereference: ap [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot-io.c:824:11: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot-io.c:824:11: note: Assignment 'ap=strdup(appar)', assigned value is 0 fitsh-0.9.4/src/fiphot-io.c:827:10: note: Null pointer dereference head fitsh-0.9.4/src/fiphot.c:1149:5: warning: If memory allocation fails, then there is a possible null pointer dereference: wghts [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot.c:1133:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot.c:1133:8: note: Assignment 'wghts=(double*)malloc(sizeof(double)*nstar)', assigned value is 0 fitsh-0.9.4/src/fiphot.c:1149:5: note: Null pointer dereference head fitsh-0.9.4/src/fiphot.c:1150:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dmags [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot.c:1131:24: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot.c:1131:8: note: Assignment 'dmags=(double*)malloc(sizeof(double)*nstar)', assigned value is 0 fitsh-0.9.4/src/fiphot.c:1150:3: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/fiphot.c:1685:81: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_VSTR [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiphot.c:1685:81: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VSTR [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiphot.c:1844:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiphot.c:1844:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiphot.c:460:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ringmasks [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot.c:458:31: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot.c:458:15: note: Assignment 'ringmasks=(char***)malloc(sizeof(char**)*numap)', assigned value is 0 fitsh-0.9.4/src/fiphot.c:460:5: note: Null pointer dereference head fitsh-0.9.4/src/fiphot.c:465:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ringmasks [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot.c:463:31: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot.c:463:15: note: Assignment 'ringmasks=(char***)malloc(sizeof(char**)*numap)', assigned value is 0 fitsh-0.9.4/src/fiphot.c:465:5: note: Null pointer dereference head fitsh-0.9.4/src/fiphot.c:470:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ringmasks [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot.c:468:31: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot.c:468:15: note: Assignment 'ringmasks=(char***)malloc(sizeof(char**)*numap)', assigned value is 0 fitsh-0.9.4/src/fiphot.c:470:5: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/fiphot.c:55:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiphot.c:55:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fiphot.c:66:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiphot.c:66:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fiphot.c:926:11: warning: If memory allocation fails, then there is a possible null pointer dereference: pf [nullPointerOutOfMemory] fitsh-0.9.4/src/fiphot.c:892:23: note: Assuming allocation function fails fitsh-0.9.4/src/fiphot.c:892:5: note: Assignment 'pf=(struct photflux*)malloc(sizeof(struct photflux)*n)', assigned value is 0 fitsh-0.9.4/src/fiphot.c:926:11: note: Null pointer dereference head fitsh-0.9.4/src/firandom-eval.c:278:23: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: terms [nullPointerOutOfMemory] fitsh-0.9.4/src/firandom-eval.c:267:23: note: Assuming allocation function fails fitsh-0.9.4/src/firandom-eval.c:267:8: note: Assignment 'terms=(char**)malloc(sizeof(char*)*(nterm+1))', assigned value is 0 fitsh-0.9.4/src/firandom-eval.c:278:23: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/firandom-eval.c:316:24: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/firandom-eval.c:316:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/firandom-eval.c:318:16: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] fitsh-0.9.4/src/firandom-eval.c:309:21: note: Assuming allocation function fails fitsh-0.9.4/src/firandom-eval.c:309:6: note: Assignment 'cmd=(char**)malloc(sizeof(char*)*(ntag+1))', assigned value is 0 fitsh-0.9.4/src/firandom-eval.c:318:16: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/firandom.c:1147:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/firandom.c:1147:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/firandom.c:58:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/firandom.c:58:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/firandom.c:69:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/firandom.c:69:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fistar-io.c:67:13: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fistar-io.c:67:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fistar.c:1037:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ipls [nullPointerOutOfMemory] fitsh-0.9.4/src/fistar.c:1035:27: note: Assuming allocation function fails fitsh-0.9.4/src/fistar.c:1035:7: note: Assignment 'ipls=(struct ipointlist*)malloc(sizeof(struct ipointlist)*nstar)', assigned value is 0 fitsh-0.9.4/src/fistar.c:1037:5: note: Null pointer dereference head fitsh-0.9.4/src/fistar.c:1038:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ipls [nullPointerOutOfMemory] fitsh-0.9.4/src/fistar.c:1035:27: note: Assuming allocation function fails fitsh-0.9.4/src/fistar.c:1035:7: note: Assignment 'ipls=(struct ipointlist*)malloc(sizeof(struct ipointlist)*nstar)', assigned value is 0 fitsh-0.9.4/src/fistar.c:1038:3: note: Null pointer dereference head fitsh-0.9.4/src/fistar.c:1062:33: warning: If memory allocation fails, then there is a possible null pointer dereference: indx [nullPointerOutOfMemory] fitsh-0.9.4/src/fistar.c:1061:23: note: Assuming allocation function fails fitsh-0.9.4/src/fistar.c:1061:10: note: Assignment 'indx=(int*)malloc(sizeof(int)*ss.nstar)', assigned value is 0 fitsh-0.9.4/src/fistar.c:1062:33: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/fistar.c:226:31: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable gcx [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fistar.c:226:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gcx [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fistar.c:232:31: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable gcy [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fistar.c:232:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gcy [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fistar.c:238:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable peak [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fistar.c:238:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable peak [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fistar.c:244:22: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable gfwhm [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fistar.c:244:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gfwhm [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fistar.c:250:31: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable gamp [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fistar.c:250:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gamp [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fistar.c:256:22: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable flux [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fistar.c:256:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flux [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fistar.c:262:22: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable cand [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fistar.c:262:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cand [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fistar.c:270:22: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable cand [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fistar.c:270:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cand [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fistar.c:293:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fistar.c:293:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fistar.c:59:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fistar.c:59:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fistar.c:70:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fistar.c:70:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fistar.c:734:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fistar.c:734:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fistar.c:81:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fistar.c:81:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fitrans.c:1625:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fitrans.c:1625:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fitrans.c:79:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fitrans.c:79:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fitrans.c:90:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fitrans.c:90:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fitsmask.c:111:20: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_VSTR [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fitsmask.c:111:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VSTR [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/fitsmask.c:339:46: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_ADD [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fitsmask.c:339:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_ADD [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/fitsmask.c:473:25: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fitsh-0.9.4/src/fitsmask.c:472:21: note: Assuming allocation function fails fitsh-0.9.4/src/fitsmask.c:472:8: note: Assignment 'impnt=(int*)malloc(sizeof(int)*sx*2)', assigned value is 0 fitsh-0.9.4/src/fitsmask.c:473:25: note: Null pointer addition 2.16.0 fitsh-0.9.4/src/fitsmask.c:473:25: warning: Either the condition 'impnt==NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] fitsh-0.9.4/src/fitsmask.c:475:12: note: Assuming that condition 'impnt==NULL' is not redundant fitsh-0.9.4/src/fitsmask.c:473:25: note: Null pointer addition head fitsh-0.9.4/src/fitsmask.c:695:9: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] fitsh-0.9.4/src/fitsmask.c:694:21: note: Assuming allocation function fails fitsh-0.9.4/src/fitsmask.c:694:7: note: Assignment 'line=(char*)malloc(sx)', assigned value is 0 fitsh-0.9.4/src/fitsmask.c:695:9: note: Null pointer dereference head fitsh-0.9.4/src/fitsmask.c:698:25: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] fitsh-0.9.4/src/fitsmask.c:694:21: note: Assuming allocation function fails fitsh-0.9.4/src/fitsmask.c:694:7: note: Assignment 'line=(char*)malloc(sx)', assigned value is 0 fitsh-0.9.4/src/fitsmask.c:698:25: note: Null pointer dereference head fitsh-0.9.4/src/fitsmask.c:74:17: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fitsh-0.9.4/src/fitsmask.c:73:21: note: Assuming allocation function fails fitsh-0.9.4/src/fitsmask.c:73:6: note: Assignment 'ret=(char**)malloc(sizeof(char*)*(unsigned long)sy+(unsigned long)sx*(unsigned long)sy)', assigned value is 0 fitsh-0.9.4/src/fitsmask.c:74:17: note: Null pointer addition head fitsh-0.9.4/src/fitsmask.c:76:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] fitsh-0.9.4/src/fitsmask.c:73:21: note: Assuming allocation function fails fitsh-0.9.4/src/fitsmask.c:73:6: note: Assignment 'ret=(char**)malloc(sizeof(char*)*(unsigned long)sy+(unsigned long)sx*(unsigned long)sy)', assigned value is 0 fitsh-0.9.4/src/fitsmask.c:76:5: note: Null pointer dereference head fitsh-0.9.4/src/fitsmask.c:97:18: style: Variable 'wp' can be declared as pointer to const [constVariablePointer] head fitsh-0.9.4/src/grcollect.c:1477:5: warning: If memory allocation fails, then there is a possible null pointer dereference: wrr [nullPointerOutOfMemory] fitsh-0.9.4/src/grcollect.c:1475:22: note: Assuming allocation function fails fitsh-0.9.4/src/grcollect.c:1475:6: note: Assignment 'wrr=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/grcollect.c:1477:5: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/grcollect.c:2006:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/grcollect.c:2006:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/grcollect.c:259:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/grcollect.c:259:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/grcollect.c:270:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/grcollect.c:270:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/grcollect.c:857:23: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/grcollect.c:857:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/grcollect.c:886:8: warning: If memory allocation fails, then there is a possible null pointer dereference: buff [nullPointerOutOfMemory] fitsh-0.9.4/src/grcollect.c:884:24: note: Assuming allocation function fails fitsh-0.9.4/src/grcollect.c:884:10: note: Assignment 'buff=(char*)malloc((unsigned long)pagesize)', assigned value is 0 fitsh-0.9.4/src/grcollect.c:886:8: note: Null pointer dereference head fitsh-0.9.4/src/grmatch.c:122:27: style: Parameter 'strcolid' can be declared as pointer to const [constParameterPointer] head fitsh-0.9.4/src/grmatch.c:1434:9: warning: If memory allocation fails, then there is a possible null pointer dereference: excflag [nullPointerOutOfMemory] fitsh-0.9.4/src/grmatch.c:1433:24: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:1433:10: note: Assignment 'excflag=(char*)malloc(nref)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:1434:9: note: Null pointer dereference head fitsh-0.9.4/src/grmatch.c:1440:2: warning: If memory allocation fails, then there is a possible null pointer dereference: excflag [nullPointerOutOfMemory] fitsh-0.9.4/src/grmatch.c:1433:24: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:1433:10: note: Assignment 'excflag=(char*)malloc(nref)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:1440:2: note: Null pointer dereference head fitsh-0.9.4/src/grmatch.c:1444:5: warning: If memory allocation fails, then there is a possible null pointer dereference: excflag [nullPointerOutOfMemory] fitsh-0.9.4/src/grmatch.c:1433:24: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:1433:10: note: Assignment 'excflag=(char*)malloc(nref)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:1444:5: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/grmatch.c:1590:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/grmatch.c:1590:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/grmatch.c:1807:2: warning: If memory allocation fails, then there is a possible null pointer dereference: vfits [nullPointerOutOfMemory] fitsh-0.9.4/src/grmatch.c:1806:25: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:1806:8: note: Assignment 'vfits=(double**)malloc(sizeof(double*)*2)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:1807:2: note: Null pointer dereference head fitsh-0.9.4/src/grmatch.c:1808:2: warning: If memory allocation fails, then there is a possible null pointer dereference: vfits [nullPointerOutOfMemory] fitsh-0.9.4/src/grmatch.c:1806:25: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:1806:8: note: Assignment 'vfits=(double**)malloc(sizeof(double*)*2)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:1808:2: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/grmatch.c:235:32: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/grmatch.c:235:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/grmatch.c:505:41: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/grmatch.c:505:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/grmatch.c:534:4: warning: If memory allocation fails, then there is a possible null pointer dereference: pfits [nullPointerOutOfMemory] fitsh-0.9.4/src/grmatch.c:531:23: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:531:8: note: Assignment 'pfits=(struct point*)malloc(sizeof(struct point)*nhit)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:534:4: note: Null pointer dereference head fitsh-0.9.4/src/grmatch.c:535:3: warning: If memory allocation fails, then there is a possible null pointer dereference: pfits [nullPointerOutOfMemory] fitsh-0.9.4/src/grmatch.c:531:23: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:531:8: note: Assignment 'pfits=(struct point*)malloc(sizeof(struct point)*nhit)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:535:3: note: Null pointer dereference head fitsh-0.9.4/src/grmatch.c:536:3: warning: If memory allocation fails, then there is a possible null pointer dereference: pfits [nullPointerOutOfMemory] fitsh-0.9.4/src/grmatch.c:531:23: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:531:8: note: Assignment 'pfits=(struct point*)malloc(sizeof(struct point)*nhit)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:536:3: note: Null pointer dereference head fitsh-0.9.4/src/grmatch.c:551:5: warning: If memory allocation fails, then there is a possible null pointer dereference: pfits [nullPointerOutOfMemory] fitsh-0.9.4/src/grmatch.c:531:23: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:531:8: note: Assignment 'pfits=(struct point*)malloc(sizeof(struct point)*nhit)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:551:5: note: Null pointer dereference head fitsh-0.9.4/src/grmatch.c:554:5: warning: If memory allocation fails, then there is a possible null pointer dereference: pfits [nullPointerOutOfMemory] fitsh-0.9.4/src/grmatch.c:531:23: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:531:8: note: Assignment 'pfits=(struct point*)malloc(sizeof(struct point)*nhit)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:554:5: note: Null pointer dereference head fitsh-0.9.4/src/grmatch.c:623:5: warning: If memory allocation fails, then there is a possible null pointer dereference: hullpoints [nullPointerOutOfMemory] fitsh-0.9.4/src/grmatch.c:620:28: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:620:13: note: Assignment 'hullpoints=(struct point*)malloc(sizeof(struct point)*ninp)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:623:5: note: Null pointer dereference head fitsh-0.9.4/src/grmatch.c:624:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hullpoints [nullPointerOutOfMemory] fitsh-0.9.4/src/grmatch.c:620:28: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:620:13: note: Assignment 'hullpoints=(struct point*)malloc(sizeof(struct point)*ninp)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:624:3: note: Null pointer dereference head fitsh-0.9.4/src/grmatch.c:633:5: warning: If memory allocation fails, then there is a possible null pointer dereference: hullpoints [nullPointerOutOfMemory] fitsh-0.9.4/src/grmatch.c:620:28: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:620:13: note: Assignment 'hullpoints=(struct point*)malloc(sizeof(struct point)*ninp)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:633:5: note: Null pointer dereference head fitsh-0.9.4/src/grmatch.c:634:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hullpoints [nullPointerOutOfMemory] fitsh-0.9.4/src/grmatch.c:620:28: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:620:13: note: Assignment 'hullpoints=(struct point*)malloc(sizeof(struct point)*ninp)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:634:3: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/grmatch.c:64:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/grmatch.c:64:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/grmatch.c:75:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/grmatch.c:75:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/grmatch.c:816:5: warning: If memory allocation fails, then there is a possible null pointer dereference: refhs [nullPointerOutOfMemory] fitsh-0.9.4/src/grmatch.c:812:21: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:812:8: note: Assignment 'refhs=(int*)malloc(sizeof(int)*nref)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:816:5: note: Null pointer dereference head fitsh-0.9.4/src/grmatch.c:818:5: warning: If memory allocation fails, then there is a possible null pointer dereference: inphs [nullPointerOutOfMemory] fitsh-0.9.4/src/grmatch.c:813:21: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:813:8: note: Assignment 'inphs=(int*)malloc(sizeof(int)*ninp)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:818:5: note: Null pointer dereference head fitsh-0.9.4/src/grmatch.c:823:7: warning: If memory allocation fails, then there is a possible null pointer dereference: refhs [nullPointerOutOfMemory] fitsh-0.9.4/src/grmatch.c:812:21: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:812:8: note: Assignment 'refhs=(int*)malloc(sizeof(int)*nref)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:823:7: note: Null pointer dereference head fitsh-0.9.4/src/grmatch.c:824:7: warning: If memory allocation fails, then there is a possible null pointer dereference: inphs [nullPointerOutOfMemory] fitsh-0.9.4/src/grmatch.c:813:21: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:813:8: note: Assignment 'inphs=(int*)malloc(sizeof(int)*ninp)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:824:7: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/gropt.c:267:24: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/gropt.c:267:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/gropt.c:705:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:704:5: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:704:5: note: Assignment 't=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:705:3: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:706:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:704:5: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:704:5: note: Assignment 't=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:706:3: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:709:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:704:5: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:704:5: note: Assignment 't=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:709:3: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:710:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:704:5: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:704:5: note: Assignment 't=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:710:3: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:711:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:704:5: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:704:5: note: Assignment 't=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:711:3: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:712:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:704:5: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:704:5: note: Assignment 't=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:712:3: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:713:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:704:5: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:704:5: note: Assignment 't=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:713:3: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:714:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:704:5: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:704:5: note: Assignment 't=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:714:3: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:762:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t1 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:752:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:752:8: note: Assignment 't1=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:762:5: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:763:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t1 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:752:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:752:8: note: Assignment 't1=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:763:5: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:764:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t1 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:752:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:752:8: note: Assignment 't1=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:764:5: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:765:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t1 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:752:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:752:8: note: Assignment 't1=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:765:5: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:766:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t2 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:753:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:753:8: note: Assignment 't2=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:766:5: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:767:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t2 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:753:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:753:8: note: Assignment 't2=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:767:5: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:768:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t2 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:753:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:753:8: note: Assignment 't2=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:768:5: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:769:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t2 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:753:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:753:8: note: Assignment 't2=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:769:5: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:770:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t3 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:754:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:754:8: note: Assignment 't3=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:770:5: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:771:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t3 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:754:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:754:8: note: Assignment 't3=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:771:5: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:772:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t3 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:754:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:754:8: note: Assignment 't3=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:772:5: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:773:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t3 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:754:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:754:8: note: Assignment 't3=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:773:5: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:774:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t4 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:755:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:755:8: note: Assignment 't4=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:774:5: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:775:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t4 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:755:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:755:8: note: Assignment 't4=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:775:5: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:776:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t4 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:755:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:755:8: note: Assignment 't4=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:776:5: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:777:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t4 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:755:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:755:8: note: Assignment 't4=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:777:5: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:779:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t1 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:752:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:752:8: note: Assignment 't1=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:779:5: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:780:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t2 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:753:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:753:8: note: Assignment 't2=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:780:5: note: Null pointer dereference head fitsh-0.9.4/src/gropt.c:781:5: warning: If memory allocation fails, then there is a possible null pointer dereference: t3 [nullPointerOutOfMemory] fitsh-0.9.4/src/gropt.c:754:8: note: Assuming allocation function fails fitsh-0.9.4/src/gropt.c:754:8: note: Assignment 't3=(struct triangle*)malloc(sizeof(struct triangle))', assigned value is 0 fitsh-0.9.4/src/gropt.c:781:5: note: Null pointer dereference head fitsh-0.9.4/src/grtrans.c:137:9: warning: If memory allocation fails, then there is a possible null pointer dereference: p_prj [nullPointerOutOfMemory] fitsh-0.9.4/src/grtrans.c:127:23: note: Assuming allocation function fails fitsh-0.9.4/src/grtrans.c:127:8: note: Assignment 'p_prj=(struct point*)malloc(sizeof(struct point)*nfp)', assigned value is 0 fitsh-0.9.4/src/grtrans.c:137:9: note: Null pointer dereference head fitsh-0.9.4/src/grtrans.c:138:9: warning: If memory allocation fails, then there is a possible null pointer dereference: p_prj [nullPointerOutOfMemory] fitsh-0.9.4/src/grtrans.c:127:23: note: Assuming allocation function fails fitsh-0.9.4/src/grtrans.c:127:8: note: Assignment 'p_prj=(struct point*)malloc(sizeof(struct point)*nfp)', assigned value is 0 fitsh-0.9.4/src/grtrans.c:138:9: note: Null pointer dereference head fitsh-0.9.4/src/grtrans.c:139:9: warning: If memory allocation fails, then there is a possible null pointer dereference: p_pix [nullPointerOutOfMemory] fitsh-0.9.4/src/grtrans.c:126:23: note: Assuming allocation function fails fitsh-0.9.4/src/grtrans.c:126:8: note: Assignment 'p_pix=(struct point*)malloc(sizeof(struct point)*nfp)', assigned value is 0 fitsh-0.9.4/src/grtrans.c:139:9: note: Null pointer dereference head fitsh-0.9.4/src/grtrans.c:140:9: warning: If memory allocation fails, then there is a possible null pointer dereference: p_pix [nullPointerOutOfMemory] fitsh-0.9.4/src/grtrans.c:126:23: note: Assuming allocation function fails fitsh-0.9.4/src/grtrans.c:126:8: note: Assignment 'p_pix=(struct point*)malloc(sizeof(struct point)*nfp)', assigned value is 0 fitsh-0.9.4/src/grtrans.c:140:9: note: Null pointer dereference head fitsh-0.9.4/src/grtrans.c:145:13: warning: If memory allocation fails, then there is a possible null pointer dereference: p_pix [nullPointerOutOfMemory] fitsh-0.9.4/src/grtrans.c:126:23: note: Assuming allocation function fails fitsh-0.9.4/src/grtrans.c:126:8: note: Assignment 'p_pix=(struct point*)malloc(sizeof(struct point)*nfp)', assigned value is 0 fitsh-0.9.4/src/grtrans.c:145:13: note: Null pointer dereference head fitsh-0.9.4/src/grtrans.c:145:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] fitsh-0.9.4/src/grtrans.c:128:23: note: Assuming allocation function fails fitsh-0.9.4/src/grtrans.c:128:8: note: Assignment 'ps=(struct point*)malloc(sizeof(struct point)*nfp)', assigned value is 0 fitsh-0.9.4/src/grtrans.c:145:5: note: Null pointer dereference head fitsh-0.9.4/src/grtrans.c:146:10: warning: If memory allocation fails, then there is a possible null pointer dereference: p_pix [nullPointerOutOfMemory] fitsh-0.9.4/src/grtrans.c:126:23: note: Assuming allocation function fails fitsh-0.9.4/src/grtrans.c:126:8: note: Assignment 'p_pix=(struct point*)malloc(sizeof(struct point)*nfp)', assigned value is 0 fitsh-0.9.4/src/grtrans.c:146:10: note: Null pointer dereference head fitsh-0.9.4/src/grtrans.c:146:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] fitsh-0.9.4/src/grtrans.c:128:23: note: Assuming allocation function fails fitsh-0.9.4/src/grtrans.c:128:8: note: Assignment 'ps=(struct point*)malloc(sizeof(struct point)*nfp)', assigned value is 0 fitsh-0.9.4/src/grtrans.c:146:2: note: Null pointer dereference head fitsh-0.9.4/src/grtrans.c:147:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] fitsh-0.9.4/src/grtrans.c:128:23: note: Assuming allocation function fails fitsh-0.9.4/src/grtrans.c:128:8: note: Assignment 'ps=(struct point*)malloc(sizeof(struct point)*nfp)', assigned value is 0 fitsh-0.9.4/src/grtrans.c:147:2: note: Null pointer dereference head fitsh-0.9.4/src/grtrans.c:150:17: warning: If memory allocation fails, then there is a possible null pointer dereference: p_prj [nullPointerOutOfMemory] fitsh-0.9.4/src/grtrans.c:127:23: note: Assuming allocation function fails fitsh-0.9.4/src/grtrans.c:127:8: note: Assignment 'p_prj=(struct point*)malloc(sizeof(struct point)*nfp)', assigned value is 0 fitsh-0.9.4/src/grtrans.c:150:17: note: Null pointer dereference head fitsh-0.9.4/src/grtrans.c:150:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] fitsh-0.9.4/src/grtrans.c:128:23: note: Assuming allocation function fails fitsh-0.9.4/src/grtrans.c:128:8: note: Assignment 'ps=(struct point*)malloc(sizeof(struct point)*nfp)', assigned value is 0 fitsh-0.9.4/src/grtrans.c:150:5: note: Null pointer dereference head fitsh-0.9.4/src/grtrans.c:153:17: warning: If memory allocation fails, then there is a possible null pointer dereference: p_prj [nullPointerOutOfMemory] fitsh-0.9.4/src/grtrans.c:127:23: note: Assuming allocation function fails fitsh-0.9.4/src/grtrans.c:127:8: note: Assignment 'p_prj=(struct point*)malloc(sizeof(struct point)*nfp)', assigned value is 0 fitsh-0.9.4/src/grtrans.c:153:17: note: Null pointer dereference head fitsh-0.9.4/src/grtrans.c:153:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ps [nullPointerOutOfMemory] fitsh-0.9.4/src/grtrans.c:128:23: note: Assuming allocation function fails fitsh-0.9.4/src/grtrans.c:128:8: note: Assignment 'ps=(struct point*)malloc(sizeof(struct point)*nfp)', assigned value is 0 fitsh-0.9.4/src/grtrans.c:153:5: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/grtrans.c:415:31: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/grtrans.c:415:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/grtrans.c:468:44: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.16.0 fitsh-0.9.4/src/grtrans.c:64:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/grtrans.c:64:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/grtrans.c:75:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/grtrans.c:75:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/grtrans.c:918:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/grtrans.c:918:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/history.c:32:4: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable daylight [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/history.c:32:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable daylight [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/index/multiindex.c:279:11: warning: If memory allocation fails, then there is a possible null pointer dereference: nis [nullPointerOutOfMemory] fitsh-0.9.4/src/index/multiindex.c:272:28: note: Assuming allocation function fails fitsh-0.9.4/src/index/multiindex.c:272:6: note: Assignment 'nis=(struct nodeinterval*)malloc(sizeof(struct nodeinterval)*2*mi->nbit)', assigned value is 0 fitsh-0.9.4/src/index/multiindex.c:279:11: note: Null pointer dereference head fitsh-0.9.4/src/index/multiindex.c:280:6: warning: If memory allocation fails, then there is a possible null pointer dereference: nis [nullPointerOutOfMemory] fitsh-0.9.4/src/index/multiindex.c:272:28: note: Assuming allocation function fails fitsh-0.9.4/src/index/multiindex.c:272:6: note: Assignment 'nis=(struct nodeinterval*)malloc(sizeof(struct nodeinterval)*2*mi->nbit)', assigned value is 0 fitsh-0.9.4/src/index/multiindex.c:280:6: note: Null pointer dereference head fitsh-0.9.4/src/index/multiindex.c:281:6: warning: If memory allocation fails, then there is a possible null pointer dereference: nis [nullPointerOutOfMemory] fitsh-0.9.4/src/index/multiindex.c:272:28: note: Assuming allocation function fails fitsh-0.9.4/src/index/multiindex.c:272:6: note: Assignment 'nis=(struct nodeinterval*)malloc(sizeof(struct nodeinterval)*2*mi->nbit)', assigned value is 0 fitsh-0.9.4/src/index/multiindex.c:281:6: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/io/format.c:167:2: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/io/format.c:167:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/io/format.c:65:2: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/io/format.c:65:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/io/iof.c:103:25: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/io/iof.c:103:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/io/iof.c:111:25: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/io/iof.c:111:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/io/iof.c:119:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/io/iof.c:119:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/io/iof.c:125:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/io/iof.c:125:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/io/iof.c:62:2: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/io/iof.c:62:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/io/iof.c:81:4: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/io/iof.c:81:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/io/scanarg.c:309:12: warning: If memory allocation fails, then there is a possible null pointer dereference: pval [nullPointerOutOfMemory] fitsh-0.9.4/src/io/scanarg.c:308:24: note: Assuming allocation function fails fitsh-0.9.4/src/io/scanarg.c:308:10: note: Assignment 'pval=(char*)malloc(strlen(carg)+1)', assigned value is 0 fitsh-0.9.4/src/io/scanarg.c:309:12: note: Null pointer dereference head fitsh-0.9.4/src/io/scanarg.c:339:13: warning: If memory allocation fails, then there is a possible null pointer dereference: pval [nullPointerOutOfMemory] fitsh-0.9.4/src/io/scanarg.c:338:25: note: Assuming allocation function fails fitsh-0.9.4/src/io/scanarg.c:338:11: note: Assignment 'pval=(char*)malloc(len+1)', assigned value is 0 fitsh-0.9.4/src/io/scanarg.c:339:13: note: Null pointer dereference head fitsh-0.9.4/src/io/scanarg.c:376:6: warning: If memory allocation fails, then there is a possible null pointer dereference: lval [nullPointerOutOfMemory] fitsh-0.9.4/src/io/scanarg.c:375:28: note: Assuming allocation function fails fitsh-0.9.4/src/io/scanarg.c:375:13: note: Assignment 'lval=(char**)malloc(2*sizeof(char*))', assigned value is 0 fitsh-0.9.4/src/io/scanarg.c:376:6: note: Null pointer dereference head fitsh-0.9.4/src/io/scanarg.c:377:6: warning: If memory allocation fails, then there is a possible null pointer dereference: lval [nullPointerOutOfMemory] fitsh-0.9.4/src/io/scanarg.c:375:28: note: Assuming allocation function fails fitsh-0.9.4/src/io/scanarg.c:375:13: note: Assignment 'lval=(char**)malloc(2*sizeof(char*))', assigned value is 0 fitsh-0.9.4/src/io/scanarg.c:377:6: note: Null pointer dereference head fitsh-0.9.4/src/io/scanarg.c:425:6: warning: If memory allocation fails, then there is a possible null pointer dereference: lval [nullPointerOutOfMemory] fitsh-0.9.4/src/io/scanarg.c:424:26: note: Assuming allocation function fails fitsh-0.9.4/src/io/scanarg.c:424:11: note: Assignment 'lval=(char**)malloc(len)', assigned value is 0 fitsh-0.9.4/src/io/scanarg.c:425:6: note: Null pointer dereference head fitsh-0.9.4/src/io/scanarg.c:426:6: warning: If memory allocation fails, then there is a possible null pointer dereference: lval [nullPointerOutOfMemory] fitsh-0.9.4/src/io/scanarg.c:424:26: note: Assuming allocation function fails fitsh-0.9.4/src/io/scanarg.c:424:11: note: Assignment 'lval=(char**)malloc(len)', assigned value is 0 fitsh-0.9.4/src/io/scanarg.c:426:6: note: Null pointer dereference head fitsh-0.9.4/src/io/scanarg.c:679:13: warning: If memory allocation fails, then there is a possible null pointer dereference: pval [nullPointerOutOfMemory] fitsh-0.9.4/src/io/scanarg.c:678:27: note: Assuming allocation function fails fitsh-0.9.4/src/io/scanarg.c:678:13: note: Assignment 'pval=(char*)malloc(strlen(apar)+1)', assigned value is 0 fitsh-0.9.4/src/io/scanarg.c:679:13: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/io/tokenize.c:156:2: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/io/tokenize.c:156:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/io/tokenize.c:196:8: error: Null pointer dereference: buff [ctunullpointer] fitsh-0.9.4/src/fiheader.c:714:11: note: Assuming allocation function fails fitsh-0.9.4/src/fiheader.c:714:11: note: Assignment 'af=strdup(argformat)', assigned value is 0 fitsh-0.9.4/src/fiheader.c:716:17: note: Calling function tokenize_char, 1st argument is null fitsh-0.9.4/src/io/tokenize.c:196:8: note: Dereferencing argument buff that is null 2.16.0 fitsh-0.9.4/src/io/tokenize.c:230:3: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/io/tokenize.c:230:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/io/tokenize.c:70:11: error: Null pointer dereference: buff [ctunullpointer] fitsh-0.9.4/src/ficalib.c:1521:12: note: Assuming allocation function fails fitsh-0.9.4/src/ficalib.c:1521:12: note: Assignment 'wms=strdup(mstr)', assigned value is 0 fitsh-0.9.4/src/ficalib.c:1522:28: note: Calling function remove_spaces_and_comments, 1st argument is null fitsh-0.9.4/src/io/tokenize.c:70:11: note: Dereferencing argument buff that is null head fitsh-0.9.4/src/io/tokenize.c:84:11: error: Null pointer dereference: buff [ctunullpointer] fitsh-0.9.4/src/fiheader.c:714:11: note: Assuming allocation function fails fitsh-0.9.4/src/fiheader.c:714:11: note: Assignment 'af=strdup(argformat)', assigned value is 0 fitsh-0.9.4/src/fiheader.c:715:15: note: Calling function remove_spaces, 1st argument is null fitsh-0.9.4/src/io/tokenize.c:84:11: note: Dereferencing argument buff that is null 2.16.0 fitsh-0.9.4/src/kernel-base.c:198:15: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/kernel-base.c:198:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/kernel-base.c:289:2: warning: If memory allocation fails, then there is a possible null pointer dereference: koffset [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-base.c:273:23: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-base.c:273:10: note: Assignment 'koffset=(int*)malloc(sizeof(int)*nkernel)', assigned value is 0 fitsh-0.9.4/src/kernel-base.c:289:2: note: Null pointer dereference head fitsh-0.9.4/src/kernel-base.c:294:2: warning: If memory allocation fails, then there is a possible null pointer dereference: koffset [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-base.c:273:23: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-base.c:273:10: note: Assignment 'koffset=(int*)malloc(sizeof(int)*nkernel)', assigned value is 0 fitsh-0.9.4/src/kernel-base.c:293:22: note: Assuming condition is false fitsh-0.9.4/src/kernel-base.c:294:2: note: Null pointer dereference head fitsh-0.9.4/src/kernel-base.c:296:2: warning: If memory allocation fails, then there is a possible null pointer dereference: foffset [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-base.c:274:23: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-base.c:274:10: note: Assignment 'foffset=(int*)malloc(sizeof(int)*nkernel)', assigned value is 0 fitsh-0.9.4/src/kernel-base.c:293:22: note: Assuming condition is false fitsh-0.9.4/src/kernel-base.c:296:2: note: Null pointer dereference head fitsh-0.9.4/src/kernel-base.c:532:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stamps [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-base.c:515:24: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-base.c:515:9: note: Assignment 'stamps=(struct stamp*)malloc(sizeof(struct stamp)*nstamp)', assigned value is 0 fitsh-0.9.4/src/kernel-base.c:532:2: note: Null pointer dereference head fitsh-0.9.4/src/kernel-base.c:533:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stamps [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-base.c:515:24: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-base.c:515:9: note: Assignment 'stamps=(struct stamp*)malloc(sizeof(struct stamp)*nstamp)', assigned value is 0 fitsh-0.9.4/src/kernel-base.c:533:2: note: Null pointer dereference head fitsh-0.9.4/src/kernel-base.c:534:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stamps [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-base.c:515:24: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-base.c:515:9: note: Assignment 'stamps=(struct stamp*)malloc(sizeof(struct stamp)*nstamp)', assigned value is 0 fitsh-0.9.4/src/kernel-base.c:534:2: note: Null pointer dereference head fitsh-0.9.4/src/kernel-base.c:535:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stamps [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-base.c:515:24: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-base.c:515:9: note: Assignment 'stamps=(struct stamp*)malloc(sizeof(struct stamp)*nstamp)', assigned value is 0 fitsh-0.9.4/src/kernel-base.c:535:2: note: Null pointer dereference head fitsh-0.9.4/src/kernel-base.c:537:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stamps [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-base.c:515:24: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-base.c:515:9: note: Assignment 'stamps=(struct stamp*)malloc(sizeof(struct stamp)*nstamp)', assigned value is 0 fitsh-0.9.4/src/kernel-base.c:537:2: note: Null pointer dereference head fitsh-0.9.4/src/kernel-base.c:538:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stamps [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-base.c:515:24: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-base.c:515:9: note: Assignment 'stamps=(struct stamp*)malloc(sizeof(struct stamp)*nstamp)', assigned value is 0 fitsh-0.9.4/src/kernel-base.c:538:2: note: Null pointer dereference head fitsh-0.9.4/src/kernel-base.c:570:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stamps [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-base.c:559:24: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-base.c:559:9: note: Assignment 'stamps=(struct stamp*)malloc(sizeof(struct stamp)*nstamp)', assigned value is 0 fitsh-0.9.4/src/kernel-base.c:570:2: note: Null pointer dereference head fitsh-0.9.4/src/kernel-base.c:571:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stamps [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-base.c:559:24: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-base.c:559:9: note: Assignment 'stamps=(struct stamp*)malloc(sizeof(struct stamp)*nstamp)', assigned value is 0 fitsh-0.9.4/src/kernel-base.c:571:2: note: Null pointer dereference head fitsh-0.9.4/src/kernel-base.c:572:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stamps [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-base.c:559:24: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-base.c:559:9: note: Assignment 'stamps=(struct stamp*)malloc(sizeof(struct stamp)*nstamp)', assigned value is 0 fitsh-0.9.4/src/kernel-base.c:572:2: note: Null pointer dereference head fitsh-0.9.4/src/kernel-base.c:573:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stamps [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-base.c:559:24: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-base.c:559:9: note: Assignment 'stamps=(struct stamp*)malloc(sizeof(struct stamp)*nstamp)', assigned value is 0 fitsh-0.9.4/src/kernel-base.c:573:2: note: Null pointer dereference head fitsh-0.9.4/src/kernel-base.c:575:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stamps [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-base.c:559:24: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-base.c:559:9: note: Assignment 'stamps=(struct stamp*)malloc(sizeof(struct stamp)*nstamp)', assigned value is 0 fitsh-0.9.4/src/kernel-base.c:575:2: note: Null pointer dereference head fitsh-0.9.4/src/kernel-base.c:576:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stamps [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-base.c:559:24: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-base.c:559:9: note: Assignment 'stamps=(struct stamp*)malloc(sizeof(struct stamp)*nstamp)', assigned value is 0 fitsh-0.9.4/src/kernel-base.c:576:2: note: Null pointer dereference head fitsh-0.9.4/src/kernel-io.c:287:12: warning: If memory allocation fails, then there is a possible null pointer dereference: icmd [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-io.c:283:24: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-io.c:283:9: note: Assignment 'icmd=(char**)malloc(sizeof(char*)*(nvar+1))', assigned value is 0 fitsh-0.9.4/src/kernel-io.c:287:12: note: Null pointer dereference head fitsh-0.9.4/src/kernel-io.c:289:17: warning: If memory allocation fails, then there is a possible null pointer dereference: icmd [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-io.c:283:24: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-io.c:283:9: note: Assignment 'icmd=(char**)malloc(sizeof(char*)*(nvar+1))', assigned value is 0 fitsh-0.9.4/src/kernel-io.c:287:19: note: Assuming condition is false fitsh-0.9.4/src/kernel-io.c:289:17: note: Null pointer dereference head fitsh-0.9.4/src/kernel-io.c:312:12: warning: If memory allocation fails, then there is a possible null pointer dereference: icmd [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-io.c:308:24: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-io.c:308:9: note: Assignment 'icmd=(char**)malloc(sizeof(char*)*(n+1))', assigned value is 0 fitsh-0.9.4/src/kernel-io.c:312:12: note: Null pointer dereference head fitsh-0.9.4/src/kernel-io.c:314:12: warning: If memory allocation fails, then there is a possible null pointer dereference: icmd [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-io.c:308:24: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-io.c:308:9: note: Assignment 'icmd=(char**)malloc(sizeof(char*)*(n+1))', assigned value is 0 fitsh-0.9.4/src/kernel-io.c:312:19: note: Assuming condition is false fitsh-0.9.4/src/kernel-io.c:314:12: note: Null pointer dereference head fitsh-0.9.4/src/kernel-io.c:470:9: warning: If memory allocation fails, then there is a possible null pointer dereference: karg [nullPointerOutOfMemory] fitsh-0.9.4/src/kernel-io.c:469:21: note: Assuming allocation function fails fitsh-0.9.4/src/kernel-io.c:469:7: note: Assignment 'karg=(char*)malloc(strlen(kernelarg)+1)', assigned value is 0 fitsh-0.9.4/src/kernel-io.c:470:9: note: Null pointer dereference head fitsh-0.9.4/src/lfit-builtin.c:266:5: warning: If memory allocation fails, then there is a possible null pointer dereference: arr [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit-builtin.c:264:22: note: Assuming allocation function fails fitsh-0.9.4/src/lfit-builtin.c:264:6: note: Assignment 'arr=(double*)malloc(sizeof(double)*(2*n))', assigned value is 0 fitsh-0.9.4/src/lfit-builtin.c:266:5: note: Null pointer dereference head fitsh-0.9.4/src/lfit-builtin.c:267:2: warning: If memory allocation fails, then there is a possible null pointer dereference: arr [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit-builtin.c:264:22: note: Assuming allocation function fails fitsh-0.9.4/src/lfit-builtin.c:264:6: note: Assignment 'arr=(double*)malloc(sizeof(double)*(2*n))', assigned value is 0 fitsh-0.9.4/src/lfit-builtin.c:267:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit-builtin.c:299:5: warning: If memory allocation fails, then there is a possible null pointer dereference: arr [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit-builtin.c:297:22: note: Assuming allocation function fails fitsh-0.9.4/src/lfit-builtin.c:297:6: note: Assignment 'arr=(double*)malloc(sizeof(double)*(2*n))', assigned value is 0 fitsh-0.9.4/src/lfit-builtin.c:299:5: note: Null pointer dereference head fitsh-0.9.4/src/lfit-builtin.c:300:2: warning: If memory allocation fails, then there is a possible null pointer dereference: arr [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit-builtin.c:297:22: note: Assuming allocation function fails fitsh-0.9.4/src/lfit-builtin.c:297:6: note: Assignment 'arr=(double*)malloc(sizeof(double)*(2*n))', assigned value is 0 fitsh-0.9.4/src/lfit-builtin.c:300:2: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/lfit.c:1076:20: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable T_OP [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:1076:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_OP [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/lfit.c:1134:13: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable psnerrno [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:1134:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psnerrno [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:1250:6: warning: If memory allocation fails, then there is a possible null pointer dereference: stack_dynamic [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:1248:33: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:1248:17: note: Assignment 'stack_dynamic=(double*)malloc(sizeof(double)*stacklen)', assigned value is 0 fitsh-0.9.4/src/lfit.c:1250:6: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:1316:8: style: Variable 'format' can be declared as pointer to const [constVariablePointer] head fitsh-0.9.4/src/lfit.c:1333:8: style: Variable 'format' can be declared as pointer to const [constVariablePointer] head fitsh-0.9.4/src/lfit.c:1358:8: style: Variable 'format' can be declared as pointer to const [constVariablePointer] head fitsh-0.9.4/src/lfit.c:1375:8: style: Variable 'format' can be declared as pointer to const [constVariablePointer] 2.16.0 fitsh-0.9.4/src/lfit.c:1623:15: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable T_CONST [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:1623:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_CONST [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:1722:14: warning: If memory allocation fails, then there is a possible null pointer dereference: cline [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:1719:14: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:1719:14: note: Assignment 'cline=strdup(rbuff)', assigned value is 0 fitsh-0.9.4/src/lfit.c:1722:14: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:1723:10: warning: If memory allocation fails, then there is a possible null pointer dereference: cline [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:1719:14: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:1719:14: note: Assignment 'cline=strdup(rbuff)', assigned value is 0 fitsh-0.9.4/src/lfit.c:1723:10: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/lfit.c:1843:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:1843:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:1958:2: warning: If memory allocation fails, then there is a possible null pointer dereference: fitpnt [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:1955:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:1955:9: note: Assignment 'fitpnt=(void**)malloc(nrow*sizeof(void*))', assigned value is 0 fitsh-0.9.4/src/lfit.c:1958:2: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/lfit.c:1987:19: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:1987:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:2099:5: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2090:20: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2090:4: note: Assignment 'b=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2099:5: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2100:2: warning: If memory allocation fails, then there is a possible null pointer dereference: z [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2091:20: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2091:4: note: Assignment 'z=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2100:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2391:5: warning: If memory allocation fails, then there is a possible null pointer dereference: lchi [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2389:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2389:7: note: Assignment 'lchi=(struct chistat*)malloc(sizeof(struct chistat)*ndatablock)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2391:5: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2392:2: warning: If memory allocation fails, then there is a possible null pointer dereference: lchi [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2389:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2389:7: note: Assignment 'lchi=(struct chistat*)malloc(sizeof(struct chistat)*ndatablock)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2392:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2406:9: warning: If memory allocation fails, then there is a possible null pointer dereference: fitpnt [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:4669:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:4669:9: note: Assignment 'fitpnt=(void**)malloc(nrow*sizeof(void*))', assigned value is 0 fitsh-0.9.4/src/lfit.c:4690:21: note: Calling function 'data_get_chisquare', 1st argument 'fitpnt' value is 0 fitsh-0.9.4/src/lfit.c:2406:9: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2407:16: warning: If memory allocation fails, then there is a possible null pointer dereference: fitpnt [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:4669:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:4669:9: note: Assignment 'fitpnt=(void**)malloc(nrow*sizeof(void*))', assigned value is 0 fitsh-0.9.4/src/lfit.c:4690:21: note: Calling function 'data_get_chisquare', 1st argument 'fitpnt' value is 0 fitsh-0.9.4/src/lfit.c:2407:16: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2418:11: warning: If memory allocation fails, then there is a possible null pointer dereference: lchi [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2389:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2389:7: note: Assignment 'lchi=(struct chistat*)malloc(sizeof(struct chistat)*ndatablock)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2418:11: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2419:5: warning: If memory allocation fails, then there is a possible null pointer dereference: lchi [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2389:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2389:7: note: Assignment 'lchi=(struct chistat*)malloc(sizeof(struct chistat)*ndatablock)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2419:5: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2501:5: warning: If memory allocation fails, then there is a possible null pointer dereference: lchi [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2499:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2499:7: note: Assignment 'lchi=(struct chistat*)malloc(sizeof(struct chistat)*ndatablock)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2501:5: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2502:2: warning: If memory allocation fails, then there is a possible null pointer dereference: lchi [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2499:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2499:7: note: Assignment 'lchi=(struct chistat*)malloc(sizeof(struct chistat)*ndatablock)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2502:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2528:11: warning: If memory allocation fails, then there is a possible null pointer dereference: lchi [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2499:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2499:7: note: Assignment 'lchi=(struct chistat*)malloc(sizeof(struct chistat)*ndatablock)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2528:11: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2529:5: warning: If memory allocation fails, then there is a possible null pointer dereference: lchi [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2499:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2499:7: note: Assignment 'lchi=(struct chistat*)malloc(sizeof(struct chistat)*ndatablock)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2529:5: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2561:5: warning: If memory allocation fails, then there is a possible null pointer dereference: lchi [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2558:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2558:7: note: Assignment 'lchi=(struct chistat*)malloc(sizeof(struct chistat)*ndatablock)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2561:5: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2562:2: warning: If memory allocation fails, then there is a possible null pointer dereference: lchi [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2558:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2558:7: note: Assignment 'lchi=(struct chistat*)malloc(sizeof(struct chistat)*ndatablock)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2562:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2563:2: warning: If memory allocation fails, then there is a possible null pointer dereference: lchi [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2558:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2558:7: note: Assignment 'lchi=(struct chistat*)malloc(sizeof(struct chistat)*ndatablock)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2563:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2567:9: warning: If memory allocation fails, then there is a possible null pointer dereference: fitpnt [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:4669:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:4669:9: note: Assignment 'fitpnt=(void**)malloc(nrow*sizeof(void*))', assigned value is 0 fitsh-0.9.4/src/lfit.c:4691:20: note: Calling function 'data_get_scatters', 1st argument 'fitpnt' value is 0 fitsh-0.9.4/src/lfit.c:2567:9: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/lfit.c:256:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:256:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:2573:18: warning: If memory allocation fails, then there is a possible null pointer dereference: fitpnt [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:4669:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:4669:9: note: Assignment 'fitpnt=(void**)malloc(nrow*sizeof(void*))', assigned value is 0 fitsh-0.9.4/src/lfit.c:4691:20: note: Calling function 'data_get_scatters', 1st argument 'fitpnt' value is 0 fitsh-0.9.4/src/lfit.c:2573:18: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2578:2: warning: If memory allocation fails, then there is a possible null pointer dereference: lchi [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2558:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2558:7: note: Assignment 'lchi=(struct chistat*)malloc(sizeof(struct chistat)*ndatablock)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2578:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2579:2: warning: If memory allocation fails, then there is a possible null pointer dereference: lchi [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2558:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2558:7: note: Assignment 'lchi=(struct chistat*)malloc(sizeof(struct chistat)*ndatablock)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2579:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2580:2: warning: If memory allocation fails, then there is a possible null pointer dereference: lchi [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2558:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2558:7: note: Assignment 'lchi=(struct chistat*)malloc(sizeof(struct chistat)*ndatablock)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2580:2: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/lfit.c:264:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:264:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/lfit.c:2725:31: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable complex [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:2725:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable complex [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:2730:2: warning: If memory allocation fails, then there is a possible null pointer dereference: res [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2725:23: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2725:6: note: Assignment 'res=(complex*)malloc(sizeof(complex)*nrow)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2730:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2731:2: warning: If memory allocation fails, then there is a possible null pointer dereference: res [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2725:23: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2725:6: note: Assignment 'res=(complex*)malloc(sizeof(complex)*nrow)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2731:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2736:16: error:inconclusive: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fitsh-0.9.4/src/lfit.c:2725:23: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2725:6: note: Assignment 'res=(complex*)malloc(sizeof(complex)*nrow)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2736:16: note: Null pointer addition 2.16.0 fitsh-0.9.4/src/lfit.c:2770:34: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable complex [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:2770:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable complex [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:2775:2: warning: If memory allocation fails, then there is a possible null pointer dereference: prtift [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2770:26: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2770:9: note: Assignment 'prtift=(complex*)malloc(sizeof(complex)*nrow)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2775:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:2776:2: warning: If memory allocation fails, then there is a possible null pointer dereference: prtift [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2770:26: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2770:9: note: Assignment 'prtift=(complex*)malloc(sizeof(complex)*nrow)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2776:2: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/lfit.c:277:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:277:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:2781:19: error:inconclusive: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fitsh-0.9.4/src/lfit.c:2770:26: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2770:9: note: Assignment 'prtift=(complex*)malloc(sizeof(complex)*nrow)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2781:19: note: Null pointer addition head fitsh-0.9.4/src/lfit.c:2791:28: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: prtift [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2770:26: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2770:9: note: Assignment 'prtift=(complex*)malloc(sizeof(complex)*nrow)', assigned value is 0 fitsh-0.9.4/src/lfit.c:2791:28: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/lfit.c:288:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:288:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:2901:2: warning: If memory allocation fails, then there is a possible null pointer dereference: fitpnt [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:2898:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:2898:9: note: Assignment 'fitpnt=(void**)malloc(nrow*sizeof(void*))', assigned value is 0 fitsh-0.9.4/src/lfit.c:2901:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:3117:3: warning: If memory allocation fails, then there is a possible null pointer dereference: axdiff [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:3110:22: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:3110:9: note: Assignment 'axdiff=(int*)malloc(sizeof(int)*ndim)', assigned value is 0 fitsh-0.9.4/src/lfit.c:3117:3: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:3122:21: warning: If memory allocation fails, then there is a possible null pointer dereference: axdiff [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:3110:22: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:3110:9: note: Assignment 'axdiff=(int*)malloc(sizeof(int)*ndim)', assigned value is 0 fitsh-0.9.4/src/lfit.c:3122:21: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:3177:5: warning: If memory allocation fails, then there is a possible null pointer dereference: gidx [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:3175:20: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:3175:7: note: Assignment 'gidx=(int*)malloc(sizeof(int)*ngrid)', assigned value is 0 fitsh-0.9.4/src/lfit.c:3177:5: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:3180:7: warning: If memory allocation fails, then there is a possible null pointer dereference: gidx [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:3175:20: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:3175:7: note: Assignment 'gidx=(int*)malloc(sizeof(int)*ngrid)', assigned value is 0 fitsh-0.9.4/src/lfit.c:3180:7: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:3214:2: warning: If memory allocation fails, then there is a possible null pointer dereference: axdiff [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:3207:22: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:3207:9: note: Assignment 'axdiff=(int*)malloc(sizeof(int)*ndim)', assigned value is 0 fitsh-0.9.4/src/lfit.c:3214:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:3368:2: warning: If memory allocation fails, then there is a possible null pointer dereference: fitpnt [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:3365:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:3365:9: note: Assignment 'fitpnt=(void**)malloc(nrow*sizeof(void*))', assigned value is 0 fitsh-0.9.4/src/lfit.c:3368:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:3880:2: warning: If memory allocation fails, then there is a possible null pointer dereference: fitpnt [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:3877:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:3877:9: note: Assignment 'fitpnt=(void**)malloc(nrow*sizeof(void*))', assigned value is 0 fitsh-0.9.4/src/lfit.c:3880:2: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/lfit.c:398:22: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable T_OP [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:398:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_OP [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:4210:2: warning: If memory allocation fails, then there is a possible null pointer dereference: fitpnt [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:4207:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:4207:9: note: Assignment 'fitpnt=(void**)malloc(nrow*sizeof(void*))', assigned value is 0 fitsh-0.9.4/src/lfit.c:4210:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:4672:2: warning: If memory allocation fails, then there is a possible null pointer dereference: fitpnt [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:4669:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:4669:9: note: Assignment 'fitpnt=(void**)malloc(nrow*sizeof(void*))', assigned value is 0 fitsh-0.9.4/src/lfit.c:4672:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:4919:2: warning: If memory allocation fails, then there is a possible null pointer dereference: fitpnt [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:4916:24: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:4916:9: note: Assignment 'fitpnt=(void**)malloc(nrow*sizeof(void*))', assigned value is 0 fitsh-0.9.4/src/lfit.c:4919:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:5110:34: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] 2.16.0 fitsh-0.9.4/src/lfit.c:516:26: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:516:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:5291:24: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] 2.16.0 fitsh-0.9.4/src/lfit.c:5526:22: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:5526:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/lfit.c:5554:20: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable T_VAR [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:5554:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_VAR [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:5577:11: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: lstr [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:5574:13: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:5574:13: note: Assignment 'lstr=strdup(fncstr)', assigned value is 0 fitsh-0.9.4/src/lfit.c:5577:11: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:5578:11: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: lstr [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:5574:13: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:5574:13: note: Assignment 'lstr=strdup(fncstr)', assigned value is 0 fitsh-0.9.4/src/lfit.c:5578:11: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/lfit.c:5588:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:5588:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/lfit.c:562:52: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable psnsym [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:562:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psnsym [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/lfit.c:5669:18: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable LFITFUNCTION_DIFFERENTIABLE [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:5669:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LFITFUNCTION_DIFFERENTIABLE [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/lfit.c:5678:18: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable LFITFUNCTION_LINEAR [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:5678:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LFITFUNCTION_LINEAR [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:5711:11: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: lstr [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:5708:13: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:5708:13: note: Assignment 'lstr=strdup(fncstr)', assigned value is 0 fitsh-0.9.4/src/lfit.c:5711:11: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:5712:11: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: lstr [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:5708:13: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:5708:13: note: Assignment 'lstr=strdup(fncstr)', assigned value is 0 fitsh-0.9.4/src/lfit.c:5712:11: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/lfit.c:5722:28: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:5722:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:5821:3: warning: If memory allocation fails, then there is a possible null pointer dereference: pdiff [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:5817:22: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:5817:8: note: Assignment 'pdiff=(psn**)malloc(sizeof(psn*)*nvar)', assigned value is 0 fitsh-0.9.4/src/lfit.c:5821:3: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:5823:8: warning: If memory allocation fails, then there is a possible null pointer dereference: pdiff [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:5817:22: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:5817:8: note: Assignment 'pdiff=(psn**)malloc(sizeof(psn*)*nvar)', assigned value is 0 fitsh-0.9.4/src/lfit.c:5823:8: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:5833:22: warning: If memory allocation fails, then there is a possible null pointer dereference: pdiff [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:5817:22: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:5817:8: note: Assignment 'pdiff=(psn**)malloc(sizeof(psn*)*nvar)', assigned value is 0 fitsh-0.9.4/src/lfit.c:5823:16: note: Assuming condition is false fitsh-0.9.4/src/lfit.c:5833:22: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/lfit.c:6011:23: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:6011:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/lfit.c:621:52: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable psnsym [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:621:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psnsym [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/lfit.c:6252:34: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable psnsym [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:6252:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable psnsym [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:6254:5: warning: If memory allocation fails, then there is a possible null pointer dereference: argsyms [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:6252:26: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:6252:10: note: Assignment 'argsyms=(psnsym*)malloc(sizeof(psnsym)*(argnum+1))', assigned value is 0 fitsh-0.9.4/src/lfit.c:6254:5: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:6255:2: warning: If memory allocation fails, then there is a possible null pointer dereference: argsyms [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:6252:26: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:6252:10: note: Assignment 'argsyms=(psnsym*)malloc(sizeof(psnsym)*(argnum+1))', assigned value is 0 fitsh-0.9.4/src/lfit.c:6255:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:6256:2: warning: If memory allocation fails, then there is a possible null pointer dereference: argsyms [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:6252:26: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:6252:10: note: Assignment 'argsyms=(psnsym*)malloc(sizeof(psnsym)*(argnum+1))', assigned value is 0 fitsh-0.9.4/src/lfit.c:6256:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:6257:2: warning: If memory allocation fails, then there is a possible null pointer dereference: argsyms [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:6252:26: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:6252:10: note: Assignment 'argsyms=(psnsym*)malloc(sizeof(psnsym)*(argnum+1))', assigned value is 0 fitsh-0.9.4/src/lfit.c:6257:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:6259:2: warning: If memory allocation fails, then there is a possible null pointer dereference: argsyms [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:6252:26: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:6252:10: note: Assignment 'argsyms=(psnsym*)malloc(sizeof(psnsym)*(argnum+1))', assigned value is 0 fitsh-0.9.4/src/lfit.c:6259:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:6260:2: warning: If memory allocation fails, then there is a possible null pointer dereference: argsyms [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:6252:26: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:6252:10: note: Assignment 'argsyms=(psnsym*)malloc(sizeof(psnsym)*(argnum+1))', assigned value is 0 fitsh-0.9.4/src/lfit.c:6260:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:6261:2: warning: If memory allocation fails, then there is a possible null pointer dereference: argsyms [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:6252:26: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:6252:10: note: Assignment 'argsyms=(psnsym*)malloc(sizeof(psnsym)*(argnum+1))', assigned value is 0 fitsh-0.9.4/src/lfit.c:6261:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:6262:2: warning: If memory allocation fails, then there is a possible null pointer dereference: argsyms [nullPointerOutOfMemory] fitsh-0.9.4/src/lfit.c:6252:26: note: Assuming allocation function fails fitsh-0.9.4/src/lfit.c:6252:10: note: Assignment 'argsyms=(psnsym*)malloc(sizeof(psnsym)*(argnum+1))', assigned value is 0 fitsh-0.9.4/src/lfit.c:6262:2: note: Null pointer dereference head fitsh-0.9.4/src/lfit.c:6409:20: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.16.0 fitsh-0.9.4/src/lfit.c:6532:55: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:6532:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/lfit.c:671:17: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable T_OP [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/lfit.c:671:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_OP [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/link/floodfill.c:111:13: warning: If memory allocation fails, then there is a possible null pointer dereference: stack_dynamic [nullPointerOutOfMemory] fitsh-0.9.4/src/link/floodfill.c:110:37: note: Assuming allocation function fails fitsh-0.9.4/src/link/floodfill.c:110:22: note: Assignment 'stack_dynamic=(struct point*)malloc(sizeof(struct point)*mxsp)', assigned value is 0 fitsh-0.9.4/src/link/floodfill.c:111:13: note: Null pointer dereference head fitsh-0.9.4/src/link/floodfill.c:130:13: warning: If memory allocation fails, then there is a possible null pointer dereference: stack_dynamic [nullPointerOutOfMemory] fitsh-0.9.4/src/link/floodfill.c:129:37: note: Assuming allocation function fails fitsh-0.9.4/src/link/floodfill.c:129:22: note: Assignment 'stack_dynamic=(struct point*)malloc(sizeof(struct point)*mxsp)', assigned value is 0 fitsh-0.9.4/src/link/floodfill.c:130:13: note: Null pointer dereference head fitsh-0.9.4/src/longhelp.c:217:40: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] 2.16.0 fitsh-0.9.4/src/longhelp.c:261:21: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable options [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/longhelp.c:261:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable options [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/longhelp.c:84:2: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/longhelp.c:84:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/longhelp.c:89:11: warning: If memory allocation fails, then there is a possible null pointer dereference: buff [nullPointerOutOfMemory] fitsh-0.9.4/src/longhelp.c:134:11: note: Assuming allocation function fails fitsh-0.9.4/src/longhelp.c:134:11: note: Assignment 'dd=strdup(desc)', assigned value is 0 fitsh-0.9.4/src/longhelp.c:135:26: note: Calling function 'tokenize_spaces_dyn', 1st argument 'dd' value is 0 fitsh-0.9.4/src/longhelp.c:84:2: note: Assuming condition is false fitsh-0.9.4/src/longhelp.c:89:11: note: Null pointer dereference head fitsh-0.9.4/src/math/convexhull.c:45:8: error: Null pointer dereference: points [ctunullpointer] fitsh-0.9.4/src/grmatch.c:620:28: note: Assuming allocation function fails fitsh-0.9.4/src/grmatch.c:620:13: note: Assignment 'hullpoints=(struct point*)malloc(sizeof(struct point)*ninp)', assigned value is 0 fitsh-0.9.4/src/grmatch.c:626:26: note: Calling function convexhull_compute, 1st argument is null fitsh-0.9.4/src/math/convexhull.c:45:8: note: Dereferencing argument points that is null head fitsh-0.9.4/src/math/cpmatch.c:345:2: warning: If memory allocation fails, then there is a possible null pointer dereference: whits [nullPointerOutOfMemory] fitsh-0.9.4/src/math/cpmatch.c:341:23: note: Assuming allocation function fails fitsh-0.9.4/src/math/cpmatch.c:341:8: note: Assignment 'whits=(struct cphit*)malloc(maxlen*sizeof(struct cphit))', assigned value is 0 fitsh-0.9.4/src/math/cpmatch.c:345:2: note: Null pointer dereference head fitsh-0.9.4/src/math/cpmatch.c:346:2: warning: If memory allocation fails, then there is a possible null pointer dereference: whits [nullPointerOutOfMemory] fitsh-0.9.4/src/math/cpmatch.c:341:23: note: Assuming allocation function fails fitsh-0.9.4/src/math/cpmatch.c:341:8: note: Assignment 'whits=(struct cphit*)malloc(maxlen*sizeof(struct cphit))', assigned value is 0 fitsh-0.9.4/src/math/cpmatch.c:346:2: note: Null pointer dereference head fitsh-0.9.4/src/math/cpmatch.c:348:28: warning: If memory allocation fails, then there is a possible null pointer dereference: whits [nullPointerOutOfMemory] fitsh-0.9.4/src/math/cpmatch.c:341:23: note: Assuming allocation function fails fitsh-0.9.4/src/math/cpmatch.c:341:8: note: Assignment 'whits=(struct cphit*)malloc(maxlen*sizeof(struct cphit))', assigned value is 0 fitsh-0.9.4/src/math/cpmatch.c:348:28: note: Null pointer dereference head fitsh-0.9.4/src/math/cpmatch.c:352:2: warning: If memory allocation fails, then there is a possible null pointer dereference: whits [nullPointerOutOfMemory] fitsh-0.9.4/src/math/cpmatch.c:341:23: note: Assuming allocation function fails fitsh-0.9.4/src/math/cpmatch.c:341:8: note: Assignment 'whits=(struct cphit*)malloc(maxlen*sizeof(struct cphit))', assigned value is 0 fitsh-0.9.4/src/math/cpmatch.c:352:2: note: Null pointer dereference head fitsh-0.9.4/src/math/cpmatch.c:354:28: warning: If memory allocation fails, then there is a possible null pointer dereference: whits [nullPointerOutOfMemory] fitsh-0.9.4/src/math/cpmatch.c:341:23: note: Assuming allocation function fails fitsh-0.9.4/src/math/cpmatch.c:341:8: note: Assignment 'whits=(struct cphit*)malloc(maxlen*sizeof(struct cphit))', assigned value is 0 fitsh-0.9.4/src/math/cpmatch.c:354:28: note: Null pointer dereference head fitsh-0.9.4/src/math/delaunay.c:125:2: warning: If memory allocation fails, then there is a possible null pointer dereference: e [nullPointerOutOfMemory] fitsh-0.9.4/src/math/delaunay.c:121:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/delaunay.c:121:4: note: Assignment 'e=(struct edge*)malloc(sizeof(struct edge))', assigned value is 0 fitsh-0.9.4/src/math/delaunay.c:125:2: note: Null pointer dereference head fitsh-0.9.4/src/math/delaunay.c:126:2: warning: If memory allocation fails, then there is a possible null pointer dereference: e [nullPointerOutOfMemory] fitsh-0.9.4/src/math/delaunay.c:121:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/delaunay.c:121:4: note: Assignment 'e=(struct edge*)malloc(sizeof(struct edge))', assigned value is 0 fitsh-0.9.4/src/math/delaunay.c:126:2: note: Null pointer dereference head fitsh-0.9.4/src/math/delaunay.c:127:7: warning: If memory allocation fails, then there is a possible null pointer dereference: e [nullPointerOutOfMemory] fitsh-0.9.4/src/math/delaunay.c:121:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/delaunay.c:121:4: note: Assignment 'e=(struct edge*)malloc(sizeof(struct edge))', assigned value is 0 fitsh-0.9.4/src/math/delaunay.c:127:7: note: Null pointer dereference head fitsh-0.9.4/src/math/delaunay.c:534:2: warning: If memory allocation fails, then there is a possible null pointer dereference: neigindx [nullPointerOutOfMemory] fitsh-0.9.4/src/math/delaunay.c:565:24: note: Assuming allocation function fails fitsh-0.9.4/src/math/delaunay.c:565:11: note: Assignment 'neigindx=(int*)malloc(sizeof(int)*len)', assigned value is 0 fitsh-0.9.4/src/math/delaunay.c:566:41: note: Calling function 'make_neighbour_list', 4th argument 'neigindx' value is 0 fitsh-0.9.4/src/math/delaunay.c:534:2: note: Null pointer dereference head fitsh-0.9.4/src/math/delaunay.c:569:34: warning: If memory allocation fails, then there is a possible null pointer dereference: neigindx [nullPointerOutOfMemory] fitsh-0.9.4/src/math/delaunay.c:565:24: note: Assuming allocation function fails fitsh-0.9.4/src/math/delaunay.c:565:11: note: Assignment 'neigindx=(int*)malloc(sizeof(int)*len)', assigned value is 0 fitsh-0.9.4/src/math/delaunay.c:569:34: note: Null pointer dereference head fitsh-0.9.4/src/math/delaunay.c:686:8: warning: If memory allocation fails, then there is a possible null pointer dereference: tris [nullPointerOutOfMemory] fitsh-0.9.4/src/math/delaunay.c:621:25: note: Assuming allocation function fails fitsh-0.9.4/src/math/delaunay.c:621:7: note: Assignment 'tris=(struct triangle*)malloc(sizeof(struct triangle)*atri)', assigned value is 0 fitsh-0.9.4/src/math/delaunay.c:627:15: note: Assuming condition is false fitsh-0.9.4/src/math/delaunay.c:686:8: note: Null pointer dereference head fitsh-0.9.4/src/math/delaunay.c:689:10: warning: If memory allocation fails, then there is a possible null pointer dereference: wtris [nullPointerOutOfMemory] fitsh-0.9.4/src/math/delaunay.c:688:26: note: Assuming allocation function fails fitsh-0.9.4/src/math/delaunay.c:688:8: note: Assignment 'wtris=(struct triangle*)malloc(sizeof(struct triangle)*atri)', assigned value is 0 fitsh-0.9.4/src/math/delaunay.c:689:10: note: Null pointer dereference head fitsh-0.9.4/src/math/delaunay.c:689:20: warning: If memory allocation fails, then there is a possible null pointer dereference: tris [nullPointerOutOfMemory] fitsh-0.9.4/src/math/delaunay.c:621:25: note: Assuming allocation function fails fitsh-0.9.4/src/math/delaunay.c:621:7: note: Assignment 'tris=(struct triangle*)malloc(sizeof(struct triangle)*atri)', assigned value is 0 fitsh-0.9.4/src/math/delaunay.c:627:15: note: Assuming condition is false fitsh-0.9.4/src/math/delaunay.c:689:20: note: Null pointer dereference head fitsh-0.9.4/src/math/fit/downhill.c:61:2: warning: If memory allocation fails, then there is a possible null pointer dereference: y [nullPointerOutOfMemory] fitsh-0.9.4/src/math/fit/downhill.c:56:23: note: Assuming allocation function fails fitsh-0.9.4/src/math/fit/downhill.c:56:7: note: Assignment 'y=(double*)malloc(sizeof(double)*(nvar+1))', assigned value is 0 fitsh-0.9.4/src/math/fit/downhill.c:61:2: note: Null pointer dereference head fitsh-0.9.4/src/math/fit/downhill.c:68:2: warning: If memory allocation fails, then there is a possible null pointer dereference: psum [nullPointerOutOfMemory] fitsh-0.9.4/src/math/fit/downhill.c:57:23: note: Assuming allocation function fails fitsh-0.9.4/src/math/fit/downhill.c:57:7: note: Assignment 'psum=(double*)malloc(sizeof(double)*ndim)', assigned value is 0 fitsh-0.9.4/src/math/fit/downhill.c:68:2: note: Null pointer dereference head fitsh-0.9.4/src/math/poly.c:191:23: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fitsh-0.9.4/src/math/poly.c:190:23: note: Assuming allocation function fails fitsh-0.9.4/src/math/poly.c:190:7: note: Assignment 'tarr=(double*)malloc(sizeof(double)*nvar*2)', assigned value is 0 fitsh-0.9.4/src/math/poly.c:191:23: note: Null pointer addition head fitsh-0.9.4/src/math/poly.c:254:2: warning: If memory allocation fails, then there is a possible null pointer dereference: xm [nullPointerOutOfMemory] fitsh-0.9.4/src/math/poly.c:251:21: note: Assuming allocation function fails fitsh-0.9.4/src/math/poly.c:251:5: note: Assignment 'xm=(double*)malloc(sizeof(double)*nvar)', assigned value is 0 fitsh-0.9.4/src/math/poly.c:254:2: note: Null pointer dereference head fitsh-0.9.4/src/math/poly.c:254:8: warning: If memory allocation fails, then there is a possible null pointer dereference: ym [nullPointerOutOfMemory] fitsh-0.9.4/src/math/poly.c:252:21: note: Assuming allocation function fails fitsh-0.9.4/src/math/poly.c:252:5: note: Assignment 'ym=(double*)malloc(sizeof(double)*nvar)', assigned value is 0 fitsh-0.9.4/src/math/poly.c:254:8: note: Null pointer dereference head fitsh-0.9.4/src/math/poly.c:256:5: warning: If memory allocation fails, then there is a possible null pointer dereference: xm [nullPointerOutOfMemory] fitsh-0.9.4/src/math/poly.c:251:21: note: Assuming allocation function fails fitsh-0.9.4/src/math/poly.c:251:5: note: Assignment 'xm=(double*)malloc(sizeof(double)*nvar)', assigned value is 0 fitsh-0.9.4/src/math/poly.c:256:5: note: Null pointer dereference head fitsh-0.9.4/src/math/poly.c:257:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ym [nullPointerOutOfMemory] fitsh-0.9.4/src/math/poly.c:252:21: note: Assuming allocation function fails fitsh-0.9.4/src/math/poly.c:252:5: note: Assignment 'ym=(double*)malloc(sizeof(double)*nvar)', assigned value is 0 fitsh-0.9.4/src/math/poly.c:257:2: note: Null pointer dereference head fitsh-0.9.4/src/math/poly.c:264:11: warning: If memory allocation fails, then there is a possible null pointer dereference: ym [nullPointerOutOfMemory] fitsh-0.9.4/src/math/poly.c:252:21: note: Assuming allocation function fails fitsh-0.9.4/src/math/poly.c:252:5: note: Assignment 'ym=(double*)malloc(sizeof(double)*nvar)', assigned value is 0 fitsh-0.9.4/src/math/poly.c:264:11: note: Null pointer dereference head fitsh-0.9.4/src/math/poly.c:264:5: warning: If memory allocation fails, then there is a possible null pointer dereference: xm [nullPointerOutOfMemory] fitsh-0.9.4/src/math/poly.c:251:21: note: Assuming allocation function fails fitsh-0.9.4/src/math/poly.c:251:5: note: Assignment 'xm=(double*)malloc(sizeof(double)*nvar)', assigned value is 0 fitsh-0.9.4/src/math/poly.c:264:5: note: Null pointer dereference head fitsh-0.9.4/src/math/poly.c:266:5: warning: If memory allocation fails, then there is a possible null pointer dereference: xm [nullPointerOutOfMemory] fitsh-0.9.4/src/math/poly.c:251:21: note: Assuming allocation function fails fitsh-0.9.4/src/math/poly.c:251:5: note: Assignment 'xm=(double*)malloc(sizeof(double)*nvar)', assigned value is 0 fitsh-0.9.4/src/math/poly.c:266:5: note: Null pointer dereference head fitsh-0.9.4/src/math/polygon.c:135:7: warning: If memory allocation fails, then there is a possible null pointer dereference: flags [nullPointerOutOfMemory] fitsh-0.9.4/src/math/polygon.c:125:31: note: Assuming allocation function fails fitsh-0.9.4/src/math/polygon.c:125:8: note: Assignment 'flags=(unsigned char*)malloc(2*n)', assigned value is 0 fitsh-0.9.4/src/math/polygon.c:135:7: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:100:2: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:95:20: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:95:4: note: Assignment 'u=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:100:2: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:101:2: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:95:20: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:95:4: note: Assignment 'u=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:101:2: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:104:17: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:95:20: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:95:4: note: Assignment 'u=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:104:17: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:106:25: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:95:20: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:95:4: note: Assignment 'u=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:106:25: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:120:35: error: Null pointer dereference: y2a [ctunullpointer] fitsh-0.9.4/src/fbase.c:25:21: note: Assuming allocation function fails fitsh-0.9.4/src/fbase.c:25:5: note: Assignment 'y2=(double*)malloc(sizeof(double)*(order+1))', assigned value is 0 fitsh-0.9.4/src/fbase.c:33:30: note: Calling function natspline_inter, 2nd argument is null fitsh-0.9.4/src/math/spline/spline.c:120:35: note: Dereferencing argument y2a that is null head fitsh-0.9.4/src/math/spline/spline.c:120:6: error: Null pointer dereference: ya [ctunullpointer] fitsh-0.9.4/src/fbase.c:24:21: note: Assuming allocation function fails fitsh-0.9.4/src/fbase.c:24:5: note: Assignment 'y1=(double*)malloc(sizeof(double)*(order+1))', assigned value is 0 fitsh-0.9.4/src/fbase.c:33:30: note: Calling function natspline_inter, 1st argument is null fitsh-0.9.4/src/math/spline/spline.c:120:6: note: Dereferencing argument ya that is null head fitsh-0.9.4/src/math/spline/spline.c:169:14: warning: If memory allocation fails, then there is a possible null pointer dereference: db [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:168:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:168:5: note: Assignment 'db=(int*)malloc(sizeof(int)*(n+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:169:14: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:169:2: warning: If memory allocation fails, then there is a possible null pointer dereference: da [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:167:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:167:5: note: Assignment 'da=(int*)malloc(sizeof(int)*(n+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:169:2: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:170:2: warning: If memory allocation fails, then there is a possible null pointer dereference: da [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:167:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:167:5: note: Assignment 'da=(int*)malloc(sizeof(int)*(n+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:170:2: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:171:2: warning: If memory allocation fails, then there is a possible null pointer dereference: db [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:168:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:168:5: note: Assignment 'db=(int*)malloc(sizeof(int)*(n+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:171:2: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:183:17: warning: If memory allocation fails, then there is a possible null pointer dereference: da [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:167:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:167:5: note: Assignment 'da=(int*)malloc(sizeof(int)*(n+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:183:17: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:183:23: warning: If memory allocation fails, then there is a possible null pointer dereference: db [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:168:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:168:5: note: Assignment 'db=(int*)malloc(sizeof(int)*(n+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:183:23: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:189:13: warning: If memory allocation fails, then there is a possible null pointer dereference: da [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:167:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:167:5: note: Assignment 'da=(int*)malloc(sizeof(int)*(n+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:189:13: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:189:19: warning: If memory allocation fails, then there is a possible null pointer dereference: db [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:168:18: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:168:5: note: Assignment 'db=(int*)malloc(sizeof(int)*(n+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:189:19: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:246:5: warning: If memory allocation fails, then there is a possible null pointer dereference: gam [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:242:22: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:242:6: note: Assignment 'gam=(double*)malloc(sizeof(double)*(p+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:246:5: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:247:10: warning: If memory allocation fails, then there is a possible null pointer dereference: gam [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:242:22: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:242:6: note: Assignment 'gam=(double*)malloc(sizeof(double)*(p+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:247:10: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:250:2: warning: If memory allocation fails, then there is a possible null pointer dereference: gam [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:242:22: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:242:6: note: Assignment 'gam=(double*)malloc(sizeof(double)*(p+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:250:2: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:251:10: warning: If memory allocation fails, then there is a possible null pointer dereference: gam [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:242:22: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:242:6: note: Assignment 'gam=(double*)malloc(sizeof(double)*(p+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:251:10: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:254:13: warning: If memory allocation fails, then there is a possible null pointer dereference: gam [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:242:22: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:242:6: note: Assignment 'gam=(double*)malloc(sizeof(double)*(p+1))', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:254:13: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:37:2: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:26:20: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:26:4: note: Assignment 'u=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:37:2: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:38:2: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:26:20: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:26:4: note: Assignment 'u=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:38:2: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:46:17: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:26:20: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:26:4: note: Assignment 'u=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:46:17: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:48:25: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:26:20: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:26:4: note: Assignment 'u=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:48:25: note: Null pointer dereference head fitsh-0.9.4/src/math/spline/spline.c:65:4: error: Null pointer dereference: xa [ctunullpointer] fitsh-0.9.4/src/apphot.c:57:20: note: Assuming allocation function fails fitsh-0.9.4/src/apphot.c:57:4: note: Assignment 'x=(double*)malloc(sizeof(double)*(3*n))', assigned value is 0 fitsh-0.9.4/src/apphot.c:68:21: note: Calling function spline_inter, 1st argument is null fitsh-0.9.4/src/math/spline/spline.c:65:4: note: Dereferencing argument xa that is null head fitsh-0.9.4/src/math/spline/spline.c:96:2: error: Null pointer dereference: y2 [ctunullpointer] fitsh-0.9.4/src/fbase.c:25:21: note: Assuming allocation function fails fitsh-0.9.4/src/fbase.c:25:5: note: Assignment 'y2=(double*)malloc(sizeof(double)*(order+1))', assigned value is 0 fitsh-0.9.4/src/fbase.c:30:17: note: Calling function natspline_coeff, 3rd argument is null fitsh-0.9.4/src/math/spline/spline.c:96:2: note: Dereferencing argument y2 that is null head fitsh-0.9.4/src/math/spline/spline.c:96:8: warning: If memory allocation fails, then there is a possible null pointer dereference: u [nullPointerOutOfMemory] fitsh-0.9.4/src/math/spline/spline.c:95:20: note: Assuming allocation function fails fitsh-0.9.4/src/math/spline/spline.c:95:4: note: Assignment 'u=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/math/spline/spline.c:96:8: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/math/spmatrix.c:172:49: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable count [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/math/spmatrix.c:172:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable count [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/math/trimatch.c:264:5: warning: If memory allocation fails, then there is a possible null pointer dereference: fpoints [nullPointerOutOfMemory] fitsh-0.9.4/src/math/trimatch.c:262:25: note: Assuming allocation function fails fitsh-0.9.4/src/math/trimatch.c:262:10: note: Assignment 'fpoints=(struct point*)malloc(len*sizeof(struct point))', assigned value is 0 fitsh-0.9.4/src/math/trimatch.c:264:5: note: Null pointer dereference head fitsh-0.9.4/src/math/trimatch.c:265:2: warning: If memory allocation fails, then there is a possible null pointer dereference: fpoints [nullPointerOutOfMemory] fitsh-0.9.4/src/math/trimatch.c:262:25: note: Assuming allocation function fails fitsh-0.9.4/src/math/trimatch.c:262:10: note: Assignment 'fpoints=(struct point*)malloc(len*sizeof(struct point))', assigned value is 0 fitsh-0.9.4/src/math/trimatch.c:265:2: note: Null pointer dereference head fitsh-0.9.4/src/math/trimatch.c:266:2: warning: If memory allocation fails, then there is a possible null pointer dereference: fpoints [nullPointerOutOfMemory] fitsh-0.9.4/src/math/trimatch.c:262:25: note: Assuming allocation function fails fitsh-0.9.4/src/math/trimatch.c:262:10: note: Assignment 'fpoints=(struct point*)malloc(len*sizeof(struct point))', assigned value is 0 fitsh-0.9.4/src/math/trimatch.c:266:2: note: Null pointer dereference head fitsh-0.9.4/src/math/trimatch.c:270:5: warning: If memory allocation fails, then there is a possible null pointer dereference: fpoints [nullPointerOutOfMemory] fitsh-0.9.4/src/math/trimatch.c:262:25: note: Assuming allocation function fails fitsh-0.9.4/src/math/trimatch.c:262:10: note: Assignment 'fpoints=(struct point*)malloc(len*sizeof(struct point))', assigned value is 0 fitsh-0.9.4/src/math/trimatch.c:270:5: note: Null pointer dereference head fitsh-0.9.4/src/pselect.c:105:8: warning: If memory allocation fails, then there is a possible null pointer dereference: index [nullPointerOutOfMemory] fitsh-0.9.4/src/pselect.c:100:24: note: Assuming allocation function fails fitsh-0.9.4/src/pselect.c:100:11: note: Assignment 'index=(int*)malloc(sizeof(int)*n)', assigned value is 0 fitsh-0.9.4/src/pselect.c:105:8: note: Null pointer dereference head fitsh-0.9.4/src/pselect.c:109:8: warning: If memory allocation fails, then there is a possible null pointer dereference: index [nullPointerOutOfMemory] fitsh-0.9.4/src/pselect.c:100:24: note: Assuming allocation function fails fitsh-0.9.4/src/pselect.c:100:11: note: Assignment 'index=(int*)malloc(sizeof(int)*n)', assigned value is 0 fitsh-0.9.4/src/pselect.c:109:8: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/psf-determine.c:256:10: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/psf-determine.c:256:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/psf-determine.c:563:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rings [nullPointerOutOfMemory] fitsh-0.9.4/src/psf-determine.c:561:22: note: Assuming allocation function fails fitsh-0.9.4/src/psf-determine.c:561:8: note: Assignment 'rings=(struct ring*)malloc(sizeof(struct ring)*nring)', assigned value is 0 fitsh-0.9.4/src/psf-determine.c:563:5: note: Null pointer dereference head fitsh-0.9.4/src/psf-determine.c:565:2: warning: If memory allocation fails, then there is a possible null pointer dereference: rings [nullPointerOutOfMemory] fitsh-0.9.4/src/psf-determine.c:561:22: note: Assuming allocation function fails fitsh-0.9.4/src/psf-determine.c:561:8: note: Assignment 'rings=(struct ring*)malloc(sizeof(struct ring)*nring)', assigned value is 0 fitsh-0.9.4/src/psf-determine.c:565:2: note: Null pointer dereference head fitsh-0.9.4/src/psf-determine.c:566:2: warning: If memory allocation fails, then there is a possible null pointer dereference: rings [nullPointerOutOfMemory] fitsh-0.9.4/src/psf-determine.c:561:22: note: Assuming allocation function fails fitsh-0.9.4/src/psf-determine.c:561:8: note: Assignment 'rings=(struct ring*)malloc(sizeof(struct ring)*nring)', assigned value is 0 fitsh-0.9.4/src/psf-determine.c:566:2: note: Null pointer dereference head fitsh-0.9.4/src/psf-determine.c:571:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rings [nullPointerOutOfMemory] fitsh-0.9.4/src/psf-determine.c:561:22: note: Assuming allocation function fails fitsh-0.9.4/src/psf-determine.c:561:8: note: Assignment 'rings=(struct ring*)malloc(sizeof(struct ring)*nring)', assigned value is 0 fitsh-0.9.4/src/psf-determine.c:571:5: note: Null pointer dereference head fitsh-0.9.4/src/psf-determine.c:572:2: warning: If memory allocation fails, then there is a possible null pointer dereference: rings [nullPointerOutOfMemory] fitsh-0.9.4/src/psf-determine.c:561:22: note: Assuming allocation function fails fitsh-0.9.4/src/psf-determine.c:561:8: note: Assignment 'rings=(struct ring*)malloc(sizeof(struct ring)*nring)', assigned value is 0 fitsh-0.9.4/src/psf-determine.c:572:2: note: Null pointer dereference head fitsh-0.9.4/src/psf-determine.c:573:10: warning: If memory allocation fails, then there is a possible null pointer dereference: rings [nullPointerOutOfMemory] fitsh-0.9.4/src/psf-determine.c:561:22: note: Assuming allocation function fails fitsh-0.9.4/src/psf-determine.c:561:8: note: Assignment 'rings=(struct ring*)malloc(sizeof(struct ring)*nring)', assigned value is 0 fitsh-0.9.4/src/psf-determine.c:573:10: note: Null pointer dereference head fitsh-0.9.4/src/psf-determine.c:574:7: warning: If memory allocation fails, then there is a possible null pointer dereference: rings [nullPointerOutOfMemory] fitsh-0.9.4/src/psf-determine.c:561:22: note: Assuming allocation function fails fitsh-0.9.4/src/psf-determine.c:561:8: note: Assignment 'rings=(struct ring*)malloc(sizeof(struct ring)*nring)', assigned value is 0 fitsh-0.9.4/src/psf-determine.c:574:7: note: Null pointer dereference head fitsh-0.9.4/src/psf-determine.c:979:32: warning: If memory allocation fails, then there is a possible null pointer dereference: pvals [nullPointerOutOfMemory] fitsh-0.9.4/src/psf-determine.c:946:24: note: Assuming allocation function fails fitsh-0.9.4/src/psf-determine.c:946:8: note: Assignment 'pvals=(double*)malloc(sizeof(double)*nyval)', assigned value is 0 fitsh-0.9.4/src/psf-determine.c:979:32: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/psf-io.c:87:62: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/psf-io.c:87:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/star-base.c:140:9: warning: If memory allocation fails, then there is a possible null pointer dereference: tstars [nullPointerOutOfMemory] fitsh-0.9.4/src/star-base.c:139:23: note: Assuming allocation function fails fitsh-0.9.4/src/star-base.c:139:9: note: Assignment 'tstars=(struct star*)malloc(sizeof(struct star)*nstar)', assigned value is 0 fitsh-0.9.4/src/star-base.c:140:9: note: Null pointer dereference head fitsh-0.9.4/src/star-base.c:144:12: warning: If memory allocation fails, then there is a possible null pointer dereference: tstars [nullPointerOutOfMemory] fitsh-0.9.4/src/star-base.c:139:23: note: Assuming allocation function fails fitsh-0.9.4/src/star-base.c:139:9: note: Assignment 'tstars=(struct star*)malloc(sizeof(struct star)*nstar)', assigned value is 0 fitsh-0.9.4/src/star-base.c:144:12: note: Null pointer dereference head fitsh-0.9.4/src/star-cand-lnk.c:114:5: warning: If memory allocation fails, then there is a possible null pointer dereference: lbgs [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-lnk.c:112:31: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-lnk.c:112:10: note: Assignment 'lbgs=(struct lbackground*)malloc(sizeof(struct lbackground)*icand)', assigned value is 0 fitsh-0.9.4/src/star-cand-lnk.c:114:5: note: Null pointer dereference head fitsh-0.9.4/src/star-cand-lnk.c:115:3: warning: If memory allocation fails, then there is a possible null pointer dereference: lbgs [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-lnk.c:112:31: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-lnk.c:112:10: note: Assignment 'lbgs=(struct lbackground*)malloc(sizeof(struct lbackground)*icand)', assigned value is 0 fitsh-0.9.4/src/star-cand-lnk.c:115:3: note: Null pointer dereference head fitsh-0.9.4/src/star-cand-lnk.c:116:3: warning: If memory allocation fails, then there is a possible null pointer dereference: lbgs [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-lnk.c:112:31: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-lnk.c:112:10: note: Assignment 'lbgs=(struct lbackground*)malloc(sizeof(struct lbackground)*icand)', assigned value is 0 fitsh-0.9.4/src/star-cand-lnk.c:116:3: note: Null pointer dereference head fitsh-0.9.4/src/star-cand-lnk.c:117:3: warning: If memory allocation fails, then there is a possible null pointer dereference: lbgs [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-lnk.c:112:31: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-lnk.c:112:10: note: Assignment 'lbgs=(struct lbackground*)malloc(sizeof(struct lbackground)*icand)', assigned value is 0 fitsh-0.9.4/src/star-cand-lnk.c:117:3: note: Null pointer dereference head fitsh-0.9.4/src/star-cand-lnk.c:118:3: warning: If memory allocation fails, then there is a possible null pointer dereference: lbgs [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-lnk.c:112:31: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-lnk.c:112:10: note: Assignment 'lbgs=(struct lbackground*)malloc(sizeof(struct lbackground)*icand)', assigned value is 0 fitsh-0.9.4/src/star-cand-lnk.c:118:3: note: Null pointer dereference head fitsh-0.9.4/src/star-cand-pp.c:242:5: warning: If memory allocation fails, then there is a possible null pointer dereference: fillmask [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-pp.c:228:24: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-pp.c:228:11: note: Assignment 'fillmask=(int*)malloc(sizeof(int)*bs*bs)', assigned value is 0 fitsh-0.9.4/src/star-cand-pp.c:242:5: note: Null pointer dereference head fitsh-0.9.4/src/star-cand-trb.c:183:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tps [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-trb.c:181:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-trb.c:181:6: note: Assignment 'tps=(struct tpoint*)malloc(sizeof(struct tpoint)*ncand)', assigned value is 0 fitsh-0.9.4/src/star-cand-trb.c:183:5: note: Null pointer dereference head fitsh-0.9.4/src/star-cand-trb.c:184:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tps [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-trb.c:181:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-trb.c:181:6: note: Assignment 'tps=(struct tpoint*)malloc(sizeof(struct tpoint)*ncand)', assigned value is 0 fitsh-0.9.4/src/star-cand-trb.c:184:2: note: Null pointer dereference head fitsh-0.9.4/src/star-cand-trb.c:185:2: warning: If memory allocation fails, then there is a possible null pointer dereference: tps [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-trb.c:181:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-trb.c:181:6: note: Assignment 'tps=(struct tpoint*)malloc(sizeof(struct tpoint)*ncand)', assigned value is 0 fitsh-0.9.4/src/star-cand-trb.c:185:2: note: Null pointer dereference head fitsh-0.9.4/src/star-cand-trb.c:208:3: warning: If memory allocation fails, then there is a possible null pointer dereference: darr [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-trb.c:202:23: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-trb.c:202:7: note: Assignment 'darr=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/star-cand-trb.c:208:3: note: Null pointer dereference head fitsh-0.9.4/src/star-cand-trb.c:212:5: warning: If memory allocation fails, then there is a possible null pointer dereference: darr [nullPointerOutOfMemory] fitsh-0.9.4/src/star-cand-trb.c:202:23: note: Assuming allocation function fails fitsh-0.9.4/src/star-cand-trb.c:202:7: note: Assignment 'darr=(double*)malloc(sizeof(double)*n)', assigned value is 0 fitsh-0.9.4/src/star-cand-trb.c:212:5: note: Null pointer dereference head fitsh-0.9.4/src/star-model.c:1037:2: warning: If memory allocation fails, then there is a possible null pointer dereference: afp [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1033:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1033:6: note: Assignment 'afp=(double*)malloc(sizeof(double)*nfv)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1037:2: note: Null pointer dereference head fitsh-0.9.4/src/star-model.c:1038:2: warning: If memory allocation fails, then there is a possible null pointer dereference: afp [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1033:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1033:6: note: Assignment 'afp=(double*)malloc(sizeof(double)*nfv)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1038:2: note: Null pointer dereference head fitsh-0.9.4/src/star-model.c:1039:2: warning: If memory allocation fails, then there is a possible null pointer dereference: afp [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1033:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1033:6: note: Assignment 'afp=(double*)malloc(sizeof(double)*nfv)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1039:2: note: Null pointer dereference head fitsh-0.9.4/src/star-model.c:1044:5: warning: If memory allocation fails, then there is a possible null pointer dereference: afp [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1033:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1033:6: note: Assignment 'afp=(double*)malloc(sizeof(double)*nfv)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1044:5: note: Null pointer dereference head fitsh-0.9.4/src/star-model.c:1045:2: warning: If memory allocation fails, then there is a possible null pointer dereference: afp [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1033:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1033:6: note: Assignment 'afp=(double*)malloc(sizeof(double)*nfv)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1045:2: note: Null pointer dereference head fitsh-0.9.4/src/star-model.c:1046:2: warning: If memory allocation fails, then there is a possible null pointer dereference: afp [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1033:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1033:6: note: Assignment 'afp=(double*)malloc(sizeof(double)*nfv)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1046:2: note: Null pointer dereference head fitsh-0.9.4/src/star-model.c:1047:2: warning: If memory allocation fails, then there is a possible null pointer dereference: afp [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1033:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1033:6: note: Assignment 'afp=(double*)malloc(sizeof(double)*nfv)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1047:2: note: Null pointer dereference head fitsh-0.9.4/src/star-model.c:1048:2: warning: If memory allocation fails, then there is a possible null pointer dereference: afp [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1033:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1033:6: note: Assignment 'afp=(double*)malloc(sizeof(double)*nfv)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1048:2: note: Null pointer dereference head fitsh-0.9.4/src/star-model.c:1713:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sfs [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1711:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1711:6: note: Assignment 'sfs=(struct sfdata*)malloc(sizeof(struct sfdata)*nstar)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1713:5: note: Null pointer dereference head fitsh-0.9.4/src/star-model.c:1714:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sfs [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1711:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1711:6: note: Assignment 'sfs=(struct sfdata*)malloc(sizeof(struct sfdata)*nstar)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1714:2: note: Null pointer dereference head fitsh-0.9.4/src/star-model.c:1715:2: warning: If memory allocation fails, then there is a possible null pointer dereference: sfs [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1711:22: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1711:6: note: Assignment 'sfs=(struct sfdata*)malloc(sizeof(struct sfdata)*nstar)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1715:2: note: Null pointer dereference head fitsh-0.9.4/src/star-model.c:1723:5: warning: If memory allocation fails, then there is a possible null pointer dereference: yvaldata [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1721:27: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1721:11: note: Assignment 'yvaldata=(double*)malloc(sizeof(double)*asize)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1723:5: note: Null pointer dereference head fitsh-0.9.4/src/star-model.c:1727:20: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fitsh-0.9.4/src/star-model.c:1721:27: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1721:11: note: Assignment 'yvaldata=(double*)malloc(sizeof(double)*asize)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1727:20: note: Null pointer addition head fitsh-0.9.4/src/star-model.c:1727:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ypl [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1724:23: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1724:6: note: Assignment 'ypl=(double**)malloc(sizeof(double*)*nstar)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1727:5: note: Null pointer dereference head fitsh-0.9.4/src/star-model.c:1736:33: warning: If memory allocation fails, then there is a possible null pointer dereference: ypl [nullPointerOutOfMemory] fitsh-0.9.4/src/star-model.c:1724:23: note: Assuming allocation function fails fitsh-0.9.4/src/star-model.c:1724:6: note: Assignment 'ypl=(double**)malloc(sizeof(double*)*nstar)', assigned value is 0 fitsh-0.9.4/src/star-model.c:1736:33: note: Null pointer dereference 2.16.0 fitsh-0.9.4/src/star-model.c:1774:13: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/star-model.c:1774:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/star-model.c:725:33: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/star-model.c:725:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/star-model.c:828:33: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/star-model.c:828:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/star-psf.c:291:13: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/star-psf.c:291:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/transform.c:39:67: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] head fitsh-0.9.4/src/transform.c:409:12: warning: If memory allocation fails, then there is a possible null pointer dereference: jxy [nullPointerOutOfMemory] fitsh-0.9.4/src/transform.c:404:22: note: Assuming allocation function fails fitsh-0.9.4/src/transform.c:404:6: note: Assignment 'jxy=(double*)malloc(sizeof(double)*jnvar)', assigned value is 0 fitsh-0.9.4/src/transform.c:409:12: note: Null pointer dereference head fitsh-0.9.4/src/transform.c:409:19: warning: If memory allocation fails, then there is a possible null pointer dereference: jyx [nullPointerOutOfMemory] fitsh-0.9.4/src/transform.c:405:22: note: Assuming allocation function fails fitsh-0.9.4/src/transform.c:405:6: note: Assignment 'jyx=(double*)malloc(sizeof(double)*jnvar)', assigned value is 0 fitsh-0.9.4/src/transform.c:409:19: note: Null pointer dereference head fitsh-0.9.4/src/transform.c:409:26: warning: If memory allocation fails, then there is a possible null pointer dereference: jyy [nullPointerOutOfMemory] fitsh-0.9.4/src/transform.c:406:22: note: Assuming allocation function fails fitsh-0.9.4/src/transform.c:406:6: note: Assignment 'jyy=(double*)malloc(sizeof(double)*jnvar)', assigned value is 0 fitsh-0.9.4/src/transform.c:409:26: note: Null pointer dereference head fitsh-0.9.4/src/transform.c:409:5: warning: If memory allocation fails, then there is a possible null pointer dereference: jxx [nullPointerOutOfMemory] fitsh-0.9.4/src/transform.c:403:22: note: Assuming allocation function fails fitsh-0.9.4/src/transform.c:403:6: note: Assignment 'jxx=(double*)malloc(sizeof(double)*jnvar)', assigned value is 0 fitsh-0.9.4/src/transform.c:409:5: note: Null pointer dereference head fitsh-0.9.4/src/transform.c:412:12: warning: If memory allocation fails, then there is a possible null pointer dereference: jxx [nullPointerOutOfMemory] fitsh-0.9.4/src/transform.c:403:22: note: Assuming allocation function fails fitsh-0.9.4/src/transform.c:403:6: note: Assignment 'jxx=(double*)malloc(sizeof(double)*jnvar)', assigned value is 0 fitsh-0.9.4/src/transform.c:412:12: note: Null pointer dereference head fitsh-0.9.4/src/transform.c:413:3: warning: If memory allocation fails, then there is a possible null pointer dereference: jxy [nullPointerOutOfMemory] fitsh-0.9.4/src/transform.c:404:22: note: Assuming allocation function fails fitsh-0.9.4/src/transform.c:404:6: note: Assignment 'jxy=(double*)malloc(sizeof(double)*jnvar)', assigned value is 0 fitsh-0.9.4/src/transform.c:413:3: note: Null pointer dereference head fitsh-0.9.4/src/transform.c:414:3: warning: If memory allocation fails, then there is a possible null pointer dereference: jyx [nullPointerOutOfMemory] fitsh-0.9.4/src/transform.c:405:22: note: Assuming allocation function fails fitsh-0.9.4/src/transform.c:405:6: note: Assignment 'jyx=(double*)malloc(sizeof(double)*jnvar)', assigned value is 0 fitsh-0.9.4/src/transform.c:414:3: note: Null pointer dereference head fitsh-0.9.4/src/transform.c:415:3: warning: If memory allocation fails, then there is a possible null pointer dereference: jyy [nullPointerOutOfMemory] fitsh-0.9.4/src/transform.c:406:22: note: Assuming allocation function fails fitsh-0.9.4/src/transform.c:406:6: note: Assignment 'jyy=(double*)malloc(sizeof(double)*jnvar)', assigned value is 0 fitsh-0.9.4/src/transform.c:415:3: note: Null pointer dereference head fitsh-0.9.4/src/ui.c:188:29: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] 2.16.0 fitsh-0.9.4/src/ui.c:43:36: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITSH_VERSION [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ui.c:43:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITSH_VERSION [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/ui.c:68:67: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITSH_MAINT_EMAIL [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ui.c:68:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITSH_MAINT_EMAIL [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/ui.c:81:8: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/ui.c:81:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/weight-io.c:119:32: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_VBOOLEAN [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/weight-io.c:119:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_VBOOLEAN [valueFlowBailoutIncompleteVar] 2.16.0 fitsh-0.9.4/src/weight-io.c:69:50: debug: analyzeConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] head fitsh-0.9.4/src/weight-io.c:69:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FITS_SH_FIRST [valueFlowBailoutIncompleteVar] DONE