2025-07-13 03:04 ftp://ftp.de.debian.org/debian/pool/main/c/concalc/concalc_0.9.3.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-63-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 843f95e (2025-07-12 14:37:40 +0200) count: 282 250 elapsed-time: 21.7 21.8 head-timing-info: old-timing-info: head results: concalc-0.9.3/src/global.h:362:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable horzObj [valueFlowBailoutIncompleteVar] concalc-0.9.3/src/global.h:367:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable horzObj [valueFlowBailoutIncompleteVar] concalc-0.9.3/src/global.h:410:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable parent [valueFlowBailoutIncompleteVar] concalc-0.9.3/src/global.h:434:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable horzObj [valueFlowBailoutIncompleteVar] concalc-0.9.3/src/concalc.cpp:74:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] concalc-0.9.3/src/concalc.cpp:678:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] concalc-0.9.3/src/concalc.cpp:490:15: style: Array index 'c' is used before limits check. [arrayIndexThenCheck] concalc-0.9.3/src/concalc.cpp:572:18: style: Array index 'c' is used before limits check. [arrayIndexThenCheck] concalc-0.9.3/src/global.h:314:3: warning: Member variable 'Math::vertObj' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.3/src/global.h:314:3: warning: Member variable 'Math::horzObj' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.3/src/global.h:314:3: warning: Member variable 'Math::number' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.3/src/global.h:314:3: warning: Member variable 'Math::var' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.3/src/global.h:314:3: warning: Member variable 'Math::operation' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.3/src/list.h:71:2: warning: Member variable 'List < Math * >::actualItem' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.3/src/list.h:71:2: warning: Member variable 'List < Math * >::firstItem' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.3/src/list.h:71:2: warning: Member variable 'List < char * >::actualItem' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.3/src/list.h:71:2: warning: Member variable 'List < char * >::firstItem' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.3/src/list.h:71:2: warning: Member variable 'List < int >::actualItem' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.3/src/list.h:71:2: warning: Member variable 'List < int >::firstItem' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.3/src/global.h:334:7: style:inconclusive: Technically the member function 'Math::getOperation' can be const. [functionConst] concalc-0.9.3/src/list.h:104:6: style:inconclusive: Technically the member function 'List < Math * >::GetLen' can be const. [functionConst] concalc-0.9.3/src/list.h:104:6: style:inconclusive: Technically the member function 'List < char * >::GetLen' can be const. [functionConst] concalc-0.9.3/src/list.h:104:6: style:inconclusive: Technically the member function 'List < int >::GetLen' can be const. [functionConst] concalc-0.9.3/src/list.h:45:3: warning: Class 'List < Math * >' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] concalc-0.9.3/src/list.h:45:3: warning: Class 'List < Math * >' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] concalc-0.9.3/src/list.h:45:3: warning: Class 'List < char * >' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] concalc-0.9.3/src/list.h:45:3: warning: Class 'List < char * >' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] concalc-0.9.3/src/list.h:45:3: warning: Class 'List < int >' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] concalc-0.9.3/src/list.h:45:3: warning: Class 'List < int >' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] concalc-0.9.3/src/global.h:356:14: style: Virtual function 'split' is called from constructor 'Calculate(Math*par,char*line,int start,int end,Preferences*pr,double*va)' at line 363. Dynamic binding is not used. [virtualCallInConstructor] concalc-0.9.3/src/global.h:363:4: note: Calling split concalc-0.9.3/src/global.h:356:14: note: split is a virtual function concalc-0.9.3/src/global.h:356:14: style: Virtual function 'split' is called from constructor 'Calculate(Math*par,char*line,Preferences*pr,double*va)' at line 374. Dynamic binding is not used. [virtualCallInConstructor] concalc-0.9.3/src/global.h:374:9: note: Calling split concalc-0.9.3/src/global.h:356:14: note: split is a virtual function concalc-0.9.3/src/global.h:487:15: style: Virtual function 'split' is called from constructor 'Script(Script*par,char*line,Preferences*pr,double*va,ThreadSync*evrec)' at line 421. Dynamic binding is not used. [virtualCallInConstructor] concalc-0.9.3/src/global.h:421:6: note: Calling split concalc-0.9.3/src/global.h:487:15: note: split is a virtual function concalc-0.9.3/src/global.h:486:15: style: Virtual function 'parse' is called from constructor 'Script(Script*par,char*line,Preferences*pr,double*va,ThreadSync*evrec)' at line 425. Dynamic binding is not used. [virtualCallInConstructor] concalc-0.9.3/src/global.h:425:15: note: Calling parse concalc-0.9.3/src/global.h:486:15: note: parse is a virtual function concalc-0.9.3/src/global.h:487:15: style: Virtual function 'split' is called from constructor 'Script(Script*par,char*line,int start,int end,Preferences*pr,double*va,ThreadSync*evrec)' at line 443. Dynamic binding is not used. [virtualCallInConstructor] concalc-0.9.3/src/global.h:443:6: note: Calling split concalc-0.9.3/src/global.h:487:15: note: split is a virtual function concalc-0.9.3/src/global.h:486:15: style: Virtual function 'parse' is called from constructor 'Script(Script*par,char*line,int start,int end,Preferences*pr,double*va,ThreadSync*evrec)' at line 447. Dynamic binding is not used. [virtualCallInConstructor] concalc-0.9.3/src/global.h:447:15: note: Calling parse concalc-0.9.3/src/global.h:486:15: note: parse is a virtual function concalc-0.9.3/src/global.h:356:14: style: The function 'split' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.3/src/global.h:347:15: note: Virtual function in base class concalc-0.9.3/src/global.h:356:14: note: Function in derived class concalc-0.9.3/src/global.h:376:4: style: The destructor '~Calculate' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.3/src/global.h:320:12: note: Virtual destructor in base class concalc-0.9.3/src/global.h:376:4: note: Destructor in derived class concalc-0.9.3/src/global.h:391:18: style: The function 'calc' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.3/src/global.h:339:18: note: Virtual function in base class concalc-0.9.3/src/global.h:391:18: note: Function in derived class concalc-0.9.3/src/global.h:392:18: style: The function 'calcVertObj' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.3/src/global.h:340:18: note: Virtual function in base class concalc-0.9.3/src/global.h:392:18: note: Function in derived class concalc-0.9.3/src/global.h:393:18: style: The function 'calcHorzObj' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.3/src/global.h:341:18: note: Virtual function in base class concalc-0.9.3/src/global.h:393:18: note: Function in derived class concalc-0.9.3/src/global.h:453:4: style: The destructor '~Script' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.3/src/global.h:320:12: note: Virtual destructor in base class concalc-0.9.3/src/global.h:453:4: note: Destructor in derived class concalc-0.9.3/src/global.h:486:15: style: The function 'parse' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.3/src/global.h:348:15: note: Virtual function in base class concalc-0.9.3/src/global.h:486:15: note: Function in derived class concalc-0.9.3/src/global.h:487:15: style: The function 'split' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.3/src/global.h:347:15: note: Virtual function in base class concalc-0.9.3/src/global.h:487:15: note: Function in derived class concalc-0.9.3/src/global.h:490:18: style: The function 'calc' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.3/src/global.h:339:18: note: Virtual function in base class concalc-0.9.3/src/global.h:490:18: note: Function in derived class concalc-0.9.3/src/global.h:491:18: style: The function 'calcVertObj' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.3/src/global.h:340:18: note: Virtual function in base class concalc-0.9.3/src/global.h:491:18: note: Function in derived class concalc-0.9.3/src/global.h:492:18: style: The function 'calcHorzObj' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.3/src/global.h:341:18: note: Virtual function in base class concalc-0.9.3/src/global.h:492:18: note: Function in derived class concalc-0.9.3/src/global.h:494:18: style: The function 'exec' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.3/src/global.h:343:18: note: Virtual function in base class concalc-0.9.3/src/global.h:494:18: note: Function in derived class concalc-0.9.3/src/global.h:495:18: style: The function 'execVertObj' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.3/src/global.h:344:18: note: Virtual function in base class concalc-0.9.3/src/global.h:495:18: note: Function in derived class concalc-0.9.3/src/global.h:496:18: style: The function 'execHorzObj' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.3/src/global.h:345:18: note: Virtual function in base class concalc-0.9.3/src/global.h:496:18: note: Function in derived class concalc-0.9.3/src/concalc.cpp:159:11: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] concalc-0.9.3/src/concalc.cpp:155:16: note: outer condition: cc concalc-0.9.3/src/global.h:445:17: style: Condition 'line!=NULL' is always true [knownConditionTrueFalse] concalc-0.9.3/src/concalc.cpp:496:5: warning: %LX in format string (no. 1) requires 'unsigned long long' but the argument type is 'signed long long'. [invalidPrintfArgType_uint] concalc-0.9.3/src/concalc.cpp:171:6: error: Memory leak: scriptData.vars [memleak] concalc-0.9.3/src/concalc.cpp:283:12: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] concalc-0.9.3/src/concalc.cpp:282:24: note: Assuming allocation function fails concalc-0.9.3/src/concalc.cpp:282:11: note: Assignment 'input=(char*)std::malloc(std::strlen(argv[c])+1)', assigned value is 0 concalc-0.9.3/src/concalc.cpp:283:12: note: Null pointer dereference concalc-0.9.3/src/concalc.cpp:288:12: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] concalc-0.9.3/src/concalc.cpp:287:24: note: Assuming allocation function fails concalc-0.9.3/src/concalc.cpp:287:11: note: Assignment 'input=(char*)std::malloc(std::strlen(argv[c])+std::strlen(temp)+1)', assigned value is 0 concalc-0.9.3/src/concalc.cpp:288:12: note: Null pointer dereference concalc-0.9.3/src/concalc.cpp:303:18: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] concalc-0.9.3/src/concalc.cpp:302:22: note: Assuming allocation function fails concalc-0.9.3/src/concalc.cpp:302:9: note: Assignment 'input=(char*)std::malloc(1026)', assigned value is 0 concalc-0.9.3/src/concalc.cpp:303:18: note: Null pointer dereference concalc-0.9.3/src/concalc.cpp:330:12: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] concalc-0.9.3/src/concalc.cpp:329:23: note: Assuming allocation function fails concalc-0.9.3/src/concalc.cpp:329:10: note: Assignment 'input=(char*)std::malloc(fileinfo.st_size+2)', assigned value is 0 concalc-0.9.3/src/concalc.cpp:330:12: note: Null pointer dereference concalc-0.9.3/src/list.h:193:13: error: Null pointer dereference: (Math**)NULL [nullPointer] concalc-0.9.3/src/list.h:195:13: error: Null pointer dereference: (Math**)NULL [nullPointer] concalc-0.9.3/src/list.h:193:13: error: Null pointer dereference: (char**)NULL [nullPointer] concalc-0.9.3/src/list.h:195:13: error: Null pointer dereference: (char**)NULL [nullPointer] concalc-0.9.3/src/list.h:193:13: error: Null pointer dereference: (int*)NULL [nullPointer] concalc-0.9.3/src/list.h:195:13: error: Null pointer dereference: (int*)NULL [nullPointer] concalc-0.9.3/src/global.h:360:87: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.h:365:68: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.h:408:82: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.h:432:100: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/concalc.cpp:70:22: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/concalc.cpp:282:11: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/concalc.cpp:287:11: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/concalc.cpp:302:9: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/concalc.cpp:329:10: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/list.h:193:13: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/list.h:195:13: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/concalc.cpp:96:6: style: The scope of the variable 'fileLength' can be reduced. [variableScope] concalc-0.9.3/src/concalc.cpp:100:7: style: The scope of the variable 'var' can be reduced. [variableScope] concalc-0.9.3/src/concalc.cpp:561:13: style: The scope of the variable 'pos2' can be reduced. [variableScope] concalc-0.9.3/src/concalc.cpp:563:8: style: The scope of the variable 'line' can be reduced. [variableScope] concalc-0.9.3/src/concalc.cpp:566:6: style: The scope of the variable 'lineLen' can be reduced. [variableScope] concalc-0.9.3/src/concalc.cpp:625:10: style: The scope of the variable 'subFileContent' can be reduced. [variableScope] concalc-0.9.3/src/list.h:77:17: style: The scope of the variable 'KillItem' can be reduced. [variableScope] concalc-0.9.3/src/concalc.cpp:330:48: style: Checking if unsigned expression 'std::fread(input,fileinfo.st_size,1,scriptFile)' is less than zero. [unsignedLessThanZero] concalc-0.9.3/src/concalc.cpp:307:8: style: Local variable 'path' shadows outer variable [shadowVariable] concalc-0.9.3/src/concalc.cpp:88:7: note: Shadowed declaration concalc-0.9.3/src/concalc.cpp:307:8: note: Shadow variable concalc-0.9.3/src/concalc.cpp:581:11: style: Local variable 'c' shadows outer variable [shadowVariable] concalc-0.9.3/src/concalc.cpp:569:6: note: Shadowed declaration concalc-0.9.3/src/concalc.cpp:581:11: note: Shadow variable concalc-0.9.3/src/concalc.cpp:558:25: style: Parameter 'code' can be declared as pointer to const [constParameterPointer] concalc-0.9.3/src/concalc.cpp:657:7: style: Variable 'filePath' can be declared as pointer to const [constVariablePointer] concalc-0.9.3/src/global.h:343:55: error: Uninitialized variables: r.ival, r.bval, r.cval [uninitvar] concalc-0.9.3/src/global.h:344:62: error: Uninitialized variables: r.ival, r.bval, r.cval [uninitvar] concalc-0.9.3/src/global.h:345:62: error: Uninitialized variables: r.ival, r.bval, r.cval [uninitvar] concalc-0.9.3/src/global.h:343:55: error: Uninitialized struct member: r.ival [uninitStructMember] concalc-0.9.3/src/global.h:343:55: error: Uninitialized struct member: r.bval [uninitStructMember] concalc-0.9.3/src/global.h:343:55: error: Uninitialized struct member: r.cval [uninitStructMember] concalc-0.9.3/src/global.h:344:62: error: Uninitialized struct member: r.ival [uninitStructMember] concalc-0.9.3/src/global.h:344:62: error: Uninitialized struct member: r.bval [uninitStructMember] concalc-0.9.3/src/global.h:344:62: error: Uninitialized struct member: r.cval [uninitStructMember] concalc-0.9.3/src/global.h:345:62: error: Uninitialized struct member: r.ival [uninitStructMember] concalc-0.9.3/src/global.h:345:62: error: Uninitialized struct member: r.bval [uninitStructMember] concalc-0.9.3/src/global.h:345:62: error: Uninitialized struct member: r.cval [uninitStructMember] concalc-0.9.3/src/concalc.cpp:373:12: error: Memory is allocated but not initialized: printString [uninitdata] concalc-0.9.3/src/concalc.cpp:112:14: style: Variable 'varEnd' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/concalc.cpp:561:17: style: Variable 'pos2' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:1732:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HUGE_VAL [valueFlowBailoutIncompleteVar] concalc-0.9.3/src/global.cpp:1786:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HUGE_VAL [valueFlowBailoutIncompleteVar] concalc-0.9.3/src/global.cpp:2106:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HUGE_VAL [valueFlowBailoutIncompleteVar] concalc-0.9.3/src/global.cpp:2270:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HUGE_VAL [valueFlowBailoutIncompleteVar] concalc-0.9.3/src/global.cpp:2277:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HUGE_VAL [valueFlowBailoutIncompleteVar] concalc-0.9.3/src/global.cpp:3884:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HUGE_VAL [valueFlowBailoutIncompleteVar] concalc-0.9.3/src/global.cpp:3890:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HUGE_VAL [valueFlowBailoutIncompleteVar] concalc-0.9.3/src/global.cpp:3958:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] concalc-0.9.3/src/global.cpp:6963:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] concalc-0.9.3/src/global.cpp:7118:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] concalc-0.9.3/src/global.cpp:661:14: style: Array index 'endPos' is used before limits check. [arrayIndexThenCheck] concalc-0.9.3/src/global.cpp:759:14: style: Array index 'endPos' is used before limits check. [arrayIndexThenCheck] concalc-0.9.3/src/global.cpp:3917:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] concalc-0.9.3/src/global.cpp:6734:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] concalc-0.9.3/src/global.cpp:4512:7: error: Using 'memcpy' on struct that contains a 'std::complex'. [memsetClass] concalc-0.9.3/src/global.cpp:4513:7: error: Using 'memcpy' on struct that contains a 'std::complex'. [memsetClass] concalc-0.9.3/src/global.cpp:998:38: style: Condition 'c>0' is always true [knownConditionTrueFalse] concalc-0.9.3/src/global.cpp:990:51: note: Assuming that condition 'c>0' is not redundant concalc-0.9.3/src/global.cpp:998:38: note: Condition 'c>0' is always true concalc-0.9.3/src/global.cpp:998:54: style: Condition 'code[c-1]==(char)0xc2' is always false [knownConditionTrueFalse] concalc-0.9.3/src/global.cpp:990:66: note: Assuming that condition 'code[c-1]>='0'' is not redundant concalc-0.9.3/src/global.cpp:998:54: note: Condition 'code[c-1]==(char)0xc2' is always false concalc-0.9.3/src/global.cpp:7061:3: error: Memory leak: subMatrix [memleak] concalc-0.9.3/src/global.cpp:670:15: warning: If memory allocation fails, then there is a possible null pointer dereference: configString [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:667:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:667:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:670:15: note: Null pointer dereference concalc-0.9.3/src/global.cpp:774:10: warning: If memory allocation fails, then there is a possible null pointer dereference: configString [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:774:10: note: Null pointer dereference concalc-0.9.3/src/global.cpp:774:39: warning: If memory allocation fails, then there is a possible null pointer dereference: configString [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:774:39: note: Null pointer dereference concalc-0.9.3/src/global.cpp:774:92: warning: If memory allocation fails, then there is a possible null pointer dereference: configString [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:774:92: note: Null pointer dereference concalc-0.9.3/src/global.cpp:778:11: warning: If memory allocation fails, then there is a possible null pointer dereference: macro [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:777:23: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:777:10: note: Assignment 'macro=(char*)std::malloc(endPos-startPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:778:11: note: Null pointer dereference concalc-0.9.3/src/global.cpp:778:17: warning: If memory allocation fails, then there is a possible null pointer dereference: configString [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:778:17: note: Null pointer dereference concalc-0.9.3/src/global.cpp:779:4: warning: If memory allocation fails, then there is a possible null pointer dereference: macro [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:777:23: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:777:10: note: Assignment 'macro=(char*)std::malloc(endPos-startPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:779:4: note: Null pointer dereference concalc-0.9.3/src/global.cpp:780:20: warning: If memory allocation fails, then there is a possible null pointer dereference: macro [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:777:23: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:777:10: note: Assignment 'macro=(char*)std::malloc(endPos-startPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:780:20: note: Null pointer dereference concalc-0.9.3/src/global.cpp:783:11: warning: If memory allocation fails, then there is a possible null pointer dereference: configString [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:783:11: note: Null pointer dereference concalc-0.9.3/src/global.cpp:783:42: warning: If memory allocation fails, then there is a possible null pointer dereference: configString [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:783:42: note: Null pointer dereference concalc-0.9.3/src/global.cpp:783:100: warning: If memory allocation fails, then there is a possible null pointer dereference: configString [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:783:100: note: Null pointer dereference concalc-0.9.3/src/global.cpp:785:18: warning: If memory allocation fails, then there is a possible null pointer dereference: configString [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:785:18: note: Null pointer dereference concalc-0.9.3/src/global.cpp:791:11: warning: If memory allocation fails, then there is a possible null pointer dereference: replacement [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:790:29: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:790:16: note: Assignment 'replacement=(char*)std::malloc(endPos-startPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:791:11: note: Null pointer dereference concalc-0.9.3/src/global.cpp:792:4: warning: If memory allocation fails, then there is a possible null pointer dereference: replacement [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:790:29: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:790:16: note: Assignment 'replacement=(char*)std::malloc(endPos-startPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:792:4: note: Null pointer dereference concalc-0.9.3/src/global.cpp:793:26: warning: If memory allocation fails, then there is a possible null pointer dereference: replacement [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:790:29: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:790:16: note: Assignment 'replacement=(char*)std::malloc(endPos-startPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:793:26: note: Null pointer dereference concalc-0.9.3/src/global.cpp:796:10: warning: If memory allocation fails, then there is a possible null pointer dereference: macro [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:777:23: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:777:10: note: Assignment 'macro=(char*)std::malloc(endPos-startPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:787:13: note: Assuming condition is false concalc-0.9.3/src/global.cpp:796:10: note: Null pointer dereference concalc-0.9.3/src/global.cpp:1229:9: warning: If memory allocation fails, then there is a possible null pointer dereference: dest [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:766:12: note: Calling function 'strcopy', 1st argument 'configString' value is 0 concalc-0.9.3/src/global.cpp:1229:9: note: Null pointer dereference concalc-0.9.3/src/global.cpp:1230:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dest [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:766:12: note: Calling function 'strcopy', 1st argument 'configString' value is 0 concalc-0.9.3/src/global.cpp:1230:2: note: Null pointer dereference concalc-0.9.3/src/global.cpp:1242:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:1241:25: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:1241:12: note: Assignment 'tmp=(char*)std::malloc(stlen-index-len+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:1242:10: note: Null pointer dereference concalc-0.9.3/src/global.cpp:1244:28: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:1241:25: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:1241:12: note: Assignment 'tmp=(char*)std::malloc(stlen-index-len+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:1244:28: note: Null pointer dereference concalc-0.9.3/src/global.cpp:1261:9: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:1260:24: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:1260:11: note: Assignment 'tmp=(char*)std::malloc(stlen-index+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:1261:9: note: Null pointer dereference concalc-0.9.3/src/global.cpp:1263:27: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:1260:24: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:1260:11: note: Assignment 'tmp=(char*)std::malloc(stlen-index+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:1263:27: note: Null pointer dereference concalc-0.9.3/src/global.cpp:7012:6: warning: If memory allocation fails, then there is a possible null pointer dereference: matrix [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:7054:42: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:7054:22: note: Assignment 'result=(long double*)std::malloc(size*size*sizeof(long double))', assigned value is 0 concalc-0.9.3/src/global.cpp:7059:26: note: Calling function 'gauss', 3rd argument 'result' value is 0 concalc-0.9.3/src/global.cpp:7012:6: note: Null pointer dereference concalc-0.9.3/src/global.cpp:7040:9: warning: If memory allocation fails, then there is a possible null pointer dereference: matrix [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:7054:42: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:7054:22: note: Assignment 'result=(long double*)std::malloc(size*size*sizeof(long double))', assigned value is 0 concalc-0.9.3/src/global.cpp:7059:26: note: Calling function 'gauss', 3rd argument 'result' value is 0 concalc-0.9.3/src/global.cpp:7040:9: note: Null pointer dereference concalc-0.9.3/src/global.cpp:7040:29: warning: If memory allocation fails, then there is a possible null pointer dereference: matrix [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:7054:42: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:7054:22: note: Assignment 'result=(long double*)std::malloc(size*size*sizeof(long double))', assigned value is 0 concalc-0.9.3/src/global.cpp:7059:26: note: Calling function 'gauss', 3rd argument 'result' value is 0 concalc-0.9.3/src/global.cpp:7040:29: note: Null pointer dereference concalc-0.9.3/src/global.cpp:7057:9: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:7054:42: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:7054:22: note: Assignment 'result=(long double*)std::malloc(size*size*sizeof(long double))', assigned value is 0 concalc-0.9.3/src/global.cpp:7057:9: note: Null pointer dereference concalc-0.9.3/src/global.cpp:667:17: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:765:17: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:777:10: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:790:16: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:1241:12: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:1243:6: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:1260:11: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:1262:5: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:3787:14: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:4033:29: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:4052:20: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:4123:30: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:4135:30: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:4213:29: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:4299:30: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:4311:30: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:4528:42: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:4531:42: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:4556:47: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:4557:51: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:4820:29: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:4886:29: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:5084:20: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:5088:20: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:5098:19: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:5105:20: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:5109:20: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:5116:19: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:5122:19: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:5128:21: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:5132:21: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:5142:19: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:5152:22: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:5156:22: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:5168:19: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:5745:13: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:6187:19: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:6191:19: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:6427:11: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:6447:13: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:6501:29: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:6616:18: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:6621:18: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:6641:27: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:6642:15: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:6665:18: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:6670:18: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:6691:27: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:6692:15: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:6742:15: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:6904:15: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:6912:15: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:6960:26: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:6976:26: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:7054:22: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:7055:25: style: C-style pointer casting [cstyleCast] concalc-0.9.3/src/global.cpp:3873:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] concalc-0.9.3/src/global.cpp:4670:8: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] concalc-0.9.3/src/global.cpp:4672:7: note: Found duplicate branches for 'if' and 'else'. concalc-0.9.3/src/global.cpp:4670:8: note: Found duplicate branches for 'if' and 'else'. concalc-0.9.3/src/global.cpp:4704:8: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] concalc-0.9.3/src/global.cpp:4706:7: note: Found duplicate branches for 'if' and 'else'. concalc-0.9.3/src/global.cpp:4704:8: note: Found duplicate branches for 'if' and 'else'. concalc-0.9.3/src/global.cpp:1766:4: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] concalc-0.9.3/src/global.cpp:4101:8: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] concalc-0.9.3/src/global.cpp:4277:8: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] concalc-0.9.3/src/global.cpp:735:60: style: The scope of the variable 'replacementLen' can be reduced. [variableScope] concalc-0.9.3/src/global.cpp:2212:23: style: The scope of the variable 'oldfail' can be reduced. [variableScope] concalc-0.9.3/src/global.cpp:2215:8: style: The scope of the variable 'steps' can be reduced. [variableScope] concalc-0.9.3/src/global.cpp:2283:7: style: The scope of the variable 'init' can be reduced. [variableScope] concalc-0.9.3/src/global.cpp:4153:10: style: The scope of the variable 'effIndex1' can be reduced. [variableScope] concalc-0.9.3/src/global.cpp:4153:22: style: The scope of the variable 'effIndex2' can be reduced. [variableScope] concalc-0.9.3/src/global.cpp:4153:34: style: The scope of the variable 'effIndexD' can be reduced. [variableScope] concalc-0.9.3/src/global.cpp:4329:10: style: The scope of the variable 'effIndex1' can be reduced. [variableScope] concalc-0.9.3/src/global.cpp:4329:22: style: The scope of the variable 'effIndex2' can be reduced. [variableScope] concalc-0.9.3/src/global.cpp:4329:34: style: The scope of the variable 'effIndexD' can be reduced. [variableScope] concalc-0.9.3/src/global.cpp:6359:24: style: The scope of the variable 'oldfail' can be reduced. [variableScope] concalc-0.9.3/src/global.cpp:6362:7: style: The scope of the variable 'steps' can be reduced. [variableScope] concalc-0.9.3/src/global.cpp:6576:9: style: The scope of the variable 'f' can be reduced. [variableScope] concalc-0.9.3/src/global.cpp:6635:9: style: The scope of the variable 'f' can be reduced. [variableScope] concalc-0.9.3/src/global.cpp:6685:9: style: The scope of the variable 'f' can be reduced. [variableScope] concalc-0.9.3/src/global.cpp:6977:7: style: The scope of the variable 'pos' can be reduced. [variableScope] concalc-0.9.3/src/global.cpp:7028:17: style: The scope of the variable 'tmp' can be reduced. [variableScope] concalc-0.9.3/src/global.cpp:7065:44: style: The scope of the variable 'effIndex' can be reduced. [variableScope] concalc-0.9.3/src/global.cpp:727:17: style: Checking if unsigned expression 'std::strlen(code)' is less than zero. [unsignedLessThanZero] concalc-0.9.3/src/global.cpp:845:17: style: Checking if unsigned expression 'strlen(code)' is less than zero. [unsignedLessThanZero] concalc-0.9.3/src/global.cpp:859:9: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] concalc-0.9.3/src/global.cpp:931:10: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] concalc-0.9.3/src/global.cpp:1011:9: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] concalc-0.9.3/src/global.cpp:6147:41: style: Checking if unsigned expression 'strlen(n.cval)' is less than zero. [unsignedLessThanZero] concalc-0.9.3/src/global.cpp:1807:17: style: Local variable 'pos' shadows outer variable [shadowVariable] concalc-0.9.3/src/global.cpp:1784:6: note: Shadowed declaration concalc-0.9.3/src/global.cpp:1807:17: note: Shadow variable concalc-0.9.3/src/global.cpp:3309:7: style: Local variable 'pos1' shadows outer variable [shadowVariable] concalc-0.9.3/src/global.cpp:2325:6: note: Shadowed declaration concalc-0.9.3/src/global.cpp:3309:7: note: Shadow variable concalc-0.9.3/src/global.cpp:3334:7: style: Local variable 'pos1' shadows outer variable [shadowVariable] concalc-0.9.3/src/global.cpp:2325:6: note: Shadowed declaration concalc-0.9.3/src/global.cpp:3334:7: note: Shadow variable concalc-0.9.3/src/global.cpp:6311:11: style: Local variable 'value' shadows outer variable [shadowVariable] concalc-0.9.3/src/global.h:398:9: note: Shadowed declaration concalc-0.9.3/src/global.cpp:6311:11: note: Shadow variable concalc-0.9.3/src/global.cpp:852:41: style: Parameter 'pref' can be declared as pointer to const [constParameterPointer] concalc-0.9.3/src/global.cpp:1066:23: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] concalc-0.9.3/src/global.cpp:1066:36: style: Parameter 'searchString' can be declared as pointer to const [constParameterPointer] concalc-0.9.3/src/global.cpp:1137:26: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] concalc-0.9.3/src/global.cpp:1137:39: style: Parameter 'searchString' can be declared as pointer to const [constParameterPointer] concalc-0.9.3/src/global.cpp:1205:18: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] concalc-0.9.3/src/global.cpp:1215:18: style: Parameter 'dest' can be declared as pointer to const [constParameterPointer] concalc-0.9.3/src/global.cpp:1227:28: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] concalc-0.9.3/src/global.cpp:1234:49: style: Parameter 'rep' can be declared as pointer to const [constParameterPointer] concalc-0.9.3/src/global.cpp:1256:40: style: Parameter 'ins' can be declared as pointer to const [constParameterPointer] concalc-0.9.3/src/global.cpp:1270:29: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] concalc-0.9.3/src/global.cpp:1270:45: style: Parameter 'pref' can be declared as pointer to const [constParameterPointer] concalc-0.9.3/src/global.cpp:4513:52: error: Uninitialized variables: &nullNum.ival, &nullNum.bval [uninitvar] concalc-0.9.3/src/global.cpp:2218:13: error: Memory is allocated but not initialized: line2 [uninitdata] concalc-0.9.3/src/global.cpp:3818:7: error: Uninitialized variable: err [legacyUninitvar] concalc-0.9.3/src/global.cpp:6366:12: error: Memory is allocated but not initialized: line2 [uninitdata] concalc-0.9.3/src/global.cpp:590:9: style: Variable 'end' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:634:20: style: Variable 'startPos' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:634:29: style: Variable 'endPos' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:735:20: style: Variable 'startPos' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:735:29: style: Variable 'endPos' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:735:57: style: Variable 'macroLen' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:735:74: style: Variable 'replacementLen' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:736:25: style: Variable 'mQuote' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:793:18: style: Variable 'replacementLen' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:2212:30: style: Variable 'oldfail' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:2283:11: style: Variable 'init' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:2289:7: style: Variable 'init' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:2479:11: style: Variable 'pos2' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:2562:11: style: Variable 'pos2' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:4153:19: style: Variable 'effIndex1' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:4153:31: style: Variable 'effIndex2' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:4153:43: style: Variable 'effIndexD' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:4329:19: style: Variable 'effIndex1' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:4329:31: style: Variable 'effIndex2' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:4329:43: style: Variable 'effIndexD' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:4924:18: style: Variable 'effIndex1' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:4924:30: style: Variable 'effIndex2' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:4924:42: style: Variable 'effIndexD' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:5767:16: style: Variable 'effIndex' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:6359:31: style: Variable 'oldfail' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:6545:15: style: Variable 'pathlen' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:6545:8: style: Variable 'pathlen' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:6977:10: style: Variable 'pos' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:7070:12: style: Variable 'effIndex' is assigned a value that is never used. [unreadVariable] concalc-0.9.3/src/global.cpp:1229:9: warning: If memory allocation fails, then there is a possible null pointer dereference: dest [ctunullpointerOutOfMemory] concalc-0.9.3/src/global.cpp:667:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:667:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:668:11: note: Calling function strcopy, 1st argument is null concalc-0.9.3/src/global.cpp:1229:9: note: Dereferencing argument dest that is null diff: head concalc-0.9.3/src/concalc.cpp:283:12: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] concalc-0.9.3/src/concalc.cpp:282:24: note: Assuming allocation function fails concalc-0.9.3/src/concalc.cpp:282:11: note: Assignment 'input=(char*)std::malloc(std::strlen(argv[c])+1)', assigned value is 0 concalc-0.9.3/src/concalc.cpp:283:12: note: Null pointer dereference head concalc-0.9.3/src/concalc.cpp:288:12: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] concalc-0.9.3/src/concalc.cpp:287:24: note: Assuming allocation function fails concalc-0.9.3/src/concalc.cpp:287:11: note: Assignment 'input=(char*)std::malloc(std::strlen(argv[c])+std::strlen(temp)+1)', assigned value is 0 concalc-0.9.3/src/concalc.cpp:288:12: note: Null pointer dereference head concalc-0.9.3/src/concalc.cpp:303:18: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] concalc-0.9.3/src/concalc.cpp:302:22: note: Assuming allocation function fails concalc-0.9.3/src/concalc.cpp:302:9: note: Assignment 'input=(char*)std::malloc(1026)', assigned value is 0 concalc-0.9.3/src/concalc.cpp:303:18: note: Null pointer dereference head concalc-0.9.3/src/concalc.cpp:330:12: warning: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] concalc-0.9.3/src/concalc.cpp:329:23: note: Assuming allocation function fails concalc-0.9.3/src/concalc.cpp:329:10: note: Assignment 'input=(char*)std::malloc(fileinfo.st_size+2)', assigned value is 0 concalc-0.9.3/src/concalc.cpp:330:12: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:1229:9: warning: If memory allocation fails, then there is a possible null pointer dereference: dest [ctunullpointerOutOfMemory] concalc-0.9.3/src/global.cpp:667:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:667:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:668:11: note: Calling function strcopy, 1st argument is null concalc-0.9.3/src/global.cpp:1229:9: note: Dereferencing argument dest that is null head concalc-0.9.3/src/global.cpp:1229:9: warning: If memory allocation fails, then there is a possible null pointer dereference: dest [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:766:12: note: Calling function 'strcopy', 1st argument 'configString' value is 0 concalc-0.9.3/src/global.cpp:1229:9: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:1230:2: warning: If memory allocation fails, then there is a possible null pointer dereference: dest [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:766:12: note: Calling function 'strcopy', 1st argument 'configString' value is 0 concalc-0.9.3/src/global.cpp:1230:2: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:1242:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:1241:25: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:1241:12: note: Assignment 'tmp=(char*)std::malloc(stlen-index-len+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:1242:10: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:1244:28: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:1241:25: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:1241:12: note: Assignment 'tmp=(char*)std::malloc(stlen-index-len+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:1244:28: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:1261:9: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:1260:24: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:1260:11: note: Assignment 'tmp=(char*)std::malloc(stlen-index+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:1261:9: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:1263:27: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:1260:24: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:1260:11: note: Assignment 'tmp=(char*)std::malloc(stlen-index+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:1263:27: note: Null pointer dereference 2.17.0 concalc-0.9.3/src/global.cpp:3873:12: style: C-style pointer casting [cstyleCast] head concalc-0.9.3/src/global.cpp:3873:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head concalc-0.9.3/src/global.cpp:6545:8: style: Variable 'pathlen' is assigned a value that is never used. [unreadVariable] head concalc-0.9.3/src/global.cpp:670:15: warning: If memory allocation fails, then there is a possible null pointer dereference: configString [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:667:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:667:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:670:15: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:7012:6: warning: If memory allocation fails, then there is a possible null pointer dereference: matrix [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:7054:42: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:7054:22: note: Assignment 'result=(long double*)std::malloc(size*size*sizeof(long double))', assigned value is 0 concalc-0.9.3/src/global.cpp:7059:26: note: Calling function 'gauss', 3rd argument 'result' value is 0 concalc-0.9.3/src/global.cpp:7012:6: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:7040:29: warning: If memory allocation fails, then there is a possible null pointer dereference: matrix [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:7054:42: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:7054:22: note: Assignment 'result=(long double*)std::malloc(size*size*sizeof(long double))', assigned value is 0 concalc-0.9.3/src/global.cpp:7059:26: note: Calling function 'gauss', 3rd argument 'result' value is 0 concalc-0.9.3/src/global.cpp:7040:29: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:7040:9: warning: If memory allocation fails, then there is a possible null pointer dereference: matrix [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:7054:42: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:7054:22: note: Assignment 'result=(long double*)std::malloc(size*size*sizeof(long double))', assigned value is 0 concalc-0.9.3/src/global.cpp:7059:26: note: Calling function 'gauss', 3rd argument 'result' value is 0 concalc-0.9.3/src/global.cpp:7040:9: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:7057:9: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:7054:42: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:7054:22: note: Assignment 'result=(long double*)std::malloc(size*size*sizeof(long double))', assigned value is 0 concalc-0.9.3/src/global.cpp:7057:9: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:774:10: warning: If memory allocation fails, then there is a possible null pointer dereference: configString [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:774:10: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:774:39: warning: If memory allocation fails, then there is a possible null pointer dereference: configString [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:774:39: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:774:92: warning: If memory allocation fails, then there is a possible null pointer dereference: configString [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:774:92: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:778:11: warning: If memory allocation fails, then there is a possible null pointer dereference: macro [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:777:23: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:777:10: note: Assignment 'macro=(char*)std::malloc(endPos-startPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:778:11: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:778:17: warning: If memory allocation fails, then there is a possible null pointer dereference: configString [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:778:17: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:779:4: warning: If memory allocation fails, then there is a possible null pointer dereference: macro [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:777:23: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:777:10: note: Assignment 'macro=(char*)std::malloc(endPos-startPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:779:4: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:780:20: warning: If memory allocation fails, then there is a possible null pointer dereference: macro [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:777:23: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:777:10: note: Assignment 'macro=(char*)std::malloc(endPos-startPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:780:20: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:783:100: warning: If memory allocation fails, then there is a possible null pointer dereference: configString [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:783:100: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:783:11: warning: If memory allocation fails, then there is a possible null pointer dereference: configString [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:783:11: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:783:42: warning: If memory allocation fails, then there is a possible null pointer dereference: configString [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:783:42: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:785:18: warning: If memory allocation fails, then there is a possible null pointer dereference: configString [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:765:30: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:765:17: note: Assignment 'configString=(char*)std::malloc(endPos-configStartPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:785:18: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:791:11: warning: If memory allocation fails, then there is a possible null pointer dereference: replacement [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:790:29: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:790:16: note: Assignment 'replacement=(char*)std::malloc(endPos-startPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:791:11: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:792:4: warning: If memory allocation fails, then there is a possible null pointer dereference: replacement [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:790:29: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:790:16: note: Assignment 'replacement=(char*)std::malloc(endPos-startPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:792:4: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:793:26: warning: If memory allocation fails, then there is a possible null pointer dereference: replacement [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:790:29: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:790:16: note: Assignment 'replacement=(char*)std::malloc(endPos-startPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:793:26: note: Null pointer dereference head concalc-0.9.3/src/global.cpp:796:10: warning: If memory allocation fails, then there is a possible null pointer dereference: macro [nullPointerOutOfMemory] concalc-0.9.3/src/global.cpp:777:23: note: Assuming allocation function fails concalc-0.9.3/src/global.cpp:777:10: note: Assignment 'macro=(char*)std::malloc(endPos-startPos+1)', assigned value is 0 concalc-0.9.3/src/global.cpp:787:13: note: Assuming condition is false concalc-0.9.3/src/global.cpp:796:10: note: Null pointer dereference DONE