2025-11-22 17:44 ftp://ftp.de.debian.org/debian/pool/main/m/montage/montage_6.1+dfsg.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=bsd --library=libcurl --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 2989 2982 elapsed-time: 91.3 143.8 head-timing-info: old-timing-info: head results: Montage-6.1/Montage/checkFile.c:21:21: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/debugCheck.c:24:22: style: Parameter 'debugStr' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/filePath.c:22:22: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/checkHdr.c:200:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/checkHdr.c:515:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/checkHdr.c:810:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/get_hdr.c:98:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/checkWCS.c:39:32: style: Parameter 'wcs' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/get_hfiles.c:53:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/get_hfiles.c:45:20: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] Montage-6.1/Montage/get_files.c:66:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/get_hhdr.c:68:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/get_hhdr.c:210:4: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] Montage-6.1/Montage/get_hhdr.c:243:4: note: Found duplicate branches for 'if' and 'else'. Montage-6.1/Montage/get_hhdr.c:210:4: note: Found duplicate branches for 'if' and 'else'. Montage-6.1/Montage/get_hhdr.c:54:17: style: Variable 'first_failed' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/get_hhdr.c:103:16: style: Variable 'first_failed' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/get_hhdr.c:105:7: style: Variable 'nfailed' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/get_hhdr.c:131:16: style: Variable 'first_failed' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/get_hhdr.c:133:7: style: Variable 'nfailed' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/get_hhdr.c:291:11: style: Variable 'status' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/ltqnorm.c:71:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/get_hdr.c:190:28: style: Redundant condition: The condition '*ptr != '\0'' is redundant since '*ptr == '-'' is sufficient. [redundantCondition] Montage-6.1/Montage/get_hdr.c:279:28: style: Redundant condition: The condition '*ptr != '\0'' is redundant since '*ptr == '-'' is sufficient. [redundantCondition] Montage-6.1/Montage/get_hdr.c:52:9: style: struct member 'FIELDS::type' is never used. [unusedStructMember] Montage-6.1/Montage/get_hdr.c:55:9: style: struct member 'FIELDS::width' is never used. [unusedStructMember] Montage-6.1/Montage/mAdd.c:374:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DOUBLE_IMG [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAdd.c:2061:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAdd.c:2136:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAdd.c:2188:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAdd.c:2441:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable listElement [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAdd.c:2478:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable listElement [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAdd.c:2541:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable listElement [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAdd.c:2612:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable listElement [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAddCube.c:297:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAddCube.c:1872:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAddCube.c:1947:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAddCube.c:2025:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAddCube.c:2277:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable listElement [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAddCube.c:2314:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable listElement [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAddCube.c:2377:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable listElement [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAddCube.c:2448:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable listElement [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAdd.c:818:10: error: Common realloc mistake: 'cntr' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAdd.c:819:10: error: Common realloc mistake: 'infile' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAdd.c:820:10: error: Common realloc mistake: 'inarea' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAdd.c:821:10: error: Common realloc mistake: 'inctype1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAdd.c:822:10: error: Common realloc mistake: 'inctype2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAdd.c:823:10: error: Common realloc mistake: 'incrval1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAdd.c:824:10: error: Common realloc mistake: 'incrval2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAdd.c:825:10: error: Common realloc mistake: 'incrpix1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAdd.c:826:10: error: Common realloc mistake: 'incrpix2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAdd.c:827:10: error: Common realloc mistake: 'innaxis1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAdd.c:828:10: error: Common realloc mistake: 'innaxis2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAdd.c:829:10: error: Common realloc mistake: 'incdelt1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAdd.c:830:10: error: Common realloc mistake: 'incdelt2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAdd.c:2308:6: error: Common realloc mistake: 'sorted' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAdd.c:2309:6: error: Common realloc mistake: 'sortedarea' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAdd.c:295:14: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] Montage-6.1/Montage/mAdd.c:2028:25: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mAdd.c:2209:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mAdd.c:2226:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mAdd.c:2250:21: style: Parameter 'data' can be declared as const array [constParameter] Montage-6.1/Montage/mAdd.c:2250:36: style: Parameter 'area' can be declared as const array [constParameter] Montage-6.1/Montage/mAdd.c:2286:23: style: Parameter 'data' can be declared as const array [constParameter] Montage-6.1/Montage/mAdd.c:2286:38: style: Parameter 'area' can be declared as const array [constParameter] Montage-6.1/Montage/mAdd.c:2373:22: style: Parameter 'data' can be declared as const array [constParameter] Montage-6.1/Montage/mAdd.c:2373:37: style: Parameter 'area' can be declared as const array [constParameter] Montage-6.1/Montage/mAdd.c:2630:22: style: Parameter 'label' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mAdd.c:2495:34: warning: Uninitialized variable: prev [uninitvar] Montage-6.1/Montage/mAdd.c:2487:14: note: Assuming condition is false Montage-6.1/Montage/mAdd.c:2495:34: note: Uninitialized variable: prev Montage-6.1/Montage/mAddCube.c:699:10: error: Common realloc mistake: 'cntr' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:700:10: error: Common realloc mistake: 'infile' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:701:10: error: Common realloc mistake: 'inarea' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:702:10: error: Common realloc mistake: 'incrval1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:703:10: error: Common realloc mistake: 'incrval2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:704:10: error: Common realloc mistake: 'incrval3' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:705:10: error: Common realloc mistake: 'incrval4' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:706:10: error: Common realloc mistake: 'incrpix1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:707:10: error: Common realloc mistake: 'incrpix2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:708:10: error: Common realloc mistake: 'incrpix3' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:709:10: error: Common realloc mistake: 'incrpix4' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:710:10: error: Common realloc mistake: 'innaxis1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:711:10: error: Common realloc mistake: 'innaxis2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:712:10: error: Common realloc mistake: 'innaxis3' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:713:10: error: Common realloc mistake: 'innaxis4' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:714:10: error: Common realloc mistake: 'incdelt1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:715:10: error: Common realloc mistake: 'incdelt2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:716:10: error: Common realloc mistake: 'incdelt3' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:717:10: error: Common realloc mistake: 'incdelt4' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:2144:6: error: Common realloc mistake: 'sorted' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:2145:6: error: Common realloc mistake: 'sortedarea' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mAddCube.c:186:14: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] Montage-6.1/Montage/mAddCube.c:1834:25: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mAddCube.c:2045:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mAddCube.c:2061:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mAddCube.c:2085:21: style: Parameter 'data' can be declared as const array [constParameter] Montage-6.1/Montage/mAddCube.c:2085:36: style: Parameter 'area' can be declared as const array [constParameter] Montage-6.1/Montage/mAddCube.c:2122:23: style: Parameter 'data' can be declared as const array [constParameter] Montage-6.1/Montage/mAddCube.c:2122:38: style: Parameter 'area' can be declared as const array [constParameter] Montage-6.1/Montage/mAddCube.c:2209:22: style: Parameter 'data' can be declared as const array [constParameter] Montage-6.1/Montage/mAddCube.c:2209:37: style: Parameter 'area' can be declared as const array [constParameter] Montage-6.1/Montage/mAddCube.c:2466:22: style: Parameter 'label' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mAddCube.c:2331:34: warning: Uninitialized variable: prev [uninitvar] Montage-6.1/Montage/mAddCube.c:2323:14: note: Assuming condition is false Montage-6.1/Montage/mAddCube.c:2331:34: note: Uninitialized variable: prev Montage-6.1/Montage/mAddExec.c:199:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAddExec.c:701:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAddExec.c:772:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAddExec.c:890:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mBackground.c:141:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mBackground.c:837:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mBackground.c:896:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mAddExec.c:442:50: error: Array 'template_file[256]' accessed at index -1, which is out of bounds. [negativeIndex] Montage-6.1/Montage/mAddExec.c:436:36: note: Assuming that condition 'i>=0' is not redundant Montage-6.1/Montage/mAddExec.c:442:50: note: Negative array index Montage-6.1/Montage/mAddExec.c:444:20: error: Array 'template_body[256]' accessed at index -1, which is out of bounds. [negativeIndex] Montage-6.1/Montage/mAddExec.c:436:36: note: Assuming that condition 'i>=0' is not redundant Montage-6.1/Montage/mAddExec.c:444:20: note: Negative array index Montage-6.1/Montage/mAddExec.c:669:25: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mAddExec.c:788:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mAddExec.c:802:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mAddExec.c:825:32: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mAddExec.c:826:32: style: Parameter 'status_file' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mAddExec.c:827:21: style: Parameter 'template_body' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mAddExec.c:827:42: style: Parameter 'template_ext' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mAddExec.c:827:62: style: Parameter 'output_dir' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mAddExec.c:828:14: style: Parameter 'output_file' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mAddExec.c:941:20: style: Parameter 'Str' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/get_files.c:150:29: warning: Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead. [prohibitedmktempCalled] Montage-6.1/Montage/get_files.c:58:20: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] Montage-6.1/Montage/mBgExec.c:141:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mBgExec.c:625:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mBgExec.c:652:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mBackground.c:485:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mBackground.c:515:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mBackground.c:879:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mBgExec.c:255:28: warning: Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead. [prohibitedmktempCalled] Montage-6.1/Montage/mBgExec.c:294:29: warning: Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead. [prohibitedmktempCalled] Montage-6.1/Montage/mBgExec.c:570:20: style: Condition 'cntr>id' is always true [knownConditionTrueFalse] Montage-6.1/Montage/mBgExec.c:496:15: note: Assuming that condition 'cntr==id' is not redundant Montage-6.1/Montage/mBgExec.c:570:20: note: Condition 'cntr>id' is always true Montage-6.1/Montage/mConvert.c:116:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mConvert.c:610:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mConvert.c:656:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mBgModel.c:294:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mConvert.c:639:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mConvert.c:105:16: style: Variable 'haveStatus' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mConvert.c:122:21: style: Variable 'haveStatus' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mCoverageCheck.c:228:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTBL_MAXSTR [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/checkHdr.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] Montage-6.1/Montage/checkHdr.c:432:23: style: Redundant condition: The condition '*ptr1 != '\0'' is redundant since '*ptr1 == '-'' is sufficient. [redundantCondition] Montage-6.1/Montage/checkHdr.c:437:23: style: Redundant condition: The condition '*ptr2 != '\0'' is redundant since '*ptr2 == '-'' is sufficient. [redundantCondition] Montage-6.1/Montage/checkHdr.c:226:10: error: Common realloc mistake: 'mHeader' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/checkHdr.c:354:13: error: Common realloc mistake: 'mHeader' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/checkHdr.c:138:14: style: Variable 'ptr1' can be declared as pointer to const [constVariablePointer] Montage-6.1/Montage/checkHdr.c:139:14: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] Montage-6.1/Montage/checkHdr.c:504:21: style: Parameter 'keyword' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/checkHdr.c:758:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/checkHdr.c:781:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/checkHdr.c:603:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/checkHdr.c:613:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/checkHdr.c:623:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/checkHdr.c:633:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/checkHdr.c:643:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/checkHdr.c:653:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/checkHdr.c:661:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/checkHdr.c:671:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/checkHdr.c:681:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/checkHdr.c:691:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/checkHdr.c:701:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/checkHdr.c:709:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/checkHdr.c:717:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/checkHdr.c:725:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/checkHdr.c:733:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/checkHdr.c:510:11: style: Unused variable: msg [unusedVariable] Montage-6.1/Montage/mDiffExec.c:120:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mDiffExec.c:292:13: style: Variable 'cntr1' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mDiffExec.c:293:13: style: Variable 'cntr2' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mDiff.c:135:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DOUBLE_IMG [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mDiff.c:1092:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mDiff.c:1155:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mDiff.c:1204:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mDiff.c:1248:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mDiffFitExec.c:114:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mBgModel.c:974:7: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/Montage/mBgModel.c:929:7: note: First condition Montage-6.1/Montage/mBgModel.c:974:7: note: Second condition Montage-6.1/Montage/mBgModel.c:440:7: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mBgModel.c:478:13: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mBgModel.c:567:7: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mBgModel.c:631:13: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mBgModel.c:640:13: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mBgModel.c:679:13: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mBgModel.c:688:13: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mBgModel.c:708:7: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mBgModel.c:733:10: portability: %lu in format string (no. 3) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mBgModel.c:778:16: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mBgModel.c:803:19: portability: %lu in format string (no. 3) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mBgModel.c:850:13: portability: %lu in format string (no. 3) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mBgModel.c:264:7: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] Montage-6.1/Montage/mBgModel.c:261:24: note: Assuming allocation function fails Montage-6.1/Montage/mBgModel.c:261:8: note: Assignment 'a=(float**)malloc(n*sizeof(float*))', assigned value is 0 Montage-6.1/Montage/mBgModel.c:264:7: note: Null pointer dereference Montage-6.1/Montage/mBgModel.c:276:7: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] Montage-6.1/Montage/mBgModel.c:273:24: note: Assuming allocation function fails Montage-6.1/Montage/mBgModel.c:273:8: note: Assignment 'b=(float**)malloc(n*sizeof(float*))', assigned value is 0 Montage-6.1/Montage/mBgModel.c:276:7: note: Null pointer dereference Montage-6.1/Montage/mFitExec.c:151:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mFlattenExec.c:110:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mDiff.c:448:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mDiff.c:478:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mDiff.c:444:7: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] Montage-6.1/Montage/mDiff.c:441:28: note: Assuming allocation function fails Montage-6.1/Montage/mDiff.c:441:11: note: Assignment 'data=(double**)malloc(jlength*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mDiff.c:444:7: note: Null pointer dereference Montage-6.1/Montage/mDiff.c:462:10: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] Montage-6.1/Montage/mDiff.c:441:28: note: Assuming allocation function fails Montage-6.1/Montage/mDiff.c:441:11: note: Assignment 'data=(double**)malloc(jlength*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mDiff.c:462:10: note: Null pointer dereference Montage-6.1/Montage/mDiff.c:474:7: warning: If memory allocation fails, then there is a possible null pointer dereference: area [nullPointerOutOfMemory] Montage-6.1/Montage/mDiff.c:471:28: note: Assuming allocation function fails Montage-6.1/Montage/mDiff.c:471:11: note: Assignment 'area=(double**)malloc(jlength*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mDiff.c:474:7: note: Null pointer dereference Montage-6.1/Montage/mDiff.c:492:10: warning: If memory allocation fails, then there is a possible null pointer dereference: area [nullPointerOutOfMemory] Montage-6.1/Montage/mDiff.c:471:28: note: Assuming allocation function fails Montage-6.1/Montage/mDiff.c:471:11: note: Assignment 'area=(double**)malloc(jlength*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mDiff.c:492:10: note: Null pointer dereference Montage-6.1/Montage/mDiff.c:1062:24: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mDiff.c:1265:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mDiff.c:1278:25: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mFitplane.c:155:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mFitplane.c:643:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mFlattenExec.c:256:11: style: Variable 'crpix1' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mFlattenExec.c:257:11: style: Variable 'crpix2' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mFlattenExec.c:258:11: style: Variable 'xmin' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mFlattenExec.c:259:11: style: Variable 'xmax' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mFlattenExec.c:260:11: style: Variable 'ymin' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mFlattenExec.c:261:11: style: Variable 'ymax' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mFlattenExec.c:262:11: style: Variable 'xcenter' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mFlattenExec.c:263:11: style: Variable 'ycenter' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mFlattenExec.c:264:11: style: Variable 'rms' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mHdrCheck.c:61:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mHdrCheck.c:57:22: style: Variable 'wcs' can be declared as pointer to const [constVariablePointer] Montage-6.1/Montage/mGetHdr.c:82:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mGetHdr.c:391:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mHdrtbl.c:88:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mHdrtbl.c:347:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mHdrtbl.c:228:28: warning: Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead. [prohibitedmktempCalled] Montage-6.1/Montage/mHdrtbl.c:221:24: style: Parameter 'tblname' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mHdrtbl.c:325:22: style: Parameter 'pathname' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mFitplane.c:251:7: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] Montage-6.1/Montage/mFitplane.c:248:28: note: Assuming allocation function fails Montage-6.1/Montage/mFitplane.c:248:11: note: Assignment 'data=(double**)malloc(naxes[1]*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mFitplane.c:251:7: note: Null pointer dereference Montage-6.1/Montage/mFitplane.c:279:24: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] Montage-6.1/Montage/mFitplane.c:248:28: note: Assuming allocation function fails Montage-6.1/Montage/mFitplane.c:248:11: note: Assignment 'data=(double**)malloc(naxes[1]*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mFitplane.c:279:24: note: Null pointer dereference Montage-6.1/Montage/mFitplane.c:392:7: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] Montage-6.1/Montage/mFitplane.c:388:25: note: Assuming allocation function fails Montage-6.1/Montage/mFitplane.c:388:8: note: Assignment 'a=(double**)malloc(n*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mFitplane.c:392:7: note: Null pointer dereference Montage-6.1/Montage/mFitplane.c:395:10: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] Montage-6.1/Montage/mFitplane.c:388:25: note: Assuming allocation function fails Montage-6.1/Montage/mFitplane.c:388:8: note: Assignment 'a=(double**)malloc(n*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mFitplane.c:395:10: note: Null pointer dereference Montage-6.1/Montage/mFitplane.c:409:7: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] Montage-6.1/Montage/mFitplane.c:405:25: note: Assuming allocation function fails Montage-6.1/Montage/mFitplane.c:405:8: note: Assignment 'b=(double**)malloc(n*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mFitplane.c:409:7: note: Null pointer dereference Montage-6.1/Montage/mFitplane.c:412:10: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] Montage-6.1/Montage/mFitplane.c:405:25: note: Assuming allocation function fails Montage-6.1/Montage/mFitplane.c:405:8: note: Assignment 'b=(double**)malloc(n*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mFitplane.c:412:10: note: Null pointer dereference Montage-6.1/Montage/mFitplane.c:756:20: style: Parameter 'error_text' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mMakeHdr.c:217:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mMakeHdr.c:1549:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mImgtbl.c:146:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mImgtbl.c:557:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mMakeImg.c:136:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DOUBLE_IMG [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mMakeImg.c:1486:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mMakeImg.c:1648:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mMakeImg.c:1669:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mMakeImg.c:1722:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mMakeHdr.c:718:42: style: Expression is always false because 'else if' condition matches previous condition at line 716. [multiCondition] Montage-6.1/Montage/mMakeHdr.c:1118:13: error: Common realloc mistake: 'lons' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mMakeHdr.c:188:12: style: Variable 'keyval' can be declared as pointer to const [constVariablePointer] Montage-6.1/Montage/mMakeHdr.c:194:20: style: Variable 'box' can be declared as pointer to const [constVariablePointer] Montage-6.1/Montage/mMakeHdr.c:1479:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mMakeHdr.c:1510:24: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mMakeHdr.c:543:19: style: Variable 'iepoch' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mMakeImg.c:470:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/Montage/mMakeImg.c:1779:16: style:inconclusive: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. [funcArgNamesDifferent] Montage-6.1/Montage/mMakeImg.c:70:24: note: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. Montage-6.1/Montage/mMakeImg.c:1779:16: note: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. Montage-6.1/Montage/mMakeImg.c:1779:25: style:inconclusive: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. [funcArgNamesDifferent] Montage-6.1/Montage/mMakeImg.c:70:32: note: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. Montage-6.1/Montage/mMakeImg.c:1779:25: note: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. Montage-6.1/Montage/mMakeImg.c:1779:34: style:inconclusive: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. [funcArgNamesDifferent] Montage-6.1/Montage/mMakeImg.c:70:40: note: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. Montage-6.1/Montage/mMakeImg.c:1779:34: note: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. Montage-6.1/Montage/mMakeImg.c:1822:23: style:inconclusive: Function 'Normalize' argument 1 names different: declaration 'a' definition 'v'. [funcArgNamesDifferent] Montage-6.1/Montage/mMakeImg.c:72:24: note: Function 'Normalize' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/Montage/mMakeImg.c:1822:23: note: Function 'Normalize' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/Montage/mMakeImg.c:1440:24: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mMakeImg.c:1779:16: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mMakeImg.c:1779:25: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mMakeImg.c:1802:17: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mMakeImg.c:1802:25: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mMakeImg.c:90:22: style: Unused variable: wraparound [unusedVariable] Montage-6.1/Montage/mMakeImg.c:140:26: style: Unused variable: jdiff [unusedVariable] Montage-6.1/Montage/mMakeImg.c:152:14: style: Unused variable: d2 [unusedVariable] Montage-6.1/Montage/mMakeImg.c:152:18: style: Unused variable: maxd2 [unusedVariable] Montage-6.1/Montage/mMakeImg.c:152:25: style: Unused variable: radius [unusedVariable] Montage-6.1/Montage/mOverlaps.c:201:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mOverlaps.c:1076:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nxpix [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProjExec.c:195:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProjExec.c:1107:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mImgtbl.c:438:28: warning: Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead. [prohibitedmktempCalled] Montage-6.1/Montage/mImgtbl.c:613:32: warning: Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead. [prohibitedmktempCalled] Montage-6.1/Montage/mImgtbl.c:298:20: error: Common realloc mistake: 'fields' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mImgtbl.c:371:14: error: Common realloc mistake: 'fields' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mImgtbl.c:122:17: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] Montage-6.1/Montage/mImgtbl.c:122:25: style: Variable 'ptype' can be declared as pointer to const [constVariablePointer] Montage-6.1/Montage/mImgtbl.c:122:33: style: Variable 'pwidth' can be declared as pointer to const [constVariablePointer] Montage-6.1/Montage/mImgtbl.c:431:24: style: Parameter 'tblname' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mImgtbl.c:535:22: style: Parameter 'pathname' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mProject.c:264:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DOUBLE_IMG [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProject.c:1977:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProject.c:2162:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProject.c:2230:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProject.c:2398:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProject.c:851:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mProject.c:895:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mProject.c:227:14: style: Variable 'xcw' can be declared as const array [constVariable] Montage-6.1/Montage/mProject.c:228:14: style: Variable 'ycw' can be declared as const array [constVariable] Montage-6.1/Montage/mProject.c:230:14: style: Variable 'xccw' can be declared as const array [constVariable] Montage-6.1/Montage/mProject.c:231:14: style: Variable 'yccw' can be declared as const array [constVariable] Montage-6.1/Montage/mProject.c:1933:24: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mProject.c:2415:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mProject.c:2426:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mOverlaps.c:1180:10: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] Montage-6.1/Montage/mOverlaps.c:306:57: style: Condition 'icd12>=0' is always true [knownConditionTrueFalse] Montage-6.1/Montage/mOverlaps.c:306:27: note: Assuming that condition 'icd12>=0' is not redundant Montage-6.1/Montage/mOverlaps.c:306:57: note: Condition 'icd12>=0' is always true Montage-6.1/Montage/mOverlaps.c:659:10: error: Common realloc mistake: 'input' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mOverlaps.c:306:48: style: Same expression 'icd12>=0' found multiple times in chain of '&&' operators. [duplicateExpression] Montage-6.1/Montage/mOverlaps.c:1204:14: style: Variable 'p0Dot' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/Montage/mOverlaps.c:1199:10: note: p0Dot is assigned Montage-6.1/Montage/mOverlaps.c:1204:14: note: p0Dot is overwritten Montage-6.1/Montage/mOverlaps.c:1205:14: style: Variable 'p1Dot' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/Montage/mOverlaps.c:1200:10: note: p1Dot is assigned Montage-6.1/Montage/mOverlaps.c:1205:14: note: p1Dot is overwritten Montage-6.1/Montage/mOverlaps.c:1206:14: style: Variable 'q0Dot' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/Montage/mOverlaps.c:1201:10: note: q0Dot is assigned Montage-6.1/Montage/mOverlaps.c:1206:14: note: q0Dot is overwritten Montage-6.1/Montage/mOverlaps.c:1207:14: style: Variable 'q1Dot' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/Montage/mOverlaps.c:1202:10: note: q1Dot is assigned Montage-6.1/Montage/mOverlaps.c:1207:14: note: q1Dot is overwritten Montage-6.1/Montage/mOverlaps.c:1068:16: style:inconclusive: Function 'fixxy' argument 1 names different: declaration 'id' definition 'l'. [funcArgNamesDifferent] Montage-6.1/Montage/mOverlaps.c:82:29: note: Function 'fixxy' argument 1 names different: declaration 'id' definition 'l'. Montage-6.1/Montage/mOverlaps.c:1068:16: note: Function 'fixxy' argument 1 names different: declaration 'id' definition 'l'. Montage-6.1/Montage/mOverlaps.c:1110:26: style:inconclusive: Function 'SegSegIntersect' argument 1 names different: declaration 'a' definition 'pEdge'. [funcArgNamesDifferent] Montage-6.1/Montage/mOverlaps.c:75:30: note: Function 'SegSegIntersect' argument 1 names different: declaration 'a' definition 'pEdge'. Montage-6.1/Montage/mOverlaps.c:1110:26: note: Function 'SegSegIntersect' argument 1 names different: declaration 'a' definition 'pEdge'. Montage-6.1/Montage/mOverlaps.c:1110:38: style:inconclusive: Function 'SegSegIntersect' argument 2 names different: declaration 'b' definition 'qEdge'. [funcArgNamesDifferent] Montage-6.1/Montage/mOverlaps.c:75:38: note: Function 'SegSegIntersect' argument 2 names different: declaration 'b' definition 'qEdge'. Montage-6.1/Montage/mOverlaps.c:1110:38: note: Function 'SegSegIntersect' argument 2 names different: declaration 'b' definition 'qEdge'. Montage-6.1/Montage/mOverlaps.c:1111:26: style:inconclusive: Function 'SegSegIntersect' argument 3 names different: declaration 'c' definition 'p0'. [funcArgNamesDifferent] Montage-6.1/Montage/mOverlaps.c:75:46: note: Function 'SegSegIntersect' argument 3 names different: declaration 'c' definition 'p0'. Montage-6.1/Montage/mOverlaps.c:1111:26: note: Function 'SegSegIntersect' argument 3 names different: declaration 'c' definition 'p0'. Montage-6.1/Montage/mOverlaps.c:1111:35: style:inconclusive: Function 'SegSegIntersect' argument 4 names different: declaration 'd' definition 'p1'. [funcArgNamesDifferent] Montage-6.1/Montage/mOverlaps.c:75:54: note: Function 'SegSegIntersect' argument 4 names different: declaration 'd' definition 'p1'. Montage-6.1/Montage/mOverlaps.c:1111:35: note: Function 'SegSegIntersect' argument 4 names different: declaration 'd' definition 'p1'. Montage-6.1/Montage/mOverlaps.c:1111:44: style:inconclusive: Function 'SegSegIntersect' argument 5 names different: declaration 'e' definition 'q0'. [funcArgNamesDifferent] Montage-6.1/Montage/mOverlaps.c:76:30: note: Function 'SegSegIntersect' argument 5 names different: declaration 'e' definition 'q0'. Montage-6.1/Montage/mOverlaps.c:1111:44: note: Function 'SegSegIntersect' argument 5 names different: declaration 'e' definition 'q0'. Montage-6.1/Montage/mOverlaps.c:1111:53: style:inconclusive: Function 'SegSegIntersect' argument 6 names different: declaration 'f' definition 'q1'. [funcArgNamesDifferent] Montage-6.1/Montage/mOverlaps.c:76:38: note: Function 'SegSegIntersect' argument 6 names different: declaration 'f' definition 'q1'. Montage-6.1/Montage/mOverlaps.c:1111:53: note: Function 'SegSegIntersect' argument 6 names different: declaration 'f' definition 'q1'. Montage-6.1/Montage/mOverlaps.c:1112:26: style:inconclusive: Function 'SegSegIntersect' argument 7 names different: declaration 'p' definition 'intersect1'. [funcArgNamesDifferent] Montage-6.1/Montage/mOverlaps.c:76:46: note: Function 'SegSegIntersect' argument 7 names different: declaration 'p' definition 'intersect1'. Montage-6.1/Montage/mOverlaps.c:1112:26: note: Function 'SegSegIntersect' argument 7 names different: declaration 'p' definition 'intersect1'. Montage-6.1/Montage/mOverlaps.c:1112:43: style:inconclusive: Function 'SegSegIntersect' argument 8 names different: declaration 'q' definition 'intersect2'. [funcArgNamesDifferent] Montage-6.1/Montage/mOverlaps.c:76:54: note: Function 'SegSegIntersect' argument 8 names different: declaration 'q' definition 'intersect2'. Montage-6.1/Montage/mOverlaps.c:1112:43: note: Function 'SegSegIntersect' argument 8 names different: declaration 'q' definition 'intersect2'. Montage-6.1/Montage/mOverlaps.c:1256:18: warning: Function 'Between' argument order different: declaration 'a, b, c' definition 'v, a, b' [funcArgOrderDifferent] Montage-6.1/Montage/mOverlaps.c:77:30: note: Function 'Between' argument order different: declaration 'a, b, c' definition 'v, a, b' Montage-6.1/Montage/mOverlaps.c:1256:18: note: Function 'Between' argument order different: declaration 'a, b, c' definition 'v, a, b' Montage-6.1/Montage/mOverlaps.c:1280:16: style:inconclusive: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. [funcArgNamesDifferent] Montage-6.1/Montage/mOverlaps.c:71:30: note: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. Montage-6.1/Montage/mOverlaps.c:1280:16: note: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. Montage-6.1/Montage/mOverlaps.c:1280:25: style:inconclusive: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. [funcArgNamesDifferent] Montage-6.1/Montage/mOverlaps.c:71:38: note: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. Montage-6.1/Montage/mOverlaps.c:1280:25: note: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. Montage-6.1/Montage/mOverlaps.c:1280:34: style:inconclusive: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. [funcArgNamesDifferent] Montage-6.1/Montage/mOverlaps.c:71:46: note: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. Montage-6.1/Montage/mOverlaps.c:1280:34: note: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. Montage-6.1/Montage/mOverlaps.c:1323:23: style:inconclusive: Function 'Normalize' argument 1 names different: declaration 'a' definition 'v'. [funcArgNamesDifferent] Montage-6.1/Montage/mOverlaps.c:73:30: note: Function 'Normalize' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/Montage/mOverlaps.c:1323:23: note: Function 'Normalize' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/Montage/mOverlaps.c:1347:19: style:inconclusive: Function 'Reverse' argument 1 names different: declaration 'a' definition 'v'. [funcArgNamesDifferent] Montage-6.1/Montage/mOverlaps.c:74:30: note: Function 'Reverse' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/Montage/mOverlaps.c:1347:19: note: Function 'Reverse' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/Montage/mOverlaps.c:1042:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mOverlaps.c:1112:43: style: Parameter 'intersect2' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mOverlaps.c:1280:16: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mOverlaps.c:1280:25: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mOverlaps.c:1303:17: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mOverlaps.c:1303:25: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mOverlaps.c:1139:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mOverlaps.c:1140:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mOverlaps.c:1147:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mOverlaps.c:1148:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mOverlaps.c:1155:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mOverlaps.c:1156:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mOverlaps.c:1163:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mOverlaps.c:1164:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mOverlaps.c:1171:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mOverlaps.c:1172:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mOverlaps.c:1179:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mOverlaps.c:1180:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mProjExec.c:1062:24: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mProjExec.c:1068:14: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] Montage-6.1/Montage/mProjExec.c:1138:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mPutHdr.c:127:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mPutHdr.c:478:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mPutHdr.c:545:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProjectPP.c:251:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DOUBLE_IMG [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProjectPP.c:1640:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProjectPP.c:1930:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProjectPP.c:1997:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProjectPP.c:2151:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProjectPP.c:2225:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProjectPP.c:2258:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mPutHdr.c:369:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/Montage/mPutHdr.c:257:10: error: Used file that is not opened. [useClosedFile] Montage-6.1/Montage/mPutHdr.c:200:30: warning: If resource allocation fails, then there is a possible null pointer dereference: ftemp [nullPointerOutOfResources] Montage-6.1/Montage/mPutHdr.c:191:17: note: Assuming allocation function fails Montage-6.1/Montage/mPutHdr.c:191:17: note: Assignment 'ftemp=fopen(template_file,"r")', assigned value is 0 Montage-6.1/Montage/mPutHdr.c:200:30: note: Null pointer dereference Montage-6.1/Montage/mPutHdr.c:562:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mProjectCube.c:223:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DOUBLE_IMG [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProjectCube.c:2087:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProjectCube.c:2272:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProjectCube.c:2340:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProjectCube.c:2529:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mShrink.c:181:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mShrink.c:1206:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mShrink.c:1410:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mShrink.c:1429:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mProjectPP.c:855:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mProjectPP.c:903:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mProjectPP.c:1626:24: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mProjectPP.c:2168:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mProjectPP.c:2179:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mProjectPP.c:2244:23: style: Parameter 'strin' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mProjectCube.c:628:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mProjectCube.c:660:10: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mProjectCube.c:891:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mProjectCube.c:947:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/Montage/mShrink.c:1427:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mProjectCube.c:185:15: style: Variable 'xcw' can be declared as const array [constVariable] Montage-6.1/Montage/mProjectCube.c:186:15: style: Variable 'ycw' can be declared as const array [constVariable] Montage-6.1/Montage/mProjectCube.c:188:15: style: Variable 'xccw' can be declared as const array [constVariable] Montage-6.1/Montage/mProjectCube.c:189:15: style: Variable 'yccw' can be declared as const array [constVariable] Montage-6.1/Montage/mProjectCube.c:2043:24: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mProjectCube.c:2546:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mProjectCube.c:2557:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mSubCube.c:113:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mSubimage.c:138:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mShrinkCube.c:167:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mShrinkCube.c:1295:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mShrinkCube.c:1514:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mSubCube.c:231:18: style: Variable 'params.kbegin' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/Montage/mSubCube.c:130:18: note: params.kbegin is assigned Montage-6.1/Montage/mSubCube.c:231:18: note: params.kbegin is overwritten Montage-6.1/Montage/mSubCube.c:232:18: style: Variable 'params.kend' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/Montage/mSubCube.c:131:18: note: params.kend is assigned Montage-6.1/Montage/mSubCube.c:232:18: note: params.kend is overwritten Montage-6.1/Montage/mSubCube.c:66:14: style: Unused variable: wmin [unusedVariable] Montage-6.1/Montage/mSubCube.c:66:20: style: Unused variable: wmax [unusedVariable] Montage-6.1/Montage/mShrinkCube.c:1531:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mSubimage.c:276:67: style: Condition 'argc<6' is always false [knownConditionTrueFalse] Montage-6.1/Montage/mSubimage.c:276:43: note: Assuming that condition 'argc<6' is not redundant Montage-6.1/Montage/mSubimage.c:276:67: note: Condition 'argc<6' is always false Montage-6.1/Montage/mShrinkCube.c:626:18: style: Variable 'fpixelo[2]' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mShrinkCube.c:936:18: style: Variable 'fpixelo[2]' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mTblSort.c:60:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mSubset.c:202:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mSubset.c:1026:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mSubset.c:1167:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mTblSort.c:214:10: error: Common realloc mistake: 'data' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mTblSort.c:215:10: error: Common realloc mistake: 'recno' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/Montage/mTANHdr.c:207:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mTANHdr.c:1453:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mTANHdr.c:1800:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mTileHdr.c:81:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mTileHdr.c:288:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mTileHdr.c:253:25: style: Parameter 'template' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mTileHdr.c:315:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mTileHdr.c:342:20: style: Parameter 'template' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mTileHdr.c:391:23: style: Parameter 'header' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mTileImage.c:130:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mTileImage.c:248:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] Montage-6.1/Montage/mTileImage.c:254:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] Montage-6.1/Montage/mTileImage.c:127:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/Montage/mTileImage.c:259:9: style: Variable 'i' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/Montage/mTileImage.c:257:4: note: i is assigned Montage-6.1/Montage/mTileImage.c:259:9: note: i is overwritten Montage-6.1/Montage/mTileImage.c:60:21: style: Variable 'oname' can be declared as pointer to const [constVariablePointer] Montage-6.1/Montage/mTileImage.c:62:11: style: Variable 'outPath' can be declared as pointer to const [constVariablePointer] Montage-6.1/Montage/mTileImage.c:65:23: style: Variable 'wcs' can be declared as pointer to const [constVariablePointer] Montage-6.1/Montage/mTileImage.c:218:48: style: Parameter 'head' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mTileImage.c:248:8: style: Variable 'str' can be declared as pointer to const [constVariablePointer] Montage-6.1/Montage/mTileImage.c:122:15: style: Variable 'oname' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mTileImage.c:133:9: style: Variable 'wcs' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mTileImage.c:135:14: style: Variable 'max_size' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mTileImage.c:122:17: style: Variable 'oname' is allocated memory that is never used. [unusedAllocatedMemory] Montage-6.1/Montage/mCoverageCheck.c:2035:16: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/Montage/mCoverageCheck.c:2028:16: note: First condition Montage-6.1/Montage/mCoverageCheck.c:2035:16: note: Second condition Montage-6.1/Montage/mCoverageCheck.c:2411:26: style:inconclusive: Function 'SegSegIntersect' argument 1 names different: declaration 'a' definition 'pEdge'. [funcArgNamesDifferent] Montage-6.1/Montage/mCoverageCheck.c:75:35: note: Function 'SegSegIntersect' argument 1 names different: declaration 'a' definition 'pEdge'. Montage-6.1/Montage/mCoverageCheck.c:2411:26: note: Function 'SegSegIntersect' argument 1 names different: declaration 'a' definition 'pEdge'. Montage-6.1/Montage/mCoverageCheck.c:2411:38: style:inconclusive: Function 'SegSegIntersect' argument 2 names different: declaration 'b' definition 'qEdge'. [funcArgNamesDifferent] Montage-6.1/Montage/mCoverageCheck.c:75:43: note: Function 'SegSegIntersect' argument 2 names different: declaration 'b' definition 'qEdge'. Montage-6.1/Montage/mCoverageCheck.c:2411:38: note: Function 'SegSegIntersect' argument 2 names different: declaration 'b' definition 'qEdge'. Montage-6.1/Montage/mCoverageCheck.c:2412:26: style:inconclusive: Function 'SegSegIntersect' argument 3 names different: declaration 'c' definition 'p0'. [funcArgNamesDifferent] Montage-6.1/Montage/mCoverageCheck.c:75:51: note: Function 'SegSegIntersect' argument 3 names different: declaration 'c' definition 'p0'. Montage-6.1/Montage/mCoverageCheck.c:2412:26: note: Function 'SegSegIntersect' argument 3 names different: declaration 'c' definition 'p0'. Montage-6.1/Montage/mCoverageCheck.c:2412:35: style:inconclusive: Function 'SegSegIntersect' argument 4 names different: declaration 'd' definition 'p1'. [funcArgNamesDifferent] Montage-6.1/Montage/mCoverageCheck.c:75:59: note: Function 'SegSegIntersect' argument 4 names different: declaration 'd' definition 'p1'. Montage-6.1/Montage/mCoverageCheck.c:2412:35: note: Function 'SegSegIntersect' argument 4 names different: declaration 'd' definition 'p1'. Montage-6.1/Montage/mCoverageCheck.c:2412:44: style:inconclusive: Function 'SegSegIntersect' argument 5 names different: declaration 'e' definition 'q0'. [funcArgNamesDifferent] Montage-6.1/Montage/mCoverageCheck.c:76:35: note: Function 'SegSegIntersect' argument 5 names different: declaration 'e' definition 'q0'. Montage-6.1/Montage/mCoverageCheck.c:2412:44: note: Function 'SegSegIntersect' argument 5 names different: declaration 'e' definition 'q0'. Montage-6.1/Montage/mCoverageCheck.c:2412:53: style:inconclusive: Function 'SegSegIntersect' argument 6 names different: declaration 'f' definition 'q1'. [funcArgNamesDifferent] Montage-6.1/Montage/mCoverageCheck.c:76:43: note: Function 'SegSegIntersect' argument 6 names different: declaration 'f' definition 'q1'. Montage-6.1/Montage/mCoverageCheck.c:2412:53: note: Function 'SegSegIntersect' argument 6 names different: declaration 'f' definition 'q1'. Montage-6.1/Montage/mCoverageCheck.c:2413:26: style:inconclusive: Function 'SegSegIntersect' argument 7 names different: declaration 'p' definition 'intersect1'. [funcArgNamesDifferent] Montage-6.1/Montage/mCoverageCheck.c:76:51: note: Function 'SegSegIntersect' argument 7 names different: declaration 'p' definition 'intersect1'. Montage-6.1/Montage/mCoverageCheck.c:2413:26: note: Function 'SegSegIntersect' argument 7 names different: declaration 'p' definition 'intersect1'. Montage-6.1/Montage/mCoverageCheck.c:2413:43: style:inconclusive: Function 'SegSegIntersect' argument 8 names different: declaration 'q' definition 'intersect2'. [funcArgNamesDifferent] Montage-6.1/Montage/mCoverageCheck.c:76:59: note: Function 'SegSegIntersect' argument 8 names different: declaration 'q' definition 'intersect2'. Montage-6.1/Montage/mCoverageCheck.c:2413:43: note: Function 'SegSegIntersect' argument 8 names different: declaration 'q' definition 'intersect2'. Montage-6.1/Montage/mCoverageCheck.c:2552:18: warning: Function 'Between' argument order different: declaration 'a, b, c' definition 'v, a, b' [funcArgOrderDifferent] Montage-6.1/Montage/mCoverageCheck.c:77:35: note: Function 'Between' argument order different: declaration 'a, b, c' definition 'v, a, b' Montage-6.1/Montage/mCoverageCheck.c:2552:18: note: Function 'Between' argument order different: declaration 'a, b, c' definition 'v, a, b' Montage-6.1/Montage/mCoverageCheck.c:2576:16: style:inconclusive: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. [funcArgNamesDifferent] Montage-6.1/Montage/mCoverageCheck.c:71:35: note: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. Montage-6.1/Montage/mCoverageCheck.c:2576:16: note: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. Montage-6.1/Montage/mCoverageCheck.c:2576:25: style:inconclusive: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. [funcArgNamesDifferent] Montage-6.1/Montage/mCoverageCheck.c:71:43: note: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. Montage-6.1/Montage/mCoverageCheck.c:2576:25: note: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. Montage-6.1/Montage/mCoverageCheck.c:2576:34: style:inconclusive: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. [funcArgNamesDifferent] Montage-6.1/Montage/mCoverageCheck.c:71:51: note: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. Montage-6.1/Montage/mCoverageCheck.c:2576:34: note: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. Montage-6.1/Montage/mCoverageCheck.c:2619:23: style:inconclusive: Function 'Normalize' argument 1 names different: declaration 'a' definition 'v'. [funcArgNamesDifferent] Montage-6.1/Montage/mCoverageCheck.c:73:35: note: Function 'Normalize' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/Montage/mCoverageCheck.c:2619:23: note: Function 'Normalize' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/Montage/mCoverageCheck.c:2643:19: style:inconclusive: Function 'Reverse' argument 1 names different: declaration 'a' definition 'v'. [funcArgNamesDifferent] Montage-6.1/Montage/mCoverageCheck.c:74:35: note: Function 'Reverse' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/Montage/mCoverageCheck.c:2643:19: note: Function 'Reverse' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/Montage/mCoverageCheck.c:919:14: style: Local variable 'dot' shadows outer variable [shadowVariable] Montage-6.1/Montage/mCoverageCheck.c:152:11: note: Shadowed declaration Montage-6.1/Montage/mCoverageCheck.c:919:14: note: Shadow variable Montage-6.1/Montage/mCoverageCheck.c:2576:16: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mCoverageCheck.c:2576:25: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mCoverageCheck.c:2599:17: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mCoverageCheck.c:2599:25: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mCoverageCheck.c:2652:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/overlapArea.c:212:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/overlapArea.c:284:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/overlapArea.c:654:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/overlapArea.c:691:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/overlapArea.c:723:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/overlapArea.c:770:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/overlapArea.c:855:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/overlapArea.c:1204:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/overlapArea.c:1312:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mCoverageCheck.c:919:14: style: Unused variable: dot [unusedVariable] Montage-6.1/Montage/overlapAreaPP.c:122:23: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/overlapAreaPP.c:122:35: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/overlapAreaPP.c:210:35: style: Parameter 'nx' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/overlapAreaPP.c:210:47: style: Parameter 'ny' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/overlapAreaPP.c:231:50: style: Parameter 'xp' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/overlapAreaPP.c:231:62: style: Parameter 'yp' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/print_hrec.c:27:33: style: Parameter 'hdr_rec' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/print_rec.c:57:33: style: Parameter 'hdr_rec' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/print_rec.c:44:9: style: struct member 'FIELDS::defval' is never used. [unusedStructMember] Montage-6.1/Montage/projTest.c:577:74: error: Unmatched ')'. Configuration: '__GNUC__=1'. [syntaxError] Montage-6.1/Montage/overlapArea.c:983:10: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] Montage-6.1/Montage/overlapArea.c:709:17: style:inconclusive: Function 'Advance' argument 1 names different: declaration 'i' definition 'ip'. [funcArgNamesDifferent] Montage-6.1/Montage/overlapArea.c:74:34: note: Function 'Advance' argument 1 names different: declaration 'i' definition 'ip'. Montage-6.1/Montage/overlapArea.c:709:17: note: Function 'Advance' argument 1 names different: declaration 'i' definition 'ip'. Montage-6.1/Montage/overlapArea.c:709:26: style:inconclusive: Function 'Advance' argument 2 names different: declaration 'i_advances' definition 'p_advances'. [funcArgNamesDifferent] Montage-6.1/Montage/overlapArea.c:74:42: note: Function 'Advance' argument 2 names different: declaration 'i_advances' definition 'p_advances'. Montage-6.1/Montage/overlapArea.c:709:26: note: Function 'Advance' argument 2 names different: declaration 'i_advances' definition 'p_advances'. Montage-6.1/Montage/overlapArea.c:744:22: style:inconclusive: Function 'SaveVertex' argument 1 names different: declaration 'a' definition 'v'. [funcArgNamesDifferent] Montage-6.1/Montage/overlapArea.c:64:35: note: Function 'SaveVertex' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/Montage/overlapArea.c:744:22: note: Function 'SaveVertex' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/Montage/overlapArea.c:913:26: style:inconclusive: Function 'SegSegIntersect' argument 1 names different: declaration 'a' definition 'pEdge'. [funcArgNamesDifferent] Montage-6.1/Montage/overlapArea.c:57:35: note: Function 'SegSegIntersect' argument 1 names different: declaration 'a' definition 'pEdge'. Montage-6.1/Montage/overlapArea.c:913:26: note: Function 'SegSegIntersect' argument 1 names different: declaration 'a' definition 'pEdge'. Montage-6.1/Montage/overlapArea.c:913:38: style:inconclusive: Function 'SegSegIntersect' argument 2 names different: declaration 'b' definition 'qEdge'. [funcArgNamesDifferent] Montage-6.1/Montage/overlapArea.c:57:43: note: Function 'SegSegIntersect' argument 2 names different: declaration 'b' definition 'qEdge'. Montage-6.1/Montage/overlapArea.c:913:38: note: Function 'SegSegIntersect' argument 2 names different: declaration 'b' definition 'qEdge'. Montage-6.1/Montage/overlapArea.c:914:26: style:inconclusive: Function 'SegSegIntersect' argument 3 names different: declaration 'c' definition 'p0'. [funcArgNamesDifferent] Montage-6.1/Montage/overlapArea.c:57:51: note: Function 'SegSegIntersect' argument 3 names different: declaration 'c' definition 'p0'. Montage-6.1/Montage/overlapArea.c:914:26: note: Function 'SegSegIntersect' argument 3 names different: declaration 'c' definition 'p0'. Montage-6.1/Montage/overlapArea.c:914:35: style:inconclusive: Function 'SegSegIntersect' argument 4 names different: declaration 'd' definition 'p1'. [funcArgNamesDifferent] Montage-6.1/Montage/overlapArea.c:57:59: note: Function 'SegSegIntersect' argument 4 names different: declaration 'd' definition 'p1'. Montage-6.1/Montage/overlapArea.c:914:35: note: Function 'SegSegIntersect' argument 4 names different: declaration 'd' definition 'p1'. Montage-6.1/Montage/overlapArea.c:914:44: style:inconclusive: Function 'SegSegIntersect' argument 5 names different: declaration 'e' definition 'q0'. [funcArgNamesDifferent] Montage-6.1/Montage/overlapArea.c:58:35: note: Function 'SegSegIntersect' argument 5 names different: declaration 'e' definition 'q0'. Montage-6.1/Montage/overlapArea.c:914:44: note: Function 'SegSegIntersect' argument 5 names different: declaration 'e' definition 'q0'. Montage-6.1/Montage/overlapArea.c:914:53: style:inconclusive: Function 'SegSegIntersect' argument 6 names different: declaration 'f' definition 'q1'. [funcArgNamesDifferent] Montage-6.1/Montage/overlapArea.c:58:43: note: Function 'SegSegIntersect' argument 6 names different: declaration 'f' definition 'q1'. Montage-6.1/Montage/overlapArea.c:914:53: note: Function 'SegSegIntersect' argument 6 names different: declaration 'f' definition 'q1'. Montage-6.1/Montage/overlapArea.c:915:26: style:inconclusive: Function 'SegSegIntersect' argument 7 names different: declaration 'p' definition 'intersect1'. [funcArgNamesDifferent] Montage-6.1/Montage/overlapArea.c:58:51: note: Function 'SegSegIntersect' argument 7 names different: declaration 'p' definition 'intersect1'. Montage-6.1/Montage/overlapArea.c:915:26: note: Function 'SegSegIntersect' argument 7 names different: declaration 'p' definition 'intersect1'. Montage-6.1/Montage/overlapArea.c:915:43: style:inconclusive: Function 'SegSegIntersect' argument 8 names different: declaration 'q' definition 'intersect2'. [funcArgNamesDifferent] Montage-6.1/Montage/overlapArea.c:58:59: note: Function 'SegSegIntersect' argument 8 names different: declaration 'q' definition 'intersect2'. Montage-6.1/Montage/overlapArea.c:915:43: note: Function 'SegSegIntersect' argument 8 names different: declaration 'q' definition 'intersect2'. Montage-6.1/Montage/overlapArea.c:1060:18: warning: Function 'Between' argument order different: declaration 'a, b, c' definition 'v, a, b' [funcArgOrderDifferent] Montage-6.1/Montage/overlapArea.c:59:35: note: Function 'Between' argument order different: declaration 'a, b, c' definition 'v, a, b' Montage-6.1/Montage/overlapArea.c:1060:18: note: Function 'Between' argument order different: declaration 'a, b, c' definition 'v, a, b' Montage-6.1/Montage/overlapArea.c:1085:16: style:inconclusive: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. [funcArgNamesDifferent] Montage-6.1/Montage/overlapArea.c:60:35: note: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. Montage-6.1/Montage/overlapArea.c:1085:16: note: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. Montage-6.1/Montage/overlapArea.c:1085:25: style:inconclusive: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. [funcArgNamesDifferent] Montage-6.1/Montage/overlapArea.c:60:43: note: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. Montage-6.1/Montage/overlapArea.c:1085:25: note: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. Montage-6.1/Montage/overlapArea.c:1085:34: style:inconclusive: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. [funcArgNamesDifferent] Montage-6.1/Montage/overlapArea.c:60:51: note: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. Montage-6.1/Montage/overlapArea.c:1085:34: note: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. Montage-6.1/Montage/overlapArea.c:1128:23: style:inconclusive: Function 'Normalize' argument 1 names different: declaration 'a' definition 'v'. [funcArgNamesDifferent] Montage-6.1/Montage/overlapArea.c:62:35: note: Function 'Normalize' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/Montage/overlapArea.c:1128:23: note: Function 'Normalize' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/Montage/overlapArea.c:1155:19: style:inconclusive: Function 'Reverse' argument 1 names different: declaration 'a' definition 'v'. [funcArgNamesDifferent] Montage-6.1/Montage/overlapArea.c:63:35: note: Function 'Reverse' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/Montage/overlapArea.c:1155:19: note: Function 'Reverse' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/Montage/overlapArea.c:1184:11: style: Local variable 'pi' shadows outer variable [shadowVariable] Montage-6.1/Montage/overlapArea.c:88:9: note: Shadowed declaration Montage-6.1/Montage/overlapArea.c:1184:11: note: Shadow variable Montage-6.1/Montage/overlapArea.c:1184:15: style: Local variable 'dtr' shadows outer variable [shadowVariable] Montage-6.1/Montage/overlapArea.c:88:13: note: Shadowed declaration Montage-6.1/Montage/overlapArea.c:1184:15: note: Shadow variable Montage-6.1/Montage/overlapArea.c:170:31: style: Parameter 'ilon' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/overlapArea.c:170:45: style: Parameter 'ilat' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/overlapArea.c:171:31: style: Parameter 'olon' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/overlapArea.c:171:45: style: Parameter 'olat' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/overlapArea.c:915:43: style: Parameter 'intersect2' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/overlapArea.c:1031:20: style: Parameter 'point' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/overlapArea.c:1031:33: style: Parameter 'vector' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/overlapArea.c:1085:16: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/overlapArea.c:1085:25: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/overlapArea.c:1108:17: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/overlapArea.c:1108:25: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/overlapArea.c:942:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/overlapArea.c:943:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/overlapArea.c:950:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/overlapArea.c:951:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/overlapArea.c:958:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/overlapArea.c:959:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/overlapArea.c:966:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/overlapArea.c:967:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/overlapArea.c:974:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/overlapArea.c:975:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/overlapArea.c:982:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/overlapArea.c:983:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/subImage.c:58:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/subCube.c:117:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WCS_DSS [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/subImage.c:171:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/subCube.c:276:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/subImage.c:229:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/subCube.c:314:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/subImage.c:321:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/subCube.c:544:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/subImage.c:357:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/subCube.c:719:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/subImage.c:70:7: warning: Either the condition 'wcs==(struct WorldCoor*)NULL' is redundant or there is possible null pointer dereference: wcs. [nullPointerRedundantCheck] Montage-6.1/Montage/subImage.c:73:11: note: Assuming that condition 'wcs==(struct WorldCoor*)NULL' is not redundant Montage-6.1/Montage/subImage.c:70:7: note: Null pointer dereference Montage-6.1/MontageLib/Add/mAdd.c:31:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEAN [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mTANHdr.c:324:7: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] Montage-6.1/Montage/mTANHdr.c:319:26: note: Assuming allocation function fails Montage-6.1/Montage/mTANHdr.c:319:9: note: Assignment 'a=(double**)malloc((order+1)*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mTANHdr.c:324:7: note: Null pointer dereference Montage-6.1/Montage/mTANHdr.c:325:7: warning: If memory allocation fails, then there is a possible null pointer dereference: ap [nullPointerOutOfMemory] Montage-6.1/Montage/mTANHdr.c:320:26: note: Assuming allocation function fails Montage-6.1/Montage/mTANHdr.c:320:9: note: Assignment 'ap=(double**)malloc((order+1)*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mTANHdr.c:325:7: note: Null pointer dereference Montage-6.1/Montage/mTANHdr.c:329:10: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] Montage-6.1/Montage/mTANHdr.c:319:26: note: Assuming allocation function fails Montage-6.1/Montage/mTANHdr.c:319:9: note: Assignment 'a=(double**)malloc((order+1)*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mTANHdr.c:329:10: note: Null pointer dereference Montage-6.1/Montage/mTANHdr.c:330:10: warning: If memory allocation fails, then there is a possible null pointer dereference: ap [nullPointerOutOfMemory] Montage-6.1/Montage/mTANHdr.c:320:26: note: Assuming allocation function fails Montage-6.1/Montage/mTANHdr.c:320:9: note: Assignment 'ap=(double**)malloc((order+1)*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mTANHdr.c:330:10: note: Null pointer dereference Montage-6.1/Montage/mTANHdr.c:339:7: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] Montage-6.1/Montage/mTANHdr.c:334:26: note: Assuming allocation function fails Montage-6.1/Montage/mTANHdr.c:334:9: note: Assignment 'b=(double**)malloc((order+1)*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mTANHdr.c:339:7: note: Null pointer dereference Montage-6.1/Montage/mTANHdr.c:340:7: warning: If memory allocation fails, then there is a possible null pointer dereference: bp [nullPointerOutOfMemory] Montage-6.1/Montage/mTANHdr.c:335:26: note: Assuming allocation function fails Montage-6.1/Montage/mTANHdr.c:335:9: note: Assignment 'bp=(double**)malloc((order+1)*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mTANHdr.c:340:7: note: Null pointer dereference Montage-6.1/Montage/mTANHdr.c:344:10: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] Montage-6.1/Montage/mTANHdr.c:334:26: note: Assuming allocation function fails Montage-6.1/Montage/mTANHdr.c:334:9: note: Assignment 'b=(double**)malloc((order+1)*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mTANHdr.c:344:10: note: Null pointer dereference Montage-6.1/Montage/mTANHdr.c:345:10: warning: If memory allocation fails, then there is a possible null pointer dereference: bp [nullPointerOutOfMemory] Montage-6.1/Montage/mTANHdr.c:335:26: note: Assuming allocation function fails Montage-6.1/Montage/mTANHdr.c:335:9: note: Assignment 'bp=(double**)malloc((order+1)*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mTANHdr.c:345:10: note: Null pointer dereference Montage-6.1/Montage/mTANHdr.c:370:7: warning: If memory allocation fails, then there is a possible null pointer dereference: vector [nullPointerOutOfMemory] Montage-6.1/Montage/mTANHdr.c:365:30: note: Assuming allocation function fails Montage-6.1/Montage/mTANHdr.c:365:13: note: Assignment 'vector=(double**)malloc((2*n+1)*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mTANHdr.c:370:7: note: Null pointer dereference Montage-6.1/Montage/mTANHdr.c:371:7: warning: If memory allocation fails, then there is a possible null pointer dereference: matrix [nullPointerOutOfMemory] Montage-6.1/Montage/mTANHdr.c:366:30: note: Assuming allocation function fails Montage-6.1/Montage/mTANHdr.c:366:13: note: Assignment 'matrix=(double**)malloc((2*n+1)*sizeof(double*))', assigned value is 0 Montage-6.1/Montage/mTANHdr.c:371:7: note: Null pointer dereference Montage-6.1/MontageLib/Add/mAdd.c:39:23: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/Montage/mTANHdr.c:1233:21: style: Parameter 'template' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mTANHdr.c:1414:24: style: Parameter 'template' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mTANHdr.c:1504:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mTANHdr.c:1859:23: style: Parameter 'header' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mTANHdr.c:2044:20: style: Parameter 'error_text' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mTANHdr.c:382:16: style: Variable 'fullcirclex' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mTANHdr.c:383:16: style: Variable 'fullcircley' is assigned a value that is never used. [unreadVariable] Montage-6.1/Montage/mTANHdr.c:173:16: style: Unused variable: w [unusedVariable] Montage-6.1/Montage/mTANHdr.c:1541:13: style: Unused variable: ix [unusedVariable] Montage-6.1/Montage/mTANHdr.c:1541:17: style: Unused variable: iy [unusedVariable] Montage-6.1/Montage/mTANHdr.c:1543:13: style: Unused variable: offscl [unusedVariable] Montage-6.1/MontageLib/AddCube/mAddCube.c:31:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEAN [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/AddCube/mAddCube.c:39:27: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Add/montageAdd.c:330:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DOUBLE_IMG [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Add/montageAdd.c:2016:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Add/montageAdd.c:2091:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Add/montageAdd.c:2143:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Add/montageAdd.c:2428:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable listElement [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Add/montageAdd.c:2469:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable listElement [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Add/montageAdd.c:2536:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable listElement [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Add/montageAdd.c:2607:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable listElement [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/AddCube/montageAddCube.c:280:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mAddCubeReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2062:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2137:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2215:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2471:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable listElement [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2512:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable listElement [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2579:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable listElement [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2650:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable listElement [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/subCube.c:117:7: warning: Either the condition 'wcs==(struct WorldCoor*)NULL' is redundant or there is possible null pointer dereference: wcs. [nullPointerRedundantCheck] Montage-6.1/Montage/subCube.c:120:11: note: Assuming that condition 'wcs==(struct WorldCoor*)NULL' is not redundant Montage-6.1/Montage/subCube.c:117:7: note: Null pointer dereference Montage-6.1/Montage/subCube.c:591:33: style:inconclusive: Function 'montage_parseSelectList' argument 1 names different: declaration 'index' definition 'ind'. [funcArgNamesDifferent] Montage-6.1/Montage/subCube.h:60:41: note: Function 'montage_parseSelectList' argument 1 names different: declaration 'index' definition 'ind'. Montage-6.1/Montage/subCube.c:591:33: note: Function 'montage_parseSelectList' argument 1 names different: declaration 'index' definition 'ind'. Montage-6.1/Montage/subCube.c:38:8: style: Unused variable: naxis2 [unusedVariable] Montage-6.1/Montage/subCube.c:40:8: style: Unused variable: i [unusedVariable] Montage-6.1/MontageLib/ArchiveExec/mArchiveExec.c:50:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ArchiveExec/mArchiveExec.c:47:7: style: Condition 'debug' is always false [knownConditionTrueFalse] Montage-6.1/MontageLib/ArchiveExec/mArchiveExec.c:40:17: note: Assignment 'debug=0', assigned value is 0 Montage-6.1/MontageLib/ArchiveExec/mArchiveExec.c:47:7: note: Condition 'debug' is always false Montage-6.1/MontageLib/ArchiveExec/mArchiveExec.c:28:12: style: Local variable 'opterr' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/ArchiveExec/mArchiveExec.c:12:20: note: Shadowed declaration Montage-6.1/MontageLib/ArchiveExec/mArchiveExec.c:28:12: note: Shadow variable Montage-6.1/MontageLib/ArchiveExec/mArchiveExec.c:33:28: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Add/montageAdd.c:664:10: error: Common realloc mistake: 'cntr' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Add/montageAdd.c:665:10: error: Common realloc mistake: 'infile' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Add/montageAdd.c:666:10: error: Common realloc mistake: 'inarea' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Add/montageAdd.c:667:10: error: Common realloc mistake: 'inctype1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Add/montageAdd.c:668:10: error: Common realloc mistake: 'inctype2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Add/montageAdd.c:669:10: error: Common realloc mistake: 'incrval1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Add/montageAdd.c:670:10: error: Common realloc mistake: 'incrval2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Add/montageAdd.c:671:10: error: Common realloc mistake: 'incrpix1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Add/montageAdd.c:672:10: error: Common realloc mistake: 'incrpix2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Add/montageAdd.c:673:10: error: Common realloc mistake: 'innaxis1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Add/montageAdd.c:674:10: error: Common realloc mistake: 'innaxis2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Add/montageAdd.c:675:10: error: Common realloc mistake: 'incdelt1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Add/montageAdd.c:676:10: error: Common realloc mistake: 'incdelt2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Add/montageAdd.c:2256:6: error: Common realloc mistake: 'sorted' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Add/montageAdd.c:2257:6: error: Common realloc mistake: 'sortedarea' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:64:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mArchiveExecReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Add/montageAdd.c:248:31: style: Parameter 'inpath' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Add/montageAdd.c:248:81: style: Parameter 'outfile' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Add/montageAdd.c:257:14: style: Variable 'checkHdr' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Add/montageAdd.c:262:14: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Add/montageAdd.c:1980:29: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Add/montageAdd.c:2158:28: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Add/montageAdd.c:2170:37: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Add/montageAdd.c:2194:26: style: Parameter 'data' can be declared as const array [constParameter] Montage-6.1/MontageLib/Add/montageAdd.c:2194:41: style: Parameter 'area' can be declared as const array [constParameter] Montage-6.1/MontageLib/Add/montageAdd.c:2230:28: style: Parameter 'data' can be declared as const array [constParameter] Montage-6.1/MontageLib/Add/montageAdd.c:2230:43: style: Parameter 'area' can be declared as const array [constParameter] Montage-6.1/MontageLib/Add/montageAdd.c:2325:27: style: Parameter 'data' can be declared as const array [constParameter] Montage-6.1/MontageLib/Add/montageAdd.c:2325:42: style: Parameter 'area' can be declared as const array [constParameter] Montage-6.1/MontageLib/Add/montageAdd.c:2355:25: style: Parameter 'data' can be declared as const array [constParameter] Montage-6.1/MontageLib/Add/montageAdd.c:2355:40: style: Parameter 'area' can be declared as const array [constParameter] Montage-6.1/MontageLib/Add/montageAdd.c:2625:27: style: Parameter 'label' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Add/montageAdd.c:2486:34: warning: Uninitialized variable: prev [uninitvar] Montage-6.1/MontageLib/Add/montageAdd.c:2478:14: note: Assuming condition is false Montage-6.1/MontageLib/Add/montageAdd.c:2486:34: note: Uninitialized variable: prev Montage-6.1/MontageLib/ArchiveGet/mArchiveGet.c:41:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ArchiveGet/mArchiveGet.c:32:30: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:70:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mArchiveGetReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:469:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/AddCube/montageAddCube.c:613:10: error: Common realloc mistake: 'cntr' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:614:10: error: Common realloc mistake: 'infile' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:615:10: error: Common realloc mistake: 'inarea' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:616:10: error: Common realloc mistake: 'inctype1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:617:10: error: Common realloc mistake: 'inctype2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:618:10: error: Common realloc mistake: 'incrval1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:619:10: error: Common realloc mistake: 'incrval2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:620:10: error: Common realloc mistake: 'incrval3' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:621:10: error: Common realloc mistake: 'incrval4' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:622:10: error: Common realloc mistake: 'incrpix1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:623:10: error: Common realloc mistake: 'incrpix2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:624:10: error: Common realloc mistake: 'incrpix3' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:625:10: error: Common realloc mistake: 'incrpix4' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:626:10: error: Common realloc mistake: 'innaxis1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:627:10: error: Common realloc mistake: 'innaxis2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:628:10: error: Common realloc mistake: 'innaxis3' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:629:10: error: Common realloc mistake: 'innaxis4' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:630:10: error: Common realloc mistake: 'incdelt1' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:631:10: error: Common realloc mistake: 'incdelt2' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:632:10: error: Common realloc mistake: 'incdelt3' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:633:10: error: Common realloc mistake: 'incdelt4' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2334:7: error: Common realloc mistake: 'sorted' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2335:7: error: Common realloc mistake: 'sortedarea' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/AddCube/montageAddCube.c:163:39: style: Parameter 'inpath' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/AddCube/montageAddCube.c:163:89: style: Parameter 'outfile' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/AddCube/montageAddCube.c:172:14: style: Variable 'checkHdr' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/AddCube/montageAddCube.c:177:14: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2021:33: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2233:32: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2247:41: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2271:30: style: Parameter 'data' can be declared as const array [constParameter] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2271:45: style: Parameter 'area' can be declared as const array [constParameter] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2308:32: style: Parameter 'data' can be declared as const array [constParameter] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2308:47: style: Parameter 'area' can be declared as const array [constParameter] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2403:31: style: Parameter 'data' can be declared as const array [constParameter] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2403:46: style: Parameter 'area' can be declared as const array [constParameter] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2668:31: style: Parameter 'label' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2529:34: warning: Uninitialized variable: prev [uninitvar] Montage-6.1/MontageLib/AddCube/montageAddCube.c:2521:14: note: Assuming condition is false Montage-6.1/MontageLib/AddCube/montageAddCube.c:2529:34: note: Uninitialized variable: prev Montage-6.1/MontageLib/AddCube/montageAddCube.c:117:13: style: struct member 'outfile::naxis' is never used. [unusedStructMember] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:120:4: warning: Return value of function pipe() is not used. [ignoredReturnValue] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:315:4: warning: Return value of function pipe() is not used. [ignoredReturnValue] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:479:7: error: Resource leak: fout [resourceLeak] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:75:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:70:53: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:70:19: note: Assignment 'returnStruct=(struct mArchiveGetReturn*)malloc(sizeof(struct mArchiveGetReturn))', assigned value is 0 Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:75:4: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:77:11: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:70:53: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:70:19: note: Assignment 'returnStruct=(struct mArchiveGetReturn*)malloc(sizeof(struct mArchiveGetReturn))', assigned value is 0 Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:77:11: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:87:7: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdv [nullPointerOutOfMemory] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:26: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:11: note: Assignment 'cmdv=(char**)malloc(16*sizeof(char*))', assigned value is 0 Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:87:7: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:99:7: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdv [nullPointerOutOfMemory] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:26: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:11: note: Assignment 'cmdv=(char**)malloc(16*sizeof(char*))', assigned value is 0 Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:99:7: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:101:11: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdv [nullPointerOutOfMemory] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:26: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:11: note: Assignment 'cmdv=(char**)malloc(16*sizeof(char*))', assigned value is 0 Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:101:11: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:102:11: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdv [nullPointerOutOfMemory] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:26: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:11: note: Assignment 'cmdv=(char**)malloc(16*sizeof(char*))', assigned value is 0 Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:102:11: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:103:11: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdv [nullPointerOutOfMemory] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:26: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:11: note: Assignment 'cmdv=(char**)malloc(16*sizeof(char*))', assigned value is 0 Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:103:11: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:104:11: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdv [nullPointerOutOfMemory] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:26: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:11: note: Assignment 'cmdv=(char**)malloc(16*sizeof(char*))', assigned value is 0 Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:104:11: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:105:11: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdv [nullPointerOutOfMemory] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:26: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:11: note: Assignment 'cmdv=(char**)malloc(16*sizeof(char*))', assigned value is 0 Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:105:11: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:106:11: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdv [nullPointerOutOfMemory] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:26: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:11: note: Assignment 'cmdv=(char**)malloc(16*sizeof(char*))', assigned value is 0 Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:106:11: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:107:11: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdv [nullPointerOutOfMemory] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:26: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:11: note: Assignment 'cmdv=(char**)malloc(16*sizeof(char*))', assigned value is 0 Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:107:11: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:108:11: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdv [nullPointerOutOfMemory] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:26: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:84:11: note: Assignment 'cmdv=(char**)malloc(16*sizeof(char*))', assigned value is 0 Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:108:11: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:154:18: warning: If resource allocation fails, then there is a possible null pointer dereference: fromexec [nullPointerOutOfResources] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:142:24: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:142:24: note: Assignment 'fromexec=fdopen(fdpipe[0],"r")', assigned value is 0 Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:154:18: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:349:18: warning: If resource allocation fails, then there is a possible null pointer dereference: fromexec [nullPointerOutOfResources] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:337:24: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:337:24: note: Assignment 'fromexec=fdopen(fdpipe[0],"r")', assigned value is 0 Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:349:18: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:46:45: style: Parameter 'url' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ArchiveGet/montageArchiveGet.c:48:18: style: Unused variable: status [unusedVariable] Montage-6.1/MontageLib/ArchiveList/mArchiveList.c:26:31: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:68:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:64:54: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:64:19: note: Assignment 'returnStruct=(struct mArchiveExecReturn*)malloc(sizeof(struct mArchiveExecReturn))', assigned value is 0 Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:68:4: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:197:15: style: Variable 'imin' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:192:15: note: imin is assigned Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:197:15: note: imin is overwritten Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:198:15: style: Variable 'imax' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:193:15: note: imax is assigned Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:198:15: note: imax is overwritten Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:199:15: style: Variable 'jmin' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:194:15: note: jmin is assigned Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:199:15: note: jmin is overwritten Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:200:15: style: Variable 'jmax' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:195:15: note: jmax is assigned Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:200:15: note: jmax is overwritten Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:39:62: style: Parameter 'inpath' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:51:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:59:11: style: Variable 'status' can be declared as const array [constVariable] Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:62:31: style: Variable 'archive' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:234:27: error: Uninitialized variable: status [uninitvar] Montage-6.1/MontageLib/ArchiveExec/montageArchiveExec.c:41:14: style: Unused variable: c [unusedVariable] Montage-6.1/MontageLib/Background/mBackground.c:48:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:91:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:271:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Background/montageBackground.c:135:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mBackgroundReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Background/montageBackground.c:669:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Background/montageBackground.c:735:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Background/mBackground.c:34:30: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:268:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:283:4: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:147:10: error: Resource leak: fout [resourceLeak] Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:166:7: error: Resource leak: fout [resourceLeak] Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:104:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:99:54: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:99:19: note: Assignment 'returnStruct=(struct mArchiveListReturn*)malloc(sizeof(struct mArchiveListReturn))', assigned value is 0 Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:104:4: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:106:11: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:99:54: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:99:19: note: Assignment 'returnStruct=(struct mArchiveListReturn*)malloc(sizeof(struct mArchiveListReturn))', assigned value is 0 Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:106:11: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:354:7: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:348:34: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:348:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:354:7: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:356:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:348:34: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:348:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:356:11: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:375:4: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:348:34: note: Assuming allocation function fails Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:348:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:375:4: note: Null pointer dereference Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:316:19: style: The comparison 'rc == 0' is always true. [knownConditionTrueFalse] Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:304:16: note: 'rc' is assigned value '0' here. Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:316:19: note: The comparison 'rc == 0' is always true. Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:57:47: style: Parameter 'outfile' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:261:36: style: Parameter 'hostname' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:264:24: style: Variable 'host' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:340:37: style: Parameter 's' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/BestImage/mBestImage.c:38:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ArchiveList/montageArchiveList.c:67:11: style: Unused variable: source [unusedVariable] Montage-6.1/MontageLib/Background/montageBackground.c:248:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/Background/montageBackground.c:278:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/Background/montageBackground.c:140:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/Background/montageBackground.c:135:53: note: Assuming allocation function fails Montage-6.1/MontageLib/Background/montageBackground.c:135:19: note: Assignment 'returnStruct=(struct mBackgroundReturn*)malloc(sizeof(struct mBackgroundReturn))', assigned value is 0 Montage-6.1/MontageLib/Background/montageBackground.c:140:4: note: Null pointer dereference Montage-6.1/MontageLib/Background/montageBackground.c:142:11: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/Background/montageBackground.c:135:53: note: Assuming allocation function fails Montage-6.1/MontageLib/Background/montageBackground.c:135:19: note: Assignment 'returnStruct=(struct mBackgroundReturn*)malloc(sizeof(struct mBackgroundReturn))', assigned value is 0 Montage-6.1/MontageLib/Background/montageBackground.c:142:11: note: Null pointer dereference Montage-6.1/MontageLib/Background/montageBackground.c:244:7: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] Montage-6.1/MontageLib/Background/montageBackground.c:241:28: note: Assuming allocation function fails Montage-6.1/MontageLib/Background/montageBackground.c:241:11: note: Assignment 'data=(double**)malloc(output.naxes[1]*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/Background/montageBackground.c:244:7: note: Null pointer dereference Montage-6.1/MontageLib/Background/montageBackground.c:262:10: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] Montage-6.1/MontageLib/Background/montageBackground.c:241:28: note: Assuming allocation function fails Montage-6.1/MontageLib/Background/montageBackground.c:241:11: note: Assignment 'data=(double**)malloc(output.naxes[1]*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/Background/montageBackground.c:262:10: note: Null pointer dereference Montage-6.1/MontageLib/Background/montageBackground.c:274:7: warning: If memory allocation fails, then there is a possible null pointer dereference: area [nullPointerOutOfMemory] Montage-6.1/MontageLib/Background/montageBackground.c:271:28: note: Assuming allocation function fails Montage-6.1/MontageLib/Background/montageBackground.c:271:11: note: Assignment 'area=(double**)malloc(output.naxes[1]*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/Background/montageBackground.c:274:7: note: Null pointer dereference Montage-6.1/MontageLib/Background/montageBackground.c:292:10: warning: If memory allocation fails, then there is a possible null pointer dereference: area [nullPointerOutOfMemory] Montage-6.1/MontageLib/Background/montageBackground.c:271:28: note: Assuming allocation function fails Montage-6.1/MontageLib/Background/montageBackground.c:271:11: note: Assignment 'area=(double**)malloc(output.naxes[1]*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/Background/montageBackground.c:292:10: note: Null pointer dereference Montage-6.1/MontageLib/Background/montageBackground.c:91:63: style: Parameter 'ofile' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Background/montageBackground.c:647:11: style: Variable 'checkHdr' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Background/montageBackground.c:719:35: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/BestImage/mBestImage.c:27:29: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/BgExec/mBgExec.c:55:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/BgExec/mBgExec.c:39:26: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/BgExec/montageBgExec.c:95:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mBgExecReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/BgModel/mBgModel.c:46:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/BgModel/mBgModel.c:30:27: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/BestImage/montageBestImage.c:135:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mBestImageReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/BgExec/montageBgExec.c:99:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/BgExec/montageBgExec.c:95:49: note: Assuming allocation function fails Montage-6.1/MontageLib/BgExec/montageBgExec.c:95:19: note: Assignment 'returnStruct=(struct mBgExecReturn*)malloc(sizeof(struct mBgExecReturn))', assigned value is 0 Montage-6.1/MontageLib/BgExec/montageBgExec.c:99:4: note: Null pointer dereference Montage-6.1/MontageLib/BgExec/montageBgExec.c:194:7: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] Montage-6.1/MontageLib/BgExec/montageBgExec.c:186:24: note: Assuming allocation function fails Montage-6.1/MontageLib/BgExec/montageBgExec.c:186:8: note: Assignment 'a=(double*)malloc(maxcntr*sizeof(double))', assigned value is 0 Montage-6.1/MontageLib/BgExec/montageBgExec.c:194:7: note: Null pointer dereference Montage-6.1/MontageLib/BgExec/montageBgExec.c:195:7: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] Montage-6.1/MontageLib/BgExec/montageBgExec.c:187:24: note: Assuming allocation function fails Montage-6.1/MontageLib/BgExec/montageBgExec.c:187:8: note: Assignment 'b=(double*)malloc(maxcntr*sizeof(double))', assigned value is 0 Montage-6.1/MontageLib/BgExec/montageBgExec.c:195:7: note: Null pointer dereference Montage-6.1/MontageLib/BgExec/montageBgExec.c:196:7: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] Montage-6.1/MontageLib/BgExec/montageBgExec.c:188:24: note: Assuming allocation function fails Montage-6.1/MontageLib/BgExec/montageBgExec.c:188:8: note: Assignment 'c=(double*)malloc(maxcntr*sizeof(double))', assigned value is 0 Montage-6.1/MontageLib/BgExec/montageBgExec.c:196:7: note: Null pointer dereference Montage-6.1/MontageLib/BgExec/montageBgExec.c:197:7: warning: If memory allocation fails, then there is a possible null pointer dereference: have [nullPointerOutOfMemory] Montage-6.1/MontageLib/BgExec/montageBgExec.c:190:24: note: Assuming allocation function fails Montage-6.1/MontageLib/BgExec/montageBgExec.c:190:11: note: Assignment 'have=(int*)malloc(maxcntr*sizeof(int))', assigned value is 0 Montage-6.1/MontageLib/BgExec/montageBgExec.c:197:7: note: Null pointer dereference Montage-6.1/MontageLib/BgExec/montageBgExec.c:63:37: style: Parameter 'inpath' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/BgExec/montageBgExec.c:63:81: style: Parameter 'corrdir' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/BgExec/montageBgExec.c:264:10: style: Variable 'ncols' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/CoverageCheck/mCoverageCheck.c:52:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/CoverageCheck/mCoverageCheck.c:141:15: style: Condition 'argc<5' is always false [knownConditionTrueFalse] Montage-6.1/MontageLib/CoverageCheck/mCoverageCheck.c:112:12: note: Assuming that condition 'argc<5' is not redundant Montage-6.1/MontageLib/CoverageCheck/mCoverageCheck.c:141:15: note: Condition 'argc<5' is always false Montage-6.1/MontageLib/CoverageCheck/mCoverageCheck.c:47:33: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/BgModel/montageBgModel.c:258:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mBgModelReturn [valueFlowBailoutIncompleteVar] Montage-6.1/Montage/mSubset.c:330:62: style: Condition 'icd12>=0' is always true [knownConditionTrueFalse] Montage-6.1/Montage/mSubset.c:330:32: note: Assuming that condition 'icd12>=0' is not redundant Montage-6.1/Montage/mSubset.c:330:62: note: Condition 'icd12>=0' is always true Montage-6.1/Montage/mSubset.c:330:53: style: Same expression 'icd12>=0' found multiple times in chain of '&&' operators. [duplicateExpression] Montage-6.1/Montage/mSubset.c:1237:16: style:inconclusive: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. [funcArgNamesDifferent] Montage-6.1/Montage/mSubset.c:59:20: note: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. Montage-6.1/Montage/mSubset.c:1237:16: note: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. Montage-6.1/Montage/mSubset.c:1237:25: style:inconclusive: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. [funcArgNamesDifferent] Montage-6.1/Montage/mSubset.c:59:28: note: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. Montage-6.1/Montage/mSubset.c:1237:25: note: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. Montage-6.1/Montage/mSubset.c:1237:34: style:inconclusive: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. [funcArgNamesDifferent] Montage-6.1/Montage/mSubset.c:59:36: note: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. Montage-6.1/Montage/mSubset.c:1237:34: note: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. Montage-6.1/Montage/mSubset.c:984:24: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mSubset.c:1199:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mSubset.c:1209:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mSubset.c:1237:16: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mSubset.c:1237:25: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mSubset.c:1260:17: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] Montage-6.1/Montage/mSubset.c:1260:25: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/CoverageCheck/montageCoverageCheck.c:212:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTBL_MAXSTR [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Diff/mDiff.c:48:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Diff/mDiff.c:32:24: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/BestImage/montageBestImage.c:250:59: style: Condition 'icd1_1>=0' is always true [knownConditionTrueFalse] Montage-6.1/MontageLib/BestImage/montageBestImage.c:250:27: note: Assuming that condition 'icd1_1>=0' is not redundant Montage-6.1/MontageLib/BestImage/montageBestImage.c:250:59: note: Condition 'icd1_1>=0' is always true Montage-6.1/MontageLib/BestImage/montageBestImage.c:250:74: style: Condition 'icd1_2>=0' is always true [knownConditionTrueFalse] Montage-6.1/MontageLib/BestImage/montageBestImage.c:250:43: note: Assuming that condition 'icd1_2>=0' is not redundant Montage-6.1/MontageLib/BestImage/montageBestImage.c:250:74: note: Condition 'icd1_2>=0' is always true Montage-6.1/MontageLib/BestImage/montageBestImage.c:140:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/BestImage/montageBestImage.c:135:52: note: Assuming allocation function fails Montage-6.1/MontageLib/BestImage/montageBestImage.c:135:19: note: Assignment 'returnStruct=(struct mBestImageReturn*)malloc(sizeof(struct mBestImageReturn))', assigned value is 0 Montage-6.1/MontageLib/BestImage/montageBestImage.c:140:4: note: Null pointer dereference Montage-6.1/MontageLib/BestImage/montageBestImage.c:142:11: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/BestImage/montageBestImage.c:135:52: note: Assuming allocation function fails Montage-6.1/MontageLib/BestImage/montageBestImage.c:135:19: note: Assignment 'returnStruct=(struct mBestImageReturn*)malloc(sizeof(struct mBestImageReturn))', assigned value is 0 Montage-6.1/MontageLib/BestImage/montageBestImage.c:142:11: note: Null pointer dereference Montage-6.1/MontageLib/BestImage/montageBestImage.c:250:48: style: Same expression 'icd1_1>=0' found multiple times in chain of '&&' operators. [duplicateExpression] Montage-6.1/MontageLib/BestImage/montageBestImage.c:250:64: style: Same expression 'icd1_2>=0' found multiple times in chain of '&&' operators. [duplicateExpression] Montage-6.1/MontageLib/BestImage/montageBestImage.c:126:10: style: Variable 'checkWCS' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/BestImage/montageBestImage.c:713:43: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/BestImage/montageBestImage.c:742:27: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/BestImage/montageBestImage.c:742:36: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/BestImage/montageBestImage.c:765:28: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/BestImage/montageBestImage.c:765:36: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/DiffExec/mDiffExec.c:54:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/DiffExec/mDiffExec.c:38:27: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Diff/montageDiff.c:152:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mDiffReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Diff/montageDiff.c:1508:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Diff/montageDiff.c:1573:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Diff/montageDiff.c:1622:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Diff/montageDiff.c:1674:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/DiffExec/montageDiffExec.c:73:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mDiffExecReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/DiffExec/montageDiffExec.c:77:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/DiffExec/montageDiffExec.c:73:51: note: Assuming allocation function fails Montage-6.1/MontageLib/DiffExec/montageDiffExec.c:73:19: note: Assignment 'returnStruct=(struct mDiffExecReturn*)malloc(sizeof(struct mDiffExecReturn))', assigned value is 0 Montage-6.1/MontageLib/DiffExec/montageDiffExec.c:77:4: note: Null pointer dereference Montage-6.1/MontageLib/DiffExec/montageDiffExec.c:55:41: style: Parameter 'inpath' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/DiffFitExec/mDiffFitExec.c:61:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/BgModel/montageBgModel.c:900:7: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/MontageLib/BgModel/montageBgModel.c:855:7: note: First condition Montage-6.1/MontageLib/BgModel/montageBgModel.c:900:7: note: Second condition Montage-6.1/MontageLib/BgModel/montageBgModel.c:370:7: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/BgModel/montageBgModel.c:408:13: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/BgModel/montageBgModel.c:496:7: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/BgModel/montageBgModel.c:560:13: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/BgModel/montageBgModel.c:569:13: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/BgModel/montageBgModel.c:607:13: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/BgModel/montageBgModel.c:616:13: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/BgModel/montageBgModel.c:635:7: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/BgModel/montageBgModel.c:660:10: portability: %lu in format string (no. 3) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/BgModel/montageBgModel.c:705:16: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/BgModel/montageBgModel.c:730:19: portability: %lu in format string (no. 3) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/BgModel/montageBgModel.c:777:13: portability: %lu in format string (no. 3) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/BgModel/montageBgModel.c:412:10: error: Common realloc mistake: 'imgs' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/BgModel/montageBgModel.c:564:10: error: Common realloc mistake: 'fits' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/BgModel/montageBgModel.c:611:10: error: Common realloc mistake: 'fits' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/BgModel/montageBgModel.c:709:13: error: Common realloc mistake: 'corrs' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/BgModel/montageBgModel.c:263:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/BgModel/montageBgModel.c:258:50: note: Assuming allocation function fails Montage-6.1/MontageLib/BgModel/montageBgModel.c:258:19: note: Assignment 'returnStruct=(struct mBgModelReturn*)malloc(sizeof(struct mBgModelReturn))', assigned value is 0 Montage-6.1/MontageLib/BgModel/montageBgModel.c:263:4: note: Null pointer dereference Montage-6.1/MontageLib/BgModel/montageBgModel.c:265:11: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/BgModel/montageBgModel.c:258:50: note: Assuming allocation function fails Montage-6.1/MontageLib/BgModel/montageBgModel.c:258:19: note: Assignment 'returnStruct=(struct mBgModelReturn*)malloc(sizeof(struct mBgModelReturn))', assigned value is 0 Montage-6.1/MontageLib/BgModel/montageBgModel.c:265:11: note: Null pointer dereference Montage-6.1/MontageLib/BgModel/montageBgModel.c:277:7: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] Montage-6.1/MontageLib/BgModel/montageBgModel.c:274:24: note: Assuming allocation function fails Montage-6.1/MontageLib/BgModel/montageBgModel.c:274:8: note: Assignment 'a=(float**)malloc(n*sizeof(float*))', assigned value is 0 Montage-6.1/MontageLib/BgModel/montageBgModel.c:277:7: note: Null pointer dereference Montage-6.1/MontageLib/BgModel/montageBgModel.c:289:7: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] Montage-6.1/MontageLib/BgModel/montageBgModel.c:286:24: note: Assuming allocation function fails Montage-6.1/MontageLib/BgModel/montageBgModel.c:286:8: note: Assignment 'b=(float**)malloc(n*sizeof(float*))', assigned value is 0 Montage-6.1/MontageLib/BgModel/montageBgModel.c:289:7: note: Null pointer dereference Montage-6.1/MontageLib/DiffFitExec/mDiffFitExec.c:42:31: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/BgModel/montageBgModel.c:179:69: style: Parameter 'corrtbl' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Diff/montageDiff.c:475:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/Diff/montageDiff.c:505:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/DiffFitExec/montageDiffFitExec.c:97:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mDiffFitExecReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Diff/montageDiff.c:108:71: style: Parameter 'ofile' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Diff/montageDiff.c:123:14: style: Variable 'checkHdr' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Diff/montageDiff.c:1475:30: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Diff/montageDiff.c:1689:29: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Examine/mExamine.c:50:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/DiffFitExec/montageDiffFitExec.c:101:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/DiffFitExec/montageDiffFitExec.c:97:54: note: Assuming allocation function fails Montage-6.1/MontageLib/DiffFitExec/montageDiffFitExec.c:97:19: note: Assignment 'returnStruct=(struct mDiffFitExecReturn*)malloc(sizeof(struct mDiffFitExecReturn))', assigned value is 0 Montage-6.1/MontageLib/DiffFitExec/montageDiffFitExec.c:101:4: note: Null pointer dereference Montage-6.1/MontageLib/DiffFitExec/montageDiffFitExec.c:121:14: warning: Either the condition 'fout==(FILE*)NULL' is redundant or there is possible null pointer dereference: fout. [nullPointerRedundantCheck] Montage-6.1/MontageLib/DiffFitExec/montageDiffFitExec.c:118:12: note: Assuming that condition 'fout==(FILE*)NULL' is not redundant Montage-6.1/MontageLib/DiffFitExec/montageDiffFitExec.c:121:14: note: Null pointer dereference Montage-6.1/MontageLib/DiffFitExec/montageDiffFitExec.c:121:14: error: Null pointer dereference [nullPointer] Montage-6.1/MontageLib/DiffFitExec/montageDiffFitExec.c:52:47: style: Parameter 'inpath' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/DiffFitExec/montageDiffFitExec.c:53:47: style: Parameter 'fitfile' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/FitExec/mFitExec.c:52:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/FitExec/mFitExec.c:38:27: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/FitExec/montageFitExec.c:98:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mFitExecReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Examine/mExamine.c:33:27: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/FitExec/montageFitExec.c:102:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/FitExec/montageFitExec.c:98:50: note: Assuming allocation function fails Montage-6.1/MontageLib/FitExec/montageFitExec.c:98:19: note: Assignment 'returnStruct=(struct mFitExecReturn*)malloc(sizeof(struct mFitExecReturn))', assigned value is 0 Montage-6.1/MontageLib/FitExec/montageFitExec.c:102:4: note: Null pointer dereference Montage-6.1/MontageLib/FitExec/montageFitExec.c:59:54: style: Parameter 'fitfile' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Fitplane/mFitplane.c:64:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Fitplane/mFitplane.c:49:28: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/FixNaN/mFixNaN.c:64:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Fitplane/montageFitplane.c:144:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mFitplaneReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Fitplane/montageFitplane.c:629:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Examine/montageExamine.c:153:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mExamineReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/FixNaN/mFixNaN.c:36:26: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:165:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mFixNaNReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:556:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:621:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Fitplane/montageFitplane.c:149:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/Fitplane/montageFitplane.c:144:51: note: Assuming allocation function fails Montage-6.1/MontageLib/Fitplane/montageFitplane.c:144:19: note: Assignment 'returnStruct=(struct mFitplaneReturn*)malloc(sizeof(struct mFitplaneReturn))', assigned value is 0 Montage-6.1/MontageLib/Fitplane/montageFitplane.c:149:4: note: Null pointer dereference Montage-6.1/MontageLib/Fitplane/montageFitplane.c:151:11: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/Fitplane/montageFitplane.c:144:51: note: Assuming allocation function fails Montage-6.1/MontageLib/Fitplane/montageFitplane.c:144:19: note: Assignment 'returnStruct=(struct mFitplaneReturn*)malloc(sizeof(struct mFitplaneReturn))', assigned value is 0 Montage-6.1/MontageLib/Fitplane/montageFitplane.c:151:11: note: Null pointer dereference Montage-6.1/MontageLib/Fitplane/montageFitplane.c:201:7: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] Montage-6.1/MontageLib/Fitplane/montageFitplane.c:198:28: note: Assuming allocation function fails Montage-6.1/MontageLib/Fitplane/montageFitplane.c:198:11: note: Assignment 'data=(double**)malloc(naxes[1]*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/Fitplane/montageFitplane.c:201:7: note: Null pointer dereference Montage-6.1/MontageLib/Fitplane/montageFitplane.c:229:24: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] Montage-6.1/MontageLib/Fitplane/montageFitplane.c:198:28: note: Assuming allocation function fails Montage-6.1/MontageLib/Fitplane/montageFitplane.c:198:11: note: Assignment 'data=(double**)malloc(naxes[1]*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/Fitplane/montageFitplane.c:229:24: note: Null pointer dereference Montage-6.1/MontageLib/Fitplane/montageFitplane.c:346:7: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] Montage-6.1/MontageLib/Fitplane/montageFitplane.c:342:25: note: Assuming allocation function fails Montage-6.1/MontageLib/Fitplane/montageFitplane.c:342:8: note: Assignment 'a=(double**)malloc(n*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/Fitplane/montageFitplane.c:346:7: note: Null pointer dereference Montage-6.1/MontageLib/Fitplane/montageFitplane.c:349:10: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] Montage-6.1/MontageLib/Fitplane/montageFitplane.c:342:25: note: Assuming allocation function fails Montage-6.1/MontageLib/Fitplane/montageFitplane.c:342:8: note: Assignment 'a=(double**)malloc(n*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/Fitplane/montageFitplane.c:349:10: note: Null pointer dereference Montage-6.1/MontageLib/Fitplane/montageFitplane.c:363:7: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] Montage-6.1/MontageLib/Fitplane/montageFitplane.c:359:25: note: Assuming allocation function fails Montage-6.1/MontageLib/Fitplane/montageFitplane.c:359:8: note: Assignment 'b=(double**)malloc(n*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/Fitplane/montageFitplane.c:363:7: note: Null pointer dereference Montage-6.1/MontageLib/Fitplane/montageFitplane.c:366:10: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] Montage-6.1/MontageLib/Fitplane/montageFitplane.c:359:25: note: Assuming allocation function fails Montage-6.1/MontageLib/Fitplane/montageFitplane.c:359:8: note: Assignment 'b=(double**)malloc(n*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/Fitplane/montageFitplane.c:366:10: note: Null pointer dereference Montage-6.1/MontageLib/Fitplane/montageFitplane.c:748:30: style: Parameter 'error_text' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/GetHdr/mGetHdr.c:44:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/GetHdr/mGetHdr.c:34:26: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:289:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:298:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:152:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:150:14: note: Assuming allocation function fails Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:150:14: note: Assignment 'fd=fopen("/tmp/jcg.debug","w+")', assigned value is 0 Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:152:12: note: Null pointer dereference Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:155:15: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:150:14: note: Assuming allocation function fails Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:150:14: note: Assignment 'fd=fopen("/tmp/jcg.debug","w+")', assigned value is 0 Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:155:15: note: Null pointer dereference Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:158:11: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:150:14: note: Assuming allocation function fails Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:150:14: note: Assignment 'fd=fopen("/tmp/jcg.debug","w+")', assigned value is 0 Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:158:11: note: Null pointer dereference Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:170:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:165:49: note: Assuming allocation function fails Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:165:19: note: Assignment 'returnStruct=(struct mFixNaNReturn*)malloc(sizeof(struct mFixNaNReturn))', assigned value is 0 Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:170:4: note: Null pointer dereference Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:172:11: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:165:49: note: Assuming allocation function fails Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:165:19: note: Assignment 'returnStruct=(struct mFixNaNReturn*)malloc(sizeof(struct mFixNaNReturn))', assigned value is 0 Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:172:11: note: Null pointer dereference Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:113:40: style: Parameter 'minblank' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:113:55: style: Parameter 'ismin' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:113:70: style: Parameter 'maxblank' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:113:85: style: Parameter 'ismax' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:125:14: style: Variable 'checkHdr' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/FixNaN/montageFixNaN.c:605:31: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Hdr/mHdr.c:51:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/GetHdr/montageGetHdr.c:78:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mGetHdrReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/GetHdr/montageGetHdr.c:354:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Hdr/mHdr.c:33:23: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Hdr/montageHdr.c:87:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mHdrReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Hdr/montageHdr.c:252:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Examine/montageExamine.c:895:16: error: Common realloc mistake: 'ap' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Examine/montageExamine.c:158:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/Examine/montageExamine.c:153:50: note: Assuming allocation function fails Montage-6.1/MontageLib/Examine/montageExamine.c:153:19: note: Assignment 'returnStruct=(struct mExamineReturn*)malloc(sizeof(struct mExamineReturn))', assigned value is 0 Montage-6.1/MontageLib/Examine/montageExamine.c:158:4: note: Null pointer dereference Montage-6.1/MontageLib/Examine/montageExamine.c:160:11: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/Examine/montageExamine.c:153:50: note: Assuming allocation function fails Montage-6.1/MontageLib/Examine/montageExamine.c:153:19: note: Assignment 'returnStruct=(struct mExamineReturn*)malloc(sizeof(struct mExamineReturn))', assigned value is 0 Montage-6.1/MontageLib/Examine/montageExamine.c:160:11: note: Null pointer dereference Montage-6.1/MontageLib/Examine/montageExamine.c:496:10: style: Variable 'ixpix' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/MontageLib/Examine/montageExamine.c:447:10: note: ixpix is assigned Montage-6.1/MontageLib/Examine/montageExamine.c:496:10: note: ixpix is overwritten Montage-6.1/MontageLib/Examine/montageExamine.c:497:10: style: Variable 'iypix' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/MontageLib/Examine/montageExamine.c:448:10: note: iypix is assigned Montage-6.1/MontageLib/Examine/montageExamine.c:497:10: note: iypix is overwritten Montage-6.1/MontageLib/Examine/montageExamine.c:1206:20: style: Variable 'ap1' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Examine/montageExamine.c:1207:20: style: Variable 'ap2' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Hdr/montageHdr.c:240:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] Montage-6.1/MontageLib/Hdr/montageHdr.c:254:4: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] Montage-6.1/MontageLib/Hdr/montageHdr.c:133:10: error: Resource leak: fout [resourceLeak] Montage-6.1/MontageLib/Hdr/montageHdr.c:154:7: error: Resource leak: fout [resourceLeak] Montage-6.1/MontageLib/Hdr/montageHdr.c:92:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/Hdr/montageHdr.c:87:46: note: Assuming allocation function fails Montage-6.1/MontageLib/Hdr/montageHdr.c:87:19: note: Assignment 'returnStruct=(struct mHdrReturn*)malloc(sizeof(struct mHdrReturn))', assigned value is 0 Montage-6.1/MontageLib/Hdr/montageHdr.c:92:4: note: Null pointer dereference Montage-6.1/MontageLib/Hdr/montageHdr.c:94:11: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/Hdr/montageHdr.c:87:46: note: Assuming allocation function fails Montage-6.1/MontageLib/Hdr/montageHdr.c:87:19: note: Assignment 'returnStruct=(struct mHdrReturn*)malloc(sizeof(struct mHdrReturn))', assigned value is 0 Montage-6.1/MontageLib/Hdr/montageHdr.c:94:11: note: Null pointer dereference Montage-6.1/MontageLib/Hdr/montageHdr.c:323:7: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/MontageLib/Hdr/montageHdr.c:317:34: note: Assuming allocation function fails Montage-6.1/MontageLib/Hdr/montageHdr.c:317:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/MontageLib/Hdr/montageHdr.c:323:7: note: Null pointer dereference Montage-6.1/MontageLib/Hdr/montageHdr.c:325:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/MontageLib/Hdr/montageHdr.c:317:34: note: Assuming allocation function fails Montage-6.1/MontageLib/Hdr/montageHdr.c:317:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/MontageLib/Hdr/montageHdr.c:325:11: note: Null pointer dereference Montage-6.1/MontageLib/Hdr/montageHdr.c:344:4: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/MontageLib/Hdr/montageHdr.c:317:34: note: Assuming allocation function fails Montage-6.1/MontageLib/Hdr/montageHdr.c:317:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/MontageLib/Hdr/montageHdr.c:344:4: note: Null pointer dereference Montage-6.1/MontageLib/Hdr/montageHdr.c:287:19: style: The comparison 'rc == 0' is always true. [knownConditionTrueFalse] Montage-6.1/MontageLib/Hdr/montageHdr.c:275:16: note: 'rc' is assigned value '0' here. Montage-6.1/MontageLib/Hdr/montageHdr.c:287:19: note: The comparison 'rc == 0' is always true. Montage-6.1/MontageLib/Hdr/montageHdr.c:60:74: style: Parameter 'outfile' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Hdr/montageHdr.c:61:67: style: Parameter 'band2MASS' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Hdr/montageHdr.c:233:28: style: Parameter 'hostname' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Hdr/montageHdr.c:236:24: style: Variable 'host' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Hdr/montageHdr.c:309:29: style: Parameter 's' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Histogram/mHistogram.c:44:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/GetHdr/montageGetHdr.c:120:7: error: Resource leak: fout [resourceLeak] Montage-6.1/MontageLib/GetHdr/montageGetHdr.c:129:10: error: Resource leak: fout [resourceLeak] Montage-6.1/MontageLib/GetHdr/montageGetHdr.c:137:7: error: Resource leak: fout [resourceLeak] Montage-6.1/MontageLib/GetHdr/montageGetHdr.c:83:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/GetHdr/montageGetHdr.c:78:49: note: Assuming allocation function fails Montage-6.1/MontageLib/GetHdr/montageGetHdr.c:78:19: note: Assignment 'returnStruct=(struct mGetHdrReturn*)malloc(sizeof(struct mGetHdrReturn))', assigned value is 0 Montage-6.1/MontageLib/GetHdr/montageGetHdr.c:83:4: note: Null pointer dereference Montage-6.1/MontageLib/GetHdr/montageGetHdr.c:85:11: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/GetHdr/montageGetHdr.c:78:49: note: Assuming allocation function fails Montage-6.1/MontageLib/GetHdr/montageGetHdr.c:78:19: note: Assignment 'returnStruct=(struct mGetHdrReturn*)malloc(sizeof(struct mGetHdrReturn))', assigned value is 0 Montage-6.1/MontageLib/GetHdr/montageGetHdr.c:85:11: note: Null pointer dereference Montage-6.1/MontageLib/GetHdr/montageGetHdr.c:52:51: style: Parameter 'hdrfile' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/GetHdr/montageGetHdr.c:56:9: style: Variable 'fileBase' can be declared as const array [constVariable] Montage-6.1/MontageLib/GetHdr/montageGetHdr.c:211:58: error: Uninitialized variable: fileBase [uninitvar] Montage-6.1/MontageLib/Imgtbl/mImgtbl.c:63:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Imgtbl/mImgtbl.c:44:26: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Histogram/montageHistogram.c:109:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mHistogramReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Histogram/montageHistogram.c:397:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Histogram/montageHistogram.c:431:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Histogram/montageHistogram.c:613:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ASINH [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Histogram/montageHistogram.c:924:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Histogram/montageHistogram.c:967:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Histogram/montageHistogram.c:127:45: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/MontageLib/Histogram/montageHistogram.c:125:36: note: First condition Montage-6.1/MontageLib/Histogram/montageHistogram.c:127:45: note: Second condition Montage-6.1/MontageLib/Histogram/montageHistogram.c:114:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/Histogram/montageHistogram.c:109:52: note: Assuming allocation function fails Montage-6.1/MontageLib/Histogram/montageHistogram.c:109:19: note: Assignment 'returnStruct=(struct mHistogramReturn*)malloc(sizeof(struct mHistogramReturn))', assigned value is 0 Montage-6.1/MontageLib/Histogram/montageHistogram.c:114:4: note: Null pointer dereference Montage-6.1/MontageLib/Histogram/montageHistogram.c:116:11: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/Histogram/montageHistogram.c:109:52: note: Assuming allocation function fails Montage-6.1/MontageLib/Histogram/montageHistogram.c:109:19: note: Assignment 'returnStruct=(struct mHistogramReturn*)malloc(sizeof(struct mHistogramReturn))', assigned value is 0 Montage-6.1/MontageLib/Histogram/montageHistogram.c:116:11: note: Null pointer dereference Montage-6.1/MontageLib/Histogram/montageHistogram.c:78:59: style: Parameter 'histfile' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Histogram/montageHistogram.c:79:79: style: Parameter 'graytype' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Histogram/montageHistogram.c:565:47: style: Parameter 'minstr' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Histogram/montageHistogram.c:565:61: style: Parameter 'maxstr' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Histogram/montageHistogram.c:567:41: style: Parameter 'betastr' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Histogram/montageHistogram.c:570:41: style: Parameter 'planes' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Histogram/montageHistogram.c:1015:11: style: Variable 'a' can be declared as const array [constVariable] Montage-6.1/MontageLib/Histogram/montageHistogram.c:1019:11: style: Variable 'b' can be declared as const array [constVariable] Montage-6.1/MontageLib/Histogram/montageHistogram.c:1023:11: style: Variable 'a1' can be declared as const array [constVariable] Montage-6.1/MontageLib/Histogram/montageHistogram.c:1028:11: style: Variable 'b1' can be declared as const array [constVariable] Montage-6.1/MontageLib/Histogram/montageHistogram.c:1033:11: style: Variable 'a2' can be declared as const array [constVariable] Montage-6.1/MontageLib/Histogram/montageHistogram.c:1039:11: style: Variable 'b2' can be declared as const array [constVariable] Montage-6.1/MontageLib/Histogram/montageHistogram.c:1044:11: style: Variable 'a3' can be declared as const array [constVariable] Montage-6.1/MontageLib/Histogram/montageHistogram.c:1050:11: style: Variable 'b3' can be declared as const array [constVariable] Montage-6.1/MontageLib/Histogram/montageHistogram.c:626:7: warning: Uninitialized variable: betatype [uninitvar] Montage-6.1/MontageLib/Histogram/montageHistogram.c:613:13: note: Assuming condition is false Montage-6.1/MontageLib/Histogram/montageHistogram.c:626:7: note: Uninitialized variable: betatype Montage-6.1/MontageLib/Histogram/mHistogram.c:34:29: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/MakeHdr/mMakeHdr.c:55:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/MakeHdr/mMakeHdr.c:37:27: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/MakeImg/ltqnorm.c:71:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/MakeHdr/montageMakeHdr.c:238:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mMakeHdrReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/MakeImg/mMakeImg.c:22:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRLEN [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/MakeImg/mMakeImg.c:28:10: style: Variable 'rstat' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/MakeImg/mMakeImg.c:32:27: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:215:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mImgtblReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:530:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:639:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:795:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/MakeHdr/montageMakeHdr.c:677:42: style: Expression is always false because 'else if' condition matches previous condition at line 675. [multiCondition] Montage-6.1/MontageLib/MakeHdr/montageMakeHdr.c:1092:13: error: Common realloc mistake: 'lons' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/MakeHdr/montageMakeHdr.c:1093:13: error: Common realloc mistake: 'lats' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/MakeHdr/montageMakeHdr.c:138:70: style: Parameter 'csysin' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/MakeHdr/montageMakeHdr.c:181:12: style: Variable 'checkWCS' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/MakeHdr/montageMakeHdr.c:210:12: style: Variable 'keyval' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/MakeHdr/montageMakeHdr.c:218:20: style: Variable 'box' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/MakeHdr/montageMakeHdr.c:1546:41: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/MakeHdr/montageMakeHdr.c:1577:33: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Overlaps/mOverlaps.c:40:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Overlaps/mOverlaps.c:28:28: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:169:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRLEN [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:1760:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EQUJ [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:1842:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRLEN [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:2042:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:2063:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:2080:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRLEN [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:2302:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:2351:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXFILE [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:172:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mOverlapsReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1061:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nxpix [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/CoverageCheck/montageCoverageCheck.c:1874:16: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/MontageLib/CoverageCheck/montageCoverageCheck.c:1867:16: note: First condition Montage-6.1/MontageLib/CoverageCheck/montageCoverageCheck.c:1874:16: note: Second condition Montage-6.1/MontageLib/CoverageCheck/montageCoverageCheck.c:112:65: style: Parameter 'outfile' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/CoverageCheck/montageCoverageCheck.c:113:65: style: Parameter 'array' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/CoverageCheck/montageCoverageCheck.c:113:78: style: Parameter 'inpath' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/CoverageCheck/montageCoverageCheck.c:139:11: style: Variable 'checkWCS' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/CoverageCheck/montageCoverageCheck.c:2420:31: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/CoverageCheck/montageCoverageCheck.c:2420:40: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/CoverageCheck/montageCoverageCheck.c:2443:32: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/CoverageCheck/montageCoverageCheck.c:2443:40: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/CoverageCheck/montageCoverageCheck.c:2496:47: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:699:15: style: Expression is always false because 'else if' condition matches previous condition at line 695. [multiCondition] Montage-6.1/MontageLib/ProjExec/mProjExec.c:69:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:797:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/MontageLib/ProjExec/mProjExec.c:46:28: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:2173:16: style:inconclusive: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. [funcArgNamesDifferent] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:77:31: note: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:2173:16: note: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:2173:25: style:inconclusive: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. [funcArgNamesDifferent] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:77:39: note: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:2173:25: note: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:2173:34: style:inconclusive: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. [funcArgNamesDifferent] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:77:47: note: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:2173:34: note: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:2216:23: style:inconclusive: Function 'Normalize' argument 1 names different: declaration 'a' definition 'v'. [funcArgNamesDifferent] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:79:31: note: Function 'Normalize' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:2216:23: note: Function 'Normalize' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:161:36: style: Local variable 'a' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:2258:21: note: Shadowed declaration Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:161:36: note: Shadow variable Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:1755:16: style: Local variable 'ref' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:44:11: note: Shadowed declaration Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:1755:16: note: Shadow variable Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:1846:14: style: Local variable 'sys' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:46:11: note: Shadowed declaration Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:1846:14: note: Shadow variable Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:1847:14: style: Local variable 'epoch' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:47:11: note: Shadowed declaration Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:1847:14: note: Shadow variable Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:209:14: style: Variable 'sv' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:1836:33: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:2173:16: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:2173:25: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:2196:17: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/MakeImg/montageMakeImg.c:2196:25: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjExec/montageProjExec.c:178:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Project/mProject.c:59:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Project/mProject.c:34:27: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1165:10: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:245:57: style: Condition 'icd12>=0' is always true [knownConditionTrueFalse] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:245:27: note: Assuming that condition 'icd12>=0' is not redundant Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:245:57: note: Condition 'icd12>=0' is always true Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:202:7: error: Resource leak: fout [resourceLeak] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:270:7: error: Resource leak: fout [resourceLeak] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:309:7: error: Resource leak: fout [resourceLeak] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:607:10: error: Common realloc mistake: 'input' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:177:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:172:51: note: Assuming allocation function fails Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:172:19: note: Assignment 'returnStruct=(struct mOverlapsReturn*)malloc(sizeof(struct mOverlapsReturn))', assigned value is 0 Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:177:4: note: Null pointer dereference Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:179:11: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:172:51: note: Assuming allocation function fails Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:172:19: note: Assignment 'returnStruct=(struct mOverlapsReturn*)malloc(sizeof(struct mOverlapsReturn))', assigned value is 0 Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:179:11: note: Null pointer dereference Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:245:48: style: Same expression 'icd12>=0' found multiple times in chain of '&&' operators. [duplicateExpression] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1189:14: style: Variable 'p0Dot' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1184:10: note: p0Dot is assigned Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1189:14: note: p0Dot is overwritten Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1190:14: style: Variable 'p1Dot' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1185:10: note: p1Dot is assigned Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1190:14: note: p1Dot is overwritten Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1191:14: style: Variable 'q0Dot' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1186:10: note: q0Dot is assigned Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1191:14: note: q0Dot is overwritten Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1192:14: style: Variable 'q1Dot' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1187:10: note: q1Dot is assigned Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1192:14: note: q1Dot is overwritten Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:115:56: style: Parameter 'difftbl' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:130:11: style: Variable 'checkWCS' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1001:42: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1097:53: style: Parameter 'intersect2' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1265:26: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1265:35: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1288:27: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1288:35: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1124:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1125:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1132:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1133:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1140:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1141:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1148:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1149:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1156:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1157:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1164:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Overlaps/montageOverlaps.c:1165:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/ProjectCube/mProjectCube.c:57:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectCube/mProjectCube.c:33:31: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Project/montageProject.c:335:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mProjectReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Project/montageProject.c:2196:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Project/montageProject.c:2387:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Project/montageProject.c:2455:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Project/montageProject.c:2636:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Project/montageProject.c:2754:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Project/montageProject.c:2913:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Project/montageProject.c:3005:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Project/montageProject.c:3375:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Project/montageProject.c:3412:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Project/montageProject.c:3444:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Project/montageProject.c:3491:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Project/montageProject.c:3553:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable y [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Project/montageProject.c:3892:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable y [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Project/montageProject.c:4000:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable y [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjExec/montageProjExec.c:263:7: error: Memory leak: inheader [memleak] Montage-6.1/MontageLib/ProjExec/montageProjExec.c:195:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/ProjExec/montageProjExec.c:191:51: note: Assuming allocation function fails Montage-6.1/MontageLib/ProjExec/montageProjExec.c:191:19: note: Assignment 'returnStruct=(struct mProjExecReturn*)malloc(sizeof(struct mProjExecReturn))', assigned value is 0 Montage-6.1/MontageLib/ProjExec/montageProjExec.c:195:4: note: Null pointer dereference Montage-6.1/MontageLib/ProjExec/montageProjExec.c:197:11: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/ProjExec/montageProjExec.c:191:51: note: Assuming allocation function fails Montage-6.1/MontageLib/ProjExec/montageProjExec.c:191:19: note: Assignment 'returnStruct=(struct mProjExecReturn*)malloc(sizeof(struct mProjExecReturn))', assigned value is 0 Montage-6.1/MontageLib/ProjExec/montageProjExec.c:197:11: note: Null pointer dereference Montage-6.1/MontageLib/ProjExec/montageProjExec.c:131:41: style: Parameter 'inpath' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjExec/montageProjExec.c:133:71: style: Parameter 'stats' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjExec/montageProjExec.c:893:34: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjExec/montageProjExec.c:899:14: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/ProjExec/montageProjExec.c:963:42: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:264:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DOUBLE_IMG [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:2210:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:2401:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:2469:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:2677:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:2827:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:2899:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3269:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3306:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3338:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3385:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3446:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable y [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3785:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable y [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3893:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable y [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectPP/mProjectPP.c:64:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectPP/mProjectPP.c:37:29: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:266:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DOUBLE_IMG [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:1765:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:2059:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:2126:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:2291:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:2365:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:2398:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Project/montageProject.c:3678:10: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] Montage-6.1/MontageLib/Project/montageProject.c:888:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/Project/montageProject.c:932:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/Project/montageProject.c:3878:11: style: Local variable 'pi' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/Project/montageProject.c:127:16: note: Shadowed declaration Montage-6.1/MontageLib/Project/montageProject.c:3878:11: note: Shadow variable Montage-6.1/MontageLib/Project/montageProject.c:3878:15: style: Local variable 'dtr' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/Project/montageProject.c:127:20: note: Shadowed declaration Montage-6.1/MontageLib/Project/montageProject.c:3878:15: note: Shadow variable Montage-6.1/MontageLib/Project/montageProject.c:268:57: style: Parameter 'ofile' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Project/montageProject.c:297:14: style: Variable 'xcw' can be declared as const array [constVariable] Montage-6.1/MontageLib/Project/montageProject.c:298:14: style: Variable 'ycw' can be declared as const array [constVariable] Montage-6.1/MontageLib/Project/montageProject.c:300:14: style: Variable 'xccw' can be declared as const array [constVariable] Montage-6.1/MontageLib/Project/montageProject.c:301:14: style: Variable 'yccw' can be declared as const array [constVariable] Montage-6.1/MontageLib/Project/montageProject.c:326:14: style: Variable 'checkHdr' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Project/montageProject.c:2149:33: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Project/montageProject.c:2653:32: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Project/montageProject.c:2664:41: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Project/montageProject.c:2740:32: style: Parameter 'strin' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Project/montageProject.c:2889:40: style: Parameter 'ilon' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Project/montageProject.c:2889:54: style: Parameter 'ilat' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Project/montageProject.c:2890:40: style: Parameter 'olon' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Project/montageProject.c:2890:54: style: Parameter 'olat' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Project/montageProject.c:3610:52: style: Parameter 'intersect2' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Project/montageProject.c:3726:29: style: Parameter 'point' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Project/montageProject.c:3726:42: style: Parameter 'vector' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Project/montageProject.c:3779:25: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Project/montageProject.c:3779:34: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Project/montageProject.c:3802:26: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Project/montageProject.c:3802:34: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Project/montageProject.c:3637:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Project/montageProject.c:3638:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Project/montageProject.c:3645:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Project/montageProject.c:3646:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Project/montageProject.c:3653:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Project/montageProject.c:3654:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Project/montageProject.c:3661:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Project/montageProject.c:3662:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Project/montageProject.c:3669:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Project/montageProject.c:3670:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Project/montageProject.c:3677:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Project/montageProject.c:3678:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/ProjectQL/mProjectQL.c:54:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NEAREST [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:841:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:891:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/ProjectQL/mProjectQL.c:36:29: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:213:61: style: Parameter 'ofile' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:257:14: style: Variable 'checkHdr' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:1751:35: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:2308:34: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:2319:43: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:2384:34: style: Parameter 'strin' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:2615:34: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:2615:46: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:2703:46: style: Parameter 'nx' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:2703:58: style: Parameter 'ny' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:2724:61: style: Parameter 'xp' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectPP/montageProjectPP.c:2724:73: style: Parameter 'yp' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3571:10: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] Montage-6.1/MontageLib/PutHdr/mPutHdr.c:60:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/PutHdr/mPutHdr.c:47:26: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:594:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:626:10: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:869:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:925:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/PutHdr/montagePutHdr.c:119:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mPutHdrReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/PutHdr/montagePutHdr.c:494:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/PutHdr/montagePutHdr.c:586:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3771:11: style: Local variable 'pi' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:77:15: note: Shadowed declaration Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3771:11: note: Shadow variable Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3771:15: style: Local variable 'dtr' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:77:19: note: Shadowed declaration Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3771:15: note: Shadow variable Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:226:15: style: Variable 'xcw' can be declared as const array [constVariable] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:227:15: style: Variable 'ycw' can be declared as const array [constVariable] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:229:15: style: Variable 'xccw' can be declared as const array [constVariable] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:230:15: style: Variable 'yccw' can be declared as const array [constVariable] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:254:15: style: Variable 'checkHdr' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:2163:37: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:2692:36: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:2702:45: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:2785:44: style: Parameter 'ilon' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:2785:58: style: Parameter 'ilat' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:2786:40: style: Parameter 'olon' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:2786:54: style: Parameter 'olat' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3503:52: style: Parameter 'intersect2' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3619:33: style: Parameter 'point' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3619:46: style: Parameter 'vector' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3672:29: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3672:38: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3695:30: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3695:38: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3530:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/ProjectQL/montageProjectQL.c:211:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DOUBLE_IMG [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectQL/montageProjectQL.c:1416:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3531:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/ProjectQL/montageProjectQL.c:1604:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectQL/montageProjectQL.c:1672:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectQL/montageProjectQL.c:1851:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectQL/montageProjectQL.c:1968:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3538:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3539:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3546:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3547:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3554:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3555:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3562:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3563:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3570:21: style: Variable 'intersect1' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/ProjectCube/montageProjectCube.c:3571:21: style: Variable 'intersect2' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/PutHdr/montagePutHdr.c:206:13: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/MontageLib/PutHdr/montagePutHdr.c:196:13: note: First condition Montage-6.1/MontageLib/PutHdr/montagePutHdr.c:206:13: note: Second condition Montage-6.1/MontageLib/PutHdr/montagePutHdr.c:360:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/MontageLib/PutHdr/montagePutHdr.c:191:7: error: Used file that is not opened. [useClosedFile] Montage-6.1/MontageLib/PutHdr/montagePutHdr.c:124:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/PutHdr/montagePutHdr.c:119:49: note: Assuming allocation function fails Montage-6.1/MontageLib/PutHdr/montagePutHdr.c:119:19: note: Assignment 'returnStruct=(struct mPutHdrReturn*)malloc(sizeof(struct mPutHdrReturn))', assigned value is 0 Montage-6.1/MontageLib/PutHdr/montagePutHdr.c:124:4: note: Null pointer dereference Montage-6.1/MontageLib/PutHdr/montagePutHdr.c:126:11: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/PutHdr/montagePutHdr.c:119:49: note: Assuming allocation function fails Montage-6.1/MontageLib/PutHdr/montagePutHdr.c:119:19: note: Assignment 'returnStruct=(struct mPutHdrReturn*)malloc(sizeof(struct mPutHdrReturn))', assigned value is 0 Montage-6.1/MontageLib/PutHdr/montagePutHdr.c:126:11: note: Null pointer dereference Montage-6.1/MontageLib/PutHdr/montagePutHdr.c:601:31: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/PutHdr/montagePutHdr.c:40:22: style: struct member 'Anonymous0::wcs' is never used. [unusedStructMember] Montage-6.1/MontageLib/Shrink/mShrink.c:43:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Shrink/mShrink.c:28:26: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/ShrinkCube/mShrinkCube.c:44:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ShrinkCube/mShrinkCube.c:28:30: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Shrink/montageShrink.c:173:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mShrinkReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Shrink/montageShrink.c:1313:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Shrink/montageShrink.c:1530:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ShrinkCube/montageShrinkCube.c:156:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mShrinkCubeReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ShrinkCube/montageShrinkCube.c:1392:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ShrinkCube/montageShrinkCube.c:1627:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/ProjectQL/montageProjectQL.c:716:7: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/ProjectQL/montageProjectQL.c:748:10: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/MontageLib/ProjectQL/montageProjectQL.c:160:61: style: Parameter 'ofile' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectQL/montageProjectQL.c:195:14: style: Variable 'checkHdr' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/ProjectQL/montageProjectQL.c:1369:35: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectQL/montageProjectQL.c:1866:34: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectQL/montageProjectQL.c:1876:43: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ProjectQL/montageProjectQL.c:1954:34: style: Parameter 'strin' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Shrink/montageShrink.c:740:22: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/MontageLib/Shrink/montageShrink.c:734:22: note: First condition Montage-6.1/MontageLib/Shrink/montageShrink.c:740:22: note: Second condition Montage-6.1/MontageLib/SubCube/mSubCube.c:66:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Shrink/montageShrink.c:1545:31: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ShrinkCube/montageShrinkCube.c:768:28: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/MontageLib/ShrinkCube/montageShrinkCube.c:762:28: note: First condition Montage-6.1/MontageLib/ShrinkCube/montageShrinkCube.c:768:28: note: Second condition Montage-6.1/MontageLib/ShrinkCube/montageShrinkCube.c:1642:35: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/ShrinkCube/montageShrinkCube.c:696:18: style: Variable 'fpixelo[2]' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/ShrinkCube/montageShrinkCube.c:1018:18: style: Variable 'fpixelo[2]' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Subimage/mSubimage.c:57:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/SubCube/montageSubCube.c:136:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mSubCubeReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/SubCube/montageSubCube.c:904:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WCS_DSS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/SubCube/montageSubCube.c:1045:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/SubCube/montageSubCube.c:1092:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/SubCube/montageSubCube.c:1412:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/SubCube/montageSubCube.c:1583:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Subimage/mSubimage.c:124:7: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/MontageLib/Subimage/mSubimage.c:113:7: note: First condition Montage-6.1/MontageLib/Subimage/mSubimage.c:124:7: note: Second condition Montage-6.1/MontageLib/Subimage/mSubimage.c:174:67: style: Condition 'argc<6' is always false [knownConditionTrueFalse] Montage-6.1/MontageLib/Subimage/mSubimage.c:174:43: note: Assuming that condition 'argc<6' is not redundant Montage-6.1/MontageLib/Subimage/mSubimage.c:174:67: note: Condition 'argc<6' is always false Montage-6.1/MontageLib/Subimage/mSubimage.c:44:28: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Subimage/mSubimage.c:196:15: style: Variable 'pixmode' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Subimage/montageSubimage.c:180:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PIX [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Subimage/montageSubimage.c:694:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Subimage/montageSubimage.c:827:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Subimage/montageSubimage.c:901:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Subimage/montageSubimage.c:1094:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Subimage/montageSubimage.c:1135:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/SubCube/mSubCube.c:254:67: style: Condition 'argc<6' is always false [knownConditionTrueFalse] Montage-6.1/MontageLib/SubCube/mSubCube.c:254:43: note: Assuming that condition 'argc<6' is not redundant Montage-6.1/MontageLib/SubCube/mSubCube.c:254:67: note: Condition 'argc<6' is always false Montage-6.1/MontageLib/SubCube/mSubCube.c:117:18: style: Variable 'd3begin' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/MontageLib/SubCube/mSubCube.c:114:18: note: d3begin is assigned Montage-6.1/MontageLib/SubCube/mSubCube.c:117:18: note: d3begin is overwritten Montage-6.1/MontageLib/SubCube/mSubCube.c:126:16: style: Variable 'd3end' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/MontageLib/SubCube/mSubCube.c:115:18: note: d3end is assigned Montage-6.1/MontageLib/SubCube/mSubCube.c:126:16: note: d3end is overwritten Montage-6.1/MontageLib/SubCube/mSubCube.c:50:27: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/SubCube/mSubCube.c:282:15: style: Variable 'pixmode' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/TANHdr/mTANHdr.c:70:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/TANHdr/mTANHdr.c:66:26: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:208:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mTANHdrReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:1431:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:1780:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:906:28: style: Redundant condition: The condition '*ptr != '\0'' is redundant since '*ptr == '-'' is sufficient. [redundantCondition] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:1009:28: style: Redundant condition: The condition '*ptr != '\0'' is redundant since '*ptr == '-'' is sufficient. [redundantCondition] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:1571:7: error: Resource leak: fdata [resourceLeak] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:358:13: error: Common realloc mistake: 'fields' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:390:13: error: Common realloc mistake: 'fields' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:220:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:215:49: note: Assuming allocation function fails Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:215:19: note: Assignment 'returnStruct=(struct mImgtblReturn*)malloc(sizeof(struct mImgtblReturn))', assigned value is 0 Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:220:4: note: Null pointer dereference Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:222:11: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:215:49: note: Assuming allocation function fails Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:215:19: note: Assignment 'returnStruct=(struct mImgtblReturn*)malloc(sizeof(struct mImgtblReturn))', assigned value is 0 Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:222:11: note: Null pointer dereference Montage-6.1/MontageLib/Subimage/montageSubimage.c:193:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/Subimage/montageSubimage.c:188:51: note: Assuming allocation function fails Montage-6.1/MontageLib/Subimage/montageSubimage.c:188:19: note: Assignment 'returnStruct=(struct mSubimageReturn*)malloc(sizeof(struct mSubimageReturn))', assigned value is 0 Montage-6.1/MontageLib/Subimage/montageSubimage.c:193:4: note: Null pointer dereference Montage-6.1/MontageLib/Subimage/montageSubimage.c:195:11: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/Subimage/montageSubimage.c:188:51: note: Assuming allocation function fails Montage-6.1/MontageLib/Subimage/montageSubimage.c:188:19: note: Assignment 'returnStruct=(struct mSubimageReturn*)malloc(sizeof(struct mSubimageReturn))', assigned value is 0 Montage-6.1/MontageLib/Subimage/montageSubimage.c:195:11: note: Null pointer dereference Montage-6.1/MontageLib/Subimage/montageSubimage.c:706:7: warning: Either the condition 'wcs==(struct WorldCoor*)NULL' is redundant or there is possible null pointer dereference: wcs. [nullPointerRedundantCheck] Montage-6.1/MontageLib/Subimage/montageSubimage.c:709:11: note: Assuming that condition 'wcs==(struct WorldCoor*)NULL' is not redundant Montage-6.1/MontageLib/Subimage/montageSubimage.c:706:7: note: Null pointer dereference Montage-6.1/MontageLib/Subimage/montageSubimage.c:667:22: style: Local variable 'wcs' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/Subimage/montageSubimage.c:84:26: note: Shadowed declaration Montage-6.1/MontageLib/Subimage/montageSubimage.c:667:22: note: Shadow variable Montage-6.1/MontageLib/Subimage/montageSubimage.c:162:13: style: Variable 'checkHdr' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:191:37: style: Parameter 'pathnamein' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:193:104: style: Parameter 'fieldListFile' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:204:16: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:204:24: style: Variable 'ptype' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:204:32: style: Variable 'pwidth' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:507:29: style: Parameter 'pathname' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:630:20: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:771:14: style: Variable 'checkWCS' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:1413:41: style: Parameter 'hdr_rec' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Imgtbl/montageImgtbl.c:1548:32: style: Parameter 'tblname' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Transpose/mTranspose.c:42:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Transpose/mTranspose.c:32:29: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Viewer/mViewer.c:65:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/mViewer.c:30:10: style: Variable 'rstat' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Viewer/mViewer.c:34:26: style: Variable 'returnStruct' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/SubCube/montageSubCube.c:384:65: style: Condition 'mSubCube_dataRange(infptr,&imin,&imax,&jmin,&jmax)>0' is always false [knownConditionTrueFalse] Montage-6.1/MontageLib/SubCube/montageSubCube.c:384:28: note: Calling function 'mSubCube_dataRange' returns 0 Montage-6.1/MontageLib/SubCube/montageSubCube.c:384:65: note: Condition 'mSubCube_dataRange(infptr,&imin,&imax,&jmin,&jmax)>0' is always false Montage-6.1/MontageLib/SubCube/montageSubCube.c:141:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/SubCube/montageSubCube.c:136:50: note: Assuming allocation function fails Montage-6.1/MontageLib/SubCube/montageSubCube.c:136:19: note: Assignment 'returnStruct=(struct mSubCubeReturn*)malloc(sizeof(struct mSubCubeReturn))', assigned value is 0 Montage-6.1/MontageLib/SubCube/montageSubCube.c:141:4: note: Null pointer dereference Montage-6.1/MontageLib/SubCube/montageSubCube.c:143:11: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/SubCube/montageSubCube.c:136:50: note: Assuming allocation function fails Montage-6.1/MontageLib/SubCube/montageSubCube.c:136:19: note: Assignment 'returnStruct=(struct mSubCubeReturn*)malloc(sizeof(struct mSubCubeReturn))', assigned value is 0 Montage-6.1/MontageLib/SubCube/montageSubCube.c:143:11: note: Null pointer dereference Montage-6.1/MontageLib/SubCube/montageSubCube.c:904:7: warning: Either the condition 'wcs==(struct WorldCoor*)NULL' is redundant or there is possible null pointer dereference: wcs. [nullPointerRedundantCheck] Montage-6.1/MontageLib/SubCube/montageSubCube.c:907:11: note: Assuming that condition 'wcs==(struct WorldCoor*)NULL' is not redundant Montage-6.1/MontageLib/SubCube/montageSubCube.c:904:7: note: Null pointer dereference Montage-6.1/MontageLib/SubCube/montageSubCube.c:833:22: style: Local variable 'wcs' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/SubCube/montageSubCube.c:33:26: note: Shadowed declaration Montage-6.1/MontageLib/SubCube/montageSubCube.c:833:22: note: Shadow variable Montage-6.1/MontageLib/SubCube/montageSubCube.c:98:87: style: Parameter 'd3constraint' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/SubCube/montageSubCube.c:99:39: style: Parameter 'd4constraint' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/SubCube/montageSubCube.c:119:14: style: Variable 'checkHdr' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Transpose/montageTranspose.c:143:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mTransposeReturn [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Transpose/montageTranspose.c:1236:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TSTRING [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Transpose/montageTranspose.c:1431:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:249:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FT_Err_Unknown_File_Format [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:1242:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FT_Err_Unknown_File_Format [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/mViewer_grid.c:154:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EQUB [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:908:7: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:904:27: note: Assuming allocation function fails Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:904:12: note: Assignment 'array=(char**)malloc(nyfine*sizeof(char*))', assigned value is 0 Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:908:7: note: Null pointer dereference Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:911:10: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:904:27: note: Assuming allocation function fails Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:904:12: note: Assignment 'array=(char**)malloc(nyfine*sizeof(char*))', assigned value is 0 Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:911:10: note: Null pointer dereference Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:913:7: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:904:27: note: Assuming allocation function fails Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:904:12: note: Assignment 'array=(char**)malloc(nyfine*sizeof(char*))', assigned value is 0 Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:913:7: note: Null pointer dereference Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:921:7: warning: If memory allocation fails, then there is a possible null pointer dereference: farray [nullPointerOutOfMemory] Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:917:30: note: Assuming allocation function fails Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:917:13: note: Assignment 'farray=(double**)malloc(nyorig*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:921:7: note: Null pointer dereference Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:924:10: warning: If memory allocation fails, then there is a possible null pointer dereference: farray [nullPointerOutOfMemory] Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:917:30: note: Assuming allocation function fails Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:917:13: note: Assignment 'farray=(double**)malloc(nyorig*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:924:10: note: Null pointer dereference Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:460:12: style: Variable 'xpix' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:448:12: note: xpix is assigned Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:460:12: note: xpix is overwritten Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:461:12: style: Variable 'ypix' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:449:12: note: ypix is assigned Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:461:12: note: ypix is overwritten Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:43:36: style: Parameter 'xcurve' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:43:52: style: Parameter 'ycurve' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:44:34: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:520:28: style: Parameter 'xcurve' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:520:44: style: Parameter 'ycurve' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Viewer/mViewer_graphics.c:1131:67: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:213:4: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:208:49: note: Assuming allocation function fails Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:208:19: note: Assignment 'returnStruct=(struct mTANHdrReturn*)malloc(sizeof(struct mTANHdrReturn))', assigned value is 0 Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:213:4: note: Null pointer dereference Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:215:11: warning: If memory allocation fails, then there is a possible null pointer dereference: returnStruct [nullPointerOutOfMemory] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:208:49: note: Assuming allocation function fails Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:208:19: note: Assignment 'returnStruct=(struct mTANHdrReturn*)malloc(sizeof(struct mTANHdrReturn))', assigned value is 0 Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:215:11: note: Null pointer dereference Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:258:7: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:253:26: note: Assuming allocation function fails Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:253:9: note: Assignment 'a=(double**)malloc((order+1)*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:258:7: note: Null pointer dereference Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:259:7: warning: If memory allocation fails, then there is a possible null pointer dereference: ap [nullPointerOutOfMemory] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:254:26: note: Assuming allocation function fails Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:254:9: note: Assignment 'ap=(double**)malloc((order+1)*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:259:7: note: Null pointer dereference Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:263:10: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:253:26: note: Assuming allocation function fails Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:253:9: note: Assignment 'a=(double**)malloc((order+1)*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:263:10: note: Null pointer dereference Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:264:10: warning: If memory allocation fails, then there is a possible null pointer dereference: ap [nullPointerOutOfMemory] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:254:26: note: Assuming allocation function fails Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:254:9: note: Assignment 'ap=(double**)malloc((order+1)*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:264:10: note: Null pointer dereference Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:273:7: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:268:26: note: Assuming allocation function fails Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:268:9: note: Assignment 'b=(double**)malloc((order+1)*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:273:7: note: Null pointer dereference Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:274:7: warning: If memory allocation fails, then there is a possible null pointer dereference: bp [nullPointerOutOfMemory] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:269:26: note: Assuming allocation function fails Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:269:9: note: Assignment 'bp=(double**)malloc((order+1)*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:274:7: note: Null pointer dereference Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:278:10: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:268:26: note: Assuming allocation function fails Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:268:9: note: Assignment 'b=(double**)malloc((order+1)*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:278:10: note: Null pointer dereference Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:279:10: warning: If memory allocation fails, then there is a possible null pointer dereference: bp [nullPointerOutOfMemory] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:269:26: note: Assuming allocation function fails Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:269:9: note: Assignment 'bp=(double**)malloc((order+1)*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:279:10: note: Null pointer dereference Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:304:7: warning: If memory allocation fails, then there is a possible null pointer dereference: vector [nullPointerOutOfMemory] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:299:30: note: Assuming allocation function fails Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:299:13: note: Assignment 'vector=(double**)malloc((2*n+1)*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:304:7: note: Null pointer dereference Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:305:7: warning: If memory allocation fails, then there is a possible null pointer dereference: matrix [nullPointerOutOfMemory] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:300:30: note: Assuming allocation function fails Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:300:13: note: Assignment 'matrix=(double**)malloc((2*n+1)*sizeof(double*))', assigned value is 0 Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:305:7: note: Null pointer dereference Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:168:53: style: Parameter 'newtmpl' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:1210:29: style: Parameter 'template' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:1390:32: style: Parameter 'template' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:1400:13: style: Variable 'checkWCS' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:1486:40: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/TANHdr/montageTANHdr.c:1839:31: style: Parameter 'header' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/WWT/mHdrWWT.c:35:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/mViewer_grid.c:1144:14: style: Redundant assignment of 'lat' to itself. [selfAssignment] Montage-6.1/MontageLib/Viewer/mViewer_grid.c:1050:31: style:inconclusive: Function 'mViewer_great_circle' argument 5 names different: declaration 'csysgrid' definition 'csys'. [funcArgNamesDifferent] Montage-6.1/MontageLib/Viewer/mViewer_grid.c:36:35: note: Function 'mViewer_great_circle' argument 5 names different: declaration 'csysgrid' definition 'csys'. Montage-6.1/MontageLib/Viewer/mViewer_grid.c:1050:31: note: Function 'mViewer_great_circle' argument 5 names different: declaration 'csysgrid' definition 'csys'. Montage-6.1/MontageLib/Viewer/mViewer_grid.c:1050:44: style:inconclusive: Function 'mViewer_great_circle' argument 6 names different: declaration 'epochgrid' definition 'epoch'. [funcArgNamesDifferent] Montage-6.1/MontageLib/Viewer/mViewer_grid.c:36:52: note: Function 'mViewer_great_circle' argument 6 names different: declaration 'epochgrid' definition 'epoch'. Montage-6.1/MontageLib/Viewer/mViewer_grid.c:1050:44: note: Function 'mViewer_great_circle' argument 6 names different: declaration 'epochgrid' definition 'epoch'. Montage-6.1/MontageLib/Viewer/mViewer_grid.c:1184:28: style:inconclusive: Function 'mViewer_symbol' argument 7 names different: declaration 'clon' definition 'inlon'. [funcArgNamesDifferent] Montage-6.1/MontageLib/Viewer/mViewer_grid.c:43:38: note: Function 'mViewer_symbol' argument 7 names different: declaration 'clon' definition 'inlon'. Montage-6.1/MontageLib/Viewer/mViewer_grid.c:1184:28: note: Function 'mViewer_symbol' argument 7 names different: declaration 'clon' definition 'inlon'. Montage-6.1/MontageLib/Viewer/mViewer_grid.c:1184:43: style:inconclusive: Function 'mViewer_symbol' argument 8 names different: declaration 'clat' definition 'inlat'. [funcArgNamesDifferent] Montage-6.1/MontageLib/Viewer/mViewer_grid.c:43:52: note: Function 'mViewer_symbol' argument 8 names different: declaration 'clat' definition 'inlat'. Montage-6.1/MontageLib/Viewer/mViewer_grid.c:1184:43: note: Function 'mViewer_symbol' argument 8 names different: declaration 'clat' definition 'inlat'. Montage-6.1/MontageLib/Viewer/mViewer_grid.c:1185:28: style:inconclusive: Function 'mViewer_symbol' argument 10 names different: declaration 'symsize' definition 'radius'. [funcArgNamesDifferent] Montage-6.1/MontageLib/Viewer/mViewer_grid.c:44:38: note: Function 'mViewer_symbol' argument 10 names different: declaration 'symsize' definition 'radius'. Montage-6.1/MontageLib/Viewer/mViewer_grid.c:1185:28: note: Function 'mViewer_symbol' argument 10 names different: declaration 'symsize' definition 'radius'. Montage-6.1/MontageLib/Viewer/mViewer_grid.c:899:7: style: Variable 'ptr' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Viewer/mViewer_grid.c:1002:7: style: Variable 'ptr' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Viewer/mViewer_grid.c:1225:8: style: Variable 'lon' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/Viewer/mViewer_grid.c:1226:8: style: Variable 'lat' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/WWT/mHdrWWT.c:135:20: style: Parameter 'id' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/WWT/mHdrWWTExec.c:49:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/WWT/mHdrWWTExec.c:163:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/WWT/mHdrWWTExec.c:144:26: style:inconclusive: Function 'createSubHdrs' argument 1 names different: declaration 'hdrStr' definition 'instr'. [funcArgNamesDifferent] Montage-6.1/MontageLib/WWT/mHdrWWTExec.c:17:26: note: Function 'createSubHdrs' argument 1 names different: declaration 'hdrStr' definition 'instr'. Montage-6.1/MontageLib/WWT/mHdrWWTExec.c:144:26: note: Function 'createSubHdrs' argument 1 names different: declaration 'hdrStr' definition 'instr'. Montage-6.1/MontageLib/WWT/mHdrWWTExec.c:144:26: style: Parameter 'instr' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/WWT/mPNGWWTExec.c:53:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/WWT/mPNGWWTExec.c:372:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/WWT/mProjWWTExec.c:45:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/WWT/mProjWWTExec.c:196:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/WWT/mProjWWTExec.c:176:27: style:inconclusive: Function 'createSubTiles' argument 1 names different: declaration 'tileStr' definition 'instr'. [funcArgNamesDifferent] Montage-6.1/MontageLib/WWT/mProjWWTExec.c:23:27: note: Function 'createSubTiles' argument 1 names different: declaration 'tileStr' definition 'instr'. Montage-6.1/MontageLib/WWT/mProjWWTExec.c:176:27: note: Function 'createSubTiles' argument 1 names different: declaration 'tileStr' definition 'instr'. Montage-6.1/MontageLib/WWT/mProjWWTExec.c:176:27: style: Parameter 'instr' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/WWT/mPNGWWTExec.c:68:12: style: Condition 'argc>1' is always true [knownConditionTrueFalse] Montage-6.1/MontageLib/WWT/mPNGWWTExec.c:59:12: note: Assuming that condition 'argc<7' is not redundant Montage-6.1/MontageLib/WWT/mPNGWWTExec.c:68:12: note: Condition 'argc>1' is always true Montage-6.1/MontageLib/WWT/mPNGWWTExec.c:340:27: style:inconclusive: Function 'createSubTiles' argument 1 names different: declaration 'tileStr' definition 'instr'. [funcArgNamesDifferent] Montage-6.1/MontageLib/WWT/mPNGWWTExec.c:30:27: note: Function 'createSubTiles' argument 1 names different: declaration 'tileStr' definition 'instr'. Montage-6.1/MontageLib/WWT/mPNGWWTExec.c:340:27: note: Function 'createSubTiles' argument 1 names different: declaration 'tileStr' definition 'instr'. Montage-6.1/MontageLib/WWT/mPNGWWTExec.c:340:27: style: Parameter 'instr' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/mJupyter.c:30:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/mLibDoc.c:24:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/mLibDoc.c:71:28: warning: If resource allocation fails, then there is a possible null pointer dereference: fin [nullPointerOutOfResources] Montage-6.1/MontageLib/mLibDoc.c:57:15: note: Assuming allocation function fails Montage-6.1/MontageLib/mLibDoc.c:57:15: note: Assignment 'fin=fopen(fileIn,"r")', assigned value is 0 Montage-6.1/MontageLib/mLibDoc.c:59:12: note: Assuming condition is false Montage-6.1/MontageLib/mLibDoc.c:71:28: note: Null pointer dereference Montage-6.1/MontageLib/mLibDoc.c:112:12: warning:inconclusive: Either the condition 'fout==(FILE*)NULL' is redundant or there is possible null pointer dereference: fout. [nullPointerRedundantCheck] Montage-6.1/MontageLib/mLibDoc.c:123:12: note: Assuming that condition 'fout==(FILE*)NULL' is not redundant Montage-6.1/MontageLib/mLibDoc.c:112:12: note: Null pointer dereference Montage-6.1/MontageLib/mLibDoc.c:113:12: warning:inconclusive: Either the condition 'fout==(FILE*)NULL' is redundant or there is possible null pointer dereference: fout. [nullPointerRedundantCheck] Montage-6.1/MontageLib/mLibDoc.c:123:12: note: Assuming that condition 'fout==(FILE*)NULL' is not redundant Montage-6.1/MontageLib/mLibDoc.c:113:12: note: Null pointer dereference Montage-6.1/MontageLib/mLibDoc.c:114:12: warning:inconclusive: Either the condition 'fout==(FILE*)NULL' is redundant or there is possible null pointer dereference: fout. [nullPointerRedundantCheck] Montage-6.1/MontageLib/mLibDoc.c:123:12: note: Assuming that condition 'fout==(FILE*)NULL' is not redundant Montage-6.1/MontageLib/mLibDoc.c:114:12: note: Null pointer dereference Montage-6.1/MontageLib/mLibDoc.c:135:28: warning: If resource allocation fails, then there is a possible null pointer dereference: fin [nullPointerOutOfResources] Montage-6.1/MontageLib/mLibDoc.c:121:15: note: Assuming allocation function fails Montage-6.1/MontageLib/mLibDoc.c:121:15: note: Assignment 'fin=fopen(fileIn,"r")', assigned value is 0 Montage-6.1/MontageLib/mLibDoc.c:123:12: note: Assuming condition is false Montage-6.1/MontageLib/mLibDoc.c:135:28: note: Null pointer dereference Montage-6.1/MontageLib/mJupyter.c:211:18: warning:inconclusive: Either the condition 'fout==(FILE*)NULL' is redundant or there is possible null pointer dereference: fout. [nullPointerRedundantCheck] Montage-6.1/MontageLib/mJupyter.c:222:18: note: Assuming that condition 'fout==(FILE*)NULL' is not redundant Montage-6.1/MontageLib/mJupyter.c:211:18: note: Null pointer dereference Montage-6.1/MontageLib/mJupyter.c:212:18: warning:inconclusive: Either the condition 'fout==(FILE*)NULL' is redundant or there is possible null pointer dereference: fout. [nullPointerRedundantCheck] Montage-6.1/MontageLib/mJupyter.c:222:18: note: Assuming that condition 'fout==(FILE*)NULL' is not redundant Montage-6.1/MontageLib/mJupyter.c:212:18: note: Null pointer dereference Montage-6.1/MontageLib/mJupyter.c:213:18: warning:inconclusive: Either the condition 'fout==(FILE*)NULL' is redundant or there is possible null pointer dereference: fout. [nullPointerRedundantCheck] Montage-6.1/MontageLib/mJupyter.c:222:18: note: Assuming that condition 'fout==(FILE*)NULL' is not redundant Montage-6.1/MontageLib/mJupyter.c:213:18: note: Null pointer dereference Montage-6.1/MontageLib/mJupyter.c:234:34: warning: If resource allocation fails, then there is a possible null pointer dereference: fcode [nullPointerOutOfResources] Montage-6.1/MontageLib/mJupyter.c:220:23: note: Assuming allocation function fails Montage-6.1/MontageLib/mJupyter.c:220:23: note: Assignment 'fcode=fopen(fileIn,"r")', assigned value is 0 Montage-6.1/MontageLib/mJupyter.c:222:18: note: Assuming condition is false Montage-6.1/MontageLib/mJupyter.c:234:34: note: Null pointer dereference Montage-6.1/MontageLib/mJupyter.c:20:17: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/test/example.c:26:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable montage_msgstr [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/util/checkFile.c:23:29: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/util/checkHdr.c:205:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/util/checkHdr.c:568:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/util/checkHdr.c:923:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Transpose/montageTranspose.c:76:91: style: Parameter 'inorder' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Transpose/montageTranspose.c:1332:37: style: Parameter 'keyname' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Transpose/montageTranspose.c:1332:52: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Transpose/montageTranspose.c:1415:34: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Transpose/montageTranspose.c:1446:36: style: Parameter 'naxis' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/util/checkWCS.c:40:42: style: Parameter 'wcs' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/util/debugCheck.c:23:30: style: Parameter 'debugStr' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/util/filePath.c:24:30: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] Montage-6.1/ancillary/HPXcvt.c:149:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Montage-6.1/ancillary/HPXcvt.c:214:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/ancillary/HPXcvt.c:471:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLOAT_IMG [valueFlowBailoutIncompleteVar] Montage-6.1/ancillary/HPXcvt.c:773:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TFLOAT [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:293:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:2486:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/ancillary/HPXcvt.c:605:49: style:inconclusive: Function 'NESTidx' argument 4 names different: declaration 'row' definition 'jmap'. [funcArgNamesDifferent] Montage-6.1/ancillary/HPXcvt.c:90:49: note: Function 'NESTidx' argument 4 names different: declaration 'row' definition 'jmap'. Montage-6.1/ancillary/HPXcvt.c:605:49: note: Function 'NESTidx' argument 4 names different: declaration 'row' definition 'jmap'. Montage-6.1/ancillary/HPXcvt.c:657:49: style:inconclusive: Function 'RINGidx' argument 4 names different: declaration 'row' definition 'jmap'. [funcArgNamesDifferent] Montage-6.1/ancillary/HPXcvt.c:91:49: note: Function 'RINGidx' argument 4 names different: declaration 'row' definition 'jmap'. Montage-6.1/ancillary/HPXcvt.c:657:49: note: Function 'RINGidx' argument 4 names different: declaration 'row' definition 'jmap'. Montage-6.1/ancillary/HPXcvt.c:456:26: style: Variable 'healp' can be declared as pointer to const [constVariablePointer] Montage-6.1/ancillary/HPXcvt.c:751:44: style: Parameter 'hpxdat' can be declared as pointer to const [constParameterPointer] Montage-6.1/ancillary/HPXcvt.c:754:34: style: Variable 'ctype1' can be declared as pointer to const [constVariablePointer] Montage-6.1/ancillary/HPXcvt.c:754:43: style: Variable 'ctype2' can be declared as pointer to const [constVariablePointer] Montage-6.1/ancillary/HPXcvt.c:754:52: style: Variable 'descr1' can be declared as pointer to const [constVariablePointer] Montage-6.1/ancillary/HPXcvt.c:754:61: style: Variable 'descr2' can be declared as pointer to const [constVariablePointer] Montage-6.1/ancillary/HPXcvt.c:754:70: style: Variable 'pcode' can be declared as pointer to const [constVariablePointer] Montage-6.1/ancillary/HPXcvt.c:468:12: 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] Montage-6.1/ancillary/HPXcvt.c:192:15: style: Variable 'status' is assigned a value that is never used. [unreadVariable] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:355:33: warning: Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead. [prohibitedmktempCalled] Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:83:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:154:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:1468:17: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:1409:17: note: First condition Montage-6.1/grid/Globus/ExecTG/mExecTG.c:1468:17: note: Second condition Montage-6.1/grid/Globus/ExecTG/mExecTG.c:1634:17: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:1468:17: note: First condition Montage-6.1/grid/Globus/ExecTG/mExecTG.c:1634:17: note: Second condition Montage-6.1/grid/Globus/ExecTG/mExecTG.c:1730:17: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:1686:17: note: First condition Montage-6.1/grid/Globus/ExecTG/mExecTG.c:1730:17: note: Second condition Montage-6.1/grid/Globus/ExecTG/mExecTG.c:571:6: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:1058:10: style: Variable 'ncols' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:881:13: note: ncols is assigned Montage-6.1/grid/Globus/ExecTG/mExecTG.c:1058:10: note: ncols is overwritten Montage-6.1/grid/Globus/ExecTG/mExecTG.c:2010:13: style: Variable 'ncols' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:1058:10: note: ncols is assigned Montage-6.1/grid/Globus/ExecTG/mExecTG.c:2010:13: note: ncols is overwritten Montage-6.1/grid/Globus/ExecTG/mExecTG.c:2010:13: style: Variable 'ncols' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:1688:13: note: ncols is assigned Montage-6.1/grid/Globus/ExecTG/mExecTG.c:2010:13: note: ncols is overwritten Montage-6.1/grid/Globus/ExecTG/mExecTG.c:144:28: style: Variable 'wcsin' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:154:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:2423:20: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:2457:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:2484:21: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:603:10: error: Uninitialized variable: errno [uninitvar] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:2461:22: warning: Uninitialized variable: header [uninitvar] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:658:36: note: Assuming condition is false Montage-6.1/grid/Globus/ExecTG/mExecTG.c:690:14: note: Calling function 'stradd', 1st argument 'fheader' value is Montage-6.1/grid/Globus/ExecTG/mExecTG.c:2461:22: note: Uninitialized variable: header Montage-6.1/grid/Globus/ExecTG/mExecTG.c:2010:13: style: Variable 'ncols' is assigned a value that is never used. [unreadVariable] Montage-6.1/grid/Globus/ExecTG/mExecTG.c:2062:13: style: Variable 'ncols' is assigned a value that is never used. [unreadVariable] Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:151:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:167:4: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:201:7: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:195:34: note: Assuming allocation function fails Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:195:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:201:7: note: Null pointer dereference Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:203:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:195:34: note: Assuming allocation function fails Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:195:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:203:11: note: Null pointer dereference Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:222:4: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:195:34: note: Assuming allocation function fails Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:195:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:222:4: note: Null pointer dereference Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:46:11: style: Variable 'directory' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:47:11: style: Variable 'msg' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:144:23: style: Parameter 'hostname' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:147:24: style: Variable 'host' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Globus/NotifyTG/mNotifyTG.c:187:24: style: Parameter 's' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/hashtable.c:38:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HT_table_t [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/hashtable.c:129:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/hashtable.c:260:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/hashtable.c:326:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/mConcatFit.c:105:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fstatus [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/hashtable.c:414:7: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] Montage-6.1/grid/Pegasus/hashtable.c:377:6: style: Condition 'temp' is always true [knownConditionTrueFalse] Montage-6.1/grid/Pegasus/hashtable.c:127:7: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/grid/Pegasus/hashtable.c:258:7: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/grid/Pegasus/hashtable.c:49:7: error: Memory leak: new_table [memleak] Montage-6.1/grid/Pegasus/hashtable.c:54:7: error: Memory leak: new_table [memleak] Montage-6.1/grid/Pegasus/hashtable.c:54:7: error: Memory leak: new_table.tail [memleak] Montage-6.1/grid/Pegasus/hashtable.c:81:34: style: Parameter 'hashtable' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/hashtable.c:81:51: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/hashtable.c:117:58: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/hashtable.c:166:61: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/hashtable.c:300:34: style: Parameter 'hashtable' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/hashtable.c:303:15: style: Variable 'list' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAGFiles.c:113:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/mDAGFiles.c:169:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/mDAGFiles.c:166:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] Montage-6.1/grid/Pegasus/mDAGFiles.c:182:4: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] Montage-6.1/grid/Pegasus/mDAGFiles.c:216:7: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/grid/Pegasus/mDAGFiles.c:210:34: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGFiles.c:210:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGFiles.c:216:7: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGFiles.c:218:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/grid/Pegasus/mDAGFiles.c:210:34: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGFiles.c:210:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGFiles.c:218:11: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGFiles.c:237:4: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/grid/Pegasus/mDAGFiles.c:210:34: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGFiles.c:210:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGFiles.c:237:4: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGFiles.c:51:11: style: Variable 'surveystr' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAGFiles.c:52:11: style: Variable 'locstr' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAGFiles.c:53:11: style: Variable 'widthstr' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAGFiles.c:54:11: style: Variable 'heightstr' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAGFiles.c:55:11: style: Variable 'suffix' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAGFiles.c:56:11: style: Variable 'band' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAGFiles.c:57:11: style: Variable 'contact' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAGFiles.c:159:23: style: Parameter 'hostname' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/mDAGFiles.c:162:24: style: Variable 'host' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAGFiles.c:202:24: style: Parameter 's' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/mDAG.c:348:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EQUJ [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/mDAG.c:2157:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/mDAG.c:2376:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/mDAG.c:2472:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1528:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1747:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1843:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/mDAG.c:195:14: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] Montage-6.1/grid/Pegasus/mDAG.c:2469:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] Montage-6.1/grid/Pegasus/mDAG.c:2485:4: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] Montage-6.1/grid/Pegasus/mDAG.c:731:16: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/grid/Pegasus/mDAG.c:670:16: note: First condition Montage-6.1/grid/Pegasus/mDAG.c:731:16: note: Second condition Montage-6.1/grid/Pegasus/mDAG.c:2519:7: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/grid/Pegasus/mDAG.c:2513:34: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAG.c:2513:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/grid/Pegasus/mDAG.c:2519:7: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAG.c:2521:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/grid/Pegasus/mDAG.c:2513:34: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAG.c:2513:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/grid/Pegasus/mDAG.c:2521:11: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAG.c:2540:4: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/grid/Pegasus/mDAG.c:2513:34: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAG.c:2513:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/grid/Pegasus/mDAG.c:2540:4: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAG.c:896:9: style: Variable 'ncol' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Pegasus/mDAG.c:857:9: note: ncol is assigned Montage-6.1/grid/Pegasus/mDAG.c:896:9: note: ncol is overwritten Montage-6.1/grid/Pegasus/mDAG.c:926:9: style: Variable 'ncol' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Pegasus/mDAG.c:896:9: note: ncol is assigned Montage-6.1/grid/Pegasus/mDAG.c:926:9: note: ncol is overwritten Montage-6.1/grid/Pegasus/mDAG.c:965:11: style: Variable 'ncol' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Pegasus/mDAG.c:926:9: note: ncol is assigned Montage-6.1/grid/Pegasus/mDAG.c:965:11: note: ncol is overwritten Montage-6.1/grid/Pegasus/mDAG.c:1031:9: style: Variable 'ncol' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Pegasus/mDAG.c:965:11: note: ncol is assigned Montage-6.1/grid/Pegasus/mDAG.c:1031:9: note: ncol is overwritten Montage-6.1/grid/Pegasus/mDAG.c:1160:11: style: Variable 'ncol' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Pegasus/mDAG.c:1031:9: note: ncol is assigned Montage-6.1/grid/Pegasus/mDAG.c:1160:11: note: ncol is overwritten Montage-6.1/grid/Pegasus/mDAG.c:1229:14: style: Variable 'ncol' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Pegasus/mDAG.c:1160:11: note: ncol is assigned Montage-6.1/grid/Pegasus/mDAG.c:1229:14: note: ncol is overwritten Montage-6.1/grid/Pegasus/mDAG.c:1341:11: style: Variable 'ncol' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Pegasus/mDAG.c:1229:14: note: ncol is assigned Montage-6.1/grid/Pegasus/mDAG.c:1341:11: note: ncol is overwritten Montage-6.1/grid/Pegasus/mDAG.c:1413:11: style: Variable 'ncol' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Pegasus/mDAG.c:1341:11: note: ncol is assigned Montage-6.1/grid/Pegasus/mDAG.c:1413:11: note: ncol is overwritten Montage-6.1/grid/Pegasus/mDAG.c:125:12: style: Variable 'fileid' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAG.c:126:12: style: Variable 'parentid' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAG.c:170:10: style: Variable 'path' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAG.c:180:15: style: Variable 'loctime' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAG.c:2144:24: style: Parameter 'template' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/mDAG.c:2261:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/mDAG.c:2288:22: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/mDAG.c:2312:11: style: Variable 'objStr' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAG.c:2312:20: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAG.c:2312:26: style: Variable 'endPtr' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAG.c:2462:23: style: Parameter 'hostname' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/mDAG.c:2465:24: style: Variable 'host' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAG.c:2505:24: style: Parameter 's' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/mDAG.c:95:18: style: Unused variable: k [unusedVariable] Montage-6.1/grid/Pegasus/mDAG.c:96:21: style: Unused variable: itmp [unusedVariable] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:170:14: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1840:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1856:4: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:521:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fdag [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assignment 'fdag=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:521:12: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:522:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fdag [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assignment 'fdag=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:522:12: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:523:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fdag [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assignment 'fdag=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:523:12: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:524:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fdag [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assignment 'fdag=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:524:12: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:525:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fdag [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assignment 'fdag=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:525:12: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:526:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fdag [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assignment 'fdag=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:526:12: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:527:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fdag [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assignment 'fdag=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:527:12: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:531:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fdag [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assignment 'fdag=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:531:12: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:532:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fdag [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assignment 'fdag=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:532:12: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:533:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fdag [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assignment 'fdag=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:533:12: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:534:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fdag [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assignment 'fdag=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:534:12: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:537:15: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fdag [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assignment 'fdag=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:537:15: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:540:15: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fdag [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assignment 'fdag=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:540:15: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:541:15: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fdag [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assignment 'fdag=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:541:15: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:544:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fdag [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:513:16: note: Assignment 'fdag=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:544:12: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:676:12: warning: If resource allocation fails, then there is a possible null pointer dereference: ffit [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:671:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:671:16: note: Assignment 'ffit=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:676:12: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:677:12: warning: If resource allocation fails, then there is a possible null pointer dereference: ffit [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:671:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:671:16: note: Assignment 'ffit=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:677:12: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:699:15: warning: If resource allocation fails, then there is a possible null pointer dereference: ffit [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:671:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:671:16: note: Assignment 'ffit=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:683:16: note: Assuming condition is false Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:699:15: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:705:11: warning: If resource allocation fails, then there is a possible null pointer dereference: ffit [nullPointerOutOfResources] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:671:16: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:671:16: note: Assignment 'ffit=fopen(cmd,"w+")', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:683:16: note: Assuming condition is false Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:705:11: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1890:7: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1884:34: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1884:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1890:7: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1892:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1884:34: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1884:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1892:11: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1911:4: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1884:34: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1884:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1911:4: note: Null pointer dereference Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:592:9: style: Variable 'ncol' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:553:9: note: ncol is assigned Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:592:9: note: ncol is overwritten Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:622:9: style: Variable 'ncol' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:592:9: note: ncol is assigned Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:622:9: note: ncol is overwritten Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:661:11: style: Variable 'ncol' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:622:9: note: ncol is assigned Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:661:11: note: ncol is overwritten Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:727:9: style: Variable 'ncol' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:661:11: note: ncol is assigned Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:727:9: note: ncol is overwritten Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:811:11: style: Variable 'ncol' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:727:9: note: ncol is assigned Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:811:11: note: ncol is overwritten Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:879:14: style: Variable 'ncol' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:811:11: note: ncol is assigned Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:879:14: note: ncol is overwritten Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:991:11: style: Variable 'ncol' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:879:14: note: ncol is assigned Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:991:11: note: ncol is overwritten Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1063:11: style: Variable 'ncol' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:991:11: note: ncol is assigned Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1063:11: note: ncol is overwritten Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1161:9: style: Variable 'ncol' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1063:11: note: ncol is assigned Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1161:9: note: ncol is overwritten Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1230:9: style: Variable 'ncol' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1161:9: note: ncol is assigned Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1230:9: note: ncol is overwritten Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:104:12: style: Variable 'fileid' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:105:12: style: Variable 'parentid' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:145:10: style: Variable 'path' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:155:15: style: Variable 'loctime' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1515:24: style: Parameter 'template' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1632:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1659:22: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1683:11: style: Variable 'objStr' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1683:20: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1683:26: style: Variable 'endPtr' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1833:23: style: Parameter 'hostname' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1836:24: style: Variable 'host' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:1876:24: style: Parameter 's' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:73:18: style: Unused variable: k [unusedVariable] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:74:21: style: Unused variable: itmp [unusedVariable] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:76:12: style: Unused variable: naxis1s [unusedVariable] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:76:21: style: Unused variable: naxis2s [unusedVariable] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:120:12: style: Unused variable: x [unusedVariable] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:120:15: style: Unused variable: y [unusedVariable] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:120:18: style: Unused variable: z [unusedVariable] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:121:12: style: Unused variable: xc [unusedVariable] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:121:16: style: Unused variable: yc [unusedVariable] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:121:20: style: Unused variable: zc [unusedVariable] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:122:12: style: Unused variable: xpos [unusedVariable] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:122:18: style: Unused variable: ypos [unusedVariable] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:123:12: style: Unused variable: dist [unusedVariable] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:123:18: style: Unused variable: maxRadius [unusedVariable] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:124:12: style: Unused variable: lonc [unusedVariable] Montage-6.1/grid/Pegasus/mDAGGalacticPlane.c:124:18: style: Unused variable: latc [unusedVariable] Montage-6.1/grid/Pegasus/mDiffFit.c:96:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fstatus [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/mDiffFit.c:202:11: error: Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed] Montage-6.1/grid/Pegasus/mDiffFit.c:83:10: style: Variable 'path' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mDAGTbls.c:168:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fstatus [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/mDAGTbls.c:1021:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/mDAGTbls.c:1099:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fstatus [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/mGridExec.c:68:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/mGridExec.c:355:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/mGridExec.c:352:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] Montage-6.1/grid/Pegasus/mGridExec.c:368:4: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] Montage-6.1/grid/Pegasus/mGridExec.c:402:7: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/grid/Pegasus/mGridExec.c:396:34: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mGridExec.c:396:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/grid/Pegasus/mGridExec.c:402:7: note: Null pointer dereference Montage-6.1/grid/Pegasus/mGridExec.c:404:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/grid/Pegasus/mGridExec.c:396:34: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mGridExec.c:396:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/grid/Pegasus/mGridExec.c:404:11: note: Null pointer dereference Montage-6.1/grid/Pegasus/mGridExec.c:423:4: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/grid/Pegasus/mGridExec.c:396:34: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mGridExec.c:396:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/grid/Pegasus/mGridExec.c:423:4: note: Null pointer dereference Montage-6.1/grid/Pegasus/mGridExec.c:52:29: style: Variable 'u4' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mGridExec.c:345:23: style: Parameter 'hostname' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/mGridExec.c:348:24: style: Variable 'host' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mGridExec.c:388:24: style: Parameter 's' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/mGridExec.c:114:11: style: Variable 'urlPtr' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/util/checkHdr.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] Montage-6.1/MontageLib/util/checkHdr.c:478:23: style: Redundant condition: The condition '*ptr1 != '\0'' is redundant since '*ptr1 == '-'' is sufficient. [redundantCondition] Montage-6.1/MontageLib/util/checkHdr.c:483:23: style: Redundant condition: The condition '*ptr2 != '\0'' is redundant since '*ptr2 == '-'' is sufficient. [redundantCondition] Montage-6.1/MontageLib/util/checkHdr.c:235:10: error: Common realloc mistake: 'mHeader' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/util/checkHdr.c:364:13: error: Common realloc mistake: 'mHeader' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/util/checkHdr.c:203:11: warning: If memory allocation fails, then there is a possible null pointer dereference: mHeader [nullPointerOutOfMemory] Montage-6.1/MontageLib/util/checkHdr.c:168:20: note: Assuming allocation function fails Montage-6.1/MontageLib/util/checkHdr.c:168:20: note: Assignment 'mHeader=malloc(80000)', assigned value is 0 Montage-6.1/MontageLib/util/checkHdr.c:203:11: note: Null pointer dereference Montage-6.1/MontageLib/util/checkHdr.c:160:14: style: Variable 'ptr1' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/util/checkHdr.c:161:14: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/util/checkHdr.c:559:29: style: Parameter 'keyword' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/util/checkHdr.c:885:40: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/util/checkHdr.c:910:32: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/util/checkHdr.c:683:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/util/checkHdr.c:696:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/util/checkHdr.c:709:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/util/checkHdr.c:722:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/util/checkHdr.c:735:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/util/checkHdr.c:748:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/util/checkHdr.c:759:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/util/checkHdr.c:772:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/util/checkHdr.c:785:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/util/checkHdr.c:798:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/grid/Pegasus/mNotify.c:87:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/util/checkHdr.c:811:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/grid/Pegasus/mNotify.c:161:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/util/checkHdr.c:822:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/util/checkHdr.c:833:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/util/checkHdr.c:844:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/MontageLib/util/checkHdr.c:855:12: style: Variable 'dval' is assigned a value that is never used. [unreadVariable] Montage-6.1/grid/Pegasus/mPresentation.c:177:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/mNotify.c:158:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] Montage-6.1/grid/Pegasus/mNotify.c:174:4: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] Montage-6.1/grid/Pegasus/mNotify.c:208:7: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/grid/Pegasus/mNotify.c:202:34: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mNotify.c:202:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/grid/Pegasus/mNotify.c:208:7: note: Null pointer dereference Montage-6.1/grid/Pegasus/mNotify.c:210:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/grid/Pegasus/mNotify.c:202:34: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mNotify.c:202:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/grid/Pegasus/mNotify.c:210:11: note: Null pointer dereference Montage-6.1/grid/Pegasus/mNotify.c:229:4: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/grid/Pegasus/mNotify.c:202:34: note: Assuming allocation function fails Montage-6.1/grid/Pegasus/mNotify.c:202:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/grid/Pegasus/mNotify.c:229:4: note: Null pointer dereference Montage-6.1/grid/Pegasus/mNotify.c:48:11: style: Variable 'jobid' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mNotify.c:49:11: style: Variable 'userid' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mNotify.c:50:11: style: Variable 'dataurl' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mNotify.c:151:23: style: Parameter 'hostname' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/mNotify.c:154:24: style: Variable 'host' can be declared as pointer to const [constVariablePointer] Montage-6.1/grid/Pegasus/mNotify.c:194:24: style: Parameter 's' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/nDiffFit.c:89:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fstatus [valueFlowBailoutIncompleteVar] Montage-6.1/grid/Pegasus/nDiffFit.c:76:10: style: Variable 'path' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/boundaries/test/gnomonic.c:15:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/boundaries/test/gnomonic.c:42:1: portability: Omitted return type of function 'bndTANsetup' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/boundaries/test/gnomonic.c:89:1: portability: Omitted return type of function 'bndTANproj' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/boundaries/test/gnomonic.c:156:1: portability: Omitted return type of function 'bndTANdeproj' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/boundaries/test/gnomonic.c:21:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bndDTR [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/test/gnomonic.c:49:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bndDTR [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/test/gnomonic.c:104:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bndDTR [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/test/gnomonic.c:160:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bndDTR [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/test/gnomonic.c:272:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bndDebug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/boundaries.c:60:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bndInfo [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/boundaries.c:96:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bndInfo [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/boundaries.c:132:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bndInfo [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/boundaries.c:155:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bndSkyLocation [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/boundaries.c:299:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/boundaries.c:439:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/boundaries.c:543:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable delete [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/boundaries.c:578:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bndStackCell [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/boundaries.c:664:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/boundaries.c:1081:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/boundaries.c:1469:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/boundaries.c:1498:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vnum [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/boundaries.c:1587:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lon [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/boundaries.c:1613:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lon [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/boundaries.c:1696:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/test/gnomonic.c:206:36: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/test/gnomonic.c:207:29: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/test/gnomonic.c:225:38: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/test/gnomonic.c:226:31: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/test/gnomonic.c:244:38: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/test/gnomonic.c:245:31: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/test/gnomonic.c:313:37: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/test/gnomonic.c:336:37: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/test/gnomonic.c:337:37: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/test/gnomonic.c:149:8: style: Variable 'phi' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/boundaries/test/gnomonic.c:247:8: style: Unused variable: i [unusedVariable] Montage-6.1/lib/src/boundaries/test/hulltest.c:10:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/boundaries/test/hulltest.c:33:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/test/hulltest.c:27:7: style: Condition 'box' is always false [knownConditionTrueFalse] Montage-6.1/lib/src/boundaries/test/hulltest.c:15:26: note: Assignment 'box=(struct bndInfo*)NULL', assigned value is 0 Montage-6.1/lib/src/boundaries/test/hulltest.c:21:12: note: Assuming condition is false Montage-6.1/lib/src/boundaries/test/hulltest.c:27:7: note: Condition 'box' is always false Montage-6.1/lib/src/boundaries/test/nsboxtest.c:10:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/boundaries/test/nsboxtest.c:37:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/test/nsboxtest.c:31:7: style: Condition 'box' is always false [knownConditionTrueFalse] Montage-6.1/lib/src/boundaries/test/nsboxtest.c:15:26: note: Assignment 'box=(struct bndInfo*)NULL', assigned value is 0 Montage-6.1/lib/src/boundaries/test/nsboxtest.c:21:12: note: Assuming condition is false Montage-6.1/lib/src/boundaries/test/nsboxtest.c:31:7: note: Condition 'box' is always false Montage-6.1/grid/Pegasus/mDAGTbls.c:281:57: style: Condition 'icd12>=0' is always true [knownConditionTrueFalse] Montage-6.1/grid/Pegasus/mDAGTbls.c:281:27: note: Assuming that condition 'icd12>=0' is not redundant Montage-6.1/grid/Pegasus/mDAGTbls.c:281:57: note: Condition 'icd12>=0' is always true Montage-6.1/grid/Pegasus/mDAGTbls.c:281:48: style: Same expression 'icd12>=0' found multiple times in chain of '&&' operators. [duplicateExpression] Montage-6.1/grid/Pegasus/mDAGTbls.c:981:24: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/mDAGTbls.c:1097:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/grid/Pegasus/mDAGTbls.c:1108:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/boundaries.c:275:4: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] Montage-6.1/lib/src/boundaries/boundaries.c:565:7: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] Montage-6.1/lib/src/boundaries/boundaries.c:62:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:60:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:60:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:62:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:63:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:60:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:60:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:63:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:64:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:60:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:60:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:64:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:65:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:60:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:60:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:65:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:66:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:60:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:60:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:66:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:67:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:60:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:60:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:67:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:68:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:60:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:60:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:68:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:69:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:60:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:60:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:69:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:70:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:60:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:60:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:70:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:71:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:60:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:60:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:71:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:72:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:60:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:60:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:72:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:73:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:60:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:60:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:73:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:74:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:60:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:60:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:74:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:98:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:96:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:96:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:98:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:99:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:96:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:96:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:99:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:100:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:96:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:96:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:100:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:101:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:96:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:96:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:101:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:102:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:96:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:96:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:102:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:103:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:96:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:96:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:103:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:104:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:96:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:96:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:104:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:105:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:96:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:96:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:105:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:106:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:96:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:96:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:106:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:107:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:96:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:96:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:107:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:108:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:96:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:96:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:108:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:109:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:96:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:96:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:109:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:110:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:96:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:96:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:110:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:134:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:132:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:132:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:134:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:135:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:132:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:132:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:135:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:136:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] Montage-6.1/lib/src/boundaries/boundaries.c:132:37: note: Assuming allocation function fails Montage-6.1/lib/src/boundaries/boundaries.c:132:13: note: Assignment 'retval=(struct bndInfo*)malloc(sizeof(struct bndInfo))', assigned value is 0 Montage-6.1/lib/src/boundaries/boundaries.c:136:4: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:560:10: warning: Either the condition 's' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] Montage-6.1/lib/src/boundaries/boundaries.c:562:7: note: Assuming that condition 's' is not redundant Montage-6.1/lib/src/boundaries/boundaries.c:560:10: note: Null pointer dereference Montage-6.1/lib/src/boundaries/boundaries.c:142:37: style: Parameter 'lon' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/boundaries.c:142:50: style: Parameter 'lat' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/boundaries.c:592:41: style: Parameter 't' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/boundaries.c:617:27: style: Variable 'E1' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/boundaries/boundaries.c:617:32: style: Variable 'E2' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/boundaries/boundaries.c:1012:27: style: Variable 'Pi' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/boundaries/boundaries.c:1444:25: style: Variable 'f' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/boundaries/boundaries.c:1628:36: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/boundaries.c:1629:29: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/boundaries.c:1647:38: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/boundaries.c:1648:31: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/boundaries.c:1666:38: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/boundaries.c:1667:31: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/boundaries.c:1734:37: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/boundaries.c:1757:37: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/boundaries/boundaries.c:1758:37: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/coord/ccalc.c:205:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JULIAN [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/ccalc.c:293:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR_CCALC_INVFMT [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/ccalc.c:375:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR_CCALC_INVFMT [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/ccalc.c:470:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DD [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/ccalc.c:557:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/boundaries/boundaries.c:720:9: style: Variable 'E1' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/boundaries/boundaries.c:727:9: style: Variable 'E2' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/boundaries/boundaries.c:1867:8: style: Variable 'phi' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/coord/convertBesselianJulian.c:58:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/convertBesselianJulian.c:209:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/convertBesselianJulian.c:334:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/convertBesselianJulian.c:409:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/convertBesselianJulian.c:506:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/convertBesselianJulian.c:577:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/convertBesselianJulian.c:621:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/convertBesselianJulian.c:665:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/convertBesselianJulian.c:725:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/convertCoordinates.c:32:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/convertCoordinates.c:196:17: style: Variable 'systemout' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/coord/convertCoordinates.c:199:17: style: Variable 'systemout' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/coord/convertCoordinates.c:218:14: style: Variable 'epochin' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/coord/convertCoordinates.c:259:16: style: Variable 'epochin' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/coord/convertCoordinates.c:260:16: style: Variable 'equinoxin' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/coord/convertCoordinates.c:261:16: style: Variable 'systemin' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/coord/convertCoordinates.c:284:14: style: Variable 'epochin' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/coord/convertCoordinates.c:304:16: style: Variable 'epochin' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/coord/convertCoordinates.c:305:16: style: Variable 'equinoxin' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/coord/convertCoordinates.c:306:16: style: Variable 'systemin' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/coord/convertCoordinates.c:321:14: style: Variable 'epochin' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/coord/convertEclEqu.c:50:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/convertEclEqu.c:194:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/convertEclEqu.c:317:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/ccalc.c:449:17: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] Montage-6.1/lib/src/coord/ccalc.c:550:25: note: Assuming allocation function fails Montage-6.1/lib/src/coord/ccalc.c:550:25: note: Calling function 'downcase', 1st argument 'strdup(cprec)' value is 0 Montage-6.1/lib/src/coord/ccalc.c:449:13: note: Assignment 'sp=s', assigned value is 0 Montage-6.1/lib/src/coord/ccalc.c:449:17: note: Null pointer dereference Montage-6.1/lib/src/coord/ccalc.c:457:22: style: Parameter 'cunit' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/coord/ccalc.c:526:38: style: Parameter 'cprec' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/coord/convertEquGal.c:46:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/convertEquGal.c:196:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/convertGalSgal.c:59:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/computeFKCorrections.c:62:21: style: Variable 'decs' can be declared as const array [constVariable] Montage-6.1/lib/src/coord/computeFKCorrections.c:67:21: style: Variable 'rads' can be declared as const array [constVariable] Montage-6.1/lib/src/coord/computeFKCorrections.c:463:16: style: Variable 'idad1' can be declared as const array [constVariable] Montage-6.1/lib/src/coord/computeFKCorrections.c:478:16: style: Variable 'idpmad1' can be declared as const array [constVariable] Montage-6.1/lib/src/coord/computeFKCorrections.c:493:16: style: Variable 'idd1' can be declared as const array [constVariable] Montage-6.1/lib/src/coord/computeFKCorrections.c:508:16: style: Variable 'idpmdd1' can be declared as const array [constVariable] Montage-6.1/lib/src/coord/precessBesselian.c:22:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/precessBesselian.c:86:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/precessJulian.c:22:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/precessJulian.c:86:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable coord_debug [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/parseCoordinateString.c:45:10: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/json/jsonlib.c:37:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/json/jsonlib.c:408:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_ERROR [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/json/jsonlib.c:446:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/json/jsonlib.c:87:15: style: Condition '*p!='['' is always true [knownConditionTrueFalse] Montage-6.1/lib/src/json/jsonlib.c:85:10: note: Assuming that condition '*p!='{'' is not redundant Montage-6.1/lib/src/json/jsonlib.c:87:15: note: Condition '*p!='['' is always true Montage-6.1/lib/src/json/jsonlib.c:97:7: error: Memory leak: json.key [memleak] Montage-6.1/lib/src/json/jsonlib.c:97:7: error: Memory leak: json.val [memleak] Montage-6.1/lib/src/json/jsonlib.c:27:19: warning: Either the condition 'instr==(char*)NULL' is redundant or there is possible null pointer dereference: instr. [nullPointerRedundantCheck] Montage-6.1/lib/src/json/jsonlib.c:29:13: note: Assuming that condition 'instr==(char*)NULL' is not redundant Montage-6.1/lib/src/json/jsonlib.c:27:19: note: Null pointer dereference Montage-6.1/lib/src/json/jsonlib.c:46:4: warning: If memory allocation fails, then there is a possible null pointer dereference: json [nullPointerOutOfMemory] Montage-6.1/lib/src/json/jsonlib.c:44:26: note: Assuming allocation function fails Montage-6.1/lib/src/json/jsonlib.c:44:11: note: Assignment 'json=(JSON*)malloc(sizeof(JSON))', assigned value is 0 Montage-6.1/lib/src/json/jsonlib.c:46:4: note: Null pointer dereference Montage-6.1/lib/src/json/jsonlib.c:47:4: warning: If memory allocation fails, then there is a possible null pointer dereference: json [nullPointerOutOfMemory] Montage-6.1/lib/src/json/jsonlib.c:44:26: note: Assuming allocation function fails Montage-6.1/lib/src/json/jsonlib.c:44:11: note: Assignment 'json=(JSON*)malloc(sizeof(JSON))', assigned value is 0 Montage-6.1/lib/src/json/jsonlib.c:47:4: note: Null pointer dereference Montage-6.1/lib/src/json/jsonlib.c:49:4: warning: If memory allocation fails, then there is a possible null pointer dereference: json [nullPointerOutOfMemory] Montage-6.1/lib/src/json/jsonlib.c:44:26: note: Assuming allocation function fails Montage-6.1/lib/src/json/jsonlib.c:44:11: note: Assignment 'json=(JSON*)malloc(sizeof(JSON))', assigned value is 0 Montage-6.1/lib/src/json/jsonlib.c:49:4: note: Null pointer dereference Montage-6.1/lib/src/json/jsonlib.c:49:33: warning: If memory allocation fails, then there is a possible null pointer dereference: json [nullPointerOutOfMemory] Montage-6.1/lib/src/json/jsonlib.c:44:26: note: Assuming allocation function fails Montage-6.1/lib/src/json/jsonlib.c:44:11: note: Assignment 'json=(JSON*)malloc(sizeof(JSON))', assigned value is 0 Montage-6.1/lib/src/json/jsonlib.c:49:33: note: Null pointer dereference Montage-6.1/lib/src/json/jsonlib.c:50:4: warning: If memory allocation fails, then there is a possible null pointer dereference: json [nullPointerOutOfMemory] Montage-6.1/lib/src/json/jsonlib.c:44:26: note: Assuming allocation function fails Montage-6.1/lib/src/json/jsonlib.c:44:11: note: Assignment 'json=(JSON*)malloc(sizeof(JSON))', assigned value is 0 Montage-6.1/lib/src/json/jsonlib.c:50:4: note: Null pointer dereference Montage-6.1/lib/src/json/jsonlib.c:50:33: warning: If memory allocation fails, then there is a possible null pointer dereference: json [nullPointerOutOfMemory] Montage-6.1/lib/src/json/jsonlib.c:44:26: note: Assuming allocation function fails Montage-6.1/lib/src/json/jsonlib.c:44:11: note: Assignment 'json=(JSON*)malloc(sizeof(JSON))', assigned value is 0 Montage-6.1/lib/src/json/jsonlib.c:50:33: note: Null pointer dereference Montage-6.1/lib/src/json/jsonlib.c:52:15: warning: If memory allocation fails, then there is a possible null pointer dereference: json [nullPointerOutOfMemory] Montage-6.1/lib/src/json/jsonlib.c:44:26: note: Assuming allocation function fails Montage-6.1/lib/src/json/jsonlib.c:44:11: note: Assignment 'json=(JSON*)malloc(sizeof(JSON))', assigned value is 0 Montage-6.1/lib/src/json/jsonlib.c:52:15: note: Null pointer dereference Montage-6.1/lib/src/json/jsonlib.c:54:7: warning: If memory allocation fails, then there is a possible null pointer dereference: json [nullPointerOutOfMemory] Montage-6.1/lib/src/json/jsonlib.c:44:26: note: Assuming allocation function fails Montage-6.1/lib/src/json/jsonlib.c:44:11: note: Assignment 'json=(JSON*)malloc(sizeof(JSON))', assigned value is 0 Montage-6.1/lib/src/json/jsonlib.c:54:7: note: Null pointer dereference Montage-6.1/lib/src/json/jsonlib.c:55:7: warning: If memory allocation fails, then there is a possible null pointer dereference: json [nullPointerOutOfMemory] Montage-6.1/lib/src/json/jsonlib.c:44:26: note: Assuming allocation function fails Montage-6.1/lib/src/json/jsonlib.c:44:11: note: Assignment 'json=(JSON*)malloc(sizeof(JSON))', assigned value is 0 Montage-6.1/lib/src/json/jsonlib.c:55:7: note: Null pointer dereference Montage-6.1/lib/src/json/jsonlib.c:71:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/lib/src/json/jsonlib.c:70:25: note: Assuming allocation function fails Montage-6.1/lib/src/json/jsonlib.c:70:10: note: Assignment 'str=(char*)malloc((len+1)*sizeof(char))', assigned value is 0 Montage-6.1/lib/src/json/jsonlib.c:71:11: note: Null pointer dereference Montage-6.1/lib/src/json/jsonlib.c:449:11: warning: If memory allocation fails, then there is a possible null pointer dereference: subkey [nullPointerOutOfMemory] Montage-6.1/lib/src/json/jsonlib.c:439:27: note: Assuming allocation function fails Montage-6.1/lib/src/json/jsonlib.c:439:13: note: Assignment 'subkey=(char*)malloc(inlen)', assigned value is 0 Montage-6.1/lib/src/json/jsonlib.c:449:11: note: Null pointer dereference Montage-6.1/lib/src/json/jsonlib.c:450:17: warning: If memory allocation fails, then there is a possible null pointer dereference: subkey [nullPointerOutOfMemory] Montage-6.1/lib/src/json/jsonlib.c:439:27: note: Assuming allocation function fails Montage-6.1/lib/src/json/jsonlib.c:439:13: note: Assignment 'subkey=(char*)malloc(inlen)', assigned value is 0 Montage-6.1/lib/src/json/jsonlib.c:450:17: note: Null pointer dereference Montage-6.1/lib/src/json/jsonlib.c:454:10: warning: If memory allocation fails, then there is a possible null pointer dereference: subkey [nullPointerOutOfMemory] Montage-6.1/lib/src/json/jsonlib.c:439:27: note: Assuming allocation function fails Montage-6.1/lib/src/json/jsonlib.c:439:13: note: Assignment 'subkey=(char*)malloc(inlen)', assigned value is 0 Montage-6.1/lib/src/json/jsonlib.c:454:10: note: Null pointer dereference Montage-6.1/lib/src/json/jsonlib.c:454:30: warning: If memory allocation fails, then there is a possible null pointer dereference: subkey [nullPointerOutOfMemory] Montage-6.1/lib/src/json/jsonlib.c:439:27: note: Assuming allocation function fails Montage-6.1/lib/src/json/jsonlib.c:439:13: note: Assignment 'subkey=(char*)malloc(inlen)', assigned value is 0 Montage-6.1/lib/src/json/jsonlib.c:454:30: note: Null pointer dereference Montage-6.1/lib/src/json/jsonlib.c:462:7: warning: If memory allocation fails, then there is a possible null pointer dereference: subkey [nullPointerOutOfMemory] Montage-6.1/lib/src/json/jsonlib.c:439:27: note: Assuming allocation function fails Montage-6.1/lib/src/json/jsonlib.c:439:13: note: Assignment 'subkey=(char*)malloc(inlen)', assigned value is 0 Montage-6.1/lib/src/json/jsonlib.c:454:27: note: Assuming condition is false Montage-6.1/lib/src/json/jsonlib.c:462:7: note: Null pointer dereference Montage-6.1/lib/src/json/jsonlib.c:462:21: warning: If memory allocation fails, then there is a possible null pointer dereference: subkey [nullPointerOutOfMemory] Montage-6.1/lib/src/json/jsonlib.c:439:27: note: Assuming allocation function fails Montage-6.1/lib/src/json/jsonlib.c:439:13: note: Assignment 'subkey=(char*)malloc(inlen)', assigned value is 0 Montage-6.1/lib/src/json/jsonlib.c:454:27: note: Assuming condition is false Montage-6.1/lib/src/json/jsonlib.c:462:21: note: Null pointer dereference Montage-6.1/lib/src/json/jsonlib.c:349:16: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] Montage-6.1/lib/src/json/jsonlib.c:70:25: note: Assuming allocation function fails Montage-6.1/lib/src/json/jsonlib.c:70:10: note: Assignment 'str=(char*)malloc((len+1)*sizeof(char))', assigned value is 0 Montage-6.1/lib/src/json/jsonlib.c:73:6: note: p is assigned 'str' here. Montage-6.1/lib/src/json/jsonlib.c:74:25: note: Calling function 'json_stripblanks', 1st argument 'p' value is 0 Montage-6.1/lib/src/json/jsonlib.c:348:12: note: Assignment 'begin=ptr', assigned value is 0 Montage-6.1/lib/src/json/jsonlib.c:349:16: note: Null pointer addition Montage-6.1/lib/src/json/jsonlib.c:22:15: style: Variable 'se' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/mcurl/mcurl.c:18:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURL_GLOBAL_ALL [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/mcurl/mcurl.c:42:7: error: Resource leak: curl [resourceLeak] Montage-6.1/lib/src/mcurl/mcurl.c:71:7: error: Resource leak: curl [resourceLeak] Montage-6.1/lib/src/mcurl/mcurl.c:40:14: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fdata [nullPointerOutOfResources] Montage-6.1/lib/src/mcurl/mcurl.c:33:17: note: Assuming allocation function fails Montage-6.1/lib/src/mcurl/mcurl.c:33:17: note: Assignment 'fdata=fopen(outFile,"w+")', assigned value is 0 Montage-6.1/lib/src/mcurl/mcurl.c:40:14: note: Null pointer dereference Montage-6.1/lib/src/mcurl/mcurl.c:3:17: style: Parameter 'url' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/mcurl/mcurl.c:3:28: style: Parameter 'outFile' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/mtbl/mtbl.c:79:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTBL_MAXSTR [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/mtbl/mtbl.c:580:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/mtbl/mtbl.c:592:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/mtbl/mtbl.c:674:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTBL_RDERR [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/mtbl/mtbl.c:742:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dptr [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/mtbl/mtbl.c:756:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dptr [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/mtbl/mtbl.c:775:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/mtbl/mtbl.c:212:10: error: Common realloc mistake: 'keystr' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/lib/src/mtbl/mtbl.c:213:10: error: Common realloc mistake: 'keyword' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/lib/src/mtbl/mtbl.c:214:10: error: Common realloc mistake: 'value' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/lib/src/mtbl/mtbl.c:310:13: error: Common realloc mistake: 'tbl_rec' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/lib/src/mtbl/mtbl.c:107:11: warning: If memory allocation fails, then there is a possible null pointer dereference: tbl_rec_string [nullPointerOutOfMemory] Montage-6.1/lib/src/mtbl/mtbl.c:99:35: note: Assuming allocation function fails Montage-6.1/lib/src/mtbl/mtbl.c:99:21: note: Assignment 'tbl_rec_string=(char*)malloc(mtbl_maxline*sizeof(char))', assigned value is 0 Montage-6.1/lib/src/mtbl/mtbl.c:107:11: note: Null pointer dereference Montage-6.1/lib/src/mtbl/mtbl.c:108:11: warning: If memory allocation fails, then there is a possible null pointer dereference: tbl_hdr_string [nullPointerOutOfMemory] Montage-6.1/lib/src/mtbl/mtbl.c:100:35: note: Assuming allocation function fails Montage-6.1/lib/src/mtbl/mtbl.c:100:21: note: Assignment 'tbl_hdr_string=(char*)malloc(mtbl_maxline*sizeof(char))', assigned value is 0 Montage-6.1/lib/src/mtbl/mtbl.c:108:11: note: Null pointer dereference Montage-6.1/lib/src/mtbl/mtbl.c:109:11: warning: If memory allocation fails, then there is a possible null pointer dereference: tbl_typ_string [nullPointerOutOfMemory] Montage-6.1/lib/src/mtbl/mtbl.c:101:35: note: Assuming allocation function fails Montage-6.1/lib/src/mtbl/mtbl.c:101:21: note: Assignment 'tbl_typ_string=(char*)malloc(mtbl_maxline*sizeof(char))', assigned value is 0 Montage-6.1/lib/src/mtbl/mtbl.c:109:11: note: Null pointer dereference Montage-6.1/lib/src/mtbl/mtbl.c:110:11: warning: If memory allocation fails, then there is a possible null pointer dereference: tbl_uni_string [nullPointerOutOfMemory] Montage-6.1/lib/src/mtbl/mtbl.c:102:35: note: Assuming allocation function fails Montage-6.1/lib/src/mtbl/mtbl.c:102:21: note: Assignment 'tbl_uni_string=(char*)malloc(mtbl_maxline*sizeof(char))', assigned value is 0 Montage-6.1/lib/src/mtbl/mtbl.c:110:11: note: Null pointer dereference Montage-6.1/lib/src/mtbl/mtbl.c:111:11: warning: If memory allocation fails, then there is a possible null pointer dereference: tbl_nul_string [nullPointerOutOfMemory] Montage-6.1/lib/src/mtbl/mtbl.c:103:35: note: Assuming allocation function fails Montage-6.1/lib/src/mtbl/mtbl.c:103:21: note: Assignment 'tbl_nul_string=(char*)malloc(mtbl_maxline*sizeof(char))', assigned value is 0 Montage-6.1/lib/src/mtbl/mtbl.c:111:11: note: Null pointer dereference Montage-6.1/lib/src/mtbl/mtbl.c:113:11: warning: If memory allocation fails, then there is a possible null pointer dereference: dval [nullPointerOutOfMemory] Montage-6.1/lib/src/mtbl/mtbl.c:104:35: note: Assuming allocation function fails Montage-6.1/lib/src/mtbl/mtbl.c:104:21: note: Assignment 'dval=(char*)malloc(mtbl_maxline*sizeof(char))', assigned value is 0 Montage-6.1/lib/src/mtbl/mtbl.c:113:11: note: Null pointer dereference Montage-6.1/lib/src/mtbl/mtbl.c:124:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tbl_rec [nullPointerOutOfMemory] Montage-6.1/lib/src/mtbl/mtbl.c:118:38: note: Assuming allocation function fails Montage-6.1/lib/src/mtbl/mtbl.c:118:14: note: Assignment 'tbl_rec=(struct TBL_REC*)malloc(mtbl_maxcol*sizeof(struct TBL_REC))', assigned value is 0 Montage-6.1/lib/src/mtbl/mtbl.c:124:10: note: Null pointer dereference Montage-6.1/lib/src/mtbl/mtbl.c:125:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tbl_rec [nullPointerOutOfMemory] Montage-6.1/lib/src/mtbl/mtbl.c:118:38: note: Assuming allocation function fails Montage-6.1/lib/src/mtbl/mtbl.c:118:14: note: Assignment 'tbl_rec=(struct TBL_REC*)malloc(mtbl_maxcol*sizeof(struct TBL_REC))', assigned value is 0 Montage-6.1/lib/src/mtbl/mtbl.c:125:10: note: Null pointer dereference Montage-6.1/lib/src/mtbl/mtbl.c:126:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tbl_rec [nullPointerOutOfMemory] Montage-6.1/lib/src/mtbl/mtbl.c:118:38: note: Assuming allocation function fails Montage-6.1/lib/src/mtbl/mtbl.c:118:14: note: Assignment 'tbl_rec=(struct TBL_REC*)malloc(mtbl_maxcol*sizeof(struct TBL_REC))', assigned value is 0 Montage-6.1/lib/src/mtbl/mtbl.c:126:10: note: Null pointer dereference Montage-6.1/lib/src/mtbl/mtbl.c:127:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tbl_rec [nullPointerOutOfMemory] Montage-6.1/lib/src/mtbl/mtbl.c:118:38: note: Assuming allocation function fails Montage-6.1/lib/src/mtbl/mtbl.c:118:14: note: Assignment 'tbl_rec=(struct TBL_REC*)malloc(mtbl_maxcol*sizeof(struct TBL_REC))', assigned value is 0 Montage-6.1/lib/src/mtbl/mtbl.c:127:10: note: Null pointer dereference Montage-6.1/lib/src/mtbl/mtbl.c:130:7: warning: If memory allocation fails, then there is a possible null pointer dereference: tbl_rec [nullPointerOutOfMemory] Montage-6.1/lib/src/mtbl/mtbl.c:118:38: note: Assuming allocation function fails Montage-6.1/lib/src/mtbl/mtbl.c:118:14: note: Assignment 'tbl_rec=(struct TBL_REC*)malloc(mtbl_maxcol*sizeof(struct TBL_REC))', assigned value is 0 Montage-6.1/lib/src/mtbl/mtbl.c:130:7: note: Null pointer dereference Montage-6.1/lib/src/mtbl/mtbl.c:131:7: warning: If memory allocation fails, then there is a possible null pointer dereference: tbl_rec [nullPointerOutOfMemory] Montage-6.1/lib/src/mtbl/mtbl.c:118:38: note: Assuming allocation function fails Montage-6.1/lib/src/mtbl/mtbl.c:118:14: note: Assignment 'tbl_rec=(struct TBL_REC*)malloc(mtbl_maxcol*sizeof(struct TBL_REC))', assigned value is 0 Montage-6.1/lib/src/mtbl/mtbl.c:131:7: note: Null pointer dereference Montage-6.1/lib/src/mtbl/mtbl.c:142:7: warning: If memory allocation fails, then there is a possible null pointer dereference: keystr [nullPointerOutOfMemory] Montage-6.1/lib/src/mtbl/mtbl.c:136:29: note: Assuming allocation function fails Montage-6.1/lib/src/mtbl/mtbl.c:136:14: note: Assignment 'keystr=(char**)malloc(nhdralloc*sizeof(char*))', assigned value is 0 Montage-6.1/lib/src/mtbl/mtbl.c:142:7: note: Null pointer dereference Montage-6.1/lib/src/mtbl/mtbl.c:143:7: warning: If memory allocation fails, then there is a possible null pointer dereference: keyword [nullPointerOutOfMemory] Montage-6.1/lib/src/mtbl/mtbl.c:137:29: note: Assuming allocation function fails Montage-6.1/lib/src/mtbl/mtbl.c:137:14: note: Assignment 'keyword=(char**)malloc(nhdralloc*sizeof(char*))', assigned value is 0 Montage-6.1/lib/src/mtbl/mtbl.c:143:7: note: Null pointer dereference Montage-6.1/lib/src/mtbl/mtbl.c:144:7: warning: If memory allocation fails, then there is a possible null pointer dereference: value [nullPointerOutOfMemory] Montage-6.1/lib/src/mtbl/mtbl.c:138:29: note: Assuming allocation function fails Montage-6.1/lib/src/mtbl/mtbl.c:138:14: note: Assignment 'value=(char**)malloc(nhdralloc*sizeof(char*))', assigned value is 0 Montage-6.1/lib/src/mtbl/mtbl.c:144:7: note: Null pointer dereference Montage-6.1/lib/src/mtbl/mtbl.c:575:16: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/mtbl/mtbl.c:637:22: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/mtbl/mtbl.c:820:19: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/mtbl/test/multi_test.c:74:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/mtbl/test/multi_test.c:21:10: style: Variable 'ncol1' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/mtbl/test/multi_test.c:22:10: style: Variable 'nrow1' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/mtbl/test/multi_test.c:29:10: style: Variable 'ncol2' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/mtbl/test/multi_test.c:30:10: style: Variable 'nrow2' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/mtbl/test/nian.c:5:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/mtbl/test/nian.c:11:18: style: Variable 'value' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/mtbl/test/nian.c:9:14: style: Unused variable: icol [unusedVariable] Montage-6.1/lib/src/mtbl/test/nian.c:11:11: style: Unused variable: name [unusedVariable] Montage-6.1/lib/src/mtbl/test/nian2.c:7:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/mtbl/test/nian2.c:37:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tbl_hdr_string [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/mtbl/test/nian2.c:15:11: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/mtbl/test/nian2.c:72:10: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/mtbl/test/tbl2xml.c:9:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/mtbl/test/tbl2xml.c:42:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/mtbl/test/tbl2xml.c:93:12: style: A pointer can not be negative so it is either pointless or an error to check if it is. [pointerLessThanZero] Montage-6.1/lib/src/mtbl/test/tbl2xml.c:32:11: style: Variable 'name' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/mtbl/test/tbl2xml.c:32:18: style: Variable 'value' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/mtbl/test/tbl2xml.c:30:14: style: Unused variable: icol [unusedVariable] Montage-6.1/lib/src/mtbl/test/test1.c:5:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/mtbl/test/test1.c:11:11: style: Variable 'name' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/mtbl/test/test1.c:11:18: style: Variable 'value' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/mtbl/test/test1.c:56:15: style: Variable 'name' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/mtbl/test/test1.c:76:19: style: Variable 'value' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/mtbl/test/test1.c:95:19: style: Variable 'value' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/mtbl/test/test1.c:9:17: style: Unused variable: icol [unusedVariable] Montage-6.1/lib/src/mtbl/test/test2.c:3:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/mtbl/test/test2.c:8:9: style: Variable 'ncol' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/mtbl/test/test2.c:5:11: style: Unused variable: i [unusedVariable] Montage-6.1/lib/src/mtbl/test/test2.c:6:11: style: Unused variable: value [unusedVariable] Montage-6.1/lib/src/mtbl/test/test3.c:5:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/mtbl/test/test3.c:34:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tbl_hdr_string [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/mtbl/test/test3.c:9:14: style: Unused variable: icol [unusedVariable] Montage-6.1/lib/src/mtbl/test/test3.c:10:11: style: Unused variable: nrow [unusedVariable] Montage-6.1/lib/src/mtbl/test/test3.c:11:11: style: Unused variable: name [unusedVariable] Montage-6.1/lib/src/mtbl/test/test_mtblio.c:14:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/mtbl/test/test_mtblio.c:16:13: style: Variable 'col_val' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/mtbl/test/test_mtblio.c:16:23: style: Unused variable: cptr [unusedVariable] Montage-6.1/lib/src/mtbl/test/test_mtblio.c:17:12: style: Unused variable: propid [unusedVariable] Montage-6.1/lib/src/mtbl/test/test_mtblio.c:17:26: style: Unused variable: pi [unusedVariable] Montage-6.1/lib/src/mtbl/test/test_mtblio.c:17:36: style: Unused variable: exptime [unusedVariable] Montage-6.1/lib/src/mtbl/test/test_mtblio.c:17:51: style: Unused variable: fov [unusedVariable] Montage-6.1/lib/src/mtbl/test/test_mtblio.c:18:12: style: Unused variable: f1 [unusedVariable] Montage-6.1/lib/src/pixbounds/bndtest.c:5:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/pixbounds/bndtest.c:11:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/coord/sexToDecimalDegree.c:90:9: style: Variable 'leng' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/lib/src/coord/sexToDecimalDegree.c:69:9: note: leng is assigned Montage-6.1/lib/src/coord/sexToDecimalDegree.c:90:9: note: leng is overwritten Montage-6.1/lib/src/coord/sexToDecimalDegree.c:219:14: style: Variable 'syntax' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/lib/src/coord/sexToDecimalDegree.c:218:14: note: syntax is assigned Montage-6.1/lib/src/coord/sexToDecimalDegree.c:219:14: note: syntax is overwritten Montage-6.1/lib/src/coord/sexToDecimalDegree.c:240:3: style: Variable 'sec' is assigned an expression that holds the same value. [redundantAssignment] Montage-6.1/lib/src/coord/sexToDecimalDegree.c:226:11: note: sec is assigned 'atof(tmps)' here. Montage-6.1/lib/src/coord/sexToDecimalDegree.c:240:3: note: Variable 'sec' is assigned an expression that holds the same value. Montage-6.1/lib/src/coord/sexToDecimalDegree.c:313:9: style: Variable 'leng' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/lib/src/coord/sexToDecimalDegree.c:293:9: note: leng is assigned Montage-6.1/lib/src/coord/sexToDecimalDegree.c:313:9: note: leng is overwritten Montage-6.1/lib/src/coord/sexToDecimalDegree.c:460:3: style: Variable 'sec' is assigned an expression that holds the same value. [redundantAssignment] Montage-6.1/lib/src/coord/sexToDecimalDegree.c:446:11: note: sec is assigned 'atof(tmps)' here. Montage-6.1/lib/src/coord/sexToDecimalDegree.c:460:3: note: Variable 'sec' is assigned an expression that holds the same value. Montage-6.1/lib/src/coord/sexToDecimalDegree.c:36:23: style: Parameter 'cra' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/coord/sexToDecimalDegree.c:36:34: style: Parameter 'cdec' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/coord/sexToDecimalDegree.c:40:18: style: Variable 'p' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/coord/sexToDecimalDegree.c:523:23: style: Parameter 's' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/coord/sexToDecimalDegree.c:584:6: style: Variable 'i' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/pixbounds/pixbounds.c:249:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/structlib.c:35:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/structlib.c:388:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SVC_ERROR [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/structlib.c:413:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SVC_STRLEN [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/structlib.c:89:7: error: Memory leak: svc.key [memleak] Montage-6.1/lib/src/svc/structlib.c:89:7: error: Memory leak: svc.val [memleak] Montage-6.1/lib/src/svc/structlib.c:44:4: warning: If memory allocation fails, then there is a possible null pointer dereference: svc [nullPointerOutOfMemory] Montage-6.1/lib/src/svc/structlib.c:42:24: note: Assuming allocation function fails Montage-6.1/lib/src/svc/structlib.c:42:10: note: Assignment 'svc=(SVC*)malloc(sizeof(SVC))', assigned value is 0 Montage-6.1/lib/src/svc/structlib.c:44:4: note: Null pointer dereference Montage-6.1/lib/src/svc/structlib.c:45:4: warning: If memory allocation fails, then there is a possible null pointer dereference: svc [nullPointerOutOfMemory] Montage-6.1/lib/src/svc/structlib.c:42:24: note: Assuming allocation function fails Montage-6.1/lib/src/svc/structlib.c:42:10: note: Assignment 'svc=(SVC*)malloc(sizeof(SVC))', assigned value is 0 Montage-6.1/lib/src/svc/structlib.c:45:4: note: Null pointer dereference Montage-6.1/lib/src/svc/structlib.c:47:4: warning: If memory allocation fails, then there is a possible null pointer dereference: svc [nullPointerOutOfMemory] Montage-6.1/lib/src/svc/structlib.c:42:24: note: Assuming allocation function fails Montage-6.1/lib/src/svc/structlib.c:42:10: note: Assignment 'svc=(SVC*)malloc(sizeof(SVC))', assigned value is 0 Montage-6.1/lib/src/svc/structlib.c:47:4: note: Null pointer dereference Montage-6.1/lib/src/svc/structlib.c:47:32: warning: If memory allocation fails, then there is a possible null pointer dereference: svc [nullPointerOutOfMemory] Montage-6.1/lib/src/svc/structlib.c:42:24: note: Assuming allocation function fails Montage-6.1/lib/src/svc/structlib.c:42:10: note: Assignment 'svc=(SVC*)malloc(sizeof(SVC))', assigned value is 0 Montage-6.1/lib/src/svc/structlib.c:47:32: note: Null pointer dereference Montage-6.1/lib/src/svc/structlib.c:48:4: warning: If memory allocation fails, then there is a possible null pointer dereference: svc [nullPointerOutOfMemory] Montage-6.1/lib/src/svc/structlib.c:42:24: note: Assuming allocation function fails Montage-6.1/lib/src/svc/structlib.c:42:10: note: Assignment 'svc=(SVC*)malloc(sizeof(SVC))', assigned value is 0 Montage-6.1/lib/src/svc/structlib.c:48:4: note: Null pointer dereference Montage-6.1/lib/src/svc/structlib.c:48:32: warning: If memory allocation fails, then there is a possible null pointer dereference: svc [nullPointerOutOfMemory] Montage-6.1/lib/src/svc/structlib.c:42:24: note: Assuming allocation function fails Montage-6.1/lib/src/svc/structlib.c:42:10: note: Assignment 'svc=(SVC*)malloc(sizeof(SVC))', assigned value is 0 Montage-6.1/lib/src/svc/structlib.c:48:32: note: Null pointer dereference Montage-6.1/lib/src/svc/structlib.c:50:15: warning: If memory allocation fails, then there is a possible null pointer dereference: svc [nullPointerOutOfMemory] Montage-6.1/lib/src/svc/structlib.c:42:24: note: Assuming allocation function fails Montage-6.1/lib/src/svc/structlib.c:42:10: note: Assignment 'svc=(SVC*)malloc(sizeof(SVC))', assigned value is 0 Montage-6.1/lib/src/svc/structlib.c:50:15: note: Null pointer dereference Montage-6.1/lib/src/svc/structlib.c:52:7: warning: If memory allocation fails, then there is a possible null pointer dereference: svc [nullPointerOutOfMemory] Montage-6.1/lib/src/svc/structlib.c:42:24: note: Assuming allocation function fails Montage-6.1/lib/src/svc/structlib.c:42:10: note: Assignment 'svc=(SVC*)malloc(sizeof(SVC))', assigned value is 0 Montage-6.1/lib/src/svc/structlib.c:52:7: note: Null pointer dereference Montage-6.1/lib/src/svc/structlib.c:53:7: warning: If memory allocation fails, then there is a possible null pointer dereference: svc [nullPointerOutOfMemory] Montage-6.1/lib/src/svc/structlib.c:42:24: note: Assuming allocation function fails Montage-6.1/lib/src/svc/structlib.c:42:10: note: Assignment 'svc=(SVC*)malloc(sizeof(SVC))', assigned value is 0 Montage-6.1/lib/src/svc/structlib.c:53:7: note: Null pointer dereference Montage-6.1/lib/src/svc/structlib.c:69:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/lib/src/svc/structlib.c:68:25: note: Assuming allocation function fails Montage-6.1/lib/src/svc/structlib.c:68:10: note: Assignment 'str=(char*)malloc((len+1)*sizeof(char))', assigned value is 0 Montage-6.1/lib/src/svc/structlib.c:69:11: note: Null pointer dereference Montage-6.1/lib/src/svc/structlib.c:329:16: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] Montage-6.1/lib/src/svc/structlib.c:68:25: note: Assuming allocation function fails Montage-6.1/lib/src/svc/structlib.c:68:10: note: Assignment 'str=(char*)malloc((len+1)*sizeof(char))', assigned value is 0 Montage-6.1/lib/src/svc/structlib.c:71:6: note: p is assigned 'str' here. Montage-6.1/lib/src/svc/structlib.c:72:24: note: Calling function 'svc_stripblanks', 1st argument 'p' value is 0 Montage-6.1/lib/src/svc/structlib.c:328:12: note: Assignment 'begin=ptr', assigned value is 0 Montage-6.1/lib/src/svc/structlib.c:329:16: note: Null pointer addition Montage-6.1/lib/src/svc/structlib.c:19:23: style: Parameter 'instr' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/svc/structlib.c:23:15: style: Variable 'se' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/svc/structlib.c:410:38: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/pixbounds/pixbounds.c:229:7: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] Montage-6.1/lib/src/pixbounds/pixbounds.c:73:7: warning: If memory allocation fails, then there is a possible null pointer dereference: P [nullPointerOutOfMemory] Montage-6.1/lib/src/pixbounds/pixbounds.c:66:17: note: Assuming allocation function fails Montage-6.1/lib/src/pixbounds/pixbounds.c:65:8: note: Assignment 'P=(struct tPointStructure*)malloc(n*sizeof(struct tPointStructure))', assigned value is 0 Montage-6.1/lib/src/pixbounds/pixbounds.c:73:7: note: Null pointer dereference Montage-6.1/lib/src/pixbounds/pixbounds.c:74:7: warning: If memory allocation fails, then there is a possible null pointer dereference: P [nullPointerOutOfMemory] Montage-6.1/lib/src/pixbounds/pixbounds.c:66:17: note: Assuming allocation function fails Montage-6.1/lib/src/pixbounds/pixbounds.c:65:8: note: Assignment 'P=(struct tPointStructure*)malloc(n*sizeof(struct tPointStructure))', assigned value is 0 Montage-6.1/lib/src/pixbounds/pixbounds.c:74:7: note: Null pointer dereference Montage-6.1/lib/src/pixbounds/pixbounds.c:75:7: warning: If memory allocation fails, then there is a possible null pointer dereference: P [nullPointerOutOfMemory] Montage-6.1/lib/src/pixbounds/pixbounds.c:66:17: note: Assuming allocation function fails Montage-6.1/lib/src/pixbounds/pixbounds.c:65:8: note: Assignment 'P=(struct tPointStructure*)malloc(n*sizeof(struct tPointStructure))', assigned value is 0 Montage-6.1/lib/src/pixbounds/pixbounds.c:75:7: note: Null pointer dereference Montage-6.1/lib/src/pixbounds/pixbounds.c:76:7: warning: If memory allocation fails, then there is a possible null pointer dereference: P [nullPointerOutOfMemory] Montage-6.1/lib/src/pixbounds/pixbounds.c:66:17: note: Assuming allocation function fails Montage-6.1/lib/src/pixbounds/pixbounds.c:65:8: note: Assignment 'P=(struct tPointStructure*)malloc(n*sizeof(struct tPointStructure))', assigned value is 0 Montage-6.1/lib/src/pixbounds/pixbounds.c:76:7: note: Null pointer dereference Montage-6.1/lib/src/pixbounds/pixbounds.c:224:10: warning: Either the condition 's' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] Montage-6.1/lib/src/pixbounds/pixbounds.c:226:8: note: Assuming that condition 's' is not redundant Montage-6.1/lib/src/pixbounds/pixbounds.c:224:10: note: Null pointer dereference Montage-6.1/lib/src/pixbounds/pixbounds.c:58:41: style:inconclusive: Function 'cgeomInit' argument 3 names different: declaration 'n' definition 'nin'. [funcArgNamesDifferent] Montage-6.1/lib/src/pixbounds/pixbounds.h:24:58: note: Function 'cgeomInit' argument 3 names different: declaration 'n' definition 'nin'. Montage-6.1/lib/src/pixbounds/pixbounds.c:58:41: note: Function 'cgeomInit' argument 3 names different: declaration 'n' definition 'nin'. Montage-6.1/lib/src/pixbounds/pixbounds.c:171:31: style:inconclusive: Function 'cgeomCompare' argument 1 names different: declaration 'tp1' definition 'tpi'. [funcArgNamesDifferent] Montage-6.1/lib/src/pixbounds/pixbounds.h:38:44: note: Function 'cgeomCompare' argument 1 names different: declaration 'tp1' definition 'tpi'. Montage-6.1/lib/src/pixbounds/pixbounds.c:171:31: note: Function 'cgeomCompare' argument 1 names different: declaration 'tp1' definition 'tpi'. Montage-6.1/lib/src/pixbounds/pixbounds.c:171:48: style:inconclusive: Function 'cgeomCompare' argument 2 names different: declaration 'tp2' definition 'tpj'. [funcArgNamesDifferent] Montage-6.1/lib/src/pixbounds/pixbounds.h:38:61: note: Function 'cgeomCompare' argument 2 names different: declaration 'tp2' definition 'tpj'. Montage-6.1/lib/src/pixbounds/pixbounds.c:171:48: note: Function 'cgeomCompare' argument 2 names different: declaration 'tp2' definition 'tpj'. Montage-6.1/lib/src/pixbounds/pixbounds.c:58:23: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/pixbounds/pixbounds.c:58:34: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/pixbounds/pixbounds.c:417:16: error: Uninitialized variable: C3 [legacyUninitvar] Montage-6.1/lib/src/pixbounds/pixbounds.c:417:21: error: Uninitialized variable: C4 [legacyUninitvar] Montage-6.1/lib/src/svc/svclib.c:53:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/svclib.c:93:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SVC_MAXSVC [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/svclib.c:230:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SVC_ERROR [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/svclib.c:449:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SVC_ERROR [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/svclib.c:493:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SVC_ERROR [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/svclib.c:606:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SVC_OK [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/svclib.c:638:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SVC_ERROR [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/svclib.c:714:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SVC_ERROR [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/svclib.c:824:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SVC_STRLEN [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/svclib.c:915:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SVC_ERROR [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/svclib.c:1234:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/test/abortchild.c:6:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/svc/test/abortchild.c:24:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/test/abortchild.c:20:15: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/lib/src/svc/test/abortchild.c:14:16: note: Assuming allocation function fails Montage-6.1/lib/src/svc/test/abortchild.c:14:16: note: Assignment 'fout=fopen("child.out","w+")', assigned value is 0 Montage-6.1/lib/src/svc/test/abortchild.c:20:15: note: Null pointer dereference Montage-6.1/lib/src/svc/test/abortchild.c:27:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/lib/src/svc/test/abortchild.c:14:16: note: Assuming allocation function fails Montage-6.1/lib/src/svc/test/abortchild.c:14:16: note: Assignment 'fout=fopen("child.out","w+")', assigned value is 0 Montage-6.1/lib/src/svc/test/abortchild.c:27:12: note: Null pointer dereference Montage-6.1/lib/src/svc/test/abortchild.c:33:11: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/lib/src/svc/test/abortchild.c:14:16: note: Assuming allocation function fails Montage-6.1/lib/src/svc/test/abortchild.c:14:16: note: Assignment 'fout=fopen("child.out","w+")', assigned value is 0 Montage-6.1/lib/src/svc/test/abortchild.c:33:11: note: Null pointer dereference Montage-6.1/lib/src/svc/test/aborttest.c:9:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/svc/test/aborttest.c:18:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/test/structtest.c:11:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/svc/test/structtest.c:58:1: portability: Omitted return type of function 'printstruct' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/svc/test/structtest.c:23:10: warning: Obsolete function 'gets' called. It is recommended to use 'fgets' or 'gets_s' instead. [prohibitedgetsCalled] Montage-6.1/lib/src/svc/test/structtest.c:43:10: warning: Obsolete function 'gets' called. It is recommended to use 'fgets' or 'gets_s' instead. [prohibitedgetsCalled] Montage-6.1/lib/src/svc/test/structtest.c:58:19: style: Parameter 'instr' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/svc/test/test1.c:6:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/svc/test/test1.c:15:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/test/test1.c:20:10: warning: Obsolete function 'gets' called. It is recommended to use 'fgets' or 'gets_s' instead. [prohibitedgetsCalled] Montage-6.1/lib/src/svc/test/test1.c:71:9: error: Uninitialized variable: i [uninitvar] Montage-6.1/lib/src/svc/test/test1.c:11:9: style: Variable 'i' is not assigned a value. [unassignedVariable] Montage-6.1/lib/src/svc/test/test2.c:6:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/svc/test/test2.c:15:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/test/test2.c:33:11: style: Variable 'retstr' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/lib/src/svc/test/test2.c:25:11: note: retstr is assigned Montage-6.1/lib/src/svc/test/test2.c:33:11: note: retstr is overwritten Montage-6.1/lib/src/svc/test/test2.c:63:11: style: Variable 'retstr' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/lib/src/svc/test/test2.c:56:11: note: retstr is assigned Montage-6.1/lib/src/svc/test/test2.c:63:11: note: retstr is overwritten Montage-6.1/lib/src/svc/test/test2.c:71:11: style: Variable 'retstr' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/lib/src/svc/test/test2.c:63:11: note: retstr is assigned Montage-6.1/lib/src/svc/test/test2.c:71:11: note: retstr is overwritten Montage-6.1/lib/src/svc/test/test2.c:110:11: style: Variable 'retstr' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/lib/src/svc/test/test2.c:103:11: note: retstr is assigned Montage-6.1/lib/src/svc/test/test2.c:110:11: note: retstr is overwritten Montage-6.1/lib/src/svc/test/test2.c:117:11: style: Variable 'retstr' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/lib/src/svc/test/test2.c:110:11: note: retstr is assigned Montage-6.1/lib/src/svc/test/test2.c:117:11: note: retstr is overwritten Montage-6.1/lib/src/svc/test/test2.c:124:11: style: Variable 'retstr' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/lib/src/svc/test/test2.c:117:11: note: retstr is assigned Montage-6.1/lib/src/svc/test/test2.c:124:11: note: retstr is overwritten Montage-6.1/lib/src/svc/test/test2.c:95:55: warning: Uninitialized variable: mlat [uninitvar] Montage-6.1/lib/src/svc/test/test2.c:82:14: note: Assuming condition is false Montage-6.1/lib/src/svc/test/test2.c:95:55: note: Uninitialized variable: mlat Montage-6.1/lib/src/svc/test/test2.c:96:51: warning: Uninitialized variable: su [uninitvar] Montage-6.1/lib/src/svc/test/test2.c:85:14: note: Assuming condition is false Montage-6.1/lib/src/svc/test/test2.c:96:51: note: Uninitialized variable: su Montage-6.1/lib/src/svc/test/test2.c:96:57: warning: Uninitialized variable: sv [uninitvar] Montage-6.1/lib/src/svc/test/test2.c:88:14: note: Assuming condition is false Montage-6.1/lib/src/svc/test/test2.c:96:57: note: Uninitialized variable: sv Montage-6.1/lib/src/svc/test/test2.c:94:49: error: Uninitialized variable: plon [legacyUninitvar] Montage-6.1/lib/src/svc/test/test2.c:94:55: error: Uninitialized variable: plat [legacyUninitvar] Montage-6.1/lib/src/svc/test/test2.c:95:49: error: Uninitialized variable: mlon [legacyUninitvar] Montage-6.1/lib/src/svc/test/test3.c:6:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/svc/test/test3.c:15:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/test/test3.c:27:10: warning: Obsolete function 'gets' called. It is recommended to use 'fgets' or 'gets_s' instead. [prohibitedgetsCalled] Montage-6.1/lib/src/svc/test/test3.c:78:9: error: Uninitialized variable: i [uninitvar] Montage-6.1/lib/src/svc/test/test3.c:11:9: style: Variable 'i' is not assigned a value. [unassignedVariable] Montage-6.1/lib/src/two_plane_v1.1/initdistdata.c:18:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/two_plane_v1.1/initdistdata.c:35:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/two_plane_v1.1/initdistdata.c:46:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_KEYWORD [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/two_plane_v1.1/initdistdata.c:175:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_KEYWORD [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/two_plane_v1.1/initdistdata.c:433:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_KEYWORD [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/two_plane_v1.1/initdistdata.c:352:29: style: Parameter 'tablefilename' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/two_plane_v1.1/initdistdata.c:352:55: style: Parameter 'coeff' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/two_plane_v1.1/initdistdata.c:162:15: style: Variable 'status' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/two_plane_v1.1/redefine_pointing.c:23:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/two_plane_v1.1/redefine_pointing.c:82:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/two_plane_v1.1/redefine_pointing.c:180:9: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/two_plane_v1.1/redefine_pointing.c:181:8: style: Variable 'empty' can be declared as const array [constVariable] Montage-6.1/lib/src/two_plane_v1.1/redefine_pointing.c:215:9: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/two_plane_v1.1/redefine_pointing.c:216:8: style: Variable 'empty' can be declared as const array [constVariable] Montage-6.1/lib/src/two_plane_v1.1/redefine_pointing.c:248:9: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/two_plane_v1.1/redefine_pointing.c:249:8: style: Variable 'empty' can be declared as const array [constVariable] Montage-6.1/lib/src/two_plane_v1.1/test/TwoPlaneTest.c:55:1: portability: Omitted return type of function 'readHeaders' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] Montage-6.1/lib/src/two_plane_v1.1/test/TwoPlaneTest.c:70:30: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] Montage-6.1/lib/src/two_plane_v1.1/test/TwoPlaneTest.c:64:14: note: Assuming allocation function fails Montage-6.1/lib/src/two_plane_v1.1/test/TwoPlaneTest.c:64:14: note: Assignment 'fp=fopen(intemplate,"r")', assigned value is 0 Montage-6.1/lib/src/two_plane_v1.1/test/TwoPlaneTest.c:70:30: note: Null pointer dereference Montage-6.1/lib/src/two_plane_v1.1/test/TwoPlaneTest.c:95:30: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] Montage-6.1/lib/src/two_plane_v1.1/test/TwoPlaneTest.c:89:14: note: Assuming allocation function fails Montage-6.1/lib/src/two_plane_v1.1/test/TwoPlaneTest.c:89:14: note: Assignment 'fp=fopen(outtemplate,"r")', assigned value is 0 Montage-6.1/lib/src/two_plane_v1.1/test/TwoPlaneTest.c:95:30: note: Null pointer dereference Montage-6.1/lib/src/two_plane_v1.1/test/TwoPlaneTest.c:115:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/two_plane_v1.1/test/TwoPlaneTest.c:32:11: style: Variable 'status' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/two_plane_v1.1/test/TwoPlaneTest.c:58:14: style: Unused variable: i [unusedVariable] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:665:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PI [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/svc/svclib.c:1276:19: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] Montage-6.1/lib/src/svc/svclib.c:1232:4: note: outer condition: sig==1||sig==2||sig==3||sig==4||sig==5||sig==6||sig==8||sig==9||sig==7||sig==11||sig==31||sig==13||sig==14||sig==15||sig==10||sig==12||sig==19||sig==20||sig==21||sig==22||sig==26||sig==27||sig==24 Montage-6.1/lib/src/svc/svclib.c:1276:19: note: opposite inner condition: sig==18 Montage-6.1/lib/src/svc/svclib.c:131:7: error: Common realloc mistake: 'svc_list' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/lib/src/svc/svclib.c:875:3: error: Common realloc mistake: 'str' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/lib/src/svc/svclib.c:203:20: style: Parameter 'svcstr' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/svc/svclib.c:206:10: style: Variable 'path' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/svc/svclib.c:424:35: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/svc/svclib.c:424:47: style: Parameter 'sig' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/svc/svclib.c:424:58: style: Parameter 'quit' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/svc/svclib.c:699:7: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/svc/svclib.c:501:9: style: Variable 'nchar' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/svc/svclib.c:573:12: style: Variable 'nchar' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:583:7: warning: Either the condition 'wcs!=NULL' is redundant or there is possible null pointer dereference: wcs. [nullPointerRedundantCheck] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:430:10: note: Assuming that condition 'wcs!=NULL' is not redundant Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:421:54: note: Calling function 'Initialize_TwoPlane', 2nd argument 'wcs' value is 0 Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:583:7: note: Null pointer dereference Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:32:39: style:inconclusive: Function 'plane1_to_plane2_transform' argument 1 names different: declaration 'x_in' definition 'x_1'. [funcArgNamesDifferent] Montage-6.1/lib/src/two_plane_v1.1/two_plane.h:63:39: note: Function 'plane1_to_plane2_transform' argument 1 names different: declaration 'x_in' definition 'x_1'. Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:32:39: note: Function 'plane1_to_plane2_transform' argument 1 names different: declaration 'x_in' definition 'x_1'. Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:32:51: style:inconclusive: Function 'plane1_to_plane2_transform' argument 2 names different: declaration 'y_in' definition 'y_1'. [funcArgNamesDifferent] Montage-6.1/lib/src/two_plane_v1.1/two_plane.h:63:52: note: Function 'plane1_to_plane2_transform' argument 2 names different: declaration 'y_in' definition 'y_1'. Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:32:51: note: Function 'plane1_to_plane2_transform' argument 2 names different: declaration 'y_in' definition 'y_1'. Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:32:64: style:inconclusive: Function 'plane1_to_plane2_transform' argument 3 names different: declaration 'x_out' definition 'x_2'. [funcArgNamesDifferent] Montage-6.1/lib/src/two_plane_v1.1/two_plane.h:63:66: note: Function 'plane1_to_plane2_transform' argument 3 names different: declaration 'x_out' definition 'x_2'. Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:32:64: note: Function 'plane1_to_plane2_transform' argument 3 names different: declaration 'x_out' definition 'x_2'. Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:32:77: style:inconclusive: Function 'plane1_to_plane2_transform' argument 4 names different: declaration 'y_out' definition 'y_2'. [funcArgNamesDifferent] Montage-6.1/lib/src/two_plane_v1.1/two_plane.h:63:81: note: Function 'plane1_to_plane2_transform' argument 4 names different: declaration 'y_out' definition 'y_2'. Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:32:77: note: Function 'plane1_to_plane2_transform' argument 4 names different: declaration 'y_out' definition 'y_2'. Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:204:39: style:inconclusive: Function 'plane2_to_plane1_transform' argument 1 names different: declaration 'x_in' definition 'x_2'. [funcArgNamesDifferent] Montage-6.1/lib/src/two_plane_v1.1/two_plane.h:65:39: note: Function 'plane2_to_plane1_transform' argument 1 names different: declaration 'x_in' definition 'x_2'. Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:204:39: note: Function 'plane2_to_plane1_transform' argument 1 names different: declaration 'x_in' definition 'x_2'. Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:204:51: style:inconclusive: Function 'plane2_to_plane1_transform' argument 2 names different: declaration 'y_in' definition 'y_2'. [funcArgNamesDifferent] Montage-6.1/lib/src/two_plane_v1.1/two_plane.h:65:52: note: Function 'plane2_to_plane1_transform' argument 2 names different: declaration 'y_in' definition 'y_2'. Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:204:51: note: Function 'plane2_to_plane1_transform' argument 2 names different: declaration 'y_in' definition 'y_2'. Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:204:64: style:inconclusive: Function 'plane2_to_plane1_transform' argument 3 names different: declaration 'x_out' definition 'x_1'. [funcArgNamesDifferent] Montage-6.1/lib/src/two_plane_v1.1/two_plane.h:65:66: note: Function 'plane2_to_plane1_transform' argument 3 names different: declaration 'x_out' definition 'x_1'. Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:204:64: note: Function 'plane2_to_plane1_transform' argument 3 names different: declaration 'x_out' definition 'x_1'. Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:204:77: style:inconclusive: Function 'plane2_to_plane1_transform' argument 4 names different: declaration 'y_out' definition 'y_1'. [funcArgNamesDifferent] Montage-6.1/lib/src/two_plane_v1.1/two_plane.h:65:81: note: Function 'plane2_to_plane1_transform' argument 4 names different: declaration 'y_out' definition 'y_1'. Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:204:77: note: Function 'plane2_to_plane1_transform' argument 4 names different: declaration 'y_out' definition 'y_1'. Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:33:24: style: Parameter 'two_plane' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:205:24: style: Parameter 'two_plane' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:437:19: style: Parameter 'coeff' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:446:19: style: Parameter 'coeff' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:456:29: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:457:29: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:458:30: style: Parameter 'ap' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:459:30: style: Parameter 'bp' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:513:30: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:514:30: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:515:31: style: Parameter 'ap' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:516:31: style: Parameter 'bp' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:504:34: error: Uninitialized struct member: coeff.crpix1 [uninitStructMember] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:504:34: error: Uninitialized struct member: coeff.crpix2 [uninitStructMember] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:504:34: error: Uninitialized struct member: coeff.a_dmax [uninitStructMember] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:504:34: error: Uninitialized struct member: coeff.b_dmax [uninitStructMember] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:564:35: error: Uninitialized struct member: coeff.A_ORDER [uninitStructMember] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:564:35: error: Uninitialized struct member: coeff.crpix1 [uninitStructMember] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:564:35: error: Uninitialized struct member: coeff.crpix2 [uninitStructMember] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:564:35: error: Uninitialized struct member: coeff.a_dmax [uninitStructMember] Montage-6.1/lib/src/two_plane_v1.1/two_plane.c:564:35: error: Uninitialized struct member: coeff.b_dmax [uninitStructMember] Montage-6.1/util/Archive/ArchiveExec/mArchiveExec.c:64:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/www/www.c:132:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/www/www.c:1035:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/www/www.c:1781:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WWW_BADFOUT [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/www/www.c:1850:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WWW_BADFOUT [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/www/www.c:1932:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WWW_BADFOUT [valueFlowBailoutIncompleteVar] Montage-6.1/util/Archive/ArchiveExec/mArchiveExec.c:66:7: style: Condition 'debug' is always false [knownConditionTrueFalse] Montage-6.1/util/Archive/ArchiveExec/mArchiveExec.c:58:17: note: Assignment 'debug=0', assigned value is 0 Montage-6.1/util/Archive/ArchiveExec/mArchiveExec.c:66:7: note: Condition 'debug' is always false Montage-6.1/util/Archive/ArchiveExec/mArchiveExec.c:213:15: style: Variable 'imin' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/util/Archive/ArchiveExec/mArchiveExec.c:208:15: note: imin is assigned Montage-6.1/util/Archive/ArchiveExec/mArchiveExec.c:213:15: note: imin is overwritten Montage-6.1/util/Archive/ArchiveExec/mArchiveExec.c:214:15: style: Variable 'imax' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/util/Archive/ArchiveExec/mArchiveExec.c:209:15: note: imax is assigned Montage-6.1/util/Archive/ArchiveExec/mArchiveExec.c:214:15: note: imax is overwritten Montage-6.1/util/Archive/ArchiveExec/mArchiveExec.c:215:15: style: Variable 'jmin' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/util/Archive/ArchiveExec/mArchiveExec.c:210:15: note: jmin is assigned Montage-6.1/util/Archive/ArchiveExec/mArchiveExec.c:215:15: note: jmin is overwritten Montage-6.1/util/Archive/ArchiveExec/mArchiveExec.c:216:15: style: Variable 'jmax' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/util/Archive/ArchiveExec/mArchiveExec.c:211:15: note: jmax is assigned Montage-6.1/util/Archive/ArchiveExec/mArchiveExec.c:216:15: note: jmax is overwritten Montage-6.1/util/Archive/ArchiveExec/mArchiveExec.c:42:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Archive/ArchiveGet/mArchiveGet.c:76:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Archive/ArchiveGet/mArchiveGet.c:234:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/www/www.c:1791:11: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] Montage-6.1/lib/src/www/www.c:1957:7: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/lib/src/www/www.c:1948:7: note: First condition Montage-6.1/lib/src/www/www.c:1957:7: note: Second condition Montage-6.1/lib/src/www/www.c:739:19: portability: fflush() called on input stream 'pcontent' may result in undefined behaviour on non-linux systems. [fflushOnInputStream] Montage-6.1/lib/src/www/www.c:1313:10: error: Common realloc mistake: 'word' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/lib/src/www/www.c:1041:30: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] Montage-6.1/lib/src/www/www.c:1037:14: note: Assuming allocation function fails Montage-6.1/lib/src/www/www.c:1037:14: note: Assignment 'fp=fopen(debugFile,"r")', assigned value is 0 Montage-6.1/lib/src/www/www.c:1041:30: note: Null pointer dereference Montage-6.1/lib/src/www/www.c:1316:7: warning: If memory allocation fails, then there is a possible null pointer dereference: word [nullPointerOutOfMemory] Montage-6.1/lib/src/www/www.c:1306:26: note: Assuming allocation function fails Montage-6.1/lib/src/www/www.c:1306:11: note: Assignment 'word=(char*)malloc(sizeof(char)*(wsize))', assigned value is 0 Montage-6.1/lib/src/www/www.c:1316:7: note: Null pointer dereference Montage-6.1/lib/src/www/www.c:1326:11: warning: If memory allocation fails, then there is a possible null pointer dereference: word [nullPointerOutOfMemory] Montage-6.1/lib/src/www/www.c:1306:26: note: Assuming allocation function fails Montage-6.1/lib/src/www/www.c:1306:11: note: Assignment 'word=(char*)malloc(sizeof(char)*(wsize))', assigned value is 0 Montage-6.1/lib/src/www/www.c:1326:11: note: Null pointer dereference Montage-6.1/lib/src/www/www.c:1349:7: warning: If memory allocation fails, then there is a possible null pointer dereference: word [nullPointerOutOfMemory] Montage-6.1/lib/src/www/www.c:1346:26: note: Assuming allocation function fails Montage-6.1/lib/src/www/www.c:1346:11: note: Assignment 'word=(char*)malloc(sizeof(char)*(strlen(line)+1))', assigned value is 0 Montage-6.1/lib/src/www/www.c:1349:7: note: Null pointer dereference Montage-6.1/lib/src/www/www.c:1351:4: warning: If memory allocation fails, then there is a possible null pointer dereference: word [nullPointerOutOfMemory] Montage-6.1/lib/src/www/www.c:1346:26: note: Assuming allocation function fails Montage-6.1/lib/src/www/www.c:1346:11: note: Assignment 'word=(char*)malloc(sizeof(char)*(strlen(line)+1))', assigned value is 0 Montage-6.1/lib/src/www/www.c:1351:4: note: Null pointer dereference Montage-6.1/lib/src/www/www.c:1566:4: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/lib/src/www/www.c:1564:33: note: Assuming allocation function fails Montage-6.1/lib/src/www/www.c:1564:10: note: Assignment 'str=(unsigned char*)malloc((len+5*special+1)*sizeof(char))', assigned value is 0 Montage-6.1/lib/src/www/www.c:1566:4: note: Null pointer dereference Montage-6.1/lib/src/www/www.c:1583:7: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/lib/src/www/www.c:1564:33: note: Assuming allocation function fails Montage-6.1/lib/src/www/www.c:1564:10: note: Assignment 'str=(unsigned char*)malloc((len+5*special+1)*sizeof(char))', assigned value is 0 Montage-6.1/lib/src/www/www.c:1583:7: note: Null pointer dereference Montage-6.1/lib/src/www/www.c:1606:7: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/lib/src/www/www.c:1600:34: note: Assuming allocation function fails Montage-6.1/lib/src/www/www.c:1600:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/lib/src/www/www.c:1606:7: note: Null pointer dereference Montage-6.1/lib/src/www/www.c:1608:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/lib/src/www/www.c:1600:34: note: Assuming allocation function fails Montage-6.1/lib/src/www/www.c:1600:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/lib/src/www/www.c:1608:11: note: Null pointer dereference Montage-6.1/lib/src/www/www.c:1627:4: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/lib/src/www/www.c:1600:34: note: Assuming allocation function fails Montage-6.1/lib/src/www/www.c:1600:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/lib/src/www/www.c:1627:4: note: Null pointer dereference Montage-6.1/lib/src/www/www.c:1649:7: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/lib/src/www/www.c:1643:34: note: Assuming allocation function fails Montage-6.1/lib/src/www/www.c:1643:10: note: Assignment 'str=(unsigned char*)malloc(strlen(s)+1)', assigned value is 0 Montage-6.1/lib/src/www/www.c:1649:7: note: Null pointer dereference Montage-6.1/lib/src/www/www.c:1651:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/lib/src/www/www.c:1643:34: note: Assuming allocation function fails Montage-6.1/lib/src/www/www.c:1643:10: note: Assignment 'str=(unsigned char*)malloc(strlen(s)+1)', assigned value is 0 Montage-6.1/lib/src/www/www.c:1651:11: note: Null pointer dereference Montage-6.1/lib/src/www/www.c:1682:4: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/lib/src/www/www.c:1643:34: note: Assuming allocation function fails Montage-6.1/lib/src/www/www.c:1643:10: note: Assignment 'str=(unsigned char*)malloc(strlen(s)+1)', assigned value is 0 Montage-6.1/lib/src/www/www.c:1682:4: note: Null pointer dereference Montage-6.1/lib/src/www/www.c:1695:11: warning: If memory allocation fails, then there is a possible null pointer dereference: in [nullPointerOutOfMemory] Montage-6.1/lib/src/www/www.c:1693:29: note: Assuming allocation function fails Montage-6.1/lib/src/www/www.c:1693:15: note: Assignment 'in=(char*)malloc(strlen(out)+1)', assigned value is 0 Montage-6.1/lib/src/www/www.c:1695:11: note: Null pointer dereference Montage-6.1/lib/src/www/www.c:1697:17: warning: If memory allocation fails, then there is a possible null pointer dereference: in [nullPointerOutOfMemory] Montage-6.1/lib/src/www/www.c:1693:29: note: Assuming allocation function fails Montage-6.1/lib/src/www/www.c:1693:15: note: Assignment 'in=(char*)malloc(strlen(out)+1)', assigned value is 0 Montage-6.1/lib/src/www/www.c:1697:17: note: Null pointer dereference Montage-6.1/lib/src/www/www.c:1699:10: warning: If memory allocation fails, then there is a possible null pointer dereference: in [nullPointerOutOfMemory] Montage-6.1/lib/src/www/www.c:1693:29: note: Assuming allocation function fails Montage-6.1/lib/src/www/www.c:1693:15: note: Assignment 'in=(char*)malloc(strlen(out)+1)', assigned value is 0 Montage-6.1/lib/src/www/www.c:1699:10: note: Null pointer dereference Montage-6.1/lib/src/www/www.c:1702:7: warning: If memory allocation fails, then there is a possible null pointer dereference: in [nullPointerOutOfMemory] Montage-6.1/lib/src/www/www.c:1693:29: note: Assuming allocation function fails Montage-6.1/lib/src/www/www.c:1693:15: note: Assignment 'in=(char*)malloc(strlen(out)+1)', assigned value is 0 Montage-6.1/lib/src/www/www.c:1699:16: note: Assuming condition is false Montage-6.1/lib/src/www/www.c:1702:7: note: Null pointer dereference Montage-6.1/lib/src/www/www.c:1707:22: warning: If memory allocation fails, then there is a possible null pointer dereference: in [nullPointerOutOfMemory] Montage-6.1/lib/src/www/www.c:1693:29: note: Assuming allocation function fails Montage-6.1/lib/src/www/www.c:1693:15: note: Assignment 'in=(char*)malloc(strlen(out)+1)', assigned value is 0 Montage-6.1/lib/src/www/www.c:1699:16: note: Assuming condition is false Montage-6.1/lib/src/www/www.c:1707:22: note: Null pointer dereference Montage-6.1/lib/src/www/www.c:488:17: style: Variable 'ptr' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/lib/src/www/www.c:471:17: note: ptr is assigned Montage-6.1/lib/src/www/www.c:488:17: note: ptr is overwritten Montage-6.1/lib/src/www/www.c:599:33: style: Variable 'have_value' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/lib/src/www/www.c:573:39: note: have_value is assigned Montage-6.1/lib/src/www/www.c:599:33: note: have_value is overwritten Montage-6.1/lib/src/www/www.c:945:16: style: Variable 'ismap' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/lib/src/www/www.c:926:16: note: ismap is assigned Montage-6.1/lib/src/www/www.c:945:16: note: ismap is overwritten Montage-6.1/lib/src/www/www.c:82:28: style: Parameter 'workdir' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/www/www.c:94:10: style: Variable 'method' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/www/www.c:94:19: style: Variable 'count' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/www/www.c:1152:10: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/www/www.c:1409:20: style: Variable 'fname' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/www/www.c:1773:8: style: Variable 'day' can be declared as const array [constVariable] Montage-6.1/lib/src/www/www.c:1775:8: style: Variable 'month' can be declared as const array [constVariable] Montage-6.1/lib/src/www/www.c:119:31: style: Variable 'reading_block_data' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/www/www.c:120:31: style: Variable 'have_name' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/www/www.c:121:31: style: Variable 'have_value' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/www/www.c:344:13: style: Variable 'total' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/www/www.c:359:16: style: Variable 'total' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/www/www.c:438:34: style: Variable 'reading_block_data' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/www/www.c:513:34: style: Variable 'reading_block_data' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/www/www.c:667:43: style: Variable 'reading_block_data' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/www/www.c:949:13: style: Variable 'ix' is assigned a value that is never used. [unreadVariable] Montage-6.1/lib/src/www/www.c:953:13: style: Variable 'iy' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Archive/ArchiveGet/mArchiveGet.c:272:19: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] Montage-6.1/util/Archive/ArchiveGet/mArchiveGet.c:232:4: note: outer condition: sig==1||sig==2||sig==3||sig==4||sig==5||sig==6||sig==8||sig==7||sig==11||sig==31||sig==13||sig==14||sig==15||sig==10||sig==12||sig==20||sig==21||sig==22||sig==26||sig==27||sig==24 Montage-6.1/util/Archive/ArchiveGet/mArchiveGet.c:272:19: note: opposite inner condition: sig==18 Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:138:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:227:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:224:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:240:4: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:312:7: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:306:34: note: Assuming allocation function fails Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:306:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:312:7: note: Null pointer dereference Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:314:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:306:34: note: Assuming allocation function fails Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:306:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:314:11: note: Null pointer dereference Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:333:4: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:306:34: note: Assuming allocation function fails Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:306:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:333:4: note: Null pointer dereference Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:274:19: style: The comparison 'rc == 0' is always true. [knownConditionTrueFalse] Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:262:16: note: 'rc' is assigned value '0' here. Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:274:19: note: The comparison 'rc == 0' is always true. Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:59:11: style: Variable 'survey' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:60:11: style: Variable 'band' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:61:11: style: Variable 'locstr' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:62:11: style: Variable 'widthstr' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:63:11: style: Variable 'heightstr' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:217:23: style: Parameter 'hostname' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:220:24: style: Variable 'host' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Archive/ArchiveList/mArchiveList.c:298:24: style: Parameter 's' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/BestImage/mBestImage.c:146:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Calibrate/mCalExec.c:86:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fstatus [valueFlowBailoutIncompleteVar] Montage-6.1/util/Calibrate/mCalExec.c:183:12: style: Variable 'failed' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Calibrate/mCalExec.c:184:12: style: Variable 'warning' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Calibrate/mCalExec.c:53:11: style: Unused variable: levelOnly [unusedVariable] Montage-6.1/util/Calibrate/mCalExec.c:53:31: style: Unused variable: noAreas [unusedVariable] Montage-6.1/util/Calibrate/mCalExec.c:71:16: style: Unused variable: type [unusedVariable] Montage-6.1/util/Calibrate/mCalibrate.c:90:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Calibrate/mCalibrate.c:346:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Montage-6.1/util/Calibrate/mCalibrate.c:98:14: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] Montage-6.1/util/Calibrate/mCalibrate.c:242:10: error: Common realloc mistake: 'imgflux' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/util/Calibrate/mCalibrate.c:243:10: error: Common realloc mistake: 'bmagflux' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/util/Calibrate/mCalibrate.c:244:10: error: Common realloc mistake: 'rmagflux' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/util/Calibrate/mCalibrate.c:259:7: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] Montage-6.1/util/Calibrate/mCalibrate.c:254:24: note: Assuming allocation function fails Montage-6.1/util/Calibrate/mCalibrate.c:254:8: note: Assignment 'x=(double*)malloc(nflux*sizeof(double))', assigned value is 0 Montage-6.1/util/Calibrate/mCalibrate.c:259:7: note: Null pointer dereference Montage-6.1/util/Calibrate/mCalibrate.c:260:7: warning: If memory allocation fails, then there is a possible null pointer dereference: y [nullPointerOutOfMemory] Montage-6.1/util/Calibrate/mCalibrate.c:255:24: note: Assuming allocation function fails Montage-6.1/util/Calibrate/mCalibrate.c:255:8: note: Assignment 'y=(double*)malloc(nflux*sizeof(double))', assigned value is 0 Montage-6.1/util/Calibrate/mCalibrate.c:260:7: note: Null pointer dereference Montage-6.1/util/Calibrate/mCalibrate.c:275:17: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] Montage-6.1/util/Calibrate/mCalibrate.c:254:24: note: Assuming allocation function fails Montage-6.1/util/Calibrate/mCalibrate.c:254:8: note: Assignment 'x=(double*)malloc(nflux*sizeof(double))', assigned value is 0 Montage-6.1/util/Calibrate/mCalibrate.c:275:17: note: Null pointer dereference Montage-6.1/util/Calibrate/mCalibrate.c:276:25: warning: If memory allocation fails, then there is a possible null pointer dereference: y [nullPointerOutOfMemory] Montage-6.1/util/Calibrate/mCalibrate.c:255:24: note: Assuming allocation function fails Montage-6.1/util/Calibrate/mCalibrate.c:255:8: note: Assignment 'y=(double*)malloc(nflux*sizeof(double))', assigned value is 0 Montage-6.1/util/Calibrate/mCalibrate.c:276:25: note: Null pointer dereference Montage-6.1/util/Calibrate/mCalibrate.c:280:19: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] Montage-6.1/util/Calibrate/mCalibrate.c:254:24: note: Assuming allocation function fails Montage-6.1/util/Calibrate/mCalibrate.c:254:8: note: Assignment 'x=(double*)malloc(nflux*sizeof(double))', assigned value is 0 Montage-6.1/util/Calibrate/mCalibrate.c:276:31: note: Assuming condition is false Montage-6.1/util/Calibrate/mCalibrate.c:280:19: note: Null pointer dereference Montage-6.1/util/Calibrate/mCalibrate.c:281:19: warning: If memory allocation fails, then there is a possible null pointer dereference: y [nullPointerOutOfMemory] Montage-6.1/util/Calibrate/mCalibrate.c:255:24: note: Assuming allocation function fails Montage-6.1/util/Calibrate/mCalibrate.c:255:8: note: Assignment 'y=(double*)malloc(nflux*sizeof(double))', assigned value is 0 Montage-6.1/util/Calibrate/mCalibrate.c:276:31: note: Assuming condition is false Montage-6.1/util/Calibrate/mCalibrate.c:281:19: note: Null pointer dereference Montage-6.1/util/Calibrate/mCalibrate.c:282:19: warning: If memory allocation fails, then there is a possible null pointer dereference: y [nullPointerOutOfMemory] Montage-6.1/util/Calibrate/mCalibrate.c:255:24: note: Assuming allocation function fails Montage-6.1/util/Calibrate/mCalibrate.c:255:8: note: Assignment 'y=(double*)malloc(nflux*sizeof(double))', assigned value is 0 Montage-6.1/util/Calibrate/mCalibrate.c:276:31: note: Assuming condition is false Montage-6.1/util/Calibrate/mCalibrate.c:282:19: note: Null pointer dereference Montage-6.1/util/Calibrate/mCalibrate.c:282:24: warning: If memory allocation fails, then there is a possible null pointer dereference: y [nullPointerOutOfMemory] Montage-6.1/util/Calibrate/mCalibrate.c:255:24: note: Assuming allocation function fails Montage-6.1/util/Calibrate/mCalibrate.c:255:8: note: Assignment 'y=(double*)malloc(nflux*sizeof(double))', assigned value is 0 Montage-6.1/util/Calibrate/mCalibrate.c:276:31: note: Assuming condition is false Montage-6.1/util/Calibrate/mCalibrate.c:282:24: note: Null pointer dereference Montage-6.1/util/Calibrate/mCalibrate.c:84:15: style: Variable 'loctime' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Calibrate/mCalibrate.c:344:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Calibrate/mCalibrate.c:62:11: style: Unused variable: sumx2 [unusedVariable] Montage-6.1/util/Calibrate/mCalibrate.c:64:11: style: Unused variable: sumxy [unusedVariable] Montage-6.1/util/Calibrate/mCalibrate.c:73:11: style: Unused variable: color [unusedVariable] Montage-6.1/util/CatMap/mCatMap.c:134:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DOUBLE_IMG [valueFlowBailoutIncompleteVar] Montage-6.1/util/CatMap/mCatMap.c:780:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/CatMap/mCatMap.c:928:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/CatMap/mCatMap.c:950:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/util/BestImage/mBestImage.c:274:55: style: Condition 'icd1_1>=0' is always true [knownConditionTrueFalse] Montage-6.1/util/BestImage/mBestImage.c:274:23: note: Assuming that condition 'icd1_1>=0' is not redundant Montage-6.1/util/BestImage/mBestImage.c:274:55: note: Condition 'icd1_1>=0' is always true Montage-6.1/util/BestImage/mBestImage.c:274:70: style: Condition 'icd1_2>=0' is always true [knownConditionTrueFalse] Montage-6.1/util/BestImage/mBestImage.c:274:39: note: Assuming that condition 'icd1_2>=0' is not redundant Montage-6.1/util/BestImage/mBestImage.c:274:70: note: Condition 'icd1_2>=0' is always true Montage-6.1/util/BestImage/mBestImage.c:274:44: style: Same expression 'icd1_1>=0' found multiple times in chain of '&&' operators. [duplicateExpression] Montage-6.1/util/BestImage/mBestImage.c:274:60: style: Same expression 'icd1_2>=0' found multiple times in chain of '&&' operators. [duplicateExpression] Montage-6.1/util/BestImage/mBestImage.c:762:16: style:inconclusive: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. [funcArgNamesDifferent] Montage-6.1/util/BestImage/mBestImage.c:39:23: note: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. Montage-6.1/util/BestImage/mBestImage.c:762:16: note: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. Montage-6.1/util/BestImage/mBestImage.c:762:25: style:inconclusive: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. [funcArgNamesDifferent] Montage-6.1/util/BestImage/mBestImage.c:39:31: note: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. Montage-6.1/util/BestImage/mBestImage.c:762:25: note: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. Montage-6.1/util/BestImage/mBestImage.c:762:34: style:inconclusive: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. [funcArgNamesDifferent] Montage-6.1/util/BestImage/mBestImage.c:39:39: note: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. Montage-6.1/util/BestImage/mBestImage.c:762:34: note: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. Montage-6.1/util/BestImage/mBestImage.c:805:23: style:inconclusive: Function 'Normalize' argument 1 names different: declaration 'a' definition 'v'. [funcArgNamesDifferent] Montage-6.1/util/BestImage/mBestImage.c:41:23: note: Function 'Normalize' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/util/BestImage/mBestImage.c:805:23: note: Function 'Normalize' argument 1 names different: declaration 'a' definition 'v'. Montage-6.1/util/BestImage/mBestImage.c:733:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/BestImage/mBestImage.c:762:16: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/BestImage/mBestImage.c:762:25: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/BestImage/mBestImage.c:785:17: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/BestImage/mBestImage.c:785:25: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/BestImage/mBestImage.c:60:34: style: Unused variable: c [unusedVariable] Montage-6.1/util/BestImage/mBestImage.c:65:50: style: Unused variable: len [unusedVariable] Montage-6.1/util/CatMap/mCatMap.c:361:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/CatMap/mCatMap.c:357:4: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] Montage-6.1/util/CatMap/mCatMap.c:355:28: note: Assuming allocation function fails Montage-6.1/util/CatMap/mCatMap.c:355:11: note: Assignment 'data=(double**)malloc(output.naxes[1]*sizeof(double*))', assigned value is 0 Montage-6.1/util/CatMap/mCatMap.c:357:4: note: Null pointer dereference Montage-6.1/util/CatMap/mCatMap.c:372:7: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] Montage-6.1/util/CatMap/mCatMap.c:355:28: note: Assuming allocation function fails Montage-6.1/util/CatMap/mCatMap.c:355:11: note: Assignment 'data=(double**)malloc(output.naxes[1]*sizeof(double*))', assigned value is 0 Montage-6.1/util/CatMap/mCatMap.c:372:7: note: Null pointer dereference Montage-6.1/util/CatMap/mCatMap.c:372:17: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] Montage-6.1/util/CatMap/mCatMap.c:355:28: note: Assuming allocation function fails Montage-6.1/util/CatMap/mCatMap.c:355:11: note: Assignment 'data=(double**)malloc(output.naxes[1]*sizeof(double*))', assigned value is 0 Montage-6.1/util/CatMap/mCatMap.c:372:17: note: Null pointer dereference Montage-6.1/util/CatMap/mCatMap.c:737:24: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/CatMap/mCatMap.c:979:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/CatSearch/mCatSearch.c:113:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/CatSearch/mCatSearch.c:252:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/CatSearch/mCatSearch.c:390:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Montage-6.1/util/CatSearch/mCatSearch.c:249:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] Montage-6.1/util/CatSearch/mCatSearch.c:265:4: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] Montage-6.1/util/CatSearch/mCatSearch.c:297:19: style: The comparison 'rc == 0' is always true. [knownConditionTrueFalse] Montage-6.1/util/CatSearch/mCatSearch.c:285:16: note: 'rc' is assigned value '0' here. Montage-6.1/util/CatSearch/mCatSearch.c:297:19: note: The comparison 'rc == 0' is always true. Montage-6.1/util/CatSearch/mCatSearch.c:242:23: style: Parameter 'hostname' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/CatSearch/mCatSearch.c:245:24: style: Variable 'host' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/CatSearch/mCatSearch.c:388:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/CatSearch/mCatSearch.c:51:9: style: Unused variable: i [unusedVariable] Montage-6.1/util/Examine/mExamine.c:272:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/lodepng_20140823/lodepng.c:1146:20: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] Montage-6.1/lib/src/lodepng_20140823/lodepng.c:1128:59: note: outer condition: code_ll<=285 Montage-6.1/lib/src/lodepng_20140823/lodepng.c:1146:20: note: opposite inner condition: code_ll==(unsigned int)(-1) Montage-6.1/lib/src/lodepng_20140823/lodepng.c:797:8: style: Condition '!error' is always true [knownConditionTrueFalse] Montage-6.1/lib/src/lodepng_20140823/lodepng.c:794:32: note: Calling function 'append_symbol_coins' returns 0 Montage-6.1/lib/src/lodepng_20140823/lodepng.c:794:32: note: Assignment 'error=append_symbol_coins(coins,frequencies,numcodes,sum)', assigned value is 0 Montage-6.1/lib/src/lodepng_20140823/lodepng.c:797:8: note: Condition '!error' is always true Montage-6.1/lib/src/lodepng_20140823/lodepng.c:800:36: style: Condition '!error' is always true [knownConditionTrueFalse] Montage-6.1/lib/src/lodepng_20140823/lodepng.c:794:32: note: Calling function 'append_symbol_coins' returns 0 Montage-6.1/lib/src/lodepng_20140823/lodepng.c:794:32: note: Assignment 'error=append_symbol_coins(coins,frequencies,numcodes,sum)', assigned value is 0 Montage-6.1/lib/src/lodepng_20140823/lodepng.c:800:36: note: Condition '!error' is always true Montage-6.1/lib/src/lodepng_20140823/lodepng.c:3679:6: style: Condition 'error' is always false [knownConditionTrueFalse] Montage-6.1/lib/src/lodepng_20140823/lodepng.c:3511:20: note: Assignment 'error=0', assigned value is 0 Montage-6.1/lib/src/lodepng_20140823/lodepng.c:3678:28: note: Calling function 'get_color_profile' returns 0 Montage-6.1/lib/src/lodepng_20140823/lodepng.c:3678:28: note: Assignment 'error=get_color_profile(&prof,image,w,h,mode_in)', assigned value is 0 Montage-6.1/lib/src/lodepng_20140823/lodepng.c:3679:6: note: Condition 'error' is always false Montage-6.1/lib/src/lodepng_20140823/lodepng.c:5017:7: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] Montage-6.1/lib/src/lodepng_20140823/lodepng.c:5022:7: note: Found duplicate branches for 'if' and 'else'. Montage-6.1/lib/src/lodepng_20140823/lodepng.c:5017:7: note: Found duplicate branches for 'if' and 'else'. Montage-6.1/util/Exec/mExec.c:387:81: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] Montage-6.1/util/Exec/mExec.c:3327:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Exec/mExec.c:3364:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/lib/src/lodepng_20140823/lodepng.c:1471:17: style: Checking if unsigned expression 'windowsize' is less than zero. [unsignedLessThanZero] Montage-6.1/lib/src/lodepng_20140823/lodepng.c:3508:49: style:inconclusive: Function 'get_color_profile' argument 2 names different: declaration 'image' definition 'in'. [funcArgNamesDifferent] Montage-6.1/lib/src/lodepng_20140823/lodepng.h:572:49: note: Function 'get_color_profile' argument 2 names different: declaration 'image' definition 'in'. Montage-6.1/lib/src/lodepng_20140823/lodepng.c:3508:49: note: Function 'get_color_profile' argument 2 names different: declaration 'image' definition 'in'. Montage-6.1/lib/src/lodepng_20140823/lodepng.c:3509:52: style:inconclusive: Function 'get_color_profile' argument 5 names different: declaration 'mode_in' definition 'mode'. [funcArgNamesDifferent] Montage-6.1/lib/src/lodepng_20140823/lodepng.h:573:52: note: Function 'get_color_profile' argument 5 names different: declaration 'mode_in' definition 'mode'. Montage-6.1/lib/src/lodepng_20140823/lodepng.c:3509:52: note: Function 'get_color_profile' argument 5 names different: declaration 'mode_in' definition 'mode'. Montage-6.1/lib/src/lodepng_20140823/lodepng.c:3431:22: style: Variable 'p' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/lodepng_20140823/lodepng.c:3692:20: style: Variable 'p' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/lodepng_20140823/lodepng.c:3947:18: style: Variable 'prevline' can be declared as pointer to const [constVariablePointer] Montage-6.1/lib/src/lodepng_20140823/lodepng.c:4835:56: style: Parameter 'zlibsettings' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/lodepng_20140823/lodepng.c:4875:56: style: Parameter 'zlibsettings' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/lodepng_20140823/lodepng.c:4902:102: style: Parameter 'zlibsettings' can be declared as pointer to const [constParameterPointer] Montage-6.1/lib/src/lodepng_20140823/lodepng.c:2684:3: style: int result is returned as long value. If the return value is long to avoid loss of information, then you have loss of information. [truncLongCastReturn] Montage-6.1/lib/src/lodepng_20140823/lodepng.c:322:33: style: Variable 'i' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Examine/mExamine.c:924:16: error: Common realloc mistake: 'ap' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/util/Examine/mExamine.c:1126:20: style: Variable 'ap1' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Examine/mExamine.c:1127:20: style: Variable 'ap2' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Examine/mExamine.c:125:11: style: Unused variable: dx [unusedVariable] Montage-6.1/util/Examine/mExamine.c:125:15: style: Unused variable: dy [unusedVariable] Montage-6.1/util/FixNaN/mFixNaN.c:123:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fstatus [valueFlowBailoutIncompleteVar] Montage-6.1/util/FixNaN/mFixNaN.c:592:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/util/FixNaN/mFixNaN.c:633:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Montage-6.1/util/FixNaN/mFixNaN.c:648:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/util/Exec/mExec.c:1310:13: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] Montage-6.1/util/Exec/mExec.c:1160:10: note: outer condition: !userRaw Montage-6.1/util/Exec/mExec.c:1310:13: note: identical inner condition: !userRaw Montage-6.1/util/Hdr/mHdr.c:87:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] Montage-6.1/util/Hdr/mHdr.c:299:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Exec/mExec.c:2057:20: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/util/Exec/mExec.c:1970:20: note: First condition Montage-6.1/util/Exec/mExec.c:2057:20: note: Second condition Montage-6.1/util/Exec/mExec.c:2253:20: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/util/Exec/mExec.c:2057:20: note: First condition Montage-6.1/util/Exec/mExec.c:2253:20: note: Second condition Montage-6.1/util/Exec/mExec.c:2308:20: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/util/Exec/mExec.c:2253:20: note: First condition Montage-6.1/util/Exec/mExec.c:2308:20: note: Second condition Montage-6.1/util/Exec/mExec.c:2525:20: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/util/Exec/mExec.c:2308:20: note: First condition Montage-6.1/util/Exec/mExec.c:2525:20: note: Second condition Montage-6.1/util/Exec/mExec.c:819:9: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/util/Exec/mExec.c:2410:16: style: Variable 'ncols' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/util/Exec/mExec.c:2349:16: note: ncols is assigned Montage-6.1/util/Exec/mExec.c:2410:16: note: ncols is overwritten Montage-6.1/util/Exec/mExec.c:2814:16: style: Variable 'ncols' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/util/Exec/mExec.c:2410:16: note: ncols is assigned Montage-6.1/util/Exec/mExec.c:2814:16: note: ncols is overwritten Montage-6.1/util/Exec/mExec.c:228:11: style: Local variable 'cntr' shadows outer variable [shadowVariable] Montage-6.1/util/Exec/mExec.c:75:13: note: Shadowed declaration Montage-6.1/util/Exec/mExec.c:228:11: note: Shadow variable Montage-6.1/util/Exec/mExec.c:201:28: style: Variable 'wcsin' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Exec/mExec.c:3314:20: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Exec/mExec.c:3335:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Exec/mExec.c:3362:21: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Exec/mExec.c:2814:16: style: Variable 'ncols' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Exec/mExec.c:2874:16: style: Variable 'ncols' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Exec/mExec.c:197:11: style: Unused variable: ftmp [unusedVariable] Montage-6.1/util/Hdr/mHdr.c:296:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] Montage-6.1/util/Hdr/mHdr.c:312:4: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] Montage-6.1/util/Hdr/mHdr.c:384:7: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/util/Hdr/mHdr.c:378:34: note: Assuming allocation function fails Montage-6.1/util/Hdr/mHdr.c:378:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/util/Hdr/mHdr.c:384:7: note: Null pointer dereference Montage-6.1/util/Hdr/mHdr.c:386:11: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/util/Hdr/mHdr.c:378:34: note: Assuming allocation function fails Montage-6.1/util/Hdr/mHdr.c:378:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/util/Hdr/mHdr.c:386:11: note: Null pointer dereference Montage-6.1/util/Hdr/mHdr.c:405:4: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] Montage-6.1/util/Hdr/mHdr.c:378:34: note: Assuming allocation function fails Montage-6.1/util/Hdr/mHdr.c:378:10: note: Assignment 'str=(unsigned char*)malloc(3*strlen(s)+1)', assigned value is 0 Montage-6.1/util/Hdr/mHdr.c:405:4: note: Null pointer dereference Montage-6.1/util/Hdr/mHdr.c:346:19: style: The comparison 'rc == 0' is always true. [knownConditionTrueFalse] Montage-6.1/util/Hdr/mHdr.c:334:16: note: 'rc' is assigned value '0' here. Montage-6.1/util/Hdr/mHdr.c:346:19: note: The comparison 'rc == 0' is always true. Montage-6.1/util/Hdr/mHdr.c:60:11: style: Variable 'locstr' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Hdr/mHdr.c:61:11: style: Variable 'widthstr' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Hdr/mHdr.c:289:23: style: Parameter 'hostname' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Hdr/mHdr.c:292:24: style: Variable 'host' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Hdr/mHdr.c:370:24: style: Parameter 's' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/FixNaN/mFixNaN.c:345:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/FixNaN/mFixNaN.c:354:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/FixNaN/mFixNaN.c:646:25: style:inconclusive: Function 'printFitsError' argument 1 names different: declaration 'err' definition 'status'. [funcArgNamesDifferent] Montage-6.1/util/FixNaN/mFixNaN.c:44:25: note: Function 'printFitsError' argument 1 names different: declaration 'err' definition 'status'. Montage-6.1/util/FixNaN/mFixNaN.c:646:25: note: Function 'printFitsError' argument 1 names different: declaration 'err' definition 'status'. Montage-6.1/util/FixNaN/mFixNaN.c:631:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/FixNaN/mFixNaN.c:81:45: style: Unused variable: testcnt [unusedVariable] Montage-6.1/util/MovingTarget/rtree/index.c:124:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/MovingTarget/rtree/index.c:342:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/MovingTarget/rtree/index.c:468:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/MovingTarget/rtree/index.c:105:12: style: Condition 'sdebug' is always false [knownConditionTrueFalse] Montage-6.1/util/MovingTarget/rtree/index.c:96:22: note: Assignment 'sdebug=0', assigned value is 0 Montage-6.1/util/MovingTarget/rtree/index.c:105:12: note: Condition 'sdebug' is always false Montage-6.1/util/MovingTarget/rtree/index.c:311:35: style: Condition 'count>dumpcount' is always false [knownConditionTrueFalse] Montage-6.1/util/MovingTarget/rtree/index.c:296:36: note: Assignment 'count=0', assigned value is 0 Montage-6.1/util/MovingTarget/rtree/index.c:309:11: note: count is incremented', new value is 1 Montage-6.1/util/MovingTarget/rtree/index.c:311:22: note: Assuming that condition 'dumpcount>0' is not redundant Montage-6.1/util/MovingTarget/rtree/index.c:311:35: note: Condition 'count>dumpcount' is always false Montage-6.1/util/MovingTarget/rtree/index.c:464:7: style: Condition 'refdebug' is always false [knownConditionTrueFalse] Montage-6.1/util/MovingTarget/rtree/index.c:431:19: note: Assignment 'refdebug=0', assigned value is 0 Montage-6.1/util/MovingTarget/rtree/index.c:464:7: note: Condition 'refdebug' is always false Montage-6.1/util/MovingTarget/rtree/index.c:606:20: portability: %ld in format string (no. 4) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/MovingTarget/rtree/index.c:628:20: portability: %ld in format string (no. 4) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/MovingTarget/rtree/index.c:130:33: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] Montage-6.1/util/MovingTarget/rtree/index.c:133:33: note: Found duplicate branches for 'if' and 'else'. Montage-6.1/util/MovingTarget/rtree/index.c:130:33: note: Found duplicate branches for 'if' and 'else'. Montage-6.1/util/MovingTarget/rtree/index.c:60:11: style: Variable 'x' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/util/MovingTarget/rtree/index.c:55:11: note: x is assigned Montage-6.1/util/MovingTarget/rtree/index.c:60:11: note: x is overwritten Montage-6.1/util/MovingTarget/rtree/index.c:446:24: style: Redundant initialization for 'n'. The initialized value is overwritten before it is read. [redundantInitialization] Montage-6.1/util/MovingTarget/rtree/index.c:423:28: note: n is initialized Montage-6.1/util/MovingTarget/rtree/index.c:446:24: note: n is overwritten Montage-6.1/util/MovingTarget/rtree/index.c:447:24: style: Redundant initialization for 'm'. The initialized value is overwritten before it is read. [redundantInitialization] Montage-6.1/util/MovingTarget/rtree/index.c:424:28: note: m is initialized Montage-6.1/util/MovingTarget/rtree/index.c:447:24: note: m is overwritten Montage-6.1/util/MovingTarget/rtree/index.c:721:71: style:inconclusive: Function 'RTreeInsertRect' argument 4 names different: declaration 'depth' definition 'Level'. [funcArgNamesDifferent] Montage-6.1/util/MovingTarget/rtree/index.h:92:67: note: Function 'RTreeInsertRect' argument 4 names different: declaration 'depth' definition 'Level'. Montage-6.1/util/MovingTarget/rtree/index.c:721:71: note: Function 'RTreeInsertRect' argument 4 names different: declaration 'depth' definition 'Level'. Montage-6.1/util/MovingTarget/rtree/index.c:176:15: style: Variable 'index' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/MovingTarget/rtree/index.c:201:9: style: Variable 'count' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/JPEG/mJPEG.c:288:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fstatus [valueFlowBailoutIncompleteVar] Montage-6.1/util/JPEG/mJPEG.c:2644:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fstatus [valueFlowBailoutIncompleteVar] Montage-6.1/util/JPEG/mJPEG.c:2784:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/util/JPEG/mJPEG.c:3075:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] Montage-6.1/util/JPEG/mJPEG.c:3255:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TDOUBLE [valueFlowBailoutIncompleteVar] Montage-6.1/util/JPEG/mJPEG.c:3531:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/JPEG/mJPEG.c:3574:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/MovingTarget/rtree/mfmalloc.c:27:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] Montage-6.1/util/MovingTarget/rtree/mfmalloc.c:75:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/MovingTarget/rtree/mfmalloc.c:43:7: error: Resource leak: fd [resourceLeak] Montage-6.1/util/MovingTarget/rtree/mfmalloc.c:57:4: error: Resource leak: fd [resourceLeak] Montage-6.1/util/MovingTarget/rtree/mfmalloc.c:21:18: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/MovingTarget/rtree/node.c:86:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/MovingTarget/rtree/node.c:173:5: style: Variable 'bestIncr' is assigned an expression that holds the same value. [redundantAssignment] Montage-6.1/util/MovingTarget/rtree/node.c:169:22: note: Assuming that condition 'increase==bestIncr' is not redundant Montage-6.1/util/MovingTarget/rtree/node.c:173:5: note: Variable 'bestIncr' is assigned an expression that holds the same value. Montage-6.1/util/MovingTarget/rtree/rect.c:138:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/MovingTarget/rtree/rect.c:345:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/MovingTarget/rtree/rect.c:336:5: style: Condition 'odebug' is always false [knownConditionTrueFalse] Montage-6.1/util/MovingTarget/rtree/rect.c:334:15: note: Assignment 'odebug=0', assigned value is 0 Montage-6.1/util/MovingTarget/rtree/rect.c:336:5: note: Condition 'odebug' is always false Montage-6.1/util/MovingTarget/mMovingTarget.c:503:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] Montage-6.1/util/MovingTarget/mMovingTarget.c:4114:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/MovingTarget/mMovingTarget.c:4185:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/MovingTarget/mMovingTarget.c:4528:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Pad/mPad.c:111:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fstatus [valueFlowBailoutIncompleteVar] Montage-6.1/util/Pad/mPad.c:683:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nowcs [valueFlowBailoutIncompleteVar] Montage-6.1/util/Pad/mPad.c:734:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] Montage-6.1/util/Pad/mPad.c:749:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/util/Pad/mPad.c:409:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/Pad/mPad.c:418:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/Pad/mPad.c:268:10: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/util/Pad/mPad.c:747:25: style:inconclusive: Function 'printFitsError' argument 1 names different: declaration 'err' definition 'status'. [funcArgNamesDifferent] Montage-6.1/util/Pad/mPad.c:29:25: note: Function 'printFitsError' argument 1 names different: declaration 'err' definition 'status'. Montage-6.1/util/Pad/mPad.c:747:25: note: Function 'printFitsError' argument 1 names different: declaration 'err' definition 'status'. Montage-6.1/util/Pad/mPad.c:677:22: style: Variable 'wcs' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Pad/mPad.c:732:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Pad/mPad.c:714:20: error: Uninitialized variable: wcs [uninitvar] Montage-6.1/util/Pad/mPad.c:66:25: style: Unused variable: joffset [unusedVariable] Montage-6.1/util/Pix2Coord/mFixHdr.c:73:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] Montage-6.1/util/Pix2Coord/mPix2Coord.c:82:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/JPEG/mJPEG.c:1806:29: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] Montage-6.1/util/JPEG/mJPEG.c:1883:31: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] Montage-6.1/util/JPEG/mJPEG.c:1961:30: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] Montage-6.1/util/JPEG/mJPEG.c:2503:30: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] Montage-6.1/util/Pix2Coord/mPix2Coord.c:61:33: style: Unused variable: invert [unusedVariable] Montage-6.1/util/Pix2Coord/mPix2Coord.c:61:41: style: Unused variable: naxis2 [unusedVariable] Montage-6.1/util/JPEG/mJPEG.c:442:6: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] Montage-6.1/util/JPEG/mJPEG.c:447:6: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] Montage-6.1/util/JPEG/mJPEG.c:452:6: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] Montage-6.1/util/Rotate/mRotate.c:143:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fstatus [valueFlowBailoutIncompleteVar] Montage-6.1/util/Rotate/mRotate.c:960:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/util/Rotate/mRotate.c:1078:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fstatus [valueFlowBailoutIncompleteVar] Montage-6.1/util/Rotate/mRotate.c:1093:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/util/Rotate/mRotate.c:1140:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Rotate/mRotate.c:1166:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/JPEG/mJPEG.c:2618:29: style: Local variable 'wcs' shadows outer variable [shadowVariable] Montage-6.1/util/JPEG/mJPEG.c:96:19: note: Shadowed declaration Montage-6.1/util/JPEG/mJPEG.c:2618:29: note: Shadow variable Montage-6.1/util/JPEG/mJPEG.c:2651:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/JPEG/mJPEG.c:2805:12: style: Variable 'dn' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/JPEG/mJPEG.c:2805:17: style: Variable 'red_tbl' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/JPEG/mJPEG.c:2805:27: style: Variable 'grn_tbl' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/JPEG/mJPEG.c:2805:37: style: Variable 'blue_tbl' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/JPEG/mJPEG.c:3190:37: style: Parameter 'minstr' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/JPEG/mJPEG.c:3190:51: style: Parameter 'maxstr' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/JPEG/mJPEG.c:3192:24: style: Parameter 'betastr' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/JPEG/mJPEG.c:3591:16: style: Variable 'end' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/JPEG/mJPEG.c:3716:11: style: Variable 'a' can be declared as const array [constVariable] Montage-6.1/util/JPEG/mJPEG.c:3720:11: style: Variable 'b' can be declared as const array [constVariable] Montage-6.1/util/JPEG/mJPEG.c:3724:11: style: Variable 'a1' can be declared as const array [constVariable] Montage-6.1/util/JPEG/mJPEG.c:3729:11: style: Variable 'b1' can be declared as const array [constVariable] Montage-6.1/util/JPEG/mJPEG.c:3734:11: style: Variable 'a2' can be declared as const array [constVariable] Montage-6.1/util/JPEG/mJPEG.c:3740:11: style: Variable 'b2' can be declared as const array [constVariable] Montage-6.1/util/JPEG/mJPEG.c:3745:11: style: Variable 'a3' can be declared as const array [constVariable] Montage-6.1/util/JPEG/mJPEG.c:3751:11: style: Variable 'b3' can be declared as const array [constVariable] Montage-6.1/util/JPEG/mJPEG.c:3226:17: warning: Uninitialized variable: betaval [uninitvar] Montage-6.1/util/JPEG/mJPEG.c:3217:13: note: Assuming condition is false Montage-6.1/util/JPEG/mJPEG.c:3226:17: note: Uninitialized variable: betaval Montage-6.1/util/JPEG/mJPEG.c:3226:27: warning: Uninitialized variable: betaextra [uninitvar] Montage-6.1/util/JPEG/mJPEG.c:3217:13: note: Assuming condition is false Montage-6.1/util/JPEG/mJPEG.c:3226:27: note: Uninitialized variable: betaextra Montage-6.1/util/JPEG/mJPEG.c:3230:7: warning: Uninitialized variable: betatype [uninitvar] Montage-6.1/util/JPEG/mJPEG.c:3217:13: note: Assuming condition is false Montage-6.1/util/JPEG/mJPEG.c:3230:7: note: Uninitialized variable: betatype Montage-6.1/util/JPEG/mJPEG.c:1463:14: style: Variable 'usemark[i]' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/JPEG/mJPEG.c:1481:17: style: Variable 'usemark[i]' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/JPEG/mJPEG.c:1789:15: style: Variable 'index' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/JPEG/mJPEG.c:1866:15: style: Variable 'index' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/JPEG/mJPEG.c:1944:15: style: Variable 'index' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/JPEG/mJPEG.c:2255:14: style: Variable 'usemark[i]' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/JPEG/mJPEG.c:2268:17: style: Variable 'usemark[i]' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/JPEG/mJPEG.c:2685:18: style: Variable 'umin' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Rotate/mRotate.c:655:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/Rotate/mRotate.c:669:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/JPEG/mJPEG.c:3201:12: style: Unused variable: valstr [unusedVariable] Montage-6.1/util/JPEG/mJPEG.c:3202:12: style: Unused variable: end [unusedVariable] Montage-6.1/util/JPEG/mJPEG.c:3203:12: style: Unused variable: ptr [unusedVariable] Montage-6.1/util/Rotate/mRotate.c:298:10: style: Variable 'maxsize' is assigned an expression that holds the same value. [redundantAssignment] Montage-6.1/util/Rotate/mRotate.c:295:15: note: maxsize is assigned 'xsize' here. Montage-6.1/util/Rotate/mRotate.c:298:10: note: Variable 'maxsize' is assigned an expression that holds the same value. Montage-6.1/util/Rotate/mRotate.c:1076:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Rotate/mRotate.c:513:11: warning: Uninitialized variable: inxpix [uninitvar] Montage-6.1/util/Rotate/mRotate.c:352:7: note: Assuming condition is false Montage-6.1/util/Rotate/mRotate.c:513:11: note: Uninitialized variable: inxpix Montage-6.1/util/Rotate/mRotate.c:513:19: warning: Uninitialized variable: inypix [uninitvar] Montage-6.1/util/Rotate/mRotate.c:352:7: note: Assuming condition is false Montage-6.1/util/Rotate/mRotate.c:513:19: note: Uninitialized variable: inypix Montage-6.1/util/Rotate/mRotate.c:295:15: style: Variable 'maxsize' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Rotate/mRotate.c:298:18: style: Variable 'maxsize' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Search/rtree/index.c:124:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Search/rtree/index.c:365:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Search/rtree/index.c:491:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Search/rtree/index.c:105:5: style: Condition 'sdebug' is always false [knownConditionTrueFalse] Montage-6.1/util/Search/rtree/index.c:96:15: note: Assignment 'sdebug=0', assigned value is 0 Montage-6.1/util/Search/rtree/index.c:105:5: note: Condition 'sdebug' is always false Montage-6.1/util/Search/rtree/index.c:334:28: style: Condition 'count>dumpcount' is always false [knownConditionTrueFalse] Montage-6.1/util/Search/rtree/index.c:319:36: note: Assignment 'count=0', assigned value is 0 Montage-6.1/util/Search/rtree/index.c:332:4: note: count is incremented', new value is 1 Montage-6.1/util/Search/rtree/index.c:334:15: note: Assuming that condition 'dumpcount>0' is not redundant Montage-6.1/util/Search/rtree/index.c:334:28: note: Condition 'count>dumpcount' is always false Montage-6.1/util/Search/rtree/index.c:487:7: style: Condition 'refdebug' is always false [knownConditionTrueFalse] Montage-6.1/util/Search/rtree/index.c:454:19: note: Assignment 'refdebug=0', assigned value is 0 Montage-6.1/util/Search/rtree/index.c:487:7: note: Condition 'refdebug' is always false Montage-6.1/util/Search/rtree/index.c:629:6: portability: %ld in format string (no. 4) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/Search/rtree/index.c:651:6: portability: %ld in format string (no. 4) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/Search/rtree/index.c:130:5: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] Montage-6.1/util/Search/rtree/index.c:156:5: note: Found duplicate branches for 'if' and 'else'. Montage-6.1/util/Search/rtree/index.c:130:5: note: Found duplicate branches for 'if' and 'else'. Montage-6.1/util/Search/rtree/index.c:60:4: style: Variable 'x' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/util/Search/rtree/index.c:55:4: note: x is assigned Montage-6.1/util/Search/rtree/index.c:60:4: note: x is overwritten Montage-6.1/util/Search/rtree/index.c:469:24: style: Redundant initialization for 'n'. The initialized value is overwritten before it is read. [redundantInitialization] Montage-6.1/util/Search/rtree/index.c:446:28: note: n is initialized Montage-6.1/util/Search/rtree/index.c:469:24: note: n is overwritten Montage-6.1/util/Search/rtree/index.c:470:24: style: Redundant initialization for 'm'. The initialized value is overwritten before it is read. [redundantInitialization] Montage-6.1/util/Search/rtree/index.c:447:28: note: m is initialized Montage-6.1/util/Search/rtree/index.c:470:24: note: m is overwritten Montage-6.1/util/Search/rtree/index.c:744:71: style:inconclusive: Function 'RTreeInsertRect' argument 4 names different: declaration 'depth' definition 'Level'. [funcArgNamesDifferent] Montage-6.1/util/Search/rtree/index.h:92:67: note: Function 'RTreeInsertRect' argument 4 names different: declaration 'depth' definition 'Level'. Montage-6.1/util/Search/rtree/index.c:744:71: note: Function 'RTreeInsertRect' argument 4 names different: declaration 'depth' definition 'Level'. Montage-6.1/util/Search/rtree/index.c:199:15: style: Variable 'index' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Search/rtree/index.c:224:2: style: Variable 'count' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Search/rtree/mfmalloc.c:27:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] Montage-6.1/util/Search/rtree/mfmalloc.c:75:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Search/rtree/mfmalloc.c:43:7: error: Resource leak: fd [resourceLeak] Montage-6.1/util/Search/rtree/mfmalloc.c:57:4: error: Resource leak: fd [resourceLeak] Montage-6.1/util/Search/rtree/mfmalloc.c:21:18: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Search/mSearch.c:456:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] Montage-6.1/util/Search/mSearch.c:3752:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Search/mSearch.c:3823:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Search/mSearch.c:4193:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Search/rtree/node.c:86:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Search/rtree/node.c:173:5: style: Variable 'bestIncr' is assigned an expression that holds the same value. [redundantAssignment] Montage-6.1/util/Search/rtree/node.c:169:22: note: Assuming that condition 'increase==bestIncr' is not redundant Montage-6.1/util/Search/rtree/node.c:173:5: note: Variable 'bestIncr' is assigned an expression that holds the same value. Montage-6.1/util/Search/rtree/rect.c:138:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Search/rtree/rect.c:345:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Search/rtree/rect.c:336:5: style: Condition 'odebug' is always false [knownConditionTrueFalse] Montage-6.1/util/Search/rtree/rect.c:334:15: note: Assignment 'odebug=0', assigned value is 0 Montage-6.1/util/Search/rtree/rect.c:336:5: note: Condition 'odebug' is always false Montage-6.1/util/Search/rtree/test.c:36:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Search/rtree/test.c:44:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/ShrinkHdr/mShrinkHdr.c:77:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/ShrinkHdr/mShrinkHdr.c:231:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/ShrinkHdr/mShrinkHdr.c:196:24: style: Parameter 'template' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/ShrinkHdr/mShrinkHdr.c:262:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/ShrinkHdr/mShrinkHdr.c:288:23: style: Parameter 'header' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/MovingTarget/mMovingTarget.c:2149:16: error: Buffer is accessed out of bounds: line [bufferAccessOutOfBounds] Montage-6.1/util/TblExec/mTblExec.c:103:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] Montage-6.1/util/MovingTarget/mMovingTarget.c:1999:27: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/util/MovingTarget/mMovingTarget.c:1990:27: note: First condition Montage-6.1/util/MovingTarget/mMovingTarget.c:1999:27: note: Second condition Montage-6.1/util/MovingTarget/mMovingTarget.c:773:10: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/util/MovingTarget/mMovingTarget.c:773:10: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] Montage-6.1/util/MovingTarget/mMovingTarget.c:773:10: portability: %lu in format string (no. 4) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/util/MovingTarget/mMovingTarget.c:849:10: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/MovingTarget/mMovingTarget.c:849:10: portability: %lu in format string (no. 4) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/util/MovingTarget/mMovingTarget.c:871:10: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/MovingTarget/mMovingTarget.c:871:10: portability: %lu in format string (no. 4) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/util/MovingTarget/mMovingTarget.c:882:7: portability: %ld in format string (no. 4) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/MovingTarget/mMovingTarget.c:1025:16: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/MovingTarget/mMovingTarget.c:1025:16: portability: %lu in format string (no. 4) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/util/MovingTarget/mMovingTarget.c:1122:16: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/MovingTarget/mMovingTarget.c:1122:16: portability: %ld in format string (no. 4) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/MovingTarget/mMovingTarget.c:1242:13: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/MovingTarget/mMovingTarget.c:1242:13: portability: %lu in format string (no. 4) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/util/MovingTarget/mMovingTarget.c:1296:13: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/MovingTarget/mMovingTarget.c:1296:13: portability: %lu in format string (no. 4) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/util/MovingTarget/mMovingTarget.c:2251:10: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/util/MovingTarget/mMovingTarget.c:4139:40: style:inconclusive: Function 'overlapCallback' argument 1 names different: declaration 'id' definition 'index'. [funcArgNamesDifferent] Montage-6.1/util/MovingTarget/mMovingTarget.c:214:40: note: Function 'overlapCallback' argument 1 names different: declaration 'id' definition 'index'. Montage-6.1/util/MovingTarget/mMovingTarget.c:4139:40: note: Function 'overlapCallback' argument 1 names different: declaration 'id' definition 'index'. Montage-6.1/util/MovingTarget/mMovingTarget.c:4543:16: style:inconclusive: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. [funcArgNamesDifferent] Montage-6.1/util/MovingTarget/mMovingTarget.c:196:26: note: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. Montage-6.1/util/MovingTarget/mMovingTarget.c:4543:16: note: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. Montage-6.1/util/MovingTarget/mMovingTarget.c:4543:25: style:inconclusive: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. [funcArgNamesDifferent] Montage-6.1/util/MovingTarget/mMovingTarget.c:196:34: note: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. Montage-6.1/util/MovingTarget/mMovingTarget.c:4543:25: note: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. Montage-6.1/util/MovingTarget/mMovingTarget.c:4543:34: style:inconclusive: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. [funcArgNamesDifferent] Montage-6.1/util/MovingTarget/mMovingTarget.c:196:42: note: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. Montage-6.1/util/MovingTarget/mMovingTarget.c:4543:34: note: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. Montage-6.1/util/MovingTarget/mMovingTarget.c:3998:11: style: Local variable 'ra' shadows outer variable [shadowVariable] Montage-6.1/util/MovingTarget/mMovingTarget.c:143:11: note: Shadowed declaration Montage-6.1/util/MovingTarget/mMovingTarget.c:3998:11: note: Shadow variable Montage-6.1/util/MovingTarget/mMovingTarget.c:3998:15: style: Local variable 'dec' shadows outer variable [shadowVariable] Montage-6.1/util/MovingTarget/mMovingTarget.c:143:15: note: Shadowed declaration Montage-6.1/util/MovingTarget/mMovingTarget.c:3998:15: note: Shadow variable Montage-6.1/util/MovingTarget/mMovingTarget.c:382:29: style: Variable 'end' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/MovingTarget/mMovingTarget.c:4543:16: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/MovingTarget/mMovingTarget.c:4543:25: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/MovingTarget/mMovingTarget.c:4566:17: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/MovingTarget/mMovingTarget.c:4566:25: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/MovingTarget/mMovingTarget.c:4624:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/MovingTarget/mMovingTarget.c:4439:34: error: Uninitialized variable: dist [legacyUninitvar] Montage-6.1/util/MovingTarget/mMovingTarget.c:355:11: style: Unused variable: ibig [unusedVariable] Montage-6.1/util/MovingTarget/mMovingTarget.c:356:11: style: Unused variable: bigstr [unusedVariable] Montage-6.1/util/MovingTarget/mMovingTarget.c:379:41: style: Unused variable: dup [unusedVariable] Montage-6.1/util/MovingTarget/mMovingTarget.c:402:15: style: Unused variable: naxis1 [unusedVariable] Montage-6.1/util/MovingTarget/mMovingTarget.c:403:15: style: Unused variable: naxis2 [unusedVariable] Montage-6.1/util/MovingTarget/mMovingTarget.c:437:24: style: Unused variable: padMatch [unusedVariable] Montage-6.1/util/MovingTarget/mMovingTarget.c:450:11: style: Unused variable: tmp [unusedVariable] Montage-6.1/util/MovingTarget/mMovingTarget.c:4026:11: style: Variable 'ra' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/MovingTarget/mMovingTarget.c:4027:11: style: Variable 'dec' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/MovingTarget/mMovingTarget.c:4145:11: style: Unused variable: normal [unusedVariable] Montage-6.1/util/MovingTarget/mMovingTarget.c:4568:8: style: Unused variable: i [unusedVariable] Montage-6.1/util/TblExec/mTblExec.c:145:25: warning: Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead. [prohibitedmktempCalled] Montage-6.1/util/TblExec/mTblExec.c:171:20: warning: Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead. [prohibitedmktempCalled] Montage-6.1/util/TblExec/mTblExec.c:50:11: style: Unused variable: msg [unusedVariable] Montage-6.1/util/Viewer/graphics.c:247:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FT_Err_Unknown_File_Format [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/graphics.c:888:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FT_Err_Unknown_File_Format [valueFlowBailoutIncompleteVar] Montage-6.1/util/Transpose/mTranspose.c:121:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Transpose/mTranspose.c:728:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TSTRING [valueFlowBailoutIncompleteVar] Montage-6.1/util/Transpose/mTranspose.c:915:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/graphics.c:459:12: style: Variable 'xpix' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/util/Viewer/graphics.c:447:12: note: xpix is assigned Montage-6.1/util/Viewer/graphics.c:459:12: note: xpix is overwritten Montage-6.1/util/Viewer/graphics.c:460:12: style: Variable 'ypix' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/util/Viewer/graphics.c:448:12: note: ypix is assigned Montage-6.1/util/Viewer/graphics.c:460:12: note: ypix is overwritten Montage-6.1/util/Viewer/graphics.c:66:22: style: Local variable 'frac' shadows outer function [shadowFunction] Montage-6.1/util/Viewer/graphics.c:14:8: note: Shadowed declaration Montage-6.1/util/Viewer/graphics.c:66:22: note: Shadow variable Montage-6.1/util/Viewer/graphics.c:38:29: style: Parameter 'xcurve' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/graphics.c:38:45: style: Parameter 'ycurve' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/graphics.c:39:27: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/graphics.c:519:20: style: Parameter 'xcurve' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/graphics.c:519:36: style: Parameter 'ycurve' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/graphics.c:777:59: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/graphics.c:73:8: style: Variable 'dtr' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Viewer/graphics.c:322:28: style: Variable 'path_length1_ang' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Viewer/graphics.c:71:8: style: Unused variable: ii [unusedVariable] Montage-6.1/util/Viewer/graphics.c:71:12: style: Unused variable: jj [unusedVariable] Montage-6.1/util/Transpose/mTranspose.c:426:7: warning: If memory allocation fails, then there is a possible null pointer dereference: outdata [nullPointerOutOfMemory] Montage-6.1/util/Transpose/mTranspose.c:416:33: note: Assuming allocation function fails Montage-6.1/util/Transpose/mTranspose.c:416:14: note: Assignment 'outdata=(double****)malloc(nAxisOut[3]*sizeof(double***))', assigned value is 0 Montage-6.1/util/Transpose/mTranspose.c:426:7: note: Null pointer dereference Montage-6.1/util/Transpose/mTranspose.c:436:10: warning: If memory allocation fails, then there is a possible null pointer dereference: outdata [nullPointerOutOfMemory] Montage-6.1/util/Transpose/mTranspose.c:416:33: note: Assuming allocation function fails Montage-6.1/util/Transpose/mTranspose.c:416:14: note: Assignment 'outdata=(double****)malloc(nAxisOut[3]*sizeof(double***))', assigned value is 0 Montage-6.1/util/Transpose/mTranspose.c:436:10: note: Null pointer dereference Montage-6.1/util/Transpose/mTranspose.c:815:26: style: Parameter 'keyname' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Transpose/mTranspose.c:815:41: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Transpose/mTranspose.c:898:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Transpose/mTranspose.c:932:25: style: Parameter 'naxis' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/mHistogram.c:156:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fstatus [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mHistogram.c:483:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mHistogram.c:512:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mHistogram.c:687:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TDOUBLE [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mHistogram.c:951:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mHistogram.c:994:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/grid.c:167:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EQUB [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/grid.c:669:7: warning: If memory allocation fails, then there is a possible null pointer dereference: lonlab_index [nullPointerOutOfMemory] Montage-6.1/util/Viewer/grid.c:666:25: note: Assuming allocation function fails Montage-6.1/util/Viewer/grid.c:666:25: note: Assignment 'lonlab_index=malloc(nlon*sizeof(int))', assigned value is 0 Montage-6.1/util/Viewer/grid.c:669:7: note: Null pointer dereference Montage-6.1/util/Viewer/grid.c:1203:14: style: Redundant assignment of 'lat' to itself. [selfAssignment] Montage-6.1/util/Viewer/grid.c:1110:23: style:inconclusive: Function 'great_circle' argument 4 names different: declaration 'csysgrid' definition 'csys'. [funcArgNamesDifferent] Montage-6.1/util/Viewer/grid.c:36:27: note: Function 'great_circle' argument 4 names different: declaration 'csysgrid' definition 'csys'. Montage-6.1/util/Viewer/grid.c:1110:23: note: Function 'great_circle' argument 4 names different: declaration 'csysgrid' definition 'csys'. Montage-6.1/util/Viewer/grid.c:1110:36: style:inconclusive: Function 'great_circle' argument 5 names different: declaration 'epochgrid' definition 'epoch'. [funcArgNamesDifferent] Montage-6.1/util/Viewer/grid.c:36:44: note: Function 'great_circle' argument 5 names different: declaration 'epochgrid' definition 'epoch'. Montage-6.1/util/Viewer/grid.c:1110:36: note: Function 'great_circle' argument 5 names different: declaration 'epochgrid' definition 'epoch'. Montage-6.1/util/Viewer/grid.c:1243:20: style:inconclusive: Function 'symbol' argument 6 names different: declaration 'clon' definition 'inlon'. [funcArgNamesDifferent] Montage-6.1/util/Viewer/grid.c:43:30: note: Function 'symbol' argument 6 names different: declaration 'clon' definition 'inlon'. Montage-6.1/util/Viewer/grid.c:1243:20: note: Function 'symbol' argument 6 names different: declaration 'clon' definition 'inlon'. Montage-6.1/util/Viewer/grid.c:1243:35: style:inconclusive: Function 'symbol' argument 7 names different: declaration 'clat' definition 'inlat'. [funcArgNamesDifferent] Montage-6.1/util/Viewer/grid.c:43:44: note: Function 'symbol' argument 7 names different: declaration 'clat' definition 'inlat'. Montage-6.1/util/Viewer/grid.c:1243:35: note: Function 'symbol' argument 7 names different: declaration 'clat' definition 'inlat'. Montage-6.1/util/Viewer/grid.c:1244:20: style:inconclusive: Function 'symbol' argument 9 names different: declaration 'symsize' definition 'radius'. [funcArgNamesDifferent] Montage-6.1/util/Viewer/grid.c:44:30: note: Function 'symbol' argument 9 names different: declaration 'symsize' definition 'radius'. Montage-6.1/util/Viewer/grid.c:1244:20: note: Function 'symbol' argument 9 names different: declaration 'symsize' definition 'radius'. Montage-6.1/util/Viewer/grid.c:111:11: style: Unused variable: ii [unusedVariable] Montage-6.1/util/Viewer/grid.c:111:27: style: Unused variable: ilat_label [unusedVariable] Montage-6.1/util/Viewer/grid.c:135:11: style: Unused variable: lon_lab [unusedVariable] Montage-6.1/util/Viewer/grid.c:136:11: style: Unused variable: lat_lab [unusedVariable] Montage-6.1/util/Viewer/grid.c:138:11: style: Unused variable: lonlab_grid [unusedVariable] Montage-6.1/util/Viewer/grid.c:139:11: style: Unused variable: latlab_grid [unusedVariable] Montage-6.1/util/Viewer/grid.c:142:11: style: Unused variable: latlab_index [unusedVariable] Montage-6.1/util/Viewer/grid.c:959:7: style: Variable 'ptr' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Viewer/grid.c:1062:7: style: Variable 'ptr' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Viewer/grid.c:1284:8: style: Variable 'lon' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Viewer/grid.c:1285:8: style: Variable 'lat' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Viewer/mHistogram.c:619:39: style:inconclusive: Function 'getRange' argument 15 names different: declaration 'sigma' definition 'sig'. [funcArgNamesDifferent] Montage-6.1/util/Viewer/mHistogram.c:54:51: note: Function 'getRange' argument 15 names different: declaration 'sigma' definition 'sig'. Montage-6.1/util/Viewer/mHistogram.c:619:39: note: Function 'getRange' argument 15 names different: declaration 'sigma' definition 'sig'. Montage-6.1/util/Viewer/mHistogram.c:615:37: style: Parameter 'minstr' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/mHistogram.c:615:51: style: Parameter 'maxstr' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/mHistogram.c:617:31: style: Parameter 'betastr' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/mHistogram.c:620:31: style: Parameter 'planes' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/mHistogram.c:1042:11: style: Variable 'a' can be declared as const array [constVariable] Montage-6.1/util/Viewer/mHistogram.c:1046:11: style: Variable 'b' can be declared as const array [constVariable] Montage-6.1/util/Viewer/mHistogram.c:1050:11: style: Variable 'a1' can be declared as const array [constVariable] Montage-6.1/util/Viewer/mHistogram.c:1055:11: style: Variable 'b1' can be declared as const array [constVariable] Montage-6.1/util/Viewer/mHistogram.c:1060:11: style: Variable 'a2' can be declared as const array [constVariable] Montage-6.1/util/Viewer/mHistogram.c:1066:11: style: Variable 'b2' can be declared as const array [constVariable] Montage-6.1/util/Viewer/mHistogram.c:1071:11: style: Variable 'a3' can be declared as const array [constVariable] Montage-6.1/util/Viewer/mHistogram.c:1077:11: style: Variable 'b3' can be declared as const array [constVariable] Montage-6.1/util/Viewer/mHistogram.c:653:17: warning: Uninitialized variable: betaval [uninitvar] Montage-6.1/util/Viewer/mHistogram.c:644:13: note: Assuming condition is false Montage-6.1/util/Viewer/mHistogram.c:653:17: note: Uninitialized variable: betaval Montage-6.1/util/Viewer/mHistogram.c:653:27: warning: Uninitialized variable: betaextra [uninitvar] Montage-6.1/util/Viewer/mHistogram.c:644:13: note: Assuming condition is false Montage-6.1/util/Viewer/mHistogram.c:653:27: note: Uninitialized variable: betaextra Montage-6.1/util/Viewer/mHistogram.c:657:7: warning: Uninitialized variable: betatype [uninitvar] Montage-6.1/util/Viewer/mHistogram.c:644:13: note: Assuming condition is false Montage-6.1/util/Viewer/mHistogram.c:657:7: note: Uninitialized variable: betatype Montage-6.1/util/Viewer/mHistogram.c:148:8: style: Variable 'nan' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Viewer/mHistogram.c:129:14: style: Unused variable: ptr [unusedVariable] Montage-6.1/util/Viewer/mHistogram.c:628:12: style: Unused variable: valstr [unusedVariable] Montage-6.1/util/Viewer/mHistogram.c:629:12: style: Unused variable: end [unusedVariable] Montage-6.1/util/Viewer/mHistogram.c:630:12: style: Unused variable: ptr [unusedVariable] Montage-6.1/web/mTAP/tapColumns.c:66:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mTAP/tapColumns.c:372:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mTAP/tapColumns.c:250:15: warning: If resource allocation fails, then there is a possible null pointer dereference: ftab [nullPointerOutOfResources] Montage-6.1/web/mTAP/tapColumns.c:248:19: note: Assuming allocation function fails Montage-6.1/web/mTAP/tapColumns.c:248:19: note: Assignment 'ftab=fopen(tabfile,"w+")', assigned value is 0 Montage-6.1/web/mTAP/tapColumns.c:250:15: note: Null pointer dereference Montage-6.1/web/mTAP/tapColumns.c:369:23: style: Parameter 'errmsg' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mTAP/tapColumns.c:194:9: style: Variable 'ncol' is assigned a value that is never used. [unreadVariable] Montage-6.1/web/mTAP/tapResults.c:42:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Search/mSearch.c:1993:16: error: Buffer is accessed out of bounds: line [bufferAccessOutOfBounds] Montage-6.1/web/mTAP/tapStatus.c:44:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mTAP/tapStatus.c:169:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mTAP/tapStatus.c:84:4: error: Return value of allocation function 'mkstemp' is not stored. [leakReturnValNotUsed] Montage-6.1/web/mTAP/tapStatus.c:166:23: style: Parameter 'errmsg' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Search/mSearch.c:1841:27: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/util/Search/mSearch.c:1832:27: note: First condition Montage-6.1/util/Search/mSearch.c:1841:27: note: Second condition Montage-6.1/util/Search/mSearch.c:685:10: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/util/Search/mSearch.c:685:10: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] Montage-6.1/util/Search/mSearch.c:685:10: portability: %lu in format string (no. 4) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/util/Search/mSearch.c:750:10: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/Search/mSearch.c:750:10: portability: %lu in format string (no. 4) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/util/Search/mSearch.c:772:10: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/Search/mSearch.c:772:10: portability: %lu in format string (no. 4) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/util/Search/mSearch.c:783:7: portability: %ld in format string (no. 4) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/Search/mSearch.c:941:16: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/Search/mSearch.c:941:16: portability: %lu in format string (no. 4) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/util/Search/mSearch.c:1038:16: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/Search/mSearch.c:1038:16: portability: %ld in format string (no. 4) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/Search/mSearch.c:1160:13: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/Search/mSearch.c:1160:13: portability: %lu in format string (no. 4) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/util/Search/mSearch.c:1214:13: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] Montage-6.1/util/Search/mSearch.c:1214:13: portability: %lu in format string (no. 4) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/util/Search/mSearch.c:2095:10: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] Montage-6.1/web/mTAP/tapSubmit.c:43:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mTAP/tapSubmit.c:128:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mTAP/tapSubmit.c:125:23: style: Parameter 'errmsg' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mTAP/tapSubmit.c:55:14: error: Uninitialized variable: adql [legacyUninitvar] Montage-6.1/util/Search/mSearch.c:3777:40: style:inconclusive: Function 'overlapCallback' argument 1 names different: declaration 'id' definition 'index'. [funcArgNamesDifferent] Montage-6.1/util/Search/mSearch.c:199:40: note: Function 'overlapCallback' argument 1 names different: declaration 'id' definition 'index'. Montage-6.1/util/Search/mSearch.c:3777:40: note: Function 'overlapCallback' argument 1 names different: declaration 'id' definition 'index'. Montage-6.1/util/Search/mSearch.c:4227:16: style:inconclusive: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. [funcArgNamesDifferent] Montage-6.1/util/Search/mSearch.c:181:26: note: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. Montage-6.1/util/Search/mSearch.c:4227:16: note: Function 'Cross' argument 1 names different: declaration 'a' definition 'v1'. Montage-6.1/util/Search/mSearch.c:4227:25: style:inconclusive: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. [funcArgNamesDifferent] Montage-6.1/util/Search/mSearch.c:181:34: note: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. Montage-6.1/util/Search/mSearch.c:4227:25: note: Function 'Cross' argument 2 names different: declaration 'b' definition 'v2'. Montage-6.1/util/Search/mSearch.c:4227:34: style:inconclusive: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. [funcArgNamesDifferent] Montage-6.1/util/Search/mSearch.c:181:42: note: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. Montage-6.1/util/Search/mSearch.c:4227:34: note: Function 'Cross' argument 3 names different: declaration 'c' definition 'v3'. Montage-6.1/util/Search/mSearch.c:3643:11: style: Local variable 'ra' shadows outer variable [shadowVariable] Montage-6.1/util/Search/mSearch.c:128:11: note: Shadowed declaration Montage-6.1/util/Search/mSearch.c:3643:11: note: Shadow variable Montage-6.1/util/Search/mSearch.c:3643:15: style: Local variable 'dec' shadows outer variable [shadowVariable] Montage-6.1/util/Search/mSearch.c:128:15: note: Shadowed declaration Montage-6.1/util/Search/mSearch.c:3643:15: note: Shadow variable Montage-6.1/util/Search/mSearch.c:4154:16: style: Local variable 'ra' shadows outer variable [shadowVariable] Montage-6.1/util/Search/mSearch.c:128:11: note: Shadowed declaration Montage-6.1/util/Search/mSearch.c:4154:16: note: Shadow variable Montage-6.1/util/Search/mSearch.c:4154:20: style: Local variable 'dec' shadows outer variable [shadowVariable] Montage-6.1/util/Search/mSearch.c:128:15: note: Shadowed declaration Montage-6.1/util/Search/mSearch.c:4154:20: note: Shadow variable Montage-6.1/util/Search/mSearch.c:351:29: style: Variable 'end' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Search/mSearch.c:4227:16: style: Parameter 'v1' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Search/mSearch.c:4227:25: style: Parameter 'v2' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Search/mSearch.c:4250:17: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Search/mSearch.c:4250:25: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Search/mSearch.c:4308:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Search/mSearch.c:4076:34: error: Uninitialized variable: dist [legacyUninitvar] Montage-6.1/util/Search/mSearch.c:4093:37: error: Uninitialized variable: dist [legacyUninitvar] Montage-6.1/web/mViewer/checkFileExist.c:23:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/checkFileExist.c:21:24: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/checkFileExist.c:23:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/checkFileExist.c:39:14: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/checkFileExist.c:21:24: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/checkFileExist.c:39:14: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/checkFileExist.c:46:14: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/checkFileExist.c:21:24: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/checkFileExist.c:46:14: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/checkFileExist.c:69:14: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/checkFileExist.c:21:24: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/checkFileExist.c:69:14: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/checkFileExist.c:85:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/checkFileExist.c:21:24: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/checkFileExist.c:85:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/checkFileExist.c:96:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/checkFileExist.c:21:24: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/checkFileExist.c:96:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/checkFileExist.c:14:11: style: Parameter 'directory' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Search/mSearch.c:319:11: style: Unused variable: countfile [unusedVariable] Montage-6.1/util/Search/mSearch.c:324:11: style: Unused variable: ibig [unusedVariable] Montage-6.1/util/Search/mSearch.c:325:11: style: Unused variable: bigstr [unusedVariable] Montage-6.1/util/Search/mSearch.c:329:20: style: Unused variable: cntsize [unusedVariable] Montage-6.1/util/Search/mSearch.c:333:11: style: Unused variable: fdcnt [unusedVariable] Montage-6.1/util/Search/mSearch.c:348:27: style: Unused variable: dup [unusedVariable] Montage-6.1/util/Search/mSearch.c:371:15: style: Unused variable: naxis1 [unusedVariable] Montage-6.1/util/Search/mSearch.c:372:15: style: Unused variable: naxis2 [unusedVariable] Montage-6.1/util/Search/mSearch.c:397:24: style: Unused variable: padMatch [unusedVariable] Montage-6.1/util/Search/mSearch.c:410:11: style: Unused variable: tmp [unusedVariable] Montage-6.1/util/Search/mSearch.c:3669:11: style: Variable 'ra' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Search/mSearch.c:3670:11: style: Variable 'dec' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Search/mSearch.c:3783:11: style: Unused variable: normal [unusedVariable] Montage-6.1/util/Search/mSearch.c:4252:8: style: Unused variable: i [unusedVariable] Montage-6.1/web/mViewer/colorLookup.c:69:24: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/colorLookup.c:95:22: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/computeSkyDist.c:59:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/computeSkyDist.c:51:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/computeSkyDist.c:35:24: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/computeSkyDist.c:51:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/compute_normal.c:62:9: warning: If memory allocation fails, then there is a possible null pointer dereference: xn [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:53:27: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:53:10: note: Assignment 'xn=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:62:9: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:62:17: warning: If memory allocation fails, then there is a possible null pointer dereference: y [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:50:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:50:9: note: Assignment 'y=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:62:17: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:62:22: warning: If memory allocation fails, then there is a possible null pointer dereference: z [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:51:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:51:9: note: Assignment 'z=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:62:22: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:62:31: warning: If memory allocation fails, then there is a possible null pointer dereference: z [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:51:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:51:9: note: Assignment 'z=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:62:31: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:62:36: warning: If memory allocation fails, then there is a possible null pointer dereference: y [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:50:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:50:9: note: Assignment 'y=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:62:36: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:63:9: warning: If memory allocation fails, then there is a possible null pointer dereference: yn [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:54:27: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:54:10: note: Assignment 'yn=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:63:9: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:63:17: warning: If memory allocation fails, then there is a possible null pointer dereference: z [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:51:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:51:9: note: Assignment 'z=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:63:17: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:63:22: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:49:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:49:9: note: Assignment 'x=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:63:22: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:63:31: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:49:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:49:9: note: Assignment 'x=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:63:31: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:63:36: warning: If memory allocation fails, then there is a possible null pointer dereference: z [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:51:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:51:9: note: Assignment 'z=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:63:36: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:64:9: warning: If memory allocation fails, then there is a possible null pointer dereference: zn [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:55:27: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:55:10: note: Assignment 'zn=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:64:9: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:64:17: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:49:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:49:9: note: Assignment 'x=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:64:17: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:64:22: warning: If memory allocation fails, then there is a possible null pointer dereference: y [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:50:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:50:9: note: Assignment 'y=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:64:22: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:64:31: warning: If memory allocation fails, then there is a possible null pointer dereference: y [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:50:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:50:9: note: Assignment 'y=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:64:31: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:64:36: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:49:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:49:9: note: Assignment 'x=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:64:36: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:67:5: warning: If memory allocation fails, then there is a possible null pointer dereference: xn [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:53:27: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:53:10: note: Assignment 'xn=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:67:5: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:67:19: warning: If memory allocation fails, then there is a possible null pointer dereference: y [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:50:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:50:9: note: Assignment 'y=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:67:19: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:67:30: warning: If memory allocation fails, then there is a possible null pointer dereference: z [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:51:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:51:9: note: Assignment 'z=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:67:30: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:67:37: warning: If memory allocation fails, then there is a possible null pointer dereference: z [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:51:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:51:9: note: Assignment 'z=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:67:37: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:67:48: warning: If memory allocation fails, then there is a possible null pointer dereference: y [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:50:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:50:9: note: Assignment 'y=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:67:48: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:68:5: warning: If memory allocation fails, then there is a possible null pointer dereference: yn [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:54:27: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:54:10: note: Assignment 'yn=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:68:5: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:68:19: warning: If memory allocation fails, then there is a possible null pointer dereference: z [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:51:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:51:9: note: Assignment 'z=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:68:19: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:68:30: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:49:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:49:9: note: Assignment 'x=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:68:30: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:68:37: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:49:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:49:9: note: Assignment 'x=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:68:37: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:68:48: warning: If memory allocation fails, then there is a possible null pointer dereference: z [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:51:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:51:9: note: Assignment 'z=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:68:48: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:69:5: warning: If memory allocation fails, then there is a possible null pointer dereference: zn [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:55:27: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:55:10: note: Assignment 'zn=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:69:5: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:69:19: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:49:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:49:9: note: Assignment 'x=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:69:19: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:69:30: warning: If memory allocation fails, then there is a possible null pointer dereference: y [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:50:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:50:9: note: Assignment 'y=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:69:30: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:69:37: warning: If memory allocation fails, then there is a possible null pointer dereference: y [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:50:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:50:9: note: Assignment 'y=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:69:37: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:69:48: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] Montage-6.1/web/mViewer/compute_normal.c:49:26: note: Assuming allocation function fails Montage-6.1/web/mViewer/compute_normal.c:49:9: note: Assignment 'x=(double*)malloc(npoly*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/compute_normal.c:69:48: note: Null pointer dereference Montage-6.1/web/mViewer/compute_normal.c:41:39: style: Parameter 'ra' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/compute_normal.c:41:51: style: Parameter 'dec' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/constraintFilter.c:38:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/constraintFilter.c:81:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/constraintFilter.c:33:9: style: Condition 'debug' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/constraintFilter.c:26:20: note: Assignment 'debug=0', assigned value is 0 Montage-6.1/web/mViewer/constraintFilter.c:33:9: note: Condition 'debug' is always false Montage-6.1/web/mViewer/constraintFilter.c:49:9: style: Condition 'debug' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/constraintFilter.c:26:20: note: Assignment 'debug=0', assigned value is 0 Montage-6.1/web/mViewer/constraintFilter.c:49:9: note: Condition 'debug' is always false Montage-6.1/web/mViewer/constraintFilter.c:74:9: style: Condition 'debug' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/constraintFilter.c:72:13: note: Assignment 'debug=0', assigned value is 0 Montage-6.1/web/mViewer/constraintFilter.c:74:9: note: Condition 'debug' is always false Montage-6.1/web/mViewer/constraintFilter.c:90:9: style: Condition 'debug' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/constraintFilter.c:72:13: note: Assignment 'debug=0', assigned value is 0 Montage-6.1/web/mViewer/constraintFilter.c:90:9: note: Condition 'debug' is always false Montage-6.1/web/mViewer/constraintFilter.c:65:13: style: Parameter 'xn' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/constraintFilter.c:65:25: style: Parameter 'yn' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/constraintFilter.c:65:37: style: Parameter 'zn' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/constraintFilter.c:124:32: warning: Uninitialized variable: isign [uninitvar] Montage-6.1/web/mViewer/constraintFilter.c:99:24: note: Assuming condition is false Montage-6.1/web/mViewer/constraintFilter.c:124:32: note: Uninitialized variable: isign Montage-6.1/web/mViewer/extractAvePlane.c:127:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/extractAvePlane.c:107:10: style: Condition 'debugfile' is always true [knownConditionTrueFalse] Montage-6.1/web/mViewer/extractAvePlane.c:84:24: note: Assignment 'debugfile=1', assigned value is 1 Montage-6.1/web/mViewer/extractAvePlane.c:107:10: note: Condition 'debugfile' is always true Montage-6.1/web/mViewer/extractAvePlane.c:448:9: warning: If memory allocation fails, then there is a possible null pointer dereference: imbuff [nullPointerOutOfMemory] Montage-6.1/web/mViewer/extractAvePlane.c:446:31: note: Assuming allocation function fails Montage-6.1/web/mViewer/extractAvePlane.c:446:14: note: Assignment 'imbuff=(double*)malloc(hdr.ns*hdr.nl*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/extractAvePlane.c:448:9: note: Null pointer dereference Montage-6.1/web/mViewer/extractAvePlane.c:373:13: style: Variable 'istatus' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/web/mViewer/extractAvePlane.c:367:10: note: istatus is assigned Montage-6.1/web/mViewer/extractAvePlane.c:373:13: note: istatus is overwritten Montage-6.1/web/mViewer/extractAvePlane.c:218:16: style: Variable 'hdr.bitpix' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Viewer/mViewer.c:611:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mViewer.c:4707:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mViewer.c:4850:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fstatus [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mViewer.c:4963:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mViewer.c:5254:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mViewer.c:5436:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TDOUBLE [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mViewer.c:5674:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mViewer.c:5769:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mViewer.c:5812:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mViewer.c:5933:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WCS_PIX [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mViewer.c:6360:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mViewer.c:6571:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mViewer.c:6703:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mViewer.c:6836:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mViewer.c:6987:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LCT_RGBA [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/constructRetjson.c:96:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/constructRetjson.c:94:23: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/constructRetjson.c:96:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/constructRetjson.c:110:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/constructRetjson.c:94:23: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/constructRetjson.c:102:18: note: Assuming condition is false Montage-6.1/web/mViewer/constructRetjson.c:110:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/constructRetjson.c:186:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/constructRetjson.c:184:22: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/constructRetjson.c:186:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/constructRetjson.c:196:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/constructRetjson.c:184:22: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/constructRetjson.c:196:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/constructRetjson.c:217:14: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/constructRetjson.c:184:22: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/constructRetjson.c:217:14: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/constructRetjson.c:262:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/constructRetjson.c:184:22: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/constructRetjson.c:262:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/constructRetjson.c:85:27: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/constructRetjson.c:342:10: style: Variable 'indx' is assigned a value that is never used. [unreadVariable] Montage-6.1/web/mViewer/extractStartupParam.c:1302:13: style: Variable 'istatus' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/web/mViewer/extractStartupParam.c:376:18: note: istatus is assigned Montage-6.1/web/mViewer/extractStartupParam.c:1302:13: note: istatus is overwritten Montage-6.1/web/mViewer/extractStartupParam.c:1302:13: style: Variable 'istatus' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/web/mViewer/extractStartupParam.c:392:18: note: istatus is assigned Montage-6.1/web/mViewer/extractStartupParam.c:1302:13: note: istatus is overwritten Montage-6.1/MontageLib/Viewer/montageViewer.c:634:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FONT_DIR [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/montageViewer.c:6000:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/montageViewer.c:6465:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLEN_STATUS [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/montageViewer.c:6754:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/montageViewer.c:6927:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TDOUBLE [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/montageViewer.c:7276:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/montageViewer.c:7319:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/montageViewer.c:7440:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WCS_PIX [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/montageViewer.c:7909:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/montageViewer.c:8114:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/montageViewer.c:8246:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/montageViewer.c:8379:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/montageViewer.c:8524:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LCT_RGBA [valueFlowBailoutIncompleteVar] Montage-6.1/MontageLib/Viewer/montageViewer.c:8559:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EQUJ [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/extractStartupParam.c:1214:63: error: Undefined behavior: Variable 'param->paramfile' is used as parameter and destination in sprintf(). [sprintfOverlappingData] Montage-6.1/web/mViewer/extractStartupParam.c:995:28: style: Variable 'paramfileexist' is assigned a value that is never used. [unreadVariable] Montage-6.1/web/mViewer/extractStartupParam.c:1124:32: style: Variable 'paramtemplateexist' is assigned a value that is never used. [unreadVariable] Montage-6.1/web/mViewer/extractWaveSpectra.c:302:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/extractWaveSpectra.c:123:10: style: Condition 'debugfile' is always true [knownConditionTrueFalse] Montage-6.1/web/mViewer/extractWaveSpectra.c:120:24: note: Assignment 'debugfile=1', assigned value is 1 Montage-6.1/web/mViewer/extractWaveSpectra.c:123:10: note: Condition 'debugfile' is always true Montage-6.1/web/mViewer/extractWaveSpectra.c:275:9: warning: If memory allocation fails, then there is a possible null pointer dereference: xarr [nullPointerOutOfMemory] Montage-6.1/web/mViewer/extractWaveSpectra.c:272:29: note: Assuming allocation function fails Montage-6.1/web/mViewer/extractWaveSpectra.c:272:12: note: Assignment 'xarr=(double*)malloc(hdr.nplane*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/extractWaveSpectra.c:275:9: note: Null pointer dereference Montage-6.1/web/mViewer/extractWaveSpectra.c:276:9: warning: If memory allocation fails, then there is a possible null pointer dereference: yarr [nullPointerOutOfMemory] Montage-6.1/web/mViewer/extractWaveSpectra.c:273:29: note: Assuming allocation function fails Montage-6.1/web/mViewer/extractWaveSpectra.c:273:12: note: Assignment 'yarr=(double*)malloc(hdr.nplane*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/extractWaveSpectra.c:276:9: note: Null pointer dereference Montage-6.1/web/mViewer/extractWaveSpectra.c:284:9: warning: If memory allocation fails, then there is a possible null pointer dereference: xarr [nullPointerOutOfMemory] Montage-6.1/web/mViewer/extractWaveSpectra.c:272:29: note: Assuming allocation function fails Montage-6.1/web/mViewer/extractWaveSpectra.c:272:12: note: Assignment 'xarr=(double*)malloc(hdr.nplane*sizeof(double))', assigned value is 0 Montage-6.1/web/mViewer/extractWaveSpectra.c:284:9: note: Null pointer dereference Montage-6.1/web/mViewer/fileCopy.c:36:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/fileCopy.c:30:23: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/fileCopy.c:36:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/fileCopy.c:41:9: style: Condition 'svcdebug' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/fileCopy.c:31:22: note: Assignment 'svcdebug=0', assigned value is 0 Montage-6.1/web/mViewer/fileCopy.c:41:9: note: Condition 'svcdebug' is always false Montage-6.1/web/mViewer/fileCopy.c:55:14: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/fileCopy.c:30:23: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/fileCopy.c:55:14: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/fileCopy.c:24:21: style: Parameter 'fromfile' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/fileCopy.c:24:37: style: Parameter 'tofile' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/fileCopy.c:45:13: style: Variable 'istatus' is assigned a value that is never used. [unreadVariable] Montage-6.1/web/mViewer/generateMedianPlane.c:143:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/generateMedianPlane.c:117:10: style: Condition 'debugfile' is always true [knownConditionTrueFalse] Montage-6.1/web/mViewer/generateMedianPlane.c:94:24: note: Assignment 'debugfile=1', assigned value is 1 Montage-6.1/web/mViewer/generateMedianPlane.c:117:10: note: Condition 'debugfile' is always true Montage-6.1/web/mViewer/generateMedianPlane.c:549:13: style: Variable 'istatus' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/web/mViewer/generateMedianPlane.c:545:17: note: istatus is assigned Montage-6.1/web/mViewer/generateMedianPlane.c:549:13: note: istatus is overwritten Montage-6.1/web/mViewer/generateMedianPlane.c:235:16: style: Variable 'hdr.bitpix' is assigned a value that is never used. [unreadVariable] Montage-6.1/web/mViewer/generateMedianPlane.c:421:10: style: Variable 'indx' is assigned a value that is never used. [unreadVariable] Montage-6.1/web/mViewer/getFitshdr.c:77:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/extractViewParam.c:1893:62: style: Same expression on both sides of '||'. [duplicateExpression] Montage-6.1/web/mViewer/extractViewParam.c:114:13: style: Variable 'istatus' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/web/mViewer/extractViewParam.c:61:17: note: istatus is assigned Montage-6.1/web/mViewer/extractViewParam.c:114:13: note: istatus is overwritten Montage-6.1/web/mViewer/imZoom.c:792:14: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] Montage-6.1/web/mViewer/imZoom.c:68:26: note: 'debugfile' is assigned value '0' here. Montage-6.1/web/mViewer/imZoom.c:69:26: note: 'debugtime' is assigned value '0' here. Montage-6.1/web/mViewer/imZoom.c:790:18: note: outer condition: debugfile Montage-6.1/web/mViewer/imZoom.c:792:14: note: identical inner condition: debugtime Montage-6.1/web/mViewer/imZoom.c:821:14: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] Montage-6.1/web/mViewer/imZoom.c:68:26: note: 'debugfile' is assigned value '0' here. Montage-6.1/web/mViewer/imZoom.c:69:26: note: 'debugtime' is assigned value '0' here. Montage-6.1/web/mViewer/imZoom.c:819:18: note: outer condition: debugfile Montage-6.1/web/mViewer/imZoom.c:821:14: note: identical inner condition: debugtime Montage-6.1/web/mViewer/makeImage.c:69:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/makeImage.c:67:24: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/makeImage.c:69:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/makeImage.c:77:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/makeImage.c:67:24: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/makeImage.c:77:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/makeImage.c:84:14: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/makeImage.c:67:24: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/makeImage.c:84:14: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/makeImage.c:389:16: style: Variable 'factor' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/web/mViewer/makeImage.c:385:16: note: factor is assigned Montage-6.1/web/mViewer/makeImage.c:389:16: note: factor is overwritten Montage-6.1/web/mViewer/makeImage.c:167:12: style: Variable 'shrunkrefimpath' can be declared as const array [constVariable] Montage-6.1/web/mViewer/makeImage.c:170:12: style: Variable 'shrunkrefredpath' can be declared as const array [constVariable] Montage-6.1/web/mViewer/makeImage.c:173:12: style: Variable 'shrunkrefgrnpath' can be declared as const array [constVariable] Montage-6.1/web/mViewer/makeImage.c:176:12: style: Variable 'shrunkrefbluepath' can be declared as const array [constVariable] Montage-6.1/web/mViewer/makeImage.c:723:45: error: Uninitialized variable: shrunkrefimpath [uninitvar] Montage-6.1/web/mViewer/makeImage.c:749:44: error: Uninitialized variable: shrunkrefredpath [uninitvar] Montage-6.1/web/mViewer/makeImage.c:757:39: error: Uninitialized variable: shrunkrefgrnpath [uninitvar] Montage-6.1/web/mViewer/makeImage.c:765:38: error: Uninitialized variable: shrunkrefbluepath [uninitvar] Montage-6.1/web/mViewer/mviewerUtil.c:27:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/mviewerUtil.c:38:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/mviewerUtil.c:104:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/mviewerUtil.c:215:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/mviewerUtil.c:158:16: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] Montage-6.1/web/mViewer/mviewerUtil.c:156:36: note: outer condition: strval[i]=='0' Montage-6.1/web/mViewer/mviewerUtil.c:158:16: note: opposite inner condition: strval[i]!='0' Montage-6.1/web/mViewer/mviewerUtil.c:68:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/mviewerUtil.c:63:25: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/mviewerUtil.c:68:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/mviewerUtil.c:81:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/mviewerUtil.c:63:25: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/mviewerUtil.c:76:12: note: Assuming condition is false Montage-6.1/web/mViewer/mviewerUtil.c:81:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/mviewerUtil.c:98:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/mviewerUtil.c:63:25: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/mviewerUtil.c:76:12: note: Assuming condition is false Montage-6.1/web/mViewer/mviewerUtil.c:98:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/mviewerUtil.c:20:21: style: Parameter 'errmsg' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/mviewerUtil.c:34:25: style: Parameter 'status' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/mviewerUtil.c:34:39: style: Parameter 'statusMsg' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/mviewerUtil.c:34:56: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/mviewerUtil.c:56:22: style: Parameter 'cookieName' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/mviewerUtil.c:56:40: style: Parameter 'cookieStr' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/mviewerUtil.c:56:57: style: Parameter 'htmlpath' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/mviewerUtil.c:128:22: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/mviewerUtil.c:145:24: style: Parameter 'strval' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/mviewerUtil.c:216:7: style: Variable 'd' is assigned a value that is never used. [unreadVariable] Montage-6.1/web/mViewer/nph-mViewer.c:122:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/nph-mViewer.c:212:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/nph-mViewer.c:969:14: style: The if condition is the same as the previous if condition [duplicateCondition] Montage-6.1/web/mViewer/nph-mViewer.c:962:21: note: First condition Montage-6.1/web/mViewer/nph-mViewer.c:969:14: note: Second condition Montage-6.1/web/mViewer/nph-mViewer.c:118:23: style: Parameter 'errmsg' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/makeStartupHtml.c:95:10: style: Condition 'debugfile' is always true [knownConditionTrueFalse] Montage-6.1/web/mViewer/makeStartupHtml.c:92:32: note: Assignment 'debugfile=1', assigned value is 1 Montage-6.1/web/mViewer/makeStartupHtml.c:95:10: note: Condition 'debugfile' is always true Montage-6.1/web/mViewer/makeStartupHtml.c:362:7: warning: If memory allocation fails, then there is a possible null pointer dereference: arr [nullPointerOutOfMemory] Montage-6.1/web/mViewer/makeStartupHtml.c:359:25: note: Assuming allocation function fails Montage-6.1/web/mViewer/makeStartupHtml.c:359:9: note: Assignment 'arr=(char**)malloc(param->nfitsplane*sizeof(char*))', assigned value is 0 Montage-6.1/web/mViewer/makeStartupHtml.c:362:7: note: Null pointer dereference Montage-6.1/web/mViewer/makeStartupHtml.c:363:30: warning: If memory allocation fails, then there is a possible null pointer dereference: arr [nullPointerOutOfMemory] Montage-6.1/web/mViewer/makeStartupHtml.c:359:25: note: Assuming allocation function fails Montage-6.1/web/mViewer/makeStartupHtml.c:359:9: note: Assignment 'arr=(char**)malloc(param->nfitsplane*sizeof(char*))', assigned value is 0 Montage-6.1/web/mViewer/makeStartupHtml.c:363:30: note: Null pointer dereference Montage-6.1/web/mViewer/nph-mViewerApp.c:119:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/makeStartupHtml.c:697:17: style: Variable 'istatus' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/web/mViewer/makeStartupHtml.c:373:25: note: istatus is assigned Montage-6.1/web/mViewer/makeStartupHtml.c:697:17: note: istatus is overwritten Montage-6.1/web/mViewer/makeStartupHtml.c:138:25: style: Variable 'istatus' is assigned a value that is never used. [unreadVariable] Montage-6.1/web/mViewer/makeStartupHtml.c:188:25: style: Variable 'istatus' is assigned a value that is never used. [unreadVariable] Montage-6.1/web/mViewer/makeStartupHtml.c:237:25: style: Variable 'istatus' is assigned a value that is never used. [unreadVariable] Montage-6.1/web/mViewer/makeStartupHtml.c:284:21: style: Variable 'istatus' is assigned a value that is never used. [unreadVariable] Montage-6.1/web/mViewer/makeStartupHtml.c:431:34: style: Variable 'redlistoptionPath[0]' is assigned a value that is never used. [unreadVariable] Montage-6.1/web/mViewer/makeStartupHtml.c:432:34: style: Variable 'grnlistoptionPath[0]' is assigned a value that is never used. [unreadVariable] Montage-6.1/web/mViewer/makeStartupHtml.c:433:35: style: Variable 'bluelistoptionPath[0]' is assigned a value that is never used. [unreadVariable] Montage-6.1/web/mViewer/makeStartupHtml.c:62:20: style: Unused variable: imcontroltemplatepath [unusedVariable] Montage-6.1/web/mViewer/makeStartupHtml.c:89:20: style: Unused variable: cdelt3 [unusedVariable] Montage-6.1/web/mViewer/makeStartupHtml.c:90:20: style: Unused variable: crval3 [unusedVariable] Montage-6.1/web/mViewer/nph-mViewerHdr.c:94:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/nph-mViewerHdr.c:255:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/nph-mViewerHdr.c:60:10: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] Montage-6.1/web/mViewer/nph-mViewerHdr.c:248:23: style: Parameter 'errmsg' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/nph-mViewerInfo.c:78:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/nph-mViewerInfo.c:530:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/nph-mViewerApp.c:112:9: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/nph-mViewerApp.c:101:24: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/nph-mViewerApp.c:112:9: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/nph-mViewerApp.c:124:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/nph-mViewerApp.c:101:24: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/nph-mViewerApp.c:124:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/nph-mViewerApp.c:136:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/nph-mViewerApp.c:101:24: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/nph-mViewerApp.c:136:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/nph-mViewerInfo.c:40:10: style: Variable 'file' can be declared as const array [constVariable] Montage-6.1/web/mViewer/nph-mViewerInfo.c:523:23: style: Parameter 'errmsg' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/nph-mViewerInfo.c:125:21: error: Uninitialized variable: file [uninitvar] Montage-6.1/web/mViewer/nph-mViewerInit.c:133:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/nph-mViewerInit.c:444:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MY_DATA_DIR [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/nph-mViewerStats.c:87:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/nph-mViewerStats.c:258:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/nph-mViewerInit.c:83:14: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] Montage-6.1/web/mViewer/nph-mViewerStats.c:54:10: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] Montage-6.1/web/mViewer/nph-mViewerStats.c:251:23: style: Parameter 'errmsg' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/nph-mViewerInit.c:61:10: style: Variable 'cookie' can be declared as pointer to const [constVariablePointer] Montage-6.1/web/mViewer/nph-mViewerInit.c:75:15: style: Variable 'loctime' can be declared as pointer to const [constVariablePointer] Montage-6.1/web/mViewer/nph-mViewerInit.c:421:23: style: Parameter 'errmsg' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/nph-mViewerInit.c:439:22: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/nph-mViewerInit.c:439:35: style: Parameter 'set' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/nph-mViewerInit.c:439:46: style: Parameter 'directory' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/parseCsysstr.c:40:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/parseCsysstr.c:35:25: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/parseCsysstr.c:40:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/parseCsysstr.c:58:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/parseCsysstr.c:35:25: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/parseCsysstr.c:58:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/parseCsysstr.c:23:25: style: Parameter 'csysstrIn' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/pick.c:124:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/pix2sky.c:110:9: error: Dereferencing 'wcs' after it is deallocated / released [deallocuse] Montage-6.1/web/mViewer/pix2sky.c:73:9: warning:inconclusive: Either the condition 'wcs' is redundant or there is possible null pointer dereference: wcs. [nullPointerRedundantCheck] Montage-6.1/web/mViewer/pix2sky.c:106:9: note: Assuming that condition 'wcs' is not redundant Montage-6.1/web/mViewer/pix2sky.c:73:9: note: Null pointer dereference Montage-6.1/web/mViewer/printRetval.c:10:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/printRetval.c:5:24: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/qsort.c:43:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/qsort.c:86:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/qsort.c:148:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/qsort.c:183:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] Montage-6.1/web/mViewer/qsort.c:40:9: style: Condition 'debug' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/qsort.c:37:18: note: Assignment 'debug=0', assigned value is 0 Montage-6.1/web/mViewer/qsort.c:40:9: note: Condition 'debug' is always false Montage-6.1/web/mViewer/qsort.c:65:9: style: Condition 'debug' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/qsort.c:63:18: note: Assignment 'debug=0', assigned value is 0 Montage-6.1/web/mViewer/qsort.c:65:9: note: Condition 'debug' is always false Montage-6.1/web/mViewer/qsort.c:146:9: style: Condition 'debug' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/qsort.c:144:21: note: Assignment 'debug=0', assigned value is 0 Montage-6.1/web/mViewer/qsort.c:146:9: note: Condition 'debug' is always false Montage-6.1/web/mViewer/qsort.c:181:9: style: Condition 'debug' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/qsort.c:179:21: note: Assignment 'debug=0', assigned value is 0 Montage-6.1/web/mViewer/qsort.c:181:9: note: Condition 'debug' is always false Montage-6.1/web/mViewer/pick.c:92:10: style: Condition 'debugfile' is always true [knownConditionTrueFalse] Montage-6.1/web/mViewer/pick.c:70:34: note: Assignment 'debugfile=1', assigned value is 1 Montage-6.1/web/mViewer/pick.c:92:10: note: Condition 'debugfile' is always true Montage-6.1/web/mViewer/readFilelist.c:30:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/readFilelist.c:27:23: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/readFilelist.c:30:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/readFilelist.c:46:7: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/readFilelist.c:27:23: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/readFilelist.c:41:12: note: Assuming condition is false Montage-6.1/web/mViewer/readFilelist.c:46:7: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/readFilelist.c:115:9: warning: If memory allocation fails, then there is a possible null pointer dereference: fname [nullPointerOutOfMemory] Montage-6.1/web/mViewer/readFilelist.c:113:29: note: Assuming allocation function fails Montage-6.1/web/mViewer/readFilelist.c:113:13: note: Assignment 'fname=(char**)malloc(nfile*sizeof(char*))', assigned value is 0 Montage-6.1/web/mViewer/readFilelist.c:115:9: note: Null pointer dereference Montage-6.1/web/mViewer/readFilelist.c:116:9: warning: If memory allocation fails, then there is a possible null pointer dereference: fname [nullPointerOutOfMemory] Montage-6.1/web/mViewer/readFilelist.c:113:29: note: Assuming allocation function fails Montage-6.1/web/mViewer/readFilelist.c:113:13: note: Assignment 'fname=(char**)malloc(nfile*sizeof(char*))', assigned value is 0 Montage-6.1/web/mViewer/readFilelist.c:116:9: note: Null pointer dereference Montage-6.1/web/mViewer/readFilelist.c:19:25: style: Parameter 'filelist' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/readFilelist.c:23:12: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] Montage-6.1/web/mViewer/readFilelist.c:110:13: style: Variable 'istatus' is assigned a value that is never used. [unreadVariable] Montage-6.1/web/mViewer/pick.c:701:10: style: Variable 'istatus' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/web/mViewer/pick.c:649:14: note: istatus is assigned Montage-6.1/web/mViewer/pick.c:701:10: note: istatus is overwritten Montage-6.1/web/mViewer/pick.c:131:5: warning: Size of pointer 'data' used instead of size of its data. [pointerSize] Montage-6.1/web/mViewer/readImfileList.c:36:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/readImfileList.c:33:23: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/readImfileList.c:36:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/readImfileList.c:21:27: style: Parameter 'filelist' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/readImfileList.c:26:12: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] Montage-6.1/web/mViewer/readImfileList.c:208:13: style: Variable 'istatus' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Viewer/mViewer.c:3035:30: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] Montage-6.1/util/Viewer/mViewer.c:3118:32: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] Montage-6.1/util/Viewer/mViewer.c:3196:31: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] Montage-6.1/util/Viewer/mViewer.c:3770:31: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] Montage-6.1/web/mViewer/rewriteFitsCube.c:140:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] Montage-6.1/util/Viewer/mViewer.c:2783:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/util/Viewer/mViewer.c:2788:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/util/Viewer/mViewer.c:3581:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/util/Viewer/mViewer.c:3586:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/util/Viewer/mViewer.c:4517:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/util/Viewer/mViewer.c:4517:7: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/util/Viewer/mViewer.c:4531:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/util/Viewer/mViewer.c:4531:7: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/util/Viewer/mViewer.c:5679:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/util/Viewer/mViewer.c:5684:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/util/Viewer/mViewer.c:5689:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/util/Viewer/mViewer.c:5692:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/util/Viewer/mViewer.c:5696:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/util/Viewer/mViewer.c:5699:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/util/Viewer/mViewer.c:5702:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/util/Viewer/mViewer.c:5705:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/util/Viewer/mViewer.c:5712:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/util/Viewer/mViewer.c:5721:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/util/Viewer/mViewer.c:6524:10: error: Common realloc mistake: 'xlab' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/util/Viewer/mViewer.c:6525:10: error: Common realloc mistake: 'ylab' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/util/Viewer/mViewer.c:6656:16: error: Common realloc mistake: 'xlin' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/util/Viewer/mViewer.c:6657:16: error: Common realloc mistake: 'ylin' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/util/Viewer/mViewer.c:6789:16: error: Common realloc mistake: 'xlin' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/util/Viewer/mViewer.c:6790:16: error: Common realloc mistake: 'ylin' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/util/Viewer/mViewer.c:6921:19: error: Common realloc mistake: 'xlin' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/util/Viewer/mViewer.c:6922:19: error: Common realloc mistake: 'ylin' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/util/Viewer/mViewer.c:6487:4: warning: If memory allocation fails, then there is a possible null pointer dereference: xlab [nullPointerOutOfMemory] Montage-6.1/util/Viewer/mViewer.c:6481:27: note: Assuming allocation function fails Montage-6.1/util/Viewer/mViewer.c:6481:11: note: Assignment 'xlab=(double*)malloc(256*sizeof(double))', assigned value is 0 Montage-6.1/util/Viewer/mViewer.c:6487:4: note: Null pointer dereference Montage-6.1/util/Viewer/mViewer.c:6488:4: warning: If memory allocation fails, then there is a possible null pointer dereference: ylab [nullPointerOutOfMemory] Montage-6.1/util/Viewer/mViewer.c:6482:27: note: Assuming allocation function fails Montage-6.1/util/Viewer/mViewer.c:6482:11: note: Assignment 'ylab=(double*)malloc(256*sizeof(double))', assigned value is 0 Montage-6.1/util/Viewer/mViewer.c:6488:4: note: Null pointer dereference Montage-6.1/util/Viewer/mViewer.c:6959:7: warning: If memory allocation fails, then there is a possible null pointer dereference: xcurve [nullPointerOutOfMemory] Montage-6.1/util/Viewer/mViewer.c:6954:29: note: Assuming allocation function fails Montage-6.1/util/Viewer/mViewer.c:6954:13: note: Assignment 'xcurve=(double*)malloc(nx*sizeof(double))', assigned value is 0 Montage-6.1/util/Viewer/mViewer.c:6959:7: note: Null pointer dereference Montage-6.1/util/Viewer/mViewer.c:6960:7: warning: If memory allocation fails, then there is a possible null pointer dereference: ycurve [nullPointerOutOfMemory] Montage-6.1/util/Viewer/mViewer.c:6955:29: note: Assuming allocation function fails Montage-6.1/util/Viewer/mViewer.c:6955:13: note: Assignment 'ycurve=(double*)malloc(nx*sizeof(double))', assigned value is 0 Montage-6.1/util/Viewer/mViewer.c:6960:7: note: Null pointer dereference Montage-6.1/util/Viewer/mViewer.c:4773:9: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] Montage-6.1/util/Viewer/mViewer.c:4781:4: note: Found duplicate branches for 'if' and 'else'. Montage-6.1/util/Viewer/mViewer.c:4773:9: note: Found duplicate branches for 'if' and 'else'. Montage-6.1/web/mViewer/rewriteFitsCube.c:103:10: style: Condition 'debugfile' is always true [knownConditionTrueFalse] Montage-6.1/web/mViewer/rewriteFitsCube.c:80:24: note: Assignment 'debugfile=1', assigned value is 1 Montage-6.1/web/mViewer/rewriteFitsCube.c:103:10: note: Condition 'debugfile' is always true Montage-6.1/web/mViewer/rewriteFitsCube.c:306:13: style: Variable 'istatus' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/web/mViewer/rewriteFitsCube.c:302:10: note: istatus is assigned Montage-6.1/web/mViewer/rewriteFitsCube.c:306:13: note: istatus is overwritten Montage-6.1/web/mViewer/sky2pix.c:109:9: error: Dereferencing 'wcs' after it is deallocated / released [deallocuse] Montage-6.1/util/Viewer/mViewer.c:5374:39: style:inconclusive: Function 'getRange' argument 15 names different: declaration 'sigma' definition 'sig'. [funcArgNamesDifferent] Montage-6.1/util/Viewer/mViewer.c:94:51: note: Function 'getRange' argument 15 names different: declaration 'sigma' definition 'sig'. Montage-6.1/util/Viewer/mViewer.c:5374:39: note: Function 'getRange' argument 15 names different: declaration 'sigma' definition 'sig'. Montage-6.1/util/Viewer/mViewer.c:4824:29: style: Local variable 'wcs' shadows outer variable [shadowVariable] Montage-6.1/util/Viewer/mViewer.c:195:19: note: Shadowed declaration Montage-6.1/util/Viewer/mViewer.c:4824:29: note: Shadow variable Montage-6.1/util/Viewer/mViewer.c:5923:11: style: Local variable 'naxis1' shadows outer variable [shadowVariable] Montage-6.1/util/Viewer/mViewer.c:181:8: note: Shadowed declaration Montage-6.1/util/Viewer/mViewer.c:5923:11: note: Shadow variable Montage-6.1/util/Viewer/mViewer.c:5923:19: style: Local variable 'naxis2' shadows outer variable [shadowVariable] Montage-6.1/util/Viewer/mViewer.c:181:16: note: Shadowed declaration Montage-6.1/util/Viewer/mViewer.c:5923:19: note: Shadow variable Montage-6.1/util/Viewer/mViewer.c:5924:11: style: Local variable 'crval1' shadows outer variable [shadowVariable] Montage-6.1/util/Viewer/mViewer.c:185:8: note: Shadowed declaration Montage-6.1/util/Viewer/mViewer.c:5924:11: note: Shadow variable Montage-6.1/util/Viewer/mViewer.c:5924:19: style: Local variable 'crval2' shadows outer variable [shadowVariable] Montage-6.1/util/Viewer/mViewer.c:185:16: note: Shadowed declaration Montage-6.1/util/Viewer/mViewer.c:5924:19: note: Shadow variable Montage-6.1/util/Viewer/mViewer.c:5925:11: style: Local variable 'crpix1' shadows outer variable [shadowVariable] Montage-6.1/util/Viewer/mViewer.c:184:8: note: Shadowed declaration Montage-6.1/util/Viewer/mViewer.c:5925:11: note: Shadow variable Montage-6.1/util/Viewer/mViewer.c:5925:19: style: Local variable 'crpix2' shadows outer variable [shadowVariable] Montage-6.1/util/Viewer/mViewer.c:184:16: note: Shadowed declaration Montage-6.1/util/Viewer/mViewer.c:5925:19: note: Shadow variable Montage-6.1/util/Viewer/mViewer.c:5926:11: style: Local variable 'xinc' shadows outer variable [shadowVariable] Montage-6.1/util/Viewer/mViewer.c:190:8: note: Shadowed declaration Montage-6.1/util/Viewer/mViewer.c:5926:11: note: Shadow variable Montage-6.1/util/Viewer/mViewer.c:5926:17: style: Local variable 'yinc' shadows outer variable [shadowVariable] Montage-6.1/util/Viewer/mViewer.c:190:16: note: Shadowed declaration Montage-6.1/util/Viewer/mViewer.c:5926:17: note: Shadow variable Montage-6.1/util/Viewer/mViewer.c:5927:11: style: Local variable 'crota2' shadows outer variable [shadowVariable] Montage-6.1/util/Viewer/mViewer.c:187:8: note: Shadowed declaration Montage-6.1/util/Viewer/mViewer.c:5927:11: note: Shadow variable Montage-6.1/util/Viewer/mViewer.c:6339:15: style: Local variable 'ii' shadows outer variable [shadowVariable] Montage-6.1/util/Viewer/mViewer.c:215:14: note: Shadowed declaration Montage-6.1/util/Viewer/mViewer.c:6339:15: note: Shadow variable Montage-6.1/util/Viewer/mViewer.c:6553:15: style: Local variable 'ii' shadows outer variable [shadowVariable] Montage-6.1/util/Viewer/mViewer.c:215:14: note: Shadowed declaration Montage-6.1/util/Viewer/mViewer.c:6553:15: note: Shadow variable Montage-6.1/util/Viewer/mViewer.c:6685:15: style: Local variable 'ii' shadows outer variable [shadowVariable] Montage-6.1/util/Viewer/mViewer.c:215:14: note: Shadowed declaration Montage-6.1/util/Viewer/mViewer.c:6685:15: note: Shadow variable Montage-6.1/util/Viewer/mViewer.c:6820:15: style: Local variable 'ii' shadows outer variable [shadowVariable] Montage-6.1/util/Viewer/mViewer.c:215:14: note: Shadowed declaration Montage-6.1/util/Viewer/mViewer.c:6820:15: note: Shadow variable Montage-6.1/util/Viewer/mViewer.c:4690:23: style: Parameter 'colorin' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/mViewer.c:4857:32: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/mViewer.c:4984:12: style: Variable 'dn' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Viewer/mViewer.c:4984:17: style: Variable 'red_tbl' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Viewer/mViewer.c:4984:27: style: Variable 'grn_tbl' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Viewer/mViewer.c:4984:37: style: Variable 'blue_tbl' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Viewer/mViewer.c:5370:37: style: Parameter 'minstr' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/mViewer.c:5370:51: style: Parameter 'maxstr' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/mViewer.c:5372:31: style: Parameter 'betastr' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/mViewer.c:5375:31: style: Parameter 'planes' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/mViewer.c:5659:21: style: Parameter 'histfile' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/mViewer.c:5829:16: style: Variable 'end' can be declared as pointer to const [constVariablePointer] Montage-6.1/util/Viewer/mViewer.c:6086:11: style: Variable 'a' can be declared as const array [constVariable] Montage-6.1/util/Viewer/mViewer.c:6090:11: style: Variable 'b' can be declared as const array [constVariable] Montage-6.1/util/Viewer/mViewer.c:6094:11: style: Variable 'a1' can be declared as const array [constVariable] Montage-6.1/util/Viewer/mViewer.c:6099:11: style: Variable 'b1' can be declared as const array [constVariable] Montage-6.1/util/Viewer/mViewer.c:6104:11: style: Variable 'a2' can be declared as const array [constVariable] Montage-6.1/util/Viewer/mViewer.c:6110:11: style: Variable 'b2' can be declared as const array [constVariable] Montage-6.1/util/Viewer/mViewer.c:6115:11: style: Variable 'a3' can be declared as const array [constVariable] Montage-6.1/util/Viewer/mViewer.c:6121:11: style: Variable 'b3' can be declared as const array [constVariable] Montage-6.1/web/mViewer/subsetImage.c:36:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/subsetImage.c:34:23: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/subsetImage.c:36:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/subsetImage.c:61:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/subsetImage.c:34:23: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/subsetImage.c:61:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/subsetImage.c:24:24: style: Parameter 'impath' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/subsetImage.c:25:11: style: Parameter 'subsetPath' can be declared as pointer to const [constParameterPointer] Montage-6.1/util/Viewer/mViewer.c:5408:17: warning: Uninitialized variable: betaval [uninitvar] Montage-6.1/util/Viewer/mViewer.c:5399:13: note: Assuming condition is false Montage-6.1/util/Viewer/mViewer.c:5408:17: note: Uninitialized variable: betaval Montage-6.1/util/Viewer/mViewer.c:5408:27: warning: Uninitialized variable: betaextra [uninitvar] Montage-6.1/util/Viewer/mViewer.c:5399:13: note: Assuming condition is false Montage-6.1/util/Viewer/mViewer.c:5408:27: note: Uninitialized variable: betaextra Montage-6.1/util/Viewer/mViewer.c:251:14: style: Unused variable: imin [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:251:20: style: Unused variable: imax [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:251:26: style: Unused variable: jmin [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:251:32: style: Unused variable: jmax [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:252:23: style: Unused variable: lwidth [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:252:31: style: Unused variable: color [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:259:14: style: Unused variable: xcurve [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:259:23: style: Unused variable: ycurve [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:260:14: style: Unused variable: xlab [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:260:21: style: Unused variable: ylab [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:261:14: style: Unused variable: xval [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:261:20: style: Unused variable: yval [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:262:14: style: Unused variable: xprev [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:262:21: style: Unused variable: yprev [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:264:14: style: Unused variable: lablen [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:264:22: style: Unused variable: laboffset [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:459:14: style: Unused variable: lon [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:459:19: style: Unused variable: lat [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:460:14: style: Unused variable: lonlab [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:460:22: style: Unused variable: latlab [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:463:14: style: Unused variable: clon [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:463:20: style: Unused variable: clat [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:464:14: style: Unused variable: radius [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:464:22: style: Unused variable: cosc [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:464:28: style: Unused variable: colat [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:464:35: style: Unused variable: sina [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:464:41: style: Unused variable: dlon [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:464:47: style: Unused variable: vang [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:4673:13: style: Variable 'i' is assigned a value that is never used. [unreadVariable] Montage-6.1/util/Viewer/mViewer.c:5383:12: style: Unused variable: valstr [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:5384:12: style: Unused variable: end [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:5385:12: style: Unused variable: ptr [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:6339:12: style: Unused variable: i [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:6553:12: style: Unused variable: i [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:6685:12: style: Unused variable: i [unusedVariable] Montage-6.1/util/Viewer/mViewer.c:6820:12: style: Unused variable: i [unusedVariable] Montage-6.1/web/mViewer/writeFitshdrHtml.c:52:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:52:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:54:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:54:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:55:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:55:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:56:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:56:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:57:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:57:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:58:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:58:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:59:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:59:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:60:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:60:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:61:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:61:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:62:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:62:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:63:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:63:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:64:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:64:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:65:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:65:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:66:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:66:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:67:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:67:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:68:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:68:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:69:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:69:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:70:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:70:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:71:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:71:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:72:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:72:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:73:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:73:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:74:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:74:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:75:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:75:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:76:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:76:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:77:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:77:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:78:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:78:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:79:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:79:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:80:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:80:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:81:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:81:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:82:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:82:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:83:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:83:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:84:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:84:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:85:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:85:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:86:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:86:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:87:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:87:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:88:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:88:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:89:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:89:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:90:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:90:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:91:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:91:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:92:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:92:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:93:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:93:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:94:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:94:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:95:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:95:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:96:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:96:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:97:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:97:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:98:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:98:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:99:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:99:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:100:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:100:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:101:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:101:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:102:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:102:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:103:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:103:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:104:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:104:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:105:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:105:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:106:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:106:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:107:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:107:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:108:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:108:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:109:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:109:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:110:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:110:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:111:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:111:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:112:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:112:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:113:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:113:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:114:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:114:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:115:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:115:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:116:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:116:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:117:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fout [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:44:17: note: Assignment 'fout=fopen(htmlPath,"w+")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:117:12: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:124:28: warning: If resource allocation fails, then there is a possible null pointer dereference: fhdr [nullPointerOutOfResources] Montage-6.1/web/mViewer/writeFitshdrHtml.c:42:17: note: Assuming allocation function fails Montage-6.1/web/mViewer/writeFitshdrHtml.c:42:17: note: Assignment 'fhdr=fopen(hdrFile,"r")', assigned value is 0 Montage-6.1/web/mViewer/writeFitshdrHtml.c:124:28: note: Null pointer dereference Montage-6.1/web/mViewer/writeFitshdrHtml.c:29:29: style: Parameter 'hdrFile' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/writeFitshdrHtml.c:29:44: style: Parameter 'htmlPath' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/writeFitshdrHtml.c:29:60: style: Parameter 'fileBase' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/writeOptionList.c:34:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/writeOptionList.c:32:24: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/writeOptionList.c:34:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/writeOptionList.c:44:10: style: Condition 'debugfile' is always false [knownConditionTrueFalse] Montage-6.1/web/mViewer/writeOptionList.c:32:24: note: Assignment 'debugfile=0', assigned value is 0 Montage-6.1/web/mViewer/writeOptionList.c:39:39: note: Assuming condition is false Montage-6.1/web/mViewer/writeOptionList.c:44:10: note: Condition 'debugfile' is always false Montage-6.1/web/mViewer/writeOptionList.c:26:28: style: Parameter 'filepath' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/writeJsonFile.c:134:10: style: Condition 'debugfile' is always true [knownConditionTrueFalse] Montage-6.1/web/mViewer/writeJsonFile.c:132:23: note: Assignment 'debugfile=1', assigned value is 1 Montage-6.1/web/mViewer/writeJsonFile.c:134:10: note: Condition 'debugfile' is always true Montage-6.1/web/mViewer/writeJsonFile.c:191:10: style: Condition 'debugfile' is always true [knownConditionTrueFalse] Montage-6.1/web/mViewer/writeJsonFile.c:188:24: note: Assignment 'debugfile=1', assigned value is 1 Montage-6.1/web/mViewer/writeJsonFile.c:191:10: note: Condition 'debugfile' is always true Montage-6.1/web/mViewer/writeJsonFile.c:896:10: style: Condition 'debugfile' is always true [knownConditionTrueFalse] Montage-6.1/web/mViewer/writeJsonFile.c:893:24: note: Assignment 'debugfile=1', assigned value is 1 Montage-6.1/web/mViewer/writeJsonFile.c:896:10: note: Condition 'debugfile' is always true Montage-6.1/web/mViewer/writeJsonFile.c:304:25: style: Variable 'param->endplane' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/web/mViewer/writeJsonFile.c:302:25: note: param->endplane is assigned Montage-6.1/web/mViewer/writeJsonFile.c:304:25: note: param->endplane is overwritten Montage-6.1/web/mViewer/writeJsonFile.c:1031:13: style: Variable 'istatus' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/web/mViewer/writeJsonFile.c:935:13: note: istatus is assigned Montage-6.1/web/mViewer/writeJsonFile.c:1031:13: note: istatus is overwritten Montage-6.1/web/mViewer/writeJsonFile.c:1041:13: style: Variable 'istatus' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/web/mViewer/writeJsonFile.c:1031:13: note: istatus is assigned Montage-6.1/web/mViewer/writeJsonFile.c:1041:13: note: istatus is overwritten Montage-6.1/web/mViewer/writeJsonFile.c:126:27: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] Montage-6.1/web/mViewer/writeJsonFile.c:1041:13: style: Variable 'istatus' is assigned a value that is never used. [unreadVariable] Montage-6.1/web/mViewer/writeJsonFile.c:889:12: style: Unused variable: str [unusedVariable] Montage-6.1/web/mViewer/readStartupParam.c:32:54: style: Parameter 'parampath' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Viewer/montageViewer.c:4279:30: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] Montage-6.1/MontageLib/Viewer/montageViewer.c:4362:32: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] Montage-6.1/MontageLib/Viewer/montageViewer.c:4440:31: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] Montage-6.1/MontageLib/Viewer/montageViewer.c:5022:31: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] Montage-6.1/MontageLib/Viewer/montageViewer.c:4027:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/MontageLib/Viewer/montageViewer.c:4032:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/MontageLib/Viewer/montageViewer.c:4837:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/MontageLib/Viewer/montageViewer.c:4842:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/MontageLib/Viewer/montageViewer.c:5858:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/MontageLib/Viewer/montageViewer.c:5858:7: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/MontageLib/Viewer/montageViewer.c:5872:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/MontageLib/Viewer/montageViewer.c:5872:7: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/MontageLib/Viewer/montageViewer.c:5930:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/MontageLib/Viewer/montageViewer.c:5930:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/MontageLib/Viewer/montageViewer.c:5938:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/MontageLib/Viewer/montageViewer.c:5938:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Montage-6.1/MontageLib/Viewer/montageViewer.c:7184:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/MontageLib/Viewer/montageViewer.c:7189:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/MontageLib/Viewer/montageViewer.c:7194:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/MontageLib/Viewer/montageViewer.c:7197:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/MontageLib/Viewer/montageViewer.c:7201:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/MontageLib/Viewer/montageViewer.c:7204:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/MontageLib/Viewer/montageViewer.c:7207:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/MontageLib/Viewer/montageViewer.c:7210:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/MontageLib/Viewer/montageViewer.c:7217:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/MontageLib/Viewer/montageViewer.c:7226:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] Montage-6.1/MontageLib/Viewer/montageViewer.c:8067:10: error: Common realloc mistake: 'xlab' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Viewer/montageViewer.c:8068:10: error: Common realloc mistake: 'ylab' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Viewer/montageViewer.c:8199:16: error: Common realloc mistake: 'xlin' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Viewer/montageViewer.c:8200:16: error: Common realloc mistake: 'ylin' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Viewer/montageViewer.c:8332:16: error: Common realloc mistake: 'xlin' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Viewer/montageViewer.c:8333:16: error: Common realloc mistake: 'ylin' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Viewer/montageViewer.c:8464:19: error: Common realloc mistake: 'xlin' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Viewer/montageViewer.c:8465:19: error: Common realloc mistake: 'ylin' nulled but not freed upon failure [memleakOnRealloc] Montage-6.1/MontageLib/Viewer/montageViewer.c:8030:4: warning: If memory allocation fails, then there is a possible null pointer dereference: xlab [nullPointerOutOfMemory] Montage-6.1/MontageLib/Viewer/montageViewer.c:8024:27: note: Assuming allocation function fails Montage-6.1/MontageLib/Viewer/montageViewer.c:8024:11: note: Assignment 'xlab=(double*)malloc(256*sizeof(double))', assigned value is 0 Montage-6.1/MontageLib/Viewer/montageViewer.c:8030:4: note: Null pointer dereference Montage-6.1/MontageLib/Viewer/montageViewer.c:8031:4: warning: If memory allocation fails, then there is a possible null pointer dereference: ylab [nullPointerOutOfMemory] Montage-6.1/MontageLib/Viewer/montageViewer.c:8025:27: note: Assuming allocation function fails Montage-6.1/MontageLib/Viewer/montageViewer.c:8025:11: note: Assignment 'ylab=(double*)malloc(256*sizeof(double))', assigned value is 0 Montage-6.1/MontageLib/Viewer/montageViewer.c:8031:4: note: Null pointer dereference Montage-6.1/MontageLib/Viewer/montageViewer.c:8502:7: warning: If memory allocation fails, then there is a possible null pointer dereference: xcurve [nullPointerOutOfMemory] Montage-6.1/MontageLib/Viewer/montageViewer.c:8497:29: note: Assuming allocation function fails Montage-6.1/MontageLib/Viewer/montageViewer.c:8497:13: note: Assignment 'xcurve=(double*)malloc(nx*sizeof(double))', assigned value is 0 Montage-6.1/MontageLib/Viewer/montageViewer.c:8502:7: note: Null pointer dereference Montage-6.1/MontageLib/Viewer/montageViewer.c:8503:7: warning: If memory allocation fails, then there is a possible null pointer dereference: ycurve [nullPointerOutOfMemory] Montage-6.1/MontageLib/Viewer/montageViewer.c:8498:29: note: Assuming allocation function fails Montage-6.1/MontageLib/Viewer/montageViewer.c:8498:13: note: Assignment 'ycurve=(double*)malloc(nx*sizeof(double))', assigned value is 0 Montage-6.1/MontageLib/Viewer/montageViewer.c:8503:7: note: Null pointer dereference Montage-6.1/MontageLib/Viewer/montageViewer.c:6277:9: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] Montage-6.1/MontageLib/Viewer/montageViewer.c:6285:4: note: Found duplicate branches for 'if' and 'else'. Montage-6.1/MontageLib/Viewer/montageViewer.c:6277:9: note: Found duplicate branches for 'if' and 'else'. Montage-6.1/MontageLib/Viewer/montageViewer.c:1455:35: style: Variable 'cat[ncat].symUnits' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/MontageLib/Viewer/montageViewer.c:1442:38: note: cat[ncat].symUnits is assigned Montage-6.1/MontageLib/Viewer/montageViewer.c:1455:35: note: cat[ncat].symUnits is overwritten Montage-6.1/MontageLib/Viewer/montageViewer.c:1691:37: style: Variable 'mark[nmark].symUnits' is reassigned a value before the old one has been used. [redundantAssignment] Montage-6.1/MontageLib/Viewer/montageViewer.c:1678:40: note: mark[nmark].symUnits is assigned Montage-6.1/MontageLib/Viewer/montageViewer.c:1691:37: note: mark[nmark].symUnits is overwritten Montage-6.1/MontageLib/Viewer/montageViewer.c:6328:29: style: Local variable 'wcs' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:108:26: note: Shadowed declaration Montage-6.1/MontageLib/Viewer/montageViewer.c:6328:29: note: Shadow variable Montage-6.1/MontageLib/Viewer/montageViewer.c:7430:11: style: Local variable 'naxis1' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:89:15: note: Shadowed declaration Montage-6.1/MontageLib/Viewer/montageViewer.c:7430:11: note: Shadow variable Montage-6.1/MontageLib/Viewer/montageViewer.c:7430:19: style: Local variable 'naxis2' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:89:23: note: Shadowed declaration Montage-6.1/MontageLib/Viewer/montageViewer.c:7430:19: note: Shadow variable Montage-6.1/MontageLib/Viewer/montageViewer.c:7431:11: style: Local variable 'crval1' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:96:15: note: Shadowed declaration Montage-6.1/MontageLib/Viewer/montageViewer.c:7431:11: note: Shadow variable Montage-6.1/MontageLib/Viewer/montageViewer.c:7431:19: style: Local variable 'crval2' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:96:23: note: Shadowed declaration Montage-6.1/MontageLib/Viewer/montageViewer.c:7431:19: note: Shadow variable Montage-6.1/MontageLib/Viewer/montageViewer.c:7432:11: style: Local variable 'crpix1' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:95:15: note: Shadowed declaration Montage-6.1/MontageLib/Viewer/montageViewer.c:7432:11: note: Shadow variable Montage-6.1/MontageLib/Viewer/montageViewer.c:7432:19: style: Local variable 'crpix2' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:95:23: note: Shadowed declaration Montage-6.1/MontageLib/Viewer/montageViewer.c:7432:19: note: Shadow variable Montage-6.1/MontageLib/Viewer/montageViewer.c:7433:11: style: Local variable 'xinc' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:101:15: note: Shadowed declaration Montage-6.1/MontageLib/Viewer/montageViewer.c:7433:11: note: Shadow variable Montage-6.1/MontageLib/Viewer/montageViewer.c:7433:17: style: Local variable 'yinc' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:101:23: note: Shadowed declaration Montage-6.1/MontageLib/Viewer/montageViewer.c:7433:17: note: Shadow variable Montage-6.1/MontageLib/Viewer/montageViewer.c:7434:11: style: Local variable 'crota2' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:98:15: note: Shadowed declaration Montage-6.1/MontageLib/Viewer/montageViewer.c:7434:11: note: Shadow variable Montage-6.1/MontageLib/Viewer/montageViewer.c:7888:12: style: Local variable 'ii' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:136:21: note: Shadowed declaration Montage-6.1/MontageLib/Viewer/montageViewer.c:7888:12: note: Shadow variable Montage-6.1/MontageLib/Viewer/montageViewer.c:8096:12: style: Local variable 'ii' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:136:21: note: Shadowed declaration Montage-6.1/MontageLib/Viewer/montageViewer.c:8096:12: note: Shadow variable Montage-6.1/MontageLib/Viewer/montageViewer.c:8228:12: style: Local variable 'ii' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:136:21: note: Shadowed declaration Montage-6.1/MontageLib/Viewer/montageViewer.c:8228:12: note: Shadow variable Montage-6.1/MontageLib/Viewer/montageViewer.c:8363:12: style: Local variable 'ii' shadows outer variable [shadowVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:136:21: note: Shadowed declaration Montage-6.1/MontageLib/Viewer/montageViewer.c:8363:12: note: Shadow variable Montage-6.1/MontageLib/Viewer/montageViewer.c:185:51: style: Parameter 'outFile' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Viewer/montageViewer.c:185:76: style: Parameter 'outFmt' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Viewer/montageViewer.c:185:90: style: Parameter 'fontFile' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Viewer/montageViewer.c:197:14: style: Variable 'checkHdr' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Viewer/montageViewer.c:6195:31: style: Parameter 'colorin' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Viewer/montageViewer.c:6361:40: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Viewer/montageViewer.c:6484:12: style: Variable 'dn' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Viewer/montageViewer.c:6484:17: style: Variable 'red_tbl' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Viewer/montageViewer.c:6484:27: style: Variable 'grn_tbl' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Viewer/montageViewer.c:6484:37: style: Variable 'blue_tbl' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Viewer/montageViewer.c:6856:44: style: Parameter 'minstr' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Viewer/montageViewer.c:6856:58: style: Parameter 'maxstr' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Viewer/montageViewer.c:6858:38: style: Parameter 'betastr' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Viewer/montageViewer.c:6861:38: style: Parameter 'planes' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Viewer/montageViewer.c:7158:28: style: Parameter 'histfile' can be declared as pointer to const [constParameterPointer] Montage-6.1/MontageLib/Viewer/montageViewer.c:7336:16: style: Variable 'end' can be declared as pointer to const [constVariablePointer] Montage-6.1/MontageLib/Viewer/montageViewer.c:7593:11: style: Variable 'a' can be declared as const array [constVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:7597:11: style: Variable 'b' can be declared as const array [constVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:7601:11: style: Variable 'a1' can be declared as const array [constVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:7606:11: style: Variable 'b1' can be declared as const array [constVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:7611:11: style: Variable 'a2' can be declared as const array [constVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:7617:11: style: Variable 'b2' can be declared as const array [constVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:7622:11: style: Variable 'a3' can be declared as const array [constVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:7628:11: style: Variable 'b3' can be declared as const array [constVariable] Montage-6.1/MontageLib/Viewer/montageViewer.c:7761:14: error: Uninitialized variable: rref [legacyUninitvar] Montage-6.1/MontageLib/Viewer/montageViewer.c:7761:21: error: Uninitialized variable: gref [legacyUninitvar] Montage-6.1/MontageLib/Viewer/montageViewer.c:7761:28: error: Uninitialized variable: bref [legacyUninitvar] Montage-6.1/MontageLib/Viewer/montageViewer.c:6178:13: style: Variable 'i' is assigned a value that is never used. [unreadVariable] diff: head Montage-6.1/grid/Pegasus/hashtable.c:54:7: error: Memory leak: new_table.tail [memleak] head Montage-6.1/lib/src/coord/sexToDecimalDegree.c:240:3: style: Variable 'sec' is assigned an expression that holds the same value. [redundantAssignment] Montage-6.1/lib/src/coord/sexToDecimalDegree.c:226:11: note: sec is assigned 'atof(tmps)' here. Montage-6.1/lib/src/coord/sexToDecimalDegree.c:240:3: note: Variable 'sec' is assigned an expression that holds the same value. head Montage-6.1/lib/src/coord/sexToDecimalDegree.c:460:3: style: Variable 'sec' is assigned an expression that holds the same value. [redundantAssignment] Montage-6.1/lib/src/coord/sexToDecimalDegree.c:446:11: note: sec is assigned 'atof(tmps)' here. Montage-6.1/lib/src/coord/sexToDecimalDegree.c:460:3: note: Variable 'sec' is assigned an expression that holds the same value. head Montage-6.1/lib/src/json/jsonlib.c:97:7: error: Memory leak: json.key [memleak] head Montage-6.1/lib/src/json/jsonlib.c:97:7: error: Memory leak: json.val [memleak] head Montage-6.1/lib/src/svc/structlib.c:89:7: error: Memory leak: svc.key [memleak] head Montage-6.1/lib/src/svc/structlib.c:89:7: error: Memory leak: svc.val [memleak] DONE