2025-11-23 08:49 ftp://ftp.de.debian.org/debian/pool/main/p/pluto-find-orb/pluto-find-orb_0.0~git20180227.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=mfc --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-88-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 468 468 elapsed-time: 28.8 31.6 head-timing-info: old-timing-info: head results: pluto-find-orb/find_orb.h:5:0: error: #error include 'stdafx.h' before including this file for PCH [preprocessorErrorDirective] pluto-find-orb/b32_eph.cpp:57:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CALENDAR_JULIAN_GREGORIAN [valueFlowBailoutIncompleteVar] pluto-find-orb/b32_eph.cpp:210:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CALENDAR_JULIAN_GREGORIAN [valueFlowBailoutIncompleteVar] pluto-find-orb/b32_eph.cpp:55:13: warning: If resource allocation fails, then there is a possible null pointer dereference: ofile [nullPointerOutOfResources] pluto-find-orb/b32_eph.cpp:192:17: note: Assuming allocation function fails pluto-find-orb/b32_eph.cpp:192:17: note: Assignment 'ofile=fopen(filename,"wb")', assigned value is 0 pluto-find-orb/b32_eph.cpp:207:27: note: Calling function 'add_ephemeris_details', 1st argument 'ofile' value is 0 pluto-find-orb/b32_eph.cpp:55:13: note: Null pointer dereference pluto-find-orb/b32_eph.cpp:58:13: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: ofile [nullPointerOutOfResources] pluto-find-orb/b32_eph.cpp:192:17: note: Assuming allocation function fails pluto-find-orb/b32_eph.cpp:192:17: note: Assignment 'ofile=fopen(filename,"wb")', assigned value is 0 pluto-find-orb/b32_eph.cpp:207:27: note: Calling function 'add_ephemeris_details', 1st argument 'ofile' value is 0 pluto-find-orb/b32_eph.cpp:58:13: note: Null pointer dereference pluto-find-orb/b32_eph.cpp:61:13: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: ofile [nullPointerOutOfResources] pluto-find-orb/b32_eph.cpp:192:17: note: Assuming allocation function fails pluto-find-orb/b32_eph.cpp:192:17: note: Assignment 'ofile=fopen(filename,"wb")', assigned value is 0 pluto-find-orb/b32_eph.cpp:207:27: note: Calling function 'add_ephemeris_details', 1st argument 'ofile' value is 0 pluto-find-orb/b32_eph.cpp:61:13: note: Null pointer dereference pluto-find-orb/b32_eph.cpp:63:13: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: ofile [nullPointerOutOfResources] pluto-find-orb/b32_eph.cpp:192:17: note: Assuming allocation function fails pluto-find-orb/b32_eph.cpp:192:17: note: Assignment 'ofile=fopen(filename,"wb")', assigned value is 0 pluto-find-orb/b32_eph.cpp:207:27: note: Calling function 'add_ephemeris_details', 1st argument 'ofile' value is 0 pluto-find-orb/b32_eph.cpp:63:13: note: Null pointer dereference pluto-find-orb/b32_eph.cpp:64:13: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: ofile [nullPointerOutOfResources] pluto-find-orb/b32_eph.cpp:192:17: note: Assuming allocation function fails pluto-find-orb/b32_eph.cpp:192:17: note: Assignment 'ofile=fopen(filename,"wb")', assigned value is 0 pluto-find-orb/b32_eph.cpp:207:27: note: Calling function 'add_ephemeris_details', 1st argument 'ofile' value is 0 pluto-find-orb/b32_eph.cpp:64:13: note: Null pointer dereference pluto-find-orb/b32_eph.cpp:199:27: warning: If resource allocation fails, then there is a possible null pointer dereference: ofile [nullPointerOutOfResources] pluto-find-orb/b32_eph.cpp:192:17: note: Assuming allocation function fails pluto-find-orb/b32_eph.cpp:192:17: note: Assignment 'ofile=fopen(filename,"wb")', assigned value is 0 pluto-find-orb/b32_eph.cpp:199:27: note: Null pointer dereference pluto-find-orb/b32_eph.cpp:204:46: warning: If resource allocation fails, then there is a possible null pointer dereference: ofile [nullPointerOutOfResources] pluto-find-orb/b32_eph.cpp:192:17: note: Assuming allocation function fails pluto-find-orb/b32_eph.cpp:192:17: note: Assignment 'ofile=fopen(filename,"wb")', assigned value is 0 pluto-find-orb/b32_eph.cpp:204:46: note: Null pointer dereference pluto-find-orb/b32_eph.cpp:208:12: warning: If resource allocation fails, then there is a possible null pointer dereference: ofile [nullPointerOutOfResources] pluto-find-orb/b32_eph.cpp:192:17: note: Assuming allocation function fails pluto-find-orb/b32_eph.cpp:192:17: note: Assignment 'ofile=fopen(filename,"wb")', assigned value is 0 pluto-find-orb/b32_eph.cpp:208:12: note: Null pointer dereference pluto-find-orb/b32_eph.cpp:153:27: style: C-style pointer casting [cstyleCast] pluto-find-orb/b32_eph.cpp:127:35: warning: Uninitialized variable: tarray [uninitvar] pluto-find-orb/b32_eph.cpp:121:27: note: Assuming condition is false pluto-find-orb/b32_eph.cpp:127:35: note: Uninitialized variable: tarray pluto-find-orb/bc405.cpp:129:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ELEMENTS [valueFlowBailoutIncompleteVar] pluto-find-orb/bc405.cpp:168:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ELEMENTS [valueFlowBailoutIncompleteVar] pluto-find-orb/bc405.cpp:168:15: style: C-style pointer casting [cstyleCast] pluto-find-orb/bc405.cpp:317:14: style: C-style pointer casting [cstyleCast] pluto-find-orb/bc405.cpp:269:8: style: The scope of the variable 'i' can be reduced. [variableScope] pluto-find-orb/bc405.cpp:448:11: style: The scope of the variable 'j' can be reduced. [variableScope] pluto-find-orb/bc405.cpp:249:33: warning: Uninitialized variable: posns [uninitvar] pluto-find-orb/bc405.cpp:245:21: note: Assuming condition is false pluto-find-orb/bc405.cpp:249:33: note: Uninitialized variable: posns pluto-find-orb/bias.cpp:82:19: style: C-style pointer casting [cstyleCast] pluto-find-orb/bias.cpp:55:13: style: The scope of the variable 'i' can be reduced. [variableScope] pluto-find-orb/bias.cpp:113:22: style: Variable 'tptr' can be declared as pointer to const [constVariablePointer] pluto-find-orb/clipfunc.cpp:43:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GMEM_MOVEABLE [valueFlowBailoutIncompleteVar] pluto-find-orb/clipfunc.cpp:123:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CF_OEMTEXT [valueFlowBailoutIncompleteVar] pluto-find-orb/clipfunc.cpp:95:14: style: C-style pointer casting [cstyleCast] pluto-find-orb/clipfunc.cpp:123:21: style: C-style pointer casting [cstyleCast] pluto-find-orb/clipfunc.cpp:119:15: style: Variable 'text' can be declared as pointer to const [constVariablePointer] pluto-find-orb/collide.cpp:54:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_IN_METERS [valueFlowBailoutIncompleteVar] pluto-find-orb/collide.cpp:92:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_IN_METERS [valueFlowBailoutIncompleteVar] pluto-find-orb/collide.cpp:88:11: style: The scope of the variable 't_high' can be reduced. [variableScope] pluto-find-orb/collide.cpp:93:8: style: The scope of the variable 'iter' can be reduced. [variableScope] pluto-find-orb/cssfield.cpp:173:25: warning:inconclusive: Width 70 given in format string (no. 3) is smaller than destination buffer 'timestr[80]'. [invalidScanfFormatWidth_smaller] pluto-find-orb/cssfield.cpp:170:16: error: Common realloc mistake: 'rval' nulled but not freed upon failure [memleakOnRealloc] pluto-find-orb/cssfield.cpp:67:35: style: C-style pointer casting [cstyleCast] pluto-find-orb/cssfield.cpp:68:35: style: C-style pointer casting [cstyleCast] pluto-find-orb/cssfield.cpp:170:23: style: C-style pointer casting [cstyleCast] pluto-find-orb/cssfield.cpp:174:48: style: C-style pointer casting [cstyleCast] pluto-find-orb/cssfield.cpp:161:20: style: Local variable 'i' shadows outer variable [shadowVariable] pluto-find-orb/cssfield.cpp:130:30: note: Shadowed declaration pluto-find-orb/cssfield.cpp:161:20: note: Shadow variable pluto-find-orb/details.cpp:34:34: style: C-style pointer casting [cstyleCast] pluto-find-orb/details.cpp:39:25: style: C-style pointer casting [cstyleCast] pluto-find-orb/details.cpp:88:39: style: C-style pointer casting [cstyleCast] pluto-find-orb/details.cpp:99:15: style: C-style pointer casting [cstyleCast] pluto-find-orb/details.cpp:118:42: style: C-style pointer casting [cstyleCast] pluto-find-orb/details.cpp:135:35: style: C-style pointer casting [cstyleCast] pluto-find-orb/details.cpp:158:33: style: C-style pointer casting [cstyleCast] pluto-find-orb/details.cpp:205:17: style: C-style pointer casting [cstyleCast] pluto-find-orb/details.cpp:210:36: style: C-style pointer casting [cstyleCast] pluto-find-orb/details.cpp:223:33: style: C-style pointer casting [cstyleCast] pluto-find-orb/details.cpp:72:55: style: The scope of the variable 'loc1' can be reduced. [variableScope] pluto-find-orb/elem2tle.cpp:71:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable minutes_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/elem2tle.cpp:104:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tle_t [valueFlowBailoutIncompleteVar] pluto-find-orb/elem_ou2.cpp:134:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seconds_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/elem_ou2.cpp:183:17: style: Local variable 'j' shadows outer variable [shadowVariable] pluto-find-orb/elem_ou2.cpp:53:11: note: Shadowed declaration pluto-find-orb/elem_ou2.cpp:183:17: note: Shadow variable pluto-find-orb/elem_out.cpp:169:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CALENDAR_JULIAN_GREGORIAN [valueFlowBailoutIncompleteVar] pluto-find-orb/elem_out.cpp:372:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seconds_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/elem_out.cpp:403:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CALENDAR_JULIAN_GREGORIAN [valueFlowBailoutIncompleteVar] pluto-find-orb/elem_out.cpp:481:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CALENDAR_JULIAN_GREGORIAN [valueFlowBailoutIncompleteVar] pluto-find-orb/elem_out.cpp:927:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHOWELEM_PERIH_TIME_MASK [valueFlowBailoutIncompleteVar] pluto-find-orb/elem_out.cpp:1738:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ELEMENTS [valueFlowBailoutIncompleteVar] pluto-find-orb/elem_out.cpp:1974:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable jd [valueFlowBailoutIncompleteVar] pluto-find-orb/elem_out.cpp:2543:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] pluto-find-orb/elem_out.cpp:1859:7: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] pluto-find-orb/elem_out.cpp:362:18: style: Redundant condition: The condition '*ibuff' is redundant since '*ibuff == ' '' is sufficient. [redundantCondition] pluto-find-orb/elem_out.cpp:1160:27: style: Condition 'j>7' is always false [knownConditionTrueFalse] pluto-find-orb/elem_out.cpp:1145:27: note: Assuming that condition 'j<8' is not redundant pluto-find-orb/elem_out.cpp:1160:27: note: Condition 'j>7' is always false pluto-find-orb/elem_out.cpp:1055:28: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: tbuff [nullPointerOutOfMemory] pluto-find-orb/elem_out.cpp:1051:26: note: Assuming allocation function fails pluto-find-orb/elem_out.cpp:1051:12: note: Assignment 'tbuff=(char*)malloc(80*9)', assigned value is 0 pluto-find-orb/elem_out.cpp:1055:28: note: Null pointer dereference pluto-find-orb/elem_out.cpp:1056:27: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: tbuff [nullPointerOutOfMemory] pluto-find-orb/elem_out.cpp:1051:26: note: Assuming allocation function fails pluto-find-orb/elem_out.cpp:1051:12: note: Assignment 'tbuff=(char*)malloc(80*9)', assigned value is 0 pluto-find-orb/elem_out.cpp:1056:27: note: Null pointer dereference pluto-find-orb/elem_out.cpp:2414:14: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sdata [nullPointerOutOfMemory] pluto-find-orb/elem_out.cpp:2508:37: note: Assuming allocation function fails pluto-find-orb/elem_out.cpp:2508:16: note: Assignment 'rval=(struct mpc_station*)calloc(n_alloced+1,sizeof(struct mpc_station))', assigned value is 0 pluto-find-orb/elem_out.cpp:2511:27: note: Calling function 'find_mpc_color', 1st argument 'rval' value is 0 pluto-find-orb/elem_out.cpp:2414:14: note: Null pointer dereference pluto-find-orb/elem_out.cpp:2417:44: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sdata [nullPointerOutOfMemory] pluto-find-orb/elem_out.cpp:2508:37: note: Assuming allocation function fails pluto-find-orb/elem_out.cpp:2508:16: note: Assignment 'rval=(struct mpc_station*)calloc(n_alloced+1,sizeof(struct mpc_station))', assigned value is 0 pluto-find-orb/elem_out.cpp:2511:27: note: Calling function 'find_mpc_color', 1st argument 'rval' value is 0 pluto-find-orb/elem_out.cpp:2417:44: note: Null pointer dereference pluto-find-orb/elem_out.cpp:2521:21: warning: If memory allocation fails, then there is a possible null pointer dereference: new_array [nullPointerOutOfMemory] pluto-find-orb/elem_out.cpp:2519:41: note: Assuming allocation function fails pluto-find-orb/elem_out.cpp:2519:20: note: Assignment 'new_array=(struct mpc_station*)calloc(new_size+1,sizeof(struct mpc_station))', assigned value is 0 pluto-find-orb/elem_out.cpp:2521:21: note: Null pointer dereference pluto-find-orb/elem_out.cpp:1056:17: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] pluto-find-orb/elem_out.cpp:1051:26: note: Assuming allocation function fails pluto-find-orb/elem_out.cpp:1051:12: note: Assignment 'tbuff=(char*)malloc(80*9)', assigned value is 0 pluto-find-orb/elem_out.cpp:1056:17: note: Null pointer addition pluto-find-orb/elem_out.cpp:1051:12: style: C-style pointer casting [cstyleCast] pluto-find-orb/elem_out.cpp:1653:22: style: C-style pointer casting [cstyleCast] pluto-find-orb/elem_out.cpp:1654:22: style: C-style pointer casting [cstyleCast] pluto-find-orb/elem_out.cpp:1655:23: style: C-style pointer casting [cstyleCast] pluto-find-orb/elem_out.cpp:2314:14: style: C-style pointer casting [cstyleCast] pluto-find-orb/elem_out.cpp:2372:16: style: C-style pointer casting [cstyleCast] pluto-find-orb/elem_out.cpp:2508:16: style: C-style pointer casting [cstyleCast] pluto-find-orb/elem_out.cpp:2519:20: style: C-style pointer casting [cstyleCast] pluto-find-orb/elem_out.cpp:696:31: style: The scope of the variable 'obuff' can be reduced. [variableScope] pluto-find-orb/elem_out.cpp:1133:14: style: The scope of the variable 'j' can be reduced. [variableScope] pluto-find-orb/elem_out.cpp:1417:28: style: The scope of the variable 'names' can be reduced. [variableScope] pluto-find-orb/elem_out.cpp:1694:26: style: The scope of the variable 'loc1' can be reduced. [variableScope] pluto-find-orb/elem_out.cpp:936:15: style: Local variable 'available_sigmas' shadows outer variable [shadowVariable] pluto-find-orb/elem_out.cpp:553:12: note: Shadowed declaration pluto-find-orb/elem_out.cpp:936:15: note: Shadow variable pluto-find-orb/elem_out.cpp:1242:21: style: Local variable 'tbuff' shadows outer variable [shadowVariable] pluto-find-orb/elem_out.cpp:924:17: note: Shadowed declaration pluto-find-orb/elem_out.cpp:1242:21: note: Shadow variable pluto-find-orb/elem_out.cpp:1963:15: style: Local variable 'debug_level' shadows outer variable [shadowVariable] pluto-find-orb/elem_out.cpp:117:12: note: Shadowed declaration pluto-find-orb/elem_out.cpp:1963:15: note: Shadow variable pluto-find-orb/elem_out.cpp:579:22: style: Variable 'tptr' can be declared as pointer to const [constVariablePointer] pluto-find-orb/elem_out.cpp:1079:24: style: Variable 'mass' can be declared as pointer to const [constVariablePointer] pluto-find-orb/elem_out.cpp:1655:9: style: Variable 'sort_column' can be declared as pointer to const [constVariablePointer] pluto-find-orb/elem_out.cpp:1730:16: style: Variable 'loc' can be declared as pointer to const [constVariablePointer] pluto-find-orb/elem_out.cpp:1859:18: style: Variable 'perturbers' is assigned a value that is never used. [unreadVariable] pluto-find-orb/eph2tle.cpp:108:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable N_SAT_PARAMS [valueFlowBailoutIncompleteVar] pluto-find-orb/eph2tle.cpp:197:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable minutes_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/eph2tle.cpp:389:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable minutes_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/eph2tle.cpp:481:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] pluto-find-orb/eph2tle.cpp:397:39: style: C-style pointer casting [cstyleCast] pluto-find-orb/eph2tle.cpp:449:23: style: C-style pointer casting [cstyleCast] pluto-find-orb/eph2tle.cpp:489:21: style: C-style pointer casting [cstyleCast] pluto-find-orb/eph2tle.cpp:577:14: style: C-style pointer casting [cstyleCast] pluto-find-orb/eph2tle.cpp:482:14: style: The scope of the variable 'count' can be reduced. [variableScope] pluto-find-orb/eph2tle.cpp:716:11: style: The scope of the variable 'lsquare_rval' can be reduced. [variableScope] pluto-find-orb/eph2tle.cpp:664:22: style: Local variable 'jd_utc' shadows outer variable [shadowVariable] pluto-find-orb/eph2tle.cpp:659:20: note: Shadowed declaration pluto-find-orb/eph2tle.cpp:664:22: note: Shadow variable pluto-find-orb/eph2tle.cpp:886:25: style: Local variable 't0' shadows outer variable [shadowVariable] pluto-find-orb/eph2tle.cpp:494:17: note: Shadowed declaration pluto-find-orb/eph2tle.cpp:886:25: note: Shadow variable pluto-find-orb/eph2tle.cpp:395:38: style: Parameter 'icontext' can be declared as pointer to const. However it seems that 'simplex_scoring' is a callback function, if 'icontext' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pluto-find-orb/eph2tle.cpp:455:35: note: You might need to cast the function pointer here pluto-find-orb/eph2tle.cpp:395:38: note: Parameter 'icontext' can be declared as pointer to const pluto-find-orb/eph2tle.cpp:407:15: style: Variable 'tptr' can be declared as pointer to const [constVariablePointer] pluto-find-orb/eph2tle.cpp:498:15: style: Variable 'histo_divs' can be declared as const array [constVariable] pluto-find-orb/eph2tle.cpp:177:33: style: Variable 'delta' is assigned a value that is never used. [unreadVariable] pluto-find-orb/eph2tle.cpp:729:55: style: Variable 'rms_change' is assigned a value that is never used. [unreadVariable] pluto-find-orb/eph2tle.cpp:806:24: style: Variable 'rms_change' is assigned a value that is never used. [unreadVariable] pluto-find-orb/eph2tle.cpp:882:12: style: Variable 'count' is assigned a value that is never used. [unreadVariable] pluto-find-orb/ephem0.cpp:119:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_IN_METERS [valueFlowBailoutIncompleteVar] pluto-find-orb/ephem0.cpp:143:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_IN_METERS [valueFlowBailoutIncompleteVar] pluto-find-orb/ephem0.cpp:308:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_IN_KM [valueFlowBailoutIncompleteVar] pluto-find-orb/ephem0.cpp:384:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPEED_OF_LIGHT [valueFlowBailoutIncompleteVar] pluto-find-orb/ephem0.cpp:447:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hours_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/ephem0.cpp:505:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_PER_DAY [valueFlowBailoutIncompleteVar] pluto-find-orb/ephem0.cpp:688:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seconds_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/ephem0.cpp:1037:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_IN_KM [valueFlowBailoutIncompleteVar] pluto-find-orb/ephem0.cpp:1189:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] pluto-find-orb/ephem0.cpp:1300:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_IN_METERS [valueFlowBailoutIncompleteVar] pluto-find-orb/ephem0.cpp:2254:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seconds_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/ephem0.cpp:2309:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seconds_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/ephem0.cpp:3288:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FULL_CTIME_YMD [valueFlowBailoutIncompleteVar] pluto-find-orb/ephem0.cpp:845:4: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat] pluto-find-orb/ephem0.cpp:1555:10: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat] pluto-find-orb/ephem0.cpp:799:26: warning:inconclusive: Width 24 given in format string (no. 1) is smaller than destination buffer 'time_buff[40]'. [invalidScanfFormatWidth_smaller] pluto-find-orb/ephem0.cpp:799:26: warning:inconclusive: Width 90 given in format string (no. 2) is smaller than destination buffer 'filename[100]'. [invalidScanfFormatWidth_smaller] pluto-find-orb/ephem0.cpp:1078:4: warning: snprintf format string requires 0 parameters but 1 is given. [wrongPrintfScanfArgNum] pluto-find-orb/ephem0.cpp:682:12: warning: If memory allocation fails, then there is a possible null pointer dereference: orbi [nullPointerOutOfMemory] pluto-find-orb/ephem0.cpp:681:27: note: Assuming allocation function fails pluto-find-orb/ephem0.cpp:681:11: note: Assignment 'orbi=(double*)malloc(12*n_orbits*sizeof(double))', assigned value is 0 pluto-find-orb/ephem0.cpp:682:12: note: Null pointer dereference pluto-find-orb/ephem0.cpp:676:12: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] pluto-find-orb/ephem0.cpp:675:33: note: Assuming allocation function fails pluto-find-orb/ephem0.cpp:675:9: note: Assignment 'p1=(struct obj_location_t*)calloc(3*n_orbits,sizeof(struct obj_location_t))', assigned value is 0 pluto-find-orb/ephem0.cpp:676:12: note: Null pointer addition pluto-find-orb/ephem0.cpp:675:9: style: C-style pointer casting [cstyleCast] pluto-find-orb/ephem0.cpp:681:11: style: C-style pointer casting [cstyleCast] pluto-find-orb/ephem0.cpp:1195:8: style: C-style pointer casting [cstyleCast] pluto-find-orb/ephem0.cpp:1326:22: style: C-style pointer casting [cstyleCast] pluto-find-orb/ephem0.cpp:1703:40: style: C-style pointer casting [cstyleCast] pluto-find-orb/ephem0.cpp:3073:33: style: C-style pointer casting [cstyleCast] pluto-find-orb/ephem0.cpp:1328:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] pluto-find-orb/ephem0.cpp:1702:43: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] pluto-find-orb/ephem0.cpp:309:19: style: The scope of the variable 'fmt' can be reduced. [variableScope] pluto-find-orb/ephem0.cpp:2810:18: style: The scope of the variable 'new_code_found' can be reduced. [variableScope] pluto-find-orb/ephem0.cpp:2913:23: style: The scope of the variable 'len2' can be reduced. [variableScope] pluto-find-orb/ephem0.cpp:2931:32: style: The scope of the variable 'j' can be reduced. [variableScope] pluto-find-orb/ephem0.cpp:3180:11: style: The scope of the variable 'diff' can be reduced. [variableScope] pluto-find-orb/ephem0.cpp:3204:39: style: The scope of the variable 'suppressed' can be reduced. [variableScope] pluto-find-orb/ephem0.cpp:3206:13: style: The scope of the variable 'redacted_line_number' can be reduced. [variableScope] pluto-find-orb/ephem0.cpp:3271:20: style: The scope of the variable 'got_it' can be reduced. [variableScope] pluto-find-orb/ephem0.cpp:3638:53: style: The scope of the variable 'line' can be reduced. [variableScope] pluto-find-orb/ephem0.cpp:3184:41: warning: Either the condition 'digit==1' is redundant or there is division by zero at line 3184. [zerodivcond] pluto-find-orb/ephem0.cpp:3186:17: note: Assuming that condition 'digit==1' is not redundant pluto-find-orb/ephem0.cpp:3182:37: note: Compound assignment '/=', assigned value is 0 pluto-find-orb/ephem0.cpp:3184:41: note: Division by zero pluto-find-orb/ephem0.cpp:739:17: style: Local variable 'i' shadows outer variable [shadowVariable] pluto-find-orb/ephem0.cpp:691:14: note: Shadowed declaration pluto-find-orb/ephem0.cpp:739:17: note: Shadow variable pluto-find-orb/ephem0.cpp:3491:40: style: Local variable 'tptr' shadows outer variable [shadowVariable] pluto-find-orb/ephem0.cpp:3466:19: note: Shadowed declaration pluto-find-orb/ephem0.cpp:3491:40: note: Shadow variable pluto-find-orb/ephem0.cpp:1770:36: style: Variable 'dark' can be declared as const array [constVariable] pluto-find-orb/ephem0.cpp:1771:36: style: Variable 'light' can be declared as const array [constVariable] pluto-find-orb/ephem0.cpp:523:26: style: struct member 'field_location_t::tilt' is never used. [unusedStructMember] pluto-find-orb/ephem0.cpp:3202:16: style: Variable 'line_no' is assigned a value that is never used. [unreadVariable] pluto-find-orb/findorb.cpp:242:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] pluto-find-orb/findorb.cpp:285:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] pluto-find-orb/findorb.cpp:380:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] pluto-find-orb/findorb.cpp:483:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FULL_CTIME_YMD [valueFlowBailoutIncompleteVar] pluto-find-orb/findorb.cpp:558:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FULL_CTIME_DAY_OF_WEEK_FIRST [valueFlowBailoutIncompleteVar] pluto-find-orb/findorb.cpp:910:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] pluto-find-orb/findorb.cpp:1168:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] pluto-find-orb/findorb.cpp:1378:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] pluto-find-orb/findorb.cpp:1392:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] pluto-find-orb/findorb.cpp:1576:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] pluto-find-orb/findorb.cpp:1616:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] pluto-find-orb/findorb.cpp:1674:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] pluto-find-orb/findorb.cpp:1942:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BLINK [valueFlowBailoutIncompleteVar] pluto-find-orb/findorb.cpp:2108:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ELEMENTS [valueFlowBailoutIncompleteVar] pluto-find-orb/findorb.cpp:2222:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] pluto-find-orb/findorb.cpp:238:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] pluto-find-orb/findorb.cpp:2334:4: warning:inconclusive: Width 9 given in format string (no. 1) is smaller than destination buffer 'mpc_code[80]'. [invalidScanfFormatWidth_smaller] pluto-find-orb/findorb.cpp:2356:4: warning:inconclusive: Width 9 given in format string (no. 2) is smaller than destination buffer 'ephemeris_step_size[80]'. [invalidScanfFormatWidth_smaller] pluto-find-orb/findorb.cpp:2866:13: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] pluto-find-orb/findorb.cpp:2866:13: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] pluto-find-orb/findorb.cpp:2866:13: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] pluto-find-orb/findorb.cpp:4426:4: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] pluto-find-orb/findorb.cpp:1652:10: error: Common realloc mistake: 'index' nulled but not freed upon failure [memleakOnRealloc] pluto-find-orb/findorb.cpp:392:10: warning: If memory allocation fails, then there is a possible null pointer dereference: buffered_screen [nullPointerOutOfMemory] pluto-find-orb/findorb.cpp:388:38: note: Assuming allocation function fails pluto-find-orb/findorb.cpp:388:22: note: Assignment 'buffered_screen=(chtype*)calloc(n_lines*real_width,sizeof(chtype))', assigned value is 0 pluto-find-orb/findorb.cpp:392:10: note: Null pointer dereference pluto-find-orb/findorb.cpp:2059:12: warning: If memory allocation fails, then there is a possible null pointer dereference: temp_obs [nullPointerOutOfMemory] pluto-find-orb/findorb.cpp:2057:32: note: Assuming allocation function fails pluto-find-orb/findorb.cpp:2057:15: note: Assignment 'temp_obs=(struct observe*)calloc(*n_obs+n_obs_actually_loaded,sizeof(struct observe))', assigned value is 0 pluto-find-orb/findorb.cpp:2059:12: note: Null pointer dereference pluto-find-orb/findorb.cpp:2060:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] pluto-find-orb/findorb.cpp:2057:32: note: Assuming allocation function fails pluto-find-orb/findorb.cpp:2057:15: note: Assignment 'temp_obs=(struct observe*)calloc(*n_obs+n_obs_actually_loaded,sizeof(struct observe))', assigned value is 0 pluto-find-orb/findorb.cpp:2060:21: note: Null pointer addition pluto-find-orb/findorb.cpp:388:22: style: C-style pointer casting [cstyleCast] pluto-find-orb/findorb.cpp:1256:15: style: C-style pointer casting [cstyleCast] pluto-find-orb/findorb.cpp:1652:18: style: C-style pointer casting [cstyleCast] pluto-find-orb/findorb.cpp:2057:15: style: C-style pointer casting [cstyleCast] pluto-find-orb/findorb.cpp:2565:56: style: C-style pointer casting [cstyleCast] pluto-find-orb/findorb.cpp:2862:26: style: C-style pointer casting [cstyleCast] pluto-find-orb/findorb.cpp:2862:37: style: C-style pointer casting [cstyleCast] pluto-find-orb/findorb.cpp:2862:48: style: C-style pointer casting [cstyleCast] pluto-find-orb/findorb.cpp:3620:22: style: C-style pointer casting [cstyleCast] pluto-find-orb/findorb.cpp:530:39: style: The scope of the variable 'step' can be reduced. [variableScope] pluto-find-orb/findorb.cpp:897:15: style: The scope of the variable 'choice' can be reduced. [variableScope] pluto-find-orb/findorb.cpp:897:27: style: The scope of the variable 'show_packed' can be reduced. [variableScope] pluto-find-orb/findorb.cpp:1145:23: style: The scope of the variable 'column' can be reduced. [variableScope] pluto-find-orb/findorb.cpp:1145:36: style: The scope of the variable 'n_commands' can be reduced. [variableScope] pluto-find-orb/findorb.cpp:2853:30: style: The scope of the variable 'search_ptr' can be reduced. [variableScope] pluto-find-orb/findorb.cpp:3577:27: style: The scope of the variable 'total_sigma' can be reduced. [variableScope] pluto-find-orb/findorb.cpp:1512:18: style: Local variable 'buff' shadows outer variable [shadowVariable] pluto-find-orb/findorb.cpp:1395:9: note: Shadowed declaration pluto-find-orb/findorb.cpp:1512:18: note: Shadow variable pluto-find-orb/findorb.cpp:1551:20: style: Local variable 'line_no' shadows outer variable [shadowVariable] pluto-find-orb/findorb.cpp:1391:11: note: Shadowed declaration pluto-find-orb/findorb.cpp:1551:20: note: Shadow variable pluto-find-orb/findorb.cpp:1987:20: style: Local variable 'n_bytes' shadows outer argument [shadowArgument] pluto-find-orb/findorb.cpp:1938:44: note: Shadowed declaration pluto-find-orb/findorb.cpp:1987:20: note: Shadow variable pluto-find-orb/findorb.cpp:2635:14: style: Local variable 'i' shadows outer variable [shadowVariable] pluto-find-orb/findorb.cpp:2190:8: note: Shadowed declaration pluto-find-orb/findorb.cpp:2635:14: note: Shadow variable pluto-find-orb/findorb.cpp:2655:20: style: Local variable 'i' shadows outer variable [shadowVariable] pluto-find-orb/findorb.cpp:2635:14: note: Shadowed declaration pluto-find-orb/findorb.cpp:2655:20: note: Shadow variable pluto-find-orb/findorb.cpp:1288:13: style: Variable 'tptr' can be declared as pointer to const [constVariablePointer] pluto-find-orb/findorb.cpp:2714:25: style: Variable 'tptr' can be declared as pointer to const [constVariablePointer] pluto-find-orb/findorb.cpp:2853:30: style: Variable 'search_ptr' can be declared as pointer to const [constVariablePointer] pluto-find-orb/findorb.cpp:530:44: style: Variable 'step' is assigned a value that is never used. [unreadVariable] pluto-find-orb/fo.cpp:125:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seconds_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/fo.cpp:483:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FULL_CTIME_YMD [valueFlowBailoutIncompleteVar] pluto-find-orb/fo.cpp:446:24: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] pluto-find-orb/fo.cpp:668:19: warning:inconclusive: Width 9 given in format string (no. 2) is smaller than destination buffer 'ephemeris_step_size[20]'. [invalidScanfFormatWidth_smaller] pluto-find-orb/fo.cpp:670:19: warning:inconclusive: Width 9 given in format string (no. 1) is smaller than destination buffer 'mpc_code[20]'. [invalidScanfFormatWidth_smaller] pluto-find-orb/fo.cpp:792:12: warning: If resource allocation fails, then there is a possible null pointer dereference: ifile [nullPointerOutOfResources] pluto-find-orb/fo.cpp:591:17: note: Assuming allocation function fails pluto-find-orb/fo.cpp:591:17: note: Assignment 'ifile=fopen(argv[1],"rb")', assigned value is 0 pluto-find-orb/fo.cpp:792:12: note: Null pointer dereference pluto-find-orb/fo.cpp:259:22: style: C-style pointer casting [cstyleCast] pluto-find-orb/fo.cpp:260:22: style: C-style pointer casting [cstyleCast] pluto-find-orb/fo.cpp:589:23: style: C-style pointer casting [cstyleCast] pluto-find-orb/fo.cpp:725:38: style: C-style pointer casting [cstyleCast] pluto-find-orb/fo.cpp:595:22: style: The scope of the variable 'orbit_constraints' can be reduced. [variableScope] pluto-find-orb/fo.cpp:96:40: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] pluto-find-orb/fo.cpp:775:24: style: Variable 'columns' can be declared as const array [constVariable] pluto-find-orb/fo_serve.cpp:199:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] pluto-find-orb/fo_serve.cpp:252:13: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] pluto-find-orb/fo_serve.cpp:187:7: error: Memory leak: buff [memleak] pluto-find-orb/fo_serve.cpp:75:15: warning: If memory allocation fails, then there is a possible null pointer dereference: mpec_error_message [nullPointerOutOfMemory] pluto-find-orb/fo_serve.cpp:74:42: note: Assuming allocation function fails pluto-find-orb/fo_serve.cpp:74:28: note: Assignment 'mpec_error_message=(char*)malloc(strlen(prompt)+1)', assigned value is 0 pluto-find-orb/fo_serve.cpp:75:15: note: Null pointer dereference pluto-find-orb/fo_serve.cpp:82:15: warning: If memory allocation fails, then there is a possible null pointer dereference: new_message [nullPointerOutOfMemory] pluto-find-orb/fo_serve.cpp:79:41: note: Assuming allocation function fails pluto-find-orb/fo_serve.cpp:79:27: note: Assignment 'new_message=(char*)malloc(strlen(mpec_error_message)+strlen(prompt)+1)', assigned value is 0 pluto-find-orb/fo_serve.cpp:82:15: note: Null pointer dereference pluto-find-orb/fo_serve.cpp:83:15: warning: If memory allocation fails, then there is a possible null pointer dereference: new_message [nullPointerOutOfMemory] pluto-find-orb/fo_serve.cpp:79:41: note: Assuming allocation function fails pluto-find-orb/fo_serve.cpp:79:27: note: Assignment 'new_message=(char*)malloc(strlen(mpec_error_message)+strlen(prompt)+1)', assigned value is 0 pluto-find-orb/fo_serve.cpp:83:15: note: Null pointer dereference pluto-find-orb/fo_serve.cpp:180:13: warning: If resource allocation fails, then there is a possible null pointer dereference: lock_file [nullPointerOutOfResources] pluto-find-orb/fo_serve.cpp:163:27: note: Assuming allocation function fails pluto-find-orb/fo_serve.cpp:163:27: note: Assignment 'lock_file=fopen("lock.txt","w")', assigned value is 0 pluto-find-orb/fo_serve.cpp:180:13: note: Null pointer dereference pluto-find-orb/fo_serve.cpp:406:12: warning: If resource allocation fails, then there is a possible null pointer dereference: ifile [nullPointerOutOfResources] pluto-find-orb/fo_serve.cpp:404:17: note: Assuming allocation function fails pluto-find-orb/fo_serve.cpp:404:17: note: Assignment 'ifile=fopen(temp_obs_filename,"rb")', assigned value is 0 pluto-find-orb/fo_serve.cpp:406:12: note: Null pointer dereference pluto-find-orb/fo_serve.cpp:463:39: warning: If resource allocation fails, then there is a possible null pointer dereference: ifile [nullPointerOutOfResources] pluto-find-orb/fo_serve.cpp:462:17: note: Assuming allocation function fails pluto-find-orb/fo_serve.cpp:462:17: note: Assignment 'ifile=fopen(mpec_name,"rb")', assigned value is 0 pluto-find-orb/fo_serve.cpp:463:39: note: Null pointer dereference pluto-find-orb/fo_serve.cpp:74:28: style: C-style pointer casting [cstyleCast] pluto-find-orb/fo_serve.cpp:79:27: style: C-style pointer casting [cstyleCast] pluto-find-orb/fo_serve.cpp:156:17: style: C-style pointer casting [cstyleCast] pluto-find-orb/fo_serve.cpp:392:16: style: The scope of the variable 'orbit_constraints' can be reduced. [variableScope] pluto-find-orb/fo_serve.cpp:236:19: style: Local variable 'ifile' shadows outer variable [shadowVariable] pluto-find-orb/fo_serve.cpp:162:10: note: Shadowed declaration pluto-find-orb/fo_serve.cpp:236:19: note: Shadow variable pluto-find-orb/fo_serve.cpp:258:22: style: Local variable 'ifile' shadows outer variable [shadowVariable] pluto-find-orb/fo_serve.cpp:162:10: note: Shadowed declaration pluto-find-orb/fo_serve.cpp:258:22: note: Shadow variable pluto-find-orb/fo_serve.cpp:215:19: style: Variable 'tptr' can be declared as pointer to const [constVariablePointer] pluto-find-orb/gauss.cpp:272:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_PER_DAY [valueFlowBailoutIncompleteVar] pluto-find-orb/gauss.cpp:369:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_PER_DAY [valueFlowBailoutIncompleteVar] pluto-find-orb/lsquare.cpp:71:4: error: Memory leak: rval.uw [memleak] pluto-find-orb/lsquare.cpp:405:10: warning: If memory allocation fails, then there is a possible null pointer dereference: err_mat [nullPointerOutOfMemory] pluto-find-orb/lsquare.cpp:399:43: note: Assuming allocation function fails pluto-find-orb/lsquare.cpp:399:26: note: Assignment 'err_mat=(long double*)calloc(2*size*size,sizeof(long double))', assigned value is 0 pluto-find-orb/lsquare.cpp:405:10: note: Null pointer dereference pluto-find-orb/lsquare.cpp:458:7: warning: If memory allocation fails, then there is a possible null pointer dereference: rval [nullPointerOutOfMemory] pluto-find-orb/lsquare.cpp:454:35: note: Assuming allocation function fails pluto-find-orb/lsquare.cpp:454:19: note: Assignment 'rval=(double*)calloc(size*size,sizeof(double))', assigned value is 0 pluto-find-orb/lsquare.cpp:458:7: note: Null pointer dereference pluto-find-orb/lsquare.cpp:70:25: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] pluto-find-orb/lsquare.cpp:69:32: note: Assuming allocation function fails pluto-find-orb/lsquare.cpp:69:15: note: Assignment 'rval->uw=(long double*)calloc((n_params+1)*n_params,sizeof(long double))', assigned value is 0 pluto-find-orb/lsquare.cpp:70:25: note: Null pointer addition pluto-find-orb/lsquare.cpp:400:40: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] pluto-find-orb/lsquare.cpp:399:43: note: Assuming allocation function fails pluto-find-orb/lsquare.cpp:399:26: note: Assignment 'err_mat=(long double*)calloc(2*size*size,sizeof(long double))', assigned value is 0 pluto-find-orb/lsquare.cpp:400:40: note: Null pointer addition pluto-find-orb/lsquare.cpp:63:20: style: C-style pointer casting [cstyleCast] pluto-find-orb/lsquare.cpp:69:15: style: C-style pointer casting [cstyleCast] pluto-find-orb/lsquare.cpp:71:11: style: C-style pointer casting [cstyleCast] pluto-find-orb/lsquare.cpp:109:19: style: C-style pointer casting [cstyleCast] pluto-find-orb/lsquare.cpp:175:20: style: C-style pointer casting [cstyleCast] pluto-find-orb/lsquare.cpp:254:11: style: C-style pointer casting [cstyleCast] pluto-find-orb/lsquare.cpp:399:26: style: C-style pointer casting [cstyleCast] pluto-find-orb/lsquare.cpp:426:25: style: C-style pointer casting [cstyleCast] pluto-find-orb/lsquare.cpp:454:19: style: C-style pointer casting [cstyleCast] pluto-find-orb/lsquare.cpp:464:25: style: C-style pointer casting [cstyleCast] pluto-find-orb/lsquare.cpp:483:25: style: C-style pointer casting [cstyleCast] pluto-find-orb/lsquare.cpp:490:25: style: C-style pointer casting [cstyleCast] pluto-find-orb/miscell.cpp:105:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] pluto-find-orb/miscell.cpp:41:10: style: Variable 'home_ptr' can be declared as pointer to const [constVariablePointer] pluto-find-orb/moid4.cpp:323:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ELEMENTS [valueFlowBailoutIncompleteVar] pluto-find-orb/moid4.cpp:304:18: style: The scope of the variable 'rate_data' can be reduced. [variableScope] pluto-find-orb/monte0.cpp:351:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_IN_KM [valueFlowBailoutIncompleteVar] pluto-find-orb/monte0.cpp:89:29: style: C-style pointer casting [cstyleCast] pluto-find-orb/monte0.cpp:143:20: style: C-style pointer casting [cstyleCast] pluto-find-orb/monte0.cpp:244:13: style: Variable 'tptr' can be declared as pointer to const [constVariablePointer] pluto-find-orb/monte0.cpp:326:21: style: Variable 'tptr' can be declared as pointer to const [constVariablePointer] pluto-find-orb/mpc_obs.cpp:496:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_IN_METERS [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:833:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_IN_METERS [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:915:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_IN_KM [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:954:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seconds_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:1544:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seconds_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:1562:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable minutes_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:1675:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_PER_DAY [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:1719:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seconds_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:2199:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable minutes_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:2544:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPEED_OF_LIGHT [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:2749:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CALENDAR_JULIAN_GREGORIAN [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:3217:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ra_bias [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:3839:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:4037:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FULL_CTIME_YMD [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:4144:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hours_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:4205:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_IN_KM [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:4238:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_IN_KM [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:4298:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPEED_OF_LIGHT [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:4386:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_IN_KM [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:4680:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seconds_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/mpc_obs.cpp:1605:41: error: Array 'comment[5]' accessed at index 8, which is out of bounds. [arrayIndexOutOfBounds] pluto-find-orb/mpc_obs.cpp:1604:23: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] pluto-find-orb/mpc_obs.cpp:1625:35: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] pluto-find-orb/mpc_obs.cpp:1704:4: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat] pluto-find-orb/mpc_obs.cpp:1113:59: style: Condition '(rval[0]=(char*)(rval+lines_read+1))!=NULL' is always true [knownConditionTrueFalse] pluto-find-orb/mpc_obs.cpp:1858:46: style: Condition 'isdigit(desig[1])' is always true [knownConditionTrueFalse] pluto-find-orb/mpc_obs.cpp:2670:4: error: Common realloc mistake: 'stored_lines' nulled but not freed upon failure [memleakOnRealloc] pluto-find-orb/mpc_obs.cpp:600:33: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] pluto-find-orb/mpc_obs.cpp:598:32: note: Assuming allocation function fails pluto-find-orb/mpc_obs.cpp:598:17: note: Assignment 'rval=(char**)calloc((*n_stations+1)*sizeof(char*)+buff_loc,1)', assigned value is 0 pluto-find-orb/mpc_obs.cpp:600:33: note: Null pointer addition pluto-find-orb/mpc_obs.cpp:598:17: style: C-style pointer casting [cstyleCast] pluto-find-orb/mpc_obs.cpp:600:18: style: C-style pointer casting [cstyleCast] pluto-find-orb/mpc_obs.cpp:1111:14: style: C-style pointer casting [cstyleCast] pluto-find-orb/mpc_obs.cpp:1113:25: style: C-style pointer casting [cstyleCast] pluto-find-orb/mpc_obs.cpp:1945:20: style: C-style pointer casting [cstyleCast] pluto-find-orb/mpc_obs.cpp:1945:37: style: C-style pointer casting [cstyleCast] pluto-find-orb/mpc_obs.cpp:1976:21: style: C-style pointer casting [cstyleCast] pluto-find-orb/mpc_obs.cpp:2707:26: style: C-style pointer casting [cstyleCast] pluto-find-orb/mpc_obs.cpp:2708:26: style: C-style pointer casting [cstyleCast] pluto-find-orb/mpc_obs.cpp:3186:11: style: C-style pointer casting [cstyleCast] pluto-find-orb/mpc_obs.cpp:3287:38: style: C-style pointer casting [cstyleCast] pluto-find-orb/mpc_obs.cpp:3294:38: style: C-style pointer casting [cstyleCast] pluto-find-orb/mpc_obs.cpp:3314:38: style: C-style pointer casting [cstyleCast] pluto-find-orb/mpc_obs.cpp:3666:30: style: C-style pointer casting [cstyleCast] pluto-find-orb/mpc_obs.cpp:3667:30: style: C-style pointer casting [cstyleCast] pluto-find-orb/mpc_obs.cpp:3668:29: style: C-style pointer casting [cstyleCast] pluto-find-orb/mpc_obs.cpp:3741:11: style: C-style pointer casting [cstyleCast] pluto-find-orb/mpc_obs.cpp:3818:40: style: C-style pointer casting [cstyleCast] pluto-find-orb/mpc_obs.cpp:1788:22: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] pluto-find-orb/mpc_obs.cpp:1789:22: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] pluto-find-orb/mpc_obs.cpp:1921:24: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] pluto-find-orb/mpc_obs.cpp:783:27: style: The scope of the variable 'loc1' can be reduced. [variableScope] pluto-find-orb/mpc_obs.cpp:1135:9: style: The scope of the variable 'found_name' can be reduced. [variableScope] pluto-find-orb/mpc_obs.cpp:1235:14: style: The scope of the variable 'gap' can be reduced. [variableScope] pluto-find-orb/mpc_obs.cpp:1286:25: style: The scope of the variable 'roman_digits' can be reduced. [variableScope] pluto-find-orb/mpc_obs.cpp:1288:25: style: The scope of the variable 'roman_tens' can be reduced. [variableScope] pluto-find-orb/mpc_obs.cpp:1290:25: style: The scope of the variable 'roman_hundreds' can be reduced. [variableScope] pluto-find-orb/mpc_obs.cpp:1692:9: style: The scope of the variable 'tbuff' can be reduced. [variableScope] pluto-find-orb/mpc_obs.cpp:1694:16: style: The scope of the variable 'fcct_error_message_shown' can be reduced. [variableScope] pluto-find-orb/mpc_obs.cpp:2402:21: style: The scope of the variable 'j' can be reduced. [variableScope] pluto-find-orb/mpc_obs.cpp:2596:8: style: The scope of the variable 'c1' can be reduced. [variableScope] pluto-find-orb/mpc_obs.cpp:2596:12: style: The scope of the variable 'c2' can be reduced. [variableScope] pluto-find-orb/mpc_obs.cpp:2834:8: style: The scope of the variable 'i' can be reduced. [variableScope] pluto-find-orb/mpc_obs.cpp:3921:14: style: The scope of the variable 'i1' can be reduced. [variableScope] pluto-find-orb/mpc_obs.cpp:3925:8: style: The scope of the variable 'compare' can be reduced. [variableScope] pluto-find-orb/mpc_obs.cpp:4194:37: style: The scope of the variable 'delta' can be reduced. [variableScope] pluto-find-orb/mpc_obs.cpp:4326:11: style: The scope of the variable 'i' can be reduced. [variableScope] pluto-find-orb/mpc_obs.cpp:1559:72: style:inconclusive: Function 'compute_observer_vel' argument 6 names different: declaration 'offset' definition 'vel'. [funcArgNamesDifferent] pluto-find-orb/mpc_obs.h:206:72: note: Function 'compute_observer_vel' argument 6 names different: declaration 'offset' definition 'vel'. pluto-find-orb/mpc_obs.cpp:1559:72: note: Function 'compute_observer_vel' argument 6 names different: declaration 'offset' definition 'vel'. pluto-find-orb/mpc_obs.cpp:3688:47: style:inconclusive: Function 'sort_object_info' argument 3 names different: declaration 'compare_by_last_obs_time' definition 'object_info_compare_method'. [funcArgNamesDifferent] pluto-find-orb/mpc_obs.h:144:47: note: Function 'sort_object_info' argument 3 names different: declaration 'compare_by_last_obs_time' definition 'object_info_compare_method'. pluto-find-orb/mpc_obs.cpp:3688:47: note: Function 'sort_object_info' argument 3 names different: declaration 'compare_by_last_obs_time' definition 'object_info_compare_method'. pluto-find-orb/mpc_obs.cpp:3272:23: style: Local variable 'error_code' shadows outer variable [shadowVariable] pluto-find-orb/mpc_obs.cpp:3244:20: note: Shadowed declaration pluto-find-orb/mpc_obs.cpp:3272:23: note: Shadow variable pluto-find-orb/mpc_obs.cpp:132:37: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] pluto-find-orb/mpc_obs.cpp:668:17: style: Variable 'curr_station' can be declared as pointer to const [constVariablePointer] pluto-find-orb/mpc_obs.cpp:882:13: style: Variable 'tptr' can be declared as pointer to const [constVariablePointer] pluto-find-orb/mpc_obs.cpp:1921:17: style: Variable 'tptr' can be declared as pointer to const [constVariablePointer] pluto-find-orb/mpc_obs.cpp:1943:55: style: Parameter 'ignored_context' can be declared as pointer to const. However it seems that 'qsort_strcmp' is a callback function, if 'ignored_context' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pluto-find-orb/mpc_obs.cpp:1992:46: note: You might need to cast the function pointer here pluto-find-orb/mpc_obs.cpp:1943:55: note: Parameter 'ignored_context' can be declared as pointer to const pluto-find-orb/mpc_obs.cpp:2012:16: style: Variable 'xlate_ptr' can be declared as pointer to const [constVariablePointer] pluto-find-orb/mpc_obs.cpp:2782:19: style: Variable 'loc1' can be declared as pointer to const [constVariablePointer] pluto-find-orb/mpc_obs.cpp:3668:9: style: Variable 'comparison_method' can be declared as pointer to const [constVariablePointer] pluto-find-orb/mpc_obs.cpp:4244:10: style: Variable 'first_line' can be declared as pointer to const [constVariablePointer] pluto-find-orb/mt64.cpp:297:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] pluto-find-orb/mt64.cpp:297:14: portability: Casting between const unsigned long * and const double * which have an incompatible binary data representation. [invalidPointerCast] pluto-find-orb/mycurses.cpp:87:12: warning: If memory allocation fails, then there is a possible null pointer dereference: backup_screen [nullPointerOutOfMemory] pluto-find-orb/mycurses.cpp:86:34: note: Assuming allocation function fails pluto-find-orb/mycurses.cpp:86:20: note: Assignment 'backup_screen=(char*)malloc(scr_xsize*scr_ysize*2)', assigned value is 0 pluto-find-orb/mycurses.cpp:87:12: note: Null pointer dereference pluto-find-orb/mycurses.cpp:467:12: warning: If memory allocation fails, then there is a possible null pointer dereference: rval [nullPointerOutOfMemory] pluto-find-orb/mycurses.cpp:465:27: note: Assuming allocation function fails pluto-find-orb/mycurses.cpp:465:11: note: Assignment 'rval=(struct WINDOW*)calloc(sizeof(struct WINDOW)+temp.xsize*temp.ysize*sizeof(unsigned long),1)', assigned value is 0 pluto-find-orb/mycurses.cpp:467:12: note: Null pointer dereference pluto-find-orb/mycurses.cpp:468:11: warning: If memory allocation fails, then there is a possible null pointer dereference: rval [nullPointerOutOfMemory] pluto-find-orb/mycurses.cpp:465:27: note: Assuming allocation function fails pluto-find-orb/mycurses.cpp:465:11: note: Assignment 'rval=(struct WINDOW*)calloc(sizeof(struct WINDOW)+temp.xsize*temp.ysize*sizeof(unsigned long),1)', assigned value is 0 pluto-find-orb/mycurses.cpp:468:11: note: Null pointer dereference pluto-find-orb/mycurses.cpp:48:19: style: C-style pointer casting [cstyleCast] pluto-find-orb/mycurses.cpp:86:20: style: C-style pointer casting [cstyleCast] pluto-find-orb/mycurses.cpp:465:11: style: C-style pointer casting [cstyleCast] pluto-find-orb/mycurses.cpp:195:8: style: The scope of the variable 'y' can be reduced. [variableScope] pluto-find-orb/mycurses.cpp:225:8: style: The scope of the variable 'y' can be reduced. [variableScope] pluto-find-orb/mycurses.cpp:223:29: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] pluto-find-orb/mycurses.cpp:240:18: style: Variable 'endptr' can be declared as pointer to const [constVariablePointer] pluto-find-orb/mycurses.cpp:446:20: style: Parameter 'win' can be declared as pointer to const [constParameterPointer] pluto-find-orb/mycurses.cpp:576:24: style: Parameter 'win' can be declared as pointer to const [constParameterPointer] pluto-find-orb/mycurses.cpp:610:46: style: Parameter 'ignored2' can be declared as pointer to const [constParameterPointer] pluto-find-orb/orb_fun2.cpp:80:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable jd [valueFlowBailoutIncompleteVar] pluto-find-orb/orb_fun2.cpp:68:33: style: C-style pointer casting [cstyleCast] pluto-find-orb/orb_fun2.cpp:236:25: style: C-style pointer casting [cstyleCast] pluto-find-orb/orb_fun2.cpp:349:12: style: C-style pointer casting [cstyleCast] pluto-find-orb/orb_fun2.cpp:705:10: style: C-style pointer casting [cstyleCast] pluto-find-orb/orb_fun2.cpp:460:33: style: The scope of the variable 'dt_2' can be reduced. [variableScope] pluto-find-orb/orb_fun2.cpp:460:39: style: The scope of the variable 't0_2' can be reduced. [variableScope] pluto-find-orb/orb_fun2.cpp:461:22: style: The scope of the variable 'r2' can be reduced. [variableScope] pluto-find-orb/orb_func.cpp:228:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_PER_DAY [valueFlowBailoutIncompleteVar] pluto-find-orb/orb_func.cpp:464:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable minutes_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/orb_func.cpp:673:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_PER_DAY [valueFlowBailoutIncompleteVar] pluto-find-orb/orb_func.cpp:906:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_PER_DAY [valueFlowBailoutIncompleteVar] pluto-find-orb/orb_func.cpp:1496:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_IN_KM [valueFlowBailoutIncompleteVar] pluto-find-orb/orb_func.cpp:1599:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] pluto-find-orb/orb_func.cpp:2177:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_IN_KM [valueFlowBailoutIncompleteVar] pluto-find-orb/orb_func.cpp:2503:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable minutes_per_day [valueFlowBailoutIncompleteVar] pluto-find-orb/orb_func.cpp:3546:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_IN_METERS [valueFlowBailoutIncompleteVar] pluto-find-orb/orb_func.cpp:3780:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AU_PER_DAY [valueFlowBailoutIncompleteVar] pluto-find-orb/orb_func.cpp:3861:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] pluto-find-orb/orb_func.cpp:2321:27: style: Condition 'dt=11' is redundant or the array 'planet_radius[11]' is accessed at index 11, which is out of bounds. [arrayIndexOutOfBoundsCond] pluto-find-orb/runge.cpp:815:19: note: Assuming that condition 'i>=11' is not redundant pluto-find-orb/runge.cpp:898:34: note: Array index out of bounds pluto-find-orb/runge.cpp:1341:15: style: C-style pointer casting [cstyleCast] pluto-find-orb/runge.cpp:1510:18: style: C-style pointer casting [cstyleCast] pluto-find-orb/runge.cpp:715:11: style: The scope of the variable 'j' can be reduced. [variableScope] pluto-find-orb/runge.cpp:259:14: style: Local variable 'tval' shadows outer variable [shadowVariable] pluto-find-orb/runge.cpp:230:17: note: Shadowed declaration pluto-find-orb/runge.cpp:259:14: note: Shadow variable pluto-find-orb/runge.cpp:1014:26: style: Local variable 'planet_posn' shadows outer function [shadowFunction] pluto-find-orb/runge.cpp:77:5: note: Shadowed declaration pluto-find-orb/runge.cpp:1014:26: note: Shadow variable pluto-find-orb/runge.cpp:1595:40: style: Parameter 'ref_orbit' can be declared as pointer to const [constParameterPointer] pluto-find-orb/shellsor.cpp:102:26: warning: Obsolete function 'alloca' called. [allocaCalled] pluto-find-orb/shellsor.cpp:101:17: style: C-style pointer casting [cstyleCast] pluto-find-orb/shellsor.cpp:102:18: style: C-style pointer casting [cstyleCast] pluto-find-orb/shellsor.cpp:140:16: style: C-style pointer casting [cstyleCast] pluto-find-orb/sigma.cpp:71:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CALENDAR_JULIAN_GREGORIAN [valueFlowBailoutIncompleteVar] pluto-find-orb/sigma.cpp:115:26: style: C-style pointer casting [cstyleCast] pluto-find-orb/sigma.cpp:168:21: style: Variable 'w' can be declared as pointer to const [constVariablePointer] pluto-find-orb/simplex.cpp:53:21: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] pluto-find-orb/simplex.cpp:127:42: warning: Uninitialized variable: cent [uninitvar] pluto-find-orb/simplex.cpp:120:18: note: Assuming condition is false pluto-find-orb/simplex.cpp:127:42: note: Uninitialized variable: cent pluto-find-orb/stackall.cpp:38:4: warning: If memory allocation fails, then there is a possible null pointer dereference: rval [nullPointerOutOfMemory] pluto-find-orb/stackall.cpp:36:33: note: Assuming allocation function fails pluto-find-orb/stackall.cpp:36:18: note: Assignment 'rval=(struct stack*)malloc(stack_size+sizeof(struct stack))', assigned value is 0 pluto-find-orb/stackall.cpp:38:4: note: Null pointer dereference pluto-find-orb/stackall.cpp:39:4: warning: If memory allocation fails, then there is a possible null pointer dereference: rval [nullPointerOutOfMemory] pluto-find-orb/stackall.cpp:36:33: note: Assuming allocation function fails pluto-find-orb/stackall.cpp:36:18: note: Assignment 'rval=(struct stack*)malloc(stack_size+sizeof(struct stack))', assigned value is 0 pluto-find-orb/stackall.cpp:39:4: note: Null pointer dereference pluto-find-orb/stackall.cpp:40:4: warning: If memory allocation fails, then there is a possible null pointer dereference: rval [nullPointerOutOfMemory] pluto-find-orb/stackall.cpp:36:33: note: Assuming allocation function fails pluto-find-orb/stackall.cpp:36:18: note: Assignment 'rval=(struct stack*)malloc(stack_size+sizeof(struct stack))', assigned value is 0 pluto-find-orb/stackall.cpp:40:4: note: Null pointer dereference pluto-find-orb/stackall.cpp:36:18: style: C-style pointer casting [cstyleCast] pluto-find-orb/stackall.cpp:46:18: style: C-style pointer casting [cstyleCast] pluto-find-orb/stackall.cpp:54:20: style: C-style pointer casting [cstyleCast] pluto-find-orb/stackall.cpp:76:25: style: C-style pointer casting [cstyleCast] pluto-find-orb/stackall.cpp:58:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] pluto-find-orb/eph2tle.cpp:370:9: error: The one definition rule is violated, different classes/structs have the same name 'simplex_context_t' [ctuOneDefinitionRuleViolation] pluto-find-orb/orb_fun2.cpp:58:9: note: The one definition rule is violated, different classes/structs have the same name 'simplex_context_t' pluto-find-orb/eph2tle.cpp:370:9: note: The one definition rule is violated, different classes/structs have the same name 'simplex_context_t' pluto-find-orb/b32_eph.cpp:55:13: warning: If resource allocation fails, then there is a possible null pointer dereference: ofile [ctunullpointerOutOfResources] pluto-find-orb/b32_eph.cpp:192:17: note: Assuming allocation function fails pluto-find-orb/b32_eph.cpp:192:17: note: Assignment 'ofile=fopen(filename,"wb")', assigned value is 0 pluto-find-orb/b32_eph.cpp:207:25: note: Calling function add_ephemeris_details, 1st argument is null pluto-find-orb/b32_eph.cpp:55:13: note: Dereferencing argument ofile that is null diff: 2.18.0 pluto-find-orb/find_orb.h:5:5: error: #error include 'stdafx.h' before including this file for PCH [preprocessorErrorDirective] head pluto-find-orb/lsquare.cpp:71:4: error: Memory leak: rval.uw [memleak] DONE