2025-05-07 23:17 ftp://ftp.de.debian.org/debian/pool/main/s/searchandrescue/searchandrescue_1.7.0+dfsg.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=opengl --library=sdl --library=motif --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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: ebc80c0 (2025-05-07 18:59:31 +0200) count: 1353 1345 elapsed-time: 72.8 75.1 head-timing-info: old-timing-info: head results: searchandrescue_1.7.0/pconf/proc.c:264:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/pconf/proc.c:543:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/pconf/proc.c:625:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/pconf/proc.c:805:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/pconf/proc.c:1148:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/pconf/main.c:208:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/pconf/main.c:314:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/pconf/main.c:854:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/pconf/fio.c:235:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/pconf/fio.c:1200:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/pconf/main.c:189:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] searchandrescue_1.7.0/pconf/main.c:225:6: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] searchandrescue_1.7.0/pconf/main.c:592:60: style: Condition 'total_platforms>0' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/pconf/main.c:583:51: note: Assuming that condition 'total_platforms<1' is not redundant searchandrescue_1.7.0/pconf/main.c:592:60: note: Condition 'total_platforms>0' is always true searchandrescue_1.7.0/pconf/main.c:38:39: style: Parameter 'core_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/pconf/main.c:200:38: style: Parameter 'core_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/pconf/main.c:301:17: style: Variable 'depend_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/pconf/main.c:652:15: style: Parameter 'platforms_ini' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/pconf/main.c:225:16: style: Variable 'prog_name' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/pconf/proc.c:42:28: style: Parameter 'core_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/pconf/proc.c:71:28: style: Parameter 'core_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/pconf/proc.c:104:25: style: Parameter 'argv' can be declared as const array [constParameter] searchandrescue_1.7.0/pconf/proc.c:593:8: style: Variable 'base_path' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/pconf/utils.c:363:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/pconf/utils.c:374:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/pconf/utils.c:401:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/pconf/utils.c:419:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/pconf/utils.c:455:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/pconf/utils.c:556:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/pconf/utils.c:465:13: error: Common realloc mistake: 'strptr' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/pconf/utils.c:107:7: error: Memory is allocated but not initialized: sr_ptr [uninitdata] searchandrescue_1.7.0/sar/cmd.c:118:9: style: Local variable 's' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/cmd.c:53:8: note: Shadowed declaration searchandrescue_1.7.0/sar/cmd.c:118:9: note: Shadow variable searchandrescue_1.7.0/sar/cmd.c:21:9: style: struct member '_cmd_ref_struct::reserved1' is never used. [unusedStructMember] searchandrescue_1.7.0/sar/cmd.c:22:9: style: struct member '_cmd_ref_struct::reserved2' is never used. [unusedStructMember] searchandrescue_1.7.0/sar/cmdfire.c:57:6: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdmemory.c:104:10: style: Condition 'argc>0' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/cmdmemory.c:94:10: note: Assuming that condition 'argc<2' is not redundant searchandrescue_1.7.0/sar/cmdmemory.c:104:10: note: Condition 'argc>0' is always true searchandrescue_1.7.0/sar/cmdmemory.c:109:10: style: Condition 'argc>1' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/cmdmemory.c:94:10: note: Assuming that condition 'argc<2' is not redundant searchandrescue_1.7.0/sar/cmdmemory.c:109:10: note: Condition 'argc>1' is always true searchandrescue_1.7.0/sar/cmdmemory.c:64:6: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/cmdmemory.c:64:6: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/cmdmemory.c:64:6: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/cmdmemory.c:64:6: warning: %ld in format string (no. 4) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/cmdmemory.c:64:6: warning: %ld in format string (no. 5) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/cmdmemory.c:96:6: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdmemory.c:116:6: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdoption.c:270:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_SMOOTH [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/cmdoption.c:109:10: style: Condition 'argc>0' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/cmdoption.c:99:10: note: Assuming that condition 'argc<2' is not redundant searchandrescue_1.7.0/sar/cmdoption.c:109:10: note: Condition 'argc>0' is always true searchandrescue_1.7.0/sar/cmdoption.c:114:10: style: Condition 'argc>1' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/cmdoption.c:99:10: note: Assuming that condition 'argc<2' is not redundant searchandrescue_1.7.0/sar/cmdoption.c:114:10: note: Condition 'argc>1' is always true searchandrescue_1.7.0/sar/cmdoption.c:188:14: style: Condition '!strcasecmp(s,"metric")' is always false [knownConditionTrueFalse] searchandrescue_1.7.0/sar/cmdoption.c:54:6: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/cmdoption.c:56:6: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/cmdoption.c:84:6: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdoption.c:101:6: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdoption.c:121:6: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdoption.c:186:13: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdoption.c:191:13: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdoption.c:196:13: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdoption.c:271:13: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdoption.c:276:13: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdoption.c:350:13: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdoption.c:355:13: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdoption.c:360:13: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdoption.c:441:13: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdoption.c:446:13: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdoption.c:451:13: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdsmoke.c:57:6: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdtime.c:54:6: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cp.c:91:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable values [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/cp.c:274:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/cp.c:297:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/cp.c:280:9: warning: Possible null pointer dereference: cpv [nullPointer] searchandrescue_1.7.0/sar/cp.c:279:15: note: Assignment 'cpv=((cp)!=NULL)?&(((struct ControlPanel*)(cp))->values):NULL', assigned value is 0 searchandrescue_1.7.0/sar/cp.c:280:9: note: Null pointer dereference searchandrescue_1.7.0/sar/cp.c:274:28: style: Variable 'display' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/cp.c:299:22: style: Variable 'v' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/cmdset.c:151:10: style: Condition 'strc>0' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/cmdset.c:140:29: note: Assuming that condition 'strc<=1' is not redundant searchandrescue_1.7.0/sar/cmdset.c:151:10: note: Condition 'strc>0' is always true searchandrescue_1.7.0/sar/cmdset.c:156:10: style: Condition 'strc>1' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/cmdset.c:140:29: note: Assuming that condition 'strc<=1' is not redundant searchandrescue_1.7.0/sar/cmdset.c:156:10: note: Condition 'strc>1' is always true searchandrescue_1.7.0/sar/cmdset.c:61:6: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdset.c:119:27: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdset.c:142:6: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdset.c:163:6: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdset.c:402:7: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/cmdset.c:146:24: warning: Uninitialized variable: strc [uninitvar] searchandrescue_1.7.0/sar/cmdset.c:136:10: note: Assuming condition is false searchandrescue_1.7.0/sar/cmdset.c:146:24: note: Uninitialized variable: strc searchandrescue_1.7.0/sar/cpfio.c:160:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/cpfio.c:497:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/cpins.c:254:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/cpins.c:286:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/cpins.c:346:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/cpins.c:408:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/cpins.c:477:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/cpins.c:542:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/cpins.c:635:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/cpins.c:542:6: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] searchandrescue_1.7.0/sar/cpins.c:542:6: portability: %lu in format string (no. 3) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] searchandrescue_1.7.0/sar/cpins.c:340:28: style: Variable 'display' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/cpins.c:402:28: style: Variable 'display' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/cpinsaltimeter.c:120:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/cpinsaltimeter.c:75:18: style: Variable 'insv' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/cpinsaltimeter.c:107:34: style: Parameter 'v' can be declared as pointer to const. However it seems that 'CPInsAltimeterValuesChanged' is a callback function, if 'v' is declared with const you might also need to cast function pointer(s). [constParameterCallback] searchandrescue_1.7.0/sar/cpinsaltimeter.c:89:6: note: You might need to cast the function pointer here searchandrescue_1.7.0/sar/cpinsaltimeter.c:107:34: note: Parameter 'v' can be declared as pointer to const searchandrescue_1.7.0/sar/cpinsaltimeter.c:115:18: style: Variable 'insv' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/cpinsaltimeter.c:193:34: style: Parameter 'v' can be declared as pointer to const. However it seems that 'CPInsAltimeterManage' is a callback function, if 'v' is declared with const you might also need to cast function pointer(s). [constParameterCallback] searchandrescue_1.7.0/sar/cpinsaltimeter.c:93:6: note: You might need to cast the function pointer here searchandrescue_1.7.0/sar/cpinsaltimeter.c:193:34: note: Parameter 'v' can be declared as pointer to const searchandrescue_1.7.0/sar/cpinsaltimeter.c:193:43: style: Parameter 'data' can be declared as pointer to const. However it seems that 'CPInsAltimeterManage' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] searchandrescue_1.7.0/sar/cpinsaltimeter.c:93:6: note: You might need to cast the function pointer here searchandrescue_1.7.0/sar/cpinsaltimeter.c:193:43: note: Parameter 'data' can be declared as pointer to const searchandrescue_1.7.0/sar/cpinsaltimeter.c:196:18: style: Variable 'insv' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/cpinsaltimeter.c:204:52: style: Parameter 'data' can be declared as pointer to const. However it seems that 'CPInsAltimeterDelete' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] searchandrescue_1.7.0/sar/cpinsaltimeter.c:97:6: note: You might need to cast the function pointer here searchandrescue_1.7.0/sar/cpinsaltimeter.c:204:52: note: Parameter 'data' can be declared as pointer to const searchandrescue_1.7.0/sar/cpinsaltimeter.c:206:18: style: Variable 'insv' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/cpinsaltimeter.c:85:7: style: Variable 'insv' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/cpinsaltimeter.c:124:9: style: Variable 'cstate' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/cpinsbearing.c:124:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/cpinsbearing.c:111:34: style: Parameter 'v' can be declared as pointer to const. However it seems that 'CPInsBearingValuesChanged' is a callback function, if 'v' is declared with const you might also need to cast function pointer(s). [constParameterCallback] searchandrescue_1.7.0/sar/cpinsbearing.c:93:6: note: You might need to cast the function pointer here searchandrescue_1.7.0/sar/cpinsbearing.c:111:34: note: Parameter 'v' can be declared as pointer to const searchandrescue_1.7.0/sar/cpinsbearing.c:231:34: style: Parameter 'v' can be declared as pointer to const. However it seems that 'CPInsBearingManage' is a callback function, if 'v' is declared with const you might also need to cast function pointer(s). [constParameterCallback] searchandrescue_1.7.0/sar/cpinsbearing.c:97:6: note: You might need to cast the function pointer here searchandrescue_1.7.0/sar/cpinsbearing.c:231:34: note: Parameter 'v' can be declared as pointer to const searchandrescue_1.7.0/sar/cpinsbearing.c:231:43: style: Parameter 'data' can be declared as pointer to const. However it seems that 'CPInsBearingManage' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] searchandrescue_1.7.0/sar/cpinsbearing.c:97:6: note: You might need to cast the function pointer here searchandrescue_1.7.0/sar/cpinsbearing.c:231:43: note: Parameter 'data' can be declared as pointer to const searchandrescue_1.7.0/sar/cpinsbearing.c:234:16: style: Variable 'insv' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/cpinsbearing.c:245:50: style: Parameter 'data' can be declared as pointer to const. However it seems that 'CPInsBearingDelete' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] searchandrescue_1.7.0/sar/cpinsbearing.c:101:6: note: You might need to cast the function pointer here searchandrescue_1.7.0/sar/cpinsbearing.c:245:50: note: Parameter 'data' can be declared as pointer to const searchandrescue_1.7.0/sar/cpinsbearing.c:247:16: style: Variable 'insv' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/cpinsbearing.c:128:9: style: Variable 'cstate' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/cpinshorizon.c:163:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_QUADS [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/cpinshorizon.c:337:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/cpinshorizon.c:120:11: style: Parameter 'bg' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/cpinshorizon.c:120:24: style: Parameter 'fg' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/cpinshorizon.c:120:37: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/cpinshorizon.c:324:34: style: Parameter 'v' can be declared as pointer to const. However it seems that 'CPInsHorizonValuesChanged' is a callback function, if 'v' is declared with const you might also need to cast function pointer(s). [constParameterCallback] searchandrescue_1.7.0/sar/cpinshorizon.c:98:6: note: You might need to cast the function pointer here searchandrescue_1.7.0/sar/cpinshorizon.c:324:34: note: Parameter 'v' can be declared as pointer to const searchandrescue_1.7.0/sar/cpinshorizon.c:331:26: style: Variable 'tex_bg' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/cpinshorizon.c:332:16: style: Variable 'insv' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/cpinshorizon.c:406:34: style: Parameter 'v' can be declared as pointer to const. However it seems that 'CPInsHorizonManage' is a callback function, if 'v' is declared with const you might also need to cast function pointer(s). [constParameterCallback] searchandrescue_1.7.0/sar/cpinshorizon.c:102:6: note: You might need to cast the function pointer here searchandrescue_1.7.0/sar/cpinshorizon.c:406:34: note: Parameter 'v' can be declared as pointer to const searchandrescue_1.7.0/sar/cpinshorizon.c:406:43: style: Parameter 'data' can be declared as pointer to const. However it seems that 'CPInsHorizonManage' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] searchandrescue_1.7.0/sar/cpinshorizon.c:102:6: note: You might need to cast the function pointer here searchandrescue_1.7.0/sar/cpinshorizon.c:406:43: note: Parameter 'data' can be declared as pointer to const searchandrescue_1.7.0/sar/cpinshorizon.c:409:16: style: Variable 'insv' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/cpinshorizon.c:420:50: style: Parameter 'data' can be declared as pointer to const. However it seems that 'CPInsHorizonDelete' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] searchandrescue_1.7.0/sar/cpinshorizon.c:106:6: note: You might need to cast the function pointer here searchandrescue_1.7.0/sar/cpinshorizon.c:420:50: note: Parameter 'data' can be declared as pointer to const searchandrescue_1.7.0/sar/cpinshorizon.c:422:16: style: Variable 'insv' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/cpinshorizon.c:243:11: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] searchandrescue_1.7.0/sar/cpinshorizon.c:264:11: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] searchandrescue_1.7.0/sar/cpinshorizon.c:267:11: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] searchandrescue_1.7.0/sar/cpinshorizon.c:270:11: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] searchandrescue_1.7.0/sar/cpinshorizon.c:273:11: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] searchandrescue_1.7.0/sar/cpinshorizon.c:289:8: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] searchandrescue_1.7.0/sar/cpinshorizon.c:292:8: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] searchandrescue_1.7.0/sar/cpinshorizon.c:306:8: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] searchandrescue_1.7.0/sar/cpinshorizon.c:309:8: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] searchandrescue_1.7.0/sar/cpinshorizon.c:351:9: style: Variable 'tex_bg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/cpfio.c:64:15: style: Parameter 'fp' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/cpfio.c:64:26: style: Parameter 'ins' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/cpfio.c:140:16: style: Parameter 'cp' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/disk.cpp:1357:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/disk.cpp:1685:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/disk.cpp:193:28: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] searchandrescue_1.7.0/sar/disk.cpp:702:28: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] searchandrescue_1.7.0/sar/disk.cpp:1394:9: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] searchandrescue_1.7.0/sar/disk.cpp:1409:3: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] searchandrescue_1.7.0/sar/disk.cpp:1416:3: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] searchandrescue_1.7.0/sar/disk.cpp:1432:6: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] searchandrescue_1.7.0/sar/disk.cpp:458:11: style: Condition 'm>0' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/disk.cpp:446:14: note: Assignment 'm=1024', assigned value is 1024 searchandrescue_1.7.0/sar/disk.cpp:458:11: note: Condition 'm>0' is always true searchandrescue_1.7.0/sar/disk.cpp:691:6: error: Common realloc mistake: 'rtn_names' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/disk.cpp:1187:7: error: Common realloc mistake: 'match' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/disk.cpp:1263:7: warning: Possible null pointer dereference: new_child [nullPointer] searchandrescue_1.7.0/sar/disk.cpp:1262:18: note: Assignment 'new_child=((match[0])!=NULL)?strdup(match[0]):NULL', assigned value is 0 searchandrescue_1.7.0/sar/disk.cpp:1263:7: note: Null pointer dereference searchandrescue_1.7.0/sar/disk.cpp:193:12: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/disk.cpp:691:18: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/disk.cpp:702:12: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/disk.cpp:759:16: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/disk.cpp:778:16: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/disk.cpp:791:16: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/disk.cpp:812:16: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/disk.cpp:832:16: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/disk.cpp:846:16: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/disk.cpp:866:12: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/disk.cpp:1110:9: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/disk.cpp:1187:15: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/disk.cpp:1432:6: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] searchandrescue_1.7.0/sar/disk.cpp:177:14: style: The scope of the variable 's' can be reduced. [variableScope] searchandrescue_1.7.0/sar/disk.cpp:447:18: style: The scope of the variable 'src' can be reduced. [variableScope] searchandrescue_1.7.0/sar/disk.cpp:1218:15: style: The scope of the variable 'ss' can be reduced. [variableScope] searchandrescue_1.7.0/sar/disk.cpp:178:17: style: Variable 'de' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/disk.cpp:671:17: style: Variable 'de' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/disk.cpp:750:18: style: Variable 'strptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/disk.cpp:887:8: style: Variable 'strptr1' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/disk.cpp:1011:18: style: Variable 'strend' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/disk.cpp:1498:22: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/disk.cpp:1566:13: style: Variable 's3' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/disk.cpp:1590:13: style: Variable 's3' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/fio.cpp:138:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/fio.cpp:154:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/fio.cpp:182:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/fio.cpp:212:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/fio.cpp:324:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/fio.cpp:474:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/fio.cpp:552:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/fio.cpp:630:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/fio.cpp:699:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/fio.cpp:831:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/fio.cpp:923:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/fio.cpp:999:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/fio.cpp:712:3: error: Common realloc mistake: 's' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/fio.cpp:841:3: error: Common realloc mistake: 's' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/fio.cpp:933:3: error: Common realloc mistake: 's' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/fio.cpp:1069:7: error: Common realloc mistake: 'strptr' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/fio.cpp:1083:6: error: Common realloc mistake: 'strptr' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/fio.cpp:1134:7: error: Common realloc mistake: 'strptr' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/fio.cpp:1148:6: error: Common realloc mistake: 'strptr' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/fio.cpp:79:13: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/fio.cpp:408:9: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/fio.cpp:432:9: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/fio.cpp:712:7: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/fio.cpp:841:7: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/fio.cpp:933:7: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/fio.cpp:1069:16: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/fio.cpp:1083:15: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/fio.cpp:1134:16: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/fio.cpp:1148:15: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/fio.cpp:146:6: style: The scope of the variable 'c' can be reduced. [variableScope] searchandrescue_1.7.0/sar/fio.cpp:200:6: style: The scope of the variable 'c' can be reduced. [variableScope] searchandrescue_1.7.0/sar/fio.cpp:821:19: style: The scope of the variable 's2' can be reduced. [variableScope] searchandrescue_1.7.0/sar/fio.cpp:913:19: style: The scope of the variable 's2' can be reduced. [variableScope] searchandrescue_1.7.0/sar/fio.cpp:198:64: style:inconclusive: Function 'FSeekToParm' argument 4 names different: declaration 'delimiator' definition 'delim'. [funcArgNamesDifferent] searchandrescue_1.7.0/include/fio.h:17:71: note: Function 'FSeekToParm' argument 4 names different: declaration 'delimiator' definition 'delim'. searchandrescue_1.7.0/sar/fio.cpp:198:64: note: Function 'FSeekToParm' argument 4 names different: declaration 'delimiator' definition 'delim'. searchandrescue_1.7.0/sar/fio.cpp:715:11: style: Variable 'len' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/fio.cpp:844:11: style: Variable 'len' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/fio.cpp:844:15: style: Variable 'i' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/fio.cpp:936:11: style: Variable 'len' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/fio.cpp:936:15: style: Variable 'i' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/gctl.c:131:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_JOYSTICK [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx.c:5678:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int8_t [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx.c:5781:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx.c:5887:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx.c:5964:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_RGBA [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx.c:6006:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_RGB [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx.c:6030:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_RGBA [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx.c:4808:25: style: Variable 'akey' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/gwx.c:4866:25: style: Variable 'a_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/gwx.c:5658:21: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/gwx.c:5501:19: style: Variable 'chars_hidden' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/gwx.c:5631:15: style: Variable 'line_spacing' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/gwx_dialog.c:256:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GWX_HAS_DEFAULT [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:279:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:305:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:442:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:458:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:474:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:488:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GWX_HAS_FOCUS [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:498:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GWX_HAS_FOCUS [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:510:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GWX_HAS_DEFAULT [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:520:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GWX_HAS_DEFAULT [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:532:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GWX_SENSITIVE [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:557:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:644:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:669:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:715:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:873:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:949:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:998:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:1203:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:1314:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:1374:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:1519:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:1648:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:2015:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:2138:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:2246:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/gwx_dialog.c:2319:6: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] searchandrescue_1.7.0/sar/gwx_dialog.c:1745:17: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] searchandrescue_1.7.0/sar/gwx_dialog.c:1752:18: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] searchandrescue_1.7.0/sar/gwx_dialog.c:1113:10: style: Variable 'len' is reassigned a value before the old one has been used. 'break;' missing? [redundantAssignInSwitch] searchandrescue_1.7.0/sar/gwx_dialog.c:1091:10: note: $symbol is assigned searchandrescue_1.7.0/sar/gwx_dialog.c:1113:10: note: $symbol is overwritten searchandrescue_1.7.0/sar/gwx_dialog.c:1134:10: style: Variable 'len' is reassigned a value before the old one has been used. [redundantAssignment] searchandrescue_1.7.0/sar/gwx_dialog.c:1113:10: note: len is assigned searchandrescue_1.7.0/sar/gwx_dialog.c:1134:10: note: len is overwritten searchandrescue_1.7.0/sar/gwx_dialog.c:1485:6: style: Variable 'btn' is assigned an expression that holds the same value. [redundantAssignment] searchandrescue_1.7.0/sar/gwx_dialog.c:1480:10: note: btn is assigned '&md->ok_btn' here. searchandrescue_1.7.0/sar/gwx_dialog.c:1485:6: note: Variable 'btn' is assigned an expression that holds the same value. searchandrescue_1.7.0/sar/gwx_dialog.c:2153:10: style: Local variable 'i' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/gwx_dialog.c:2119:6: note: Shadowed declaration searchandrescue_1.7.0/sar/gwx_dialog.c:2153:10: note: Shadow variable searchandrescue_1.7.0/sar/gwx_dialog.c:251:47: style: Parameter 'my_button' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/gwx_dialog.c:351:15: style: Variable 'csp' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/gwx_dialog.c:638:11: style: Variable 'dpy' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/gwx_dialog.c:866:11: style: Variable 'dpy' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/gwx_dialog.c:1641:11: style: Variable 'dpy' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/gwx_dialog.c:2049:21: style: Variable 'btn' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/gwx_dialog.c:2065:21: style: Variable 'btn' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/gwx_dialog.c:2081:21: style: Variable 'btn' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/gwx_dialog.c:2097:21: style: Variable 'btn' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/gwx_dialog.c:1134:10: style: Variable 'len' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/gwx_dialog.c:1152:10: style: Variable 'len' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/gwx_dialog.c:1211:17: style: Variable 'btn_height' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/gwx_dialog.c:1214:17: style: Variable 'btn_height' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/gctl.c:90:25: style: Variable 'js_value' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/gctl.c:325:11: style: Variable 'btn_kb_state' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/gctl.c:327:10: style: Variable 'btn_kb_last' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/gctl.c:712:21: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/gctl.c:712:43: style: Parameter 'gc' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/gctl.c:1090:18: style: Variable 'joystick' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/gctl.c:151:10: style: Variable 'device' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/gctl.c:610:15: style: Variable 'btn_kb_last' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/gctl.c:619:15: style: Variable 'btn_kb_last' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/gctl.c:629:15: style: Variable 'btn_kb_last' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/gctl.c:641:15: style: Variable 'btn_kb_last' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/gctl.c:650:15: style: Variable 'btn_kb_last' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/gctl.c:661:15: style: Variable 'btn_kb_last' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/gctl.c:677:15: style: Variable 'btn_kb_last' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/gctl.c:686:15: style: Variable 'btn_kb_last' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/gctl.c:1103:12: style: Variable 'joystick' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/human.c:252:31: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/humanio.c:65:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/image.c:112:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/image.c:224:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_ALPHA_TEST [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/image.c:68:2: warning: If memory allocation fails, then there is a possible null pointer dereference: img [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/image.c:65:26: note: Assuming allocation function fails searchandrescue_1.7.0/sar/image.c:65:26: note: Assignment 'img=(struct sar_image_struct*)(calloc(1,sizeof(struct sar_image_struct)))', assigned value is 0 searchandrescue_1.7.0/sar/image.c:68:2: note: Null pointer dereference searchandrescue_1.7.0/sar/image.c:69:2: warning: If memory allocation fails, then there is a possible null pointer dereference: img [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/image.c:65:26: note: Assuming allocation function fails searchandrescue_1.7.0/sar/image.c:65:26: note: Assignment 'img=(struct sar_image_struct*)(calloc(1,sizeof(struct sar_image_struct)))', assigned value is 0 searchandrescue_1.7.0/sar/image.c:69:2: note: Null pointer dereference searchandrescue_1.7.0/sar/image.c:70:2: warning: If memory allocation fails, then there is a possible null pointer dereference: img [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/image.c:65:26: note: Assuming allocation function fails searchandrescue_1.7.0/sar/image.c:65:26: note: Assignment 'img=(struct sar_image_struct*)(calloc(1,sizeof(struct sar_image_struct)))', assigned value is 0 searchandrescue_1.7.0/sar/image.c:70:2: note: Null pointer dereference searchandrescue_1.7.0/sar/image.c:71:2: warning: If memory allocation fails, then there is a possible null pointer dereference: img [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/image.c:65:26: note: Assuming allocation function fails searchandrescue_1.7.0/sar/image.c:65:26: note: Assignment 'img=(struct sar_image_struct*)(calloc(1,sizeof(struct sar_image_struct)))', assigned value is 0 searchandrescue_1.7.0/sar/image.c:71:2: note: Null pointer dereference searchandrescue_1.7.0/sar/humanio.c:68:14: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/humanio.c:67:21: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/humanio.c:68:14: note: Null pointer dereference searchandrescue_1.7.0/sar/humanio.c:68:27: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/humanio.c:67:21: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/humanio.c:68:27: note: Null pointer dereference searchandrescue_1.7.0/sar/humanio.c:72:27: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/humanio.c:67:21: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/humanio.c:72:27: note: Null pointer dereference searchandrescue_1.7.0/sar/humanio.c:39:49: style:inconclusive: Function 'SARHumanLoadFromFile' argument 1 names different: declaration 'w' definition 'hd'. [funcArgNamesDifferent] searchandrescue_1.7.0/sar/human.h:78:25: note: Function 'SARHumanLoadFromFile' argument 1 names different: declaration 'w' definition 'hd'. searchandrescue_1.7.0/sar/humanio.c:39:49: note: Function 'SARHumanLoadFromFile' argument 1 names different: declaration 'w' definition 'hd'. searchandrescue_1.7.0/sar/humanio.c:67:21: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/matrixmath.c:28:35: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/matrixmath.c:28:46: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/main.c:160:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/main.c:1381:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_SMOOTH [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/main.c:2453:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/menu.c:367:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_DEPTH_TEST [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/menu.c:441:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/menu.c:538:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sensitive [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/menu.c:1257:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/menu.c:2411:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/menu.c:2878:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_ALPHA_TEST [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/menu.c:3774:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LINE_LOOP [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/menu.c:4395:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_BUFFER_BIT [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/menu.c:4459:16: warning: Invalid test for overflow '(x_min+w)>(w)'; signed integer overflow is undefined behavior. Some mainstream compilers removes handling of overflows when optimising the code and change the code to 'x_min>0'. [invalidTestForOverflow] searchandrescue_1.7.0/sar/menu.c:4461:16: warning: Invalid test for overflow '(y_min+h)>(h)'; signed integer overflow is undefined behavior. Some mainstream compilers removes handling of overflows when optimising the code and change the code to 'y_min>0'. [invalidTestForOverflow] searchandrescue_1.7.0/sar/menu.c:2395:14: style: Local variable 'list' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/menu.c:2288:28: note: Shadowed declaration searchandrescue_1.7.0/sar/menu.c:2395:14: note: Shadow variable searchandrescue_1.7.0/sar/menu.c:664:25: style: Parameter 'fg_color' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/menu.c:740:25: style: Parameter 'fg_color' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/menu.c:823:25: style: Parameter 'fg_color' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/menu.c:924:25: style: Parameter 'fg_color' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/menu.c:1038:25: style: Parameter 'fg_color' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/menu.c:1358:21: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/menu.c:1358:47: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/menu.c:1374:25: style: Parameter 'fg_color' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/menu.c:1510:25: style: Parameter 'label_color' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/menu.c:1511:25: style: Parameter 'value_color' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/menu.c:1968:25: style: Parameter 'label_color' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/menu.c:3056:28: style: Variable 'progress_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/menu.c:3603:30: style: Variable 'item' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/menu.c:4419:28: style: Variable 'mdpy' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/menu.c:3245:9: style: Variable 'x_max' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/menu.c:3247:9: style: Variable 'y_max' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/menu.c:3399:16: style: Variable 'scroll_width' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/menu.c:4674:20: style: Variable 'scroll_width' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/menumap.c:620:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/menumap.c:240:25: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/menumap.c:406:31: style: Variable 'marking_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/menumap.c:474:31: style: Variable 'marking_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/menumap.c:540:19: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/menumap.c:662:29: style: Variable 'color' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/menumap.c:789:26: style: Variable 'color' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/menumap.c:1057:36: style: Variable 'marking_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/main.c:2727:6: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] searchandrescue_1.7.0/sar/main.c:2011:6: error: Common realloc mistake: 'strv' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/main.c:2021:6: error: Common realloc mistake: 'strv' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/main.c:2029:6: error: Common realloc mistake: 'strv' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/main.c:2036:6: error: Common realloc mistake: 'strv' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/main.c:215:2: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/main.c:212:6: note: Assuming allocation function fails searchandrescue_1.7.0/sar/main.c:212:6: note: Assignment 'v=(struct gctl_values_struct*)(calloc(1,sizeof(struct gctl_values_struct)))', assigned value is 0 searchandrescue_1.7.0/sar/main.c:215:2: note: Null pointer dereference searchandrescue_1.7.0/sar/main.c:218:2: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/main.c:212:6: note: Assuming allocation function fails searchandrescue_1.7.0/sar/main.c:212:6: note: Assignment 'v=(struct gctl_values_struct*)(calloc(1,sizeof(struct gctl_values_struct)))', assigned value is 0 searchandrescue_1.7.0/sar/main.c:218:2: note: Null pointer dereference searchandrescue_1.7.0/sar/main.c:223:2: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/main.c:212:6: note: Assuming allocation function fails searchandrescue_1.7.0/sar/main.c:212:6: note: Assignment 'v=(struct gctl_values_struct*)(calloc(1,sizeof(struct gctl_values_struct)))', assigned value is 0 searchandrescue_1.7.0/sar/main.c:223:2: note: Null pointer dereference searchandrescue_1.7.0/sar/main.c:296:17: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/main.c:212:6: note: Assuming allocation function fails searchandrescue_1.7.0/sar/main.c:212:6: note: Assignment 'v=(struct gctl_values_struct*)(calloc(1,sizeof(struct gctl_values_struct)))', assigned value is 0 searchandrescue_1.7.0/sar/main.c:296:17: note: Null pointer dereference searchandrescue_1.7.0/sar/main.c:301:7: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/main.c:212:6: note: Assuming allocation function fails searchandrescue_1.7.0/sar/main.c:212:6: note: Assignment 'v=(struct gctl_values_struct*)(calloc(1,sizeof(struct gctl_values_struct)))', assigned value is 0 searchandrescue_1.7.0/sar/main.c:301:7: note: Null pointer dereference searchandrescue_1.7.0/sar/main.c:1972:2: warning: If memory allocation fails, then there is a possible null pointer dereference: strv [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/main.c:1971:24: note: Assuming allocation function fails searchandrescue_1.7.0/sar/main.c:1971:9: note: Assignment 'strv=(char**)calloc(strc,sizeof(char*))', assigned value is 0 searchandrescue_1.7.0/sar/main.c:1972:2: note: Null pointer dereference searchandrescue_1.7.0/sar/main.c:1975:2: warning: If memory allocation fails, then there is a possible null pointer dereference: strv [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/main.c:1971:24: note: Assuming allocation function fails searchandrescue_1.7.0/sar/main.c:1971:9: note: Assignment 'strv=(char**)calloc(strc,sizeof(char*))', assigned value is 0 searchandrescue_1.7.0/sar/main.c:1975:2: note: Null pointer dereference searchandrescue_1.7.0/sar/main.c:420:11: style: Local variable 'width' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/main.c:364:13: note: Shadowed declaration searchandrescue_1.7.0/sar/main.c:420:11: note: Shadow variable searchandrescue_1.7.0/sar/main.c:420:18: style: Local variable 'height' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/main.c:364:20: note: Shadowed declaration searchandrescue_1.7.0/sar/main.c:420:18: note: Shadow variable searchandrescue_1.7.0/sar/main.c:179:15: style: Variable 'gctl' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/main.c:990:41: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'SARVisibilityCB' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] searchandrescue_1.7.0/sar/main.c:2093:25: note: You might need to cast the function pointer here searchandrescue_1.7.0/sar/main.c:990:41: note: Parameter 'ptr' can be declared as pointer to const searchandrescue_1.7.0/sar/main.c:1008:19: style: Variable 'core_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/main.c:1092:28: style: Variable 'obj_ground_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/main.c:1093:27: style: Variable 'obj_human_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/main.c:2440:21: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/main.c:241:18: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:244:18: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:271:18: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:274:18: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:1975:12: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:1988:12: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:1989:12: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:1990:12: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:1991:12: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:1992:12: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:1993:12: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:1995:16: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:1998:23: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:2006:23: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:2012:20: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:2022:20: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:2030:20: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:2037:20: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:2105:30: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/main.c:782:16: style: Variable 'alt_key_state' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/main.c:784:18: style: Variable 'shift_key_state' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/menuobjview.c:921:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/menuobjview.c:1128:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_PROJECTION [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/pconf/fio.c:1098:2: style: Variable 'platform_num' is reassigned a value before the old one has been used. [redundantAssignment] searchandrescue_1.7.0/pconf/fio.c:241:2: note: platform_num is assigned searchandrescue_1.7.0/pconf/fio.c:1098:2: note: platform_num is overwritten searchandrescue_1.7.0/pconf/fio.c:1098:2: style: Variable 'feature_num' is reassigned a value before the old one has been used. [redundantAssignment] searchandrescue_1.7.0/pconf/fio.c:241:2: note: feature_num is assigned searchandrescue_1.7.0/pconf/fio.c:1098:2: note: feature_num is overwritten searchandrescue_1.7.0/pconf/fio.c:1098:2: style: Variable 'depend_num' is reassigned a value before the old one has been used. [redundantAssignment] searchandrescue_1.7.0/pconf/fio.c:241:2: note: depend_num is assigned searchandrescue_1.7.0/pconf/fio.c:1098:2: note: depend_num is overwritten searchandrescue_1.7.0/pconf/fio.c:287:16: style: Variable 'platform_num' is reassigned a value before the old one has been used. [redundantAssignment] searchandrescue_1.7.0/pconf/fio.c:284:3: note: platform_num is assigned searchandrescue_1.7.0/pconf/fio.c:287:16: note: platform_num is overwritten searchandrescue_1.7.0/pconf/fio.c:1098:2: style: Variable 'feature_num' is reassigned a value before the old one has been used. [redundantAssignment] searchandrescue_1.7.0/pconf/fio.c:284:3: note: feature_num is assigned searchandrescue_1.7.0/pconf/fio.c:1098:2: note: feature_num is overwritten searchandrescue_1.7.0/pconf/fio.c:1098:2: style: Variable 'depend_num' is reassigned a value before the old one has been used. [redundantAssignment] searchandrescue_1.7.0/pconf/fio.c:284:3: note: depend_num is assigned searchandrescue_1.7.0/pconf/fio.c:1098:2: note: depend_num is overwritten searchandrescue_1.7.0/pconf/fio.c:1098:2: style: Variable 'platform_num' is reassigned a value before the old one has been used. [redundantAssignment] searchandrescue_1.7.0/pconf/fio.c:296:20: note: platform_num is assigned searchandrescue_1.7.0/pconf/fio.c:1098:2: note: platform_num is overwritten searchandrescue_1.7.0/pconf/fio.c:1098:2: style: Variable 'depend_num' is reassigned a value before the old one has been used. [redundantAssignment] searchandrescue_1.7.0/pconf/fio.c:319:28: note: depend_num is assigned searchandrescue_1.7.0/pconf/fio.c:1098:2: note: depend_num is overwritten searchandrescue_1.7.0/pconf/fio.c:1098:2: style: Variable 'feature_num' is reassigned a value before the old one has been used. [redundantAssignment] searchandrescue_1.7.0/pconf/fio.c:343:37: note: feature_num is assigned searchandrescue_1.7.0/pconf/fio.c:1098:2: note: feature_num is overwritten searchandrescue_1.7.0/pconf/fio.c:1098:2: style: Variable 'depend_num' is reassigned a value before the old one has been used. [redundantAssignment] searchandrescue_1.7.0/pconf/fio.c:394:36: note: depend_num is assigned searchandrescue_1.7.0/pconf/fio.c:1098:2: note: depend_num is overwritten searchandrescue_1.7.0/pconf/fio.c:1180:18: style: Variable 'feature_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/mission.c:1288:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/menuobjview.c:956:35: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] searchandrescue_1.7.0/sar/menuobjview.c:830:15: style: Condition 'tan_value>0.0' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/menuobjview.c:827:18: note: Assignment 'tan_value=(float)tan(20.0*3.14159265/180)', assigned value is 0.363970233814 searchandrescue_1.7.0/sar/menuobjview.c:830:15: note: Condition 'tan_value>0.0' is always true searchandrescue_1.7.0/sar/menuobjview.c:857:15: style: Condition 'tan_value>0.0f' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/menuobjview.c:854:18: note: Assignment 'tan_value=(float)tan(20.0f*3.14159265/180)', assigned value is 0.363970233814 searchandrescue_1.7.0/sar/menuobjview.c:857:15: note: Condition 'tan_value>0.0f' is always true searchandrescue_1.7.0/sar/menuobjview.c:113:25: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/menuobjview.c:1073:47: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/menuobjview.c:1081:25: style: Variable 'glres' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/menuobjview.c:1315:42: style: Variable 'src_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/mission.c:182:21: style: Variable 'obj_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/mission.c:304:36: style: Variable 'objective' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/mission.c:629:21: style: Variable 'player_obj_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/mission.c:630:32: style: Variable 'objective' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/mission.c:913:48: style: Parameter 'obj_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/mission.c:917:22: style: Variable 'mission' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/mission.c:462:17: style: Variable 'player_obj_num' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/musiclistio.c:140:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/musiclistio.c:143:14: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/musiclistio.c:142:21: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/musiclistio.c:143:14: note: Null pointer dereference searchandrescue_1.7.0/sar/musiclistio.c:143:27: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/musiclistio.c:142:21: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/musiclistio.c:143:27: note: Null pointer dereference searchandrescue_1.7.0/sar/musiclistio.c:147:27: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/musiclistio.c:142:21: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/musiclistio.c:147:27: note: Null pointer dereference searchandrescue_1.7.0/sar/musiclistio.c:142:21: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/missionio.c:165:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/missionio.c:295:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/missionio.c:443:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/missionio.c:810:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/missionio.c:1216:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/missionio.c:1585:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/objiopremodeled.c:616:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/objsound.c:174:27: style: Variable 'sndsrc' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objsound.c:319:27: style: Variable 'sndsrc' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objsound.c:398:27: style: Variable 'inside_sndsrc' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objsound.c:399:6: style: Variable 'outside_sndsrc' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objsound.c:555:31: style: Variable 'sndsrc' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objsound.c:603:31: style: Variable 'sndsrc' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objutils.c:898:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/objutils.c:963:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/objutils.c:1059:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COMPILE [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/objutils.c:1815:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/objutils.c:2102:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/objutils.c:2483:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_QUADS [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/missionio.c:112:27: style: Variable 'p_version' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:113:31: style: Variable 'p_object_name' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:115:26: style: Variable 'p_rotate' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:245:27: style: Variable 'p_version' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:246:24: style: Variable 'p_name' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:372:19: style: Parameter 'core_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/missionio.c:373:19: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/missionio.c:386:27: style: Variable 'p_version' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:387:24: style: Variable 'p_name' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:389:30: style: Variable 'p_new_object' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:390:31: style: Variable 'p_new_helipad' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:391:30: style: Variable 'p_new_runway' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:392:29: style: Variable 'p_new_human' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:393:34: style: Variable 'p_new_premodeled' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:395:26: style: Variable 'p_rotate' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:396:31: style: Variable 'p_object_name' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:397:42: style: Variable 'p_object_map_desc' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:662:31: style: Variable 'p_desc' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:717:27: style: Variable 'p_version' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:719:36: style: Variable 'p_mission_begin_at' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:721:37: style: Variable 'p_mission_arrive_at' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:731:7: style: Variable 'intercept_marking_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:834:10: style: Variable 's2' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:919:28: style: Variable 'ipos' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1131:23: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1132:27: style: Variable 'p_version' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1133:38: style: Variable 'p_mission_log_header' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1426:27: style: Variable 'p_version' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1427:24: style: Variable 'p_name' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1428:31: style: Variable 'p_desc' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1430:27: style: Variable 'p_weather' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1431:31: style: Variable 'p_time_of_day' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1432:42: style: Variable 'p_texture_base_directory' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1434:41: style: Variable 'p_mission_new_objective' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1436:37: style: Variable 'p_mission_time_left' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1437:36: style: Variable 'p_mission_begin_at' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1438:40: style: Variable 'p_mission_begin_at_pos' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1439:37: style: Variable 'p_mission_arrive_at' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1440:43: style: Variable 'p_mission_message_success' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1441:40: style: Variable 'p_mission_message_fail' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1442:40: style: Variable 'p_mission_humans_tally' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1444:30: style: Variable 'p_new_object' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1451:30: style: Variable 'p_model_file' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1455:33: style: Variable 'p_no_depth_test' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1456:34: style: Variable 'p_polygon_offset' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1457:31: style: Variable 'p_object_name' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1458:50: style: Variable 'p_runway_applight_n' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1459:50: style: Variable 'p_runway_applight_s' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1460:39: style: Variable 'p_human_message_enter' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1476:28: style: Variable 'obj_ground_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1477:29: style: Variable 'obj_helipad_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1480:27: style: Variable 'obj_smoke_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1481:26: style: Variable 'obj_fire_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1851:26: style: Variable 'begin_obj_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1920:26: style: Variable 'arrive_obj_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:2333:49: style: Parameter 'mission' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/missionio.c:2390:49: style: Parameter 'mission' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/missionio.c:2393:23: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/missionio.c:2402:20: style: Variable 'scene' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/missionio.c:1062:12: style: Variable 'new_ptr' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objutils.c:289:20: style: Parameter 'scene' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/objutils.c:291:21: style: Parameter 'obj_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/objutils.c:311:45: style: Parameter 'scene' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/objutils.c:398:26: style: Variable 't' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objutils.c:942:54: style: Parameter 'vmodel' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/objutils.c:1224:21: style: Parameter 'obj_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/objutils.c:1302:21: style: Parameter 'obj_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/objutils.c:2088:33: style: Parameter 'total' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/objutils.c:2124:36: style: Variable 'premodeled' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/optionio.c:74:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/optionio.c:595:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/playerstatio.c:79:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/playerstatio.c:267:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarcamp.c:155:33: style:inconclusive: Function 'Place_Campaign_Humans' argument 1 names different: declaration 'start_location' definition 'start_place'. [funcArgNamesDifferent] searchandrescue_1.7.0/sar/sarcamp.h:102:33: note: Function 'Place_Campaign_Humans' argument 1 names different: declaration 'start_location' definition 'start_place'. searchandrescue_1.7.0/sar/sarcamp.c:155:33: note: Function 'Place_Campaign_Humans' argument 1 names different: declaration 'start_location' definition 'start_place'. searchandrescue_1.7.0/sar/sarcamp.c:244:44: style:inconclusive: Function 'Create_Campaign_Arrive_Objective' argument 1 names different: declaration 'current_destination' definition 'current_location'. [funcArgNamesDifferent] searchandrescue_1.7.0/sar/sarcamp.h:64:44: note: Function 'Create_Campaign_Arrive_Objective' argument 1 names different: declaration 'current_destination' definition 'current_location'. searchandrescue_1.7.0/sar/sarcamp.c:244:44: note: Function 'Create_Campaign_Arrive_Objective' argument 1 names different: declaration 'current_destination' definition 'current_location'. searchandrescue_1.7.0/sar/sarcamp.c:244:66: style:inconclusive: Function 'Create_Campaign_Arrive_Objective' argument 2 names different: declaration 'next_destination' definition 'next_location'. [funcArgNamesDifferent] searchandrescue_1.7.0/sar/sarcamp.h:64:69: note: Function 'Create_Campaign_Arrive_Objective' argument 2 names different: declaration 'next_destination' definition 'next_location'. searchandrescue_1.7.0/sar/sarcamp.c:244:66: note: Function 'Create_Campaign_Arrive_Objective' argument 2 names different: declaration 'next_destination' definition 'next_location'. searchandrescue_1.7.0/sar/sarcamp.c:155:51: style: Parameter 'destinations' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sarcamp.c:361:11: style: Variable 'home_dir' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objio.c:621:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/objio.c:740:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COMPILE [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/objio.c:785:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COMPILE [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/objio.c:985:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/objio.c:1237:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/objio.c:1514:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable runway_threshold_x3d [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/objio.c:1894:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_POINTS [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/objio.c:2294:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_BLEND [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/objio.c:2640:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/objio.c:4718:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:712:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_MODELVIEW_MATRIX [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:754:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LIGHT1 [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:1071:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LIGHTING [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:1170:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LIGHTING [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:1490:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LIGHTING [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:1825:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LIGHTING [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:1888:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LINES [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:2269:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_FLAT [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:2430:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_FLAT [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:2499:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_FLAT [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:2643:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_SCISSOR_TEST [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:2893:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LINES [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:3034:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LINE_STRIP [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:3580:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LINES [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:4021:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_ALPHA_TEST [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:4174:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LINES [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:4220:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LIGHTING [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:4449:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_DEPTH_TEST [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:4573:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_BLEND [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:4789:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_1D [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:4926:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_QUADS [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:5080:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_ALPHA_TEST [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:5210:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_1D [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:5356:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_1D [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:5860:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_PROJECTION [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:7834:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_SELECT [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardrawhelipad.c:96:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LIGHTING [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardrawhelipad.c:162:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_QUADS [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardrawhelipad.c:273:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_QUADS [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardrawhelipad.c:375:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_QUADS [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardrawhelipad.c:675:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_QUADS [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardrawhelipad.c:1078:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_FLAT [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardrawhelipad.c:472:11: style: The if condition is the same as the previous if condition [duplicateCondition] searchandrescue_1.7.0/sar/sardrawhelipad.c:371:11: note: First condition searchandrescue_1.7.0/sar/sardrawhelipad.c:472:11: note: Second condition searchandrescue_1.7.0/sar/sardrawhuman.c:56:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int16_t [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardrawhuman.c:899:25: style: Same expression on both sides of '-'. [duplicateExpression] searchandrescue_1.7.0/sar/sardrawhuman.c:901:25: style: Same expression on both sides of '-'. [duplicateExpression] searchandrescue_1.7.0/sar/sardrawhuman.c:335:21: style: Local variable 'lighting' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/sardrawhuman.c:52:17: note: Shadowed declaration searchandrescue_1.7.0/sar/sardrawhuman.c:335:21: note: Shadow variable searchandrescue_1.7.0/sar/sardrawhuman.c:337:13: style: Local variable 'shade_model_mode' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/sardrawhuman.c:53:9: note: Shadowed declaration searchandrescue_1.7.0/sar/sardrawhuman.c:337:13: note: Shadow variable searchandrescue_1.7.0/sar/sardraw.c:3776:14: style: The if condition is the same as the previous if condition [duplicateCondition] searchandrescue_1.7.0/sar/sardraw.c:3613:14: note: First condition searchandrescue_1.7.0/sar/sardraw.c:3776:14: note: Second condition searchandrescue_1.7.0/sar/sardraw.c:3897:14: style: The if condition is the same as the previous if condition [duplicateCondition] searchandrescue_1.7.0/sar/sardraw.c:3776:14: note: First condition searchandrescue_1.7.0/sar/sardraw.c:3897:14: note: Second condition searchandrescue_1.7.0/sar/sardraw.c:2928:26: style: Condition 'tick_inc_degrees>0' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/sardraw.c:2851:21: note: Assignment 'tick_inc_degrees=10', assigned value is 10 searchandrescue_1.7.0/sar/sardraw.c:2928:26: note: Condition 'tick_inc_degrees>0' is always true searchandrescue_1.7.0/sar/sardraw.c:4791:6: style: Condition 'in_map_view' is always false [knownConditionTrueFalse] searchandrescue_1.7.0/sar/sardraw.c:4783:29: note: Assuming that condition '!in_map_view' is not redundant searchandrescue_1.7.0/sar/sardraw.c:4791:6: note: Condition 'in_map_view' is always false searchandrescue_1.7.0/sar/sardraw.c:5379:25: style: Condition 'pos!=NULL' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/sardraw.c:5530:25: style: Condition 'pos!=NULL' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/sardraw.c:7830:3: error: Common realloc mistake: 'gl_select_buf' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/sardrawmessages.c:118:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_BLEND [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardrawmessages.c:308:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_BLEND [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardraw.c:1039:19: style: Variable 'light_pos2.z' is reassigned a value before the old one has been used. [redundantAssignment] searchandrescue_1.7.0/sar/sardraw.c:1038:19: note: light_pos2.z is assigned searchandrescue_1.7.0/sar/sardraw.c:1039:19: note: light_pos2.z is overwritten searchandrescue_1.7.0/sar/sardraw.c:2793:3: style: Variable 'x' is assigned an expression that holds the same value. [redundantAssignment] searchandrescue_1.7.0/sar/sardraw.c:2743:4: note: x is assigned 'offset_x+half_width' here. searchandrescue_1.7.0/sar/sardraw.c:2793:3: note: Variable 'x' is assigned an expression that holds the same value. searchandrescue_1.7.0/sar/sardraw.c:4837:26: style:inconclusive: Function 'SARDrawCloudLayer' argument 2 names different: declaration 'cloud_layer_ptr' definition 'cloud_layer'. [funcArgNamesDifferent] searchandrescue_1.7.0/sar/sardraw.c:138:26: note: Function 'SARDrawCloudLayer' argument 2 names different: declaration 'cloud_layer_ptr' definition 'cloud_layer'. searchandrescue_1.7.0/sar/sardraw.c:4837:26: note: Function 'SARDrawCloudLayer' argument 2 names different: declaration 'cloud_layer_ptr' definition 'cloud_layer'. searchandrescue_1.7.0/sar/sardraw.c:1641:15: style: Local variable 'theta' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/sardraw.c:1612:10: note: Shadowed declaration searchandrescue_1.7.0/sar/sardraw.c:1641:15: note: Shadow variable searchandrescue_1.7.0/sar/sardraw.c:1674:15: style: Local variable 'theta' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/sardraw.c:1612:10: note: Shadowed declaration searchandrescue_1.7.0/sar/sardraw.c:1674:15: note: Shadow variable searchandrescue_1.7.0/sar/sardraw.c:2204:9: style: Local variable 'hl' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/sardraw.c:1858:17: note: Shadowed declaration searchandrescue_1.7.0/sar/sardraw.c:2204:9: note: Shadow variable searchandrescue_1.7.0/sar/sardraw.c:2205:9: style: Local variable 'hw' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/sardraw.c:1858:21: note: Shadowed declaration searchandrescue_1.7.0/sar/sardraw.c:2205:9: note: Shadow variable searchandrescue_1.7.0/sar/sardraw.c:2206:9: style: Local variable 'hh' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/sardraw.c:1858:25: note: Shadowed declaration searchandrescue_1.7.0/sar/sardraw.c:2206:9: note: Shadow variable searchandrescue_1.7.0/sar/sardraw.c:5066:4: style: Local variable 't' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/sardraw.c:5026:26: note: Shadowed declaration searchandrescue_1.7.0/sar/sardraw.c:5066:4: note: Shadow variable searchandrescue_1.7.0/sar/sardraw.c:1157:30: style: Variable 'aircraft' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sardraw.c:1460:21: style: Parameter 'obj_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sardraw.c:1501:27: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sardraw.c:1502:28: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sardraw.c:1561:21: style: Variable 'c' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sardraw.c:1807:23: style: Variable 'offset_pos' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sardraw.c:2823:20: style: Variable 'scene' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sardraw.c:3398:20: style: Variable 'scene' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sardraw.c:3963:42: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sardraw.c:3967:20: style: Variable 'scene' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sardraw.c:4159:49: style: Parameter 'dc' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sardraw.c:4514:30: style: Variable 'obj_fueltank_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sardraw.c:5998:11: style: Variable 'c' can be declared as const array [constVariable] searchandrescue_1.7.0/sar/sardraw.c:8227:29: style: Variable 'intercept_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sardraw.c:8588:22: style: Variable 'bend' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sardraw.c:422:11: style: Variable 'obj_num' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sardraw.c:492:11: style: Variable 'obj_num' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sardraw.c:2784:9: style: Variable 'theta' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sardraw.c:4745:7: style: Variable 'fovx' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sardraw.c:5285:11: style: Variable 'n_theta' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sardraw.c:8709:25: style: Variable 'gl_select_buf_size' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sardrawmessages.c:541:20: style: Variable 'scene' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sardrawmessages.c:597:17: style: Parameter 'dc' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sardrawmessages.c:763:28: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/sardrawmessages.c:774:28: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/sardrawmessages.c:59:20: style: Variable 'mesg_lines_drawn' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sardrawmessages.c:91:10: style: Variable 'y0' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sardrawmessages.c:94:7: style: Variable 'xmax' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sardrawmessages.c:186:19: style: Variable 'mesg_lines_drawn' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sardrawmessages.c:273:11: style: Variable 'offset_x' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sardrawmessages.c:419:11: style: Variable 'offset_x' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sardrawpm_building.c:52:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_FLAT [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardrawpm_controltower.c:55:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_FLAT [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardrawpm_controltower.c:83:24: style: Same expression on both sides of '-'. [duplicateExpression] searchandrescue_1.7.0/sar/sardrawpm_controltower.c:85:24: style: Same expression on both sides of '-'. [duplicateExpression] searchandrescue_1.7.0/sar/sardrawpm_controltower.c:94:24: style: Same expression on both sides of '-'. [duplicateExpression] searchandrescue_1.7.0/sar/sardrawpm_controltower.c:96:24: style: Same expression on both sides of '-'. [duplicateExpression] searchandrescue_1.7.0/sar/sardrawpm_controltower.c:105:24: style: Same expression on both sides of '-'. [duplicateExpression] searchandrescue_1.7.0/sar/sardrawpm_controltower.c:107:24: style: Same expression on both sides of '-'. [duplicateExpression] searchandrescue_1.7.0/sar/sardrawpm_controltower.c:116:24: style: Same expression on both sides of '-'. [duplicateExpression] searchandrescue_1.7.0/sar/sardrawpm_controltower.c:118:24: style: Same expression on both sides of '-'. [duplicateExpression] searchandrescue_1.7.0/sar/sardrawpm_controltower.c:224:24: style: Same expression on both sides of '-'. [duplicateExpression] searchandrescue_1.7.0/sar/sardrawpm_controltower.c:226:24: style: Same expression on both sides of '-'. [duplicateExpression] searchandrescue_1.7.0/sar/sardrawpm_controltower.c:234:24: style: Same expression on both sides of '-'. [duplicateExpression] searchandrescue_1.7.0/sar/sardrawpm_controltower.c:236:24: style: Same expression on both sides of '-'. [duplicateExpression] searchandrescue_1.7.0/sar/sardrawpm_controltower.c:243:24: style: Same expression on both sides of '-'. [duplicateExpression] searchandrescue_1.7.0/sar/sardrawpm_controltower.c:245:24: style: Same expression on both sides of '-'. [duplicateExpression] searchandrescue_1.7.0/sar/sardrawpm_ptt.c:50:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_FLAT [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardrawpm_ptt.c:190:5: style: Variable 'sy' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sardrawpm_radiotower.c:34:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_QUADS [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardrawpm_radiotower.c:90:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_QUADS [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardrawpm_radiotower.c:160:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_FLAT [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardrawpm_tower.c:46:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_FLAT [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardrawselect.c:231:3: error: Common realloc mistake: 'list' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/sardrawselect.c:176:47: style: Parameter 'scene' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sardrawselect.c:177:33: style: Parameter 'total' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sardrawselect.c:183:30: style: Variable 'name' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sardrawselect.c:263:47: style: Parameter 'scene' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sardrawselect.c:264:33: style: Parameter 'total' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sardrawrunway.c:120:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_FLAT [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sardrawrunway.c:970:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_FLAT [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarfio.c:242:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarfio.c:305:41: style: Variable 'p_mission_new_objective' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarfio.c:307:40: style: Variable 'p_mission_begin_at_pos' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarfio.c:317:28: style: Variable 'p_new_fire' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarfio.c:318:29: style: Variable 'p_new_smoke' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarfio.c:324:50: style: Variable 'p_runway_approach_lighting_north' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarfio.c:325:50: style: Variable 'p_runway_approach_lighting_south' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarfio.c:386:30: style: Variable 'p_mission_new_objective' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sarfio.c:393:36: style: Variable 'p_mission_begin_at_pos' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sarfio.c:438:17: style: Variable 'p_new_fire' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sarfio.c:441:18: style: Variable 'p_new_smoke' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sarfio.c:468:39: style: Variable 'p_runway_approach_lighting_north' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sarfio.c:472:46: style: Variable 'p_runway_approach_lighting_south' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sardrawrunway.c:95:13: style: Condition 'cam_pos!=NULL' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/sardrawrunway.c:469:7: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] searchandrescue_1.7.0/sar/sardrawrunway.c:471:7: note: Found duplicate branches for 'if' and 'else'. searchandrescue_1.7.0/sar/sardrawrunway.c:469:7: note: Found duplicate branches for 'if' and 'else'. searchandrescue_1.7.0/sar/sardrawrunway.c:951:28: style: Parameter 'runway' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sardrawrunway.c:110:23: style: Variable 'cam_pos_runway.x' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sarfioopen.c:151:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarfioopen.c:631:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarfioopen.c:1864:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarfioopen.c:2091:19: warning: Either the condition 'val!=NULL' is redundant or there is possible null pointer dereference: val. [nullPointerRedundantCheck] searchandrescue_1.7.0/sar/sarfioopen.c:2104:21: note: Assuming that condition 'val!=NULL' is not redundant searchandrescue_1.7.0/sar/sarfioopen.c:2091:19: note: Null pointer dereference searchandrescue_1.7.0/sar/sarfioopen.c:2093:16: warning: Either the condition 'val!=NULL' is redundant or there is possible null pointer dereference: val. [nullPointerRedundantCheck] searchandrescue_1.7.0/sar/sarfioopen.c:2104:21: note: Assuming that condition 'val!=NULL' is not redundant searchandrescue_1.7.0/sar/sarfioopen.c:2093:16: note: Null pointer dereference searchandrescue_1.7.0/sar/sarfioopen.c:2095:10: warning: Either the condition 'val!=NULL' is redundant or there is possible null pointer dereference: val. [nullPointerRedundantCheck] searchandrescue_1.7.0/sar/sarfioopen.c:2104:21: note: Assuming that condition 'val!=NULL' is not redundant searchandrescue_1.7.0/sar/sarfioopen.c:2095:10: note: Null pointer dereference searchandrescue_1.7.0/sar/sarfioopen.c:1384:44: style: Variable 'pv' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarinstall.c:138:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarinstall.c:85:27: style: Parameter 'fn' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sarinstall.c:120:20: style: Parameter 'fn' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sarinstall.c:121:21: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sarkey.c:1856:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarkey.c:2382:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarkey.c:258:8: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] searchandrescue_1.7.0/sar/sarkey.c:262:3: note: Found duplicate branches for 'if' and 'else'. searchandrescue_1.7.0/sar/sarkey.c:258:8: note: Found duplicate branches for 'if' and 'else'. searchandrescue_1.7.0/sar/sarkey.c:1109:10: style: Local variable 'state' shadows outer argument [shadowArgument] searchandrescue_1.7.0/sar/sarkey.c:1098:31: note: Shadowed declaration searchandrescue_1.7.0/sar/sarkey.c:1109:10: note: Shadow variable searchandrescue_1.7.0/sar/sarkey.c:1156:11: style: Local variable 'state' shadows outer argument [shadowArgument] searchandrescue_1.7.0/sar/sarkey.c:1125:26: note: Shadowed declaration searchandrescue_1.7.0/sar/sarkey.c:1156:11: note: Shadow variable searchandrescue_1.7.0/sar/sarkey.c:1162:11: style: Local variable 'state' shadows outer argument [shadowArgument] searchandrescue_1.7.0/sar/sarkey.c:1125:26: note: Shadowed declaration searchandrescue_1.7.0/sar/sarkey.c:1162:11: note: Shadow variable searchandrescue_1.7.0/sar/sarkey.c:1187:7: style: Local variable 'state' shadows outer argument [shadowArgument] searchandrescue_1.7.0/sar/sarkey.c:1173:27: note: Shadowed declaration searchandrescue_1.7.0/sar/sarkey.c:1187:7: note: Shadow variable searchandrescue_1.7.0/sar/sarkey.c:2043:13: style: Local variable 's' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/sarkey.c:2018:19: note: Shadowed declaration searchandrescue_1.7.0/sar/sarkey.c:2043:13: note: Shadow variable searchandrescue_1.7.0/sar/sarkey.c:158:27: style: Variable 'pos_src' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarkey.c:172:26: style: Variable 'mission' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarkey.c:192:21: style: Variable 'obj_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarkey.c:754:25: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarkey.c:755:24: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarkey.c:869:24: style: Variable 'pos_src' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarkey.c:1043:34: style: Variable 'aircraft' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarkey.c:1176:30: style: Variable 'aircraft' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarkey.c:1220:20: style: Variable 'c' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarkey.c:1246:33: style: Variable 'wdp_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarkey.c:1331:34: style: Variable 'total_intercepts' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarkey.c:1407:30: style: Variable 'aircraft' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarkey.c:1619:34: style: Variable 'aircraft' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarkey.c:1740:28: style: Variable 'hoist' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarkey.c:1837:26: style: Variable 'm' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarkey.c:1912:34: style: Variable 'aircraft' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarkey.c:1955:30: style: Variable 'obj_helipad_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarkey.c:2145:34: style: Variable 'eft_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmemory.c:101:19: style: Parameter 'core_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sarmemory.c:119:32: style: Variable 'horizon' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenubuild.c:1420:10: style: Variable 'map_num' is reassigned a value before the old one has been used. [redundantAssignment] searchandrescue_1.7.0/sar/sarmenubuild.c:1320:10: note: map_num is assigned searchandrescue_1.7.0/sar/sarmenubuild.c:1420:10: note: map_num is overwritten searchandrescue_1.7.0/sar/sarmenubuild.c:2474:10: style: Variable 'btn_num' is reassigned a value before the old one has been used. [redundantAssignment] searchandrescue_1.7.0/sar/sarmenubuild.c:2443:10: note: btn_num is assigned searchandrescue_1.7.0/sar/sarmenubuild.c:2474:10: note: btn_num is overwritten searchandrescue_1.7.0/sar/sarmenubuild.c:2647:10: style: Variable 'btn_num' is reassigned a value before the old one has been used. [redundantAssignment] searchandrescue_1.7.0/sar/sarmenubuild.c:2474:10: note: btn_num is assigned searchandrescue_1.7.0/sar/sarmenubuild.c:2647:10: note: btn_num is overwritten searchandrescue_1.7.0/sar/sarmenubuild.c:335:20: style: Parameter 'unarmed_img' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sarmenubuild.c:336:20: style: Parameter 'armed_img' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sarmenubuild.c:337:20: style: Parameter 'highlighted_img' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sarmenubuild.c:767:24: style: Variable 'list' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenubuild.c:1863:37: style: Variable 'wdp_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenubuild.c:2647:10: style: Variable 'btn_num' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sarmenubuild.c:3011:13: style: Variable 'switch_num' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sarmenucb.c:1089:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarmenucb.c:354:17: style: Condition 'ov_num>=0' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/sarmenucb.c:352:15: note: Assignment 'ov_num=0', assigned value is 0 searchandrescue_1.7.0/sar/sarmenucb.c:354:17: note: Condition 'ov_num>=0' is always true searchandrescue_1.7.0/sar/sarmenucb.c:234:24: style: Variable 'spin_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenucb.c:673:28: style: Variable 'list' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenucb.c:944:28: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sarmenucb.c:1109:24: style: Variable 'list' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenucb.c:1141:32: style: Variable 'mesgbox' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenucb.c:1187:32: style: Variable 'mesgbox' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenucb.c:1262:21: style: Variable 'display' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenucb.c:1265:24: style: Variable 'list' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenucb.c:1267:21: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenucb.c:1311:26: style: Variable 'sw' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenucb.c:1338:24: style: Variable 'spin_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenucb.c:669:6: warning: Char literal compared with pointer 'v'. Did you intend to dereference it? [charLiteralWithCharPtrCompare] searchandrescue_1.7.0/sar/sarmenucb.c:289:11: style: Variable 'spin_ptr' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sarmenumanage.c:83:31: style: Variable 'js1_btn_num_spin' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenumanage.c:96:28: style: Variable 'spin' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenumanage.c:137:28: style: Variable 'spin' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenumanage.c:181:22: style: Variable 'gc' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuop.c:150:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_BUFFER_BIT [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarmenuop.c:331:19: style: Variable 'm' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:601:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_LINE_LOOP [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarmenuoptions.c:2107:28: style: Condition 'v<-1366' is always false [knownConditionTrueFalse] searchandrescue_1.7.0/sar/sarmenuoptions.c:2105:28: note: Assuming that condition 'v<=1280' is not redundant searchandrescue_1.7.0/sar/sarmenuoptions.c:2107:28: note: Condition 'v<-1366' is always false searchandrescue_1.7.0/sar/sarmenuoptions.c:672:6: style: Variable 'y_offset' is assigned an expression that holds the same value. [redundantAssignment] searchandrescue_1.7.0/sar/sarmenuoptions.c:597:15: note: y_offset is assigned 'y_border' here. searchandrescue_1.7.0/sar/sarmenuoptions.c:672:6: note: Variable 'y_offset' is assigned an expression that holds the same value. searchandrescue_1.7.0/sar/sarmenuoptions.c:855:8: style: Variable 'x' is reassigned a value before the old one has been used. [redundantAssignment] searchandrescue_1.7.0/sar/sarmenuoptions.c:847:9: note: x is assigned searchandrescue_1.7.0/sar/sarmenuoptions.c:855:8: note: x is overwritten searchandrescue_1.7.0/sar/sarmenuoptions.c:1146:7: style: Local variable 'i' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/sarmenuoptions.c:932:6: note: Shadowed declaration searchandrescue_1.7.0/sar/sarmenuoptions.c:1146:7: note: Shadow variable searchandrescue_1.7.0/sar/sarmenuoptions.c:1146:10: style: Local variable 'n' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/sarmenuoptions.c:942:10: note: Shadowed declaration searchandrescue_1.7.0/sar/sarmenuoptions.c:1146:10: note: Shadow variable searchandrescue_1.7.0/sar/sarmenuoptions.c:1147:30: style: Local variable 'm' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/sarmenuoptions.c:935:19: note: Shadowed declaration searchandrescue_1.7.0/sar/sarmenuoptions.c:1147:30: note: Shadow variable searchandrescue_1.7.0/sar/sarmenuoptions.c:2648:22: style: Local variable 'opt' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/sarmenuoptions.c:2339:21: note: Shadowed declaration searchandrescue_1.7.0/sar/sarmenuoptions.c:2648:22: note: Shadow variable searchandrescue_1.7.0/sar/sarmenuoptions.c:2722:22: style: Local variable 'opt' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/sarmenuoptions.c:2339:21: note: Shadowed declaration searchandrescue_1.7.0/sar/sarmenuoptions.c:2722:22: note: Shadow variable searchandrescue_1.7.0/sar/sarmenuoptions.c:350:21: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:420:24: style: Parameter 'spin' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:522:28: style: Variable 'mdpy' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:1147:22: style: Variable 'm_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:1238:35: style: Variable 'mesgbox' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:1386:25: style: Variable 'spin' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:1410:27: style: Variable 'sw' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:1422:27: style: Variable 'slider' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:1454:23: style: Variable 'recorder' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:1599:35: style: Variable 'mesgbox' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:1619:19: style: Variable 'm' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:1675:26: style: Variable 'slider' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:2180:8: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:2258:21: style: Variable 'display' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:2259:26: style: Variable 'sw' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:2627:25: style: Variable 'btn_num_spin' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:2649:25: style: Variable 'btn_role_spin' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:2701:25: style: Variable 'btn_num_spin' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:2723:25: style: Variable 'btn_role_spin' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:2966:19: style: Variable 'm' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:2967:21: style: Variable 'display' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmenuoptions.c:2969:26: style: Variable 'slider' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmusic.c:294:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarmusic.c:282:3: warning:inconclusive: The buffer 'tmp_path' may not be null-terminated after the call to strncpy(). [terminateStrncpy] searchandrescue_1.7.0/sar/sarmusic.c:383:7: warning:inconclusive: The buffer 'tmp_path' may not be null-terminated after the call to strncpy(). [terminateStrncpy] searchandrescue_1.7.0/sar/sarmusic.c:42:19: style: Variable 'cur_menu_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmusic.c:141:35: style: Variable 'obj_aircraft_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmusic.c:142:29: style: Variable 'hoist_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmusic.c:259:28: style: Variable 'music_ref_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmusic.c:327:25: style: Variable 'music_ref_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarmusic.c:299:40: style: Variable 'prev_id' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sarmusic.c:299:49: style: Variable 'new_id' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sarmusic.c:306:40: style: Variable 'prev_id' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sarmusic.c:400:37: style: Variable 'prev_id' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sarmusic.c:400:46: style: Variable 'new_id' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sarmusic.c:407:37: style: Variable 'prev_id' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sarscreenshot.c:305:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_BACK [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarscreenshot.c:225:19: style: Parameter 'core_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sarscreenshot.c:298:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/sarscreenshot.c:330:2: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/sarscreenshot.c:323:9: style: Variable 'status' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sarsimend.c:99:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarsimend.c:77:7: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/sarsimend.c:84:7: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/sarsimend.c:94:7: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/sarsimend.c:103:7: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/sarsimbegin.c:438:23: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] searchandrescue_1.7.0/sar/sarsimbegin.c:167:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cb_data [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/sarsimbegin.c:166:12: note: Assuming allocation function fails searchandrescue_1.7.0/sar/sarsimbegin.c:166:12: note: Assignment 'cb_data=(struct sar_progress_cb_struct*)(calloc(1,sizeof(struct sar_progress_cb_struct)))', assigned value is 0 searchandrescue_1.7.0/sar/sarsimbegin.c:167:2: note: Null pointer dereference searchandrescue_1.7.0/sar/sarsimbegin.c:168:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cb_data [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/sarsimbegin.c:166:12: note: Assuming allocation function fails searchandrescue_1.7.0/sar/sarsimbegin.c:166:12: note: Assignment 'cb_data=(struct sar_progress_cb_struct*)(calloc(1,sizeof(struct sar_progress_cb_struct)))', assigned value is 0 searchandrescue_1.7.0/sar/sarsimbegin.c:168:2: note: Null pointer dereference searchandrescue_1.7.0/sar/sarsimbegin.c:169:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cb_data [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/sarsimbegin.c:166:12: note: Assuming allocation function fails searchandrescue_1.7.0/sar/sarsimbegin.c:166:12: note: Assignment 'cb_data=(struct sar_progress_cb_struct*)(calloc(1,sizeof(struct sar_progress_cb_struct)))', assigned value is 0 searchandrescue_1.7.0/sar/sarsimbegin.c:169:2: note: Null pointer dereference searchandrescue_1.7.0/sar/sarsimbegin.c:170:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cb_data [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/sarsimbegin.c:166:12: note: Assuming allocation function fails searchandrescue_1.7.0/sar/sarsimbegin.c:166:12: note: Assignment 'cb_data=(struct sar_progress_cb_struct*)(calloc(1,sizeof(struct sar_progress_cb_struct)))', assigned value is 0 searchandrescue_1.7.0/sar/sarsimbegin.c:170:2: note: Null pointer dereference searchandrescue_1.7.0/sar/sarsimbegin.c:388:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cb_data [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/sarsimbegin.c:387:12: note: Assuming allocation function fails searchandrescue_1.7.0/sar/sarsimbegin.c:387:12: note: Assignment 'cb_data=(struct sar_progress_cb_struct*)(calloc(1,sizeof(struct sar_progress_cb_struct)))', assigned value is 0 searchandrescue_1.7.0/sar/sarsimbegin.c:388:2: note: Null pointer dereference searchandrescue_1.7.0/sar/sarsimbegin.c:389:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cb_data [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/sarsimbegin.c:387:12: note: Assuming allocation function fails searchandrescue_1.7.0/sar/sarsimbegin.c:387:12: note: Assignment 'cb_data=(struct sar_progress_cb_struct*)(calloc(1,sizeof(struct sar_progress_cb_struct)))', assigned value is 0 searchandrescue_1.7.0/sar/sarsimbegin.c:389:2: note: Null pointer dereference searchandrescue_1.7.0/sar/sarsimbegin.c:390:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cb_data [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/sarsimbegin.c:387:12: note: Assuming allocation function fails searchandrescue_1.7.0/sar/sarsimbegin.c:387:12: note: Assignment 'cb_data=(struct sar_progress_cb_struct*)(calloc(1,sizeof(struct sar_progress_cb_struct)))', assigned value is 0 searchandrescue_1.7.0/sar/sarsimbegin.c:390:2: note: Null pointer dereference searchandrescue_1.7.0/sar/sarsimbegin.c:391:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cb_data [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/sarsimbegin.c:387:12: note: Assuming allocation function fails searchandrescue_1.7.0/sar/sarsimbegin.c:387:12: note: Assignment 'cb_data=(struct sar_progress_cb_struct*)(calloc(1,sizeof(struct sar_progress_cb_struct)))', assigned value is 0 searchandrescue_1.7.0/sar/sarsimbegin.c:391:2: note: Null pointer dereference searchandrescue_1.7.0/sar/sarsimbegin.c:438:14: style: Variable 'tm_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarsplash.c:61:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_BUFFER_BIT [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarutils.c:122:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_VERSION [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarutils.c:155:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_VENDOR [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarutils.c:168:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_RENDERER [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarutils.c:195:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_EXTENSIONS [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarutils.c:684:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sarutils.c:683:2: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/sarutils.c:217:41: style: Parameter 'core_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sarutils.c:240:19: style: Variable 'm' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarutils.c:359:17: style: Variable 'name' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sarutils.c:485:43: style: Parameter 'core_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sartime.c:283:13: style: Condition 'sp2!=NULL' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/sartime.c:426:13: style: Condition 'sp2!=NULL' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/sartime.c:324:11: style: Variable 'sp2' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sartime.c:467:11: style: Variable 'sp2' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/scenesound.c:69:20: style: Variable 'scene' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sfm.c:116:18: style: Variable 'm' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:306:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sceneio.c:519:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sfmmodel.c:38:37: style: Parameter 'realm' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sfmmodel.c:38:60: style: Parameter 'model' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sfmmodel.c:199:18: style: Parameter 'realm' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sfmmodel.c:414:18: style: Parameter 'realm' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sceneio.c:146:18: style: Redundant initialization for 'horizon_ptr'. The initialized value is overwritten before it is read. [redundantInitialization] searchandrescue_1.7.0/sar/sceneio.c:117:44: note: horizon_ptr is initialized searchandrescue_1.7.0/sar/sceneio.c:146:18: note: horizon_ptr is overwritten searchandrescue_1.7.0/sar/sceneio.c:232:46: style:inconclusive: Function 'SARSceneLoadLocationsToList' argument 2 names different: declaration 'menu_ptr' definition 'm'. [funcArgNamesDifferent] searchandrescue_1.7.0/sar/sar.h:624:19: note: Function 'SARSceneLoadLocationsToList' argument 2 names different: declaration 'menu_ptr' definition 'm'. searchandrescue_1.7.0/sar/sceneio.c:232:46: note: Function 'SARSceneLoadLocationsToList' argument 2 names different: declaration 'menu_ptr' definition 'm'. searchandrescue_1.7.0/sar/sceneio.c:233:24: style:inconclusive: Function 'SARSceneLoadLocationsToList' argument 3 names different: declaration 'list_ptr' definition 'list'. [funcArgNamesDifferent] searchandrescue_1.7.0/sar/sar.h:625:24: note: Function 'SARSceneLoadLocationsToList' argument 3 names different: declaration 'list_ptr' definition 'list'. searchandrescue_1.7.0/sar/sceneio.c:233:24: note: Function 'SARSceneLoadLocationsToList' argument 3 names different: declaration 'list_ptr' definition 'list'. searchandrescue_1.7.0/sar/sceneio.c:426:19: style:inconclusive: Function 'SARSceneLoadFromFile' argument 1 names different: declaration 'core_struct' definition 'core_ptr'. [funcArgNamesDifferent] searchandrescue_1.7.0/sar/sar.h:637:19: note: Function 'SARSceneLoadFromFile' argument 1 names different: declaration 'core_struct' definition 'core_ptr'. searchandrescue_1.7.0/sar/sceneio.c:426:19: note: Function 'SARSceneLoadFromFile' argument 1 names different: declaration 'core_struct' definition 'core_ptr'. searchandrescue_1.7.0/sar/sceneio.c:271:38: style: Variable 'pv' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:338:23: style: Parameter 'pos' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sceneio.c:338:50: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sceneio.c:443:29: style: Variable 'obj_helipad_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:446:27: style: Variable 'obj_smoke_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:447:26: style: Variable 'obj_fire_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:451:27: style: Variable 'p_version' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:452:24: style: Variable 'p_name' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:453:31: style: Variable 'p_description' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:454:37: style: Variable 'p_player_model_file' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:455:27: style: Variable 'p_weather' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:456:37: style: Variable 'p_register_location' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:457:29: style: Variable 'p_scene_gps' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:458:29: style: Variable 'p_scene_map' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:459:35: style: Variable 'p_scene_elevation' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:460:30: style: Variable 'p_scene_cant' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:461:38: style: Variable 'p_scene_ground_flags' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:463:42: style: Variable 'p_texture_base_directory' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:465:30: style: Variable 'p_new_object' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:472:30: style: Variable 'p_model_file' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:476:36: style: Variable 'p_translate_random' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:478:33: style: Variable 'p_no_depth_test' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:479:34: style: Variable 'p_polygon_offset' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:480:44: style: Variable 'p_contact_bounds_spherical' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:481:46: style: Variable 'p_contact_bounds_cylendrical' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:482:46: style: Variable 'p_contact_bounds_rectangular' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:483:36: style: Variable 'p_ground_elevation' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:484:31: style: Variable 'p_object_name' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:485:42: style: Variable 'p_object_map_description' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:486:24: style: Variable 'p_fuel' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:487:29: style: Variable 'p_hitpoints' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:488:32: style: Variable 'p_engine_state' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:489:30: style: Variable 'p_passengers' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:490:50: style: Variable 'p_runway_applight_n' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:491:50: style: Variable 'p_runway_applight_s' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:492:39: style: Variable 'p_human_message_enter' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:1405:34: style: Variable 'cb' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:1419:34: style: Variable 'cb' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:1435:34: style: Variable 'cb' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sceneio.c:378:18: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/sceneio.c:521:7: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/objio.c:253:10: warning: If memory allocation fails, then there is a possible null pointer dereference: s2 [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/objio.c:252:28: note: Assuming allocation function fails searchandrescue_1.7.0/sar/objio.c:252:14: note: Assignment 's2=(char*)malloc(len+1)', assigned value is 0 searchandrescue_1.7.0/sar/objio.c:253:10: note: Null pointer dereference searchandrescue_1.7.0/sar/objio.c:254:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s2 [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/objio.c:252:28: note: Assuming allocation function fails searchandrescue_1.7.0/sar/objio.c:252:14: note: Assignment 's2=(char*)malloc(len+1)', assigned value is 0 searchandrescue_1.7.0/sar/objio.c:254:3: note: Null pointer dereference searchandrescue_1.7.0/sar/objio.c:277:10: warning: If memory allocation fails, then there is a possible null pointer dereference: s2 [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/objio.c:276:28: note: Assuming allocation function fails searchandrescue_1.7.0/sar/objio.c:276:14: note: Assignment 's2=(char*)malloc(len+1)', assigned value is 0 searchandrescue_1.7.0/sar/objio.c:277:10: note: Null pointer dereference searchandrescue_1.7.0/sar/objio.c:278:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s2 [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/objio.c:276:28: note: Assuming allocation function fails searchandrescue_1.7.0/sar/objio.c:276:14: note: Assignment 's2=(char*)malloc(len+1)', assigned value is 0 searchandrescue_1.7.0/sar/objio.c:278:3: note: Null pointer dereference searchandrescue_1.7.0/sar/objio.c:878:12: warning: Either the condition 'p_translate_random==NULL' is redundant or there is possible null pointer dereference: p_translate_random. [nullPointerRedundantCheck] searchandrescue_1.7.0/sar/objio.c:887:46: note: Assuming that condition 'p_translate_random==NULL' is not redundant searchandrescue_1.7.0/sar/objio.c:878:12: note: Null pointer dereference searchandrescue_1.7.0/sar/objio.c:879:12: warning: Either the condition 'p_translate_random==NULL' is redundant or there is possible null pointer dereference: p_translate_random. [nullPointerRedundantCheck] searchandrescue_1.7.0/sar/objio.c:887:46: note: Assuming that condition 'p_translate_random==NULL' is not redundant searchandrescue_1.7.0/sar/objio.c:879:12: note: Null pointer dereference searchandrescue_1.7.0/sar/objio.c:1013:4: warning: Possible null pointer dereference: s2 [nullPointer] searchandrescue_1.7.0/sar/objio.c:1012:12: note: Assignment 's2=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/objio.c:1013:4: note: Null pointer dereference searchandrescue_1.7.0/sar/objio.c:1013:18: warning: Possible null pointer dereference: s2 [nullPointer] searchandrescue_1.7.0/sar/objio.c:1012:12: note: Assignment 's2=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/objio.c:1013:18: note: Null pointer dereference searchandrescue_1.7.0/sar/objio.c:1019:16: warning: Possible null pointer dereference: s2 [nullPointer] searchandrescue_1.7.0/sar/objio.c:1012:12: note: Assignment 's2=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/objio.c:1019:16: note: Null pointer dereference searchandrescue_1.7.0/sar/objio.c:1033:4: warning: Possible null pointer dereference: s2 [nullPointer] searchandrescue_1.7.0/sar/objio.c:1032:12: note: Assignment 's2=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/objio.c:1033:4: note: Null pointer dereference searchandrescue_1.7.0/sar/objio.c:1033:18: warning: Possible null pointer dereference: s2 [nullPointer] searchandrescue_1.7.0/sar/objio.c:1032:12: note: Assignment 's2=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/objio.c:1033:18: note: Null pointer dereference searchandrescue_1.7.0/sar/objio.c:1039:16: warning: Possible null pointer dereference: s2 [nullPointer] searchandrescue_1.7.0/sar/objio.c:1032:12: note: Assignment 's2=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/objio.c:1039:16: note: Null pointer dereference searchandrescue_1.7.0/sar/objio.c:4734:7: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/objio.c:4733:7: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/objio.c:4734:7: note: Null pointer dereference searchandrescue_1.7.0/sar/objio.c:4734:20: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/objio.c:4733:7: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/objio.c:4734:20: note: Null pointer dereference searchandrescue_1.7.0/sar/objio.c:4738:13: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/objio.c:4733:7: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/objio.c:4738:13: note: Null pointer dereference searchandrescue_1.7.0/sar/objio.c:4639:19: style:inconclusive: Function 'SARObjLoadFromFile' argument 1 names different: declaration 'core_struct' definition 'core_ptr'. [funcArgNamesDifferent] searchandrescue_1.7.0/sar/objio.h:61:19: note: Function 'SARObjLoadFromFile' argument 1 names different: declaration 'core_struct' definition 'core_ptr'. searchandrescue_1.7.0/sar/objio.c:4639:19: note: Function 'SARObjLoadFromFile' argument 1 names different: declaration 'core_struct' definition 'core_ptr'. searchandrescue_1.7.0/sar/objio.c:4792:25: style: Local variable 'dir' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/objio.c:4690:24: note: Shadowed declaration searchandrescue_1.7.0/sar/objio.c:4792:25: note: Shadow variable searchandrescue_1.7.0/sar/objio.c:604:30: style: Variable 'aircraft' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objio.c:605:28: style: Variable 'ground' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objio.c:807:57: style: Parameter 'p_translate' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/objio.c:874:36: style: Parameter 'p_translate_random' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/objio.c:922:27: style: Variable 'sndobj' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objio.c:1092:32: style: Parameter 'p_texture_load' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/objio.c:1178:21: style: Variable 'ref_obj_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objio.c:1583:29: style: Parameter 'p_new_human' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/objio.c:1609:28: style: Parameter 'p_new_fire' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/objio.c:1662:21: style: Variable 'obj_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objio.c:1737:30: style: Variable 'mp_heightfield_load' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objio.c:1878:46: style: Variable 'n_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objio.c:2807:30: style: Variable 'cb' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objio.c:2834:30: style: Variable 'cb' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objio.c:2874:30: style: Variable 'cb' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objio.c:4642:25: style: Variable 'total' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objio.c:4654:21: style: Variable 'display' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objio.c:4658:28: style: Variable 'ground' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objio.c:4690:24: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objio.c:4691:23: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/objio.c:1012:12: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/objio.c:1032:12: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/objio.c:4733:7: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/objio.c:5072:21: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/objio.c:5079:21: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/objio.c:5086:21: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/objio.c:5093:21: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/objio.c:5100:21: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/objio.c:5309:25: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/objio.c:5317:21: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/objio.c:668:11: style: Variable 'warnings' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:680:10: style: Variable 'ground' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:979:6: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:1060:22: style: Variable 'sndobj' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:2166:25: style: Variable 'need_end_primitive' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:2253:14: style: Variable 'mp_comment' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:2402:23: style: Variable 'mp_heightfield_load' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:2431:18: style: Variable 'blend_state' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:2619:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:2659:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:2687:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:2708:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:2772:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:2810:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:2841:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:2887:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:2933:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:2978:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3021:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3044:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3086:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3126:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3160:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3196:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3210:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3238:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3273:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3303:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3353:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3475:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3492:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3516:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3537:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3805:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3839:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3873:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:3977:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:4264:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:4373:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:4458:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:4592:7: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:4874:14: style: Variable 'mh_comment' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:4879:10: style: Variable 'mh_tbd' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:4909:17: style: Variable 'mh_color_spec' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/objio.c:5421:24: style: Variable 'mp_heightfield_load' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/simcb.c:1266:20: style: Local variable 'r' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/simcb.c:1145:8: note: Shadowed declaration searchandrescue_1.7.0/sar/simcb.c:1266:20: note: Shadow variable searchandrescue_1.7.0/sar/simcb.c:77:21: style: Variable 'obj_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simcb.c:78:18: style: Variable 'realm' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simcb.c:120:35: style: Parameter 'model' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simcb.c:127:18: style: Variable 'realm' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simcb.c:179:35: style: Parameter 'model' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simcb.c:183:18: style: Variable 'realm' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simcb.c:184:19: style: Variable 'core_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simcb.c:216:6: style: Variable 'ear_pos' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simcb.c:219:29: style: Variable 'cb' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simcb.c:223:18: style: Variable 'realm' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simcb.c:685:33: style: Variable 'eft_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simcb.c:806:22: style: Variable 'explosion_obj_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simcb.c:867:27: style: Variable 'lgear_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simcb.c:986:18: style: Variable 'realm' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simcb.c:1124:8: style: Parameter 'realm_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simcb.c:1124:35: style: Parameter 'model' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simcb.c:1124:58: style: Parameter 'obstruction' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simcb.c:1125:8: style: Parameter 'client_data' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simcb.c:1149:23: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simcb.c:1149:29: style: Variable 'ear_pos' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simcb.c:1150:24: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simcb.c:1204:27: style: Variable 'pos2' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simcb.c:1204:34: style: Variable 'vel' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simcb.c:683:28: style: Variable 'explosion_obj_num' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/simcb.c:785:22: style: Variable 'explosion_obj_ptr' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/simcb.c:805:25: style: Variable 'explosion_obj_num' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/simcb.c:831:22: style: Variable 'explosion_obj_ptr' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/simmanage.c:610:20: style: Local variable 'c' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/simmanage.c:144:20: note: Shadowed declaration searchandrescue_1.7.0/sar/simmanage.c:610:20: note: Shadow variable searchandrescue_1.7.0/sar/simmanage.c:84:28: style: Variable 'last_pt' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simmanage.c:646:7: style: Variable 'obj_total' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simmanage.c:818:15: style: Variable 'obj_ptr' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/simop.c:143:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int16_t [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/simop.c:2143:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int16_t [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/simsurface.c:192:20: warning: Identical condition 'obj_ground_ptr==NULL', second condition is always false [identicalConditionAfterEarlyExit] searchandrescue_1.7.0/sar/simsurface.c:189:20: note: If condition 'obj_ground_ptr==NULL' is true, the function will return/exit searchandrescue_1.7.0/sar/simsurface.c:192:20: note: Testing identical condition 'obj_ground_ptr==NULL' searchandrescue_1.7.0/sar/simutils.c:590:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int16_t [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/simutils.c:2254:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/simutils.c:1752:39: style: Condition 'cur_passengers_leave_pending!=NULL' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/simutils.c:1753:25: style: Condition 'passengers_max!=NULL' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/simutils.c:1759:24: style: Condition 'passengers_max!=NULL' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/simutils.c:1764:35: style: Condition 'cur_passengers_leave_pending!=NULL' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/simutils.c:1775:35: style: Condition 'cur_passengers_drop_pending!=NULL' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/simutils.c:1776:22: style: Condition 'passengers_max!=NULL' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/simutils.c:1782:21: style: Condition 'passengers_max!=NULL' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/simutils.c:1787:38: style: Condition 'cur_passengers_drop_pending!=NULL' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/simutils.c:2622:19: warning: Either the condition 'scene==NULL' is redundant or there is possible null pointer dereference: scene. [nullPointerRedundantCheck] searchandrescue_1.7.0/sar/simutils.c:2624:12: note: Assuming that condition 'scene==NULL' is not redundant searchandrescue_1.7.0/sar/simutils.c:2622:19: note: Null pointer dereference searchandrescue_1.7.0/sar/simutils.c:219:18: style: Parameter 'fdm' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simutils.c:224:30: style: Variable 'obj_aircraft_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simutils.c:353:23: style: Parameter 'offset_pos' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simutils.c:354:24: style: Parameter 'offset_dir' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simutils.c:358:29: style: Variable 'ref_pos' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simutils.c:359:30: style: Variable 'ref_dir' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simutils.c:448:20: style: Parameter 'scene' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simutils.c:449:23: style: Parameter 'new_pos' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simutils.c:450:24: style: Parameter 'new_dir' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simutils.c:1616:20: style: Parameter 'scene' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simutils.c:1663:20: style: Parameter 'scene' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simutils.c:1723:20: style: Parameter 'scene' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simutils.c:1807:20: style: Parameter 'scene' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simutils.c:1856:20: style: Parameter 'scene' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simutils.c:1861:23: style: Variable 'fuel_max' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simutils.c:2057:28: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simutils.c:2189:48: style: Parameter 'obj_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simutils.c:2344:30: style: Variable 'obj_aircraft_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simutils.c:2451:30: style: Variable 'obj_aircraft_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simutils.c:2620:27: style: Variable 'obj_human_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simutils.c:2784:27: style: Variable 'obj_human_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simutils.c:2902:24: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simutils.c:2903:7: style: Variable 'vel' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simutils.c:2072:22: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/simutils.c:593:12: style: Variable 'prev_pos' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/simutils.c:613:12: style: Variable 'prev_pos' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/simutils.c:676:12: style: Variable 'prev_pos' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/simutils.c:2687:21: style: Variable 'passenger_obj_num' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/smoke.c:205:27: style: Variable 'smoke' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/smoke.c:172:36: style: Variable 'total_units' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/simop.c:872:30: style:inconclusive: Function 'SARSimSetAircraftCrashed' argument 5 names different: declaration 'obj_aircraft_ptr' definition 'aircraft'. [funcArgNamesDifferent] searchandrescue_1.7.0/sar/simop.h:43:30: note: Function 'SARSimSetAircraftCrashed' argument 5 names different: declaration 'obj_aircraft_ptr' definition 'aircraft'. searchandrescue_1.7.0/sar/simop.c:872:30: note: Function 'SARSimSetAircraftCrashed' argument 5 names different: declaration 'obj_aircraft_ptr' definition 'aircraft'. searchandrescue_1.7.0/sar/simop.c:122:20: style: Parameter 'scene' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:122:46: style: Parameter 'obj_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:123:23: style: Parameter 'lgear_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:154:20: style: Parameter 'scene' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:154:46: style: Parameter 'obj_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:155:30: style: Parameter 'aircraft' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:172:20: style: Parameter 'scene' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:172:46: style: Parameter 'obj_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:205:20: style: Parameter 'scene' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:205:46: style: Parameter 'obj_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:206:30: style: Parameter 'aircraft' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:252:20: style: Parameter 'scene' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:319:48: style: Parameter 'obj_ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:380:37: style: Variable 'closest_obj_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:381:29: style: Variable 'obj_helipad_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:655:47: style: Parameter 'scene' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:665:26: style: Variable 'fire' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:666:31: style: Variable 'explosion' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:667:36: style: Variable 'spray' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:870:33: style: Parameter 'total' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:876:24: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:1017:24: style: Variable 'hoist_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:1018:29: style: Variable 'cb' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:1281:43: style: Parameter 'scene' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:1398:24: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:1404:27: style: Variable 'human' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:1431:22: style: Variable 'ref_obj_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:1550:22: style: Variable 'tar_obj_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:1606:31: style: Variable 't' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:1659:31: style: Variable 't' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:1948:29: style: Variable 'vel' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:1952:23: style: Variable 'gear' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:2329:24: style: Variable 'door_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:2422:28: style: Variable 'ref_pos' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:2423:29: style: Variable 'ref_dir' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:2493:29: style: Variable 'offset' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:2691:15: style: Parameter 'gc' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:2692:9: style: Parameter 'h_con_coeff' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:2693:9: style: Parameter 'p_con_coeff' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:2694:9: style: Parameter 'b_con_coeff' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:2695:9: style: Parameter 'elevator_trim' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:2696:9: style: Parameter 'throttle_coeff' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/simop.c:2911:23: style: Variable 'door_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:3434:8: style: Variable 'hoist_offset' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:3652:25: style: Variable 'tar_pos' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:3680:25: style: Variable 'tar_pos' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:3717:25: style: Variable 'tar_pos' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/simop.c:1197:31: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] searchandrescue_1.7.0/sar/sound.c:196:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sound.c:864:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] searchandrescue_1.7.0/sar/sound.c:421:23: style: Parameter 'recorder' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sound.c:505:23: style: Parameter 'recorder' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sound.c:618:23: style: Parameter 'recorder' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sound.c:706:23: style: Parameter 'recorder' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sound.c:706:50: style: Parameter 'snd_play' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sound.c:773:23: style: Parameter 'recorder' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sound.c:774:19: style: Parameter 'snd_play' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sound.c:825:23: style: Parameter 'recorder' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sound.c:887:19: style: Variable 'snd_play' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sound.c:972:46: style: Parameter 'recorder' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sound.c:1024:23: style: Parameter 'recorder' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sound.c:1067:23: style: Parameter 'recorder' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sound.c:513:13: style: Variable 'repeat' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sound.c:887:19: style: Variable 'snd_play' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/stategl.c:297:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/stategl.c:540:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/stategl.c:905:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_ALPHA_TEST [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/stategl.c:296:6: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/stategl.c:539:6: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/strexp.cpp:64:3: error: Common realloc mistake: 'ret' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/strexp.cpp:125:3: error: Common realloc mistake: 'ret' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/strexp.cpp:64:9: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/strexp.cpp:65:18: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/strexp.cpp:125:9: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/strexp.cpp:126:18: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/strexp.cpp:36:6: style: The scope of the variable 'len' can be reduced. [variableScope] searchandrescue_1.7.0/sar/strexp.cpp:101:6: style: The scope of the variable 'len' can be reduced. [variableScope] searchandrescue_1.7.0/sar/strexp.cpp:44:14: style: Variable 'tail' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/text3d.c:81:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable n0_x3d [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/text3d.c:239:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COMPILE [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/textinput.c:597:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_ALPHA_TEST [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/sfmsimforce.c:62:21: style: Variable 'vel' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sfmsimforce.c:302:19: style: Parameter 'realm' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sfmsimforce.c:401:21: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sfmsimforce.c:1477:18: style: Parameter 'realm' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sfmsimforce.c:1477:41: style: Parameter 'model' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/sfmsimforce.c:1503:22: style: Variable 'acr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/sfmsimforce.c:711:18: style: Variable 'prev_angle' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sfmsimforce.c:1137:12: style: Variable 'cos_bank' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sfmsimforce.c:1243:7: style: Variable 'dic' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/sfmsimforce.c:1250:7: style: Variable 'djc' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/textinput.c:101:11: style: Condition 'i>=0' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/textinput.c:69:15: note: Assignment 'max=5', assigned value is 5 searchandrescue_1.7.0/sar/textinput.c:71:17: note: Assuming condition is false searchandrescue_1.7.0/sar/textinput.c:74:22: note: Assuming that condition 'p->total_historytotal_history-1', assigned value is greater than 3 searchandrescue_1.7.0/sar/textinput.c:101:11: note: Condition 'i>=0' is always true searchandrescue_1.7.0/sar/textinput.c:316:9: style: Condition 'i>=0' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/textinput.c:315:11: note: Assignment 'i=((p->last_history_num+1)>0)?(p->last_history_num+1):0', assigned value is greater than -1 searchandrescue_1.7.0/sar/textinput.c:316:9: note: Condition 'i>=0' is always true searchandrescue_1.7.0/sar/textinput.c:450:21: style: The comparison 'events_handled == 0' is always true. [knownConditionTrueFalse] searchandrescue_1.7.0/sar/textinput.c:440:23: note: 'events_handled' is assigned value '0' here. searchandrescue_1.7.0/sar/textinput.c:450:21: note: The comparison 'events_handled == 0' is always true. searchandrescue_1.7.0/sar/textinput.c:279:21: style: Variable 'display' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/textinput.c:442:21: style: Variable 'display' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/textinput.c:486:49: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/textinput.c:309:20: style: Variable 'events_handled' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/textinput.c:325:20: style: Variable 'events_handled' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/textinput.c:341:20: style: Variable 'events_handled' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/textinput.c:349:20: style: Variable 'events_handled' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/textinput.c:357:20: style: Variable 'events_handled' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/textinput.c:363:20: style: Variable 'events_handled' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/textinput.c:369:20: style: Variable 'events_handled' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/textinput.c:375:20: style: Variable 'events_handled' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/textinput.c:384:20: style: Variable 'events_handled' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/textinput.c:418:17: style: Variable 'events_handled' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/textinput.c:427:20: style: Variable 'events_handled' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/textinput.c:470:21: style: Variable 'events_handled' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/string.cpp:1466:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] searchandrescue_1.7.0/sar/string.cpp:1506:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] searchandrescue_1.7.0/sar/string.cpp:974:12: style: The statement 'if (*s!='\0') *s='\0'' is logically equivalent to '*s='\0''. [duplicateConditionalAssign] searchandrescue_1.7.0/sar/string.cpp:975:6: note: Assignment '*s='\0'' searchandrescue_1.7.0/sar/string.cpp:974:12: note: Condition '*s!='\0'' is redundant searchandrescue_1.7.0/sar/string.cpp:860:4: warning: Either the condition 'strv==NULL' is redundant or there is possible null pointer dereference: strv. [nullPointerRedundantCheck] searchandrescue_1.7.0/sar/string.cpp:858:14: note: Assuming that condition 'strv==NULL' is not redundant searchandrescue_1.7.0/sar/string.cpp:860:4: note: Null pointer dereference searchandrescue_1.7.0/sar/string.cpp:254:11: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/string.cpp:271:14: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/string.cpp:350:6: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/string.cpp:396:6: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/string.cpp:451:10: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/string.cpp:457:10: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/string.cpp:545:12: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/string.cpp:795:13: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/string.cpp:807:13: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/string.cpp:857:13: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/string.cpp:910:8: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/string.cpp:911:8: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/string.cpp:140:6: style: The scope of the variable 'n' can be reduced. [variableScope] searchandrescue_1.7.0/sar/string.cpp:226:24: style: The scope of the variable 'strptr2' can be reduced. [variableScope] searchandrescue_1.7.0/sar/string.cpp:575:6: style: The scope of the variable 'i' can be reduced. [variableScope] searchandrescue_1.7.0/sar/string.cpp:334:8: style: Variable 'ps' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/string.cpp:334:18: style: Variable 'pend' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/string.cpp:381:8: style: Variable 'ps' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/string.cpp:381:18: style: Variable 'pend' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/string.cpp:423:8: style: Variable 'ps' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/string.cpp:423:18: style: Variable 'pend' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/string.cpp:735:8: style: Variable 's2' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/string.cpp:909:8: style: Variable 'x' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/string.cpp:909:12: style: Variable 'y' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/string.cpp:983:5: style: Variable 's2' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/string.cpp:1455:13: style: Variable 'tm_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/string.cpp:1498:13: style: Variable 'tm_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/string.cpp:704:11: style: Variable 'flag_len' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/texturelistio.c:96:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/tgadither.cpp:101:15: style: Variable 'dither_blue' can be declared as const array [constVariable] searchandrescue_1.7.0/sar/texturelistio.c:99:7: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/texturelistio.c:98:7: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/texturelistio.c:99:7: note: Null pointer dereference searchandrescue_1.7.0/sar/texturelistio.c:99:20: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/texturelistio.c:98:7: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/texturelistio.c:99:20: note: Null pointer dereference searchandrescue_1.7.0/sar/texturelistio.c:103:13: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/texturelistio.c:98:7: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/texturelistio.c:103:13: note: Null pointer dereference searchandrescue_1.7.0/sar/texturelistio.c:98:7: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/v3dgl.c:1029:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_POINTS [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/tga.cpp:161:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/v3dgl.c:1321:4: warning:inconclusive: The buffer 'tmp_path' may not be null-terminated after the call to strncpy(). [terminateStrncpy] searchandrescue_1.7.0/sar/v3dgl.c:1328:4: warning:inconclusive: The buffer 'tmp_path' may not be null-terminated after the call to strncpy(). [terminateStrncpy] searchandrescue_1.7.0/sar/v3dgl.c:1336:4: warning:inconclusive: The buffer 'tmp_path' may not be null-terminated after the call to strncpy(). [terminateStrncpy] searchandrescue_1.7.0/sar/v3dgl.c:184:26: style: Variable 'h_texture_load' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dgl.c:428:27: style: Parameter 'glinterp' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/v3dgl.c:428:55: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/v3dgl.c:503:27: style: Parameter 'glinterp' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/v3dgl.c:503:55: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/v3dgl.c:504:20: style: Parameter 'tc' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/v3dgl.c:536:35: style: Variable 'orient_xy' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dgl.c:537:35: style: Variable 'orient_yz' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dgl.c:538:35: style: Variable 'orient_xz' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dgl.c:618:27: style: Parameter 'glinterp' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/v3dgl.c:618:55: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/v3dgl.c:709:23: style: Variable 'p_translate' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dgl.c:710:25: style: Variable 'p_untranslate' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dgl.c:711:20: style: Variable 'p_rotate' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dgl.c:712:22: style: Variable 'p_unrotate' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dgl.c:723:19: style: Variable 'p_color' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dgl.c:724:28: style: Variable 'p_texture_select' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dgl.c:725:31: style: Variable 'p_texture_orient_xy' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dgl.c:726:31: style: Variable 'p_texture_orient_yz' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dgl.c:727:31: style: Variable 'p_texture_orient_xz' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dgl.c:728:25: style: Variable 'p_texture_off' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dgl.c:729:30: style: Variable 'p_heightfield_load' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dgl.c:1400:14: style: Variable 'status' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/v3dgl.c:1421:23: style: Variable 'last_begin_ptype' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/v3dgl.c:1440:23: style: Variable 'blending_enabled' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/v3dhf.c:206:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/v3dhf.c:105:13: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/v3dhf.c:145:25: style: Parameter 'hfopt' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/v3dhf.c:316:14: style: Variable 'img_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dhf.c:317:6: style: Variable 'img_ptr_end' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dhf.c:661:10: style: Parameter 'hf_data' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/v3dmh.c:94:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/v3dmh.c:103:8: warning: If memory allocation fails, then there is a possible null pointer dereference: (int*)p [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/v3dmh.c:102:24: note: Assuming allocation function fails searchandrescue_1.7.0/sar/v3dmh.c:102:10: note: Assignment 'p=(void*)calloc(1,size)', assigned value is 0 searchandrescue_1.7.0/sar/v3dmh.c:103:8: note: Null pointer dereference searchandrescue_1.7.0/sar/v3dmh.c:261:41: style: Parameter 'total' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/v3dmodel.c:257:56: style: Parameter 'total' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/v3dmp.c:198:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/v3dmp.c:489:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/v3dmp.c:208:8: warning: If memory allocation fails, then there is a possible null pointer dereference: (int*)p [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/v3dmp.c:207:24: note: Assuming allocation function fails searchandrescue_1.7.0/sar/v3dmp.c:207:10: note: Assignment 'p=(void*)calloc(1,size)', assigned value is 0 searchandrescue_1.7.0/sar/v3dmp.c:208:8: note: Null pointer dereference searchandrescue_1.7.0/sar/v3dmp.c:924:41: style: Parameter 'total' can be declared as pointer to const [constParameterPointer] searchandrescue_1.7.0/sar/v3dtex.c:238:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_UNSIGNED_BYTE [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/v3dtex.c:279:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_1D [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/v3dtex.c:373:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/v3dtex.c:805:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/v3dtex.c:1193:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/v3dtex.c:1366:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/v3dtex.c:360:27: style: Variable 'loaded_data_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dtex.c:362:19: style: Variable 'ptrend8' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dtex.c:363:21: style: Variable 'ptrend32' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dtex.c:788:27: style: Variable 'loaded_data_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dtex.c:794:19: style: Variable 'ptrend8' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dtex.c:795:21: style: Variable 'ptrend32' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dtex.c:1355:27: style: Variable 'loaded_data_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dtex.c:1449:5: warning: Size of pointer 'data' used instead of size of its data. [pointerSize] searchandrescue_1.7.0/sar/tga.cpp:730:6: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/tga.cpp:753:6: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/tga.cpp:1330:6: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/tga.cpp:1352:6: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/tga.cpp:1912:6: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/tga.cpp:1941:6: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/tga.cpp:2045:6: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/tga.cpp:2078:6: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/tga.cpp:2645:6: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] searchandrescue_1.7.0/sar/tga.cpp:350:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/tga.cpp:348:30: note: Assuming allocation function fails searchandrescue_1.7.0/sar/tga.cpp:348:16: note: Assignment 's=(char*)malloc(id_field_len+1)', assigned value is 0 searchandrescue_1.7.0/sar/tga.cpp:350:3: note: Null pointer dereference searchandrescue_1.7.0/sar/tga.cpp:593:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/tga.cpp:591:30: note: Assuming allocation function fails searchandrescue_1.7.0/sar/tga.cpp:591:16: note: Assignment 's=(char*)malloc(id_field_len+1)', assigned value is 0 searchandrescue_1.7.0/sar/tga.cpp:593:3: note: Null pointer dereference searchandrescue_1.7.0/sar/tga.cpp:595:6: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] searchandrescue_1.7.0/sar/tga.cpp:591:30: note: Assuming allocation function fails searchandrescue_1.7.0/sar/tga.cpp:591:16: note: Assignment 's=(char*)malloc(id_field_len+1)', assigned value is 0 searchandrescue_1.7.0/sar/tga.cpp:595:6: note: Null pointer dereference searchandrescue_1.7.0/sar/tga.cpp:242:26: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:286:33: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:292:28: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:304:12: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:310:12: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:316:16: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:322:17: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:348:16: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:488:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:528:33: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:534:28: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:546:12: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:552:12: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:558:16: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:564:17: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:591:16: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:787:13: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:828:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:878:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:934:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:990:19: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:1065:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:1115:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:1171:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:1227:19: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:1385:13: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:1419:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:1469:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:1526:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:1582:19: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:1658:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:1708:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:1764:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:1820:19: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:1972:13: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:2140:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:2188:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:2242:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:2296:19: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:2377:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:2425:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:2479:20: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:2533:19: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:2694:13: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:2736:13: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:2998:28: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:3056:29: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:3117:29: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:3175:29: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:3237:29: style: C-style pointer casting [cstyleCast] searchandrescue_1.7.0/sar/tga.cpp:197:6: style: The scope of the variable 'pos' can be reduced. [variableScope] searchandrescue_1.7.0/sar/tga.cpp:201:7: style: The scope of the variable 's' can be reduced. [variableScope] searchandrescue_1.7.0/sar/tga.cpp:477:6: style: The scope of the variable 'pos' can be reduced. [variableScope] searchandrescue_1.7.0/sar/tga.cpp:2627:7: style: The scope of the variable 's' can be reduced. [variableScope] searchandrescue_1.7.0/sar/tga.cpp:2756:58: style: The scope of the variable 'src_end' can be reduced. [variableScope] searchandrescue_1.7.0/sar/tga.cpp:2757:27: style: The scope of the variable 'tar_ptr' can be reduced. [variableScope] searchandrescue_1.7.0/sar/tga.cpp:2811:58: style: The scope of the variable 'src_end' can be reduced. [variableScope] searchandrescue_1.7.0/sar/tga.cpp:2812:27: style: The scope of the variable 'tar_ptr' can be reduced. [variableScope] searchandrescue_1.7.0/sar/tga.cpp:2716:52: style: Checking if unsigned expression 'fread(src_data,sizeof(unsigned char),src_len,fp)' is less than zero. [unsignedLessThanZero] searchandrescue_1.7.0/sar/tga.cpp:231:11: style: Local variable 'buf' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/tga.cpp:198:12: note: Shadowed declaration searchandrescue_1.7.0/sar/tga.cpp:231:11: note: Shadow variable searchandrescue_1.7.0/sar/tga.cpp:348:12: style: Local variable 's' shadows outer variable [shadowVariable] searchandrescue_1.7.0/sar/tga.cpp:201:7: note: Shadowed declaration searchandrescue_1.7.0/sar/tga.cpp:348:12: note: Shadow variable searchandrescue_1.7.0/sar/tga.cpp:198:28: style: Variable 'buf_end' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/tga.cpp:630:16: style: Variable 'data_colormap' is assigned a value that is never used. [unreadVariable] searchandrescue_1.7.0/sar/weather.c:241:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/weather.c:122:6: style: Variable 'cloud_layer_src_ptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/x3d.c:252:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COMPILE [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/x3d.c:345:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_POINTS [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/weatherio.c:66:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/x3d.c:459:7: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] searchandrescue_1.7.0/sar/x3d.c:461:7: note: Found duplicate branches for 'if' and 'else'. searchandrescue_1.7.0/sar/x3d.c:459:7: note: Found duplicate branches for 'if' and 'else'. searchandrescue_1.7.0/sar/x3d.c:277:17: style: Variable 's_end' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/weatherio.c:69:14: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/weatherio.c:68:21: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/weatherio.c:69:14: note: Null pointer dereference searchandrescue_1.7.0/sar/weatherio.c:69:27: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/weatherio.c:68:21: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/weatherio.c:69:27: note: Null pointer dereference searchandrescue_1.7.0/sar/weatherio.c:73:27: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/weatherio.c:68:21: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/weatherio.c:73:27: note: Null pointer dereference searchandrescue_1.7.0/sar/weatherio.c:68:21: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] searchandrescue_1.7.0/sar/v3dfio.c:228:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/v3dfio.c:566:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/v3dfio.c:3168:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] searchandrescue_1.7.0/sar/v3dfio.c:112:3: error: Common realloc mistake: 'line_o' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/v3dfio.c:149:6: error: Common realloc mistake: 'line_o' nulled but not freed upon failure [memleakOnRealloc] searchandrescue_1.7.0/sar/v3dfio.c:1738:19: style: Variable 'mp_untranslate' is reassigned a value before the old one has been used. [redundantAssignment] searchandrescue_1.7.0/sar/v3dfio.c:1731:19: note: mp_untranslate is assigned searchandrescue_1.7.0/sar/v3dfio.c:1738:19: note: mp_untranslate is overwritten searchandrescue_1.7.0/sar/v3dfio.c:1800:16: style: Variable 'mp_unrotate' is reassigned a value before the old one has been used. [redundantAssignment] searchandrescue_1.7.0/sar/v3dfio.c:1793:16: note: mp_unrotate is assigned searchandrescue_1.7.0/sar/v3dfio.c:1800:16: note: mp_unrotate is overwritten searchandrescue_1.7.0/sar/v3dfio.c:353:8: style: Variable 'strptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:464:25: style: Variable 'mp_untranslate' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:466:22: style: Variable 'mp_unrotate' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:482:25: style: Variable 'mp_texture_off' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:1093:13: style: Variable 'strptr3' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3110:8: style: Variable 'strptr' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3116:21: style: Variable 'mh_comment' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3117:21: style: Variable 'mh_version' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3118:21: style: Variable 'mh_creator' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3119:20: style: Variable 'mh_author' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3120:40: style: Variable 'mh_hbd' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3121:36: style: Variable 'mh_tbd' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3122:26: style: Variable 'mh_texture_load' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3123:33: style: Variable 'mh_color_spec' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3125:20: style: Variable 'v' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3127:21: style: Variable 'mp_comment' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3128:23: style: Variable 'mp_translate' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3129:25: style: Variable 'mp_untranslate' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3130:20: style: Variable 'mp_rotate' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3131:22: style: Variable 'mp_unrotate' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3142:19: style: Variable 'mp_color' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3144:31: style: Variable 'mp_texture_xy' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3145:31: style: Variable 'mp_texture_yz' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3146:31: style: Variable 'mp_texture_xz' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3147:25: style: Variable 'mp_texture_off' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:3148:30: style: Variable 'mp_hfl' can be declared as pointer to const [constVariablePointer] searchandrescue_1.7.0/sar/v3dfio.c:796:29: error: Uninitialized variable: value [legacyUninitvar] diff: head searchandrescue_1.7.0/sar/humanio.c:68:27: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/humanio.c:67:21: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/humanio.c:68:27: note: Null pointer dereference head searchandrescue_1.7.0/sar/musiclistio.c:143:27: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/musiclistio.c:142:21: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/musiclistio.c:143:27: note: Null pointer dereference head searchandrescue_1.7.0/sar/objio.c:1013:18: warning: Possible null pointer dereference: s2 [nullPointer] searchandrescue_1.7.0/sar/objio.c:1012:12: note: Assignment 's2=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/objio.c:1013:18: note: Null pointer dereference head searchandrescue_1.7.0/sar/objio.c:1033:18: warning: Possible null pointer dereference: s2 [nullPointer] searchandrescue_1.7.0/sar/objio.c:1032:12: note: Assignment 's2=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/objio.c:1033:18: note: Null pointer dereference head searchandrescue_1.7.0/sar/objio.c:4734:20: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/objio.c:4733:7: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/objio.c:4734:20: note: Null pointer dereference head searchandrescue_1.7.0/sar/textinput.c:101:11: style: Condition 'i>=0' is always true [knownConditionTrueFalse] searchandrescue_1.7.0/sar/textinput.c:69:15: note: Assignment 'max=5', assigned value is 5 searchandrescue_1.7.0/sar/textinput.c:71:17: note: Assuming condition is false searchandrescue_1.7.0/sar/textinput.c:74:22: note: Assuming that condition 'p->total_historytotal_history-1', assigned value is greater than 3 searchandrescue_1.7.0/sar/textinput.c:101:11: note: Condition 'i>=0' is always true head searchandrescue_1.7.0/sar/texturelistio.c:99:20: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/texturelistio.c:98:7: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/texturelistio.c:99:20: note: Null pointer dereference head searchandrescue_1.7.0/sar/weatherio.c:69:27: warning: Possible null pointer dereference: s [nullPointer] searchandrescue_1.7.0/sar/weatherio.c:68:21: note: Assignment 's=(("no such file")!=NULL)?strdup("no such file"):NULL', assigned value is 0 searchandrescue_1.7.0/sar/weatherio.c:69:27: note: Null pointer dereference DONE