tcl-8.6.14-1.fc41
List of Defects
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
tcl-8.6.14-build/tcl8.6.14/generic/regcomp.c:2196: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/regc_lex.c: scope_hint: In function ‘chrnamed’
tcl-8.6.14-build/tcl8.6.14/generic/regc_lex.c:1181:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
tcl-8.6.14-build/tcl8.6.14/generic/regcomp.c:2198: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/regcomp.c:1704:5: note: in expansion of macro ‘NOERR’
tcl-8.6.14-build/tcl8.6.14/generic/regcomp.c: scope_hint: In function ‘chrnamed’
tcl-8.6.14-build/tcl8.6.14/generic/regcomp.c:1711:5: note: in expansion of macro ‘NEXT’
tcl-8.6.14-build/tcl8.6.14/generic/regc_lex.c:775:5: note: in expansion of macro ‘NOTE’
tcl-8.6.14-build/tcl8.6.14/generic/regc_lex.c:42:61: note: in definition of macro ‘SETV’
tcl-8.6.14-build/tcl8.6.14/generic/regc_lex.c:778:9: note: in expansion of macro ‘RETV’
tcl-8.6.14-build/tcl8.6.14/generic/regcomp.c:2200: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/regcomp.c:2199: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/regc_locale.c: scope_hint: In function ‘chrnamed’
tcl-8.6.14-build/tcl8.6.14/generic/regc_locale.c:904:9: note: in expansion of macro ‘NOERRN’
# 1179|
# 1180| cv = range(v, c, c, 0);
# 1181|-> if (cv->nchrs == 0) {
# 1182| return (chr)lastresort;
# 1183| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
tcl-8.6.14-build/tcl8.6.14/generic/regc_nfa.c: scope_hint: In function ‘newarc’
tcl-8.6.14-build/tcl8.6.14/generic/regc_nfa.c:283:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘to’
tcl-8.6.14-build/tcl8.6.14/generic/regcomp.c:1704:5: note: in expansion of macro ‘NOERR’
tcl-8.6.14-build/tcl8.6.14/generic/regcomp.c: scope_hint: In function ‘newarc’
tcl-8.6.14-build/tcl8.6.14/generic/regcomp.c:1711:5: note: in expansion of macro ‘NEXT’
tcl-8.6.14-build/tcl8.6.14/generic/regcomp.c:1711:5: note: in expansion of macro ‘NEXT’
tcl-8.6.14-build/tcl8.6.14/generic/regcomp.c:1439:5: note: in expansion of macro ‘NEXT’
tcl-8.6.14-build/tcl8.6.14/generic/regcomp.c:1439:5: note: in expansion of macro ‘NEXT’
tcl-8.6.14-build/tcl8.6.14/generic/regcomp.c:1511:9: note: in expansion of macro ‘NEXT’
tcl-8.6.14-build/tcl8.6.14/generic/regcomp.c:1511:9: note: in expansion of macro ‘NEXT’
# 281|
# 282| /* check for duplicate arc, using whichever chain is shorter */
# 283|-> if (from->nouts <= to->nins) {
# 284| for (a = from->outs; a != NULL; a = a->outchain) {
# 285| if (a->to == to && a->co == co && a->type == t) {
Error: CPPCHECK_WARNING: [#def3]
tcl-8.6.14-build/tcl8.6.14/generic/regcomp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def4]
tcl-8.6.14-build/tcl8.6.14/generic/regexec.c:1328: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/rege_dfa.c:694:6: warning[core.NullDereference]: Access to field 'inchain' results in a dereference of a null pointer (loaded from field 'ss')
# 692| }
# 693| assert(ap.ss != NULL);
# 694|-> lastap.ss->inchain[lastap.co] = ss->inchain[i];
# 695| }
# 696| ss->outs[i] = NULL;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
tcl-8.6.14-build/tcl8.6.14/generic/regexec.c:1328: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/rege_dfa.c: scope_hint: In function ‘getVacantSS’
tcl-8.6.14-build/tcl8.6.14/generic/rege_dfa.c:694:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘<unknown>’
# 692| }
# 693| assert(ap.ss != NULL);
# 694|-> lastap.ss->inchain[lastap.co] = ss->inchain[i];
# 695| }
# 696| ss->outs[i] = NULL;
Error: CPPCHECK_WARNING: [#def6]
tcl-8.6.14-build/tcl8.6.14/generic/regexec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def7]
tcl-8.6.14-build/tcl8.6.14/generic/regexec.c:226: warning[uninitvar]: Uninitialized variable: v->pmatch
# 224| MALLOC((v->g->nsub + 1) * sizeof(regmatch_t));
# 225| }
# 226|-> if (v->pmatch == NULL) {
# 227| FreeVars(v);
# 228| return REG_ESPACE;
Error: CPPCHECK_WARNING (CWE-457): [#def8]
tcl-8.6.14-build/tcl8.6.14/generic/regexec.c:245: warning[uninitvar]: Uninitialized variable: v->subdfas
# 243| v->subdfas = (struct dfa **) MALLOC(n * sizeof(struct dfa *));
# 244| }
# 245|-> if (v->subdfas == NULL) {
# 246| if (v->pmatch != pmatch && v->pmatch != mat)
# 247| FREE(v->pmatch);
Error: CPPCHECK_WARNING: [#def9]
tcl-8.6.14-build/tcl8.6.14/generic/tclAssembly.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def10]
tcl-8.6.14-build/tcl8.6.14/generic/tclAssembly.c:806: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 804| Tcl_AppendObjToErrorInfo(interp, objv[0]);
# 805| Tcl_AddErrorInfo(interp, "\" body, line ");
# 806|-> TclNewIntObj(backtrace, Tcl_GetErrorLine(interp));
# 807| Tcl_AppendObjToErrorInfo(interp, backtrace);
# 808| Tcl_AddErrorInfo(interp, ")");
Error: CPPCHECK_WARNING (CWE-457): [#def11]
tcl-8.6.14-build/tcl8.6.14/generic/tclAssembly.c:806: error[uninitvar]: Uninitialized variable: backtrace
# 804| Tcl_AppendObjToErrorInfo(interp, objv[0]);
# 805| Tcl_AddErrorInfo(interp, "\" body, line ");
# 806|-> TclNewIntObj(backtrace, Tcl_GetErrorLine(interp));
# 807| Tcl_AppendObjToErrorInfo(interp, backtrace);
# 808| Tcl_AddErrorInfo(interp, ")");
Error: CPPCHECK_WARNING (CWE-457): [#def12]
tcl-8.6.14-build/tcl8.6.14/generic/tclAssembly.c:806: error[uninitvar]: Uninitialized variable: cachePtr
# 804| Tcl_AppendObjToErrorInfo(interp, objv[0]);
# 805| Tcl_AddErrorInfo(interp, "\" body, line ");
# 806|-> TclNewIntObj(backtrace, Tcl_GetErrorLine(interp));
# 807| Tcl_AppendObjToErrorInfo(interp, backtrace);
# 808| Tcl_AddErrorInfo(interp, ")");
Error: CPPCHECK_WARNING (CWE-457): [#def13]
tcl-8.6.14-build/tcl8.6.14/generic/tclAssembly.c:1978: error[legacyUninitvar]: Uninitialized variable: *(&objv)
# 1976| int i;
# 1977|
# 1978|-> if (TclListObjGetElements(interp, jumps, &objc, &objv) != TCL_OK) {
# 1979| return TCL_ERROR;
# 1980| }
Error: CPPCHECK_WARNING (CWE-476): [#def14]
tcl-8.6.14-build/tcl8.6.14/generic/tclAssembly.c:2093: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2091| Tcl_Obj* operandObj;
# 2092|
# 2093|-> TclNewObj(operandObj);
# 2094| if (!TclWordKnownAtCompileTime(*tokenPtrPtr, operandObj)) {
# 2095| Tcl_DecrRefCount(operandObj);
Error: CPPCHECK_WARNING (CWE-457): [#def15]
tcl-8.6.14-build/tcl8.6.14/generic/tclAssembly.c:2093: error[uninitvar]: Uninitialized variable: cachePtr
# 2091| Tcl_Obj* operandObj;
# 2092|
# 2093|-> TclNewObj(operandObj);
# 2094| if (!TclWordKnownAtCompileTime(*tokenPtrPtr, operandObj)) {
# 2095| Tcl_DecrRefCount(operandObj);
Error: CPPCHECK_WARNING (CWE-457): [#def16]
tcl-8.6.14-build/tcl8.6.14/generic/tclAssembly.c:2093: error[uninitvar]: Uninitialized variable: operandObj
# 2091| Tcl_Obj* operandObj;
# 2092|
# 2093|-> TclNewObj(operandObj);
# 2094| if (!TclWordKnownAtCompileTime(*tokenPtrPtr, operandObj)) {
# 2095| Tcl_DecrRefCount(operandObj);
Error: CLANG_WARNING: [#def17]
tcl-8.6.14-build/tcl8.6.14/generic/tclAssembly.c:4103:5: warning[deadcode.DeadStores]: Value stored to 'catchDepth' is never read
# 4101| Tcl_HashEntry* entryPtr;
# 4102|
# 4103|-> catchDepth = 0;
# 4104|
# 4105| /*
Error: CPPCHECK_WARNING (CWE-476): [#def18]
tcl-8.6.14-build/tcl8.6.14/generic/tclAssembly.c:4263: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4261|
# 4262| Tcl_AddErrorInfo(interp, "\n in assembly code between lines ");
# 4263|-> TclNewIntObj(lineNo, bbPtr->startLine);
# 4264| Tcl_IncrRefCount(lineNo);
# 4265| Tcl_AppendObjToErrorInfo(interp, lineNo);
Error: CPPCHECK_WARNING (CWE-457): [#def19]
tcl-8.6.14-build/tcl8.6.14/generic/tclAssembly.c:4263: error[uninitvar]: Uninitialized variable: cachePtr
# 4261|
# 4262| Tcl_AddErrorInfo(interp, "\n in assembly code between lines ");
# 4263|-> TclNewIntObj(lineNo, bbPtr->startLine);
# 4264| Tcl_IncrRefCount(lineNo);
# 4265| Tcl_AppendObjToErrorInfo(interp, lineNo);
Error: CPPCHECK_WARNING (CWE-457): [#def20]
tcl-8.6.14-build/tcl8.6.14/generic/tclAssembly.c:4263: error[uninitvar]: Uninitialized variable: lineNo
# 4261|
# 4262| Tcl_AddErrorInfo(interp, "\n in assembly code between lines ");
# 4263|-> TclNewIntObj(lineNo, bbPtr->startLine);
# 4264| Tcl_IncrRefCount(lineNo);
# 4265| Tcl_AppendObjToErrorInfo(interp, lineNo);
Error: CPPCHECK_WARNING: [#def21]
tcl-8.6.14-build/tcl8.6.14/generic/tclAsync.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def22]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def23]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:555: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 553| iPtr->freeProc = NULL;
# 554| iPtr->errorLine = 0;
# 555|-> TclNewObj(iPtr->objResultPtr);
# 556| Tcl_IncrRefCount(iPtr->objResultPtr);
# 557| iPtr->handle = TclHandleCreate(iPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def24]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:555: error[uninitvar]: Uninitialized variable: cachePtr
# 553| iPtr->freeProc = NULL;
# 554| iPtr->errorLine = 0;
# 555|-> TclNewObj(iPtr->objResultPtr);
# 556| Tcl_IncrRefCount(iPtr->objResultPtr);
# 557| iPtr->handle = TclHandleCreate(iPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def25]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:555: error[uninitvar]: Uninitialized variable: iPtr->objResultPtr
# 553| iPtr->freeProc = NULL;
# 554| iPtr->errorLine = 0;
# 555|-> TclNewObj(iPtr->objResultPtr);
# 556| Tcl_IncrRefCount(iPtr->objResultPtr);
# 557| iPtr->handle = TclHandleCreate(iPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def26]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:590: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 588| iPtr->returnOpts = NULL;
# 589| iPtr->errorInfo = NULL;
# 590|-> TclNewLiteralStringObj(iPtr->eiVar, "::errorInfo");
# 591| Tcl_IncrRefCount(iPtr->eiVar);
# 592| iPtr->errorStack = Tcl_NewListObj(0, NULL);
Error: CPPCHECK_WARNING (CWE-457): [#def27]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:590: error[uninitvar]: Uninitialized variable: cachePtr
# 588| iPtr->returnOpts = NULL;
# 589| iPtr->errorInfo = NULL;
# 590|-> TclNewLiteralStringObj(iPtr->eiVar, "::errorInfo");
# 591| Tcl_IncrRefCount(iPtr->eiVar);
# 592| iPtr->errorStack = Tcl_NewListObj(0, NULL);
Error: CPPCHECK_WARNING (CWE-457): [#def28]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:590: error[uninitvar]: Uninitialized variable: iPtr->eiVar
# 588| iPtr->returnOpts = NULL;
# 589| iPtr->errorInfo = NULL;
# 590|-> TclNewLiteralStringObj(iPtr->eiVar, "::errorInfo");
# 591| Tcl_IncrRefCount(iPtr->eiVar);
# 592| iPtr->errorStack = Tcl_NewListObj(0, NULL);
Error: CPPCHECK_WARNING (CWE-476): [#def29]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:595: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 593| Tcl_IncrRefCount(iPtr->errorStack);
# 594| iPtr->resetErrorStack = 1;
# 595|-> TclNewLiteralStringObj(iPtr->upLiteral,"UP");
# 596| Tcl_IncrRefCount(iPtr->upLiteral);
# 597| TclNewLiteralStringObj(iPtr->callLiteral,"CALL");
Error: CPPCHECK_WARNING (CWE-457): [#def30]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:595: error[uninitvar]: Uninitialized variable: cachePtr
# 593| Tcl_IncrRefCount(iPtr->errorStack);
# 594| iPtr->resetErrorStack = 1;
# 595|-> TclNewLiteralStringObj(iPtr->upLiteral,"UP");
# 596| Tcl_IncrRefCount(iPtr->upLiteral);
# 597| TclNewLiteralStringObj(iPtr->callLiteral,"CALL");
Error: CPPCHECK_WARNING (CWE-457): [#def31]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:595: error[uninitvar]: Uninitialized variable: iPtr->upLiteral
# 593| Tcl_IncrRefCount(iPtr->errorStack);
# 594| iPtr->resetErrorStack = 1;
# 595|-> TclNewLiteralStringObj(iPtr->upLiteral,"UP");
# 596| Tcl_IncrRefCount(iPtr->upLiteral);
# 597| TclNewLiteralStringObj(iPtr->callLiteral,"CALL");
Error: CPPCHECK_WARNING (CWE-476): [#def32]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:597: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 595| TclNewLiteralStringObj(iPtr->upLiteral,"UP");
# 596| Tcl_IncrRefCount(iPtr->upLiteral);
# 597|-> TclNewLiteralStringObj(iPtr->callLiteral,"CALL");
# 598| Tcl_IncrRefCount(iPtr->callLiteral);
# 599| TclNewLiteralStringObj(iPtr->innerLiteral,"INNER");
Error: CPPCHECK_WARNING (CWE-457): [#def33]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:597: error[uninitvar]: Uninitialized variable: cachePtr
# 595| TclNewLiteralStringObj(iPtr->upLiteral,"UP");
# 596| Tcl_IncrRefCount(iPtr->upLiteral);
# 597|-> TclNewLiteralStringObj(iPtr->callLiteral,"CALL");
# 598| Tcl_IncrRefCount(iPtr->callLiteral);
# 599| TclNewLiteralStringObj(iPtr->innerLiteral,"INNER");
Error: CPPCHECK_WARNING (CWE-457): [#def34]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:597: error[uninitvar]: Uninitialized variable: iPtr->callLiteral
# 595| TclNewLiteralStringObj(iPtr->upLiteral,"UP");
# 596| Tcl_IncrRefCount(iPtr->upLiteral);
# 597|-> TclNewLiteralStringObj(iPtr->callLiteral,"CALL");
# 598| Tcl_IncrRefCount(iPtr->callLiteral);
# 599| TclNewLiteralStringObj(iPtr->innerLiteral,"INNER");
Error: CPPCHECK_WARNING (CWE-476): [#def35]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:599: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 597| TclNewLiteralStringObj(iPtr->callLiteral,"CALL");
# 598| Tcl_IncrRefCount(iPtr->callLiteral);
# 599|-> TclNewLiteralStringObj(iPtr->innerLiteral,"INNER");
# 600| Tcl_IncrRefCount(iPtr->innerLiteral);
# 601| iPtr->innerContext = Tcl_NewListObj(0, NULL);
Error: CPPCHECK_WARNING (CWE-457): [#def36]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:599: error[uninitvar]: Uninitialized variable: cachePtr
# 597| TclNewLiteralStringObj(iPtr->callLiteral,"CALL");
# 598| Tcl_IncrRefCount(iPtr->callLiteral);
# 599|-> TclNewLiteralStringObj(iPtr->innerLiteral,"INNER");
# 600| Tcl_IncrRefCount(iPtr->innerLiteral);
# 601| iPtr->innerContext = Tcl_NewListObj(0, NULL);
Error: CPPCHECK_WARNING (CWE-457): [#def37]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:599: error[uninitvar]: Uninitialized variable: iPtr->innerLiteral
# 597| TclNewLiteralStringObj(iPtr->callLiteral,"CALL");
# 598| Tcl_IncrRefCount(iPtr->callLiteral);
# 599|-> TclNewLiteralStringObj(iPtr->innerLiteral,"INNER");
# 600| Tcl_IncrRefCount(iPtr->innerLiteral);
# 601| iPtr->innerContext = Tcl_NewListObj(0, NULL);
Error: CPPCHECK_WARNING (CWE-476): [#def38]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:604: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 602| Tcl_IncrRefCount(iPtr->innerContext);
# 603| iPtr->errorCode = NULL;
# 604|-> TclNewLiteralStringObj(iPtr->ecVar, "::errorCode");
# 605| Tcl_IncrRefCount(iPtr->ecVar);
# 606| iPtr->returnLevel = 1;
Error: CPPCHECK_WARNING (CWE-457): [#def39]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:604: error[uninitvar]: Uninitialized variable: cachePtr
# 602| Tcl_IncrRefCount(iPtr->innerContext);
# 603| iPtr->errorCode = NULL;
# 604|-> TclNewLiteralStringObj(iPtr->ecVar, "::errorCode");
# 605| Tcl_IncrRefCount(iPtr->ecVar);
# 606| iPtr->returnLevel = 1;
Error: CPPCHECK_WARNING (CWE-457): [#def40]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:604: error[uninitvar]: Uninitialized variable: iPtr->ecVar
# 602| Tcl_IncrRefCount(iPtr->innerContext);
# 603| iPtr->errorCode = NULL;
# 604|-> TclNewLiteralStringObj(iPtr->ecVar, "::errorCode");
# 605| Tcl_IncrRefCount(iPtr->ecVar);
# 606| iPtr->returnLevel = 1;
Error: CPPCHECK_WARNING (CWE-476): [#def41]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:644: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 642| iPtr->assocData = NULL;
# 643| iPtr->execEnvPtr = NULL; /* Set after namespaces initialized. */
# 644|-> TclNewObj(iPtr->emptyObjPtr);
# 645| /* Another empty object. */
# 646| Tcl_IncrRefCount(iPtr->emptyObjPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def42]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:644: error[uninitvar]: Uninitialized variable: cachePtr
# 642| iPtr->assocData = NULL;
# 643| iPtr->execEnvPtr = NULL; /* Set after namespaces initialized. */
# 644|-> TclNewObj(iPtr->emptyObjPtr);
# 645| /* Another empty object. */
# 646| Tcl_IncrRefCount(iPtr->emptyObjPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def43]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:644: error[uninitvar]: Uninitialized variable: iPtr->emptyObjPtr
# 642| iPtr->assocData = NULL;
# 643| iPtr->execEnvPtr = NULL; /* Set after namespaces initialized. */
# 644|-> TclNewObj(iPtr->emptyObjPtr);
# 645| /* Another empty object. */
# 646| Tcl_IncrRefCount(iPtr->emptyObjPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def44]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:709: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 707| */
# 708|
# 709|-> TclNewObj(iPtr->asyncCancelMsg);
# 710|
# 711| cancelInfo = (CancelInfo *)ckalloc(sizeof(CancelInfo));
Error: CPPCHECK_WARNING (CWE-457): [#def45]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:709: error[uninitvar]: Uninitialized variable: cachePtr
# 707| */
# 708|
# 709|-> TclNewObj(iPtr->asyncCancelMsg);
# 710|
# 711| cancelInfo = (CancelInfo *)ckalloc(sizeof(CancelInfo));
Error: CPPCHECK_WARNING (CWE-457): [#def46]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:709: error[uninitvar]: Uninitialized variable: iPtr->asyncCancelMsg
# 707| */
# 708|
# 709|-> TclNewObj(iPtr->asyncCancelMsg);
# 710|
# 711| cancelInfo = (CancelInfo *)ckalloc(sizeof(CancelInfo));
Error: CPPCHECK_WARNING (CWE-476): [#def47]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:2588: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2586| for (i = 0; i < argc; i++) {
# 2587| length = strlen(argv[i]);
# 2588|-> TclNewStringObj(objPtr, argv[i], length);
# 2589| Tcl_IncrRefCount(objPtr);
# 2590| objv[i] = objPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def48]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:2588: error[uninitvar]: Uninitialized variable: cachePtr
# 2586| for (i = 0; i < argc; i++) {
# 2587| length = strlen(argv[i]);
# 2588|-> TclNewStringObj(objPtr, argv[i], length);
# 2589| Tcl_IncrRefCount(objPtr);
# 2590| objv[i] = objPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def49]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:2588: error[uninitvar]: Uninitialized variable: objPtr
# 2586| for (i = 0; i < argc; i++) {
# 2587| length = strlen(argv[i]);
# 2588|-> TclNewStringObj(objPtr, argv[i], length);
# 2589| Tcl_IncrRefCount(objPtr);
# 2590| objv[i] = objPtr;
Error: CPPCHECK_WARNING (CWE-476): [#def50]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:2691: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2689|
# 2690| cmdNsPtr = cmdPtr->nsPtr;
# 2691|-> TclNewObj(oldFullName);
# 2692| Tcl_IncrRefCount(oldFullName);
# 2693| Tcl_GetCommandFullName(interp, cmd, oldFullName);
Error: CPPCHECK_WARNING (CWE-457): [#def51]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:2691: error[uninitvar]: Uninitialized variable: cachePtr
# 2689|
# 2690| cmdNsPtr = cmdPtr->nsPtr;
# 2691|-> TclNewObj(oldFullName);
# 2692| Tcl_IncrRefCount(oldFullName);
# 2693| Tcl_GetCommandFullName(interp, cmd, oldFullName);
Error: CPPCHECK_WARNING (CWE-457): [#def52]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:2691: error[uninitvar]: Uninitialized variable: oldFullName
# 2689|
# 2690| cmdNsPtr = cmdPtr->nsPtr;
# 2691|-> TclNewObj(oldFullName);
# 2692| Tcl_IncrRefCount(oldFullName);
# 2693| Tcl_GetCommandFullName(interp, cmd, oldFullName);
Error: CPPCHECK_WARNING (CWE-476): [#def53]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:2825: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2823|
# 2824| done:
# 2825|-> TclDecrRefCount(oldFullName);
# 2826| return result;
# 2827| }
Error: CPPCHECK_WARNING (CWE-457): [#def54]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:2825: error[uninitvar]: Uninitialized variable: cachePtr
# 2823|
# 2824| done:
# 2825|-> TclDecrRefCount(oldFullName);
# 2826| return result;
# 2827| }
Error: CPPCHECK_WARNING (CWE-562): [#def55]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:3382: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 3380| active.nextPtr = iPtr->activeCmdTracePtr;
# 3381| active.reverseScan = 0;
# 3382|-> iPtr->activeCmdTracePtr = &active;
# 3383|
# 3384| if (flags & TCL_TRACE_DELETE) {
Error: CPPCHECK_WARNING (CWE-476): [#def56]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:3399: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3397| cmdPtr->flags |= tracePtr->flags;
# 3398| if (oldName == NULL) {
# 3399|-> TclNewObj(oldNamePtr);
# 3400| Tcl_IncrRefCount(oldNamePtr);
# 3401| Tcl_GetCommandFullName((Tcl_Interp *) iPtr,
Error: CPPCHECK_WARNING (CWE-457): [#def57]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:3399: error[uninitvar]: Uninitialized variable: cachePtr
# 3397| cmdPtr->flags |= tracePtr->flags;
# 3398| if (oldName == NULL) {
# 3399|-> TclNewObj(oldNamePtr);
# 3400| Tcl_IncrRefCount(oldNamePtr);
# 3401| Tcl_GetCommandFullName((Tcl_Interp *) iPtr,
Error: CPPCHECK_WARNING (CWE-457): [#def58]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:3399: error[uninitvar]: Uninitialized variable: oldNamePtr
# 3397| cmdPtr->flags |= tracePtr->flags;
# 3398| if (oldName == NULL) {
# 3399|-> TclNewObj(oldNamePtr);
# 3400| Tcl_IncrRefCount(oldNamePtr);
# 3401| Tcl_GetCommandFullName((Tcl_Interp *) iPtr,
Error: CPPCHECK_WARNING (CWE-476): [#def59]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:3426: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3424|
# 3425| if (oldNamePtr != NULL) {
# 3426|-> TclDecrRefCount(oldNamePtr);
# 3427| }
# 3428|
Error: CPPCHECK_WARNING (CWE-457): [#def60]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:3426: error[uninitvar]: Uninitialized variable: cachePtr
# 3424|
# 3425| if (oldNamePtr != NULL) {
# 3426|-> TclDecrRefCount(oldNamePtr);
# 3427| }
# 3428|
Error: CPPCHECK_WARNING (CWE-476): [#def61]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:3735: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3733|
# 3734| if (funcResult.type == TCL_INT) {
# 3735|-> TclNewLongObj(valuePtr, funcResult.intValue);
# 3736| } else if (funcResult.type == TCL_WIDE_INT) {
# 3737| valuePtr = Tcl_NewWideIntObj(funcResult.wideValue);
Error: CPPCHECK_WARNING (CWE-457): [#def62]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:3735: error[uninitvar]: Uninitialized variable: cachePtr
# 3733|
# 3734| if (funcResult.type == TCL_INT) {
# 3735|-> TclNewLongObj(valuePtr, funcResult.intValue);
# 3736| } else if (funcResult.type == TCL_WIDE_INT) {
# 3737| valuePtr = Tcl_NewWideIntObj(funcResult.wideValue);
Error: CPPCHECK_WARNING (CWE-457): [#def63]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:3735: error[uninitvar]: Uninitialized variable: valuePtr
# 3733|
# 3734| if (funcResult.type == TCL_INT) {
# 3735|-> TclNewLongObj(valuePtr, funcResult.intValue);
# 3736| } else if (funcResult.type == TCL_WIDE_INT) {
# 3737| valuePtr = Tcl_NewWideIntObj(funcResult.wideValue);
Error: CPPCHECK_WARNING (CWE-476): [#def64]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:3812: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3810| */
# 3811|
# 3812|-> TclNewLiteralStringObj(cmdNameObj, "tcl::mathfunc::");
# 3813| Tcl_AppendToObj(cmdNameObj, name, -1);
# 3814| Tcl_IncrRefCount(cmdNameObj);
Error: CPPCHECK_WARNING (CWE-457): [#def65]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:3812: error[uninitvar]: Uninitialized variable: cachePtr
# 3810| */
# 3811|
# 3812|-> TclNewLiteralStringObj(cmdNameObj, "tcl::mathfunc::");
# 3813| Tcl_AppendToObj(cmdNameObj, name, -1);
# 3814| Tcl_IncrRefCount(cmdNameObj);
Error: CPPCHECK_WARNING (CWE-457): [#def66]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:3812: error[uninitvar]: Uninitialized variable: cmdNameObj
# 3810| */
# 3811|
# 3812|-> TclNewLiteralStringObj(cmdNameObj, "tcl::mathfunc::");
# 3813| Tcl_AppendToObj(cmdNameObj, name, -1);
# 3814| Tcl_IncrRefCount(cmdNameObj);
Error: CPPCHECK_WARNING (CWE-476): [#def67]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:3896: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3894| result = Tcl_DuplicateObj(Tcl_GetObjResult(interp));
# 3895| } else {
# 3896|-> TclNewObj(result);
# 3897| }
# 3898| Tcl_DecrRefCount(script);
Error: CPPCHECK_WARNING (CWE-457): [#def68]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:3896: error[uninitvar]: Uninitialized variable: cachePtr
# 3894| result = Tcl_DuplicateObj(Tcl_GetObjResult(interp));
# 3895| } else {
# 3896|-> TclNewObj(result);
# 3897| }
# 3898| Tcl_DecrRefCount(script);
Error: CPPCHECK_WARNING (CWE-457): [#def69]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:3896: error[uninitvar]: Uninitialized variable: result
# 3894| result = Tcl_DuplicateObj(Tcl_GetObjResult(interp));
# 3895| } else {
# 3896|-> TclNewObj(result);
# 3897| }
# 3898| Tcl_DecrRefCount(script);
Error: CPPCHECK_WARNING (CWE-476): [#def70]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:4189: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4187| cancelInfo->result = (char *)ckrealloc(cancelInfo->result,cancelInfo->length);
# 4188| memcpy(cancelInfo->result, result, cancelInfo->length);
# 4189|-> TclDecrRefCount(resultObjPtr); /* Discard their result object. */
# 4190| } else {
# 4191| cancelInfo->result = NULL;
Error: CPPCHECK_WARNING (CWE-457): [#def71]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:4189: error[uninitvar]: Uninitialized variable: cachePtr
# 4187| cancelInfo->result = (char *)ckrealloc(cancelInfo->result,cancelInfo->length);
# 4188| memcpy(cancelInfo->result, result, cancelInfo->length);
# 4189|-> TclDecrRefCount(resultObjPtr); /* Discard their result object. */
# 4190| } else {
# 4191| cancelInfo->result = NULL;
Error: CPPCHECK_WARNING (CWE-476): [#def72]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:4490: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4488| TclDTraceInfo(info, a, i);
# 4489| TCL_DTRACE_CMD_INFO(a[0], a[1], a[2], a[3], i[0], i[1], a[4], a[5]);
# 4490|-> TclDecrRefCount(info);
# 4491| }
# 4492| if ((TCL_DTRACE_CMD_RETURN_ENABLED() || TCL_DTRACE_CMD_RESULT_ENABLED())
Error: CPPCHECK_WARNING (CWE-457): [#def73]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:4490: error[uninitvar]: Uninitialized variable: cachePtr
# 4488| TclDTraceInfo(info, a, i);
# 4489| TCL_DTRACE_CMD_INFO(a[0], a[1], a[2], a[3], i[0], i[1], a[4], a[5]);
# 4490|-> TclDecrRefCount(info);
# 4491| }
# 4492| if ((TCL_DTRACE_CMD_RETURN_ENABLED() || TCL_DTRACE_CMD_RESULT_ENABLED())
Error: CPPCHECK_WARNING (CWE-476): [#def74]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:4744: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4742|
# 4743| if (currNsPtr->unknownHandlerPtr == NULL) {
# 4744|-> TclNewLiteralStringObj(currNsPtr->unknownHandlerPtr, "::unknown");
# 4745| Tcl_IncrRefCount(currNsPtr->unknownHandlerPtr);
# 4746| }
Error: CPPCHECK_WARNING (CWE-457): [#def75]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:4744: error[uninitvar]: Uninitialized variable: cachePtr
# 4742|
# 4743| if (currNsPtr->unknownHandlerPtr == NULL) {
# 4744|-> TclNewLiteralStringObj(currNsPtr->unknownHandlerPtr, "::unknown");
# 4745| Tcl_IncrRefCount(currNsPtr->unknownHandlerPtr);
# 4746| }
Error: CPPCHECK_WARNING (CWE-457): [#def76]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:4744: error[uninitvar]: Uninitialized variable: currNsPtr->unknownHandlerPtr
# 4742|
# 4743| if (currNsPtr->unknownHandlerPtr == NULL) {
# 4744|-> TclNewLiteralStringObj(currNsPtr->unknownHandlerPtr, "::unknown");
# 4745| Tcl_IncrRefCount(currNsPtr->unknownHandlerPtr);
# 4746| }
Error: CPPCHECK_WARNING (CWE-476): [#def77]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:4876: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4874| Tcl_Obj *info;
# 4875|
# 4876|-> TclNewLiteralStringObj(info, "\n (enter trace on \"");
# 4877| Tcl_AppendLimitedToObj(info, command, length, 55, "...");
# 4878| Tcl_AppendToObj(info, "\")", 2);
Error: CPPCHECK_WARNING (CWE-457): [#def78]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:4876: error[uninitvar]: Uninitialized variable: cachePtr
# 4874| Tcl_Obj *info;
# 4875|
# 4876|-> TclNewLiteralStringObj(info, "\n (enter trace on \"");
# 4877| Tcl_AppendLimitedToObj(info, command, length, 55, "...");
# 4878| Tcl_AppendToObj(info, "\")", 2);
Error: CPPCHECK_WARNING (CWE-457): [#def79]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:4876: error[uninitvar]: Uninitialized variable: info
# 4874| Tcl_Obj *info;
# 4875|
# 4876|-> TclNewLiteralStringObj(info, "\n (enter trace on \"");
# 4877| Tcl_AppendLimitedToObj(info, command, length, 55, "...");
# 4878| Tcl_AppendToObj(info, "\")", 2);
Error: CPPCHECK_WARNING (CWE-476): [#def80]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:4928: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4926| Tcl_Obj *info;
# 4927|
# 4928|-> TclNewLiteralStringObj(info, "\n (leave trace on \"");
# 4929| Tcl_AppendLimitedToObj(info, command, length, 55, "...");
# 4930| Tcl_AppendToObj(info, "\")", 2);
Error: CPPCHECK_WARNING (CWE-457): [#def81]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:4928: error[uninitvar]: Uninitialized variable: cachePtr
# 4926| Tcl_Obj *info;
# 4927|
# 4928|-> TclNewLiteralStringObj(info, "\n (leave trace on \"");
# 4929| Tcl_AppendLimitedToObj(info, command, length, 55, "...");
# 4930| Tcl_AppendToObj(info, "\")", 2);
Error: CPPCHECK_WARNING (CWE-457): [#def82]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:4928: error[uninitvar]: Uninitialized variable: info
# 4926| Tcl_Obj *info;
# 4927|
# 4928|-> TclNewLiteralStringObj(info, "\n (leave trace on \"");
# 4929| Tcl_AppendLimitedToObj(info, command, length, 55, "...");
# 4930| Tcl_AppendToObj(info, "\")", 2);
Error: CPPCHECK_WARNING (CWE-476): [#def83]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:5212: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5210| eeFramePtr->data.eval.path = norm;
# 5211| } else {
# 5212|-> TclNewLiteralStringObj(eeFramePtr->data.eval.path, "");
# 5213| }
# 5214| Tcl_IncrRefCount(eeFramePtr->data.eval.path);
Error: CPPCHECK_WARNING (CWE-457): [#def84]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:5212: error[uninitvar]: Uninitialized variable: cachePtr
# 5210| eeFramePtr->data.eval.path = norm;
# 5211| } else {
# 5212|-> TclNewLiteralStringObj(eeFramePtr->data.eval.path, "");
# 5213| }
# 5214| Tcl_IncrRefCount(eeFramePtr->data.eval.path);
Error: CPPCHECK_WARNING (CWE-457): [#def85]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:5212: error[uninitvar]: Uninitialized variable: eeFramePtr->data.eval.path
# 5210| eeFramePtr->data.eval.path = norm;
# 5211| } else {
# 5212|-> TclNewLiteralStringObj(eeFramePtr->data.eval.path, "");
# 5213| }
# 5214| Tcl_IncrRefCount(eeFramePtr->data.eval.path);
Error: CPPCHECK_WARNING (CWE-476): [#def86]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:6270: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 6268| result = Tcl_EvalEx(interp, script, numSrcBytes, flags);
# 6269|
# 6270|-> TclDecrRefCount(objPtr);
# 6271|
# 6272| iPtr->scriptCLLocPtr = saveCLLocPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def87]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:6270: error[uninitvar]: Uninitialized variable: cachePtr
# 6268| result = Tcl_EvalEx(interp, script, numSrcBytes, flags);
# 6269|
# 6270|-> TclDecrRefCount(objPtr);
# 6271|
# 6272| iPtr->scriptCLLocPtr = saveCLLocPtr;
Error: CPPCHECK_WARNING (CWE-476): [#def88]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:6319: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 6317| }
# 6318|
# 6319|-> TclDecrRefCount(objPtr);
# 6320| return result;
# 6321| }
Error: CPPCHECK_WARNING (CWE-457): [#def89]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:6319: error[uninitvar]: Uninitialized variable: cachePtr
# 6317| }
# 6318|
# 6319|-> TclDecrRefCount(objPtr);
# 6320| return result;
# 6321| }
Error: CPPCHECK_WARNING (CWE-476): [#def90]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:6342: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 6340| TclStackFree(interp, eoFramePtr);
# 6341| }
# 6342|-> TclDecrRefCount(objPtr);
# 6343| TclDecrRefCount(listPtr);
# 6344|
Error: CPPCHECK_WARNING (CWE-457): [#def91]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:6342: error[uninitvar]: Uninitialized variable: cachePtr
# 6340| TclStackFree(interp, eoFramePtr);
# 6341| }
# 6342|-> TclDecrRefCount(objPtr);
# 6343| TclDecrRefCount(listPtr);
# 6344|
Error: CPPCHECK_WARNING (CWE-476): [#def92]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:6343: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 6341| }
# 6342| TclDecrRefCount(objPtr);
# 6343|-> TclDecrRefCount(listPtr);
# 6344|
# 6345| return result;
Error: CPPCHECK_WARNING (CWE-457): [#def93]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:6343: error[uninitvar]: Uninitialized variable: cachePtr
# 6341| }
# 6342| TclDecrRefCount(objPtr);
# 6343|-> TclDecrRefCount(listPtr);
# 6344|
# 6345| return result;
Error: CPPCHECK_WARNING (CWE-476): [#def94]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:7883: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7881| */
# 7882|
# 7883|-> TclNewDoubleObj(oResult, dResult);
# 7884| Tcl_SetObjResult(interp, oResult);
# 7885| return TCL_OK;
Error: CPPCHECK_WARNING (CWE-457): [#def95]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:7883: error[uninitvar]: Uninitialized variable: cachePtr
# 7881| */
# 7882|
# 7883|-> TclNewDoubleObj(oResult, dResult);
# 7884| Tcl_SetObjResult(interp, oResult);
# 7885| return TCL_OK;
Error: CPPCHECK_WARNING (CWE-457): [#def96]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:7883: error[uninitvar]: Uninitialized variable: oResult
# 7881| */
# 7882|
# 7883|-> TclNewDoubleObj(oResult, dResult);
# 7884| Tcl_SetObjResult(interp, oResult);
# 7885| return TCL_OK;
Error: CPPCHECK_WARNING (CWE-476): [#def97]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:8125: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 8123| if (!*k) {
# 8124| #define kini(s) TclNewLiteralStringObj(keys[i], s); i++
# 8125|-> kini("cmd"); kini("type"); kini("proc"); kini("file");
# 8126| kini("method"); kini("class"); kini("lambda"); kini("object");
# 8127| kini("line"); kini("level");
Error: CPPCHECK_WARNING (CWE-457): [#def98]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:8125: error[uninitvar]: Uninitialized variable: cachePtr
# 8123| if (!*k) {
# 8124| #define kini(s) TclNewLiteralStringObj(keys[i], s); i++
# 8125|-> kini("cmd"); kini("type"); kini("proc"); kini("file");
# 8126| kini("method"); kini("class"); kini("lambda"); kini("object");
# 8127| kini("line"); kini("level");
Error: CPPCHECK_WARNING (CWE-476): [#def99]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:8126: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 8124| #define kini(s) TclNewLiteralStringObj(keys[i], s); i++
# 8125| kini("cmd"); kini("type"); kini("proc"); kini("file");
# 8126|-> kini("method"); kini("class"); kini("lambda"); kini("object");
# 8127| kini("line"); kini("level");
# 8128| #undef kini
Error: CPPCHECK_WARNING (CWE-457): [#def100]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:8126: error[uninitvar]: Uninitialized variable: cachePtr
# 8124| #define kini(s) TclNewLiteralStringObj(keys[i], s); i++
# 8125| kini("cmd"); kini("type"); kini("proc"); kini("file");
# 8126|-> kini("method"); kini("class"); kini("lambda"); kini("object");
# 8127| kini("line"); kini("level");
# 8128| #undef kini
Error: CPPCHECK_WARNING (CWE-476): [#def101]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:8127: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 8125| kini("cmd"); kini("type"); kini("proc"); kini("file");
# 8126| kini("method"); kini("class"); kini("lambda"); kini("object");
# 8127|-> kini("line"); kini("level");
# 8128| #undef kini
# 8129| }
Error: CPPCHECK_WARNING (CWE-457): [#def102]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:8127: error[uninitvar]: Uninitialized variable: cachePtr
# 8125| kini("cmd"); kini("type"); kini("proc"); kini("file");
# 8126| kini("method"); kini("class"); kini("lambda"); kini("object");
# 8127|-> kini("line"); kini("level");
# 8128| #undef kini
# 8129| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def103]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c: scope_hint: In function ‘Tcl_NRCreateCommand’
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:8288:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 8286| Tcl_CreateObjCommand(interp,cmdName,proc,clientData,deleteProc);
# 8287|
# 8288|-> cmdPtr->nreProc = nreProc;
# 8289| return (Tcl_Command) cmdPtr;
# 8290| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def104]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c: scope_hint: In function ‘TclNRInterpCoroutine’
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:9092:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘objv’
# 9090|
# 9091| if (!COR_IS_SUSPENDED(corPtr)) {
# 9092|-> Tcl_SetObjResult(interp, Tcl_ObjPrintf(
# 9093| "coroutine \"%s\" is already running",
# 9094| Tcl_GetString(objv[0])));
Error: CPPCHECK_WARNING (CWE-476): [#def105]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:9296: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 9294| Tcl_Obj *namePtr;
# 9295|
# 9296|-> TclNewObj(namePtr);
# 9297| Tcl_GetCommandFullName(interp, (Tcl_Command) corPtr->cmdPtr, namePtr);
# 9298| Tcl_SetObjResult(interp, namePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def106]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:9296: error[uninitvar]: Uninitialized variable: cachePtr
# 9294| Tcl_Obj *namePtr;
# 9295|
# 9296|-> TclNewObj(namePtr);
# 9297| Tcl_GetCommandFullName(interp, (Tcl_Command) corPtr->cmdPtr, namePtr);
# 9298| Tcl_SetObjResult(interp, namePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def107]
tcl-8.6.14-build/tcl8.6.14/generic/tclBasic.c:9296: error[uninitvar]: Uninitialized variable: namePtr
# 9294| Tcl_Obj *namePtr;
# 9295|
# 9296|-> TclNewObj(namePtr);
# 9297| Tcl_GetCommandFullName(interp, (Tcl_Command) corPtr->cmdPtr, namePtr);
# 9298| Tcl_SetObjResult(interp, namePtr);
Error: CPPCHECK_WARNING: [#def108]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def109]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:232: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 230| Tcl_Obj *objPtr;
# 231|
# 232|-> TclNewObj(objPtr);
# 233| Tcl_SetByteArrayObj(objPtr, bytes, length);
# 234| return objPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def110]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:232: error[uninitvar]: Uninitialized variable: cachePtr
# 230| Tcl_Obj *objPtr;
# 231|
# 232|-> TclNewObj(objPtr);
# 233| Tcl_SetByteArrayObj(objPtr, bytes, length);
# 234| return objPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def111]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:232: error[uninitvar]: Uninitialized variable: objPtr
# 230| Tcl_Obj *objPtr;
# 231|
# 232|-> TclNewObj(objPtr);
# 233| Tcl_SetByteArrayObj(objPtr, bytes, length);
# 234| return objPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def112]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:864: error[legacyUninitvar]: Uninitialized variable: *(&listv)
# 862| */
# 863|
# 864|-> if (TclListObjGetElements(interp, objv[arg], &listc,
# 865| &listv) != TCL_OK) {
# 866| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def113]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:933: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 931| */
# 932|
# 933|-> TclNewObj(resultPtr);
# 934| buffer = Tcl_SetByteArrayLength(resultPtr, length);
# 935| memset(buffer, 0, length);
Error: CPPCHECK_WARNING (CWE-457): [#def114]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:933: error[uninitvar]: Uninitialized variable: cachePtr
# 931| */
# 932|
# 933|-> TclNewObj(resultPtr);
# 934| buffer = Tcl_SetByteArrayLength(resultPtr, length);
# 935| memset(buffer, 0, length);
Error: CPPCHECK_WARNING (CWE-457): [#def115]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:933: error[uninitvar]: Uninitialized variable: resultPtr
# 931| */
# 932|
# 933|-> TclNewObj(resultPtr);
# 934| buffer = Tcl_SetByteArrayLength(resultPtr, length);
# 935| memset(buffer, 0, length);
Error: CPPCHECK_WARNING (CWE-476): [#def116]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:1366: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1364| }
# 1365| src = buffer + offset;
# 1366|-> TclNewObj(valuePtr);
# 1367| Tcl_SetObjLength(valuePtr, count);
# 1368| dest = TclGetString(valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def117]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:1366: error[uninitvar]: Uninitialized variable: cachePtr
# 1364| }
# 1365| src = buffer + offset;
# 1366|-> TclNewObj(valuePtr);
# 1367| Tcl_SetObjLength(valuePtr, count);
# 1368| dest = TclGetString(valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def118]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:1366: error[uninitvar]: Uninitialized variable: valuePtr
# 1364| }
# 1365| src = buffer + offset;
# 1366|-> TclNewObj(valuePtr);
# 1367| Tcl_SetObjLength(valuePtr, count);
# 1368| dest = TclGetString(valuePtr);
Error: CPPCHECK_WARNING (CWE-476): [#def119]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:1421: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1419| }
# 1420| src = buffer + offset;
# 1421|-> TclNewObj(valuePtr);
# 1422| Tcl_SetObjLength(valuePtr, count);
# 1423| dest = TclGetString(valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def120]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:1421: error[uninitvar]: Uninitialized variable: (valuePtr)->internalRep.twoPtrValue.ptr1
# 1419| }
# 1420| src = buffer + offset;
# 1421|-> TclNewObj(valuePtr);
# 1422| Tcl_SetObjLength(valuePtr, count);
# 1423| dest = TclGetString(valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def121]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:1421: error[uninitvar]: Uninitialized variable: cachePtr
# 1419| }
# 1420| src = buffer + offset;
# 1421|-> TclNewObj(valuePtr);
# 1422| Tcl_SetObjLength(valuePtr, count);
# 1423| dest = TclGetString(valuePtr);
Error: CPPCHECK_WARNING (CWE-476): [#def122]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:1505: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1503| goto done;
# 1504| }
# 1505|-> TclNewObj(valuePtr);
# 1506| src = buffer + offset;
# 1507| for (i = 0; i < count; i++) {
Error: CPPCHECK_WARNING (CWE-457): [#def123]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:1505: error[uninitvar]: Uninitialized variable: cachePtr
# 1503| goto done;
# 1504| }
# 1505|-> TclNewObj(valuePtr);
# 1506| src = buffer + offset;
# 1507| for (i = 0; i < count; i++) {
Error: CPPCHECK_WARNING (CWE-476): [#def124]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2325: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2323| }
# 2324|
# 2325|-> TclNewObj(resultObj);
# 2326| data = Tcl_GetByteArrayFromObj(objv[1], &count);
# 2327| cursor = Tcl_SetByteArrayLength(resultObj, count * 2);
Error: CPPCHECK_WARNING (CWE-457): [#def125]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2325: error[uninitvar]: Uninitialized variable: cachePtr
# 2323| }
# 2324|
# 2325|-> TclNewObj(resultObj);
# 2326| data = Tcl_GetByteArrayFromObj(objv[1], &count);
# 2327| cursor = Tcl_SetByteArrayLength(resultObj, count * 2);
Error: CPPCHECK_WARNING (CWE-457): [#def126]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2325: error[uninitvar]: Uninitialized variable: resultObj
# 2323| }
# 2324|
# 2325|-> TclNewObj(resultObj);
# 2326| data = Tcl_GetByteArrayFromObj(objv[1], &count);
# 2327| cursor = Tcl_SetByteArrayLength(resultObj, count * 2);
Error: CPPCHECK_WARNING (CWE-476): [#def127]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2383: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2381| }
# 2382|
# 2383|-> TclNewObj(resultObj);
# 2384| pure = TclIsPureByteArray(objv[objc - 1]);
# 2385| datastart = data = pure ? Tcl_GetByteArrayFromObj(objv[objc - 1], &count)
Error: CPPCHECK_WARNING (CWE-457): [#def128]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2383: error[uninitvar]: Uninitialized variable: cachePtr
# 2381| }
# 2382|
# 2383|-> TclNewObj(resultObj);
# 2384| pure = TclIsPureByteArray(objv[objc - 1]);
# 2385| datastart = data = pure ? Tcl_GetByteArrayFromObj(objv[objc - 1], &count)
Error: CPPCHECK_WARNING (CWE-457): [#def129]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2383: error[uninitvar]: Uninitialized variable: resultObj
# 2381| }
# 2382|
# 2383|-> TclNewObj(resultObj);
# 2384| pure = TclIsPureByteArray(objv[objc - 1]);
# 2385| datastart = data = pure ? Tcl_GetByteArrayFromObj(objv[objc - 1], &count)
Error: CLANG_WARNING: [#def130]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2421:2: warning[deadcode.DeadStores]: Value stored to 'value' is never read
# 2419| }
# 2420| *cursor++ = UCHAR(value);
# 2421|-> value = 0;
# 2422| }
# 2423| if (cut > size) {
Error: CPPCHECK_WARNING (CWE-476): [#def131]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2436: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2434| TclUtfToUniChar((const char *)(data - 1), &ch);
# 2435| }
# 2436|-> TclDecrRefCount(resultObj);
# 2437| Tcl_SetObjResult(interp, Tcl_ObjPrintf(
# 2438| "invalid hexadecimal digit \"%c\" at position %d",
Error: CPPCHECK_WARNING (CWE-457): [#def132]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2436: error[uninitvar]: Uninitialized variable: cachePtr
# 2434| TclUtfToUniChar((const char *)(data - 1), &ch);
# 2435| }
# 2436|-> TclDecrRefCount(resultObj);
# 2437| Tcl_SetObjResult(interp, Tcl_ObjPrintf(
# 2438| "invalid hexadecimal digit \"%c\" at position %d",
Error: CPPCHECK_WARNING (CWE-476): [#def133]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2527: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2525| }
# 2526|
# 2527|-> TclNewObj(resultObj);
# 2528| data = Tcl_GetByteArrayFromObj(objv[objc - 1], &count);
# 2529| if (count > 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def134]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2527: error[uninitvar]: Uninitialized variable: cachePtr
# 2525| }
# 2526|
# 2527|-> TclNewObj(resultObj);
# 2528| data = Tcl_GetByteArrayFromObj(objv[objc - 1], &count);
# 2529| if (count > 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def135]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2527: error[uninitvar]: Uninitialized variable: resultObj
# 2525| }
# 2526|
# 2527|-> TclNewObj(resultObj);
# 2528| data = Tcl_GetByteArrayFromObj(objv[objc - 1], &count);
# 2529| if (count > 0) {
Error: CPPCHECK_WARNING (CWE-476): [#def136]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2680: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2678| */
# 2679|
# 2680|-> TclNewObj(resultObj);
# 2681| offset = 0;
# 2682| data = Tcl_GetByteArrayFromObj(objv[objc - 1], &count);
Error: CPPCHECK_WARNING (CWE-457): [#def137]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2680: error[uninitvar]: Uninitialized variable: cachePtr
# 2678| */
# 2679|
# 2680|-> TclNewObj(resultObj);
# 2681| offset = 0;
# 2682| data = Tcl_GetByteArrayFromObj(objv[objc - 1], &count);
Error: CPPCHECK_WARNING (CWE-457): [#def138]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2680: error[uninitvar]: Uninitialized variable: resultObj
# 2678| */
# 2679|
# 2680|-> TclNewObj(resultObj);
# 2681| offset = 0;
# 2682| data = Tcl_GetByteArrayFromObj(objv[objc - 1], &count);
Error: CPPCHECK_WARNING (CWE-476): [#def139]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2777: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2775| }
# 2776|
# 2777|-> TclNewObj(resultObj);
# 2778| pure = TclIsPureByteArray(objv[objc - 1]);
# 2779| datastart = data = pure ? Tcl_GetByteArrayFromObj(objv[objc - 1], &count)
Error: CPPCHECK_WARNING (CWE-457): [#def140]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2777: error[uninitvar]: Uninitialized variable: cachePtr
# 2775| }
# 2776|
# 2777|-> TclNewObj(resultObj);
# 2778| pure = TclIsPureByteArray(objv[objc - 1]);
# 2779| datastart = data = pure ? Tcl_GetByteArrayFromObj(objv[objc - 1], &count)
Error: CPPCHECK_WARNING (CWE-457): [#def141]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2777: error[uninitvar]: Uninitialized variable: resultObj
# 2775| }
# 2776|
# 2777|-> TclNewObj(resultObj);
# 2778| pure = TclIsPureByteArray(objv[objc - 1]);
# 2779| datastart = data = pure ? Tcl_GetByteArrayFromObj(objv[objc - 1], &count)
Error: CPPCHECK_WARNING (CWE-476): [#def142]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2882: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2880| Tcl_SetObjResult(interp, Tcl_ObjPrintf("short uuencode data"));
# 2881| Tcl_SetErrorCode(interp, "TCL", "BINARY", "DECODE", "SHORT", NULL);
# 2882|-> TclDecrRefCount(resultObj);
# 2883| return TCL_ERROR;
# 2884|
Error: CPPCHECK_WARNING (CWE-457): [#def143]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2882: error[uninitvar]: Uninitialized variable: cachePtr
# 2880| Tcl_SetObjResult(interp, Tcl_ObjPrintf("short uuencode data"));
# 2881| Tcl_SetErrorCode(interp, "TCL", "BINARY", "DECODE", "SHORT", NULL);
# 2882|-> TclDecrRefCount(resultObj);
# 2883| return TCL_ERROR;
# 2884|
Error: CPPCHECK_WARNING (CWE-476): [#def144]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2895: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2893| ch, (int) (data - datastart - 1)));
# 2894| Tcl_SetErrorCode(interp, "TCL", "BINARY", "DECODE", "INVALID", NULL);
# 2895|-> TclDecrRefCount(resultObj);
# 2896| return TCL_ERROR;
# 2897| }
Error: CPPCHECK_WARNING (CWE-457): [#def145]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2895: error[uninitvar]: Uninitialized variable: cachePtr
# 2893| ch, (int) (data - datastart - 1)));
# 2894| Tcl_SetErrorCode(interp, "TCL", "BINARY", "DECODE", "INVALID", NULL);
# 2895|-> TclDecrRefCount(resultObj);
# 2896| return TCL_ERROR;
# 2897| }
Error: CPPCHECK_WARNING (CWE-476): [#def146]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2948: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2946| }
# 2947|
# 2948|-> TclNewObj(resultObj);
# 2949| pure = TclIsPureByteArray(objv[objc - 1]);
# 2950| datastart = data = pure ? Tcl_GetByteArrayFromObj(objv[objc - 1], &count)
Error: CPPCHECK_WARNING (CWE-457): [#def147]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2948: error[uninitvar]: Uninitialized variable: cachePtr
# 2946| }
# 2947|
# 2948|-> TclNewObj(resultObj);
# 2949| pure = TclIsPureByteArray(objv[objc - 1]);
# 2950| datastart = data = pure ? Tcl_GetByteArrayFromObj(objv[objc - 1], &count)
Error: CPPCHECK_WARNING (CWE-457): [#def148]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:2948: error[uninitvar]: Uninitialized variable: resultObj
# 2946| }
# 2947|
# 2948|-> TclNewObj(resultObj);
# 2949| pure = TclIsPureByteArray(objv[objc - 1]);
# 2950| datastart = data = pure ? Tcl_GetByteArrayFromObj(objv[objc - 1], &count)
Error: CPPCHECK_WARNING (CWE-476): [#def149]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:3067: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3065| (int) (data - datastart - 1)));
# 3066| Tcl_SetErrorCode(interp, "TCL", "BINARY", "DECODE", "INVALID", NULL);
# 3067|-> TclDecrRefCount(resultObj);
# 3068| return TCL_ERROR;
# 3069| }
Error: CPPCHECK_WARNING (CWE-457): [#def150]
tcl-8.6.14-build/tcl8.6.14/generic/tclBinary.c:3067: error[uninitvar]: Uninitialized variable: cachePtr
# 3065| (int) (data - datastart - 1)));
# 3066| Tcl_SetErrorCode(interp, "TCL", "BINARY", "DECODE", "INVALID", NULL);
# 3067|-> TclDecrRefCount(resultObj);
# 3068| return TCL_ERROR;
# 3069| }
Error: CPPCHECK_WARNING: [#def151]
tcl-8.6.14-build/tcl8.6.14/generic/tclClock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def152]
tcl-8.6.14-build/tcl8.6.14/generic/tclClock.c:759: error[legacyUninitvar]: Uninitialized variable: *(&rowv)
# 757| */
# 758|
# 759|-> if (TclListObjGetElements(interp, tzdata, &rowc, &rowv) != TCL_OK) {
# 760| return TCL_ERROR;
# 761| }
Error: CPPCHECK_WARNING (CWE-457): [#def153]
tcl-8.6.14-build/tcl8.6.14/generic/tclClock.c:962: error[legacyUninitvar]: Uninitialized variable: *(&rowv)
# 960| */
# 961|
# 962|-> if (TclListObjGetElements(interp, tzdata, &rowc, &rowv) != TCL_OK) {
# 963| return TCL_ERROR;
# 964| }
Error: CPPCHECK_WARNING (CWE-457): [#def154]
tcl-8.6.14-build/tcl8.6.14/generic/tclClock.c:1014: error[legacyUninitvar]: Uninitialized variable: *(&cellv)
# 1012| row = LookupLastTransition(interp, fields->seconds, rowc, rowv);
# 1013| if (row == NULL ||
# 1014|-> TclListObjGetElements(interp, row, &cellc, &cellv) != TCL_OK ||
# 1015| TclGetIntFromObj(interp, cellv[1], &fields->tzOffset) != TCL_OK) {
# 1016| return TCL_ERROR;
Error: CPPCHECK_WARNING: [#def155]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def156]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:411: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 409| dir = objv[1];
# 410| } else {
# 411|-> TclNewLiteralStringObj(dir, "~");
# 412| Tcl_IncrRefCount(dir);
# 413| }
Error: CPPCHECK_WARNING (CWE-457): [#def157]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:411: error[uninitvar]: Uninitialized variable: cachePtr
# 409| dir = objv[1];
# 410| } else {
# 411|-> TclNewLiteralStringObj(dir, "~");
# 412| Tcl_IncrRefCount(dir);
# 413| }
Error: CPPCHECK_WARNING (CWE-457): [#def158]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:411: error[uninitvar]: Uninitialized variable: dir
# 409| dir = objv[1];
# 410| } else {
# 411|-> TclNewLiteralStringObj(dir, "~");
# 412| Tcl_IncrRefCount(dir);
# 413| }
Error: CPPCHECK_WARNING (CWE-476): [#def159]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:899: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 897| }
# 898|
# 899|-> TclNewLiteralStringObj(options, "-code error -level 0");
# 900|
# 901| if (objc >= 3) { /* Process the optional info argument */
Error: CPPCHECK_WARNING (CWE-457): [#def160]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:899: error[uninitvar]: Uninitialized variable: cachePtr
# 897| }
# 898|
# 899|-> TclNewLiteralStringObj(options, "-code error -level 0");
# 900|
# 901| if (objc >= 3) { /* Process the optional info argument */
Error: CPPCHECK_WARNING (CWE-457): [#def161]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:899: error[uninitvar]: Uninitialized variable: options
# 897| }
# 898|
# 899|-> TclNewLiteralStringObj(options, "-code error -level 0");
# 900|
# 901| if (objc >= 3) { /* Process the optional info argument */
Error: CPPCHECK_WARNING (CWE-476): [#def162]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:902: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 900|
# 901| if (objc >= 3) { /* Process the optional info argument */
# 902|-> TclNewLiteralStringObj(optName, "-errorinfo");
# 903| Tcl_ListObjAppendElement(NULL, options, optName);
# 904| Tcl_ListObjAppendElement(NULL, options, objv[2]);
Error: CPPCHECK_WARNING (CWE-457): [#def163]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:902: error[uninitvar]: Uninitialized variable: cachePtr
# 900|
# 901| if (objc >= 3) { /* Process the optional info argument */
# 902|-> TclNewLiteralStringObj(optName, "-errorinfo");
# 903| Tcl_ListObjAppendElement(NULL, options, optName);
# 904| Tcl_ListObjAppendElement(NULL, options, objv[2]);
Error: CPPCHECK_WARNING (CWE-457): [#def164]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:902: error[uninitvar]: Uninitialized variable: optName
# 900|
# 901| if (objc >= 3) { /* Process the optional info argument */
# 902|-> TclNewLiteralStringObj(optName, "-errorinfo");
# 903| Tcl_ListObjAppendElement(NULL, options, optName);
# 904| Tcl_ListObjAppendElement(NULL, options, objv[2]);
Error: CPPCHECK_WARNING (CWE-476): [#def165]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:908: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 906|
# 907| if (objc >= 4) { /* Process the optional code argument */
# 908|-> TclNewLiteralStringObj(optName, "-errorcode");
# 909| Tcl_ListObjAppendElement(NULL, options, optName);
# 910| Tcl_ListObjAppendElement(NULL, options, objv[3]);
Error: CPPCHECK_WARNING (CWE-457): [#def166]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:908: error[uninitvar]: Uninitialized variable: (optName)->internalRep.twoPtrValue.ptr1
# 906|
# 907| if (objc >= 4) { /* Process the optional code argument */
# 908|-> TclNewLiteralStringObj(optName, "-errorcode");
# 909| Tcl_ListObjAppendElement(NULL, options, optName);
# 910| Tcl_ListObjAppendElement(NULL, options, objv[3]);
Error: CPPCHECK_WARNING (CWE-457): [#def167]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:908: error[uninitvar]: Uninitialized variable: cachePtr
# 906|
# 907| if (objc >= 4) { /* Process the optional code argument */
# 908|-> TclNewLiteralStringObj(optName, "-errorcode");
# 909| Tcl_ListObjAppendElement(NULL, options, optName);
# 910| Tcl_ListObjAppendElement(NULL, options, objv[3]);
Error: CPPCHECK_WARNING (CWE-476): [#def168]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:1087: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1085| }
# 1086|
# 1087|-> TclNewObj(resultPtr);
# 1088| Tcl_IncrRefCount(resultPtr);
# 1089| if (objc == 2) {
Error: CPPCHECK_WARNING (CWE-457): [#def169]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:1087: error[uninitvar]: Uninitialized variable: cachePtr
# 1085| }
# 1086|
# 1087|-> TclNewObj(resultPtr);
# 1088| Tcl_IncrRefCount(resultPtr);
# 1089| if (objc == 2) {
Error: CPPCHECK_WARNING (CWE-457): [#def170]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:1087: error[uninitvar]: Uninitialized variable: resultPtr
# 1085| }
# 1086|
# 1087|-> TclNewObj(resultPtr);
# 1088| Tcl_IncrRefCount(resultPtr);
# 1089| if (objc == 2) {
Error: CPPCHECK_WARNING (CWE-476): [#def171]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2255: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2253| switch (Tcl_FSGetPathType(objv[1])) {
# 2254| case TCL_PATH_ABSOLUTE:
# 2255|-> TclNewLiteralStringObj(typeName, "absolute");
# 2256| break;
# 2257| case TCL_PATH_RELATIVE:
Error: CPPCHECK_WARNING (CWE-457): [#def172]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2255: error[uninitvar]: Uninitialized variable: cachePtr
# 2253| switch (Tcl_FSGetPathType(objv[1])) {
# 2254| case TCL_PATH_ABSOLUTE:
# 2255|-> TclNewLiteralStringObj(typeName, "absolute");
# 2256| break;
# 2257| case TCL_PATH_RELATIVE:
Error: CPPCHECK_WARNING (CWE-457): [#def173]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2255: error[uninitvar]: Uninitialized variable: typeName
# 2253| switch (Tcl_FSGetPathType(objv[1])) {
# 2254| case TCL_PATH_ABSOLUTE:
# 2255|-> TclNewLiteralStringObj(typeName, "absolute");
# 2256| break;
# 2257| case TCL_PATH_RELATIVE:
Error: CPPCHECK_WARNING (CWE-476): [#def174]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2258: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2256| break;
# 2257| case TCL_PATH_RELATIVE:
# 2258|-> TclNewLiteralStringObj(typeName, "relative");
# 2259| break;
# 2260| case TCL_PATH_VOLUME_RELATIVE:
Error: CPPCHECK_WARNING (CWE-457): [#def175]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2258: error[uninitvar]: Uninitialized variable: (typeName)->internalRep.twoPtrValue.ptr1
# 2256| break;
# 2257| case TCL_PATH_RELATIVE:
# 2258|-> TclNewLiteralStringObj(typeName, "relative");
# 2259| break;
# 2260| case TCL_PATH_VOLUME_RELATIVE:
Error: CPPCHECK_WARNING (CWE-457): [#def176]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2258: error[uninitvar]: Uninitialized variable: cachePtr
# 2256| break;
# 2257| case TCL_PATH_RELATIVE:
# 2258|-> TclNewLiteralStringObj(typeName, "relative");
# 2259| break;
# 2260| case TCL_PATH_VOLUME_RELATIVE:
Error: CPPCHECK_WARNING (CWE-476): [#def177]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2261: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2259| break;
# 2260| case TCL_PATH_VOLUME_RELATIVE:
# 2261|-> TclNewLiteralStringObj(typeName, "volumerelative");
# 2262| break;
# 2263| default:
Error: CPPCHECK_WARNING (CWE-457): [#def178]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2261: error[uninitvar]: Uninitialized variable: cachePtr
# 2259| break;
# 2260| case TCL_PATH_VOLUME_RELATIVE:
# 2261|-> TclNewLiteralStringObj(typeName, "volumerelative");
# 2262| break;
# 2263| default:
Error: CPPCHECK_WARNING (CWE-476): [#def179]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2497: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2495| */
# 2496|
# 2497|-> STORE_ARY("dev", Tcl_NewLongObj((long)statPtr->st_dev));
# 2498| STORE_ARY("ino", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_ino));
# 2499| STORE_ARY("nlink", Tcl_NewLongObj((long)statPtr->st_nlink));
Error: CPPCHECK_WARNING (CWE-457): [#def180]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2497: error[uninitvar]: Uninitialized variable: cachePtr
# 2495| */
# 2496|
# 2497|-> STORE_ARY("dev", Tcl_NewLongObj((long)statPtr->st_dev));
# 2498| STORE_ARY("ino", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_ino));
# 2499| STORE_ARY("nlink", Tcl_NewLongObj((long)statPtr->st_nlink));
Error: CPPCHECK_WARNING (CWE-476): [#def181]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2498: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2496|
# 2497| STORE_ARY("dev", Tcl_NewLongObj((long)statPtr->st_dev));
# 2498|-> STORE_ARY("ino", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_ino));
# 2499| STORE_ARY("nlink", Tcl_NewLongObj((long)statPtr->st_nlink));
# 2500| STORE_ARY("uid", Tcl_NewLongObj((long)statPtr->st_uid));
Error: CPPCHECK_WARNING (CWE-457): [#def182]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2498: error[uninitvar]: Uninitialized variable: cachePtr
# 2496|
# 2497| STORE_ARY("dev", Tcl_NewLongObj((long)statPtr->st_dev));
# 2498|-> STORE_ARY("ino", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_ino));
# 2499| STORE_ARY("nlink", Tcl_NewLongObj((long)statPtr->st_nlink));
# 2500| STORE_ARY("uid", Tcl_NewLongObj((long)statPtr->st_uid));
Error: CPPCHECK_WARNING (CWE-476): [#def183]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2499: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2497| STORE_ARY("dev", Tcl_NewLongObj((long)statPtr->st_dev));
# 2498| STORE_ARY("ino", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_ino));
# 2499|-> STORE_ARY("nlink", Tcl_NewLongObj((long)statPtr->st_nlink));
# 2500| STORE_ARY("uid", Tcl_NewLongObj((long)statPtr->st_uid));
# 2501| STORE_ARY("gid", Tcl_NewLongObj((long)statPtr->st_gid));
Error: CPPCHECK_WARNING (CWE-457): [#def184]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2499: error[uninitvar]: Uninitialized variable: cachePtr
# 2497| STORE_ARY("dev", Tcl_NewLongObj((long)statPtr->st_dev));
# 2498| STORE_ARY("ino", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_ino));
# 2499|-> STORE_ARY("nlink", Tcl_NewLongObj((long)statPtr->st_nlink));
# 2500| STORE_ARY("uid", Tcl_NewLongObj((long)statPtr->st_uid));
# 2501| STORE_ARY("gid", Tcl_NewLongObj((long)statPtr->st_gid));
Error: CPPCHECK_WARNING (CWE-476): [#def185]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2500: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2498| STORE_ARY("ino", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_ino));
# 2499| STORE_ARY("nlink", Tcl_NewLongObj((long)statPtr->st_nlink));
# 2500|-> STORE_ARY("uid", Tcl_NewLongObj((long)statPtr->st_uid));
# 2501| STORE_ARY("gid", Tcl_NewLongObj((long)statPtr->st_gid));
# 2502| STORE_ARY("size", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_size));
Error: CPPCHECK_WARNING (CWE-457): [#def186]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2500: error[uninitvar]: Uninitialized variable: cachePtr
# 2498| STORE_ARY("ino", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_ino));
# 2499| STORE_ARY("nlink", Tcl_NewLongObj((long)statPtr->st_nlink));
# 2500|-> STORE_ARY("uid", Tcl_NewLongObj((long)statPtr->st_uid));
# 2501| STORE_ARY("gid", Tcl_NewLongObj((long)statPtr->st_gid));
# 2502| STORE_ARY("size", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_size));
Error: CPPCHECK_WARNING (CWE-476): [#def187]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2501: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2499| STORE_ARY("nlink", Tcl_NewLongObj((long)statPtr->st_nlink));
# 2500| STORE_ARY("uid", Tcl_NewLongObj((long)statPtr->st_uid));
# 2501|-> STORE_ARY("gid", Tcl_NewLongObj((long)statPtr->st_gid));
# 2502| STORE_ARY("size", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_size));
# 2503| #ifdef HAVE_STRUCT_STAT_ST_BLOCKS
Error: CPPCHECK_WARNING (CWE-457): [#def188]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2501: error[uninitvar]: Uninitialized variable: cachePtr
# 2499| STORE_ARY("nlink", Tcl_NewLongObj((long)statPtr->st_nlink));
# 2500| STORE_ARY("uid", Tcl_NewLongObj((long)statPtr->st_uid));
# 2501|-> STORE_ARY("gid", Tcl_NewLongObj((long)statPtr->st_gid));
# 2502| STORE_ARY("size", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_size));
# 2503| #ifdef HAVE_STRUCT_STAT_ST_BLOCKS
Error: CPPCHECK_WARNING (CWE-476): [#def189]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2502: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2500| STORE_ARY("uid", Tcl_NewLongObj((long)statPtr->st_uid));
# 2501| STORE_ARY("gid", Tcl_NewLongObj((long)statPtr->st_gid));
# 2502|-> STORE_ARY("size", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_size));
# 2503| #ifdef HAVE_STRUCT_STAT_ST_BLOCKS
# 2504| STORE_ARY("blocks", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_blocks));
Error: CPPCHECK_WARNING (CWE-457): [#def190]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2502: error[uninitvar]: Uninitialized variable: cachePtr
# 2500| STORE_ARY("uid", Tcl_NewLongObj((long)statPtr->st_uid));
# 2501| STORE_ARY("gid", Tcl_NewLongObj((long)statPtr->st_gid));
# 2502|-> STORE_ARY("size", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_size));
# 2503| #ifdef HAVE_STRUCT_STAT_ST_BLOCKS
# 2504| STORE_ARY("blocks", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_blocks));
Error: CPPCHECK_WARNING (CWE-476): [#def191]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2504: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2502| STORE_ARY("size", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_size));
# 2503| #ifdef HAVE_STRUCT_STAT_ST_BLOCKS
# 2504|-> STORE_ARY("blocks", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_blocks));
# 2505| #endif
# 2506| #ifdef HAVE_STRUCT_STAT_ST_BLKSIZE
Error: CPPCHECK_WARNING (CWE-457): [#def192]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2504: error[uninitvar]: Uninitialized variable: cachePtr
# 2502| STORE_ARY("size", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_size));
# 2503| #ifdef HAVE_STRUCT_STAT_ST_BLOCKS
# 2504|-> STORE_ARY("blocks", Tcl_NewWideIntObj((Tcl_WideInt)statPtr->st_blocks));
# 2505| #endif
# 2506| #ifdef HAVE_STRUCT_STAT_ST_BLKSIZE
Error: CPPCHECK_WARNING (CWE-476): [#def193]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2507: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2505| #endif
# 2506| #ifdef HAVE_STRUCT_STAT_ST_BLKSIZE
# 2507|-> STORE_ARY("blksize", Tcl_NewLongObj((long)statPtr->st_blksize));
# 2508| #endif
# 2509| STORE_ARY("atime", Tcl_NewWideIntObj(Tcl_GetAccessTimeFromStat(statPtr)));
Error: CPPCHECK_WARNING (CWE-457): [#def194]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2507: error[uninitvar]: Uninitialized variable: cachePtr
# 2505| #endif
# 2506| #ifdef HAVE_STRUCT_STAT_ST_BLKSIZE
# 2507|-> STORE_ARY("blksize", Tcl_NewLongObj((long)statPtr->st_blksize));
# 2508| #endif
# 2509| STORE_ARY("atime", Tcl_NewWideIntObj(Tcl_GetAccessTimeFromStat(statPtr)));
Error: CPPCHECK_WARNING (CWE-476): [#def195]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2509: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2507| STORE_ARY("blksize", Tcl_NewLongObj((long)statPtr->st_blksize));
# 2508| #endif
# 2509|-> STORE_ARY("atime", Tcl_NewWideIntObj(Tcl_GetAccessTimeFromStat(statPtr)));
# 2510| STORE_ARY("mtime", Tcl_NewWideIntObj(Tcl_GetModificationTimeFromStat(statPtr)));
# 2511| STORE_ARY("ctime", Tcl_NewWideIntObj(Tcl_GetChangeTimeFromStat(statPtr)));
Error: CPPCHECK_WARNING (CWE-457): [#def196]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2509: error[uninitvar]: Uninitialized variable: cachePtr
# 2507| STORE_ARY("blksize", Tcl_NewLongObj((long)statPtr->st_blksize));
# 2508| #endif
# 2509|-> STORE_ARY("atime", Tcl_NewWideIntObj(Tcl_GetAccessTimeFromStat(statPtr)));
# 2510| STORE_ARY("mtime", Tcl_NewWideIntObj(Tcl_GetModificationTimeFromStat(statPtr)));
# 2511| STORE_ARY("ctime", Tcl_NewWideIntObj(Tcl_GetChangeTimeFromStat(statPtr)));
Error: CPPCHECK_WARNING (CWE-476): [#def197]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2510: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2508| #endif
# 2509| STORE_ARY("atime", Tcl_NewWideIntObj(Tcl_GetAccessTimeFromStat(statPtr)));
# 2510|-> STORE_ARY("mtime", Tcl_NewWideIntObj(Tcl_GetModificationTimeFromStat(statPtr)));
# 2511| STORE_ARY("ctime", Tcl_NewWideIntObj(Tcl_GetChangeTimeFromStat(statPtr)));
# 2512| mode = (unsigned short) statPtr->st_mode;
Error: CPPCHECK_WARNING (CWE-457): [#def198]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2510: error[uninitvar]: Uninitialized variable: cachePtr
# 2508| #endif
# 2509| STORE_ARY("atime", Tcl_NewWideIntObj(Tcl_GetAccessTimeFromStat(statPtr)));
# 2510|-> STORE_ARY("mtime", Tcl_NewWideIntObj(Tcl_GetModificationTimeFromStat(statPtr)));
# 2511| STORE_ARY("ctime", Tcl_NewWideIntObj(Tcl_GetChangeTimeFromStat(statPtr)));
# 2512| mode = (unsigned short) statPtr->st_mode;
Error: CPPCHECK_WARNING (CWE-476): [#def199]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2511: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2509| STORE_ARY("atime", Tcl_NewWideIntObj(Tcl_GetAccessTimeFromStat(statPtr)));
# 2510| STORE_ARY("mtime", Tcl_NewWideIntObj(Tcl_GetModificationTimeFromStat(statPtr)));
# 2511|-> STORE_ARY("ctime", Tcl_NewWideIntObj(Tcl_GetChangeTimeFromStat(statPtr)));
# 2512| mode = (unsigned short) statPtr->st_mode;
# 2513| STORE_ARY("mode", Tcl_NewIntObj(mode));
Error: CPPCHECK_WARNING (CWE-457): [#def200]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2511: error[uninitvar]: Uninitialized variable: cachePtr
# 2509| STORE_ARY("atime", Tcl_NewWideIntObj(Tcl_GetAccessTimeFromStat(statPtr)));
# 2510| STORE_ARY("mtime", Tcl_NewWideIntObj(Tcl_GetModificationTimeFromStat(statPtr)));
# 2511|-> STORE_ARY("ctime", Tcl_NewWideIntObj(Tcl_GetChangeTimeFromStat(statPtr)));
# 2512| mode = (unsigned short) statPtr->st_mode;
# 2513| STORE_ARY("mode", Tcl_NewIntObj(mode));
Error: CPPCHECK_WARNING (CWE-476): [#def201]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2513: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2511| STORE_ARY("ctime", Tcl_NewWideIntObj(Tcl_GetChangeTimeFromStat(statPtr)));
# 2512| mode = (unsigned short) statPtr->st_mode;
# 2513|-> STORE_ARY("mode", Tcl_NewIntObj(mode));
# 2514| STORE_ARY("type", Tcl_NewStringObj(GetTypeFromMode(mode), -1));
# 2515| #undef STORE_ARY
Error: CPPCHECK_WARNING (CWE-457): [#def202]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2513: error[uninitvar]: Uninitialized variable: cachePtr
# 2511| STORE_ARY("ctime", Tcl_NewWideIntObj(Tcl_GetChangeTimeFromStat(statPtr)));
# 2512| mode = (unsigned short) statPtr->st_mode;
# 2513|-> STORE_ARY("mode", Tcl_NewIntObj(mode));
# 2514| STORE_ARY("type", Tcl_NewStringObj(GetTypeFromMode(mode), -1));
# 2515| #undef STORE_ARY
Error: CPPCHECK_WARNING (CWE-476): [#def203]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2514: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2512| mode = (unsigned short) statPtr->st_mode;
# 2513| STORE_ARY("mode", Tcl_NewIntObj(mode));
# 2514|-> STORE_ARY("type", Tcl_NewStringObj(GetTypeFromMode(mode), -1));
# 2515| #undef STORE_ARY
# 2516|
Error: CPPCHECK_WARNING (CWE-457): [#def204]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2514: error[uninitvar]: Uninitialized variable: cachePtr
# 2512| mode = (unsigned short) statPtr->st_mode;
# 2513| STORE_ARY("mode", Tcl_NewIntObj(mode));
# 2514|-> STORE_ARY("type", Tcl_NewStringObj(GetTypeFromMode(mode), -1));
# 2515| #undef STORE_ARY
# 2516|
Error: CPPCHECK_WARNING (CWE-476): [#def205]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2682: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2680|
# 2681| Tcl_ResetResult(interp);
# 2682|-> TclNewObj(boolObj);
# 2683| TclNRAddCallback(interp, ForCondCallback, iterPtr, boolObj, NULL,
# 2684| NULL);
Error: CPPCHECK_WARNING (CWE-457): [#def206]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2682: error[uninitvar]: Uninitialized variable: boolObj
# 2680|
# 2681| Tcl_ResetResult(interp);
# 2682|-> TclNewObj(boolObj);
# 2683| TclNRAddCallback(interp, ForCondCallback, iterPtr, boolObj, NULL,
# 2684| NULL);
Error: CPPCHECK_WARNING (CWE-457): [#def207]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:2682: error[uninitvar]: Uninitialized variable: cachePtr
# 2680|
# 2681| Tcl_ResetResult(interp);
# 2682|-> TclNewObj(boolObj);
# 2683| TclNRAddCallback(interp, ForCondCallback, iterPtr, boolObj, NULL,
# 2684| NULL);
Error: CPPCHECK_WARNING (CWE-476): [#def208]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:3052: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3050| valuePtr = statePtr->argvList[i][k];
# 3051| } else {
# 3052|-> TclNewObj(valuePtr); /* Empty string */
# 3053| }
# 3054|
Error: CPPCHECK_WARNING (CWE-457): [#def209]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:3052: error[uninitvar]: Uninitialized variable: cachePtr
# 3050| valuePtr = statePtr->argvList[i][k];
# 3051| } else {
# 3052|-> TclNewObj(valuePtr); /* Empty string */
# 3053| }
# 3054|
Error: CPPCHECK_WARNING (CWE-457): [#def210]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:3052: error[uninitvar]: Uninitialized variable: valuePtr
# 3050| valuePtr = statePtr->argvList[i][k];
# 3051| } else {
# 3052|-> TclNewObj(valuePtr); /* Empty string */
# 3053| }
# 3054|
Error: CPPCHECK_WARNING (CWE-476): [#def211]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:3084: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3082| for (i=0 ; i<statePtr->numLists ; i++) {
# 3083| if (statePtr->vCopyList[i]) {
# 3084|-> TclDecrRefCount(statePtr->vCopyList[i]);
# 3085| }
# 3086| if (statePtr->aCopyList[i]) {
Error: CPPCHECK_WARNING (CWE-457): [#def212]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:3084: error[uninitvar]: Uninitialized variable: cachePtr
# 3082| for (i=0 ; i<statePtr->numLists ; i++) {
# 3083| if (statePtr->vCopyList[i]) {
# 3084|-> TclDecrRefCount(statePtr->vCopyList[i]);
# 3085| }
# 3086| if (statePtr->aCopyList[i]) {
Error: CPPCHECK_WARNING (CWE-476): [#def213]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:3087: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3085| }
# 3086| if (statePtr->aCopyList[i]) {
# 3087|-> TclDecrRefCount(statePtr->aCopyList[i]);
# 3088| }
# 3089| }
Error: CPPCHECK_WARNING (CWE-457): [#def214]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:3087: error[uninitvar]: Uninitialized variable: cachePtr
# 3085| }
# 3086| if (statePtr->aCopyList[i]) {
# 3087|-> TclDecrRefCount(statePtr->aCopyList[i]);
# 3088| }
# 3089| }
Error: CPPCHECK_WARNING (CWE-476): [#def215]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:3091: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3089| }
# 3090| if (statePtr->resultList != NULL) {
# 3091|-> TclDecrRefCount(statePtr->resultList);
# 3092| }
# 3093| TclStackFree(interp, statePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def216]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdAH.c:3091: error[uninitvar]: Uninitialized variable: cachePtr
# 3089| }
# 3090| if (statePtr->resultList != NULL) {
# 3091|-> TclDecrRefCount(statePtr->resultList);
# 3092| }
# 3093| TclStackFree(interp, statePtr);
Error: CPPCHECK_WARNING: [#def217]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def218]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:237: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 235| */
# 236|
# 237|-> TclNewObj(boolObj);
# 238| Tcl_NRAddCallback(interp, IfConditionCallback, INT2PTR(objc),
# 239| (ClientData) objv, INT2PTR(1), boolObj);
Error: CPPCHECK_WARNING (CWE-457): [#def219]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:237: error[uninitvar]: Uninitialized variable: boolObj
# 235| */
# 236|
# 237|-> TclNewObj(boolObj);
# 238| Tcl_NRAddCallback(interp, IfConditionCallback, INT2PTR(objc),
# 239| (ClientData) objv, INT2PTR(1), boolObj);
Error: CPPCHECK_WARNING (CWE-457): [#def220]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:237: error[uninitvar]: Uninitialized variable: cachePtr
# 235| */
# 236|
# 237|-> TclNewObj(boolObj);
# 238| Tcl_NRAddCallback(interp, IfConditionCallback, INT2PTR(objc),
# 239| (ClientData) objv, INT2PTR(1), boolObj);
Error: CPPCHECK_WARNING (CWE-476): [#def221]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:258: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 256|
# 257| if (result != TCL_OK) {
# 258|-> TclDecrRefCount(boolObj);
# 259| return result;
# 260| }
Error: CPPCHECK_WARNING (CWE-457): [#def222]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:258: error[uninitvar]: Uninitialized variable: cachePtr
# 256|
# 257| if (result != TCL_OK) {
# 258|-> TclDecrRefCount(boolObj);
# 259| return result;
# 260| }
Error: CPPCHECK_WARNING (CWE-476): [#def223]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:262: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 260| }
# 261| if (Tcl_GetBooleanFromObj(interp, boolObj, &value) != TCL_OK) {
# 262|-> TclDecrRefCount(boolObj);
# 263| return TCL_ERROR;
# 264| }
Error: CPPCHECK_WARNING (CWE-457): [#def224]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:262: error[uninitvar]: Uninitialized variable: cachePtr
# 260| }
# 261| if (Tcl_GetBooleanFromObj(interp, boolObj, &value) != TCL_OK) {
# 262|-> TclDecrRefCount(boolObj);
# 263| return TCL_ERROR;
# 264| }
Error: CPPCHECK_WARNING (CWE-476): [#def225]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:265: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 263| return TCL_ERROR;
# 264| }
# 265|-> TclDecrRefCount(boolObj);
# 266|
# 267| while (1) {
Error: CPPCHECK_WARNING (CWE-457): [#def226]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:265: error[uninitvar]: Uninitialized variable: cachePtr
# 263| return TCL_ERROR;
# 264| }
# 265|-> TclDecrRefCount(boolObj);
# 266|
# 267| while (1) {
Error: CPPCHECK_WARNING (CWE-476): [#def227]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:322: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 320| }
# 321| if (!thenScriptIndex) {
# 322|-> TclNewObj(boolObj);
# 323| Tcl_NRAddCallback(interp, IfConditionCallback, data[0], data[1],
# 324| INT2PTR(i), boolObj);
Error: CPPCHECK_WARNING (CWE-457): [#def228]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:322: error[uninitvar]: Uninitialized variable: boolObj
# 320| }
# 321| if (!thenScriptIndex) {
# 322|-> TclNewObj(boolObj);
# 323| Tcl_NRAddCallback(interp, IfConditionCallback, data[0], data[1],
# 324| INT2PTR(i), boolObj);
Error: CPPCHECK_WARNING (CWE-457): [#def229]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:322: error[uninitvar]: Uninitialized variable: cachePtr
# 320| }
# 321| if (!thenScriptIndex) {
# 322|-> TclNewObj(boolObj);
# 323| Tcl_NRAddCallback(interp, IfConditionCallback, data[0], data[1],
# 324| INT2PTR(i), boolObj);
Error: CPPCHECK_WARNING (CWE-476): [#def230]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:404: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 402| incrPtr = objv[2];
# 403| } else {
# 404|-> TclNewIntObj(incrPtr, 1);
# 405| }
# 406| Tcl_IncrRefCount(incrPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def231]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:404: error[uninitvar]: Uninitialized variable: cachePtr
# 402| incrPtr = objv[2];
# 403| } else {
# 404|-> TclNewIntObj(incrPtr, 1);
# 405| }
# 406| Tcl_IncrRefCount(incrPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def232]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:404: error[uninitvar]: Uninitialized variable: incrPtr
# 402| incrPtr = objv[2];
# 403| } else {
# 404|-> TclNewIntObj(incrPtr, 1);
# 405| }
# 406| Tcl_IncrRefCount(incrPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def233]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:722: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 720| if (specificNsInPattern) {
# 721| cmd = (Tcl_Command)Tcl_GetHashValue(entryPtr);
# 722|-> TclNewObj(elemObjPtr);
# 723| Tcl_GetCommandFullName(interp, cmd, elemObjPtr);
# 724| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def234]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:722: error[uninitvar]: Uninitialized variable: cachePtr
# 720| if (specificNsInPattern) {
# 721| cmd = (Tcl_Command)Tcl_GetHashValue(entryPtr);
# 722|-> TclNewObj(elemObjPtr);
# 723| Tcl_GetCommandFullName(interp, cmd, elemObjPtr);
# 724| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def235]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:722: error[uninitvar]: Uninitialized variable: elemObjPtr
# 720| if (specificNsInPattern) {
# 721| cmd = (Tcl_Command)Tcl_GetHashValue(entryPtr);
# 722|-> TclNewObj(elemObjPtr);
# 723| Tcl_GetCommandFullName(interp, cmd, elemObjPtr);
# 724| } else {
Error: CPPCHECK_WARNING (CWE-476): [#def236]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:773: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 771| if (specificNsInPattern) {
# 772| cmd = (Tcl_Command)Tcl_GetHashValue(entryPtr);
# 773|-> TclNewObj(elemObjPtr);
# 774| Tcl_GetCommandFullName(interp, cmd, elemObjPtr);
# 775| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def237]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:773: error[uninitvar]: Uninitialized variable: (elemObjPtr)->internalRep.twoPtrValue.ptr1
# 771| if (specificNsInPattern) {
# 772| cmd = (Tcl_Command)Tcl_GetHashValue(entryPtr);
# 773|-> TclNewObj(elemObjPtr);
# 774| Tcl_GetCommandFullName(interp, cmd, elemObjPtr);
# 775| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def238]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:773: error[uninitvar]: Uninitialized variable: cachePtr
# 771| if (specificNsInPattern) {
# 772| cmd = (Tcl_Command)Tcl_GetHashValue(entryPtr);
# 773|-> TclNewObj(elemObjPtr);
# 774| Tcl_GetCommandFullName(interp, cmd, elemObjPtr);
# 775| } else {
Error: CPPCHECK_WARNING (CWE-476): [#def239]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:860: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 858| Tcl_ListObjAppendElement(interp, listPtr, elemObjPtr);
# 859| } else {
# 860|-> TclDecrRefCount(elemObjPtr);
# 861| }
# 862| }
Error: CPPCHECK_WARNING (CWE-457): [#def240]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:860: error[uninitvar]: Uninitialized variable: cachePtr
# 858| Tcl_ListObjAppendElement(interp, listPtr, elemObjPtr);
# 859| } else {
# 860|-> TclDecrRefCount(elemObjPtr);
# 861| }
# 862| }
Error: CPPCHECK_WARNING (CWE-476): [#def241]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:886: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 884| Tcl_ListObjAppendElement(interp, listPtr, elemObjPtr);
# 885| } else {
# 886|-> TclDecrRefCount(elemObjPtr);
# 887| }
# 888| }
Error: CPPCHECK_WARNING (CWE-457): [#def242]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:886: error[uninitvar]: Uninitialized variable: cachePtr
# 884| Tcl_ListObjAppendElement(interp, listPtr, elemObjPtr);
# 885| } else {
# 886|-> TclDecrRefCount(elemObjPtr);
# 887| }
# 888| }
Error: CPPCHECK_WARNING (CWE-476): [#def243]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1002: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1000| Tcl_Obj *nullObjPtr;
# 1001|
# 1002|-> TclNewObj(nullObjPtr);
# 1003| valueObjPtr = Tcl_ObjSetVar2(interp, objv[3], NULL,
# 1004| nullObjPtr, TCL_LEAVE_ERR_MSG);
Error: CPPCHECK_WARNING (CWE-457): [#def244]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1002: error[uninitvar]: Uninitialized variable: cachePtr
# 1000| Tcl_Obj *nullObjPtr;
# 1001|
# 1002|-> TclNewObj(nullObjPtr);
# 1003| valueObjPtr = Tcl_ObjSetVar2(interp, objv[3], NULL,
# 1004| nullObjPtr, TCL_LEAVE_ERR_MSG);
Error: CPPCHECK_WARNING (CWE-457): [#def245]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1002: error[uninitvar]: Uninitialized variable: nullObjPtr
# 1000| Tcl_Obj *nullObjPtr;
# 1001|
# 1002|-> TclNewObj(nullObjPtr);
# 1003| valueObjPtr = Tcl_ObjSetVar2(interp, objv[3], NULL,
# 1004| nullObjPtr, TCL_LEAVE_ERR_MSG);
Error: CPPCHECK_WARNING (CWE-476): [#def246]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1302: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1300| */
# 1301|
# 1302|-> ADD_PAIR("type", Tcl_NewStringObj(typeString[framePtr->type], -1));
# 1303| if (framePtr->line) {
# 1304| ADD_PAIR("line", Tcl_NewIntObj(framePtr->line[0]));
Error: CPPCHECK_WARNING (CWE-457): [#def247]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1302: error[uninitvar]: Uninitialized variable: cachePtr
# 1300| */
# 1301|
# 1302|-> ADD_PAIR("type", Tcl_NewStringObj(typeString[framePtr->type], -1));
# 1303| if (framePtr->line) {
# 1304| ADD_PAIR("line", Tcl_NewIntObj(framePtr->line[0]));
Error: CPPCHECK_WARNING (CWE-457): [#def248]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1302: error[uninitvar]: Uninitialized variable: tmpObj
# 1300| */
# 1301|
# 1302|-> ADD_PAIR("type", Tcl_NewStringObj(typeString[framePtr->type], -1));
# 1303| if (framePtr->line) {
# 1304| ADD_PAIR("line", Tcl_NewIntObj(framePtr->line[0]));
Error: CPPCHECK_WARNING (CWE-476): [#def249]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1304: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1302| ADD_PAIR("type", Tcl_NewStringObj(typeString[framePtr->type], -1));
# 1303| if (framePtr->line) {
# 1304|-> ADD_PAIR("line", Tcl_NewIntObj(framePtr->line[0]));
# 1305| } else {
# 1306| ADD_PAIR("line", Tcl_NewIntObj(1));
Error: CPPCHECK_WARNING (CWE-457): [#def250]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1304: error[uninitvar]: Uninitialized variable: (tmpObj)->internalRep.twoPtrValue.ptr1
# 1302| ADD_PAIR("type", Tcl_NewStringObj(typeString[framePtr->type], -1));
# 1303| if (framePtr->line) {
# 1304|-> ADD_PAIR("line", Tcl_NewIntObj(framePtr->line[0]));
# 1305| } else {
# 1306| ADD_PAIR("line", Tcl_NewIntObj(1));
Error: CPPCHECK_WARNING (CWE-457): [#def251]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1304: error[uninitvar]: Uninitialized variable: cachePtr
# 1302| ADD_PAIR("type", Tcl_NewStringObj(typeString[framePtr->type], -1));
# 1303| if (framePtr->line) {
# 1304|-> ADD_PAIR("line", Tcl_NewIntObj(framePtr->line[0]));
# 1305| } else {
# 1306| ADD_PAIR("line", Tcl_NewIntObj(1));
Error: CPPCHECK_WARNING (CWE-476): [#def252]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1306: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1304| ADD_PAIR("line", Tcl_NewIntObj(framePtr->line[0]));
# 1305| } else {
# 1306|-> ADD_PAIR("line", Tcl_NewIntObj(1));
# 1307| }
# 1308| ADD_PAIR("cmd", TclGetSourceFromFrame(framePtr, 0, NULL));
Error: CPPCHECK_WARNING (CWE-457): [#def253]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1306: error[uninitvar]: Uninitialized variable: cachePtr
# 1304| ADD_PAIR("line", Tcl_NewIntObj(framePtr->line[0]));
# 1305| } else {
# 1306|-> ADD_PAIR("line", Tcl_NewIntObj(1));
# 1307| }
# 1308| ADD_PAIR("cmd", TclGetSourceFromFrame(framePtr, 0, NULL));
Error: CPPCHECK_WARNING (CWE-476): [#def254]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1308: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1306| ADD_PAIR("line", Tcl_NewIntObj(1));
# 1307| }
# 1308|-> ADD_PAIR("cmd", TclGetSourceFromFrame(framePtr, 0, NULL));
# 1309| break;
# 1310|
Error: CPPCHECK_WARNING (CWE-457): [#def255]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1308: error[uninitvar]: Uninitialized variable: cachePtr
# 1306| ADD_PAIR("line", Tcl_NewIntObj(1));
# 1307| }
# 1308|-> ADD_PAIR("cmd", TclGetSourceFromFrame(framePtr, 0, NULL));
# 1309| break;
# 1310|
Error: CPPCHECK_WARNING (CWE-476): [#def256]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1316: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1314| */
# 1315|
# 1316|-> ADD_PAIR("type", Tcl_NewStringObj(typeString[framePtr->type], -1));
# 1317| break;
# 1318|
Error: CPPCHECK_WARNING (CWE-457): [#def257]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1316: error[uninitvar]: Uninitialized variable: cachePtr
# 1314| */
# 1315|
# 1316|-> ADD_PAIR("type", Tcl_NewStringObj(typeString[framePtr->type], -1));
# 1317| break;
# 1318|
Error: CPPCHECK_WARNING (CWE-476): [#def258]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1341: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1339| */
# 1340|
# 1341|-> ADD_PAIR("type", Tcl_NewStringObj(typeString[fPtr->type], -1));
# 1342| if (fPtr->line) {
# 1343| ADD_PAIR("line", Tcl_NewIntObj(fPtr->line[0]));
Error: CPPCHECK_WARNING (CWE-457): [#def259]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1341: error[uninitvar]: Uninitialized variable: cachePtr
# 1339| */
# 1340|
# 1341|-> ADD_PAIR("type", Tcl_NewStringObj(typeString[fPtr->type], -1));
# 1342| if (fPtr->line) {
# 1343| ADD_PAIR("line", Tcl_NewIntObj(fPtr->line[0]));
Error: CPPCHECK_WARNING (CWE-476): [#def260]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1343: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1341| ADD_PAIR("type", Tcl_NewStringObj(typeString[fPtr->type], -1));
# 1342| if (fPtr->line) {
# 1343|-> ADD_PAIR("line", Tcl_NewIntObj(fPtr->line[0]));
# 1344| }
# 1345|
Error: CPPCHECK_WARNING (CWE-457): [#def261]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1343: error[uninitvar]: Uninitialized variable: cachePtr
# 1341| ADD_PAIR("type", Tcl_NewStringObj(typeString[fPtr->type], -1));
# 1342| if (fPtr->line) {
# 1343|-> ADD_PAIR("line", Tcl_NewIntObj(fPtr->line[0]));
# 1344| }
# 1345|
Error: CPPCHECK_WARNING (CWE-476): [#def262]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1347: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1345|
# 1346| if (fPtr->type == TCL_LOCATION_SOURCE) {
# 1347|-> ADD_PAIR("file", fPtr->data.eval.path);
# 1348|
# 1349| /*
Error: CPPCHECK_WARNING (CWE-457): [#def263]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1347: error[uninitvar]: Uninitialized variable: cachePtr
# 1345|
# 1346| if (fPtr->type == TCL_LOCATION_SOURCE) {
# 1347|-> ADD_PAIR("file", fPtr->data.eval.path);
# 1348|
# 1349| /*
Error: CPPCHECK_WARNING (CWE-476): [#def264]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1356: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1354| }
# 1355|
# 1356|-> ADD_PAIR("cmd", TclGetSourceFromFrame(fPtr, 0, NULL));
# 1357| if (fPtr->cmdObj && framePtr->cmdObj == NULL) {
# 1358| needsFree = lc - 1;
Error: CPPCHECK_WARNING (CWE-457): [#def265]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1356: error[uninitvar]: Uninitialized variable: cachePtr
# 1354| }
# 1355|
# 1356|-> ADD_PAIR("cmd", TclGetSourceFromFrame(fPtr, 0, NULL));
# 1357| if (fPtr->cmdObj && framePtr->cmdObj == NULL) {
# 1358| needsFree = lc - 1;
Error: CPPCHECK_WARNING (CWE-476): [#def266]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1369: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1367| */
# 1368|
# 1369|-> ADD_PAIR("type", Tcl_NewStringObj(typeString[framePtr->type], -1));
# 1370| ADD_PAIR("line", Tcl_NewIntObj(framePtr->line[0]));
# 1371| ADD_PAIR("file", framePtr->data.eval.path);
Error: CPPCHECK_WARNING (CWE-457): [#def267]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1369: error[uninitvar]: Uninitialized variable: cachePtr
# 1367| */
# 1368|
# 1369|-> ADD_PAIR("type", Tcl_NewStringObj(typeString[framePtr->type], -1));
# 1370| ADD_PAIR("line", Tcl_NewIntObj(framePtr->line[0]));
# 1371| ADD_PAIR("file", framePtr->data.eval.path);
Error: CPPCHECK_WARNING (CWE-476): [#def268]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1370: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1368|
# 1369| ADD_PAIR("type", Tcl_NewStringObj(typeString[framePtr->type], -1));
# 1370|-> ADD_PAIR("line", Tcl_NewIntObj(framePtr->line[0]));
# 1371| ADD_PAIR("file", framePtr->data.eval.path);
# 1372|
Error: CPPCHECK_WARNING (CWE-457): [#def269]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1370: error[uninitvar]: Uninitialized variable: cachePtr
# 1368|
# 1369| ADD_PAIR("type", Tcl_NewStringObj(typeString[framePtr->type], -1));
# 1370|-> ADD_PAIR("line", Tcl_NewIntObj(framePtr->line[0]));
# 1371| ADD_PAIR("file", framePtr->data.eval.path);
# 1372|
Error: CPPCHECK_WARNING (CWE-476): [#def270]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1371: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1369| ADD_PAIR("type", Tcl_NewStringObj(typeString[framePtr->type], -1));
# 1370| ADD_PAIR("line", Tcl_NewIntObj(framePtr->line[0]));
# 1371|-> ADD_PAIR("file", framePtr->data.eval.path);
# 1372|
# 1373| /*
Error: CPPCHECK_WARNING (CWE-457): [#def271]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1371: error[uninitvar]: Uninitialized variable: cachePtr
# 1369| ADD_PAIR("type", Tcl_NewStringObj(typeString[framePtr->type], -1));
# 1370| ADD_PAIR("line", Tcl_NewIntObj(framePtr->line[0]));
# 1371|-> ADD_PAIR("file", framePtr->data.eval.path);
# 1372|
# 1373| /*
Error: CPPCHECK_WARNING (CWE-476): [#def272]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1378: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1376| */
# 1377|
# 1378|-> ADD_PAIR("cmd", TclGetSourceFromFrame(framePtr, 0, NULL));
# 1379| break;
# 1380|
Error: CPPCHECK_WARNING (CWE-457): [#def273]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1378: error[uninitvar]: Uninitialized variable: cachePtr
# 1376| */
# 1377|
# 1378|-> ADD_PAIR("cmd", TclGetSourceFromFrame(framePtr, 0, NULL));
# 1379| break;
# 1380|
Error: CPPCHECK_WARNING (CWE-476): [#def274]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1401: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1399| */
# 1400|
# 1401|-> TclNewObj(procNameObj);
# 1402| Tcl_GetCommandFullName(interp, (Tcl_Command) procPtr->cmdPtr,
# 1403| procNameObj);
Error: CPPCHECK_WARNING (CWE-457): [#def275]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1401: error[uninitvar]: Uninitialized variable: cachePtr
# 1399| */
# 1400|
# 1401|-> TclNewObj(procNameObj);
# 1402| Tcl_GetCommandFullName(interp, (Tcl_Command) procPtr->cmdPtr,
# 1403| procNameObj);
Error: CPPCHECK_WARNING (CWE-457): [#def276]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1401: error[uninitvar]: Uninitialized variable: procNameObj
# 1399| */
# 1400|
# 1401|-> TclNewObj(procNameObj);
# 1402| Tcl_GetCommandFullName(interp, (Tcl_Command) procPtr->cmdPtr,
# 1403| procNameObj);
Error: CPPCHECK_WARNING (CWE-476): [#def277]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1404: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1402| Tcl_GetCommandFullName(interp, (Tcl_Command) procPtr->cmdPtr,
# 1403| procNameObj);
# 1404|-> ADD_PAIR("proc", procNameObj);
# 1405| } else if (procPtr->cmdPtr->clientData) {
# 1406| ExtraFrameInfo *efiPtr = (ExtraFrameInfo *)procPtr->cmdPtr->clientData;
Error: CPPCHECK_WARNING (CWE-457): [#def278]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1404: error[uninitvar]: Uninitialized variable: cachePtr
# 1402| Tcl_GetCommandFullName(interp, (Tcl_Command) procPtr->cmdPtr,
# 1403| procNameObj);
# 1404|-> ADD_PAIR("proc", procNameObj);
# 1405| } else if (procPtr->cmdPtr->clientData) {
# 1406| ExtraFrameInfo *efiPtr = (ExtraFrameInfo *)procPtr->cmdPtr->clientData;
Error: CPPCHECK_WARNING (CWE-476): [#def279]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1441: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1439| int t = iPtr->varFramePtr->level;
# 1440|
# 1441|-> ADD_PAIR("level", Tcl_NewIntObj(t - c));
# 1442| break;
# 1443| }
Error: CPPCHECK_WARNING (CWE-457): [#def280]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1441: error[uninitvar]: Uninitialized variable: cachePtr
# 1439| int t = iPtr->varFramePtr->level;
# 1440|
# 1441|-> ADD_PAIR("level", Tcl_NewIntObj(t - c));
# 1442| break;
# 1443| }
Error: CPPCHECK_WARNING (CWE-476): [#def281]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1912: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1910| simpleProcOK:
# 1911| if (specificNsInPattern) {
# 1912|-> TclNewObj(elemObjPtr);
# 1913| Tcl_GetCommandFullName(interp, (Tcl_Command) cmdPtr,
# 1914| elemObjPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def282]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1912: error[uninitvar]: Uninitialized variable: cachePtr
# 1910| simpleProcOK:
# 1911| if (specificNsInPattern) {
# 1912|-> TclNewObj(elemObjPtr);
# 1913| Tcl_GetCommandFullName(interp, (Tcl_Command) cmdPtr,
# 1914| elemObjPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def283]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1912: error[uninitvar]: Uninitialized variable: elemObjPtr
# 1910| simpleProcOK:
# 1911| if (specificNsInPattern) {
# 1912|-> TclNewObj(elemObjPtr);
# 1913| Tcl_GetCommandFullName(interp, (Tcl_Command) cmdPtr,
# 1914| elemObjPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def284]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1940: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1938| procOK:
# 1939| if (specificNsInPattern) {
# 1940|-> TclNewObj(elemObjPtr);
# 1941| Tcl_GetCommandFullName(interp, (Tcl_Command) cmdPtr,
# 1942| elemObjPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def285]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1940: error[uninitvar]: Uninitialized variable: (elemObjPtr)->internalRep.twoPtrValue.ptr1
# 1938| procOK:
# 1939| if (specificNsInPattern) {
# 1940|-> TclNewObj(elemObjPtr);
# 1941| Tcl_GetCommandFullName(interp, (Tcl_Command) cmdPtr,
# 1942| elemObjPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def286]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:1940: error[uninitvar]: Uninitialized variable: cachePtr
# 1938| procOK:
# 1939| if (specificNsInPattern) {
# 1940|-> TclNewObj(elemObjPtr);
# 1941| Tcl_GetCommandFullName(interp, (Tcl_Command) cmdPtr,
# 1942| elemObjPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def287]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:2165: error[legacyUninitvar]: Uninitialized variable: *(&elemPtrs)
# 2163| */
# 2164|
# 2165|-> if (TclListObjGetElements(interp, objv[1], &listLen,
# 2166| &elemPtrs) != TCL_OK) {
# 2167| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def288]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:2173: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2171| Tcl_IncrRefCount(joinObjPtr);
# 2172|
# 2173|-> TclNewObj(resObjPtr);
# 2174| for (i = 0; i < listLen; i++) {
# 2175| if (i > 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def289]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:2173: error[uninitvar]: Uninitialized variable: cachePtr
# 2171| Tcl_IncrRefCount(joinObjPtr);
# 2172|
# 2173|-> TclNewObj(resObjPtr);
# 2174| for (i = 0; i < listLen; i++) {
# 2175| if (i > 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def290]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:2173: error[uninitvar]: Uninitialized variable: resObjPtr
# 2171| Tcl_IncrRefCount(joinObjPtr);
# 2172|
# 2173|-> TclNewObj(resObjPtr);
# 2174| for (i = 0; i < listLen; i++) {
# 2175| if (i > 0) {
Error: CPPCHECK_WARNING (CWE-476): [#def291]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:2248: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2246| Tcl_Obj *emptyObj;
# 2247|
# 2248|-> TclNewObj(emptyObj);
# 2249| Tcl_IncrRefCount(emptyObj);
# 2250| while (code == TCL_OK && objc-- > 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def292]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:2248: error[uninitvar]: Uninitialized variable: cachePtr
# 2246| Tcl_Obj *emptyObj;
# 2247|
# 2248|-> TclNewObj(emptyObj);
# 2249| Tcl_IncrRefCount(emptyObj);
# 2250| while (code == TCL_OK && objc-- > 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def293]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:2248: error[uninitvar]: Uninitialized variable: emptyObj
# 2246| Tcl_Obj *emptyObj;
# 2247|
# 2248|-> TclNewObj(emptyObj);
# 2249| Tcl_IncrRefCount(emptyObj);
# 2250| while (code == TCL_OK && objc-- > 0) {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def294]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c: scope_hint: In function ‘Tcl_LrepeatObjCmd’
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:2676:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dataArray’
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:20: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:2457:8: note: in definition of macro ‘TclGetIntFromObj’
# 2674| tmpPtr->refCount += elementCount;
# 2675| for (i=0 ; i<elementCount ; i++) {
# 2676|-> dataArray[i] = tmpPtr;
# 2677| }
# 2678| } else {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def295]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:2684:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dataArray’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:2457:8: note: in definition of macro ‘TclGetIntFromObj’
tcl-8.6.14-build/tcl8.6.14/generic/tclPort.h:25: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:36: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tcl.h:2492:12: note: in definition of macro ‘Tcl_IncrRefCount’
# 2682| for (j=0 ; j<objc ; j++) {
# 2683| Tcl_IncrRefCount(objv[j]);
# 2684|-> dataArray[k++] = objv[j];
# 2685| }
# 2686| }
Error: CPPCHECK_WARNING (CWE-457): [#def296]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:2826: error[legacyUninitvar]: Uninitialized variable: *(&elemv)
# 2824| return TCL_ERROR;
# 2825| }
# 2826|-> if (TclListObjGetElements(interp, objv[1], &elemc, &elemv) != TCL_OK) {
# 2827| return TCL_ERROR;
# 2828| }
Error: CPPCHECK_WARNING (CWE-457): [#def297]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:3073: error[legacyUninitvar]: Uninitialized variable: *(&indices)
# 3071|
# 3072| i++;
# 3073|-> if (TclListObjGetElements(interp, objv[i],
# 3074| &sortInfo.indexc, &indices) != TCL_OK) {
# 3075| if (startPtr != NULL) {
Error: CPPCHECK_WARNING (CWE-476): [#def298]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:3489: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3487| int j;
# 3488|
# 3489|-> TclNewIntObj(itemPtr, i);
# 3490| for (j=0 ; j<sortInfo.indexc ; j++) {
# 3491| Tcl_ListObjAppendElement(interp, itemPtr, Tcl_NewIntObj(
Error: CPPCHECK_WARNING (CWE-457): [#def299]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:3489: error[uninitvar]: Uninitialized variable: cachePtr
# 3487| int j;
# 3488|
# 3489|-> TclNewIntObj(itemPtr, i);
# 3490| for (j=0 ; j<sortInfo.indexc ; j++) {
# 3491| Tcl_ListObjAppendElement(interp, itemPtr, Tcl_NewIntObj(
Error: CPPCHECK_WARNING (CWE-457): [#def300]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:3489: error[uninitvar]: Uninitialized variable: itemPtr
# 3487| int j;
# 3488|
# 3489|-> TclNewIntObj(itemPtr, i);
# 3490| for (j=0 ; j<sortInfo.indexc ; j++) {
# 3491| Tcl_ListObjAppendElement(interp, itemPtr, Tcl_NewIntObj(
Error: CPPCHECK_WARNING (CWE-476): [#def301]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:3511: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3509| int j;
# 3510|
# 3511|-> TclNewIntObj(itemPtr, index);
# 3512| for (j=0 ; j<sortInfo.indexc ; j++) {
# 3513| Tcl_ListObjAppendElement(interp, itemPtr, Tcl_NewIntObj(
Error: CPPCHECK_WARNING (CWE-457): [#def302]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:3511: error[uninitvar]: Uninitialized variable: (itemPtr)->internalRep.twoPtrValue.ptr1
# 3509| int j;
# 3510|
# 3511|-> TclNewIntObj(itemPtr, index);
# 3512| for (j=0 ; j<sortInfo.indexc ; j++) {
# 3513| Tcl_ListObjAppendElement(interp, itemPtr, Tcl_NewIntObj(
Error: CPPCHECK_WARNING (CWE-457): [#def303]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:3511: error[uninitvar]: Uninitialized variable: cachePtr
# 3509| int j;
# 3510|
# 3511|-> TclNewIntObj(itemPtr, index);
# 3512| for (j=0 ; j<sortInfo.indexc ; j++) {
# 3513| Tcl_ListObjAppendElement(interp, itemPtr, Tcl_NewIntObj(
Error: CPPCHECK_WARNING (CWE-457): [#def304]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:3744: error[legacyUninitvar]: Uninitialized variable: *(&indexv)
# 3742| goto done;
# 3743| }
# 3744|-> if (TclListObjGetElements(interp, objv[i+1], &sortindex,
# 3745| &indexv) != TCL_OK) {
# 3746| sortInfo.resultCode = TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def305]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:3881: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3879|
# 3880| newCommandPtr = Tcl_DuplicateObj(cmdPtr);
# 3881|-> TclNewObj(newObjPtr);
# 3882| Tcl_IncrRefCount(newCommandPtr);
# 3883| if (Tcl_ListObjAppendElement(interp, newCommandPtr, newObjPtr)
Error: CPPCHECK_WARNING (CWE-457): [#def306]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:3881: error[uninitvar]: Uninitialized variable: cachePtr
# 3879|
# 3880| newCommandPtr = Tcl_DuplicateObj(cmdPtr);
# 3881|-> TclNewObj(newObjPtr);
# 3882| Tcl_IncrRefCount(newCommandPtr);
# 3883| if (Tcl_ListObjAppendElement(interp, newCommandPtr, newObjPtr)
Error: CPPCHECK_WARNING (CWE-457): [#def307]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:3881: error[uninitvar]: Uninitialized variable: newObjPtr
# 3879|
# 3880| newCommandPtr = Tcl_DuplicateObj(cmdPtr);
# 3881|-> TclNewObj(newObjPtr);
# 3882| Tcl_IncrRefCount(newCommandPtr);
# 3883| if (Tcl_ListObjAppendElement(interp, newCommandPtr, newObjPtr)
Error: CPPCHECK_WARNING (CWE-476): [#def308]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:3885: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3883| if (Tcl_ListObjAppendElement(interp, newCommandPtr, newObjPtr)
# 3884| != TCL_OK) {
# 3885|-> TclDecrRefCount(newCommandPtr);
# 3886| TclDecrRefCount(listObj);
# 3887| Tcl_IncrRefCount(newObjPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def309]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:3885: error[uninitvar]: Uninitialized variable: cachePtr
# 3883| if (Tcl_ListObjAppendElement(interp, newCommandPtr, newObjPtr)
# 3884| != TCL_OK) {
# 3885|-> TclDecrRefCount(newCommandPtr);
# 3886| TclDecrRefCount(listObj);
# 3887| Tcl_IncrRefCount(newObjPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def310]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:3886: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3884| != TCL_OK) {
# 3885| TclDecrRefCount(newCommandPtr);
# 3886|-> TclDecrRefCount(listObj);
# 3887| Tcl_IncrRefCount(newObjPtr);
# 3888| TclDecrRefCount(newObjPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def311]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:3886: error[uninitvar]: Uninitialized variable: cachePtr
# 3884| != TCL_OK) {
# 3885| TclDecrRefCount(newCommandPtr);
# 3886|-> TclDecrRefCount(listObj);
# 3887| Tcl_IncrRefCount(newObjPtr);
# 3888| TclDecrRefCount(newObjPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def312]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:3888: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3886| TclDecrRefCount(listObj);
# 3887| Tcl_IncrRefCount(newObjPtr);
# 3888|-> TclDecrRefCount(newObjPtr);
# 3889| sortInfo.resultCode = TCL_ERROR;
# 3890| goto done;
Error: CPPCHECK_WARNING (CWE-457): [#def313]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:3888: error[uninitvar]: Uninitialized variable: cachePtr
# 3886| TclDecrRefCount(listObj);
# 3887| Tcl_IncrRefCount(newObjPtr);
# 3888|-> TclDecrRefCount(newObjPtr);
# 3889| sortInfo.resultCode = TCL_ERROR;
# 3890| goto done;
Error: CPPCHECK_WARNING (CWE-476): [#def314]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:4091: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4089| for (j = 0; j < groupSize; j++) {
# 4090| if (indices) {
# 4091|-> TclNewIntObj(objPtr, idx + j - groupOffset);
# 4092| newArray[i++] = objPtr;
# 4093| Tcl_IncrRefCount(objPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def315]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:4091: error[uninitvar]: Uninitialized variable: cachePtr
# 4089| for (j = 0; j < groupSize; j++) {
# 4090| if (indices) {
# 4091|-> TclNewIntObj(objPtr, idx + j - groupOffset);
# 4092| newArray[i++] = objPtr;
# 4093| Tcl_IncrRefCount(objPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def316]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:4091: error[uninitvar]: Uninitialized variable: objPtr
# 4089| for (j = 0; j < groupSize; j++) {
# 4090| if (indices) {
# 4091|-> TclNewIntObj(objPtr, idx + j - groupOffset);
# 4092| newArray[i++] = objPtr;
# 4093| Tcl_IncrRefCount(objPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def317]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:4103: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4101| } else if (indices) {
# 4102| for (i=0; elementPtr != NULL ; elementPtr = elementPtr->nextPtr) {
# 4103|-> TclNewIntObj(objPtr, elementPtr->payload.index);
# 4104| newArray[i++] = objPtr;
# 4105| Tcl_IncrRefCount(objPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def318]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:4103: error[uninitvar]: Uninitialized variable: (objPtr)->internalRep.twoPtrValue.ptr1
# 4101| } else if (indices) {
# 4102| for (i=0; elementPtr != NULL ; elementPtr = elementPtr->nextPtr) {
# 4103|-> TclNewIntObj(objPtr, elementPtr->payload.index);
# 4104| newArray[i++] = objPtr;
# 4105| Tcl_IncrRefCount(objPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def319]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:4103: error[uninitvar]: Uninitialized variable: cachePtr
# 4101| } else if (indices) {
# 4102| for (i=0; elementPtr != NULL ; elementPtr = elementPtr->nextPtr) {
# 4103|-> TclNewIntObj(objPtr, elementPtr->payload.index);
# 4104| newArray[i++] = objPtr;
# 4105| Tcl_IncrRefCount(objPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def320]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:4120: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4118| done:
# 4119| if (sortMode == SORTMODE_COMMAND) {
# 4120|-> TclDecrRefCount(sortInfo.compareCmdPtr);
# 4121| TclDecrRefCount(listObj);
# 4122| sortInfo.compareCmdPtr = NULL;
Error: CPPCHECK_WARNING (CWE-457): [#def321]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:4120: error[uninitvar]: Uninitialized variable: cachePtr
# 4118| done:
# 4119| if (sortMode == SORTMODE_COMMAND) {
# 4120|-> TclDecrRefCount(sortInfo.compareCmdPtr);
# 4121| TclDecrRefCount(listObj);
# 4122| sortInfo.compareCmdPtr = NULL;
Error: CPPCHECK_WARNING (CWE-476): [#def322]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:4121: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4119| if (sortMode == SORTMODE_COMMAND) {
# 4120| TclDecrRefCount(sortInfo.compareCmdPtr);
# 4121|-> TclDecrRefCount(listObj);
# 4122| sortInfo.compareCmdPtr = NULL;
# 4123| }
Error: CPPCHECK_WARNING (CWE-457): [#def323]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdIL.c:4121: error[uninitvar]: Uninitialized variable: cachePtr
# 4119| if (sortMode == SORTMODE_COMMAND) {
# 4120| TclDecrRefCount(sortInfo.compareCmdPtr);
# 4121|-> TclDecrRefCount(listObj);
# 4122| sortInfo.compareCmdPtr = NULL;
# 4123| }
Error: CPPCHECK_WARNING: [#def324]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def325]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:360: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 358| objc = info.nsubs + 1;
# 359| if (all <= 1) {
# 360|-> TclNewObj(resultPtr);
# 361| }
# 362| }
Error: CPPCHECK_WARNING (CWE-457): [#def326]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:360: error[uninitvar]: Uninitialized variable: cachePtr
# 358| objc = info.nsubs + 1;
# 359| if (all <= 1) {
# 360|-> TclNewObj(resultPtr);
# 361| }
# 362| }
Error: CPPCHECK_WARNING (CWE-457): [#def327]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:360: error[uninitvar]: Uninitialized variable: resultPtr
# 358| objc = info.nsubs + 1;
# 359| if (all <= 1) {
# 360|-> TclNewObj(resultPtr);
# 361| }
# 362| }
Error: CPPCHECK_WARNING (CWE-476): [#def328]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:402: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 400| offset + info.matches[i].end - 1);
# 401| } else {
# 402|-> TclNewObj(newPtr);
# 403| }
# 404| }
Error: CPPCHECK_WARNING (CWE-457): [#def329]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:402: error[uninitvar]: Uninitialized variable: cachePtr
# 400| offset + info.matches[i].end - 1);
# 401| } else {
# 402|-> TclNewObj(newPtr);
# 403| }
# 404| }
Error: CPPCHECK_WARNING (CWE-457): [#def330]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:402: error[uninitvar]: Uninitialized variable: newPtr
# 400| offset + info.matches[i].end - 1);
# 401| } else {
# 402|-> TclNewObj(newPtr);
# 403| }
# 404| }
Error: CPPCHECK_WARNING (CWE-476): [#def331]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:1061: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1059| stringPtr = TclGetStringFromObj(objv[1], &stringLen);
# 1060| end = stringPtr + stringLen;
# 1061|-> TclNewObj(listPtr);
# 1062|
# 1063| if (stringLen == 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def332]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:1061: error[uninitvar]: Uninitialized variable: cachePtr
# 1059| stringPtr = TclGetStringFromObj(objv[1], &stringLen);
# 1060| end = stringPtr + stringLen;
# 1061|-> TclNewObj(listPtr);
# 1062|
# 1063| if (stringLen == 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def333]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:1061: error[uninitvar]: Uninitialized variable: listPtr
# 1059| stringPtr = TclGetStringFromObj(objv[1], &stringLen);
# 1060| end = stringPtr + stringLen;
# 1061|-> TclNewObj(listPtr);
# 1062|
# 1063| if (stringLen == 0) {
Error: CPPCHECK_WARNING (CWE-476): [#def334]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:1089: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1087| hPtr = Tcl_CreateHashEntry(&charReuseTable, INT2PTR(ucs4), &isNew);
# 1088| if (isNew) {
# 1089|-> TclNewStringObj(objPtr, stringPtr, len);
# 1090|
# 1091| /*
Error: CPPCHECK_WARNING (CWE-457): [#def335]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:1089: error[uninitvar]: Uninitialized variable: cachePtr
# 1087| hPtr = Tcl_CreateHashEntry(&charReuseTable, INT2PTR(ucs4), &isNew);
# 1088| if (isNew) {
# 1089|-> TclNewStringObj(objPtr, stringPtr, len);
# 1090|
# 1091| /*
Error: CPPCHECK_WARNING (CWE-457): [#def336]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:1089: error[uninitvar]: Uninitialized variable: objPtr
# 1087| hPtr = Tcl_CreateHashEntry(&charReuseTable, INT2PTR(ucs4), &isNew);
# 1088| if (isNew) {
# 1089|-> TclNewStringObj(objPtr, stringPtr, len);
# 1090|
# 1091| /*
Error: CPPCHECK_WARNING (CWE-476): [#def337]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:1117: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1115| stringPtr = p + 1;
# 1116| }
# 1117|-> TclNewStringObj(objPtr, stringPtr, end - stringPtr);
# 1118| Tcl_ListObjAppendElement(NULL, listPtr, objPtr);
# 1119| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def338]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:1117: error[uninitvar]: Uninitialized variable: (objPtr)->internalRep.twoPtrValue.ptr1
# 1115| stringPtr = p + 1;
# 1116| }
# 1117|-> TclNewStringObj(objPtr, stringPtr, end - stringPtr);
# 1118| Tcl_ListObjAppendElement(NULL, listPtr, objPtr);
# 1119| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def339]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:1117: error[uninitvar]: Uninitialized variable: cachePtr
# 1115| stringPtr = p + 1;
# 1116| }
# 1117|-> TclNewStringObj(objPtr, stringPtr, end - stringPtr);
# 1118| Tcl_ListObjAppendElement(NULL, listPtr, objPtr);
# 1119| } else {
Error: CPPCHECK_WARNING (CWE-476): [#def340]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:1136: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1134| splitLen = TclUtfToUniChar(p, &splitChar);
# 1135| if (ch == splitChar) {
# 1136|-> TclNewStringObj(objPtr, element, stringPtr - element);
# 1137| Tcl_ListObjAppendElement(NULL, listPtr, objPtr);
# 1138| element = stringPtr + len;
Error: CPPCHECK_WARNING (CWE-457): [#def341]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:1136: error[uninitvar]: Uninitialized variable: cachePtr
# 1134| splitLen = TclUtfToUniChar(p, &splitChar);
# 1135| if (ch == splitChar) {
# 1136|-> TclNewStringObj(objPtr, element, stringPtr - element);
# 1137| Tcl_ListObjAppendElement(NULL, listPtr, objPtr);
# 1138| element = stringPtr + len;
Error: CPPCHECK_WARNING (CWE-476): [#def342]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:1144: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1142| }
# 1143|
# 1144|-> TclNewStringObj(objPtr, element, stringPtr - element);
# 1145| Tcl_ListObjAppendElement(NULL, listPtr, objPtr);
# 1146| }
Error: CPPCHECK_WARNING (CWE-457): [#def343]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:1144: error[uninitvar]: Uninitialized variable: cachePtr
# 1142| }
# 1143|
# 1144|-> TclNewStringObj(objPtr, element, stringPtr - element);
# 1145| Tcl_ListObjAppendElement(NULL, listPtr, objPtr);
# 1146| }
Error: CPPCHECK_WARNING (CWE-476): [#def344]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:1739: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1737| p++;
# 1738| }
# 1739|-> TclNewStringObj(tmpStr, string1, p-string1);
# 1740| failat = Tcl_GetCharLength(tmpStr);
# 1741| TclDecrRefCount(tmpStr);
Error: CPPCHECK_WARNING (CWE-457): [#def345]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:1739: error[uninitvar]: Uninitialized variable: cachePtr
# 1737| p++;
# 1738| }
# 1739|-> TclNewStringObj(tmpStr, string1, p-string1);
# 1740| failat = Tcl_GetCharLength(tmpStr);
# 1741| TclDecrRefCount(tmpStr);
Error: CPPCHECK_WARNING (CWE-457): [#def346]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:1739: error[uninitvar]: Uninitialized variable: tmpStr
# 1737| p++;
# 1738| }
# 1739|-> TclNewStringObj(tmpStr, string1, p-string1);
# 1740| failat = Tcl_GetCharLength(tmpStr);
# 1741| TclDecrRefCount(tmpStr);
Error: CPPCHECK_WARNING (CWE-476): [#def347]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:1741: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1739| TclNewStringObj(tmpStr, string1, p-string1);
# 1740| failat = Tcl_GetCharLength(tmpStr);
# 1741|-> TclDecrRefCount(tmpStr);
# 1742| break;
# 1743| }
Error: CPPCHECK_WARNING (CWE-457): [#def348]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:1741: error[uninitvar]: Uninitialized variable: cachePtr
# 1739| TclNewStringObj(tmpStr, string1, p-string1);
# 1740| failat = Tcl_GetCharLength(tmpStr);
# 1741|-> TclDecrRefCount(tmpStr);
# 1742| break;
# 1743| }
Error: CPPCHECK_WARNING (CWE-476): [#def349]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:2301: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2299| */
# 2300|
# 2301|-> TclNewObj(resultPtr);
# 2302| resultPtr->bytes = string2;
# 2303| resultPtr->length = length2;
Error: CPPCHECK_WARNING (CWE-457): [#def350]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:2301: error[uninitvar]: Uninitialized variable: cachePtr
# 2299| */
# 2300|
# 2301|-> TclNewObj(resultPtr);
# 2302| resultPtr->bytes = string2;
# 2303| resultPtr->length = length2;
Error: CPPCHECK_WARNING (CWE-457): [#def351]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:2301: error[uninitvar]: Uninitialized variable: resultPtr
# 2299| */
# 2300|
# 2301|-> TclNewObj(resultPtr);
# 2302| resultPtr->bytes = string2;
# 2303| resultPtr->length = length2;
Error: CPPCHECK_WARNING (CWE-457): [#def352]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3762: error[legacyUninitvar]: Uninitialized variable: *(&listv)
# 3760|
# 3761| blist = objv[0];
# 3762|-> if (TclListObjGetElements(interp, objv[0], &objc, &listv) != TCL_OK){
# 3763| return TCL_ERROR;
# 3764| }
Error: CPPCHECK_WARNING (CWE-476): [#def353]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3849: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3847|
# 3848| if (indexVarObj != NULL) {
# 3849|-> TclNewObj(emptyObj);
# 3850| if (Tcl_ObjSetVar2(interp, indexVarObj, NULL, emptyObj,
# 3851| TCL_LEAVE_ERR_MSG) == NULL) {
Error: CPPCHECK_WARNING (CWE-457): [#def354]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3849: error[uninitvar]: Uninitialized variable: cachePtr
# 3847|
# 3848| if (indexVarObj != NULL) {
# 3849|-> TclNewObj(emptyObj);
# 3850| if (Tcl_ObjSetVar2(interp, indexVarObj, NULL, emptyObj,
# 3851| TCL_LEAVE_ERR_MSG) == NULL) {
Error: CPPCHECK_WARNING (CWE-457): [#def355]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3849: error[uninitvar]: Uninitialized variable: emptyObj
# 3847|
# 3848| if (indexVarObj != NULL) {
# 3849|-> TclNewObj(emptyObj);
# 3850| if (Tcl_ObjSetVar2(interp, indexVarObj, NULL, emptyObj,
# 3851| TCL_LEAVE_ERR_MSG) == NULL) {
Error: CPPCHECK_WARNING (CWE-476): [#def356]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3857: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3855| if (matchVarObj != NULL) {
# 3856| if (emptyObj == NULL) {
# 3857|-> TclNewObj(emptyObj);
# 3858| }
# 3859| if (Tcl_ObjSetVar2(interp, matchVarObj, NULL, emptyObj,
Error: CPPCHECK_WARNING (CWE-457): [#def357]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3857: error[uninitvar]: Uninitialized variable: (emptyObj)->internalRep.twoPtrValue.ptr1
# 3855| if (matchVarObj != NULL) {
# 3856| if (emptyObj == NULL) {
# 3857|-> TclNewObj(emptyObj);
# 3858| }
# 3859| if (Tcl_ObjSetVar2(interp, matchVarObj, NULL, emptyObj,
Error: CPPCHECK_WARNING (CWE-457): [#def358]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3857: error[uninitvar]: Uninitialized variable: cachePtr
# 3855| if (matchVarObj != NULL) {
# 3856| if (emptyObj == NULL) {
# 3857|-> TclNewObj(emptyObj);
# 3858| }
# 3859| if (Tcl_ObjSetVar2(interp, matchVarObj, NULL, emptyObj,
Error: CPPCHECK_WARNING (CWE-476): [#def359]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3911: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3909| Tcl_RegExpGetInfo(regExpr, &info);
# 3910| if (matchVarObj != NULL) {
# 3911|-> TclNewObj(matchesObj);
# 3912| } else {
# 3913| matchesObj = NULL;
Error: CPPCHECK_WARNING (CWE-457): [#def360]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3911: error[uninitvar]: Uninitialized variable: cachePtr
# 3909| Tcl_RegExpGetInfo(regExpr, &info);
# 3910| if (matchVarObj != NULL) {
# 3911|-> TclNewObj(matchesObj);
# 3912| } else {
# 3913| matchesObj = NULL;
Error: CPPCHECK_WARNING (CWE-457): [#def361]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3911: error[uninitvar]: Uninitialized variable: matchesObj
# 3909| Tcl_RegExpGetInfo(regExpr, &info);
# 3910| if (matchVarObj != NULL) {
# 3911|-> TclNewObj(matchesObj);
# 3912| } else {
# 3913| matchesObj = NULL;
Error: CPPCHECK_WARNING (CWE-476): [#def362]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3916: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3914| }
# 3915| if (indexVarObj != NULL) {
# 3916|-> TclNewObj(indicesObj);
# 3917| }
# 3918|
Error: CPPCHECK_WARNING (CWE-457): [#def363]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3916: error[uninitvar]: Uninitialized variable: cachePtr
# 3914| }
# 3915| if (indexVarObj != NULL) {
# 3916|-> TclNewObj(indicesObj);
# 3917| }
# 3918|
Error: CPPCHECK_WARNING (CWE-457): [#def364]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3916: error[uninitvar]: Uninitialized variable: indicesObj
# 3914| }
# 3915| if (indexVarObj != NULL) {
# 3916|-> TclNewObj(indicesObj);
# 3917| }
# 3918|
Error: CPPCHECK_WARNING (CWE-476): [#def365]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3927: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3925| rangeObjAry[1] = Tcl_NewLongObj(info.matches[j].end-1);
# 3926| } else {
# 3927|-> TclNewIntObj(rangeObjAry[1], -1);
# 3928| rangeObjAry[0] = rangeObjAry[1];
# 3929| }
Error: CPPCHECK_WARNING (CWE-457): [#def366]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3927: error[uninitvar]: Uninitialized variable: (rangeObjAry[1])->internalRep.twoPtrValue.ptr1
# 3925| rangeObjAry[1] = Tcl_NewLongObj(info.matches[j].end-1);
# 3926| } else {
# 3927|-> TclNewIntObj(rangeObjAry[1], -1);
# 3928| rangeObjAry[0] = rangeObjAry[1];
# 3929| }
Error: CPPCHECK_WARNING (CWE-457): [#def367]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3927: error[uninitvar]: Uninitialized variable: cachePtr
# 3925| rangeObjAry[1] = Tcl_NewLongObj(info.matches[j].end-1);
# 3926| } else {
# 3927|-> TclNewIntObj(rangeObjAry[1], -1);
# 3928| rangeObjAry[0] = rangeObjAry[1];
# 3929| }
Error: CPPCHECK_WARNING (CWE-476): [#def368]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3946: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3944| info.matches[j].start, info.matches[j].end-1);
# 3945| } else {
# 3946|-> TclNewObj(substringObj);
# 3947| }
# 3948|
Error: CPPCHECK_WARNING (CWE-457): [#def369]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3946: error[uninitvar]: Uninitialized variable: cachePtr
# 3944| info.matches[j].start, info.matches[j].end-1);
# 3945| } else {
# 3946|-> TclNewObj(substringObj);
# 3947| }
# 3948|
Error: CPPCHECK_WARNING (CWE-457): [#def370]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:3946: error[uninitvar]: Uninitialized variable: substringObj
# 3944| info.matches[j].start, info.matches[j].end-1);
# 3945| } else {
# 3946|-> TclNewObj(substringObj);
# 3947| }
# 3948|
Error: CPPCHECK_WARNING (CWE-476): [#def371]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4167: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4165| */
# 4166|
# 4167|-> TclNewLiteralStringObj(options, "-code error -level 0 -errorcode");
# 4168| Tcl_ListObjAppendElement(NULL, options, objv[1]);
# 4169|
Error: CPPCHECK_WARNING (CWE-457): [#def372]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4167: error[uninitvar]: Uninitialized variable: cachePtr
# 4165| */
# 4166|
# 4167|-> TclNewLiteralStringObj(options, "-code error -level 0 -errorcode");
# 4168| Tcl_ListObjAppendElement(NULL, options, objv[1]);
# 4169|
Error: CPPCHECK_WARNING (CWE-457): [#def373]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4167: error[uninitvar]: Uninitialized variable: options
# 4165| */
# 4166|
# 4167|-> TclNewLiteralStringObj(options, "-code error -level 0 -errorcode");
# 4168| Tcl_ListObjAppendElement(NULL, options, objv[1]);
# 4169|
Error: CPPCHECK_WARNING (CWE-476): [#def374]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4262: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4260| */
# 4261|
# 4262|-> TclNewLiteralStringObj(objs[1], "microseconds");
# 4263| TclNewLiteralStringObj(objs[2], "per");
# 4264| TclNewLiteralStringObj(objs[3], "iteration");
Error: CPPCHECK_WARNING (CWE-457): [#def375]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4262: error[uninitvar]: Uninitialized variable: (objs[1])->internalRep.twoPtrValue.ptr1
# 4260| */
# 4261|
# 4262|-> TclNewLiteralStringObj(objs[1], "microseconds");
# 4263| TclNewLiteralStringObj(objs[2], "per");
# 4264| TclNewLiteralStringObj(objs[3], "iteration");
Error: CPPCHECK_WARNING (CWE-457): [#def376]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4262: error[uninitvar]: Uninitialized variable: cachePtr
# 4260| */
# 4261|
# 4262|-> TclNewLiteralStringObj(objs[1], "microseconds");
# 4263| TclNewLiteralStringObj(objs[2], "per");
# 4264| TclNewLiteralStringObj(objs[3], "iteration");
Error: CPPCHECK_WARNING (CWE-476): [#def377]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4263: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4261|
# 4262| TclNewLiteralStringObj(objs[1], "microseconds");
# 4263|-> TclNewLiteralStringObj(objs[2], "per");
# 4264| TclNewLiteralStringObj(objs[3], "iteration");
# 4265| Tcl_SetObjResult(interp, Tcl_NewListObj(4, objs));
Error: CPPCHECK_WARNING (CWE-457): [#def378]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4263: error[uninitvar]: Uninitialized variable: cachePtr
# 4261|
# 4262| TclNewLiteralStringObj(objs[1], "microseconds");
# 4263|-> TclNewLiteralStringObj(objs[2], "per");
# 4264| TclNewLiteralStringObj(objs[3], "iteration");
# 4265| Tcl_SetObjResult(interp, Tcl_NewListObj(4, objs));
Error: CPPCHECK_WARNING (CWE-476): [#def379]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4264: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4262| TclNewLiteralStringObj(objs[1], "microseconds");
# 4263| TclNewLiteralStringObj(objs[2], "per");
# 4264|-> TclNewLiteralStringObj(objs[3], "iteration");
# 4265| Tcl_SetObjResult(interp, Tcl_NewListObj(4, objs));
# 4266|
Error: CPPCHECK_WARNING (CWE-457): [#def380]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4264: error[uninitvar]: Uninitialized variable: cachePtr
# 4262| TclNewLiteralStringObj(objs[1], "microseconds");
# 4263| TclNewLiteralStringObj(objs[2], "per");
# 4264|-> TclNewLiteralStringObj(objs[3], "iteration");
# 4265| Tcl_SetObjResult(interp, Tcl_NewListObj(4, objs));
# 4266|
Error: CPPCHECK_WARNING (CWE-476): [#def381]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4416: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4414| */
# 4415|
# 4416|-> TclNewLongObj(clobjv[i], 100);
# 4417| Tcl_IncrRefCount(clobjv[i]);
# 4418| result = Tcl_TimeRateObjCmd(NULL, interp, i + 1, clobjv);
Error: CPPCHECK_WARNING (CWE-457): [#def382]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4416: error[uninitvar]: Uninitialized variable: (clobjv[i])->internalRep.twoPtrValue.ptr1
# 4414| */
# 4415|
# 4416|-> TclNewLongObj(clobjv[i], 100);
# 4417| Tcl_IncrRefCount(clobjv[i]);
# 4418| result = Tcl_TimeRateObjCmd(NULL, interp, i + 1, clobjv);
Error: CPPCHECK_WARNING (CWE-457): [#def383]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4416: error[uninitvar]: Uninitialized variable: cachePtr
# 4414| */
# 4415|
# 4416|-> TclNewLongObj(clobjv[i], 100);
# 4417| Tcl_IncrRefCount(clobjv[i]);
# 4418| result = Tcl_TimeRateObjCmd(NULL, interp, i + 1, clobjv);
Error: CPPCHECK_WARNING (CWE-476): [#def384]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4441: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4439| do {
# 4440| lastMeasureOverhead = measureOverhead;
# 4441|-> TclNewLongObj(clobjv[i], (int) maxms);
# 4442| Tcl_IncrRefCount(clobjv[i]);
# 4443| result = Tcl_TimeRateObjCmd(NULL, interp, i + 1, clobjv);
Error: CPPCHECK_WARNING (CWE-457): [#def385]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4441: error[uninitvar]: Uninitialized variable: cachePtr
# 4439| do {
# 4440| lastMeasureOverhead = measureOverhead;
# 4441|-> TclNewLongObj(clobjv[i], (int) maxms);
# 4442| Tcl_IncrRefCount(clobjv[i]);
# 4443| result = Tcl_TimeRateObjCmd(NULL, interp, i + 1, clobjv);
Error: CPPCHECK_WARNING (CWE-476): [#def386]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4737: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4735| }
# 4736| objs[0] = Tcl_NewDoubleObj(measureOverhead);
# 4737|-> TclNewLiteralStringObj(objs[1], "\xC2\xB5s/#-overhead"); /* mics */
# 4738| objs += 2;
# 4739| }
Error: CPPCHECK_WARNING (CWE-457): [#def387]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4737: error[uninitvar]: Uninitialized variable: (objs[1])->internalRep.twoPtrValue.ptr1
# 4735| }
# 4736| objs[0] = Tcl_NewDoubleObj(measureOverhead);
# 4737|-> TclNewLiteralStringObj(objs[1], "\xC2\xB5s/#-overhead"); /* mics */
# 4738| objs += 2;
# 4739| }
Error: CPPCHECK_WARNING (CWE-457): [#def388]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4737: error[uninitvar]: Uninitialized variable: cachePtr
# 4735| }
# 4736| objs[0] = Tcl_NewDoubleObj(measureOverhead);
# 4737|-> TclNewLiteralStringObj(objs[1], "\xC2\xB5s/#-overhead"); /* mics */
# 4738| objs += 2;
# 4739| }
Error: CPPCHECK_WARNING (CWE-476): [#def389]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4798: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4796| objs[6] = Tcl_NewWideIntObj(0);
# 4797| }
# 4798|-> TclNewLiteralStringObj(objs[7], "net-ms");
# 4799| }
# 4800|
Error: CPPCHECK_WARNING (CWE-457): [#def390]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4798: error[uninitvar]: Uninitialized variable: cachePtr
# 4796| objs[6] = Tcl_NewWideIntObj(0);
# 4797| }
# 4798|-> TclNewLiteralStringObj(objs[7], "net-ms");
# 4799| }
# 4800|
Error: CPPCHECK_WARNING (CWE-476): [#def391]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4806: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4804| */
# 4805|
# 4806|-> TclNewLiteralStringObj(objs[1], "\xC2\xB5s/#"); /* mics/# */
# 4807| TclNewLiteralStringObj(objs[3], "#");
# 4808| TclNewLiteralStringObj(objs[5], "#/sec");
Error: CPPCHECK_WARNING (CWE-457): [#def392]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4806: error[uninitvar]: Uninitialized variable: cachePtr
# 4804| */
# 4805|
# 4806|-> TclNewLiteralStringObj(objs[1], "\xC2\xB5s/#"); /* mics/# */
# 4807| TclNewLiteralStringObj(objs[3], "#");
# 4808| TclNewLiteralStringObj(objs[5], "#/sec");
Error: CPPCHECK_WARNING (CWE-476): [#def393]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4807: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4805|
# 4806| TclNewLiteralStringObj(objs[1], "\xC2\xB5s/#"); /* mics/# */
# 4807|-> TclNewLiteralStringObj(objs[3], "#");
# 4808| TclNewLiteralStringObj(objs[5], "#/sec");
# 4809| Tcl_SetObjResult(interp, Tcl_NewListObj(8, objarr));
Error: CPPCHECK_WARNING (CWE-457): [#def394]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4807: error[uninitvar]: Uninitialized variable: cachePtr
# 4805|
# 4806| TclNewLiteralStringObj(objs[1], "\xC2\xB5s/#"); /* mics/# */
# 4807|-> TclNewLiteralStringObj(objs[3], "#");
# 4808| TclNewLiteralStringObj(objs[5], "#/sec");
# 4809| Tcl_SetObjResult(interp, Tcl_NewListObj(8, objarr));
Error: CPPCHECK_WARNING (CWE-476): [#def395]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4808: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4806| TclNewLiteralStringObj(objs[1], "\xC2\xB5s/#"); /* mics/# */
# 4807| TclNewLiteralStringObj(objs[3], "#");
# 4808|-> TclNewLiteralStringObj(objs[5], "#/sec");
# 4809| Tcl_SetObjResult(interp, Tcl_NewListObj(8, objarr));
# 4810| }
Error: CPPCHECK_WARNING (CWE-457): [#def396]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4808: error[uninitvar]: Uninitialized variable: cachePtr
# 4806| TclNewLiteralStringObj(objs[1], "\xC2\xB5s/#"); /* mics/# */
# 4807| TclNewLiteralStringObj(objs[3], "#");
# 4808|-> TclNewLiteralStringObj(objs[5], "#/sec");
# 4809| Tcl_SetObjResult(interp, Tcl_NewListObj(8, objarr));
# 4810| }
Error: CPPCHECK_WARNING (CWE-476): [#def397]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4874: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4872| }
# 4873| bodyObj = objv[1];
# 4874|-> TclNewObj(handlersObj);
# 4875| bodyShared = 0;
# 4876| haveHandlers = 0;
Error: CPPCHECK_WARNING (CWE-457): [#def398]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4874: error[uninitvar]: Uninitialized variable: cachePtr
# 4872| }
# 4873| bodyObj = objv[1];
# 4874|-> TclNewObj(handlersObj);
# 4875| bodyShared = 0;
# 4876| haveHandlers = 0;
Error: CPPCHECK_WARNING (CWE-457): [#def399]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4874: error[uninitvar]: Uninitialized variable: handlersObj
# 4872| }
# 4873| bodyObj = objv[1];
# 4874|-> TclNewObj(handlersObj);
# 4875| bodyShared = 0;
# 4876| haveHandlers = 0;
Error: CPPCHECK_WARNING (CWE-476): [#def400]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4955: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4953|
# 4954| info[0] = objv[i]; /* type */
# 4955|-> TclNewIntObj(info[1], code); /* returnCode */
# 4956| if (info[2] == NULL) { /* errorCodePrefix */
# 4957| TclNewObj(info[2]);
Error: CPPCHECK_WARNING (CWE-457): [#def401]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4955: error[uninitvar]: Uninitialized variable: (info[1])->internalRep.twoPtrValue.ptr1
# 4953|
# 4954| info[0] = objv[i]; /* type */
# 4955|-> TclNewIntObj(info[1], code); /* returnCode */
# 4956| if (info[2] == NULL) { /* errorCodePrefix */
# 4957| TclNewObj(info[2]);
Error: CPPCHECK_WARNING (CWE-457): [#def402]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4955: error[uninitvar]: Uninitialized variable: cachePtr
# 4953|
# 4954| info[0] = objv[i]; /* type */
# 4955|-> TclNewIntObj(info[1], code); /* returnCode */
# 4956| if (info[2] == NULL) { /* errorCodePrefix */
# 4957| TclNewObj(info[2]);
Error: CPPCHECK_WARNING (CWE-476): [#def403]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4957: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4955| TclNewIntObj(info[1], code); /* returnCode */
# 4956| if (info[2] == NULL) { /* errorCodePrefix */
# 4957|-> TclNewObj(info[2]);
# 4958| }
# 4959| info[3] = objv[i+2]; /* bindVariables */
Error: CPPCHECK_WARNING (CWE-457): [#def404]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:4957: error[uninitvar]: Uninitialized variable: cachePtr
# 4955| TclNewIntObj(info[1], code); /* returnCode */
# 4956| if (info[2] == NULL) { /* errorCodePrefix */
# 4957|-> TclNewObj(info[2]);
# 4958| }
# 4959| info[3] = objv[i+2]; /* bindVariables */
Error: CPPCHECK_WARNING (CWE-476): [#def405]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:5024: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5022| }
# 5023| options = Tcl_GetReturnOptions(interp, resultCode);
# 5024|-> TclNewLiteralStringObj(during, "-during");
# 5025| Tcl_IncrRefCount(during);
# 5026| Tcl_DictObjPut(interp, options, during, oldOptions);
Error: CPPCHECK_WARNING (CWE-457): [#def406]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:5024: error[uninitvar]: Uninitialized variable: cachePtr
# 5022| }
# 5023| options = Tcl_GetReturnOptions(interp, resultCode);
# 5024|-> TclNewLiteralStringObj(during, "-during");
# 5025| Tcl_IncrRefCount(during);
# 5026| Tcl_DictObjPut(interp, options, during, oldOptions);
Error: CPPCHECK_WARNING (CWE-457): [#def407]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:5024: error[uninitvar]: Uninitialized variable: during
# 5022| }
# 5023| options = Tcl_GetReturnOptions(interp, resultCode);
# 5024|-> TclNewLiteralStringObj(during, "-during");
# 5025| Tcl_IncrRefCount(during);
# 5026| Tcl_DictObjPut(interp, options, during, oldOptions);
Error: CPPCHECK_WARNING (CWE-476): [#def408]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:5121: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5119| int len1, len2, j;
# 5120|
# 5121|-> TclNewLiteralStringObj(errorCodeName, "-errorcode");
# 5122| Tcl_DictObjGet(NULL, options, errorCodeName, &errcode);
# 5123| Tcl_DecrRefCount(errorCodeName);
Error: CPPCHECK_WARNING (CWE-457): [#def409]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:5121: error[uninitvar]: Uninitialized variable: cachePtr
# 5119| int len1, len2, j;
# 5120|
# 5121|-> TclNewLiteralStringObj(errorCodeName, "-errorcode");
# 5122| Tcl_DictObjGet(NULL, options, errorCodeName, &errcode);
# 5123| Tcl_DecrRefCount(errorCodeName);
Error: CPPCHECK_WARNING (CWE-457): [#def410]
tcl-8.6.14-build/tcl8.6.14/generic/tclCmdMZ.c:5121: error[uninitvar]: Uninitialized variable: errorCodeName
# 5119| int len1, len2, j;
# 5120|
# 5121|-> TclNewLiteralStringObj(errorCodeName, "-errorcode");
# 5122| Tcl_DictObjGet(NULL, options, errorCodeName, &errcode);
# 5123| Tcl_DecrRefCount(errorCodeName);
Error: CPPCHECK_WARNING: [#def411]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def412]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:302: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 300| varTokenPtr = TokenAfter(parsePtr->tokenPtr);
# 301| dataTokenPtr = TokenAfter(varTokenPtr);
# 302|-> TclNewObj(literalObj);
# 303| isDataLiteral = TclWordKnownAtCompileTime(dataTokenPtr, literalObj);
# 304| isDataValid = (isDataLiteral
Error: CPPCHECK_WARNING (CWE-457): [#def413]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:302: error[uninitvar]: Uninitialized variable: cachePtr
# 300| varTokenPtr = TokenAfter(parsePtr->tokenPtr);
# 301| dataTokenPtr = TokenAfter(varTokenPtr);
# 302|-> TclNewObj(literalObj);
# 303| isDataLiteral = TclWordKnownAtCompileTime(dataTokenPtr, literalObj);
# 304| isDataValid = (isDataLiteral
Error: CPPCHECK_WARNING (CWE-476): [#def414]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:881: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 879| */
# 880|
# 881|-> TclNewObj(listObj);
# 882| for (i = 1, tokenPtr = parsePtr->tokenPtr; i < parsePtr->numWords; i++) {
# 883| tokenPtr = TokenAfter(tokenPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def415]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:881: error[uninitvar]: Uninitialized variable: cachePtr
# 879| */
# 880|
# 881|-> TclNewObj(listObj);
# 882| for (i = 1, tokenPtr = parsePtr->tokenPtr; i < parsePtr->numWords; i++) {
# 883| tokenPtr = TokenAfter(tokenPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def416]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:881: error[uninitvar]: Uninitialized variable: listObj
# 879| */
# 880|
# 881|-> TclNewObj(listObj);
# 882| for (i = 1, tokenPtr = parsePtr->tokenPtr; i < parsePtr->numWords; i++) {
# 883| tokenPtr = TokenAfter(tokenPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def417]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:884: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 882| for (i = 1, tokenPtr = parsePtr->tokenPtr; i < parsePtr->numWords; i++) {
# 883| tokenPtr = TokenAfter(tokenPtr);
# 884|-> TclNewObj(objPtr);
# 885| if (!TclWordKnownAtCompileTime(tokenPtr, objPtr)) {
# 886| Tcl_DecrRefCount(objPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def418]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:884: error[uninitvar]: Uninitialized variable: cachePtr
# 882| for (i = 1, tokenPtr = parsePtr->tokenPtr; i < parsePtr->numWords; i++) {
# 883| tokenPtr = TokenAfter(tokenPtr);
# 884|-> TclNewObj(objPtr);
# 885| if (!TclWordKnownAtCompileTime(tokenPtr, objPtr)) {
# 886| Tcl_DecrRefCount(objPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def419]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:884: error[uninitvar]: Uninitialized variable: objPtr
# 882| for (i = 1, tokenPtr = parsePtr->tokenPtr; i < parsePtr->numWords; i++) {
# 883| tokenPtr = TokenAfter(tokenPtr);
# 884|-> TclNewObj(objPtr);
# 885| if (!TclWordKnownAtCompileTime(tokenPtr, objPtr)) {
# 886| Tcl_DecrRefCount(objPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def420]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:1098: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1096| Tcl_IncrRefCount(intObj);
# 1097| code = TclGetIntFromObj(NULL, intObj, &incrAmount);
# 1098|-> TclDecrRefCount(intObj);
# 1099| if (code != TCL_OK) {
# 1100| return TclCompileBasic2Or3ArgCmd(interp, parsePtr,cmdPtr, envPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def421]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:1098: error[uninitvar]: Uninitialized variable: cachePtr
# 1096| Tcl_IncrRefCount(intObj);
# 1097| code = TclGetIntFromObj(NULL, intObj, &incrAmount);
# 1098|-> TclDecrRefCount(intObj);
# 1099| if (code != TCL_OK) {
# 1100| return TclCompileBasic2Or3ArgCmd(interp, parsePtr,cmdPtr, envPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def422]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:1279: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1277|
# 1278| tokenPtr = TokenAfter(parsePtr->tokenPtr);
# 1279|-> TclNewObj(dictObj);
# 1280| Tcl_IncrRefCount(dictObj);
# 1281| for (i=1 ; i<parsePtr->numWords ; i+=2) {
Error: CPPCHECK_WARNING (CWE-457): [#def423]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:1279: error[uninitvar]: Uninitialized variable: cachePtr
# 1277|
# 1278| tokenPtr = TokenAfter(parsePtr->tokenPtr);
# 1279|-> TclNewObj(dictObj);
# 1280| Tcl_IncrRefCount(dictObj);
# 1281| for (i=1 ; i<parsePtr->numWords ; i+=2) {
Error: CPPCHECK_WARNING (CWE-476): [#def424]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:1282: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1280| Tcl_IncrRefCount(dictObj);
# 1281| for (i=1 ; i<parsePtr->numWords ; i+=2) {
# 1282|-> TclNewObj(keyObj);
# 1283| Tcl_IncrRefCount(keyObj);
# 1284| if (!TclWordKnownAtCompileTime(tokenPtr, keyObj)) {
Error: CPPCHECK_WARNING (CWE-457): [#def425]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:1282: error[uninitvar]: Uninitialized variable: cachePtr
# 1280| Tcl_IncrRefCount(dictObj);
# 1281| for (i=1 ; i<parsePtr->numWords ; i+=2) {
# 1282|-> TclNewObj(keyObj);
# 1283| Tcl_IncrRefCount(keyObj);
# 1284| if (!TclWordKnownAtCompileTime(tokenPtr, keyObj)) {
Error: CPPCHECK_WARNING (CWE-476): [#def426]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:1290: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1288| }
# 1289| tokenPtr = TokenAfter(tokenPtr);
# 1290|-> TclNewObj(valueObj);
# 1291| Tcl_IncrRefCount(valueObj);
# 1292| if (!TclWordKnownAtCompileTime(tokenPtr, valueObj)) {
Error: CPPCHECK_WARNING (CWE-457): [#def427]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:1290: error[uninitvar]: Uninitialized variable: cachePtr
# 1288| }
# 1289| tokenPtr = TokenAfter(tokenPtr);
# 1290|-> TclNewObj(valueObj);
# 1291| Tcl_IncrRefCount(valueObj);
# 1292| if (!TclWordKnownAtCompileTime(tokenPtr, valueObj)) {
Error: CPPCHECK_WARNING (CWE-476): [#def428]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:2291: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2289| Tcl_Obj *variables;
# 2290|
# 2291|-> TclNewObj(variables);
# 2292| for (i=0 ; i<duiPtr->length ; i++) {
# 2293| Tcl_ListObjAppendElement(NULL, variables,
Error: CPPCHECK_WARNING (CWE-457): [#def429]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:2291: error[uninitvar]: Uninitialized variable: cachePtr
# 2289| Tcl_Obj *variables;
# 2290|
# 2291|-> TclNewObj(variables);
# 2292| for (i=0 ; i<duiPtr->length ; i++) {
# 2293| Tcl_ListObjAppendElement(NULL, variables,
Error: CPPCHECK_WARNING (CWE-457): [#def430]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:2291: error[uninitvar]: Uninitialized variable: variables
# 2289| Tcl_Obj *variables;
# 2290|
# 2291|-> TclNewObj(variables);
# 2292| for (i=0 ; i<duiPtr->length ; i++) {
# 2293| Tcl_ListObjAppendElement(NULL, variables,
Error: CPPCHECK_WARNING (CWE-476): [#def431]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:2714: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2712| */
# 2713|
# 2714|-> TclNewObj(varListObj);
# 2715| for (i = 0, tokenPtr = parsePtr->tokenPtr;
# 2716| i < numWords-1;
Error: CPPCHECK_WARNING (CWE-457): [#def432]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:2714: error[uninitvar]: Uninitialized variable: cachePtr
# 2712| */
# 2713|
# 2714|-> TclNewObj(varListObj);
# 2715| for (i = 0, tokenPtr = parsePtr->tokenPtr;
# 2716| i < numWords-1;
Error: CPPCHECK_WARNING (CWE-457): [#def433]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:2714: error[uninitvar]: Uninitialized variable: varListObj
# 2712| */
# 2713|
# 2714|-> TclNewObj(varListObj);
# 2715| for (i = 0, tokenPtr = parsePtr->tokenPtr;
# 2716| i < numWords-1;
Error: CPPCHECK_WARNING (CWE-476): [#def434]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3033: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3031| */
# 3032|
# 3033|-> TclNewObj(objPtr);
# 3034| for (i=0 ; i<infoPtr->numLists ; i++) {
# 3035| Tcl_ListObjAppendElement(NULL, objPtr,
Error: CPPCHECK_WARNING (CWE-457): [#def435]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3033: error[uninitvar]: Uninitialized variable: cachePtr
# 3031| */
# 3032|
# 3033|-> TclNewObj(objPtr);
# 3034| for (i=0 ; i<infoPtr->numLists ; i++) {
# 3035| Tcl_ListObjAppendElement(NULL, objPtr,
Error: CPPCHECK_WARNING (CWE-457): [#def436]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3033: error[uninitvar]: Uninitialized variable: objPtr
# 3031| */
# 3032|
# 3033|-> TclNewObj(objPtr);
# 3034| for (i=0 ; i<infoPtr->numLists ; i++) {
# 3035| Tcl_ListObjAppendElement(NULL, objPtr,
Error: CPPCHECK_WARNING (CWE-476): [#def437]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3051: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3049| */
# 3050|
# 3051|-> TclNewObj(objPtr);
# 3052| for (i=0 ; i<infoPtr->numLists ; i++) {
# 3053| TclNewObj(innerPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def438]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3051: error[uninitvar]: Uninitialized variable: (objPtr)->internalRep.twoPtrValue.ptr1
# 3049| */
# 3050|
# 3051|-> TclNewObj(objPtr);
# 3052| for (i=0 ; i<infoPtr->numLists ; i++) {
# 3053| TclNewObj(innerPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def439]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3051: error[uninitvar]: Uninitialized variable: cachePtr
# 3049| */
# 3050|
# 3051|-> TclNewObj(objPtr);
# 3052| for (i=0 ; i<infoPtr->numLists ; i++) {
# 3053| TclNewObj(innerPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def440]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3053: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3051| TclNewObj(objPtr);
# 3052| for (i=0 ; i<infoPtr->numLists ; i++) {
# 3053|-> TclNewObj(innerPtr);
# 3054| varsPtr = infoPtr->varLists[i];
# 3055| for (j=0 ; j<varsPtr->numVars ; j++) {
Error: CPPCHECK_WARNING (CWE-457): [#def441]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3053: error[uninitvar]: Uninitialized variable: cachePtr
# 3051| TclNewObj(objPtr);
# 3052| for (i=0 ; i<infoPtr->numLists ; i++) {
# 3053|-> TclNewObj(innerPtr);
# 3054| varsPtr = infoPtr->varLists[i];
# 3055| for (j=0 ; j<varsPtr->numVars ; j++) {
Error: CPPCHECK_WARNING (CWE-457): [#def442]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3053: error[uninitvar]: Uninitialized variable: innerPtr
# 3051| TclNewObj(objPtr);
# 3052| for (i=0 ; i<infoPtr->numLists ; i++) {
# 3053|-> TclNewObj(innerPtr);
# 3054| varsPtr = infoPtr->varLists[i];
# 3055| for (j=0 ; j<varsPtr->numVars ; j++) {
Error: CPPCHECK_WARNING (CWE-476): [#def443]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3087: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3085| */
# 3086|
# 3087|-> TclNewObj(objPtr);
# 3088| for (i=0 ; i<infoPtr->numLists ; i++) {
# 3089| TclNewObj(innerPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def444]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3087: error[uninitvar]: Uninitialized variable: cachePtr
# 3085| */
# 3086|
# 3087|-> TclNewObj(objPtr);
# 3088| for (i=0 ; i<infoPtr->numLists ; i++) {
# 3089| TclNewObj(innerPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def445]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3087: error[uninitvar]: Uninitialized variable: objPtr
# 3085| */
# 3086|
# 3087|-> TclNewObj(objPtr);
# 3088| for (i=0 ; i<infoPtr->numLists ; i++) {
# 3089| TclNewObj(innerPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def446]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3089: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3087| TclNewObj(objPtr);
# 3088| for (i=0 ; i<infoPtr->numLists ; i++) {
# 3089|-> TclNewObj(innerPtr);
# 3090| varsPtr = infoPtr->varLists[i];
# 3091| for (j=0 ; j<varsPtr->numVars ; j++) {
Error: CPPCHECK_WARNING (CWE-457): [#def447]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3089: error[uninitvar]: Uninitialized variable: cachePtr
# 3087| TclNewObj(objPtr);
# 3088| for (i=0 ; i<infoPtr->numLists ; i++) {
# 3089|-> TclNewObj(innerPtr);
# 3090| varsPtr = infoPtr->varLists[i];
# 3091| for (j=0 ; j<varsPtr->numVars ; j++) {
Error: CPPCHECK_WARNING (CWE-457): [#def448]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3089: error[uninitvar]: Uninitialized variable: innerPtr
# 3087| TclNewObj(objPtr);
# 3088| for (i=0 ; i<infoPtr->numLists ; i++) {
# 3089|-> TclNewObj(innerPtr);
# 3090| varsPtr = infoPtr->varLists[i];
# 3091| for (j=0 ; j<varsPtr->numVars ; j++) {
Error: CPPCHECK_WARNING (CWE-476): [#def449]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3147: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3145| */
# 3146|
# 3147|-> TclNewObj(formatObj);
# 3148| Tcl_IncrRefCount(formatObj);
# 3149| tokenPtr = TokenAfter(tokenPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def450]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3147: error[uninitvar]: Uninitialized variable: cachePtr
# 3145| */
# 3146|
# 3147|-> TclNewObj(formatObj);
# 3148| Tcl_IncrRefCount(formatObj);
# 3149| tokenPtr = TokenAfter(tokenPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def451]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3147: error[uninitvar]: Uninitialized variable: formatObj
# 3145| */
# 3146|
# 3147|-> TclNewObj(formatObj);
# 3148| Tcl_IncrRefCount(formatObj);
# 3149| tokenPtr = TokenAfter(tokenPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def452]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3158: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3156| for (i=0 ; i+2 < parsePtr->numWords ; i++) {
# 3157| tokenPtr = TokenAfter(tokenPtr);
# 3158|-> TclNewObj(objv[i]);
# 3159| Tcl_IncrRefCount(objv[i]);
# 3160| if (!TclWordKnownAtCompileTime(tokenPtr, objv[i])) {
Error: CPPCHECK_WARNING (CWE-457): [#def453]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3158: error[uninitvar]: Uninitialized variable: (objv[i])->internalRep.twoPtrValue.ptr1
# 3156| for (i=0 ; i+2 < parsePtr->numWords ; i++) {
# 3157| tokenPtr = TokenAfter(tokenPtr);
# 3158|-> TclNewObj(objv[i]);
# 3159| Tcl_IncrRefCount(objv[i]);
# 3160| if (!TclWordKnownAtCompileTime(tokenPtr, objv[i])) {
Error: CPPCHECK_WARNING (CWE-457): [#def454]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3158: error[uninitvar]: Uninitialized variable: cachePtr
# 3156| for (i=0 ; i+2 < parsePtr->numWords ; i++) {
# 3157| tokenPtr = TokenAfter(tokenPtr);
# 3158|-> TclNewObj(objv[i]);
# 3159| Tcl_IncrRefCount(objv[i]);
# 3160| if (!TclWordKnownAtCompileTime(tokenPtr, objv[i])) {
Error: CPPCHECK_WARNING (CWE-476): [#def455]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3250: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3248| /* The start of the currently-scanned literal
# 3249| * in the format string. */
# 3250|-> TclNewObj(tmpObj); /* The buffer used to accumulate the literal
# 3251| * being built. */
# 3252| for (bytes = start ; *bytes ; bytes++) {
Error: CPPCHECK_WARNING (CWE-457): [#def456]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3250: error[uninitvar]: Uninitialized variable: cachePtr
# 3248| /* The start of the currently-scanned literal
# 3249| * in the format string. */
# 3250|-> TclNewObj(tmpObj); /* The buffer used to accumulate the literal
# 3251| * being built. */
# 3252| for (bytes = start ; *bytes ; bytes++) {
Error: CPPCHECK_WARNING (CWE-457): [#def457]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3250: error[uninitvar]: Uninitialized variable: tmpObj
# 3248| /* The start of the currently-scanned literal
# 3249| * in the format string. */
# 3250|-> TclNewObj(tmpObj); /* The buffer used to accumulate the literal
# 3251| * being built. */
# 3252| for (bytes = start ; *bytes ; bytes++) {
Error: CPPCHECK_WARNING (CWE-476): [#def458]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3268: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3266| PushLiteral(envPtr, b, len);
# 3267| Tcl_DecrRefCount(tmpObj);
# 3268|-> TclNewObj(tmpObj);
# 3269| i++;
# 3270| }
Error: CPPCHECK_WARNING (CWE-457): [#def459]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3268: error[uninitvar]: Uninitialized variable: (tmpObj)->internalRep.twoPtrValue.ptr1
# 3266| PushLiteral(envPtr, b, len);
# 3267| Tcl_DecrRefCount(tmpObj);
# 3268|-> TclNewObj(tmpObj);
# 3269| i++;
# 3270| }
Error: CPPCHECK_WARNING (CWE-457): [#def460]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmds.c:3268: error[uninitvar]: Uninitialized variable: cachePtr
# 3266| PushLiteral(envPtr, b, len);
# 3267| Tcl_DecrRefCount(tmpObj);
# 3268|-> TclNewObj(tmpObj);
# 3269| i++;
# 3270| }
Error: CPPCHECK_WARNING: [#def461]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def462]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:59: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 57| int result = TCL_ERROR;
# 58|
# 59|-> TclNewObj(tmpObj);
# 60| if (TclWordKnownAtCompileTime(tokenPtr, tmpObj)) {
# 61| result = TclIndexEncode(NULL, tmpObj, before, after, indexPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def463]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:59: error[uninitvar]: Uninitialized variable: cachePtr
# 57| int result = TCL_ERROR;
# 58|
# 59|-> TclNewObj(tmpObj);
# 60| if (TclWordKnownAtCompileTime(tokenPtr, tmpObj)) {
# 61| result = TclIndexEncode(NULL, tmpObj, before, after, indexPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def464]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:59: error[uninitvar]: Uninitialized variable: tmpObj
# 57| int result = TCL_ERROR;
# 58|
# 59|-> TclNewObj(tmpObj);
# 60| if (TclWordKnownAtCompileTime(tokenPtr, tmpObj)) {
# 61| result = TclIndexEncode(NULL, tmpObj, before, after, indexPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def465]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:257: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 255| Tcl_IncrRefCount(boolObj);
# 256| code = Tcl_GetBooleanFromObj(NULL, boolObj, &boolVal);
# 257|-> TclDecrRefCount(boolObj);
# 258| if (code == TCL_OK) {
# 259| /*
Error: CPPCHECK_WARNING (CWE-457): [#def466]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:257: error[uninitvar]: Uninitialized variable: cachePtr
# 255| Tcl_IncrRefCount(boolObj);
# 256| code = Tcl_GetBooleanFromObj(NULL, boolObj, &boolVal);
# 257|-> TclDecrRefCount(boolObj);
# 258| if (code == TCL_OK) {
# 259| /*
Error: CPPCHECK_WARNING (CWE-476): [#def467]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:510: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 508| Tcl_IncrRefCount(intObj);
# 509| code = TclGetIntFromObj(NULL, intObj, &immValue);
# 510|-> TclDecrRefCount(intObj);
# 511| if ((code == TCL_OK) && (-127 <= immValue) && (immValue <= 127)) {
# 512| haveImmValue = 1;
Error: CPPCHECK_WARNING (CWE-457): [#def468]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:510: error[uninitvar]: Uninitialized variable: cachePtr
# 508| Tcl_IncrRefCount(intObj);
# 509| code = TclGetIntFromObj(NULL, intObj, &immValue);
# 510|-> TclDecrRefCount(intObj);
# 511| if ((code == TCL_OK) && (-127 <= immValue) && (immValue <= 127)) {
# 512| haveImmValue = 1;
Error: CPPCHECK_WARNING (CWE-476): [#def469]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:606: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 604| }
# 605| tokenPtr = TokenAfter(parsePtr->tokenPtr);
# 606|-> TclNewObj(objPtr);
# 607| Tcl_IncrRefCount(objPtr);
# 608| if (!TclWordKnownAtCompileTime(tokenPtr, objPtr)) {
Error: CPPCHECK_WARNING (CWE-457): [#def470]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:606: error[uninitvar]: Uninitialized variable: cachePtr
# 604| }
# 605| tokenPtr = TokenAfter(parsePtr->tokenPtr);
# 606|-> TclNewObj(objPtr);
# 607| Tcl_IncrRefCount(objPtr);
# 608| if (!TclWordKnownAtCompileTime(tokenPtr, objPtr)) {
Error: CPPCHECK_WARNING (CWE-457): [#def471]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:606: error[uninitvar]: Uninitialized variable: objPtr
# 604| }
# 605| tokenPtr = TokenAfter(parsePtr->tokenPtr);
# 606|-> TclNewObj(objPtr);
# 607| Tcl_IncrRefCount(objPtr);
# 608| if (!TclWordKnownAtCompileTime(tokenPtr, objPtr)) {
Error: CPPCHECK_WARNING (CWE-476): [#def472]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:1187: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1185| numWords = parsePtr->numWords;
# 1186| valueTokenPtr = TokenAfter(parsePtr->tokenPtr);
# 1187|-> TclNewObj(listObj);
# 1188| for (i = 1; i < numWords && listObj != NULL; i++) {
# 1189| TclNewObj(objPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def473]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:1187: error[uninitvar]: Uninitialized variable: cachePtr
# 1185| numWords = parsePtr->numWords;
# 1186| valueTokenPtr = TokenAfter(parsePtr->tokenPtr);
# 1187|-> TclNewObj(listObj);
# 1188| for (i = 1; i < numWords && listObj != NULL; i++) {
# 1189| TclNewObj(objPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def474]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:1187: error[uninitvar]: Uninitialized variable: listObj
# 1185| numWords = parsePtr->numWords;
# 1186| valueTokenPtr = TokenAfter(parsePtr->tokenPtr);
# 1187|-> TclNewObj(listObj);
# 1188| for (i = 1; i < numWords && listObj != NULL; i++) {
# 1189| TclNewObj(objPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def475]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:1189: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1187| TclNewObj(listObj);
# 1188| for (i = 1; i < numWords && listObj != NULL; i++) {
# 1189|-> TclNewObj(objPtr);
# 1190| if (TclWordKnownAtCompileTime(valueTokenPtr, objPtr)) {
# 1191| (void) Tcl_ListObjAppendElement(NULL, listObj, objPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def476]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:1189: error[uninitvar]: Uninitialized variable: cachePtr
# 1187| TclNewObj(listObj);
# 1188| for (i = 1; i < numWords && listObj != NULL; i++) {
# 1189|-> TclNewObj(objPtr);
# 1190| if (TclWordKnownAtCompileTime(valueTokenPtr, objPtr)) {
# 1191| (void) Tcl_ListObjAppendElement(NULL, listObj, objPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def477]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:1189: error[uninitvar]: Uninitialized variable: objPtr
# 1187| TclNewObj(listObj);
# 1188| for (i = 1; i < numWords && listObj != NULL; i++) {
# 1189|-> TclNewObj(objPtr);
# 1190| if (TclWordKnownAtCompileTime(valueTokenPtr, objPtr)) {
# 1191| (void) Tcl_ListObjAppendElement(NULL, listObj, objPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def478]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2298: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2296| Tcl_DStringInit(&pattern);
# 2297| tokenPtr = TokenAfter(tokenPtr);
# 2298|-> TclNewObj(patternObj);
# 2299| if (!TclWordKnownAtCompileTime(tokenPtr, patternObj)) {
# 2300| goto done;
Error: CPPCHECK_WARNING (CWE-457): [#def479]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2298: error[uninitvar]: Uninitialized variable: cachePtr
# 2296| Tcl_DStringInit(&pattern);
# 2297| tokenPtr = TokenAfter(tokenPtr);
# 2298|-> TclNewObj(patternObj);
# 2299| if (!TclWordKnownAtCompileTime(tokenPtr, patternObj)) {
# 2300| goto done;
Error: CPPCHECK_WARNING (CWE-457): [#def480]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2298: error[uninitvar]: Uninitialized variable: patternObj
# 2296| Tcl_DStringInit(&pattern);
# 2297| tokenPtr = TokenAfter(tokenPtr);
# 2298|-> TclNewObj(patternObj);
# 2299| if (!TclWordKnownAtCompileTime(tokenPtr, patternObj)) {
# 2300| goto done;
Error: CPPCHECK_WARNING (CWE-476): [#def481]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2309: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2307| tokenPtr = TokenAfter(tokenPtr);
# 2308| Tcl_DecrRefCount(patternObj);
# 2309|-> TclNewObj(patternObj);
# 2310| if (!TclWordKnownAtCompileTime(tokenPtr, patternObj)) {
# 2311| goto done;
Error: CPPCHECK_WARNING (CWE-457): [#def482]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2309: error[uninitvar]: Uninitialized variable: (patternObj)->internalRep.twoPtrValue.ptr1
# 2307| tokenPtr = TokenAfter(tokenPtr);
# 2308| Tcl_DecrRefCount(patternObj);
# 2309|-> TclNewObj(patternObj);
# 2310| if (!TclWordKnownAtCompileTime(tokenPtr, patternObj)) {
# 2311| goto done;
Error: CPPCHECK_WARNING (CWE-457): [#def483]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2309: error[uninitvar]: Uninitialized variable: cachePtr
# 2307| tokenPtr = TokenAfter(tokenPtr);
# 2308| Tcl_DecrRefCount(patternObj);
# 2309|-> TclNewObj(patternObj);
# 2310| if (!TclWordKnownAtCompileTime(tokenPtr, patternObj)) {
# 2311| goto done;
Error: CPPCHECK_WARNING (CWE-476): [#def484]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2324: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2322| stringTokenPtr = TokenAfter(tokenPtr);
# 2323| tokenPtr = TokenAfter(stringTokenPtr);
# 2324|-> TclNewObj(replacementObj);
# 2325| if (!TclWordKnownAtCompileTime(tokenPtr, replacementObj)) {
# 2326| goto done;
Error: CPPCHECK_WARNING (CWE-457): [#def485]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2324: error[uninitvar]: Uninitialized variable: cachePtr
# 2322| stringTokenPtr = TokenAfter(tokenPtr);
# 2323| tokenPtr = TokenAfter(stringTokenPtr);
# 2324|-> TclNewObj(replacementObj);
# 2325| if (!TclWordKnownAtCompileTime(tokenPtr, replacementObj)) {
# 2326| goto done;
Error: CPPCHECK_WARNING (CWE-457): [#def486]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2324: error[uninitvar]: Uninitialized variable: replacementObj
# 2322| stringTokenPtr = TokenAfter(tokenPtr);
# 2323| tokenPtr = TokenAfter(stringTokenPtr);
# 2324|-> TclNewObj(replacementObj);
# 2325| if (!TclWordKnownAtCompileTime(tokenPtr, replacementObj)) {
# 2326| goto done;
Error: CPPCHECK_WARNING (CWE-476): [#def487]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2476: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2474|
# 2475| for (objc = 0; objc < numOptionWords; objc++) {
# 2476|-> TclNewObj(objv[objc]);
# 2477| Tcl_IncrRefCount(objv[objc]);
# 2478| if (!TclWordKnownAtCompileTime(wordTokenPtr, objv[objc])) {
Error: CPPCHECK_WARNING (CWE-457): [#def488]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2476: error[uninitvar]: Uninitialized variable: cachePtr
# 2474|
# 2475| for (objc = 0; objc < numOptionWords; objc++) {
# 2476|-> TclNewObj(objv[objc]);
# 2477| Tcl_IncrRefCount(objv[objc]);
# 2478| if (!TclWordKnownAtCompileTime(wordTokenPtr, objv[objc])) {
Error: CPPCHECK_WARNING (CWE-476): [#def489]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2484: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2482|
# 2483| for (; objc>=0 ; objc--) {
# 2484|-> TclDecrRefCount(objv[objc]);
# 2485| }
# 2486| TclStackFree(interp, objv);
Error: CPPCHECK_WARNING (CWE-457): [#def490]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2484: error[uninitvar]: Uninitialized variable: cachePtr
# 2482|
# 2483| for (; objc>=0 ; objc--) {
# 2484|-> TclDecrRefCount(objv[objc]);
# 2485| }
# 2486| TclStackFree(interp, objv);
Error: CPPCHECK_WARNING (CWE-476): [#def491]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2494: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2492| &returnOpts, &code, &level);
# 2493| while (--objc >= 0) {
# 2494|-> TclDecrRefCount(objv[objc]);
# 2495| }
# 2496| TclStackFree(interp, objv);
Error: CPPCHECK_WARNING (CWE-457): [#def492]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2494: error[uninitvar]: Uninitialized variable: cachePtr
# 2492| &returnOpts, &code, &level);
# 2493| while (--objc >= 0) {
# 2494|-> TclDecrRefCount(objv[objc]);
# 2495| }
# 2496| TclStackFree(interp, objv);
Error: CPPCHECK_WARNING (CWE-476): [#def493]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2696: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2694| */
# 2695|
# 2696|-> TclNewObj(objPtr);
# 2697| tokenPtr = TokenAfter(parsePtr->tokenPtr);
# 2698| if (TclWordKnownAtCompileTime(tokenPtr, objPtr)) {
Error: CPPCHECK_WARNING (CWE-457): [#def494]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2696: error[uninitvar]: Uninitialized variable: cachePtr
# 2694| */
# 2695|
# 2696|-> TclNewObj(objPtr);
# 2697| tokenPtr = TokenAfter(parsePtr->tokenPtr);
# 2698| if (TclWordKnownAtCompileTime(tokenPtr, objPtr)) {
Error: CPPCHECK_WARNING (CWE-457): [#def495]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2696: error[uninitvar]: Uninitialized variable: objPtr
# 2694| */
# 2695|
# 2696|-> TclNewObj(objPtr);
# 2697| tokenPtr = TokenAfter(parsePtr->tokenPtr);
# 2698| if (TclWordKnownAtCompileTime(tokenPtr, objPtr)) {
Error: CPPCHECK_WARNING (CWE-476): [#def496]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2887: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2885| }
# 2886|
# 2887|-> TclNewObj(tailPtr);
# 2888| if (TclWordKnownAtCompileTime(varTokenPtr, tailPtr)) {
# 2889| full = 1;
Error: CPPCHECK_WARNING (CWE-457): [#def497]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2887: error[uninitvar]: Uninitialized variable: cachePtr
# 2885| }
# 2886|
# 2887|-> TclNewObj(tailPtr);
# 2888| if (TclWordKnownAtCompileTime(varTokenPtr, tailPtr)) {
# 2889| full = 1;
Error: CPPCHECK_WARNING (CWE-457): [#def498]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsGR.c:2887: error[uninitvar]: Uninitialized variable: tailPtr
# 2885| }
# 2886|
# 2887|-> TclNewObj(tailPtr);
# 2888| if (TclWordKnownAtCompileTime(varTokenPtr, tailPtr)) {
# 2889| full = 1;
Error: CPPCHECK_WARNING: [#def499]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def500]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:246: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 244| wordTokenPtr = TokenAfter(parsePtr->tokenPtr);
# 245| for (i = 1; i < numWords; i++) {
# 246|-> TclNewObj(obj);
# 247| if (TclWordKnownAtCompileTime(wordTokenPtr, obj)) {
# 248| if (folded) {
Error: CPPCHECK_WARNING (CWE-457): [#def501]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:246: error[uninitvar]: Uninitialized variable: cachePtr
# 244| wordTokenPtr = TokenAfter(parsePtr->tokenPtr);
# 245| for (i = 1; i < numWords; i++) {
# 246|-> TclNewObj(obj);
# 247| if (TclWordKnownAtCompileTime(wordTokenPtr, obj)) {
# 248| if (folded) {
Error: CPPCHECK_WARNING (CWE-457): [#def502]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:246: error[uninitvar]: Uninitialized variable: obj
# 244| wordTokenPtr = TokenAfter(parsePtr->tokenPtr);
# 245| for (i = 1; i < numWords; i++) {
# 246|-> TclNewObj(obj);
# 247| if (TclWordKnownAtCompileTime(wordTokenPtr, obj)) {
# 248| if (folded) {
Error: CPPCHECK_WARNING (CWE-476): [#def503]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:480: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 478| return TCL_ERROR;
# 479| }
# 480|-> TclNewObj(isClass);
# 481| if (!TclWordKnownAtCompileTime(tokenPtr, isClass)) {
# 482| Tcl_DecrRefCount(isClass);
Error: CPPCHECK_WARNING (CWE-457): [#def504]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:480: error[uninitvar]: Uninitialized variable: cachePtr
# 478| return TCL_ERROR;
# 479| }
# 480|-> TclNewObj(isClass);
# 481| if (!TclWordKnownAtCompileTime(tokenPtr, isClass)) {
# 482| Tcl_DecrRefCount(isClass);
Error: CPPCHECK_WARNING (CWE-476): [#def505]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:784: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 782| Tcl_IncrRefCount(copy);
# 783| exactMatch = TclMatchIsTrivial(TclGetString(copy));
# 784|-> TclDecrRefCount(copy);
# 785| }
# 786| PushLiteral(envPtr, str, length);
Error: CPPCHECK_WARNING (CWE-457): [#def506]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:784: error[uninitvar]: Uninitialized variable: cachePtr
# 782| Tcl_IncrRefCount(copy);
# 783| exactMatch = TclMatchIsTrivial(TclGetString(copy));
# 784|-> TclDecrRefCount(copy);
# 785| }
# 786| PushLiteral(envPtr, str, length);
Error: CPPCHECK_WARNING (CWE-476): [#def507]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:824: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 822|
# 823| tokenPtr = TokenAfter(parsePtr->tokenPtr);
# 824|-> TclNewObj(objPtr);
# 825| if (TclWordKnownAtCompileTime(tokenPtr, objPtr)) {
# 826| /*
Error: CPPCHECK_WARNING (CWE-457): [#def508]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:824: error[uninitvar]: Uninitialized variable: cachePtr
# 822|
# 823| tokenPtr = TokenAfter(parsePtr->tokenPtr);
# 824|-> TclNewObj(objPtr);
# 825| if (TclWordKnownAtCompileTime(tokenPtr, objPtr)) {
# 826| /*
Error: CPPCHECK_WARNING (CWE-457): [#def509]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:824: error[uninitvar]: Uninitialized variable: objPtr
# 822|
# 823| tokenPtr = TokenAfter(parsePtr->tokenPtr);
# 824|-> TclNewObj(objPtr);
# 825| if (TclWordKnownAtCompileTime(tokenPtr, objPtr)) {
# 826| /*
Error: CPPCHECK_WARNING (CWE-476): [#def510]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:842: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 840| TclEmitOpcode(INST_STR_LEN, envPtr);
# 841| }
# 842|-> TclDecrRefCount(objPtr);
# 843| return TCL_OK;
# 844| }
Error: CPPCHECK_WARNING (CWE-457): [#def511]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:842: error[uninitvar]: Uninitialized variable: cachePtr
# 840| TclEmitOpcode(INST_STR_LEN, envPtr);
# 841| }
# 842|-> TclDecrRefCount(objPtr);
# 843| return TCL_OK;
# 844| }
Error: CPPCHECK_WARNING (CWE-476): [#def512]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:876: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 874| mapTokenPtr = TokenAfter(parsePtr->tokenPtr);
# 875| stringTokenPtr = TokenAfter(mapTokenPtr);
# 876|-> TclNewObj(mapObj);
# 877| Tcl_IncrRefCount(mapObj);
# 878| if (!TclWordKnownAtCompileTime(mapTokenPtr, mapObj)) {
Error: CPPCHECK_WARNING (CWE-457): [#def513]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:876: error[uninitvar]: Uninitialized variable: cachePtr
# 874| mapTokenPtr = TokenAfter(parsePtr->tokenPtr);
# 875| stringTokenPtr = TokenAfter(mapTokenPtr);
# 876|-> TclNewObj(mapObj);
# 877| Tcl_IncrRefCount(mapObj);
# 878| if (!TclWordKnownAtCompileTime(mapTokenPtr, mapObj)) {
Error: CPPCHECK_WARNING (CWE-457): [#def514]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:876: error[uninitvar]: Uninitialized variable: mapObj
# 874| mapTokenPtr = TokenAfter(parsePtr->tokenPtr);
# 875| stringTokenPtr = TokenAfter(mapTokenPtr);
# 876|-> TclNewObj(mapObj);
# 877| Tcl_IncrRefCount(mapObj);
# 878| if (!TclWordKnownAtCompileTime(mapTokenPtr, mapObj)) {
Error: CPPCHECK_WARNING (CWE-457): [#def515]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:881: error[legacyUninitvar]: Uninitialized variable: *(&objv)
# 879| Tcl_DecrRefCount(mapObj);
# 880| return TclCompileBasic2ArgCmd(interp, parsePtr, cmdPtr, envPtr);
# 881|-> } else if (TclListObjGetElements(NULL, mapObj, &len, &objv) != TCL_OK) {
# 882| Tcl_DecrRefCount(mapObj);
# 883| return TclCompileBasic2ArgCmd(interp, parsePtr, cmdPtr, envPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def516]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:1416: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1414|
# 1415| for (objc = 0; objc < /*numArgs*/ numOpts; objc++) {
# 1416|-> TclNewObj(objv[objc]);
# 1417| Tcl_IncrRefCount(objv[objc]);
# 1418| if (!TclWordKnownAtCompileTime(wordTokenPtr, objv[objc])) {
Error: CPPCHECK_WARNING (CWE-457): [#def517]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:1416: error[uninitvar]: Uninitialized variable: (objv[objc])->internalRep.twoPtrValue.ptr1
# 1414|
# 1415| for (objc = 0; objc < /*numArgs*/ numOpts; objc++) {
# 1416|-> TclNewObj(objv[objc]);
# 1417| Tcl_IncrRefCount(objv[objc]);
# 1418| if (!TclWordKnownAtCompileTime(wordTokenPtr, objv[objc])) {
Error: CPPCHECK_WARNING (CWE-457): [#def518]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:1416: error[uninitvar]: Uninitialized variable: cachePtr
# 1414|
# 1415| for (objc = 0; objc < /*numArgs*/ numOpts; objc++) {
# 1416|-> TclNewObj(objv[objc]);
# 1417| Tcl_IncrRefCount(objv[objc]);
# 1418| if (!TclWordKnownAtCompileTime(wordTokenPtr, objv[objc])) {
Error: CPPCHECK_WARNING (CWE-476): [#def519]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:1444: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1442| cleanup:
# 1443| while (--objc >= 0) {
# 1444|-> TclDecrRefCount(objv[objc]);
# 1445| }
# 1446| TclStackFree(interp, objv);
Error: CPPCHECK_WARNING (CWE-457): [#def520]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:1444: error[uninitvar]: Uninitialized variable: cachePtr
# 1442| cleanup:
# 1443| while (--objc >= 0) {
# 1444|-> TclDecrRefCount(objv[objc]);
# 1445| }
# 1446| TclStackFree(interp, objv);
Error: CPPCHECK_WARNING (CWE-476): [#def521]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2572: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2570| int offset;
# 2571|
# 2572|-> TclNewObj(mapping);
# 2573| hPtr = Tcl_FirstHashEntry(&jtPtr->hashTable, &search);
# 2574| for (; hPtr ; hPtr = Tcl_NextHashEntry(&search)) {
Error: CPPCHECK_WARNING (CWE-457): [#def522]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2572: error[uninitvar]: Uninitialized variable: cachePtr
# 2570| int offset;
# 2571|
# 2572|-> TclNewObj(mapping);
# 2573| hPtr = Tcl_FirstHashEntry(&jtPtr->hashTable, &search);
# 2574| for (; hPtr ; hPtr = Tcl_NextHashEntry(&search)) {
Error: CPPCHECK_WARNING (CWE-457): [#def523]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2572: error[uninitvar]: Uninitialized variable: mapping
# 2570| int offset;
# 2571|
# 2572|-> TclNewObj(mapping);
# 2573| hPtr = Tcl_FirstHashEntry(&jtPtr->hashTable, &search);
# 2574| for (; hPtr ; hPtr = Tcl_NextHashEntry(&search)) {
Error: CPPCHECK_WARNING (CWE-476): [#def524]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2669: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2667| msgToken = TokenAfter(codeToken);
# 2668|
# 2669|-> TclNewObj(objPtr);
# 2670| Tcl_IncrRefCount(objPtr);
# 2671|
Error: CPPCHECK_WARNING (CWE-457): [#def525]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2669: error[uninitvar]: Uninitialized variable: cachePtr
# 2667| msgToken = TokenAfter(codeToken);
# 2668|
# 2669|-> TclNewObj(objPtr);
# 2670| Tcl_IncrRefCount(objPtr);
# 2671|
Error: CPPCHECK_WARNING (CWE-476): [#def526]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2691: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2689| Tcl_Obj *errPtr, *dictPtr;
# 2690|
# 2691|-> TclNewLiteralStringObj(errPtr, "-errorcode");
# 2692| TclNewObj(dictPtr);
# 2693| Tcl_DictObjPut(NULL, dictPtr, errPtr, objPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def527]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2691: error[uninitvar]: Uninitialized variable: cachePtr
# 2689| Tcl_Obj *errPtr, *dictPtr;
# 2690|
# 2691|-> TclNewLiteralStringObj(errPtr, "-errorcode");
# 2692| TclNewObj(dictPtr);
# 2693| Tcl_DictObjPut(NULL, dictPtr, errPtr, objPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def528]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2692: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2690|
# 2691| TclNewLiteralStringObj(errPtr, "-errorcode");
# 2692|-> TclNewObj(dictPtr);
# 2693| Tcl_DictObjPut(NULL, dictPtr, errPtr, objPtr);
# 2694| TclEmitPush(TclAddLiteralObj(envPtr, dictPtr, NULL), envPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def529]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2692: error[uninitvar]: Uninitialized variable: cachePtr
# 2690|
# 2691| TclNewLiteralStringObj(errPtr, "-errorcode");
# 2692|-> TclNewObj(dictPtr);
# 2693| Tcl_DictObjPut(NULL, dictPtr, errPtr, objPtr);
# 2694| TclEmitPush(TclAddLiteralObj(envPtr, dictPtr, NULL), envPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def530]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2696: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2694| TclEmitPush(TclAddLiteralObj(envPtr, dictPtr, NULL), envPtr);
# 2695| }
# 2696|-> TclDecrRefCount(objPtr);
# 2697|
# 2698| /*
Error: CPPCHECK_WARNING (CWE-457): [#def531]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2696: error[uninitvar]: Uninitialized variable: cachePtr
# 2694| TclEmitPush(TclAddLiteralObj(envPtr, dictPtr, NULL), envPtr);
# 2695| }
# 2696|-> TclDecrRefCount(objPtr);
# 2697|
# 2698| /*
Error: CPPCHECK_WARNING (CWE-476): [#def532]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2816: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2814| matchCodes[i] = TCL_ERROR;
# 2815| tokenPtr = TokenAfter(tokenPtr);
# 2816|-> TclNewObj(tmpObj);
# 2817| Tcl_IncrRefCount(tmpObj);
# 2818| if (!TclWordKnownAtCompileTime(tokenPtr, tmpObj)
Error: CPPCHECK_WARNING (CWE-457): [#def533]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2816: error[uninitvar]: Uninitialized variable: cachePtr
# 2814| matchCodes[i] = TCL_ERROR;
# 2815| tokenPtr = TokenAfter(tokenPtr);
# 2816|-> TclNewObj(tmpObj);
# 2817| Tcl_IncrRefCount(tmpObj);
# 2818| if (!TclWordKnownAtCompileTime(tokenPtr, tmpObj)
Error: CPPCHECK_WARNING (CWE-457): [#def534]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2816: error[uninitvar]: Uninitialized variable: tmpObj
# 2814| matchCodes[i] = TCL_ERROR;
# 2815| tokenPtr = TokenAfter(tokenPtr);
# 2816|-> TclNewObj(tmpObj);
# 2817| Tcl_IncrRefCount(tmpObj);
# 2818| if (!TclWordKnownAtCompileTime(tokenPtr, tmpObj)
Error: CPPCHECK_WARNING (CWE-476): [#def535]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2821: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2819| || TclListObjLength(NULL, tmpObj, &objc) != TCL_OK
# 2820| || (objc == 0)) {
# 2821|-> TclDecrRefCount(tmpObj);
# 2822| goto failedToCompile;
# 2823| }
Error: CPPCHECK_WARNING (CWE-457): [#def536]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2821: error[uninitvar]: Uninitialized variable: cachePtr
# 2819| || TclListObjLength(NULL, tmpObj, &objc) != TCL_OK
# 2820| || (objc == 0)) {
# 2821|-> TclDecrRefCount(tmpObj);
# 2822| goto failedToCompile;
# 2823| }
Error: CPPCHECK_WARNING (CWE-476): [#def537]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2835: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2833|
# 2834| tokenPtr = TokenAfter(tokenPtr);
# 2835|-> TclNewObj(tmpObj);
# 2836| Tcl_IncrRefCount(tmpObj);
# 2837| if (!TclWordKnownAtCompileTime(tokenPtr, tmpObj)) {
Error: CPPCHECK_WARNING (CWE-457): [#def538]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2835: error[uninitvar]: Uninitialized variable: (tmpObj)->internalRep.twoPtrValue.ptr1
# 2833|
# 2834| tokenPtr = TokenAfter(tokenPtr);
# 2835|-> TclNewObj(tmpObj);
# 2836| Tcl_IncrRefCount(tmpObj);
# 2837| if (!TclWordKnownAtCompileTime(tokenPtr, tmpObj)) {
Error: CPPCHECK_WARNING (CWE-457): [#def539]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2835: error[uninitvar]: Uninitialized variable: cachePtr
# 2833|
# 2834| tokenPtr = TokenAfter(tokenPtr);
# 2835|-> TclNewObj(tmpObj);
# 2836| Tcl_IncrRefCount(tmpObj);
# 2837| if (!TclWordKnownAtCompileTime(tokenPtr, tmpObj)) {
Error: CPPCHECK_WARNING (CWE-476): [#def540]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2838: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2836| Tcl_IncrRefCount(tmpObj);
# 2837| if (!TclWordKnownAtCompileTime(tokenPtr, tmpObj)) {
# 2838|-> TclDecrRefCount(tmpObj);
# 2839| goto failedToCompile;
# 2840| }
Error: CPPCHECK_WARNING (CWE-457): [#def541]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2838: error[uninitvar]: Uninitialized variable: cachePtr
# 2836| Tcl_IncrRefCount(tmpObj);
# 2837| if (!TclWordKnownAtCompileTime(tokenPtr, tmpObj)) {
# 2838|-> TclDecrRefCount(tmpObj);
# 2839| goto failedToCompile;
# 2840| }
Error: CPPCHECK_WARNING (CWE-476): [#def542]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2842: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2840| }
# 2841| if (TCL_ERROR == TclGetCompletionCodeFromObj(NULL, tmpObj, &code)) {
# 2842|-> TclDecrRefCount(tmpObj);
# 2843| goto failedToCompile;
# 2844| }
Error: CPPCHECK_WARNING (CWE-457): [#def543]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2842: error[uninitvar]: Uninitialized variable: cachePtr
# 2840| }
# 2841| if (TCL_ERROR == TclGetCompletionCodeFromObj(NULL, tmpObj, &code)) {
# 2842|-> TclDecrRefCount(tmpObj);
# 2843| goto failedToCompile;
# 2844| }
Error: CPPCHECK_WARNING (CWE-476): [#def544]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2846: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2844| }
# 2845| matchCodes[i] = code;
# 2846|-> TclDecrRefCount(tmpObj);
# 2847| } else {
# 2848| goto failedToCompile;
Error: CPPCHECK_WARNING (CWE-457): [#def545]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2846: error[uninitvar]: Uninitialized variable: cachePtr
# 2844| }
# 2845| matchCodes[i] = code;
# 2846|-> TclDecrRefCount(tmpObj);
# 2847| } else {
# 2848| goto failedToCompile;
Error: CPPCHECK_WARNING (CWE-476): [#def546]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2856: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2854|
# 2855| tokenPtr = TokenAfter(tokenPtr);
# 2856|-> TclNewObj(tmpObj);
# 2857| Tcl_IncrRefCount(tmpObj);
# 2858| if (!TclWordKnownAtCompileTime(tokenPtr, tmpObj)) {
Error: CPPCHECK_WARNING (CWE-457): [#def547]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2856: error[uninitvar]: Uninitialized variable: cachePtr
# 2854|
# 2855| tokenPtr = TokenAfter(tokenPtr);
# 2856|-> TclNewObj(tmpObj);
# 2857| Tcl_IncrRefCount(tmpObj);
# 2858| if (!TclWordKnownAtCompileTime(tokenPtr, tmpObj)) {
Error: CPPCHECK_WARNING (CWE-476): [#def548]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2859: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2857| Tcl_IncrRefCount(tmpObj);
# 2858| if (!TclWordKnownAtCompileTime(tokenPtr, tmpObj)) {
# 2859|-> TclDecrRefCount(tmpObj);
# 2860| goto failedToCompile;
# 2861| }
Error: CPPCHECK_WARNING (CWE-457): [#def549]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2859: error[uninitvar]: Uninitialized variable: cachePtr
# 2857| Tcl_IncrRefCount(tmpObj);
# 2858| if (!TclWordKnownAtCompileTime(tokenPtr, tmpObj)) {
# 2859|-> TclDecrRefCount(tmpObj);
# 2860| goto failedToCompile;
# 2861| }
Error: CPPCHECK_WARNING (CWE-457): [#def550]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2862: error[legacyUninitvar]: Uninitialized variable: *(&objv)
# 2860| goto failedToCompile;
# 2861| }
# 2862|-> if (TclListObjGetElements(NULL, tmpObj, &objc, &objv) != TCL_OK
# 2863| || (objc > 2)) {
# 2864| TclDecrRefCount(tmpObj);
Error: CPPCHECK_WARNING (CWE-476): [#def551]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2864: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2862| if (TclListObjGetElements(NULL, tmpObj, &objc, &objv) != TCL_OK
# 2863| || (objc > 2)) {
# 2864|-> TclDecrRefCount(tmpObj);
# 2865| goto failedToCompile;
# 2866| }
Error: CPPCHECK_WARNING (CWE-457): [#def552]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2864: error[uninitvar]: Uninitialized variable: cachePtr
# 2862| if (TclListObjGetElements(NULL, tmpObj, &objc, &objv) != TCL_OK
# 2863| || (objc > 2)) {
# 2864|-> TclDecrRefCount(tmpObj);
# 2865| goto failedToCompile;
# 2866| }
Error: CPPCHECK_WARNING (CWE-476): [#def553]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2873: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2871| resultVarIndices[i] = LocalScalar(varname, len, envPtr);
# 2872| if (resultVarIndices[i] < 0) {
# 2873|-> TclDecrRefCount(tmpObj);
# 2874| goto failedToCompile;
# 2875| }
Error: CPPCHECK_WARNING (CWE-457): [#def554]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2873: error[uninitvar]: Uninitialized variable: cachePtr
# 2871| resultVarIndices[i] = LocalScalar(varname, len, envPtr);
# 2872| if (resultVarIndices[i] < 0) {
# 2873|-> TclDecrRefCount(tmpObj);
# 2874| goto failedToCompile;
# 2875| }
Error: CPPCHECK_WARNING (CWE-476): [#def555]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2885: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2883| optionVarIndices[i] = LocalScalar(varname, len, envPtr);
# 2884| if (optionVarIndices[i] < 0) {
# 2885|-> TclDecrRefCount(tmpObj);
# 2886| goto failedToCompile;
# 2887| }
Error: CPPCHECK_WARNING (CWE-457): [#def556]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2885: error[uninitvar]: Uninitialized variable: cachePtr
# 2883| optionVarIndices[i] = LocalScalar(varname, len, envPtr);
# 2884| if (optionVarIndices[i] < 0) {
# 2885|-> TclDecrRefCount(tmpObj);
# 2886| goto failedToCompile;
# 2887| }
Error: CPPCHECK_WARNING (CWE-476): [#def557]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2891: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2889| optionVarIndices[i] = -1;
# 2890| }
# 2891|-> TclDecrRefCount(tmpObj);
# 2892|
# 2893| /*
Error: CPPCHECK_WARNING (CWE-457): [#def558]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2891: error[uninitvar]: Uninitialized variable: cachePtr
# 2889| optionVarIndices[i] = -1;
# 2890| }
# 2891|-> TclDecrRefCount(tmpObj);
# 2892|
# 2893| /*
Error: CPPCHECK_WARNING (CWE-476): [#def559]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2959: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2957| for (i=0 ; i<numHandlers ; i++) {
# 2958| if (matchClauses[i]) {
# 2959|-> TclDecrRefCount(matchClauses[i]);
# 2960| }
# 2961| }
Error: CPPCHECK_WARNING (CWE-457): [#def560]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:2959: error[uninitvar]: Uninitialized variable: cachePtr
# 2957| for (i=0 ; i<numHandlers ; i++) {
# 2958| if (matchClauses[i]) {
# 2959|-> TclDecrRefCount(matchClauses[i]);
# 2960| }
# 2961| }
Error: CPPCHECK_WARNING (CWE-476): [#def561]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:3589: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3587| Tcl_Obj *leadingWord;
# 3588|
# 3589|-> TclNewObj(leadingWord);
# 3590| varTokenPtr = TokenAfter(varTokenPtr);
# 3591| if (!TclWordKnownAtCompileTime(varTokenPtr, leadingWord)) {
Error: CPPCHECK_WARNING (CWE-457): [#def562]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:3589: error[uninitvar]: Uninitialized variable: cachePtr
# 3587| Tcl_Obj *leadingWord;
# 3588|
# 3589|-> TclNewObj(leadingWord);
# 3590| varTokenPtr = TokenAfter(varTokenPtr);
# 3591| if (!TclWordKnownAtCompileTime(varTokenPtr, leadingWord)) {
Error: CPPCHECK_WARNING (CWE-457): [#def563]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:3589: error[uninitvar]: Uninitialized variable: leadingWord
# 3587| Tcl_Obj *leadingWord;
# 3588|
# 3589|-> TclNewObj(leadingWord);
# 3590| varTokenPtr = TokenAfter(varTokenPtr);
# 3591| if (!TclWordKnownAtCompileTime(varTokenPtr, leadingWord)) {
Error: CPPCHECK_WARNING (CWE-476): [#def564]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:3592: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3590| varTokenPtr = TokenAfter(varTokenPtr);
# 3591| if (!TclWordKnownAtCompileTime(varTokenPtr, leadingWord)) {
# 3592|-> TclDecrRefCount(leadingWord);
# 3593|
# 3594| /*
Error: CPPCHECK_WARNING (CWE-457): [#def565]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:3592: error[uninitvar]: Uninitialized variable: cachePtr
# 3590| varTokenPtr = TokenAfter(varTokenPtr);
# 3591| if (!TclWordKnownAtCompileTime(varTokenPtr, leadingWord)) {
# 3592|-> TclDecrRefCount(leadingWord);
# 3593|
# 3594| /*
Error: CPPCHECK_WARNING (CWE-476): [#def566]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:3639: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3637| varCount++;
# 3638| }
# 3639|-> TclDecrRefCount(leadingWord);
# 3640| }
# 3641|
Error: CPPCHECK_WARNING (CWE-457): [#def567]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:3639: error[uninitvar]: Uninitialized variable: cachePtr
# 3637| varCount++;
# 3638| }
# 3639|-> TclDecrRefCount(leadingWord);
# 3640| }
# 3641|
Error: CPPCHECK_WARNING (CWE-476): [#def568]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:3749: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3747| Tcl_IncrRefCount(boolObj);
# 3748| code = Tcl_GetBooleanFromObj(NULL, boolObj, &boolVal);
# 3749|-> TclDecrRefCount(boolObj);
# 3750| if (code == TCL_OK) {
# 3751| if (boolVal) {
Error: CPPCHECK_WARNING (CWE-457): [#def569]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompCmdsSZ.c:3749: error[uninitvar]: Uninitialized variable: cachePtr
# 3747| Tcl_IncrRefCount(boolObj);
# 3748| code = Tcl_GetBooleanFromObj(NULL, boolObj, &boolVal);
# 3749|-> TclDecrRefCount(boolObj);
# 3750| if (code == TCL_OK) {
# 3751| if (boolVal) {
Error: CPPCHECK_WARNING: [#def570]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def571]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:628: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 626| nodes = (OpNode *)attemptckalloc(nodesAvailable * sizeof(OpNode));
# 627| if (nodes == NULL) {
# 628|-> TclNewLiteralStringObj(msg, "not enough memory to parse expression");
# 629| errCode = "NOMEM";
# 630| goto error;
Error: CPPCHECK_WARNING (CWE-457): [#def572]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:628: error[uninitvar]: Uninitialized variable: cachePtr
# 626| nodes = (OpNode *)attemptckalloc(nodesAvailable * sizeof(OpNode));
# 627| if (nodes == NULL) {
# 628|-> TclNewLiteralStringObj(msg, "not enough memory to parse expression");
# 629| errCode = "NOMEM";
# 630| goto error;
Error: CPPCHECK_WARNING (CWE-457): [#def573]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:628: error[uninitvar]: Uninitialized variable: msg
# 626| nodes = (OpNode *)attemptckalloc(nodesAvailable * sizeof(OpNode));
# 627| if (nodes == NULL) {
# 628|-> TclNewLiteralStringObj(msg, "not enough memory to parse expression");
# 629| errCode = "NOMEM";
# 630| goto error;
Error: CPPCHECK_WARNING (CWE-476): [#def574]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:676: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 674| && ((size -= (size - nodesUsed) / 2) > nodesUsed));
# 675| if (newPtr == NULL) {
# 676|-> TclNewLiteralStringObj(msg,
# 677| "not enough memory to parse expression");
# 678| errCode = "NOMEM";
Error: CPPCHECK_WARNING (CWE-457): [#def575]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:676: error[uninitvar]: Uninitialized variable: (msg)->internalRep.twoPtrValue.ptr1
# 674| && ((size -= (size - nodesUsed) / 2) > nodesUsed));
# 675| if (newPtr == NULL) {
# 676|-> TclNewLiteralStringObj(msg,
# 677| "not enough memory to parse expression");
# 678| errCode = "NOMEM";
Error: CPPCHECK_WARNING (CWE-457): [#def576]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:676: error[uninitvar]: Uninitialized variable: cachePtr
# 674| && ((size -= (size - nodesUsed) / 2) > nodesUsed));
# 675| if (newPtr == NULL) {
# 676|-> TclNewLiteralStringObj(msg,
# 677| "not enough memory to parse expression");
# 678| errCode = "NOMEM";
Error: CPPCHECK_WARNING (CWE-476): [#def577]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:907: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 905| tokenPtr = parsePtr->tokenPtr + wordIndex + 1;
# 906| if (code == TCL_OK && tokenPtr->type != TCL_TOKEN_VARIABLE) {
# 907|-> TclNewLiteralStringObj(msg, "invalid character \"$\"");
# 908| errCode = "BADCHAR";
# 909| goto error;
Error: CPPCHECK_WARNING (CWE-457): [#def578]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:907: error[uninitvar]: Uninitialized variable: cachePtr
# 905| tokenPtr = parsePtr->tokenPtr + wordIndex + 1;
# 906| if (code == TCL_OK && tokenPtr->type != TCL_TOKEN_VARIABLE) {
# 907|-> TclNewLiteralStringObj(msg, "invalid character \"$\"");
# 908| errCode = "BADCHAR";
# 909| goto error;
Error: CPPCHECK_WARNING (CWE-476): [#def579]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:942: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 940|
# 941| if (start == end) {
# 942|-> TclNewLiteralStringObj(msg, "missing close-bracket");
# 943| parsePtr->term = tokenPtr->start;
# 944| parsePtr->errorType = TCL_PARSE_MISSING_BRACKET;
Error: CPPCHECK_WARNING (CWE-457): [#def580]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:942: error[uninitvar]: Uninitialized variable: cachePtr
# 940|
# 941| if (start == end) {
# 942|-> TclNewLiteralStringObj(msg, "missing close-bracket");
# 943| parsePtr->term = tokenPtr->start;
# 944| parsePtr->errorType = TCL_PARSE_MISSING_BRACKET;
Error: CPPCHECK_WARNING (CWE-476): [#def581]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1005: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1003| */
# 1004|
# 1005|-> TclNewObj(literal);
# 1006| if (TclWordKnownAtCompileTime(tokenPtr, literal)) {
# 1007| Tcl_ListObjAppendElement(NULL, litList, literal);
Error: CPPCHECK_WARNING (CWE-457): [#def582]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1005: error[uninitvar]: Uninitialized variable: cachePtr
# 1003| */
# 1004|
# 1005|-> TclNewObj(literal);
# 1006| if (TclWordKnownAtCompileTime(tokenPtr, literal)) {
# 1007| Tcl_ListObjAppendElement(NULL, litList, literal);
Error: CPPCHECK_WARNING (CWE-457): [#def583]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1005: error[uninitvar]: Uninitialized variable: literal
# 1003| */
# 1004|
# 1005|-> TclNewObj(literal);
# 1006| if (TclWordKnownAtCompileTime(tokenPtr, literal)) {
# 1007| Tcl_ListObjAppendElement(NULL, litList, literal);
Error: CPPCHECK_WARNING (CWE-476): [#def584]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1098: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1096| if (nodePtr[-1].precedence > precedence) {
# 1097| if (nodePtr[-1].lexeme == OPEN_PAREN) {
# 1098|-> TclNewLiteralStringObj(msg, "unbalanced open paren");
# 1099| parsePtr->errorType = TCL_PARSE_MISSING_PAREN;
# 1100| errCode = "UNBALANCED";
Error: CPPCHECK_WARNING (CWE-457): [#def585]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1098: error[uninitvar]: Uninitialized variable: cachePtr
# 1096| if (nodePtr[-1].precedence > precedence) {
# 1097| if (nodePtr[-1].lexeme == OPEN_PAREN) {
# 1098|-> TclNewLiteralStringObj(msg, "unbalanced open paren");
# 1099| parsePtr->errorType = TCL_PARSE_MISSING_PAREN;
# 1100| errCode = "UNBALANCED";
Error: CPPCHECK_WARNING (CWE-476): [#def586]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1108: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1106| errCode = "MISSING";
# 1107| } else if (nodePtr[-1].lexeme == START) {
# 1108|-> TclNewLiteralStringObj(msg, "empty expression");
# 1109| errCode = "EMPTY";
# 1110| }
Error: CPPCHECK_WARNING (CWE-457): [#def587]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1108: error[uninitvar]: Uninitialized variable: cachePtr
# 1106| errCode = "MISSING";
# 1107| } else if (nodePtr[-1].lexeme == START) {
# 1108|-> TclNewLiteralStringObj(msg, "empty expression");
# 1109| errCode = "EMPTY";
# 1110| }
Error: CPPCHECK_WARNING (CWE-476): [#def588]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1112: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1110| }
# 1111| } else if (lexeme == CLOSE_PAREN) {
# 1112|-> TclNewLiteralStringObj(msg, "unbalanced close paren");
# 1113| errCode = "UNBALANCED";
# 1114| } else if ((lexeme == COMMA)
Error: CPPCHECK_WARNING (CWE-457): [#def589]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1112: error[uninitvar]: Uninitialized variable: cachePtr
# 1110| }
# 1111| } else if (lexeme == CLOSE_PAREN) {
# 1112|-> TclNewLiteralStringObj(msg, "unbalanced close paren");
# 1113| errCode = "UNBALANCED";
# 1114| } else if ((lexeme == COMMA)
Error: CPPCHECK_WARNING (CWE-476): [#def590]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1202: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1200| if ((incompletePtr->lexeme == OPEN_PAREN)
# 1201| && (lexeme != CLOSE_PAREN)) {
# 1202|-> TclNewLiteralStringObj(msg, "unbalanced open paren");
# 1203| parsePtr->errorType = TCL_PARSE_MISSING_PAREN;
# 1204| errCode = "UNBALANCED";
Error: CPPCHECK_WARNING (CWE-457): [#def591]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1202: error[uninitvar]: Uninitialized variable: cachePtr
# 1200| if ((incompletePtr->lexeme == OPEN_PAREN)
# 1201| && (lexeme != CLOSE_PAREN)) {
# 1202|-> TclNewLiteralStringObj(msg, "unbalanced open paren");
# 1203| parsePtr->errorType = TCL_PARSE_MISSING_PAREN;
# 1204| errCode = "UNBALANCED";
Error: CPPCHECK_WARNING (CWE-476): [#def592]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1223: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1221| && (nodes[complete].lexeme == COLON)
# 1222| && (incompletePtr->lexeme != QUESTION)) {
# 1223|-> TclNewLiteralStringObj(msg,
# 1224| "unexpected operator \":\" "
# 1225| "without preceding \"?\"");
Error: CPPCHECK_WARNING (CWE-457): [#def593]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1223: error[uninitvar]: Uninitialized variable: cachePtr
# 1221| && (nodes[complete].lexeme == COLON)
# 1222| && (incompletePtr->lexeme != QUESTION)) {
# 1223|-> TclNewLiteralStringObj(msg,
# 1224| "unexpected operator \":\" "
# 1225| "without preceding \"?\"");
Error: CPPCHECK_WARNING (CWE-476): [#def594]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1288: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1286| if (lexeme == CLOSE_PAREN) {
# 1287| if (incompletePtr->lexeme != OPEN_PAREN) {
# 1288|-> TclNewLiteralStringObj(msg, "unbalanced close paren");
# 1289| errCode = "UNBALANCED";
# 1290| goto error;
Error: CPPCHECK_WARNING (CWE-457): [#def595]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1288: error[uninitvar]: Uninitialized variable: cachePtr
# 1286| if (lexeme == CLOSE_PAREN) {
# 1287| if (incompletePtr->lexeme != OPEN_PAREN) {
# 1288|-> TclNewLiteralStringObj(msg, "unbalanced close paren");
# 1289| errCode = "UNBALANCED";
# 1290| goto error;
Error: CPPCHECK_WARNING (CWE-476): [#def596]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1298: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1296| if ((incompletePtr->lexeme != OPEN_PAREN)
# 1297| || (incompletePtr[-1].lexeme != FUNCTION)) {
# 1298|-> TclNewLiteralStringObj(msg,
# 1299| "unexpected \",\" outside function argument list");
# 1300| errCode = "SURPRISE";
Error: CPPCHECK_WARNING (CWE-457): [#def597]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1298: error[uninitvar]: Uninitialized variable: cachePtr
# 1296| if ((incompletePtr->lexeme != OPEN_PAREN)
# 1297| || (incompletePtr[-1].lexeme != FUNCTION)) {
# 1298|-> TclNewLiteralStringObj(msg,
# 1299| "unexpected \",\" outside function argument list");
# 1300| errCode = "SURPRISE";
Error: CPPCHECK_WARNING (CWE-476): [#def598]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1307: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1305| /* Operator ":" may only be right operand of "?" */
# 1306| if (IsOperator(complete) && (nodes[complete].lexeme == COLON)) {
# 1307|-> TclNewLiteralStringObj(msg,
# 1308| "unexpected operator \":\" without preceding \"?\"");
# 1309| errCode = "SURPRISE";
Error: CPPCHECK_WARNING (CWE-457): [#def599]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1307: error[uninitvar]: Uninitialized variable: cachePtr
# 1305| /* Operator ":" may only be right operand of "?" */
# 1306| if (IsOperator(complete) && (nodes[complete].lexeme == COLON)) {
# 1307|-> TclNewLiteralStringObj(msg,
# 1308| "unexpected operator \":\" without preceding \"?\"");
# 1309| errCode = "SURPRISE";
Error: CPPCHECK_WARNING (CWE-476): [#def600]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1837: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1835| /* Holds the Tcl_Tokens of substitutions. */
# 1836|
# 1837|-> TclNewObj(litList);
# 1838| TclNewObj(funcList);
# 1839| if (numBytes < 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def601]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1837: error[uninitvar]: Uninitialized variable: cachePtr
# 1835| /* Holds the Tcl_Tokens of substitutions. */
# 1836|
# 1837|-> TclNewObj(litList);
# 1838| TclNewObj(funcList);
# 1839| if (numBytes < 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def602]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1837: error[uninitvar]: Uninitialized variable: litList
# 1835| /* Holds the Tcl_Tokens of substitutions. */
# 1836|
# 1837|-> TclNewObj(litList);
# 1838| TclNewObj(funcList);
# 1839| if (numBytes < 0) {
Error: CPPCHECK_WARNING (CWE-476): [#def603]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1838: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1836|
# 1837| TclNewObj(litList);
# 1838|-> TclNewObj(funcList);
# 1839| if (numBytes < 0) {
# 1840| numBytes = (start ? strlen(start) : 0);
Error: CPPCHECK_WARNING (CWE-457): [#def604]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1838: error[uninitvar]: Uninitialized variable: cachePtr
# 1836|
# 1837| TclNewObj(litList);
# 1838|-> TclNewObj(funcList);
# 1839| if (numBytes < 0) {
# 1840| numBytes = (start ? strlen(start) : 0);
Error: CPPCHECK_WARNING (CWE-457): [#def605]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:1838: error[uninitvar]: Uninitialized variable: funcList
# 1836|
# 1837| TclNewObj(litList);
# 1838|-> TclNewObj(funcList);
# 1839| if (numBytes < 0) {
# 1840| numBytes = (start ? strlen(start) : 0);
Error: CPPCHECK_WARNING (CWE-476): [#def606]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2009: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2007| }
# 2008|
# 2009|-> TclNewObj(literal);
# 2010| if (TclParseNumber(NULL, literal, NULL, start, numBytes, &end,
# 2011| TCL_PARSE_NO_WHITESPACE) == TCL_OK) {
Error: CPPCHECK_WARNING (CWE-457): [#def607]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2009: error[uninitvar]: Uninitialized variable: cachePtr
# 2007| }
# 2008|
# 2009|-> TclNewObj(literal);
# 2010| if (TclParseNumber(NULL, literal, NULL, start, numBytes, &end,
# 2011| TCL_PARSE_NO_WHITESPACE) == TCL_OK) {
Error: CPPCHECK_WARNING (CWE-457): [#def608]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2009: error[uninitvar]: Uninitialized variable: literal
# 2007| }
# 2008|
# 2009|-> TclNewObj(literal);
# 2010| if (TclParseNumber(NULL, literal, NULL, start, numBytes, &end,
# 2011| TCL_PARSE_NO_WHITESPACE) == TCL_OK) {
Error: CPPCHECK_WARNING (CWE-476): [#def609]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2129: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2127| int code;
# 2128|
# 2129|-> TclNewObj(litList);
# 2130| TclNewObj(funcList);
# 2131| code = ParseExpr(interp, script, numBytes, &opTree, litList,
Error: CPPCHECK_WARNING (CWE-457): [#def610]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2129: error[uninitvar]: Uninitialized variable: cachePtr
# 2127| int code;
# 2128|
# 2129|-> TclNewObj(litList);
# 2130| TclNewObj(funcList);
# 2131| code = ParseExpr(interp, script, numBytes, &opTree, litList,
Error: CPPCHECK_WARNING (CWE-457): [#def611]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2129: error[uninitvar]: Uninitialized variable: litList
# 2127| int code;
# 2128|
# 2129|-> TclNewObj(litList);
# 2130| TclNewObj(funcList);
# 2131| code = ParseExpr(interp, script, numBytes, &opTree, litList,
Error: CPPCHECK_WARNING (CWE-476): [#def612]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2130: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2128|
# 2129| TclNewObj(litList);
# 2130|-> TclNewObj(funcList);
# 2131| code = ParseExpr(interp, script, numBytes, &opTree, litList,
# 2132| funcList, parsePtr, 0 /* parseOnly */);
Error: CPPCHECK_WARNING (CWE-457): [#def613]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2130: error[uninitvar]: Uninitialized variable: cachePtr
# 2128|
# 2129| TclNewObj(litList);
# 2130|-> TclNewObj(funcList);
# 2131| code = ParseExpr(interp, script, numBytes, &opTree, litList,
# 2132| funcList, parsePtr, 0 /* parseOnly */);
Error: CPPCHECK_WARNING (CWE-457): [#def614]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2130: error[uninitvar]: Uninitialized variable: funcList
# 2128|
# 2129| TclNewObj(litList);
# 2130|-> TclNewObj(funcList);
# 2131| code = ParseExpr(interp, script, numBytes, &opTree, litList,
# 2132| funcList, parsePtr, 0 /* parseOnly */);
Error: CPPCHECK_WARNING (CWE-476): [#def615]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2193: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2191| NRE_callback *rootPtr = TOP_CB(interp);
# 2192|
# 2193|-> TclNewObj(byteCodeObj);
# 2194| /*
# 2195| * Note we are compiling an expression with literal arguments. This means
Error: CPPCHECK_WARNING (CWE-457): [#def616]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2193: error[uninitvar]: Uninitialized variable: byteCodeObj
# 2191| NRE_callback *rootPtr = TOP_CB(interp);
# 2192|
# 2193|-> TclNewObj(byteCodeObj);
# 2194| /*
# 2195| * Note we are compiling an expression with literal arguments. This means
Error: CPPCHECK_WARNING (CWE-457): [#def617]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2193: error[uninitvar]: Uninitialized variable: cachePtr
# 2191| NRE_callback *rootPtr = TOP_CB(interp);
# 2192|
# 2193|-> TclNewObj(byteCodeObj);
# 2194| /*
# 2195| * Note we are compiling an expression with literal arguments. This means
Error: GCC_ANALYZER_WARNING (CWE-476): [#def618]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:14: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c: scope_hint: In function ‘CompileExprTree’
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2277:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘funcObjv’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:3860:7: note: in definition of macro ‘TclGetStringFromObj’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:3860:7: note: in definition of macro ‘TclGetStringFromObj’
# 2275| Tcl_DStringInit(&cmdName);
# 2276| TclDStringAppendLiteral(&cmdName, "tcl::mathfunc::");
# 2277|-> p = TclGetStringFromObj(*funcObjv, &length);
# 2278| funcObjv++;
# 2279| Tcl_DStringAppend(&cmdName, p, length);
Error: CLANG_WARNING: [#def619]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2365:7: warning[core.NullDereference]: Dereference of null pointer
# 2363| case COLON:
# 2364| CLANG_ASSERT(jumpPtr);
# 2365|-> if (jumpPtr->jump.jumpType == TCL_TRUE_JUMP) {
# 2366| jumpPtr->jump.jumpType = TCL_UNCONDITIONAL_JUMP;
# 2367| convert = 1;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def620]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2374:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘jumpPtr’
# 2372| }
# 2373| freePtr = jumpPtr;
# 2374|-> jumpPtr = jumpPtr->next;
# 2375| TclStackFree(interp, freePtr);
# 2376| TclFixupForwardJump(envPtr, &jumpPtr->jump,
Error: CLANG_WARNING: [#def621]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2396:7: warning[core.NullDereference]: Access to field 'codeOffset' results in a dereference of a null pointer
# 2394| TclStoreInt1AtPtr(CurrentOffset(envPtr) - pc1,
# 2395| envPtr->codeStart + pc1 + 1);
# 2396|-> if (TclFixupForwardJumpToHere(envPtr, &jumpPtr->jump, 127)) {
# 2397| pc2 += 3;
# 2398| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def622]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2405:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘jumpPtr’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:3648:9: note: in expansion of macro ‘TclAllocObjStorageEx’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:4201:9: note: in expansion of macro ‘TclAllocObjStorage’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:4210:5: note: in expansion of macro ‘TclNewLongObj’
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2699:13: note: in expansion of macro ‘TclNewIntObj’
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:15: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2393:17: note: in expansion of macro ‘TclAdjustStackDepth’
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2393:17: note: in expansion of macro ‘TclAdjustStackDepth’
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.h:1400:9: note: in expansion of macro ‘TclUpdateAtCmdStart’
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.h:1419:13: note: in expansion of macro ‘TclEmitInstInt4’
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2399:17: note: in expansion of macro ‘TclEmitPush’
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.h:1433:47: note: in definition of macro ‘TclStoreInt1AtPtr’
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2401:35: note: in expansion of macro ‘CurrentOffset’
# 2403| convert = 0;
# 2404| freePtr = jumpPtr;
# 2405|-> jumpPtr = jumpPtr->next;
# 2406| TclStackFree(interp, freePtr);
# 2407| break;
Error: CPPCHECK_WARNING (CWE-476): [#def623]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2699: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2697|
# 2698| if (lexeme == EXPON) {
# 2699|-> TclNewIntObj(litObjv[1], occdPtr->i.identity);
# 2700| Tcl_IncrRefCount(litObjv[1]);
# 2701| decrMe = 1;
Error: CPPCHECK_WARNING (CWE-457): [#def624]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2699: error[uninitvar]: Uninitialized variable: (litObjv[1])->internalRep.twoPtrValue.ptr1
# 2697|
# 2698| if (lexeme == EXPON) {
# 2699|-> TclNewIntObj(litObjv[1], occdPtr->i.identity);
# 2700| Tcl_IncrRefCount(litObjv[1]);
# 2701| decrMe = 1;
Error: CPPCHECK_WARNING (CWE-457): [#def625]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2699: error[uninitvar]: Uninitialized variable: cachePtr
# 2697|
# 2698| if (lexeme == EXPON) {
# 2699|-> TclNewIntObj(litObjv[1], occdPtr->i.identity);
# 2700| Tcl_IncrRefCount(litObjv[1]);
# 2701| decrMe = 1;
Error: CPPCHECK_WARNING (CWE-476): [#def626]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2715: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2713| litObjv[0] = Tcl_NewDoubleObj(1.0);
# 2714| } else {
# 2715|-> TclNewIntObj(litObjv[0], occdPtr->i.identity);
# 2716| }
# 2717| Tcl_IncrRefCount(litObjv[0]);
Error: CPPCHECK_WARNING (CWE-457): [#def627]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2715: error[uninitvar]: Uninitialized variable: cachePtr
# 2713| litObjv[0] = Tcl_NewDoubleObj(1.0);
# 2714| } else {
# 2715|-> TclNewIntObj(litObjv[0], occdPtr->i.identity);
# 2716| }
# 2717| Tcl_IncrRefCount(litObjv[0]);
Error: CPPCHECK_WARNING: [#def628]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def629]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.c:1498: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1496| */
# 1497|
# 1498|-> TclNewLiteralStringObj(envPtr->extCmdMapPtr->path, "");
# 1499| } else {
# 1500| envPtr->extCmdMapPtr->path = norm;
Error: CPPCHECK_WARNING (CWE-457): [#def630]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.c:1498: error[uninitvar]: Uninitialized variable: cachePtr
# 1496| */
# 1497|
# 1498|-> TclNewLiteralStringObj(envPtr->extCmdMapPtr->path, "");
# 1499| } else {
# 1500| envPtr->extCmdMapPtr->path = norm;
Error: CPPCHECK_WARNING (CWE-457): [#def631]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.c:1498: error[uninitvar]: Uninitialized variable: envPtr->extCmdMapPtr->path
# 1496| */
# 1497|
# 1498|-> TclNewLiteralStringObj(envPtr->extCmdMapPtr->path, "");
# 1499| } else {
# 1500| envPtr->extCmdMapPtr->path = norm;
Error: CPPCHECK_WARNING (CWE-476): [#def632]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.c:1503: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1501| }
# 1502| } else {
# 1503|-> TclNewLiteralStringObj(envPtr->extCmdMapPtr->path, "");
# 1504| }
# 1505|
Error: CPPCHECK_WARNING (CWE-457): [#def633]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.c:1503: error[uninitvar]: Uninitialized variable: (envPtr->extCmdMapPtr->path)->internalRep.twoPtrValue.ptr1
# 1501| }
# 1502| } else {
# 1503|-> TclNewLiteralStringObj(envPtr->extCmdMapPtr->path, "");
# 1504| }
# 1505|
Error: CPPCHECK_WARNING (CWE-457): [#def634]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.c:1503: error[uninitvar]: Uninitialized variable: cachePtr
# 1501| }
# 1502| } else {
# 1503|-> TclNewLiteralStringObj(envPtr->extCmdMapPtr->path, "");
# 1504| }
# 1505|
Error: CPPCHECK_WARNING (CWE-476): [#def635]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.c:1713: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1711| tokenPtr++;
# 1712| if (valuePtr != NULL) {
# 1713|-> TclNewObj(tempPtr);
# 1714| Tcl_IncrRefCount(tempPtr);
# 1715| }
Error: CPPCHECK_WARNING (CWE-457): [#def636]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.c:1713: error[uninitvar]: Uninitialized variable: cachePtr
# 1711| tokenPtr++;
# 1712| if (valuePtr != NULL) {
# 1713|-> TclNewObj(tempPtr);
# 1714| Tcl_IncrRefCount(tempPtr);
# 1715| }
Error: CPPCHECK_WARNING (CWE-457): [#def637]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.c:1713: error[uninitvar]: Uninitialized variable: tempPtr
# 1711| tokenPtr++;
# 1712| if (valuePtr != NULL) {
# 1713|-> TclNewObj(tempPtr);
# 1714| Tcl_IncrRefCount(tempPtr);
# 1715| }
Error: CPPCHECK_WARNING (CWE-476): [#def638]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.c:2013: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2011| int depth = TclGetStackDepth(envPtr);
# 2012|
# 2013|-> TclNewObj(cmdObj);
# 2014| assert (parsePtr->numWords > 0);
# 2015|
Error: CPPCHECK_WARNING (CWE-457): [#def639]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.c:2013: error[uninitvar]: Uninitialized variable: cachePtr
# 2011| int depth = TclGetStackDepth(envPtr);
# 2012|
# 2013|-> TclNewObj(cmdObj);
# 2014| assert (parsePtr->numWords > 0);
# 2015|
Error: CPPCHECK_WARNING (CWE-457): [#def640]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.c:2013: error[uninitvar]: Uninitialized variable: cmdObj
# 2011| int depth = TclGetStackDepth(envPtr);
# 2012|
# 2013|-> TclNewObj(cmdObj);
# 2014| assert (parsePtr->numWords > 0);
# 2015|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def641]
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.h:1553:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tokenPtr’
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2472:13: note: in expansion of macro ‘CompileTokens’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:3648:9: note: in expansion of macro ‘TclAllocObjStorageEx’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:4201:9: note: in expansion of macro ‘TclAllocObjStorage’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:4210:5: note: in expansion of macro ‘TclNewLongObj’
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2699:13: note: in expansion of macro ‘TclNewIntObj’
tcl-8.6.14-build/tcl8.6.14/generic/tclCompExpr.c:2472:13: note: in expansion of macro ‘CompileTokens’
# 1551|
# 1552| #define CompileTokens(envPtr, tokenPtr, interp) \
# 1553|-> TclCompileTokens((interp), (tokenPtr)+1, (tokenPtr)->numComponents, \
# 1554| (envPtr));
# 1555| /*
Error: CPPCHECK_WARNING: [#def642]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def643]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c: scope_hint: In function ‘TclDateparse’
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:545:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:530:9: note: in expansion of macro ‘YYCOPY’
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:1420:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:545:25: note: in definition of macro ‘YYCOPY’
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:1420:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:530:9: note: in expansion of macro ‘YYCOPY’
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:1420:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
# 543| # if defined __GNUC__ && 1 < __GNUC__
# 544| # define YYCOPY(Dst, Src, Count) \
# 545|-> __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
# 546| # else
# 547| # define YYCOPY(Dst, Src, Count) \
Error: GCC_ANALYZER_WARNING (CWE-457): [#def644]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:1539:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
# 1537| unconditionally makes the parser a bit smaller, and it avoids a
# 1538| GCC warning that YYVAL may be used uninitialized. */
# 1539|-> yyval = yyvsp[1-yylen];
# 1540|
# 1541| /* Default location. */
Error: CPPCHECK_WARNING (CWE-476): [#def645]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2498: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2496| Tcl_AppendToObj(infoPtr->messages, s, -1);
# 2497| Tcl_AppendToObj(infoPtr->messages, " (characters ", -1);
# 2498|-> TclNewIntObj(t, location->first_column);
# 2499| Tcl_IncrRefCount(t);
# 2500| Tcl_AppendObjToObj(infoPtr->messages, t);
Error: CPPCHECK_WARNING (CWE-457): [#def646]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2498: error[uninitvar]: Uninitialized variable: cachePtr
# 2496| Tcl_AppendToObj(infoPtr->messages, s, -1);
# 2497| Tcl_AppendToObj(infoPtr->messages, " (characters ", -1);
# 2498|-> TclNewIntObj(t, location->first_column);
# 2499| Tcl_IncrRefCount(t);
# 2500| Tcl_AppendObjToObj(infoPtr->messages, t);
Error: CPPCHECK_WARNING (CWE-457): [#def647]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2498: error[uninitvar]: Uninitialized variable: t
# 2496| Tcl_AppendToObj(infoPtr->messages, s, -1);
# 2497| Tcl_AppendToObj(infoPtr->messages, " (characters ", -1);
# 2498|-> TclNewIntObj(t, location->first_column);
# 2499| Tcl_IncrRefCount(t);
# 2500| Tcl_AppendObjToObj(infoPtr->messages, t);
Error: CPPCHECK_WARNING (CWE-476): [#def648]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2503: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2501| Tcl_DecrRefCount(t);
# 2502| Tcl_AppendToObj(infoPtr->messages, "-", -1);
# 2503|-> TclNewIntObj(t, location->last_column);
# 2504| Tcl_IncrRefCount(t);
# 2505| Tcl_AppendObjToObj(infoPtr->messages, t);
Error: CPPCHECK_WARNING (CWE-457): [#def649]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2503: error[uninitvar]: Uninitialized variable: (t)->internalRep.twoPtrValue.ptr1
# 2501| Tcl_DecrRefCount(t);
# 2502| Tcl_AppendToObj(infoPtr->messages, "-", -1);
# 2503|-> TclNewIntObj(t, location->last_column);
# 2504| Tcl_IncrRefCount(t);
# 2505| Tcl_AppendObjToObj(infoPtr->messages, t);
Error: CPPCHECK_WARNING (CWE-457): [#def650]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2503: error[uninitvar]: Uninitialized variable: cachePtr
# 2501| Tcl_DecrRefCount(t);
# 2502| Tcl_AppendToObj(infoPtr->messages, "-", -1);
# 2503|-> TclNewIntObj(t, location->last_column);
# 2504| Tcl_IncrRefCount(t);
# 2505| Tcl_AppendObjToObj(infoPtr->messages, t);
Error: CPPCHECK_WARNING (CWE-476): [#def651]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2785: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2783| yyRelMonth = 0; yyRelDay = 0; yyRelSeconds = 0; yyRelPointer = NULL;
# 2784|
# 2785|-> TclNewObj(dateInfo.messages);
# 2786| dateInfo.separatrix = "";
# 2787| Tcl_IncrRefCount(dateInfo.messages);
Error: CPPCHECK_WARNING (CWE-457): [#def652]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2785: error[uninitvar]: Uninitialized variable: cachePtr
# 2783| yyRelMonth = 0; yyRelDay = 0; yyRelSeconds = 0; yyRelPointer = NULL;
# 2784|
# 2785|-> TclNewObj(dateInfo.messages);
# 2786| dateInfo.separatrix = "";
# 2787| Tcl_IncrRefCount(dateInfo.messages);
Error: CPPCHECK_WARNING (CWE-457): [#def653]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2785: error[uninitvar]: Uninitialized variable: dateInfo.messages
# 2783| yyRelMonth = 0; yyRelDay = 0; yyRelSeconds = 0; yyRelPointer = NULL;
# 2784|
# 2785|-> TclNewObj(dateInfo.messages);
# 2786| dateInfo.separatrix = "";
# 2787| Tcl_IncrRefCount(dateInfo.messages);
Error: CPPCHECK_WARNING (CWE-476): [#def654]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2842: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2840| }
# 2841|
# 2842|-> TclNewObj(result);
# 2843| TclNewObj(resultElement);
# 2844| if (yyHaveDate) {
Error: CPPCHECK_WARNING (CWE-457): [#def655]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2842: error[uninitvar]: Uninitialized variable: cachePtr
# 2840| }
# 2841|
# 2842|-> TclNewObj(result);
# 2843| TclNewObj(resultElement);
# 2844| if (yyHaveDate) {
Error: CPPCHECK_WARNING (CWE-457): [#def656]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2842: error[uninitvar]: Uninitialized variable: result
# 2840| }
# 2841|
# 2842|-> TclNewObj(result);
# 2843| TclNewObj(resultElement);
# 2844| if (yyHaveDate) {
Error: CPPCHECK_WARNING (CWE-476): [#def657]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2843: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2841|
# 2842| TclNewObj(result);
# 2843|-> TclNewObj(resultElement);
# 2844| if (yyHaveDate) {
# 2845| Tcl_ListObjAppendElement(interp, resultElement,
Error: CPPCHECK_WARNING (CWE-457): [#def658]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2843: error[uninitvar]: Uninitialized variable: cachePtr
# 2841|
# 2842| TclNewObj(result);
# 2843|-> TclNewObj(resultElement);
# 2844| if (yyHaveDate) {
# 2845| Tcl_ListObjAppendElement(interp, resultElement,
Error: CPPCHECK_WARNING (CWE-457): [#def659]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2843: error[uninitvar]: Uninitialized variable: resultElement
# 2841|
# 2842| TclNewObj(result);
# 2843|-> TclNewObj(resultElement);
# 2844| if (yyHaveDate) {
# 2845| Tcl_ListObjAppendElement(interp, resultElement,
Error: CPPCHECK_WARNING (CWE-476): [#def660]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2861: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2859| }
# 2860|
# 2861|-> TclNewObj(resultElement);
# 2862| if (yyHaveZone) {
# 2863| Tcl_ListObjAppendElement(interp, resultElement,
Error: CPPCHECK_WARNING (CWE-457): [#def661]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2861: error[uninitvar]: Uninitialized variable: (resultElement)->internalRep.twoPtrValue.ptr1
# 2859| }
# 2860|
# 2861|-> TclNewObj(resultElement);
# 2862| if (yyHaveZone) {
# 2863| Tcl_ListObjAppendElement(interp, resultElement,
Error: CPPCHECK_WARNING (CWE-457): [#def662]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2861: error[uninitvar]: Uninitialized variable: cachePtr
# 2859| }
# 2860|
# 2861|-> TclNewObj(resultElement);
# 2862| if (yyHaveZone) {
# 2863| Tcl_ListObjAppendElement(interp, resultElement,
Error: CPPCHECK_WARNING (CWE-476): [#def663]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2870: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2868| Tcl_ListObjAppendElement(interp, result, resultElement);
# 2869|
# 2870|-> TclNewObj(resultElement);
# 2871| if (yyHaveRel) {
# 2872| Tcl_ListObjAppendElement(interp, resultElement,
Error: CPPCHECK_WARNING (CWE-457): [#def664]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2870: error[uninitvar]: Uninitialized variable: cachePtr
# 2868| Tcl_ListObjAppendElement(interp, result, resultElement);
# 2869|
# 2870|-> TclNewObj(resultElement);
# 2871| if (yyHaveRel) {
# 2872| Tcl_ListObjAppendElement(interp, resultElement,
Error: CPPCHECK_WARNING (CWE-476): [#def665]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2881: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2879| Tcl_ListObjAppendElement(interp, result, resultElement);
# 2880|
# 2881|-> TclNewObj(resultElement);
# 2882| if (yyHaveDay && !yyHaveDate) {
# 2883| Tcl_ListObjAppendElement(interp, resultElement,
Error: CPPCHECK_WARNING (CWE-457): [#def666]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2881: error[uninitvar]: Uninitialized variable: cachePtr
# 2879| Tcl_ListObjAppendElement(interp, result, resultElement);
# 2880|
# 2881|-> TclNewObj(resultElement);
# 2882| if (yyHaveDay && !yyHaveDate) {
# 2883| Tcl_ListObjAppendElement(interp, resultElement,
Error: CPPCHECK_WARNING (CWE-476): [#def667]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2890: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2888| Tcl_ListObjAppendElement(interp, result, resultElement);
# 2889|
# 2890|-> TclNewObj(resultElement);
# 2891| if (yyHaveOrdinalMonth) {
# 2892| Tcl_ListObjAppendElement(interp, resultElement,
Error: CPPCHECK_WARNING (CWE-457): [#def668]
tcl-8.6.14-build/tcl8.6.14/generic/tclDate.c:2890: error[uninitvar]: Uninitialized variable: cachePtr
# 2888| Tcl_ListObjAppendElement(interp, result, resultElement);
# 2889|
# 2890|-> TclNewObj(resultElement);
# 2891| if (yyHaveOrdinalMonth) {
# 2892| Tcl_ListObjAppendElement(interp, resultElement,
Error: CPPCHECK_WARNING: [#def669]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def670]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:270: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 268| Tcl_Obj *valuePtr = (Tcl_Obj *)Tcl_GetHashValue(&cPtr->entry);
# 269|
# 270|-> TclDecrRefCount(valuePtr);
# 271| }
# 272| Tcl_DeleteHashTable(&dict->table);
Error: CPPCHECK_WARNING (CWE-457): [#def671]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:270: error[uninitvar]: Uninitialized variable: cachePtr
# 268| Tcl_Obj *valuePtr = (Tcl_Obj *)Tcl_GetHashValue(&cPtr->entry);
# 269|
# 270|-> TclDecrRefCount(valuePtr);
# 271| }
# 272| Tcl_DeleteHashTable(&dict->table);
Error: CPPCHECK_WARNING (CWE-476): [#def672]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:317: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 315| Tcl_Obj *valuePtr = (Tcl_Obj *)Tcl_GetHashValue(&cPtr->entry);
# 316|
# 317|-> TclDecrRefCount(valuePtr);
# 318| }
# 319|
Error: CPPCHECK_WARNING (CWE-457): [#def673]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:317: error[uninitvar]: Uninitialized variable: cachePtr
# 315| Tcl_Obj *valuePtr = (Tcl_Obj *)Tcl_GetHashValue(&cPtr->entry);
# 316|
# 317|-> TclDecrRefCount(valuePtr);
# 318| }
# 319|
Error: CPPCHECK_WARNING (CWE-476): [#def674]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:639: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 637| (void) Tcl_GetString(objPtr);
# 638|
# 639|-> TclDecrRefCount(discardedValue);
# 640| }
# 641| Tcl_SetHashValue(hPtr, objv[i+1]);
Error: CPPCHECK_WARNING (CWE-457): [#def675]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:639: error[uninitvar]: Uninitialized variable: cachePtr
# 637| (void) Tcl_GetString(objPtr);
# 638|
# 639|-> TclDecrRefCount(discardedValue);
# 640| }
# 641| Tcl_SetHashValue(hPtr, objv[i+1]);
Error: CPPCHECK_WARNING (CWE-476): [#def676]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:666: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 664|
# 665| if (literal) {
# 666|-> TclNewStringObj(keyPtr, elemStart, elemSize);
# 667| } else {
# 668| /* Avoid double copy */
Error: CPPCHECK_WARNING (CWE-457): [#def677]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:666: error[uninitvar]: Uninitialized variable: cachePtr
# 664|
# 665| if (literal) {
# 666|-> TclNewStringObj(keyPtr, elemStart, elemSize);
# 667| } else {
# 668| /* Avoid double copy */
Error: CPPCHECK_WARNING (CWE-457): [#def678]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:666: error[uninitvar]: Uninitialized variable: keyPtr
# 664|
# 665| if (literal) {
# 666|-> TclNewStringObj(keyPtr, elemStart, elemSize);
# 667| } else {
# 668| /* Avoid double copy */
Error: CPPCHECK_WARNING (CWE-476): [#def679]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:669: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 667| } else {
# 668| /* Avoid double copy */
# 669|-> TclNewObj(keyPtr);
# 670| keyPtr->bytes = (char *)ckalloc(elemSize + 1);
# 671| keyPtr->length = TclCopyAndCollapse(elemSize, elemStart,
Error: CPPCHECK_WARNING (CWE-457): [#def680]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:669: error[uninitvar]: Uninitialized variable: (keyPtr)->internalRep.twoPtrValue.ptr1
# 667| } else {
# 668| /* Avoid double copy */
# 669|-> TclNewObj(keyPtr);
# 670| keyPtr->bytes = (char *)ckalloc(elemSize + 1);
# 671| keyPtr->length = TclCopyAndCollapse(elemSize, elemStart,
Error: CPPCHECK_WARNING (CWE-457): [#def681]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:669: error[uninitvar]: Uninitialized variable: cachePtr
# 667| } else {
# 668| /* Avoid double copy */
# 669|-> TclNewObj(keyPtr);
# 670| keyPtr->bytes = (char *)ckalloc(elemSize + 1);
# 671| keyPtr->length = TclCopyAndCollapse(elemSize, elemStart,
Error: CPPCHECK_WARNING (CWE-476): [#def682]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:677: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 675| if (TclFindDictElement(interp, nextElem, (limit - nextElem),
# 676| &elemStart, &nextElem, &elemSize, &literal) != TCL_OK) {
# 677|-> TclDecrRefCount(keyPtr);
# 678| goto errorInFindDictElement;
# 679| }
Error: CPPCHECK_WARNING (CWE-457): [#def683]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:677: error[uninitvar]: Uninitialized variable: cachePtr
# 675| if (TclFindDictElement(interp, nextElem, (limit - nextElem),
# 676| &elemStart, &nextElem, &elemSize, &literal) != TCL_OK) {
# 677|-> TclDecrRefCount(keyPtr);
# 678| goto errorInFindDictElement;
# 679| }
Error: CPPCHECK_WARNING (CWE-476): [#def684]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:682: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 680|
# 681| if (literal) {
# 682|-> TclNewStringObj(valuePtr, elemStart, elemSize);
# 683| } else {
# 684| /* Avoid double copy */
Error: CPPCHECK_WARNING (CWE-457): [#def685]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:682: error[uninitvar]: Uninitialized variable: cachePtr
# 680|
# 681| if (literal) {
# 682|-> TclNewStringObj(valuePtr, elemStart, elemSize);
# 683| } else {
# 684| /* Avoid double copy */
Error: CPPCHECK_WARNING (CWE-457): [#def686]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:682: error[uninitvar]: Uninitialized variable: valuePtr
# 680|
# 681| if (literal) {
# 682|-> TclNewStringObj(valuePtr, elemStart, elemSize);
# 683| } else {
# 684| /* Avoid double copy */
Error: CPPCHECK_WARNING (CWE-476): [#def687]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:685: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 683| } else {
# 684| /* Avoid double copy */
# 685|-> TclNewObj(valuePtr);
# 686| valuePtr->bytes = (char *)ckalloc(elemSize + 1);
# 687| valuePtr->length = TclCopyAndCollapse(elemSize, elemStart,
Error: CPPCHECK_WARNING (CWE-457): [#def688]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:685: error[uninitvar]: Uninitialized variable: (valuePtr)->internalRep.twoPtrValue.ptr1
# 683| } else {
# 684| /* Avoid double copy */
# 685|-> TclNewObj(valuePtr);
# 686| valuePtr->bytes = (char *)ckalloc(elemSize + 1);
# 687| valuePtr->length = TclCopyAndCollapse(elemSize, elemStart,
Error: CPPCHECK_WARNING (CWE-457): [#def689]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:685: error[uninitvar]: Uninitialized variable: cachePtr
# 683| } else {
# 684| /* Avoid double copy */
# 685|-> TclNewObj(valuePtr);
# 686| valuePtr->bytes = (char *)ckalloc(elemSize + 1);
# 687| valuePtr->length = TclCopyAndCollapse(elemSize, elemStart,
Error: CPPCHECK_WARNING (CWE-476): [#def690]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:696: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 694| Tcl_Obj *discardedValue = (Tcl_Obj *)Tcl_GetHashValue(hPtr);
# 695|
# 696|-> TclDecrRefCount(keyPtr);
# 697| TclDecrRefCount(discardedValue);
# 698| }
Error: CPPCHECK_WARNING (CWE-457): [#def691]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:696: error[uninitvar]: Uninitialized variable: cachePtr
# 694| Tcl_Obj *discardedValue = (Tcl_Obj *)Tcl_GetHashValue(hPtr);
# 695|
# 696|-> TclDecrRefCount(keyPtr);
# 697| TclDecrRefCount(discardedValue);
# 698| }
Error: CPPCHECK_WARNING (CWE-476): [#def692]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:697: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 695|
# 696| TclDecrRefCount(keyPtr);
# 697|-> TclDecrRefCount(discardedValue);
# 698| }
# 699| Tcl_SetHashValue(hPtr, valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def693]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:697: error[uninitvar]: Uninitialized variable: cachePtr
# 695|
# 696| TclDecrRefCount(keyPtr);
# 697|-> TclDecrRefCount(discardedValue);
# 698| }
# 699| Tcl_SetHashValue(hPtr, valuePtr);
Error: CPPCHECK_WARNING (CWE-476): [#def694]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:823: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 821| if (flags & DICT_PATH_UPDATE) {
# 822| if (Tcl_IsShared(tmpObj)) {
# 823|-> TclDecrRefCount(tmpObj);
# 824| tmpObj = Tcl_DuplicateObj(tmpObj);
# 825| Tcl_IncrRefCount(tmpObj);
Error: CPPCHECK_WARNING (CWE-457): [#def695]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:823: error[uninitvar]: Uninitialized variable: cachePtr
# 821| if (flags & DICT_PATH_UPDATE) {
# 822| if (Tcl_IsShared(tmpObj)) {
# 823|-> TclDecrRefCount(tmpObj);
# 824| tmpObj = Tcl_DuplicateObj(tmpObj);
# 825| Tcl_IncrRefCount(tmpObj);
Error: CPPCHECK_WARNING (CWE-476): [#def696]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:925: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 923| Tcl_Obj *oldValuePtr = (Tcl_Obj *)Tcl_GetHashValue(hPtr);
# 924|
# 925|-> TclDecrRefCount(oldValuePtr);
# 926| }
# 927| Tcl_SetHashValue(hPtr, valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def697]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:925: error[uninitvar]: Uninitialized variable: cachePtr
# 923| Tcl_Obj *oldValuePtr = (Tcl_Obj *)Tcl_GetHashValue(hPtr);
# 924|
# 925|-> TclDecrRefCount(oldValuePtr);
# 926| }
# 927| Tcl_SetHashValue(hPtr, valuePtr);
Error: CPPCHECK_WARNING (CWE-476): [#def698]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:1287: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1285| Tcl_Obj *oldValuePtr = (Tcl_Obj *)Tcl_GetHashValue(hPtr);
# 1286|
# 1287|-> TclDecrRefCount(oldValuePtr);
# 1288| }
# 1289| Tcl_SetHashValue(hPtr, valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def699]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:1287: error[uninitvar]: Uninitialized variable: cachePtr
# 1285| Tcl_Obj *oldValuePtr = (Tcl_Obj *)Tcl_GetHashValue(hPtr);
# 1286|
# 1287|-> TclDecrRefCount(oldValuePtr);
# 1288| }
# 1289| Tcl_SetHashValue(hPtr, valuePtr);
Error: CPPCHECK_WARNING (CWE-476): [#def700]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:1377: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1375| Dict *dict;
# 1376|
# 1377|-> TclNewObj(dictPtr);
# 1378| TclInvalidateStringRep(dictPtr);
# 1379| dict = (Dict *)ckalloc(sizeof(Dict));
Error: CPPCHECK_WARNING (CWE-457): [#def701]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:1377: error[uninitvar]: Uninitialized variable: cachePtr
# 1375| Dict *dict;
# 1376|
# 1377|-> TclNewObj(dictPtr);
# 1378| TclInvalidateStringRep(dictPtr);
# 1379| dict = (Dict *)ckalloc(sizeof(Dict));
Error: CPPCHECK_WARNING (CWE-457): [#def702]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:1377: error[uninitvar]: Uninitialized variable: dictPtr
# 1375| Dict *dict;
# 1376|
# 1377|-> TclNewObj(dictPtr);
# 1378| TclInvalidateStringRep(dictPtr);
# 1379| dict = (Dict *)ckalloc(sizeof(Dict));
Error: CPPCHECK_WARNING (CWE-476): [#def703]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:1759: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1757| &done) != TCL_OK) {
# 1758| if (allocatedDict) {
# 1759|-> TclDecrRefCount(targetObj);
# 1760| }
# 1761| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-457): [#def704]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:1759: error[uninitvar]: Uninitialized variable: cachePtr
# 1757| &done) != TCL_OK) {
# 1758| if (allocatedDict) {
# 1759|-> TclDecrRefCount(targetObj);
# 1760| }
# 1761| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def705]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2148: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2146| Tcl_Obj *incrPtr;
# 2147|
# 2148|-> TclNewIntObj(incrPtr, 1);
# 2149| Tcl_IncrRefCount(incrPtr);
# 2150| code = TclIncrObj(interp, valuePtr, incrPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def706]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2148: error[uninitvar]: Uninitialized variable: cachePtr
# 2146| Tcl_Obj *incrPtr;
# 2147|
# 2148|-> TclNewIntObj(incrPtr, 1);
# 2149| Tcl_IncrRefCount(incrPtr);
# 2150| code = TclIncrObj(interp, valuePtr, incrPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def707]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2148: error[uninitvar]: Uninitialized variable: incrPtr
# 2146| Tcl_Obj *incrPtr;
# 2147|
# 2148|-> TclNewIntObj(incrPtr, 1);
# 2149| Tcl_IncrRefCount(incrPtr);
# 2150| code = TclIncrObj(interp, valuePtr, incrPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def708]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2151: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2149| Tcl_IncrRefCount(incrPtr);
# 2150| code = TclIncrObj(interp, valuePtr, incrPtr);
# 2151|-> TclDecrRefCount(incrPtr);
# 2152| }
# 2153| }
Error: CPPCHECK_WARNING (CWE-457): [#def709]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2151: error[uninitvar]: Uninitialized variable: cachePtr
# 2149| Tcl_IncrRefCount(incrPtr);
# 2150| code = TclIncrObj(interp, valuePtr, incrPtr);
# 2151|-> TclDecrRefCount(incrPtr);
# 2152| }
# 2153| }
Error: CPPCHECK_WARNING (CWE-476): [#def710]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2164: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2162| }
# 2163| } else if (dictPtr->refCount == 0) {
# 2164|-> TclDecrRefCount(dictPtr);
# 2165| }
# 2166| return code;
Error: CPPCHECK_WARNING (CWE-457): [#def711]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2164: error[uninitvar]: Uninitialized variable: cachePtr
# 2162| }
# 2163| } else if (dictPtr->refCount == 0) {
# 2164|-> TclDecrRefCount(dictPtr);
# 2165| }
# 2166| return code;
Error: CPPCHECK_WARNING (CWE-476): [#def712]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2213: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2211| if (Tcl_DictObjGet(interp, dictPtr, objv[2], &valuePtr) != TCL_OK) {
# 2212| if (allocatedDict) {
# 2213|-> TclDecrRefCount(dictPtr);
# 2214| }
# 2215| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-457): [#def713]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2213: error[uninitvar]: Uninitialized variable: cachePtr
# 2211| if (Tcl_DictObjGet(interp, dictPtr, objv[2], &valuePtr) != TCL_OK) {
# 2212| if (allocatedDict) {
# 2213|-> TclDecrRefCount(dictPtr);
# 2214| }
# 2215| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def714]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2231: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2229| objv[i]) != TCL_OK) {
# 2230| if (allocatedValue) {
# 2231|-> TclDecrRefCount(valuePtr);
# 2232| }
# 2233| if (allocatedDict) {
Error: CPPCHECK_WARNING (CWE-457): [#def715]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2231: error[uninitvar]: Uninitialized variable: cachePtr
# 2229| objv[i]) != TCL_OK) {
# 2230| if (allocatedValue) {
# 2231|-> TclDecrRefCount(valuePtr);
# 2232| }
# 2233| if (allocatedDict) {
Error: CPPCHECK_WARNING (CWE-476): [#def716]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2234: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2232| }
# 2233| if (allocatedDict) {
# 2234|-> TclDecrRefCount(dictPtr);
# 2235| }
# 2236| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-457): [#def717]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2234: error[uninitvar]: Uninitialized variable: cachePtr
# 2232| }
# 2233| if (allocatedDict) {
# 2234|-> TclDecrRefCount(dictPtr);
# 2235| }
# 2236| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def718]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2300: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2298| if (Tcl_DictObjGet(interp, dictPtr, objv[2], &valuePtr) != TCL_OK) {
# 2299| if (allocatedDict) {
# 2300|-> TclDecrRefCount(dictPtr);
# 2301| }
# 2302| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-457): [#def719]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2300: error[uninitvar]: Uninitialized variable: cachePtr
# 2298| if (Tcl_DictObjGet(interp, dictPtr, objv[2], &valuePtr) != TCL_OK) {
# 2299| if (allocatedDict) {
# 2300|-> TclDecrRefCount(dictPtr);
# 2301| }
# 2302| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def720]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2306: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2304|
# 2305| if (valuePtr == NULL) {
# 2306|-> TclNewObj(valuePtr);
# 2307| } else if (Tcl_IsShared(valuePtr)) {
# 2308| valuePtr = Tcl_DuplicateObj(valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def721]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2306: error[uninitvar]: Uninitialized variable: cachePtr
# 2304|
# 2305| if (valuePtr == NULL) {
# 2306|-> TclNewObj(valuePtr);
# 2307| } else if (Tcl_IsShared(valuePtr)) {
# 2308| valuePtr = Tcl_DuplicateObj(valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def722]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2306: error[uninitvar]: Uninitialized variable: valuePtr
# 2304|
# 2305| if (valuePtr == NULL) {
# 2306|-> TclNewObj(valuePtr);
# 2307| } else if (Tcl_IsShared(valuePtr)) {
# 2308| valuePtr = Tcl_DuplicateObj(valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def723]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2367: error[legacyUninitvar]: Uninitialized variable: *(&varv)
# 2365| */
# 2366|
# 2367|-> if (TclListObjGetElements(interp, objv[1], &varc, &varv) != TCL_OK) {
# 2368| return TCL_ERROR;
# 2369| }
Error: CPPCHECK_WARNING (CWE-476): [#def724]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2409: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2407| if (Tcl_ObjSetVar2(interp, keyVarObj, NULL, keyObj,
# 2408| TCL_LEAVE_ERR_MSG) == NULL) {
# 2409|-> TclDecrRefCount(valueObj);
# 2410| goto error;
# 2411| }
Error: CPPCHECK_WARNING (CWE-457): [#def725]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2409: error[uninitvar]: Uninitialized variable: cachePtr
# 2407| if (Tcl_ObjSetVar2(interp, keyVarObj, NULL, keyObj,
# 2408| TCL_LEAVE_ERR_MSG) == NULL) {
# 2409|-> TclDecrRefCount(valueObj);
# 2410| goto error;
# 2411| }
Error: CPPCHECK_WARNING (CWE-476): [#def726]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2412: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2410| goto error;
# 2411| }
# 2412|-> TclDecrRefCount(valueObj);
# 2413| if (Tcl_ObjSetVar2(interp, valueVarObj, NULL, valueObj,
# 2414| TCL_LEAVE_ERR_MSG) == NULL) {
Error: CPPCHECK_WARNING (CWE-457): [#def727]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2412: error[uninitvar]: Uninitialized variable: cachePtr
# 2410| goto error;
# 2411| }
# 2412|-> TclDecrRefCount(valueObj);
# 2413| if (Tcl_ObjSetVar2(interp, valueVarObj, NULL, valueObj,
# 2414| TCL_LEAVE_ERR_MSG) == NULL) {
Error: CPPCHECK_WARNING (CWE-476): [#def728]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2431: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2429|
# 2430| error:
# 2431|-> TclDecrRefCount(keyVarObj);
# 2432| TclDecrRefCount(valueVarObj);
# 2433| TclDecrRefCount(scriptObj);
Error: CPPCHECK_WARNING (CWE-457): [#def729]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2431: error[uninitvar]: Uninitialized variable: cachePtr
# 2429|
# 2430| error:
# 2431|-> TclDecrRefCount(keyVarObj);
# 2432| TclDecrRefCount(valueVarObj);
# 2433| TclDecrRefCount(scriptObj);
Error: CPPCHECK_WARNING (CWE-476): [#def730]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2432: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2430| error:
# 2431| TclDecrRefCount(keyVarObj);
# 2432|-> TclDecrRefCount(valueVarObj);
# 2433| TclDecrRefCount(scriptObj);
# 2434| Tcl_DictObjDone(searchPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def731]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2432: error[uninitvar]: Uninitialized variable: cachePtr
# 2430| error:
# 2431| TclDecrRefCount(keyVarObj);
# 2432|-> TclDecrRefCount(valueVarObj);
# 2433| TclDecrRefCount(scriptObj);
# 2434| Tcl_DictObjDone(searchPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def732]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2433: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2431| TclDecrRefCount(keyVarObj);
# 2432| TclDecrRefCount(valueVarObj);
# 2433|-> TclDecrRefCount(scriptObj);
# 2434| Tcl_DictObjDone(searchPtr);
# 2435| TclStackFree(interp, searchPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def733]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2433: error[uninitvar]: Uninitialized variable: cachePtr
# 2431| TclDecrRefCount(keyVarObj);
# 2432| TclDecrRefCount(valueVarObj);
# 2433|-> TclDecrRefCount(scriptObj);
# 2434| Tcl_DictObjDone(searchPtr);
# 2435| TclStackFree(interp, searchPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def734]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2489: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2487| if (Tcl_ObjSetVar2(interp, keyVarObj, NULL, keyObj,
# 2488| TCL_LEAVE_ERR_MSG) == NULL) {
# 2489|-> TclDecrRefCount(valueObj);
# 2490| result = TCL_ERROR;
# 2491| goto done;
Error: CPPCHECK_WARNING (CWE-457): [#def735]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2489: error[uninitvar]: Uninitialized variable: cachePtr
# 2487| if (Tcl_ObjSetVar2(interp, keyVarObj, NULL, keyObj,
# 2488| TCL_LEAVE_ERR_MSG) == NULL) {
# 2489|-> TclDecrRefCount(valueObj);
# 2490| result = TCL_ERROR;
# 2491| goto done;
Error: CPPCHECK_WARNING (CWE-476): [#def736]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2493: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2491| goto done;
# 2492| }
# 2493|-> TclDecrRefCount(valueObj);
# 2494| if (Tcl_ObjSetVar2(interp, valueVarObj, NULL, valueObj,
# 2495| TCL_LEAVE_ERR_MSG) == NULL) {
Error: CPPCHECK_WARNING (CWE-457): [#def737]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2493: error[uninitvar]: Uninitialized variable: cachePtr
# 2491| goto done;
# 2492| }
# 2493|-> TclDecrRefCount(valueObj);
# 2494| if (Tcl_ObjSetVar2(interp, valueVarObj, NULL, valueObj,
# 2495| TCL_LEAVE_ERR_MSG) == NULL) {
Error: CPPCHECK_WARNING (CWE-476): [#def738]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2513: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2511|
# 2512| done:
# 2513|-> TclDecrRefCount(keyVarObj);
# 2514| TclDecrRefCount(valueVarObj);
# 2515| TclDecrRefCount(scriptObj);
Error: CPPCHECK_WARNING (CWE-457): [#def739]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2513: error[uninitvar]: Uninitialized variable: cachePtr
# 2511|
# 2512| done:
# 2513|-> TclDecrRefCount(keyVarObj);
# 2514| TclDecrRefCount(valueVarObj);
# 2515| TclDecrRefCount(scriptObj);
Error: CPPCHECK_WARNING (CWE-476): [#def740]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2514: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2512| done:
# 2513| TclDecrRefCount(keyVarObj);
# 2514|-> TclDecrRefCount(valueVarObj);
# 2515| TclDecrRefCount(scriptObj);
# 2516| Tcl_DictObjDone(searchPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def741]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2514: error[uninitvar]: Uninitialized variable: cachePtr
# 2512| done:
# 2513| TclDecrRefCount(keyVarObj);
# 2514|-> TclDecrRefCount(valueVarObj);
# 2515| TclDecrRefCount(scriptObj);
# 2516| Tcl_DictObjDone(searchPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def742]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2515: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2513| TclDecrRefCount(keyVarObj);
# 2514| TclDecrRefCount(valueVarObj);
# 2515|-> TclDecrRefCount(scriptObj);
# 2516| Tcl_DictObjDone(searchPtr);
# 2517| TclStackFree(interp, searchPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def743]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2515: error[uninitvar]: Uninitialized variable: cachePtr
# 2513| TclDecrRefCount(keyVarObj);
# 2514| TclDecrRefCount(valueVarObj);
# 2515|-> TclDecrRefCount(scriptObj);
# 2516| Tcl_DictObjDone(searchPtr);
# 2517| TclStackFree(interp, searchPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def744]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2562: error[legacyUninitvar]: Uninitialized variable: *(&varv)
# 2560| */
# 2561|
# 2562|-> if (TclListObjGetElements(interp, objv[1], &varc, &varv) != TCL_OK) {
# 2563| return TCL_ERROR;
# 2564| }
Error: CPPCHECK_WARNING (CWE-476): [#def745]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2587: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2585| return TCL_OK;
# 2586| }
# 2587|-> TclNewObj(storagePtr->accumulatorObj);
# 2588| TclListObjGetElements(NULL, objv[1], &varc, &varv);
# 2589| storagePtr->keyVarObj = varv[0];
Error: CPPCHECK_WARNING (CWE-457): [#def746]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2587: error[uninitvar]: Uninitialized variable: cachePtr
# 2585| return TCL_OK;
# 2586| }
# 2587|-> TclNewObj(storagePtr->accumulatorObj);
# 2588| TclListObjGetElements(NULL, objv[1], &varc, &varv);
# 2589| storagePtr->keyVarObj = varv[0];
Error: CPPCHECK_WARNING (CWE-457): [#def747]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2587: error[uninitvar]: Uninitialized variable: storagePtr->accumulatorObj
# 2585| return TCL_OK;
# 2586| }
# 2587|-> TclNewObj(storagePtr->accumulatorObj);
# 2588| TclListObjGetElements(NULL, objv[1], &varc, &varv);
# 2589| storagePtr->keyVarObj = varv[0];
Error: CPPCHECK_WARNING (CWE-476): [#def748]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2612: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2610| if (Tcl_ObjSetVar2(interp, storagePtr->keyVarObj, NULL, keyObj,
# 2611| TCL_LEAVE_ERR_MSG) == NULL) {
# 2612|-> TclDecrRefCount(valueObj);
# 2613| goto error;
# 2614| }
Error: CPPCHECK_WARNING (CWE-457): [#def749]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2612: error[uninitvar]: Uninitialized variable: cachePtr
# 2610| if (Tcl_ObjSetVar2(interp, storagePtr->keyVarObj, NULL, keyObj,
# 2611| TCL_LEAVE_ERR_MSG) == NULL) {
# 2612|-> TclDecrRefCount(valueObj);
# 2613| goto error;
# 2614| }
Error: CPPCHECK_WARNING (CWE-476): [#def750]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2617: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2615| if (Tcl_ObjSetVar2(interp, storagePtr->valueVarObj, NULL, valueObj,
# 2616| TCL_LEAVE_ERR_MSG) == NULL) {
# 2617|-> TclDecrRefCount(valueObj);
# 2618| goto error;
# 2619| }
Error: CPPCHECK_WARNING (CWE-457): [#def751]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2617: error[uninitvar]: Uninitialized variable: cachePtr
# 2615| if (Tcl_ObjSetVar2(interp, storagePtr->valueVarObj, NULL, valueObj,
# 2616| TCL_LEAVE_ERR_MSG) == NULL) {
# 2617|-> TclDecrRefCount(valueObj);
# 2618| goto error;
# 2619| }
Error: CPPCHECK_WARNING (CWE-476): [#def752]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2620: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2618| goto error;
# 2619| }
# 2620|-> TclDecrRefCount(valueObj);
# 2621|
# 2622| /*
Error: CPPCHECK_WARNING (CWE-457): [#def753]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2620: error[uninitvar]: Uninitialized variable: cachePtr
# 2618| goto error;
# 2619| }
# 2620|-> TclDecrRefCount(valueObj);
# 2621|
# 2622| /*
Error: CPPCHECK_WARNING (CWE-476): [#def754]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2635: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2633|
# 2634| error:
# 2635|-> TclDecrRefCount(storagePtr->keyVarObj);
# 2636| TclDecrRefCount(storagePtr->valueVarObj);
# 2637| TclDecrRefCount(storagePtr->scriptObj);
Error: CPPCHECK_WARNING (CWE-457): [#def755]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2635: error[uninitvar]: Uninitialized variable: cachePtr
# 2633|
# 2634| error:
# 2635|-> TclDecrRefCount(storagePtr->keyVarObj);
# 2636| TclDecrRefCount(storagePtr->valueVarObj);
# 2637| TclDecrRefCount(storagePtr->scriptObj);
Error: CPPCHECK_WARNING (CWE-476): [#def756]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2636: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2634| error:
# 2635| TclDecrRefCount(storagePtr->keyVarObj);
# 2636|-> TclDecrRefCount(storagePtr->valueVarObj);
# 2637| TclDecrRefCount(storagePtr->scriptObj);
# 2638| TclDecrRefCount(storagePtr->accumulatorObj);
Error: CPPCHECK_WARNING (CWE-457): [#def757]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2636: error[uninitvar]: Uninitialized variable: cachePtr
# 2634| error:
# 2635| TclDecrRefCount(storagePtr->keyVarObj);
# 2636|-> TclDecrRefCount(storagePtr->valueVarObj);
# 2637| TclDecrRefCount(storagePtr->scriptObj);
# 2638| TclDecrRefCount(storagePtr->accumulatorObj);
Error: CPPCHECK_WARNING (CWE-476): [#def758]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2637: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2635| TclDecrRefCount(storagePtr->keyVarObj);
# 2636| TclDecrRefCount(storagePtr->valueVarObj);
# 2637|-> TclDecrRefCount(storagePtr->scriptObj);
# 2638| TclDecrRefCount(storagePtr->accumulatorObj);
# 2639| Tcl_DictObjDone(&storagePtr->search);
Error: CPPCHECK_WARNING (CWE-457): [#def759]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2637: error[uninitvar]: Uninitialized variable: cachePtr
# 2635| TclDecrRefCount(storagePtr->keyVarObj);
# 2636| TclDecrRefCount(storagePtr->valueVarObj);
# 2637|-> TclDecrRefCount(storagePtr->scriptObj);
# 2638| TclDecrRefCount(storagePtr->accumulatorObj);
# 2639| Tcl_DictObjDone(&storagePtr->search);
Error: CPPCHECK_WARNING (CWE-476): [#def760]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2638: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2636| TclDecrRefCount(storagePtr->valueVarObj);
# 2637| TclDecrRefCount(storagePtr->scriptObj);
# 2638|-> TclDecrRefCount(storagePtr->accumulatorObj);
# 2639| Tcl_DictObjDone(&storagePtr->search);
# 2640| TclStackFree(interp, storagePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def761]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2638: error[uninitvar]: Uninitialized variable: cachePtr
# 2636| TclDecrRefCount(storagePtr->valueVarObj);
# 2637| TclDecrRefCount(storagePtr->scriptObj);
# 2638|-> TclDecrRefCount(storagePtr->accumulatorObj);
# 2639| Tcl_DictObjDone(&storagePtr->search);
# 2640| TclStackFree(interp, storagePtr);
Error: CPPCHECK_WARNING (CWE-476): [#def762]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2700: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2698| if (Tcl_ObjSetVar2(interp, storagePtr->keyVarObj, NULL, keyObj,
# 2699| TCL_LEAVE_ERR_MSG) == NULL) {
# 2700|-> TclDecrRefCount(valueObj);
# 2701| result = TCL_ERROR;
# 2702| goto done;
Error: CPPCHECK_WARNING (CWE-457): [#def763]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2700: error[uninitvar]: Uninitialized variable: cachePtr
# 2698| if (Tcl_ObjSetVar2(interp, storagePtr->keyVarObj, NULL, keyObj,
# 2699| TCL_LEAVE_ERR_MSG) == NULL) {
# 2700|-> TclDecrRefCount(valueObj);
# 2701| result = TCL_ERROR;
# 2702| goto done;
Error: CPPCHECK_WARNING (CWE-476): [#def764]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2706: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2704| if (Tcl_ObjSetVar2(interp, storagePtr->valueVarObj, NULL, valueObj,
# 2705| TCL_LEAVE_ERR_MSG) == NULL) {
# 2706|-> TclDecrRefCount(valueObj);
# 2707| result = TCL_ERROR;
# 2708| goto done;
Error: CPPCHECK_WARNING (CWE-457): [#def765]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2706: error[uninitvar]: Uninitialized variable: cachePtr
# 2704| if (Tcl_ObjSetVar2(interp, storagePtr->valueVarObj, NULL, valueObj,
# 2705| TCL_LEAVE_ERR_MSG) == NULL) {
# 2706|-> TclDecrRefCount(valueObj);
# 2707| result = TCL_ERROR;
# 2708| goto done;
Error: CPPCHECK_WARNING (CWE-476): [#def766]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2710: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2708| goto done;
# 2709| }
# 2710|-> TclDecrRefCount(valueObj);
# 2711|
# 2712| /*
Error: CPPCHECK_WARNING (CWE-457): [#def767]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2710: error[uninitvar]: Uninitialized variable: cachePtr
# 2708| goto done;
# 2709| }
# 2710|-> TclDecrRefCount(valueObj);
# 2711|
# 2712| /*
Error: CPPCHECK_WARNING (CWE-476): [#def768]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2725: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2723|
# 2724| done:
# 2725|-> TclDecrRefCount(storagePtr->keyVarObj);
# 2726| TclDecrRefCount(storagePtr->valueVarObj);
# 2727| TclDecrRefCount(storagePtr->scriptObj);
Error: CPPCHECK_WARNING (CWE-457): [#def769]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2725: error[uninitvar]: Uninitialized variable: cachePtr
# 2723|
# 2724| done:
# 2725|-> TclDecrRefCount(storagePtr->keyVarObj);
# 2726| TclDecrRefCount(storagePtr->valueVarObj);
# 2727| TclDecrRefCount(storagePtr->scriptObj);
Error: CPPCHECK_WARNING (CWE-476): [#def770]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2726: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2724| done:
# 2725| TclDecrRefCount(storagePtr->keyVarObj);
# 2726|-> TclDecrRefCount(storagePtr->valueVarObj);
# 2727| TclDecrRefCount(storagePtr->scriptObj);
# 2728| TclDecrRefCount(storagePtr->accumulatorObj);
Error: CPPCHECK_WARNING (CWE-457): [#def771]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2726: error[uninitvar]: Uninitialized variable: cachePtr
# 2724| done:
# 2725| TclDecrRefCount(storagePtr->keyVarObj);
# 2726|-> TclDecrRefCount(storagePtr->valueVarObj);
# 2727| TclDecrRefCount(storagePtr->scriptObj);
# 2728| TclDecrRefCount(storagePtr->accumulatorObj);
Error: CPPCHECK_WARNING (CWE-476): [#def772]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2727: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2725| TclDecrRefCount(storagePtr->keyVarObj);
# 2726| TclDecrRefCount(storagePtr->valueVarObj);
# 2727|-> TclDecrRefCount(storagePtr->scriptObj);
# 2728| TclDecrRefCount(storagePtr->accumulatorObj);
# 2729| Tcl_DictObjDone(&storagePtr->search);
Error: CPPCHECK_WARNING (CWE-457): [#def773]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2727: error[uninitvar]: Uninitialized variable: cachePtr
# 2725| TclDecrRefCount(storagePtr->keyVarObj);
# 2726| TclDecrRefCount(storagePtr->valueVarObj);
# 2727|-> TclDecrRefCount(storagePtr->scriptObj);
# 2728| TclDecrRefCount(storagePtr->accumulatorObj);
# 2729| Tcl_DictObjDone(&storagePtr->search);
Error: CPPCHECK_WARNING (CWE-476): [#def774]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2728: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2726| TclDecrRefCount(storagePtr->valueVarObj);
# 2727| TclDecrRefCount(storagePtr->scriptObj);
# 2728|-> TclDecrRefCount(storagePtr->accumulatorObj);
# 2729| Tcl_DictObjDone(&storagePtr->search);
# 2730| TclStackFree(interp, storagePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def775]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2728: error[uninitvar]: Uninitialized variable: cachePtr
# 2726| TclDecrRefCount(storagePtr->valueVarObj);
# 2727| TclDecrRefCount(storagePtr->scriptObj);
# 2728|-> TclDecrRefCount(storagePtr->accumulatorObj);
# 2729| Tcl_DictObjDone(&storagePtr->search);
# 2730| TclStackFree(interp, storagePtr);
Error: CPPCHECK_WARNING (CWE-476): [#def776]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2780: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2778| if (result != TCL_OK) {
# 2779| if (allocatedDict) {
# 2780|-> TclDecrRefCount(dictPtr);
# 2781| }
# 2782| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-457): [#def777]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2780: error[uninitvar]: Uninitialized variable: cachePtr
# 2778| if (result != TCL_OK) {
# 2779| if (allocatedDict) {
# 2780|-> TclDecrRefCount(dictPtr);
# 2781| }
# 2782| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def778]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2839: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2837| if (result != TCL_OK) {
# 2838| if (allocatedDict) {
# 2839|-> TclDecrRefCount(dictPtr);
# 2840| }
# 2841| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-457): [#def779]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:2839: error[uninitvar]: Uninitialized variable: cachePtr
# 2837| if (result != TCL_OK) {
# 2838| if (allocatedDict) {
# 2839|-> TclDecrRefCount(dictPtr);
# 2840| }
# 2841| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def780]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3028: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3026| &search, &keyObj, &valueObj, &done);
# 3027| if (result != TCL_OK) {
# 3028|-> TclDecrRefCount(keyVarObj);
# 3029| TclDecrRefCount(valueVarObj);
# 3030| TclDecrRefCount(scriptObj);
Error: CPPCHECK_WARNING (CWE-457): [#def781]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3028: error[uninitvar]: Uninitialized variable: cachePtr
# 3026| &search, &keyObj, &valueObj, &done);
# 3027| if (result != TCL_OK) {
# 3028|-> TclDecrRefCount(keyVarObj);
# 3029| TclDecrRefCount(valueVarObj);
# 3030| TclDecrRefCount(scriptObj);
Error: CPPCHECK_WARNING (CWE-476): [#def782]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3029: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3027| if (result != TCL_OK) {
# 3028| TclDecrRefCount(keyVarObj);
# 3029|-> TclDecrRefCount(valueVarObj);
# 3030| TclDecrRefCount(scriptObj);
# 3031| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-457): [#def783]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3029: error[uninitvar]: Uninitialized variable: cachePtr
# 3027| if (result != TCL_OK) {
# 3028| TclDecrRefCount(keyVarObj);
# 3029|-> TclDecrRefCount(valueVarObj);
# 3030| TclDecrRefCount(scriptObj);
# 3031| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def784]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3030: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3028| TclDecrRefCount(keyVarObj);
# 3029| TclDecrRefCount(valueVarObj);
# 3030|-> TclDecrRefCount(scriptObj);
# 3031| return TCL_ERROR;
# 3032| }
Error: CPPCHECK_WARNING (CWE-457): [#def785]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3030: error[uninitvar]: Uninitialized variable: cachePtr
# 3028| TclDecrRefCount(keyVarObj);
# 3029| TclDecrRefCount(valueVarObj);
# 3030|-> TclDecrRefCount(scriptObj);
# 3031| return TCL_ERROR;
# 3032| }
Error: CPPCHECK_WARNING (CWE-476): [#def786]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3071: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3069| if (Tcl_GetBooleanFromObj(interp, boolObj,
# 3070| &satisfied) != TCL_OK) {
# 3071|-> TclDecrRefCount(boolObj);
# 3072| result = TCL_ERROR;
# 3073| goto abnormalResult;
Error: CPPCHECK_WARNING (CWE-457): [#def787]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3071: error[uninitvar]: Uninitialized variable: cachePtr
# 3069| if (Tcl_GetBooleanFromObj(interp, boolObj,
# 3070| &satisfied) != TCL_OK) {
# 3071|-> TclDecrRefCount(boolObj);
# 3072| result = TCL_ERROR;
# 3073| goto abnormalResult;
Error: CPPCHECK_WARNING (CWE-476): [#def788]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3075: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3073| goto abnormalResult;
# 3074| }
# 3075|-> TclDecrRefCount(boolObj);
# 3076| if (satisfied) {
# 3077| Tcl_DictObjPut(NULL, resultObj, keyObj, valueObj);
Error: CPPCHECK_WARNING (CWE-457): [#def789]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3075: error[uninitvar]: Uninitialized variable: cachePtr
# 3073| goto abnormalResult;
# 3074| }
# 3075|-> TclDecrRefCount(boolObj);
# 3076| if (satisfied) {
# 3077| Tcl_DictObjPut(NULL, resultObj, keyObj, valueObj);
Error: CPPCHECK_WARNING (CWE-476): [#def790]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3101: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3099| }
# 3100|
# 3101|-> TclDecrRefCount(keyObj);
# 3102| TclDecrRefCount(valueObj);
# 3103|
Error: CPPCHECK_WARNING (CWE-457): [#def791]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3101: error[uninitvar]: Uninitialized variable: cachePtr
# 3099| }
# 3100|
# 3101|-> TclDecrRefCount(keyObj);
# 3102| TclDecrRefCount(valueObj);
# 3103|
Error: CPPCHECK_WARNING (CWE-476): [#def792]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3102: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3100|
# 3101| TclDecrRefCount(keyObj);
# 3102|-> TclDecrRefCount(valueObj);
# 3103|
# 3104| Tcl_DictObjNext(&search, &keyObj, &valueObj, &done);
Error: CPPCHECK_WARNING (CWE-457): [#def793]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3102: error[uninitvar]: Uninitialized variable: cachePtr
# 3100|
# 3101| TclDecrRefCount(keyObj);
# 3102|-> TclDecrRefCount(valueObj);
# 3103|
# 3104| Tcl_DictObjNext(&search, &keyObj, &valueObj, &done);
Error: CPPCHECK_WARNING (CWE-476): [#def794]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3111: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3109| */
# 3110|
# 3111|-> TclDecrRefCount(keyVarObj);
# 3112| TclDecrRefCount(valueVarObj);
# 3113| TclDecrRefCount(scriptObj);
Error: CPPCHECK_WARNING (CWE-457): [#def795]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3111: error[uninitvar]: Uninitialized variable: cachePtr
# 3109| */
# 3110|
# 3111|-> TclDecrRefCount(keyVarObj);
# 3112| TclDecrRefCount(valueVarObj);
# 3113| TclDecrRefCount(scriptObj);
Error: CPPCHECK_WARNING (CWE-476): [#def796]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3112: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3110|
# 3111| TclDecrRefCount(keyVarObj);
# 3112|-> TclDecrRefCount(valueVarObj);
# 3113| TclDecrRefCount(scriptObj);
# 3114| Tcl_DictObjDone(&search);
Error: CPPCHECK_WARNING (CWE-457): [#def797]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3112: error[uninitvar]: Uninitialized variable: cachePtr
# 3110|
# 3111| TclDecrRefCount(keyVarObj);
# 3112|-> TclDecrRefCount(valueVarObj);
# 3113| TclDecrRefCount(scriptObj);
# 3114| Tcl_DictObjDone(&search);
Error: CPPCHECK_WARNING (CWE-476): [#def798]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3113: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3111| TclDecrRefCount(keyVarObj);
# 3112| TclDecrRefCount(valueVarObj);
# 3113|-> TclDecrRefCount(scriptObj);
# 3114| Tcl_DictObjDone(&search);
# 3115|
Error: CPPCHECK_WARNING (CWE-457): [#def799]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3113: error[uninitvar]: Uninitialized variable: cachePtr
# 3111| TclDecrRefCount(keyVarObj);
# 3112| TclDecrRefCount(valueVarObj);
# 3113|-> TclDecrRefCount(scriptObj);
# 3114| Tcl_DictObjDone(&search);
# 3115|
Error: CPPCHECK_WARNING (CWE-476): [#def800]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3119: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3117| Tcl_SetObjResult(interp, resultObj);
# 3118| } else {
# 3119|-> TclDecrRefCount(resultObj);
# 3120| }
# 3121| return result;
Error: CPPCHECK_WARNING (CWE-457): [#def801]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3119: error[uninitvar]: Uninitialized variable: cachePtr
# 3117| Tcl_SetObjResult(interp, resultObj);
# 3118| } else {
# 3119|-> TclDecrRefCount(resultObj);
# 3120| }
# 3121| return result;
Error: CPPCHECK_WARNING (CWE-476): [#def802]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3125: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3123| abnormalResult:
# 3124| Tcl_DictObjDone(&search);
# 3125|-> TclDecrRefCount(keyObj);
# 3126| TclDecrRefCount(valueObj);
# 3127| TclDecrRefCount(keyVarObj);
Error: CPPCHECK_WARNING (CWE-457): [#def803]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3125: error[uninitvar]: Uninitialized variable: cachePtr
# 3123| abnormalResult:
# 3124| Tcl_DictObjDone(&search);
# 3125|-> TclDecrRefCount(keyObj);
# 3126| TclDecrRefCount(valueObj);
# 3127| TclDecrRefCount(keyVarObj);
Error: CPPCHECK_WARNING (CWE-476): [#def804]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3126: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3124| Tcl_DictObjDone(&search);
# 3125| TclDecrRefCount(keyObj);
# 3126|-> TclDecrRefCount(valueObj);
# 3127| TclDecrRefCount(keyVarObj);
# 3128| TclDecrRefCount(valueVarObj);
Error: CPPCHECK_WARNING (CWE-457): [#def805]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3126: error[uninitvar]: Uninitialized variable: cachePtr
# 3124| Tcl_DictObjDone(&search);
# 3125| TclDecrRefCount(keyObj);
# 3126|-> TclDecrRefCount(valueObj);
# 3127| TclDecrRefCount(keyVarObj);
# 3128| TclDecrRefCount(valueVarObj);
Error: CPPCHECK_WARNING (CWE-476): [#def806]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3127: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3125| TclDecrRefCount(keyObj);
# 3126| TclDecrRefCount(valueObj);
# 3127|-> TclDecrRefCount(keyVarObj);
# 3128| TclDecrRefCount(valueVarObj);
# 3129| TclDecrRefCount(scriptObj);
Error: CPPCHECK_WARNING (CWE-457): [#def807]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3127: error[uninitvar]: Uninitialized variable: cachePtr
# 3125| TclDecrRefCount(keyObj);
# 3126| TclDecrRefCount(valueObj);
# 3127|-> TclDecrRefCount(keyVarObj);
# 3128| TclDecrRefCount(valueVarObj);
# 3129| TclDecrRefCount(scriptObj);
Error: CPPCHECK_WARNING (CWE-476): [#def808]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3128: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3126| TclDecrRefCount(valueObj);
# 3127| TclDecrRefCount(keyVarObj);
# 3128|-> TclDecrRefCount(valueVarObj);
# 3129| TclDecrRefCount(scriptObj);
# 3130| TclDecrRefCount(resultObj);
Error: CPPCHECK_WARNING (CWE-457): [#def809]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3128: error[uninitvar]: Uninitialized variable: cachePtr
# 3126| TclDecrRefCount(valueObj);
# 3127| TclDecrRefCount(keyVarObj);
# 3128|-> TclDecrRefCount(valueVarObj);
# 3129| TclDecrRefCount(scriptObj);
# 3130| TclDecrRefCount(resultObj);
Error: CPPCHECK_WARNING (CWE-476): [#def810]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3129: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3127| TclDecrRefCount(keyVarObj);
# 3128| TclDecrRefCount(valueVarObj);
# 3129|-> TclDecrRefCount(scriptObj);
# 3130| TclDecrRefCount(resultObj);
# 3131| return result;
Error: CPPCHECK_WARNING (CWE-457): [#def811]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3129: error[uninitvar]: Uninitialized variable: cachePtr
# 3127| TclDecrRefCount(keyVarObj);
# 3128| TclDecrRefCount(valueVarObj);
# 3129|-> TclDecrRefCount(scriptObj);
# 3130| TclDecrRefCount(resultObj);
# 3131| return result;
Error: CPPCHECK_WARNING (CWE-476): [#def812]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3130: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3128| TclDecrRefCount(valueVarObj);
# 3129| TclDecrRefCount(scriptObj);
# 3130|-> TclDecrRefCount(resultObj);
# 3131| return result;
# 3132| }
Error: CPPCHECK_WARNING (CWE-457): [#def813]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3130: error[uninitvar]: Uninitialized variable: cachePtr
# 3128| TclDecrRefCount(valueVarObj);
# 3129| TclDecrRefCount(scriptObj);
# 3130|-> TclDecrRefCount(resultObj);
# 3131| return result;
# 3132| }
Error: CPPCHECK_WARNING (CWE-476): [#def814]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3183: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3181| for (i=2 ; i+2<objc ; i+=2) {
# 3182| if (Tcl_DictObjGet(interp, dictPtr, objv[i], &objPtr) != TCL_OK) {
# 3183|-> TclDecrRefCount(dictPtr);
# 3184| return TCL_ERROR;
# 3185| }
Error: CPPCHECK_WARNING (CWE-457): [#def815]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3183: error[uninitvar]: Uninitialized variable: cachePtr
# 3181| for (i=2 ; i+2<objc ; i+=2) {
# 3182| if (Tcl_DictObjGet(interp, dictPtr, objv[i], &objPtr) != TCL_OK) {
# 3183|-> TclDecrRefCount(dictPtr);
# 3184| return TCL_ERROR;
# 3185| }
Error: CPPCHECK_WARNING (CWE-476): [#def816]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3191: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3189| } else if (Tcl_ObjSetVar2(interp, objv[i+1], NULL, objPtr,
# 3190| TCL_LEAVE_ERR_MSG) == NULL) {
# 3191|-> TclDecrRefCount(dictPtr);
# 3192| return TCL_ERROR;
# 3193| }
Error: CPPCHECK_WARNING (CWE-457): [#def817]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3191: error[uninitvar]: Uninitialized variable: cachePtr
# 3189| } else if (Tcl_ObjSetVar2(interp, objv[i+1], NULL, objPtr,
# 3190| TCL_LEAVE_ERR_MSG) == NULL) {
# 3191|-> TclDecrRefCount(dictPtr);
# 3192| return TCL_ERROR;
# 3193| }
Error: CPPCHECK_WARNING (CWE-476): [#def818]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3195: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3193| }
# 3194| }
# 3195|-> TclDecrRefCount(dictPtr);
# 3196|
# 3197| /*
Error: CPPCHECK_WARNING (CWE-457): [#def819]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3195: error[uninitvar]: Uninitialized variable: cachePtr
# 3193| }
# 3194| }
# 3195|-> TclDecrRefCount(dictPtr);
# 3196|
# 3197| /*
Error: CPPCHECK_WARNING (CWE-476): [#def820]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3236: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3234| dictPtr = Tcl_ObjGetVar2(interp, varName, NULL, 0);
# 3235| if (dictPtr == NULL) {
# 3236|-> TclDecrRefCount(varName);
# 3237| TclDecrRefCount(argsObj);
# 3238| return result;
Error: CPPCHECK_WARNING (CWE-457): [#def821]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3236: error[uninitvar]: Uninitialized variable: cachePtr
# 3234| dictPtr = Tcl_ObjGetVar2(interp, varName, NULL, 0);
# 3235| if (dictPtr == NULL) {
# 3236|-> TclDecrRefCount(varName);
# 3237| TclDecrRefCount(argsObj);
# 3238| return result;
Error: CPPCHECK_WARNING (CWE-476): [#def822]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3237: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3235| if (dictPtr == NULL) {
# 3236| TclDecrRefCount(varName);
# 3237|-> TclDecrRefCount(argsObj);
# 3238| return result;
# 3239| }
Error: CPPCHECK_WARNING (CWE-457): [#def823]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3237: error[uninitvar]: Uninitialized variable: cachePtr
# 3235| if (dictPtr == NULL) {
# 3236| TclDecrRefCount(varName);
# 3237|-> TclDecrRefCount(argsObj);
# 3238| return result;
# 3239| }
Error: CPPCHECK_WARNING (CWE-476): [#def824]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3248: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3246| if (Tcl_DictObjSize(interp, dictPtr, &objc) != TCL_OK) {
# 3247| Tcl_DiscardInterpState(state);
# 3248|-> TclDecrRefCount(varName);
# 3249| TclDecrRefCount(argsObj);
# 3250| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-457): [#def825]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3248: error[uninitvar]: Uninitialized variable: cachePtr
# 3246| if (Tcl_DictObjSize(interp, dictPtr, &objc) != TCL_OK) {
# 3247| Tcl_DiscardInterpState(state);
# 3248|-> TclDecrRefCount(varName);
# 3249| TclDecrRefCount(argsObj);
# 3250| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def826]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3249: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3247| Tcl_DiscardInterpState(state);
# 3248| TclDecrRefCount(varName);
# 3249|-> TclDecrRefCount(argsObj);
# 3250| return TCL_ERROR;
# 3251| }
Error: CPPCHECK_WARNING (CWE-457): [#def827]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3249: error[uninitvar]: Uninitialized variable: cachePtr
# 3247| Tcl_DiscardInterpState(state);
# 3248| TclDecrRefCount(varName);
# 3249|-> TclDecrRefCount(argsObj);
# 3250| return TCL_ERROR;
# 3251| }
Error: CPPCHECK_WARNING (CWE-476): [#def828]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3279: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3277| }
# 3278| }
# 3279|-> TclDecrRefCount(argsObj);
# 3280|
# 3281| /*
Error: CPPCHECK_WARNING (CWE-457): [#def829]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3279: error[uninitvar]: Uninitialized variable: cachePtr
# 3277| }
# 3278| }
# 3279|-> TclDecrRefCount(argsObj);
# 3280|
# 3281| /*
Error: CPPCHECK_WARNING (CWE-476): [#def830]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3288: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3286| TCL_LEAVE_ERR_MSG) == NULL) {
# 3287| Tcl_DiscardInterpState(state);
# 3288|-> TclDecrRefCount(varName);
# 3289| return TCL_ERROR;
# 3290| }
Error: CPPCHECK_WARNING (CWE-457): [#def831]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3288: error[uninitvar]: Uninitialized variable: cachePtr
# 3286| TCL_LEAVE_ERR_MSG) == NULL) {
# 3287| Tcl_DiscardInterpState(state);
# 3288|-> TclDecrRefCount(varName);
# 3289| return TCL_ERROR;
# 3290| }
Error: CPPCHECK_WARNING (CWE-476): [#def832]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3292: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3290| }
# 3291|
# 3292|-> TclDecrRefCount(varName);
# 3293| return Tcl_RestoreInterpState(interp, state);
# 3294| }
Error: CPPCHECK_WARNING (CWE-457): [#def833]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3292: error[uninitvar]: Uninitialized variable: cachePtr
# 3290| }
# 3291|
# 3292|-> TclDecrRefCount(varName);
# 3293| return Tcl_RestoreInterpState(interp, state);
# 3294| }
Error: CPPCHECK_WARNING (CWE-476): [#def834]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3409: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3407| */
# 3408|
# 3409|-> TclDecrRefCount(varName);
# 3410| TclDecrRefCount(keysPtr);
# 3411| if (pathPtr != NULL) {
Error: CPPCHECK_WARNING (CWE-457): [#def835]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3409: error[uninitvar]: Uninitialized variable: cachePtr
# 3407| */
# 3408|
# 3409|-> TclDecrRefCount(varName);
# 3410| TclDecrRefCount(keysPtr);
# 3411| if (pathPtr != NULL) {
Error: CPPCHECK_WARNING (CWE-476): [#def836]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3410: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3408|
# 3409| TclDecrRefCount(varName);
# 3410|-> TclDecrRefCount(keysPtr);
# 3411| if (pathPtr != NULL) {
# 3412| TclDecrRefCount(pathPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def837]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3410: error[uninitvar]: Uninitialized variable: cachePtr
# 3408|
# 3409| TclDecrRefCount(varName);
# 3410|-> TclDecrRefCount(keysPtr);
# 3411| if (pathPtr != NULL) {
# 3412| TclDecrRefCount(pathPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def838]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3412: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3410| TclDecrRefCount(keysPtr);
# 3411| if (pathPtr != NULL) {
# 3412|-> TclDecrRefCount(pathPtr);
# 3413| }
# 3414| if (result != TCL_OK) {
Error: CPPCHECK_WARNING (CWE-457): [#def839]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3412: error[uninitvar]: Uninitialized variable: cachePtr
# 3410| TclDecrRefCount(keysPtr);
# 3411| if (pathPtr != NULL) {
# 3412|-> TclDecrRefCount(pathPtr);
# 3413| }
# 3414| if (result != TCL_OK) {
Error: CPPCHECK_WARNING (CWE-476): [#def840]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3472: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3470| }
# 3471|
# 3472|-> TclNewObj(keysPtr);
# 3473|
# 3474| for (; !done ; Tcl_DictObjNext(&s, &keyPtr, &valPtr, &done)) {
Error: CPPCHECK_WARNING (CWE-457): [#def841]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3472: error[uninitvar]: Uninitialized variable: cachePtr
# 3470| }
# 3471|
# 3472|-> TclNewObj(keysPtr);
# 3473|
# 3474| for (; !done ; Tcl_DictObjNext(&s, &keyPtr, &valPtr, &done)) {
Error: CPPCHECK_WARNING (CWE-457): [#def842]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3472: error[uninitvar]: Uninitialized variable: keysPtr
# 3470| }
# 3471|
# 3472|-> TclNewObj(keysPtr);
# 3473|
# 3474| for (; !done ; Tcl_DictObjNext(&s, &keyPtr, &valPtr, &done)) {
Error: CPPCHECK_WARNING (CWE-476): [#def843]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3478: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3476| if (Tcl_ObjSetVar2(interp, keyPtr, NULL, valPtr,
# 3477| TCL_LEAVE_ERR_MSG) == NULL) {
# 3478|-> TclDecrRefCount(keysPtr);
# 3479| Tcl_DictObjDone(&s);
# 3480| return NULL;
Error: CPPCHECK_WARNING (CWE-457): [#def844]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3478: error[uninitvar]: Uninitialized variable: cachePtr
# 3476| if (Tcl_ObjSetVar2(interp, keyPtr, NULL, valPtr,
# 3477| TCL_LEAVE_ERR_MSG) == NULL) {
# 3478|-> TclDecrRefCount(keysPtr);
# 3479| Tcl_DictObjDone(&s);
# 3480| return NULL;
Error: CPPCHECK_WARNING (CWE-476): [#def845]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3574: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3572| if (leafPtr == NULL) {
# 3573| if (allocdict) {
# 3574|-> TclDecrRefCount(dictPtr);
# 3575| }
# 3576| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-457): [#def846]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3574: error[uninitvar]: Uninitialized variable: cachePtr
# 3572| if (leafPtr == NULL) {
# 3573| if (allocdict) {
# 3574|-> TclDecrRefCount(dictPtr);
# 3575| }
# 3576| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def847]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3580: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3578| if (leafPtr == DICT_PATH_NON_EXISTENT) {
# 3579| if (allocdict) {
# 3580|-> TclDecrRefCount(dictPtr);
# 3581| }
# 3582| return TCL_OK;
Error: CPPCHECK_WARNING (CWE-457): [#def848]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3580: error[uninitvar]: Uninitialized variable: cachePtr
# 3578| if (leafPtr == DICT_PATH_NON_EXISTENT) {
# 3579| if (allocdict) {
# 3580|-> TclDecrRefCount(dictPtr);
# 3581| }
# 3582| return TCL_OK;
Error: CPPCHECK_WARNING (CWE-476): [#def849]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3625: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3623| dictPtr, TCL_LEAVE_ERR_MSG, index) == NULL) {
# 3624| if (allocdict) {
# 3625|-> TclDecrRefCount(dictPtr);
# 3626| }
# 3627| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-457): [#def850]
tcl-8.6.14-build/tcl8.6.14/generic/tclDictObj.c:3625: error[uninitvar]: Uninitialized variable: cachePtr
# 3623| dictPtr, TCL_LEAVE_ERR_MSG, index) == NULL) {
# 3624| if (allocdict) {
# 3625|-> TclDecrRefCount(dictPtr);
# 3626| }
# 3627| return TCL_ERROR;
Error: CPPCHECK_WARNING: [#def851]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def852]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:257: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 255| char ptrBuf1[20], ptrBuf2[20];
# 256|
# 257|-> TclNewObj(bufferObj);
# 258| if (codePtr->refCount <= 0) {
# 259| return bufferObj; /* Already freed. */
Error: CPPCHECK_WARNING (CWE-457): [#def853]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:257: error[uninitvar]: Uninitialized variable: bufferObj
# 255| char ptrBuf1[20], ptrBuf2[20];
# 256|
# 257|-> TclNewObj(bufferObj);
# 258| if (codePtr->refCount <= 0) {
# 259| return bufferObj; /* Already freed. */
Error: CPPCHECK_WARNING (CWE-457): [#def854]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:257: error[uninitvar]: Uninitialized variable: cachePtr
# 255| char ptrBuf1[20], ptrBuf2[20];
# 256|
# 257|-> TclNewObj(bufferObj);
# 258| if (codePtr->refCount <= 0) {
# 259| return bufferObj; /* Already freed. */
Error: CPPCHECK_WARNING (CWE-476): [#def855]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:803: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 801| Tcl_Obj *objPtr;
# 802|
# 803|-> TclNewObj(objPtr);
# 804| objPtr->typePtr = &tclInstNameType;
# 805| objPtr->internalRep.longValue = (long) inst;
Error: CPPCHECK_WARNING (CWE-457): [#def856]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:803: error[uninitvar]: Uninitialized variable: cachePtr
# 801| Tcl_Obj *objPtr;
# 802|
# 803|-> TclNewObj(objPtr);
# 804| objPtr->typePtr = &tclInstNameType;
# 805| objPtr->internalRep.longValue = (long) inst;
Error: CPPCHECK_WARNING (CWE-457): [#def857]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:803: error[uninitvar]: Uninitialized variable: objPtr
# 801| Tcl_Obj *objPtr;
# 802|
# 803|-> TclNewObj(objPtr);
# 804| objPtr->typePtr = &tclInstNameType;
# 805| objPtr->internalRep.longValue = (long) inst;
Error: CPPCHECK_WARNING (CWE-476): [#def858]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:947: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 945| */
# 946|
# 947|-> TclNewObj(literals);
# 948| for (i=0 ; i<codePtr->numLitObjects ; i++) {
# 949| Tcl_ListObjAppendElement(NULL, literals, codePtr->objArrayPtr[i]);
Error: CPPCHECK_WARNING (CWE-457): [#def859]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:947: error[uninitvar]: Uninitialized variable: cachePtr
# 945| */
# 946|
# 947|-> TclNewObj(literals);
# 948| for (i=0 ; i<codePtr->numLitObjects ; i++) {
# 949| Tcl_ListObjAppendElement(NULL, literals, codePtr->objArrayPtr[i]);
Error: CPPCHECK_WARNING (CWE-457): [#def860]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:947: error[uninitvar]: Uninitialized variable: literals
# 945| */
# 946|
# 947|-> TclNewObj(literals);
# 948| for (i=0 ; i<codePtr->numLitObjects ; i++) {
# 949| Tcl_ListObjAppendElement(NULL, literals, codePtr->objArrayPtr[i]);
Error: CPPCHECK_WARNING (CWE-476): [#def861]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:956: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 954| */
# 955|
# 956|-> TclNewObj(variables);
# 957| if (codePtr->procPtr) {
# 958| int localCount = codePtr->procPtr->numCompiledLocals;
Error: CPPCHECK_WARNING (CWE-457): [#def862]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:956: error[uninitvar]: Uninitialized variable: cachePtr
# 954| */
# 955|
# 956|-> TclNewObj(variables);
# 957| if (codePtr->procPtr) {
# 958| int localCount = codePtr->procPtr->numCompiledLocals;
Error: CPPCHECK_WARNING (CWE-457): [#def863]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:956: error[uninitvar]: Uninitialized variable: variables
# 954| */
# 955|
# 956|-> TclNewObj(variables);
# 957| if (codePtr->procPtr) {
# 958| int localCount = codePtr->procPtr->numCompiledLocals;
Error: CPPCHECK_WARNING (CWE-476): [#def864]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:964: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 962| Tcl_Obj *descriptor[2];
# 963|
# 964|-> TclNewObj(descriptor[0]);
# 965| if (!(localPtr->flags & (VAR_ARRAY|VAR_LINK))) {
# 966| Tcl_ListObjAppendElement(NULL, descriptor[0],
Error: CPPCHECK_WARNING (CWE-457): [#def865]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:964: error[uninitvar]: Uninitialized variable: (descriptor[0])->internalRep.twoPtrValue.ptr1
# 962| Tcl_Obj *descriptor[2];
# 963|
# 964|-> TclNewObj(descriptor[0]);
# 965| if (!(localPtr->flags & (VAR_ARRAY|VAR_LINK))) {
# 966| Tcl_ListObjAppendElement(NULL, descriptor[0],
Error: CPPCHECK_WARNING (CWE-457): [#def866]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:964: error[uninitvar]: Uninitialized variable: cachePtr
# 962| Tcl_Obj *descriptor[2];
# 963|
# 964|-> TclNewObj(descriptor[0]);
# 965| if (!(localPtr->flags & (VAR_ARRAY|VAR_LINK))) {
# 966| Tcl_ListObjAppendElement(NULL, descriptor[0],
Error: CPPCHECK_WARNING (CWE-476): [#def867]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1004: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1002| */
# 1003|
# 1004|-> TclNewObj(instructions);
# 1005| for (pc=codePtr->codeStart; pc<codePtr->codeStart+codePtr->numCodeBytes;){
# 1006| const InstructionDesc *instDesc = &tclInstructionTable[*pc];
Error: CPPCHECK_WARNING (CWE-457): [#def868]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1004: error[uninitvar]: Uninitialized variable: cachePtr
# 1002| */
# 1003|
# 1004|-> TclNewObj(instructions);
# 1005| for (pc=codePtr->codeStart; pc<codePtr->codeStart+codePtr->numCodeBytes;){
# 1006| const InstructionDesc *instDesc = &tclInstructionTable[*pc];
Error: CPPCHECK_WARNING (CWE-457): [#def869]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1004: error[uninitvar]: Uninitialized variable: instructions
# 1002| */
# 1003|
# 1004|-> TclNewObj(instructions);
# 1005| for (pc=codePtr->codeStart; pc<codePtr->codeStart+codePtr->numCodeBytes;){
# 1006| const InstructionDesc *instDesc = &tclInstructionTable[*pc];
Error: CPPCHECK_WARNING (CWE-476): [#def870]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1009: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1007| int address = pc - codePtr->codeStart;
# 1008|
# 1009|-> TclNewObj(inst);
# 1010| Tcl_ListObjAppendElement(NULL, inst, Tcl_NewStringObj(
# 1011| instDesc->name, -1));
Error: CPPCHECK_WARNING (CWE-457): [#def871]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1009: error[uninitvar]: Uninitialized variable: cachePtr
# 1007| int address = pc - codePtr->codeStart;
# 1008|
# 1009|-> TclNewObj(inst);
# 1010| Tcl_ListObjAppendElement(NULL, inst, Tcl_NewStringObj(
# 1011| instDesc->name, -1));
Error: CPPCHECK_WARNING (CWE-457): [#def872]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1009: error[uninitvar]: Uninitialized variable: inst
# 1007| int address = pc - codePtr->codeStart;
# 1008|
# 1009|-> TclNewObj(inst);
# 1010| Tcl_ListObjAppendElement(NULL, inst, Tcl_NewStringObj(
# 1011| instDesc->name, -1));
Error: CPPCHECK_WARNING (CWE-476): [#def873]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1107: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1105| */
# 1106|
# 1107|-> TclNewObj(aux);
# 1108| for (i=0 ; i<codePtr->numAuxDataItems ; i++) {
# 1109| AuxData *auxData = &codePtr->auxDataArrayPtr[i];
Error: CPPCHECK_WARNING (CWE-457): [#def874]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1107: error[uninitvar]: Uninitialized variable: aux
# 1105| */
# 1106|
# 1107|-> TclNewObj(aux);
# 1108| for (i=0 ; i<codePtr->numAuxDataItems ; i++) {
# 1109| AuxData *auxData = &codePtr->auxDataArrayPtr[i];
Error: CPPCHECK_WARNING (CWE-457): [#def875]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1107: error[uninitvar]: Uninitialized variable: cachePtr
# 1105| */
# 1106|
# 1107|-> TclNewObj(aux);
# 1108| for (i=0 ; i<codePtr->numAuxDataItems ; i++) {
# 1109| AuxData *auxData = &codePtr->auxDataArrayPtr[i];
Error: CPPCHECK_WARNING (CWE-476): [#def876]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1115: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1113| Tcl_Obj *desc;
# 1114|
# 1115|-> TclNewObj(desc);
# 1116| Tcl_DictObjPut(NULL, desc, Tcl_NewStringObj("name", -1), auxDesc);
# 1117| auxDesc = desc;
Error: CPPCHECK_WARNING (CWE-457): [#def877]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1115: error[uninitvar]: Uninitialized variable: cachePtr
# 1113| Tcl_Obj *desc;
# 1114|
# 1115|-> TclNewObj(desc);
# 1116| Tcl_DictObjPut(NULL, desc, Tcl_NewStringObj("name", -1), auxDesc);
# 1117| auxDesc = desc;
Error: CPPCHECK_WARNING (CWE-457): [#def878]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1115: error[uninitvar]: Uninitialized variable: desc
# 1113| Tcl_Obj *desc;
# 1114|
# 1115|-> TclNewObj(desc);
# 1116| Tcl_DictObjPut(NULL, desc, Tcl_NewStringObj("name", -1), auxDesc);
# 1117| auxDesc = desc;
Error: CPPCHECK_WARNING (CWE-476): [#def879]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1123: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1121| Tcl_Obj *desc;
# 1122|
# 1123|-> TclNewObj(desc);
# 1124| auxData->type->printProc(auxData->clientData, desc, codePtr, 0);
# 1125| Tcl_ListObjAppendElement(NULL, auxDesc, desc);
Error: CPPCHECK_WARNING (CWE-457): [#def880]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1123: error[uninitvar]: Uninitialized variable: cachePtr
# 1121| Tcl_Obj *desc;
# 1122|
# 1123|-> TclNewObj(desc);
# 1124| auxData->type->printProc(auxData->clientData, desc, codePtr, 0);
# 1125| Tcl_ListObjAppendElement(NULL, auxDesc, desc);
Error: CPPCHECK_WARNING (CWE-457): [#def881]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1123: error[uninitvar]: Uninitialized variable: desc
# 1121| Tcl_Obj *desc;
# 1122|
# 1123|-> TclNewObj(desc);
# 1124| auxData->type->printProc(auxData->clientData, desc, codePtr, 0);
# 1125| Tcl_ListObjAppendElement(NULL, auxDesc, desc);
Error: CPPCHECK_WARNING (CWE-476): [#def882]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1134: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1132| */
# 1133|
# 1134|-> TclNewObj(exn);
# 1135| for (i=0 ; i<codePtr->numExceptRanges ; i++) {
# 1136| ExceptionRange *rangePtr = &codePtr->exceptArrayPtr[i];
Error: CPPCHECK_WARNING (CWE-457): [#def883]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1134: error[uninitvar]: Uninitialized variable: cachePtr
# 1132| */
# 1133|
# 1134|-> TclNewObj(exn);
# 1135| for (i=0 ; i<codePtr->numExceptRanges ; i++) {
# 1136| ExceptionRange *rangePtr = &codePtr->exceptArrayPtr[i];
Error: CPPCHECK_WARNING (CWE-457): [#def884]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1134: error[uninitvar]: Uninitialized variable: exn
# 1132| */
# 1133|
# 1134|-> TclNewObj(exn);
# 1135| for (i=0 ; i<codePtr->numExceptRanges ; i++) {
# 1136| ExceptionRange *rangePtr = &codePtr->exceptArrayPtr[i];
Error: CPPCHECK_WARNING (CWE-476): [#def885]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1169: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1167| : ((ptr)+=1 , TclGetInt1AtPtr((ptr)-1)))
# 1168|
# 1169|-> TclNewObj(commands);
# 1170| codeOffPtr = codePtr->codeDeltaStart;
# 1171| codeLenPtr = codePtr->codeLengthStart;
Error: CPPCHECK_WARNING (CWE-457): [#def886]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1169: error[uninitvar]: Uninitialized variable: cachePtr
# 1167| : ((ptr)+=1 , TclGetInt1AtPtr((ptr)-1)))
# 1168|
# 1169|-> TclNewObj(commands);
# 1170| codeOffPtr = codePtr->codeDeltaStart;
# 1171| codeLenPtr = codePtr->codeLengthStart;
Error: CPPCHECK_WARNING (CWE-457): [#def887]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1169: error[uninitvar]: Uninitialized variable: commands
# 1167| : ((ptr)+=1 , TclGetInt1AtPtr((ptr)-1)))
# 1168|
# 1169|-> TclNewObj(commands);
# 1170| codeOffPtr = codePtr->codeDeltaStart;
# 1171| codeLenPtr = codePtr->codeLengthStart;
Error: CPPCHECK_WARNING (CWE-476): [#def888]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1182: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1180| sourceOffset += Decode(srcOffPtr);
# 1181| sourceLength = Decode(srcLenPtr);
# 1182|-> TclNewObj(cmd);
# 1183| Tcl_DictObjPut(NULL, cmd, Tcl_NewStringObj("codefrom", -1),
# 1184| Tcl_NewIntObj(codeOffset));
Error: CPPCHECK_WARNING (CWE-457): [#def889]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1182: error[uninitvar]: Uninitialized variable: cachePtr
# 1180| sourceOffset += Decode(srcOffPtr);
# 1181| sourceLength = Decode(srcLenPtr);
# 1182|-> TclNewObj(cmd);
# 1183| Tcl_DictObjPut(NULL, cmd, Tcl_NewStringObj("codefrom", -1),
# 1184| Tcl_NewIntObj(codeOffset));
Error: CPPCHECK_WARNING (CWE-457): [#def890]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1182: error[uninitvar]: Uninitialized variable: cmd
# 1180| sourceOffset += Decode(srcOffPtr);
# 1181| sourceLength = Decode(srcLenPtr);
# 1182|-> TclNewObj(cmd);
# 1183| Tcl_DictObjPut(NULL, cmd, Tcl_NewStringObj("codefrom", -1),
# 1184| Tcl_NewIntObj(codeOffset));
Error: CPPCHECK_WARNING (CWE-476): [#def891]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1217: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1215| */
# 1216|
# 1217|-> TclNewObj(description);
# 1218| Tcl_DictObjPut(NULL, description, Tcl_NewStringObj("literals", -1),
# 1219| literals);
Error: CPPCHECK_WARNING (CWE-457): [#def892]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1217: error[uninitvar]: Uninitialized variable: cachePtr
# 1215| */
# 1216|
# 1217|-> TclNewObj(description);
# 1218| Tcl_DictObjPut(NULL, description, Tcl_NewStringObj("literals", -1),
# 1219| literals);
Error: CPPCHECK_WARNING (CWE-457): [#def893]
tcl-8.6.14-build/tcl8.6.14/generic/tclDisassemble.c:1217: error[uninitvar]: Uninitialized variable: description
# 1215| */
# 1216|
# 1217|-> TclNewObj(description);
# 1218| Tcl_DictObjPut(NULL, description, Tcl_NewStringObj("literals", -1),
# 1219| literals);
Error: CPPCHECK_WARNING: [#def894]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def895]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c:490: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 488| };
# 489|
# 490|-> TclNewObj(matchFileList);
# 491| Tcl_ListObjIndex(NULL, searchPath, i, &directory);
# 492| Tcl_IncrRefCount(directory);
Error: CPPCHECK_WARNING (CWE-457): [#def896]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c:490: error[uninitvar]: Uninitialized variable: cachePtr
# 488| };
# 489|
# 490|-> TclNewObj(matchFileList);
# 491| Tcl_ListObjIndex(NULL, searchPath, i, &directory);
# 492| Tcl_IncrRefCount(directory);
Error: CPPCHECK_WARNING (CWE-457): [#def897]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c:490: error[uninitvar]: Uninitialized variable: matchFileList
# 488| };
# 489|
# 490|-> TclNewObj(matchFileList);
# 491| Tcl_ListObjIndex(NULL, searchPath, i, &directory);
# 492| Tcl_IncrRefCount(directory);
Error: CPPCHECK_WARNING (CWE-476): [#def898]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c:911: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 909| int dummy, done = 0;
# 910|
# 911|-> TclNewObj(result);
# 912| Tcl_InitObjHashTable(&table);
# 913|
Error: CPPCHECK_WARNING (CWE-457): [#def899]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c:911: error[uninitvar]: Uninitialized variable: cachePtr
# 909| int dummy, done = 0;
# 910|
# 911|-> TclNewObj(result);
# 912| Tcl_InitObjHashTable(&table);
# 913|
Error: CPPCHECK_WARNING (CWE-457): [#def900]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c:911: error[uninitvar]: Uninitialized variable: result
# 909| int dummy, done = 0;
# 910|
# 911|-> TclNewObj(result);
# 912| Tcl_InitObjHashTable(&table);
# 913|
Error: CLANG_WARNING: [#def901]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c:1253:2: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1251| }
# 1252| do {
# 1253|-> Tcl_EncodingState savedState = *statePtr;
# 1254|
# 1255| result = encodingPtr->toUtfProc(encodingPtr->clientData, src, srcLen,
Error: CPPCHECK_WARNING (CWE-476): [#def902]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c:1763: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1761| pageMemPtr = (unsigned short *) (dataPtr->toUnicode + 256);
# 1762|
# 1763|-> TclNewObj(objPtr);
# 1764| Tcl_IncrRefCount(objPtr);
# 1765| for (i = 0; i < numPages; i++) {
Error: CPPCHECK_WARNING (CWE-457): [#def903]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c:1763: error[uninitvar]: Uninitialized variable: cachePtr
# 1761| pageMemPtr = (unsigned short *) (dataPtr->toUnicode + 256);
# 1762|
# 1763|-> TclNewObj(objPtr);
# 1764| Tcl_IncrRefCount(objPtr);
# 1765| for (i = 0; i < numPages; i++) {
Error: CPPCHECK_WARNING (CWE-457): [#def904]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c:1763: error[uninitvar]: Uninitialized variable: objPtr
# 1761| pageMemPtr = (unsigned short *) (dataPtr->toUnicode + 256);
# 1762|
# 1763|-> TclNewObj(objPtr);
# 1764| Tcl_IncrRefCount(objPtr);
# 1765| for (i = 0; i < numPages; i++) {
Error: CPPCHECK_WARNING (CWE-476): [#def905]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c:1791: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1789| }
# 1790| }
# 1791|-> TclDecrRefCount(objPtr);
# 1792|
# 1793| if (type == ENCODING_DOUBLEBYTE) {
Error: CPPCHECK_WARNING (CWE-457): [#def906]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c:1791: error[uninitvar]: Uninitialized variable: cachePtr
# 1789| }
# 1790| }
# 1791|-> TclDecrRefCount(objPtr);
# 1792|
# 1793| if (type == ENCODING_DOUBLEBYTE) {
Error: CPPCHECK_WARNING (CWE-476): [#def907]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c:3718: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3716| Tcl_Obj *libPathObj, *encodingObj, *searchPathObj;
# 3717|
# 3718|-> TclNewLiteralStringObj(encodingObj, "encoding");
# 3719| TclNewObj(searchPathObj);
# 3720| Tcl_IncrRefCount(encodingObj);
Error: CPPCHECK_WARNING (CWE-457): [#def908]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c:3718: error[uninitvar]: Uninitialized variable: cachePtr
# 3716| Tcl_Obj *libPathObj, *encodingObj, *searchPathObj;
# 3717|
# 3718|-> TclNewLiteralStringObj(encodingObj, "encoding");
# 3719| TclNewObj(searchPathObj);
# 3720| Tcl_IncrRefCount(encodingObj);
Error: CPPCHECK_WARNING (CWE-457): [#def909]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c:3718: error[uninitvar]: Uninitialized variable: encodingObj
# 3716| Tcl_Obj *libPathObj, *encodingObj, *searchPathObj;
# 3717|
# 3718|-> TclNewLiteralStringObj(encodingObj, "encoding");
# 3719| TclNewObj(searchPathObj);
# 3720| Tcl_IncrRefCount(encodingObj);
Error: CPPCHECK_WARNING (CWE-476): [#def910]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c:3719: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3717|
# 3718| TclNewLiteralStringObj(encodingObj, "encoding");
# 3719|-> TclNewObj(searchPathObj);
# 3720| Tcl_IncrRefCount(encodingObj);
# 3721| Tcl_IncrRefCount(searchPathObj);
Error: CPPCHECK_WARNING (CWE-457): [#def911]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c:3719: error[uninitvar]: Uninitialized variable: cachePtr
# 3717|
# 3718| TclNewLiteralStringObj(encodingObj, "encoding");
# 3719|-> TclNewObj(searchPathObj);
# 3720| Tcl_IncrRefCount(encodingObj);
# 3721| Tcl_IncrRefCount(searchPathObj);
Error: CPPCHECK_WARNING (CWE-457): [#def912]
tcl-8.6.14-build/tcl8.6.14/generic/tclEncoding.c:3719: error[uninitvar]: Uninitialized variable: searchPathObj
# 3717|
# 3718| TclNewLiteralStringObj(encodingObj, "encoding");
# 3719|-> TclNewObj(searchPathObj);
# 3720| Tcl_IncrRefCount(encodingObj);
# 3721| Tcl_IncrRefCount(searchPathObj);
Error: CPPCHECK_WARNING: [#def913]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def914]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:112:25: warning[core.NullDereference]: Access to field 'interp' results in a dereference of a null pointer (loaded from variable 'nsPtr')
# 110| Namespace *nsPtr = (Namespace *) namespacePtr;
# 111|
# 112|-> if (namespacePtr == TclGetGlobalNamespace(nsPtr->interp)) {
# 113| return Tcl_NewStringObj("::", 2);
# 114| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def915]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:263: error[legacyUninitvar]: Uninitialized variable: *(&listv)
# 261| const char *cmd;
# 262|
# 263|-> if (TclListObjGetElements(interp, listObj, &len,
# 264| &listv) != TCL_OK) {
# 265| Tcl_DictObjDone(&search);
Error: CPPCHECK_WARNING (CWE-476): [#def916]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:442: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 440| int flags = 0; /* silence gcc 4 warning */
# 441|
# 442|-> TclNewObj(resultObj);
# 443|
# 444| /* -map option */
Error: CPPCHECK_WARNING (CWE-457): [#def917]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:442: error[uninitvar]: Uninitialized variable: cachePtr
# 440| int flags = 0; /* silence gcc 4 warning */
# 441|
# 442|-> TclNewObj(resultObj);
# 443|
# 444| /* -map option */
Error: CPPCHECK_WARNING (CWE-457): [#def918]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:442: error[uninitvar]: Uninitialized variable: resultObj
# 440| int flags = 0; /* silence gcc 4 warning */
# 441|
# 442|-> TclNewObj(resultObj);
# 443|
# 444| /* -map option */
Error: CPPCHECK_WARNING (CWE-476): [#def919]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:801: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 799| }
# 800| if (oldList != NULL) {
# 801|-> TclDecrRefCount(oldList);
# 802| }
# 803|
Error: CPPCHECK_WARNING (CWE-457): [#def920]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:801: error[uninitvar]: Uninitialized variable: cachePtr
# 799| }
# 800| if (oldList != NULL) {
# 801|-> TclDecrRefCount(oldList);
# 802| }
# 803|
Error: CPPCHECK_WARNING (CWE-476): [#def921]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:877: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 875| }
# 876| if (oldList != NULL) {
# 877|-> TclDecrRefCount(oldList);
# 878| }
# 879| ensemblePtr->numParameters = length;
Error: CPPCHECK_WARNING (CWE-457): [#def922]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:877: error[uninitvar]: Uninitialized variable: cachePtr
# 875| }
# 876| if (oldList != NULL) {
# 877|-> TclDecrRefCount(oldList);
# 878| }
# 879| ensemblePtr->numParameters = length;
Error: CPPCHECK_WARNING (CWE-476): [#def923]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:977: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 975| }
# 976| if (oldDict != NULL) {
# 977|-> TclDecrRefCount(oldDict);
# 978| }
# 979|
Error: CPPCHECK_WARNING (CWE-457): [#def924]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:977: error[uninitvar]: Uninitialized variable: cachePtr
# 975| }
# 976| if (oldDict != NULL) {
# 977|-> TclDecrRefCount(oldDict);
# 978| }
# 979|
Error: CPPCHECK_WARNING (CWE-476): [#def925]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:1052: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1050| }
# 1051| if (oldList != NULL) {
# 1052|-> TclDecrRefCount(oldList);
# 1053| }
# 1054|
Error: CPPCHECK_WARNING (CWE-457): [#def926]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:1052: error[uninitvar]: Uninitialized variable: cachePtr
# 1050| }
# 1051| if (oldList != NULL) {
# 1052|-> TclDecrRefCount(oldList);
# 1053| }
# 1054|
Error: CPPCHECK_WARNING (CWE-476): [#def927]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:1595: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1593|
# 1594| TclDStringAppendLiteral(&buf, "::");
# 1595|-> TclNewObj(mapDict);
# 1596| for (i=0 ; map[i].name != NULL ; i++) {
# 1597| fromObj = Tcl_NewStringObj(map[i].name, -1);
Error: CPPCHECK_WARNING (CWE-457): [#def928]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:1595: error[uninitvar]: Uninitialized variable: cachePtr
# 1593|
# 1594| TclDStringAppendLiteral(&buf, "::");
# 1595|-> TclNewObj(mapDict);
# 1596| for (i=0 ; map[i].name != NULL ; i++) {
# 1597| fromObj = Tcl_NewStringObj(map[i].name, -1);
Error: CPPCHECK_WARNING (CWE-457): [#def929]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:1595: error[uninitvar]: Uninitialized variable: mapDict
# 1593|
# 1594| TclDStringAppendLiteral(&buf, "::");
# 1595|-> TclNewObj(mapDict);
# 1596| for (i=0 ; map[i].name != NULL ; i++) {
# 1597| fromObj = Tcl_NewStringObj(map[i].name, -1);
Error: CPPCHECK_WARNING (CWE-476): [#def930]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:1598: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1596| for (i=0 ; map[i].name != NULL ; i++) {
# 1597| fromObj = Tcl_NewStringObj(map[i].name, -1);
# 1598|-> TclNewStringObj(toObj, Tcl_DStringValue(&buf),
# 1599| Tcl_DStringLength(&buf));
# 1600| Tcl_AppendToObj(toObj, map[i].name, -1);
Error: CPPCHECK_WARNING (CWE-457): [#def931]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:1598: error[uninitvar]: Uninitialized variable: cachePtr
# 1596| for (i=0 ; map[i].name != NULL ; i++) {
# 1597| fromObj = Tcl_NewStringObj(map[i].name, -1);
# 1598|-> TclNewStringObj(toObj, Tcl_DStringValue(&buf),
# 1599| Tcl_DStringLength(&buf));
# 1600| Tcl_AppendToObj(toObj, map[i].name, -1);
Error: CPPCHECK_WARNING (CWE-457): [#def932]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:1598: error[uninitvar]: Uninitialized variable: toObj
# 1596| for (i=0 ; map[i].name != NULL ; i++) {
# 1597| fromObj = Tcl_NewStringObj(map[i].name, -1);
# 1598|-> TclNewStringObj(toObj, Tcl_DStringValue(&buf),
# 1599| Tcl_DStringLength(&buf));
# 1600| Tcl_AppendToObj(toObj, map[i].name, -1);
Error: CPPCHECK_WARNING (CWE-476): [#def933]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:1900: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1898| Tcl_IncrRefCount(copyPtr);
# 1899| TclNRAddCallback(interp, TclNRReleaseValues, copyPtr, NULL, NULL, NULL);
# 1900|-> TclDecrRefCount(prefixObj);
# 1901|
# 1902| /*
Error: CPPCHECK_WARNING (CWE-457): [#def934]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:1900: error[uninitvar]: Uninitialized variable: cachePtr
# 1898| Tcl_IncrRefCount(copyPtr);
# 1899| TclNRAddCallback(interp, TclNRReleaseValues, copyPtr, NULL, NULL, NULL);
# 1900|-> TclDecrRefCount(prefixObj);
# 1901|
# 1902| /*
Error: CPPCHECK_WARNING (CWE-476): [#def935]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:2288: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2286|
# 2287| unknownCmd = Tcl_DuplicateObj(ensemblePtr->unknownHandler);
# 2288|-> TclNewObj(ensObj);
# 2289| Tcl_GetCommandFullName(interp, ensemblePtr->token, ensObj);
# 2290| Tcl_ListObjAppendElement(NULL, unknownCmd, ensObj);
Error: CPPCHECK_WARNING (CWE-457): [#def936]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:2288: error[uninitvar]: Uninitialized variable: cachePtr
# 2286|
# 2287| unknownCmd = Tcl_DuplicateObj(ensemblePtr->unknownHandler);
# 2288|-> TclNewObj(ensObj);
# 2289| Tcl_GetCommandFullName(interp, ensemblePtr->token, ensObj);
# 2290| Tcl_ListObjAppendElement(NULL, unknownCmd, ensObj);
Error: CPPCHECK_WARNING (CWE-457): [#def937]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:2288: error[uninitvar]: Uninitialized variable: ensObj
# 2286|
# 2287| unknownCmd = Tcl_DuplicateObj(ensemblePtr->unknownHandler);
# 2288|-> TclNewObj(ensObj);
# 2289| Tcl_GetCommandFullName(interp, ensemblePtr->token, ensObj);
# 2290| Tcl_ListObjAppendElement(NULL, unknownCmd, ensObj);
Error: CPPCHECK_WARNING (CWE-476): [#def938]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:2328: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2326| *prefixObjPtr = Tcl_GetObjResult(interp);
# 2327| Tcl_IncrRefCount(*prefixObjPtr);
# 2328|-> TclDecrRefCount(unknownCmd);
# 2329| Tcl_ResetResult(interp);
# 2330|
Error: CPPCHECK_WARNING (CWE-457): [#def939]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:2328: error[uninitvar]: Uninitialized variable: cachePtr
# 2326| *prefixObjPtr = Tcl_GetObjResult(interp);
# 2327| Tcl_IncrRefCount(*prefixObjPtr);
# 2328|-> TclDecrRefCount(unknownCmd);
# 2329| Tcl_ResetResult(interp);
# 2330|
Error: CPPCHECK_WARNING (CWE-476): [#def940]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:2338: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2336|
# 2337| if (TclListObjLength(interp, *prefixObjPtr, &prefixObjc) != TCL_OK) {
# 2338|-> TclDecrRefCount(*prefixObjPtr);
# 2339| Tcl_AddErrorInfo(interp, "\n while parsing result of "
# 2340| "ensemble unknown subcommand handler");
Error: CPPCHECK_WARNING (CWE-457): [#def941]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:2338: error[uninitvar]: Uninitialized variable: cachePtr
# 2336|
# 2337| if (TclListObjLength(interp, *prefixObjPtr, &prefixObjc) != TCL_OK) {
# 2338|-> TclDecrRefCount(*prefixObjPtr);
# 2339| Tcl_AddErrorInfo(interp, "\n while parsing result of "
# 2340| "ensemble unknown subcommand handler");
Error: CPPCHECK_WARNING (CWE-476): [#def942]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:2351: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2349| */
# 2350|
# 2351|-> TclDecrRefCount(*prefixObjPtr);
# 2352| return TCL_CONTINUE;
# 2353| }
Error: CPPCHECK_WARNING (CWE-457): [#def943]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:2351: error[uninitvar]: Uninitialized variable: cachePtr
# 2349| */
# 2350|
# 2351|-> TclDecrRefCount(*prefixObjPtr);
# 2352| return TCL_CONTINUE;
# 2353| }
Error: CPPCHECK_WARNING (CWE-476): [#def944]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:2387: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2385| }
# 2386| }
# 2387|-> TclDecrRefCount(unknownCmd);
# 2388| return TCL_ERROR;
# 2389| }
Error: CPPCHECK_WARNING (CWE-457): [#def945]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:2387: error[uninitvar]: Uninitialized variable: cachePtr
# 2385| }
# 2386| }
# 2387|-> TclDecrRefCount(unknownCmd);
# 2388| return TCL_ERROR;
# 2389| }
Error: CPPCHECK_WARNING (CWE-476): [#def946]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:2715: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2713| Tcl_Obj *cmdObj, *cmdPrefixObj;
# 2714|
# 2715|-> TclNewObj(cmdObj);
# 2716| Tcl_AppendStringsToObj(cmdObj,
# 2717| ensemblePtr->nsPtr->fullName,
Error: CPPCHECK_WARNING (CWE-457): [#def947]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:2715: error[uninitvar]: Uninitialized variable: cachePtr
# 2713| Tcl_Obj *cmdObj, *cmdPrefixObj;
# 2714|
# 2715|-> TclNewObj(cmdObj);
# 2716| Tcl_AppendStringsToObj(cmdObj,
# 2717| ensemblePtr->nsPtr->fullName,
Error: CPPCHECK_WARNING (CWE-457): [#def948]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:2715: error[uninitvar]: Uninitialized variable: cmdObj
# 2713| Tcl_Obj *cmdObj, *cmdPrefixObj;
# 2714|
# 2715|-> TclNewObj(cmdObj);
# 2716| Tcl_AppendStringsToObj(cmdObj,
# 2717| ensemblePtr->nsPtr->fullName,
Error: CPPCHECK_WARNING (CWE-476): [#def949]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:2924: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2922| const char *word;
# 2923|
# 2924|-> TclNewObj(replaced);
# 2925| Tcl_IncrRefCount(replaced);
# 2926| if (parsePtr->numWords < depth + 1) {
Error: CPPCHECK_WARNING (CWE-457): [#def950]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:2924: error[uninitvar]: Uninitialized variable: cachePtr
# 2922| const char *word;
# 2923|
# 2924|-> TclNewObj(replaced);
# 2925| Tcl_IncrRefCount(replaced);
# 2926| if (parsePtr->numWords < depth + 1) {
Error: CPPCHECK_WARNING (CWE-457): [#def951]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:2924: error[uninitvar]: Uninitialized variable: replaced
# 2922| const char *word;
# 2923|
# 2924|-> TclNewObj(replaced);
# 2925| Tcl_IncrRefCount(replaced);
# 2926| if (parsePtr->numWords < depth + 1) {
Error: CPPCHECK_WARNING (CWE-476): [#def952]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:3047: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3045| */
# 3046|
# 3047|-> TclNewStringObj(subcmdObj, word, (int) numBytes);
# 3048| result = Tcl_DictObjGet(NULL, mapObj, subcmdObj, &targetCmdObj);
# 3049| if (result == TCL_OK && targetCmdObj != NULL) {
Error: CPPCHECK_WARNING (CWE-457): [#def953]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:3047: error[uninitvar]: Uninitialized variable: cachePtr
# 3045| */
# 3046|
# 3047|-> TclNewStringObj(subcmdObj, word, (int) numBytes);
# 3048| result = Tcl_DictObjGet(NULL, mapObj, subcmdObj, &targetCmdObj);
# 3049| if (result == TCL_OK && targetCmdObj != NULL) {
Error: CPPCHECK_WARNING (CWE-457): [#def954]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:3047: error[uninitvar]: Uninitialized variable: subcmdObj
# 3045| */
# 3046|
# 3047|-> TclNewStringObj(subcmdObj, word, (int) numBytes);
# 3048| result = Tcl_DictObjGet(NULL, mapObj, subcmdObj, &targetCmdObj);
# 3049| if (result == TCL_OK && targetCmdObj != NULL) {
Error: CPPCHECK_WARNING (CWE-476): [#def955]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:3057: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3055| goto doneMapLookup;
# 3056| }
# 3057|-> TclDecrRefCount(subcmdObj);
# 3058|
# 3059| /*
Error: CPPCHECK_WARNING (CWE-457): [#def956]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:3057: error[uninitvar]: Uninitialized variable: cachePtr
# 3055| goto doneMapLookup;
# 3056| }
# 3057|-> TclDecrRefCount(subcmdObj);
# 3058|
# 3059| /*
Error: CPPCHECK_WARNING (CWE-476): [#def957]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:3131: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3129| Tcl_IncrRefCount(targetCmdObj);
# 3130| newCmdPtr = (Command *) Tcl_GetCommandFromObj(interp, targetCmdObj);
# 3131|-> TclDecrRefCount(targetCmdObj);
# 3132| if (newCmdPtr == NULL || Tcl_IsSafe(interp)
# 3133| || newCmdPtr->nsPtr->flags & NS_SUPPRESS_COMPILATION
Error: CPPCHECK_WARNING (CWE-457): [#def958]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:3131: error[uninitvar]: Uninitialized variable: cachePtr
# 3129| Tcl_IncrRefCount(targetCmdObj);
# 3130| newCmdPtr = (Command *) Tcl_GetCommandFromObj(interp, targetCmdObj);
# 3131|-> TclDecrRefCount(targetCmdObj);
# 3132| if (newCmdPtr == NULL || Tcl_IsSafe(interp)
# 3133| || newCmdPtr->nsPtr->flags & NS_SUPPRESS_COMPILATION
Error: CPPCHECK_WARNING (CWE-476): [#def959]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:3428: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3426| */
# 3427|
# 3428|-> TclNewObj(objPtr);
# 3429| Tcl_GetCommandFullName(interp, (Tcl_Command) cmdPtr, objPtr);
# 3430| bytes = Tcl_GetStringFromObj(objPtr, &length);
Error: CPPCHECK_WARNING (CWE-457): [#def960]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:3428: error[uninitvar]: Uninitialized variable: cachePtr
# 3426| */
# 3427|
# 3428|-> TclNewObj(objPtr);
# 3429| Tcl_GetCommandFullName(interp, (Tcl_Command) cmdPtr, objPtr);
# 3430| bytes = Tcl_GetStringFromObj(objPtr, &length);
Error: CPPCHECK_WARNING (CWE-457): [#def961]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:3428: error[uninitvar]: Uninitialized variable: objPtr
# 3426| */
# 3427|
# 3428|-> TclNewObj(objPtr);
# 3429| Tcl_GetCommandFullName(interp, (Tcl_Command) cmdPtr, objPtr);
# 3430| bytes = Tcl_GetStringFromObj(objPtr, &length);
Error: CPPCHECK_WARNING (CWE-476): [#def962]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:3437: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3435| TclSetCmdNameObj(interp, TclFetchLiteral(envPtr, cmdLit), cmdPtr);
# 3436| TclEmitPush(cmdLit, envPtr);
# 3437|-> TclDecrRefCount(objPtr);
# 3438|
# 3439| /*
Error: CPPCHECK_WARNING (CWE-457): [#def963]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:3437: error[uninitvar]: Uninitialized variable: cachePtr
# 3435| TclSetCmdNameObj(interp, TclFetchLiteral(envPtr, cmdLit), cmdPtr);
# 3436| TclEmitPush(cmdLit, envPtr);
# 3437|-> TclDecrRefCount(objPtr);
# 3438|
# 3439| /*
Error: CPPCHECK_WARNING (CWE-476): [#def964]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:3469: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3467| Tcl_Obj *objPtr;
# 3468|
# 3469|-> TclNewObj(objPtr);
# 3470| Tcl_IncrRefCount(objPtr);
# 3471| Tcl_GetCommandFullName(interp, (Tcl_Command) cmdPtr, objPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def965]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:3469: error[uninitvar]: Uninitialized variable: cachePtr
# 3467| Tcl_Obj *objPtr;
# 3468|
# 3469|-> TclNewObj(objPtr);
# 3470| Tcl_IncrRefCount(objPtr);
# 3471| Tcl_GetCommandFullName(interp, (Tcl_Command) cmdPtr, objPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def966]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnsemble.c:3469: error[uninitvar]: Uninitialized variable: objPtr
# 3467| Tcl_Obj *objPtr;
# 3468|
# 3469|-> TclNewObj(objPtr);
# 3470| Tcl_IncrRefCount(objPtr);
# 3471| Tcl_GetCommandFullName(interp, (Tcl_Command) cmdPtr, objPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def967]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnv.c:128: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 126| */
# 127|
# 128|-> TclNewLiteralStringObj(varNamePtr, "env");
# 129| Tcl_IncrRefCount(varNamePtr);
# 130| Tcl_InitObjHashTable(&namesHash);
Error: CPPCHECK_WARNING (CWE-457): [#def968]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnv.c:128: error[uninitvar]: Uninitialized variable: cachePtr
# 126| */
# 127|
# 128|-> TclNewLiteralStringObj(varNamePtr, "env");
# 129| Tcl_IncrRefCount(varNamePtr);
# 130| Tcl_InitObjHashTable(&namesHash);
Error: CPPCHECK_WARNING (CWE-457): [#def969]
tcl-8.6.14-build/tcl8.6.14/generic/tclEnv.c:128: error[uninitvar]: Uninitialized variable: varNamePtr
# 126| */
# 127|
# 128|-> TclNewLiteralStringObj(varNamePtr, "env");
# 129| Tcl_IncrRefCount(varNamePtr);
# 130| Tcl_InitObjHashTable(&namesHash);
Error: CPPCHECK_WARNING: [#def970]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def971]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:268: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 266| Tcl_Obj *keyPtr, *valuePtr = NULL;
# 267|
# 268|-> TclNewLiteralStringObj(keyPtr, "-errorinfo");
# 269| Tcl_IncrRefCount(keyPtr);
# 270| Tcl_DictObjGet(NULL, options, keyPtr, &valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def972]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:268: error[uninitvar]: Uninitialized variable: cachePtr
# 266| Tcl_Obj *keyPtr, *valuePtr = NULL;
# 267|
# 268|-> TclNewLiteralStringObj(keyPtr, "-errorinfo");
# 269| Tcl_IncrRefCount(keyPtr);
# 270| Tcl_DictObjGet(NULL, options, keyPtr, &valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def973]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:268: error[uninitvar]: Uninitialized variable: keyPtr
# 266| Tcl_Obj *keyPtr, *valuePtr = NULL;
# 267|
# 268|-> TclNewLiteralStringObj(keyPtr, "-errorinfo");
# 269| Tcl_IncrRefCount(keyPtr);
# 270| Tcl_DictObjGet(NULL, options, keyPtr, &valuePtr);
Error: CPPCHECK_WARNING (CWE-476): [#def974]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:330: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 328| */
# 329|
# 330|-> TclNewLiteralStringObj(keyPtr, "-level");
# 331| Tcl_IncrRefCount(keyPtr);
# 332| result = Tcl_DictObjGet(NULL, objv[2], keyPtr, &valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def975]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:330: error[uninitvar]: Uninitialized variable: cachePtr
# 328| */
# 329|
# 330|-> TclNewLiteralStringObj(keyPtr, "-level");
# 331| Tcl_IncrRefCount(keyPtr);
# 332| result = Tcl_DictObjGet(NULL, objv[2], keyPtr, &valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def976]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:330: error[uninitvar]: Uninitialized variable: keyPtr
# 328| */
# 329|
# 330|-> TclNewLiteralStringObj(keyPtr, "-level");
# 331| Tcl_IncrRefCount(keyPtr);
# 332| result = Tcl_DictObjGet(NULL, objv[2], keyPtr, &valuePtr);
Error: CPPCHECK_WARNING (CWE-476): [#def977]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:343: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 341| return TCL_ERROR;
# 342| }
# 343|-> TclNewLiteralStringObj(keyPtr, "-code");
# 344| Tcl_IncrRefCount(keyPtr);
# 345| result = Tcl_DictObjGet(NULL, objv[2], keyPtr, &valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def978]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:343: error[uninitvar]: Uninitialized variable: (keyPtr)->internalRep.twoPtrValue.ptr1
# 341| return TCL_ERROR;
# 342| }
# 343|-> TclNewLiteralStringObj(keyPtr, "-code");
# 344| Tcl_IncrRefCount(keyPtr);
# 345| result = Tcl_DictObjGet(NULL, objv[2], keyPtr, &valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def979]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:343: error[uninitvar]: Uninitialized variable: cachePtr
# 341| return TCL_ERROR;
# 342| }
# 343|-> TclNewLiteralStringObj(keyPtr, "-code");
# 344| Tcl_IncrRefCount(keyPtr);
# 345| result = Tcl_DictObjGet(NULL, objv[2], keyPtr, &valuePtr);
Error: CPPCHECK_WARNING (CWE-476): [#def980]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:378: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 376| */
# 377|
# 378|-> TclNewLiteralStringObj(tempObjv[0], "bgerror");
# 379| Tcl_IncrRefCount(tempObjv[0]);
# 380|
Error: CPPCHECK_WARNING (CWE-457): [#def981]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:378: error[uninitvar]: Uninitialized variable: (tempObjv[0])->internalRep.twoPtrValue.ptr1
# 376| */
# 377|
# 378|-> TclNewLiteralStringObj(tempObjv[0], "bgerror");
# 379| Tcl_IncrRefCount(tempObjv[0]);
# 380|
Error: CPPCHECK_WARNING (CWE-457): [#def982]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:378: error[uninitvar]: Uninitialized variable: cachePtr
# 376| */
# 377|
# 378|-> TclNewLiteralStringObj(tempObjv[0], "bgerror");
# 379| Tcl_IncrRefCount(tempObjv[0]);
# 380|
Error: CPPCHECK_WARNING (CWE-476): [#def983]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:391: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 389| break;
# 390| case TCL_BREAK:
# 391|-> TclNewLiteralStringObj(tempObjv[1],
# 392| "invoked \"break\" outside of a loop");
# 393| break;
Error: CPPCHECK_WARNING (CWE-457): [#def984]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:391: error[uninitvar]: Uninitialized variable: cachePtr
# 389| break;
# 390| case TCL_BREAK:
# 391|-> TclNewLiteralStringObj(tempObjv[1],
# 392| "invoked \"break\" outside of a loop");
# 393| break;
Error: CPPCHECK_WARNING (CWE-476): [#def985]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:395: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 393| break;
# 394| case TCL_CONTINUE:
# 395|-> TclNewLiteralStringObj(tempObjv[1],
# 396| "invoked \"continue\" outside of a loop");
# 397| break;
Error: CPPCHECK_WARNING (CWE-457): [#def986]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:395: error[uninitvar]: Uninitialized variable: cachePtr
# 393| break;
# 394| case TCL_CONTINUE:
# 395|-> TclNewLiteralStringObj(tempObjv[1],
# 396| "invoked \"continue\" outside of a loop");
# 397| break;
Error: CPPCHECK_WARNING (CWE-476): [#def987]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:408: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 406| }
# 407|
# 408|-> TclNewLiteralStringObj(keyPtr, "-errorcode");
# 409| Tcl_IncrRefCount(keyPtr);
# 410| result = Tcl_DictObjGet(NULL, objv[2], keyPtr, &valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def988]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:408: error[uninitvar]: Uninitialized variable: cachePtr
# 406| }
# 407|
# 408|-> TclNewLiteralStringObj(keyPtr, "-errorcode");
# 409| Tcl_IncrRefCount(keyPtr);
# 410| result = Tcl_DictObjGet(NULL, objv[2], keyPtr, &valuePtr);
Error: CPPCHECK_WARNING (CWE-476): [#def989]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:416: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 414| }
# 415|
# 416|-> TclNewLiteralStringObj(keyPtr, "-errorinfo");
# 417| Tcl_IncrRefCount(keyPtr);
# 418| result = Tcl_DictObjGet(NULL, objv[2], keyPtr, &valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def990]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:416: error[uninitvar]: Uninitialized variable: cachePtr
# 414| }
# 415|
# 416|-> TclNewLiteralStringObj(keyPtr, "-errorinfo");
# 417| Tcl_IncrRefCount(keyPtr);
# 418| result = Tcl_DictObjGet(NULL, objv[2], keyPtr, &valuePtr);
Error: CPPCHECK_WARNING (CWE-476): [#def991]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:568: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 566| Tcl_Obj *bgerrorObj;
# 567|
# 568|-> TclNewLiteralStringObj(bgerrorObj, "::tcl::Bgerror");
# 569| TclSetBgErrorHandler(interp, bgerrorObj);
# 570| assocPtr = (ErrAssocData *)Tcl_GetAssocData(interp, "tclBgError", NULL);
Error: CPPCHECK_WARNING (CWE-457): [#def992]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:568: error[uninitvar]: Uninitialized variable: bgerrorObj
# 566| Tcl_Obj *bgerrorObj;
# 567|
# 568|-> TclNewLiteralStringObj(bgerrorObj, "::tcl::Bgerror");
# 569| TclSetBgErrorHandler(interp, bgerrorObj);
# 570| assocPtr = (ErrAssocData *)Tcl_GetAssocData(interp, "tclBgError", NULL);
Error: CPPCHECK_WARNING (CWE-457): [#def993]
tcl-8.6.14-build/tcl8.6.14/generic/tclEvent.c:568: error[uninitvar]: Uninitialized variable: cachePtr
# 566| Tcl_Obj *bgerrorObj;
# 567|
# 568|-> TclNewLiteralStringObj(bgerrorObj, "::tcl::Bgerror");
# 569| TclSetBgErrorHandler(interp, bgerrorObj);
# 570| assocPtr = (ErrAssocData *)Tcl_GetAssocData(interp, "tclBgError", NULL);
Error: CPPCHECK_WARNING: [#def994]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-457): [#def995]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c: scope_hint: In function ‘TEBCresume’
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:482:16: warning[-Wmaybe-uninitialized]: ‘curInstName’ may be used uninitialized
# 482 | if (curInstName) { \
# | ^
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2141:17: note: ‘curInstName’ was declared here
# 2141 | const char *curInstName;
# | ^~~~~~~~~~~
# 480| do { \
# 481| if (TCL_DTRACE_INST_DONE_ENABLED()) { \
# 482|-> if (curInstName) { \
# 483| TCL_DTRACE_INST_DONE(curInstName, (int) CURR_DEPTH, \
# 484| tosPtr); \
Error: CPPCHECK_WARNING (CWE-476): [#def996]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:844: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 842|
# 843| dictPtr = (Tcl_Obj *)objPtr->internalRep.twoPtrValue.ptr2;
# 844|-> TclDecrRefCount(dictPtr);
# 845|
# 846| objPtr->typePtr = NULL;
Error: CPPCHECK_WARNING (CWE-457): [#def997]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:844: error[uninitvar]: Uninitialized variable: cachePtr
# 842|
# 843| dictPtr = (Tcl_Obj *)objPtr->internalRep.twoPtrValue.ptr2;
# 844|-> TclDecrRefCount(dictPtr);
# 845|
# 846| objPtr->typePtr = NULL;
Error: CPPCHECK_WARNING (CWE-476): [#def998]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:921: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 919|
# 920| eePtr->execStackPtr = esPtr;
# 921|-> TclNewBooleanObj(eePtr->constants[0], 0);
# 922| Tcl_IncrRefCount(eePtr->constants[0]);
# 923| TclNewBooleanObj(eePtr->constants[1], 1);
Error: CPPCHECK_WARNING (CWE-457): [#def999]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:921: error[uninitvar]: Uninitialized variable: (eePtr->constants[0])->internalRep.twoPtrValue.ptr1
# 919|
# 920| eePtr->execStackPtr = esPtr;
# 921|-> TclNewBooleanObj(eePtr->constants[0], 0);
# 922| Tcl_IncrRefCount(eePtr->constants[0]);
# 923| TclNewBooleanObj(eePtr->constants[1], 1);
Error: CPPCHECK_WARNING (CWE-457): [#def1000]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:921: error[uninitvar]: Uninitialized variable: cachePtr
# 919|
# 920| eePtr->execStackPtr = esPtr;
# 921|-> TclNewBooleanObj(eePtr->constants[0], 0);
# 922| Tcl_IncrRefCount(eePtr->constants[0]);
# 923| TclNewBooleanObj(eePtr->constants[1], 1);
Error: CPPCHECK_WARNING (CWE-476): [#def1001]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:923: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 921| TclNewBooleanObj(eePtr->constants[0], 0);
# 922| Tcl_IncrRefCount(eePtr->constants[0]);
# 923|-> TclNewBooleanObj(eePtr->constants[1], 1);
# 924| Tcl_IncrRefCount(eePtr->constants[1]);
# 925| eePtr->interp = interp;
Error: CPPCHECK_WARNING (CWE-457): [#def1002]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:923: error[uninitvar]: Uninitialized variable: cachePtr
# 921| TclNewBooleanObj(eePtr->constants[0], 0);
# 922| Tcl_IncrRefCount(eePtr->constants[0]);
# 923|-> TclNewBooleanObj(eePtr->constants[1], 1);
# 924| Tcl_IncrRefCount(eePtr->constants[1]);
# 925| eePtr->interp = interp;
Error: CPPCHECK_WARNING (CWE-476): [#def1003]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:1001: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 999| }
# 1000|
# 1001|-> TclDecrRefCount(eePtr->constants[0]);
# 1002| TclDecrRefCount(eePtr->constants[1]);
# 1003| if (eePtr->callbackPtr && !cachedInExit) {
Error: CPPCHECK_WARNING (CWE-457): [#def1004]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:1001: error[uninitvar]: Uninitialized variable: cachePtr
# 999| }
# 1000|
# 1001|-> TclDecrRefCount(eePtr->constants[0]);
# 1002| TclDecrRefCount(eePtr->constants[1]);
# 1003| if (eePtr->callbackPtr && !cachedInExit) {
Error: CPPCHECK_WARNING (CWE-476): [#def1005]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:1002: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1000|
# 1001| TclDecrRefCount(eePtr->constants[0]);
# 1002|-> TclDecrRefCount(eePtr->constants[1]);
# 1003| if (eePtr->callbackPtr && !cachedInExit) {
# 1004| Tcl_Panic("Deleting execEnv with pending TEOV callbacks!");
Error: CPPCHECK_WARNING (CWE-457): [#def1006]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:1002: error[uninitvar]: Uninitialized variable: cachePtr
# 1000|
# 1001| TclDecrRefCount(eePtr->constants[0]);
# 1002|-> TclDecrRefCount(eePtr->constants[1]);
# 1003| if (eePtr->callbackPtr && !cachedInExit) {
# 1004| Tcl_Panic("Deleting execEnv with pending TEOV callbacks!");
Error: CPPCHECK_WARNING (CWE-476): [#def1007]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:1418: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1416| Tcl_Obj *resultPtr;
# 1417|
# 1418|-> TclNewObj(resultPtr);
# 1419| TclNRAddCallback(interp, CopyCallback, resultPtrPtr, resultPtr,
# 1420| NULL, NULL);
Error: CPPCHECK_WARNING (CWE-457): [#def1008]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:1418: error[uninitvar]: Uninitialized variable: cachePtr
# 1416| Tcl_Obj *resultPtr;
# 1417|
# 1418|-> TclNewObj(resultPtr);
# 1419| TclNRAddCallback(interp, CopyCallback, resultPtrPtr, resultPtr,
# 1420| NULL, NULL);
Error: CPPCHECK_WARNING (CWE-457): [#def1009]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:1418: error[uninitvar]: Uninitialized variable: resultPtr
# 1416| Tcl_Obj *resultPtr;
# 1417|
# 1418|-> TclNewObj(resultPtr);
# 1419| TclNRAddCallback(interp, CopyCallback, resultPtrPtr, resultPtr,
# 1420| NULL, NULL);
Error: CPPCHECK_WARNING (CWE-457): [#def1010]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:1881: error[legacyUninitvar]: Uninitialized variable: *(&ptr1)
# 1879| }
# 1880|
# 1881|-> if (GetNumberFromObj(NULL, valuePtr, &ptr1, &type1) != TCL_OK) {
# 1882| /*
# 1883| * Produce error message (reparse?!)
Error: CPPCHECK_WARNING (CWE-457): [#def1011]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:1888: error[legacyUninitvar]: Uninitialized variable: *(&ptr2)
# 1886| return TclGetIntFromObj(interp, valuePtr, &type1);
# 1887| }
# 1888|-> if (GetNumberFromObj(NULL, incrPtr, &ptr2, &type2) != TCL_OK) {
# 1889| /*
# 1890| * Produce error message (reparse?!)
Error: CPPCHECK_WARNING (CWE-476): [#def1012]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2227: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2225| objPtr = iPtr->objResultPtr;
# 2226| if (objPtr->refCount > 1) {
# 2227|-> TclDecrRefCount(objPtr);
# 2228| TclNewObj(objPtr);
# 2229| Tcl_IncrRefCount(objPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1013]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2227: error[uninitvar]: Uninitialized variable: cachePtr
# 2225| objPtr = iPtr->objResultPtr;
# 2226| if (objPtr->refCount > 1) {
# 2227|-> TclDecrRefCount(objPtr);
# 2228| TclNewObj(objPtr);
# 2229| Tcl_IncrRefCount(objPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1014]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2228: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2226| if (objPtr->refCount > 1) {
# 2227| TclDecrRefCount(objPtr);
# 2228|-> TclNewObj(objPtr);
# 2229| Tcl_IncrRefCount(objPtr);
# 2230| iPtr->objResultPtr = objPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1015]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2228: error[uninitvar]: Uninitialized variable: cachePtr
# 2226| if (objPtr->refCount > 1) {
# 2227| TclDecrRefCount(objPtr);
# 2228|-> TclNewObj(objPtr);
# 2229| Tcl_IncrRefCount(objPtr);
# 2230| iPtr->objResultPtr = objPtr;
Error: CPPCHECK_WARNING (CWE-476): [#def1016]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2283: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2281|
# 2282| objResultPtr = Tcl_GetObjResult(interp);
# 2283|-> TclNewObj(objPtr);
# 2284| Tcl_IncrRefCount(objPtr);
# 2285| iPtr->objResultPtr = objPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1017]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2283: error[uninitvar]: Uninitialized variable: cachePtr
# 2281|
# 2282| objResultPtr = Tcl_GetObjResult(interp);
# 2283|-> TclNewObj(objPtr);
# 2284| Tcl_IncrRefCount(objPtr);
# 2285| iPtr->objResultPtr = objPtr;
Error: CPPCHECK_WARNING (CWE-476): [#def1018]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2288: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2286| #ifndef TCL_COMPILE_DEBUG
# 2287| if (*pc == INST_POP) {
# 2288|-> TclDecrRefCount(objResultPtr);
# 2289| NEXT_INST_V(1, cleanup, 0);
# 2290| }
Error: CPPCHECK_WARNING (CWE-457): [#def1019]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2288: error[uninitvar]: Uninitialized variable: cachePtr
# 2286| #ifndef TCL_COMPILE_DEBUG
# 2287| if (*pc == INST_POP) {
# 2288|-> TclDecrRefCount(objResultPtr);
# 2289| NEXT_INST_V(1, cleanup, 0);
# 2290| }
Error: CPPCHECK_WARNING (CWE-476): [#def1020]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2313: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2311| while (cleanup--) {
# 2312| objPtr = POP_OBJECT();
# 2313|-> TclDecrRefCount(objPtr);
# 2314| }
# 2315| /* FALLTHRU */
Error: CPPCHECK_WARNING (CWE-457): [#def1021]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2313: error[uninitvar]: Uninitialized variable: cachePtr
# 2311| while (cleanup--) {
# 2312| objPtr = POP_OBJECT();
# 2313|-> TclDecrRefCount(objPtr);
# 2314| }
# 2315| /* FALLTHRU */
Error: CPPCHECK_WARNING (CWE-476): [#def1022]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2319: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2317| cleanup2_pushObjResultPtr:
# 2318| objPtr = POP_OBJECT();
# 2319|-> TclDecrRefCount(objPtr);
# 2320| /* FALLTHRU */
# 2321| case 1:
Error: CPPCHECK_WARNING (CWE-457): [#def1023]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2319: error[uninitvar]: Uninitialized variable: cachePtr
# 2317| cleanup2_pushObjResultPtr:
# 2318| objPtr = POP_OBJECT();
# 2319|-> TclDecrRefCount(objPtr);
# 2320| /* FALLTHRU */
# 2321| case 1:
Error: CPPCHECK_WARNING (CWE-476): [#def1024]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2324: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2322| cleanup1_pushObjResultPtr:
# 2323| objPtr = OBJ_AT_TOS;
# 2324|-> TclDecrRefCount(objPtr);
# 2325| }
# 2326| OBJ_AT_TOS = objResultPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1025]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2324: error[uninitvar]: Uninitialized variable: cachePtr
# 2322| cleanup1_pushObjResultPtr:
# 2323| objPtr = OBJ_AT_TOS;
# 2324|-> TclDecrRefCount(objPtr);
# 2325| }
# 2326| OBJ_AT_TOS = objResultPtr;
Error: CPPCHECK_WARNING (CWE-476): [#def1026]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2335: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2333| while (cleanup--) {
# 2334| objPtr = POP_OBJECT();
# 2335|-> TclDecrRefCount(objPtr);
# 2336| }
# 2337| /* FALLTHRU */
Error: CPPCHECK_WARNING (CWE-457): [#def1027]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2335: error[uninitvar]: Uninitialized variable: cachePtr
# 2333| while (cleanup--) {
# 2334| objPtr = POP_OBJECT();
# 2335|-> TclDecrRefCount(objPtr);
# 2336| }
# 2337| /* FALLTHRU */
Error: CPPCHECK_WARNING (CWE-476): [#def1028]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2341: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2339| cleanup2:
# 2340| objPtr = POP_OBJECT();
# 2341|-> TclDecrRefCount(objPtr);
# 2342| /* FALLTHRU */
# 2343| case 1:
Error: CPPCHECK_WARNING (CWE-457): [#def1029]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2341: error[uninitvar]: Uninitialized variable: cachePtr
# 2339| cleanup2:
# 2340| objPtr = POP_OBJECT();
# 2341|-> TclDecrRefCount(objPtr);
# 2342| /* FALLTHRU */
# 2343| case 1:
Error: CPPCHECK_WARNING (CWE-476): [#def1030]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2346: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2344| cleanup1:
# 2345| objPtr = POP_OBJECT();
# 2346|-> TclDecrRefCount(objPtr);
# 2347| /* FALLTHRU */
# 2348| case 0:
Error: CPPCHECK_WARNING (CWE-457): [#def1031]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2346: error[uninitvar]: Uninitialized variable: cachePtr
# 2344| cleanup1:
# 2345| objPtr = POP_OBJECT();
# 2346|-> TclDecrRefCount(objPtr);
# 2347| /* FALLTHRU */
# 2348| case 0:
Error: CLANG_WARNING: [#def1032]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2418:5: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 2416| #endif /* TCL_COMPILE_DEBUG */
# 2417|
# 2418|-> TCL_DTRACE_INST_NEXT();
# 2419|
# 2420| if (inst == INST_LOAD_SCALAR1) {
Error: CPPCHECK_WARNING (CWE-476): [#def1033]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2671: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2669| TRACE_WITH_OBJ(("=> discarding "), OBJ_AT_TOS);
# 2670| objPtr = POP_OBJECT();
# 2671|-> TclDecrRefCount(objPtr);
# 2672| goto abnormalReturn;
# 2673| }
Error: CPPCHECK_WARNING (CWE-457): [#def1034]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2671: error[uninitvar]: Uninitialized variable: cachePtr
# 2669| TRACE_WITH_OBJ(("=> discarding "), OBJ_AT_TOS);
# 2670| objPtr = POP_OBJECT();
# 2671|-> TclDecrRefCount(objPtr);
# 2672| goto abnormalReturn;
# 2673| }
Error: CPPCHECK_WARNING (CWE-476): [#def1035]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2703: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2701| TRACE_WITH_OBJ(("=> discarding "), OBJ_AT_TOS);
# 2702| objPtr = POP_OBJECT();
# 2703|-> TclDecrRefCount(objPtr);
# 2704| NEXT_INST_F(1, 0, 0);
# 2705| break;
Error: CPPCHECK_WARNING (CWE-457): [#def1036]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2703: error[uninitvar]: Uninitialized variable: cachePtr
# 2701| TRACE_WITH_OBJ(("=> discarding "), OBJ_AT_TOS);
# 2702| objPtr = POP_OBJECT();
# 2703|-> TclDecrRefCount(objPtr);
# 2704| NEXT_INST_F(1, 0, 0);
# 2705| break;
Error: CPPCHECK_WARNING (CWE-476): [#def1037]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2828: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2826| {
# 2827| p = ckalloc(length + appendLen + 1);
# 2828|-> TclNewObj(objResultPtr);
# 2829| objResultPtr->bytes = p;
# 2830| objResultPtr->length = length + appendLen;
Error: CPPCHECK_WARNING (CWE-457): [#def1038]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2828: error[uninitvar]: Uninitialized variable: cachePtr
# 2826| {
# 2827| p = ckalloc(length + appendLen + 1);
# 2828|-> TclNewObj(objResultPtr);
# 2829| objResultPtr->bytes = p;
# 2830| objResultPtr->length = length + appendLen;
Error: CLANG_WARNING: [#def1039]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2847:6: warning[deadcode.DeadStores]: Value stored to 'bytes' is never read
# 2845| *p = '\0';
# 2846| } else {
# 2847|-> bytes = (char *) Tcl_GetByteArrayFromObj(objResultPtr, &length);
# 2848| if (length + appendLen < 0) {
# 2849| /* TODO: convert panic to error ? */
Error: CPPCHECK_WARNING (CWE-476): [#def1040]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2862: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2860| #endif
# 2861| {
# 2862|-> TclNewObj(objResultPtr);
# 2863| bytes = (char *) Tcl_SetByteArrayLength(objResultPtr,
# 2864| length + appendLen);
Error: CPPCHECK_WARNING (CWE-457): [#def1041]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2862: error[uninitvar]: Uninitialized variable: cachePtr
# 2860| #endif
# 2861| {
# 2862|-> TclNewObj(objResultPtr);
# 2863| bytes = (char *) Tcl_SetByteArrayLength(objResultPtr,
# 2864| length + appendLen);
Error: CPPCHECK_WARNING (CWE-476): [#def1042]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2911: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2909| */
# 2910|
# 2911|-> TclNewObj(objPtr);
# 2912| objPtr->internalRep.twoPtrValue.ptr2 = INT2PTR(CURR_DEPTH);
# 2913| objPtr->length = 0;
Error: CPPCHECK_WARNING (CWE-457): [#def1043]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:2911: error[uninitvar]: Uninitialized variable: cachePtr
# 2909| */
# 2910|
# 2911|-> TclNewObj(objPtr);
# 2912| objPtr->internalRep.twoPtrValue.ptr2 = INT2PTR(CURR_DEPTH);
# 2913| objPtr->length = 0;
Error: CPPCHECK_WARNING (CWE-476): [#def1044]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3042: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3040| */
# 3041|
# 3042|-> TclNewObj(objResultPtr);
# 3043| NEXT_INST_F(1, 0, 1);
# 3044| break;
Error: CPPCHECK_WARNING (CWE-457): [#def1045]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3042: error[uninitvar]: Uninitialized variable: cachePtr
# 3040| */
# 3041|
# 3042|-> TclNewObj(objResultPtr);
# 3043| NEXT_INST_F(1, 0, 1);
# 3044| break;
Error: CPPCHECK_WARNING (CWE-476): [#def1046]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3115: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3113| }
# 3114|
# 3115|-> TclNewLiteralStringObj(objPtr, "::tcl::mathfunc::");
# 3116| Tcl_AppendToObj(objPtr, tclBuiltinFuncTable[opnd].name, -1);
# 3117|
Error: CPPCHECK_WARNING (CWE-457): [#def1047]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3115: error[uninitvar]: Uninitialized variable: cachePtr
# 3113| }
# 3114|
# 3115|-> TclNewLiteralStringObj(objPtr, "::tcl::mathfunc::");
# 3116| Tcl_AppendToObj(objPtr, tclBuiltinFuncTable[opnd].name, -1);
# 3117|
Error: CPPCHECK_WARNING (CWE-476): [#def1048]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3159: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3157|
# 3158| objPtr = OBJ_AT_DEPTH(objc-1);
# 3159|-> TclNewLiteralStringObj(tmpPtr, "::tcl::mathfunc::");
# 3160| Tcl_AppendObjToObj(tmpPtr, objPtr);
# 3161| Tcl_DecrRefCount(objPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1049]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3159: error[uninitvar]: Uninitialized variable: cachePtr
# 3157|
# 3158| objPtr = OBJ_AT_DEPTH(objc-1);
# 3159|-> TclNewLiteralStringObj(tmpPtr, "::tcl::mathfunc::");
# 3160| Tcl_AppendObjToObj(tmpPtr, objPtr);
# 3161| Tcl_DecrRefCount(objPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1050]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3468: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3466| valuePtr = varPtr->value.objPtr;
# 3467| if (valuePtr != NULL) {
# 3468|-> TclDecrRefCount(valuePtr);
# 3469| }
# 3470| objResultPtr = OBJ_AT_TOS;
Error: CPPCHECK_WARNING (CWE-457): [#def1051]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3468: error[uninitvar]: Uninitialized variable: cachePtr
# 3466| valuePtr = varPtr->value.objPtr;
# 3467| if (valuePtr != NULL) {
# 3468|-> TclDecrRefCount(valuePtr);
# 3469| }
# 3470| objResultPtr = OBJ_AT_TOS;
Error: CPPCHECK_WARNING (CWE-476): [#def1052]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3729: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3727| Tcl_Obj *newValue = Tcl_DuplicateObj(objResultPtr);
# 3728|
# 3729|-> TclDecrRefCount(objResultPtr);
# 3730| varPtr->value.objPtr = objResultPtr = newValue;
# 3731| Tcl_IncrRefCount(newValue);
Error: CPPCHECK_WARNING (CWE-457): [#def1053]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3729: error[uninitvar]: Uninitialized variable: cachePtr
# 3727| Tcl_Obj *newValue = Tcl_DuplicateObj(objResultPtr);
# 3728|
# 3729|-> TclDecrRefCount(objResultPtr);
# 3730| varPtr->value.objPtr = objResultPtr = newValue;
# 3731| Tcl_IncrRefCount(newValue);
Error: CPPCHECK_WARNING (CWE-476): [#def1054]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3794: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3792| objc, objv) != TCL_OK) {
# 3793| if (createdNewObj) {
# 3794|-> TclDecrRefCount(valueToAssign);
# 3795| }
# 3796| goto errorInLappendListPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1055]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3794: error[uninitvar]: Uninitialized variable: cachePtr
# 3792| objc, objv) != TCL_OK) {
# 3793| if (createdNewObj) {
# 3794|-> TclDecrRefCount(valueToAssign);
# 3795| }
# 3796| goto errorInLappendListPtr;
Error: CPPCHECK_WARNING (CWE-476): [#def1056]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3803: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3801| objResultPtr = TclPtrSetVarIdx(interp, varPtr, arrayPtr, part1Ptr,
# 3802| part2Ptr, valueToAssign, TCL_LEAVE_ERR_MSG, opnd);
# 3803|-> TclDecrRefCount(valueToAssign);
# 3804| CACHE_STACK_INFO();
# 3805| if (!objResultPtr) {
Error: CPPCHECK_WARNING (CWE-457): [#def1057]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3803: error[uninitvar]: Uninitialized variable: cachePtr
# 3801| objResultPtr = TclPtrSetVarIdx(interp, varPtr, arrayPtr, part1Ptr,
# 3802| part2Ptr, valueToAssign, TCL_LEAVE_ERR_MSG, opnd);
# 3803|-> TclDecrRefCount(valueToAssign);
# 3804| CACHE_STACK_INFO();
# 3805| if (!objResultPtr) {
Error: CPPCHECK_WARNING (CWE-476): [#def1058]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3857: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3855| case INST_INCR_STK_IMM:
# 3856| increment = TclGetInt1AtPtr(pc+1);
# 3857|-> TclNewIntObj(incrPtr, increment);
# 3858| Tcl_IncrRefCount(incrPtr);
# 3859| pcAdjustment = 2;
Error: CPPCHECK_WARNING (CWE-457): [#def1059]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3857: error[uninitvar]: Uninitialized variable: cachePtr
# 3855| case INST_INCR_STK_IMM:
# 3856| increment = TclGetInt1AtPtr(pc+1);
# 3857|-> TclNewIntObj(incrPtr, increment);
# 3858| Tcl_IncrRefCount(incrPtr);
# 3859| pcAdjustment = 2;
Error: CPPCHECK_WARNING (CWE-476): [#def1060]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3892: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3890| opnd = TclGetUInt1AtPtr(pc+1);
# 3891| increment = TclGetInt1AtPtr(pc+2);
# 3892|-> TclNewIntObj(incrPtr, increment);
# 3893| Tcl_IncrRefCount(incrPtr);
# 3894| pcAdjustment = 3;
Error: CPPCHECK_WARNING (CWE-457): [#def1061]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3892: error[uninitvar]: Uninitialized variable: cachePtr
# 3890| opnd = TclGetUInt1AtPtr(pc+1);
# 3891| increment = TclGetInt1AtPtr(pc+2);
# 3892|-> TclNewIntObj(incrPtr, increment);
# 3893| Tcl_IncrRefCount(incrPtr);
# 3894| pcAdjustment = 3;
Error: CPPCHECK_WARNING (CWE-457): [#def1062]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3929: error[legacyUninitvar]: Uninitialized variable: *(&ptr)
# 3927|
# 3928| objPtr = varPtr->value.objPtr;
# 3929|-> if (GetNumberFromObj(NULL, objPtr, &ptr, &type) == TCL_OK) {
# 3930| if (type == TCL_NUMBER_LONG) {
# 3931| long augend = *((const long *)ptr);
Error: CPPCHECK_WARNING (CWE-476): [#def1063]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3944: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3942| if (Tcl_IsShared(objPtr)) {
# 3943| objPtr->refCount--; /* We know it's shared. */
# 3944|-> TclNewLongObj(objResultPtr, sum);
# 3945| Tcl_IncrRefCount(objResultPtr);
# 3946| varPtr->value.objPtr = objResultPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1064]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:3944: error[uninitvar]: Uninitialized variable: cachePtr
# 3942| if (Tcl_IsShared(objPtr)) {
# 3943| objPtr->refCount--; /* We know it's shared. */
# 3944|-> TclNewLongObj(objResultPtr, sum);
# 3945| Tcl_IncrRefCount(objResultPtr);
# 3946| varPtr->value.objPtr = objResultPtr;
Error: CPPCHECK_WARNING (CWE-476): [#def1065]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4017: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4015| objResultPtr = objPtr;
# 4016| }
# 4017|-> TclNewLongObj(incrPtr, increment);
# 4018| if (TclIncrObj(interp, objResultPtr, incrPtr) != TCL_OK) {
# 4019| Tcl_DecrRefCount(incrPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1066]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4017: error[uninitvar]: Uninitialized variable: cachePtr
# 4015| objResultPtr = objPtr;
# 4016| }
# 4017|-> TclNewLongObj(incrPtr, increment);
# 4018| if (TclIncrObj(interp, objResultPtr, incrPtr) != TCL_OK) {
# 4019| Tcl_DecrRefCount(incrPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1067]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4031: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4029| */
# 4030|
# 4031|-> TclNewLongObj(incrPtr, increment);
# 4032| Tcl_IncrRefCount(incrPtr);
# 4033|
Error: CPPCHECK_WARNING (CWE-457): [#def1068]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4031: error[uninitvar]: Uninitialized variable: cachePtr
# 4029| */
# 4030|
# 4031|-> TclNewLongObj(incrPtr, increment);
# 4032| Tcl_IncrRefCount(incrPtr);
# 4033|
Error: CPPCHECK_WARNING (CWE-476): [#def1069]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4180: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4178|
# 4179| TRACE_APPEND(("%d\n", found ? 1 : 0));
# 4180|-> JUMP_PEEPHOLE_V(found, pcAdjustment, cleanup);
# 4181| }
# 4182|
Error: CPPCHECK_WARNING (CWE-457): [#def1070]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4180: error[uninitvar]: Uninitialized variable: cachePtr
# 4178|
# 4179| TRACE_APPEND(("%d\n", found ? 1 : 0));
# 4180|-> JUMP_PEEPHOLE_V(found, pcAdjustment, cleanup);
# 4181| }
# 4182|
Error: CPPCHECK_WARNING (CWE-476): [#def1071]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4207: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4205|
# 4206| if (!TclIsVarUndefined(varPtr)) {
# 4207|-> TclDecrRefCount(varPtr->value.objPtr);
# 4208| } else if (flags & TCL_LEAVE_ERR_MSG) {
# 4209| goto slowUnsetScalar;
Error: CPPCHECK_WARNING (CWE-457): [#def1072]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4207: error[uninitvar]: Uninitialized variable: cachePtr
# 4205|
# 4206| if (!TclIsVarUndefined(varPtr)) {
# 4207|-> TclDecrRefCount(varPtr->value.objPtr);
# 4208| } else if (flags & TCL_LEAVE_ERR_MSG) {
# 4209| goto slowUnsetScalar;
Error: CPPCHECK_WARNING (CWE-476): [#def1073]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4245: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4243|
# 4244| if (!TclIsVarUndefined(varPtr)) {
# 4245|-> TclDecrRefCount(varPtr->value.objPtr);
# 4246| TclSetVarUndefined(varPtr);
# 4247| TclClearVarNamespaceVar(varPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1074]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4245: error[uninitvar]: Uninitialized variable: cachePtr
# 4243|
# 4244| if (!TclIsVarUndefined(varPtr)) {
# 4245|-> TclDecrRefCount(varPtr->value.objPtr);
# 4246| TclSetVarUndefined(varPtr);
# 4247| TclClearVarNamespaceVar(varPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1075]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4323: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4321| if (TclIsVarDirectUnsettable(varPtr) && !TclIsVarInHash(varPtr)) {
# 4322| if (!TclIsVarUndefined(varPtr)) {
# 4323|-> TclDecrRefCount(varPtr->value.objPtr);
# 4324| }
# 4325| varPtr->value.objPtr = NULL;
Error: CPPCHECK_WARNING (CWE-457): [#def1076]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4323: error[uninitvar]: Uninitialized variable: cachePtr
# 4321| if (TclIsVarDirectUnsettable(varPtr) && !TclIsVarInHash(varPtr)) {
# 4322| if (!TclIsVarUndefined(varPtr)) {
# 4323|-> TclDecrRefCount(varPtr->value.objPtr);
# 4324| }
# 4325| varPtr->value.objPtr = NULL;
Error: CPPCHECK_WARNING (CWE-476): [#def1077]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4711: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4709|
# 4710| if (currNsPtr == (Namespace *) TclGetGlobalNamespace(interp)) {
# 4711|-> TclNewLiteralStringObj(objResultPtr, "::");
# 4712| } else {
# 4713| TclNewStringObj(objResultPtr, currNsPtr->fullName,
Error: CPPCHECK_WARNING (CWE-457): [#def1078]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4711: error[uninitvar]: Uninitialized variable: cachePtr
# 4709|
# 4710| if (currNsPtr == (Namespace *) TclGetGlobalNamespace(interp)) {
# 4711|-> TclNewLiteralStringObj(objResultPtr, "::");
# 4712| } else {
# 4713| TclNewStringObj(objResultPtr, currNsPtr->fullName,
Error: CPPCHECK_WARNING (CWE-476): [#def1079]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4713: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4711| TclNewLiteralStringObj(objResultPtr, "::");
# 4712| } else {
# 4713|-> TclNewStringObj(objResultPtr, currNsPtr->fullName,
# 4714| strlen(currNsPtr->fullName));
# 4715| }
Error: CPPCHECK_WARNING (CWE-457): [#def1080]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4713: error[uninitvar]: Uninitialized variable: cachePtr
# 4711| TclNewLiteralStringObj(objResultPtr, "::");
# 4712| } else {
# 4713|-> TclNewStringObj(objResultPtr, currNsPtr->fullName,
# 4714| strlen(currNsPtr->fullName));
# 4715| }
Error: CPPCHECK_WARNING (CWE-476): [#def1081]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4723: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4721| CoroutineData *corPtr = iPtr->execEnvPtr->corPtr;
# 4722|
# 4723|-> TclNewObj(objResultPtr);
# 4724| if (corPtr && !(corPtr->cmdPtr->flags & CMD_IS_DELETED)) {
# 4725| Tcl_GetCommandFullName(interp, (Tcl_Command) corPtr->cmdPtr,
Error: CPPCHECK_WARNING (CWE-457): [#def1082]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4723: error[uninitvar]: Uninitialized variable: cachePtr
# 4721| CoroutineData *corPtr = iPtr->execEnvPtr->corPtr;
# 4722|
# 4723|-> TclNewObj(objResultPtr);
# 4724| if (corPtr && !(corPtr->cmdPtr->flags & CMD_IS_DELETED)) {
# 4725| Tcl_GetCommandFullName(interp, (Tcl_Command) corPtr->cmdPtr,
Error: CPPCHECK_WARNING (CWE-476): [#def1083]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4733: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4731| break;
# 4732| case INST_INFO_LEVEL_NUM:
# 4733|-> TclNewIntObj(objResultPtr, iPtr->varFramePtr->level);
# 4734| TRACE_WITH_OBJ(("=> "), objResultPtr);
# 4735| NEXT_INST_F(1, 0, 1);
Error: CPPCHECK_WARNING (CWE-457): [#def1084]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4733: error[uninitvar]: Uninitialized variable: cachePtr
# 4731| break;
# 4732| case INST_INFO_LEVEL_NUM:
# 4733|-> TclNewIntObj(objResultPtr, iPtr->varFramePtr->level);
# 4734| TRACE_WITH_OBJ(("=> "), objResultPtr);
# 4735| NEXT_INST_F(1, 0, 1);
Error: CPPCHECK_WARNING (CWE-476): [#def1085]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4773: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4771| case INST_RESOLVE_COMMAND:
# 4772| cmd = Tcl_GetCommandFromObj(interp, OBJ_AT_TOS);
# 4773|-> TclNewObj(objResultPtr);
# 4774| if (cmd != NULL) {
# 4775| Tcl_GetCommandFullName(interp, cmd, objResultPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1086]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4773: error[uninitvar]: Uninitialized variable: cachePtr
# 4771| case INST_RESOLVE_COMMAND:
# 4772| cmd = Tcl_GetCommandFromObj(interp, OBJ_AT_TOS);
# 4773|-> TclNewObj(objResultPtr);
# 4774| if (cmd != NULL) {
# 4775| Tcl_GetCommandFullName(interp, cmd, objResultPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1087]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4797: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4795| origCmd = cmd;
# 4796| }
# 4797|-> TclNewObj(objResultPtr);
# 4798| Tcl_GetCommandFullName(interp, origCmd, objResultPtr);
# 4799| TRACE_APPEND(("\"%.30s\"", O2S(OBJ_AT_TOS)));
Error: CPPCHECK_WARNING (CWE-457): [#def1088]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:4797: error[uninitvar]: Uninitialized variable: cachePtr
# 4795| origCmd = cmd;
# 4796| }
# 4797|-> TclNewObj(objResultPtr);
# 4798| Tcl_GetCommandFullName(interp, origCmd, objResultPtr);
# 4799| TRACE_APPEND(("\"%.30s\"", O2S(OBJ_AT_TOS)));
Error: CPPCHECK_WARNING (CWE-476): [#def1089]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5069: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5067| */
# 5068|
# 5069|-> TclNewStringObj(objResultPtr, oPtr->namespacePtr->fullName,
# 5070| strlen(oPtr->namespacePtr->fullName));
# 5071| TRACE_WITH_OBJ(("%.30s => ", O2S(OBJ_AT_TOS)), objResultPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1090]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5069: error[uninitvar]: Uninitialized variable: cachePtr
# 5067| */
# 5068|
# 5069|-> TclNewStringObj(objResultPtr, oPtr->namespacePtr->fullName,
# 5070| strlen(oPtr->namespacePtr->fullName));
# 5071| TRACE_WITH_OBJ(("%.30s => ", O2S(OBJ_AT_TOS)), objResultPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1091]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5103: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5101| goto gotError;
# 5102| }
# 5103|-> TclNewIntObj(objResultPtr, length);
# 5104| TRACE_APPEND(("%d\n", length));
# 5105| NEXT_INST_F(1, 1, 1);
Error: CPPCHECK_WARNING (CWE-457): [#def1092]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5103: error[uninitvar]: Uninitialized variable: cachePtr
# 5101| goto gotError;
# 5102| }
# 5103|-> TclNewIntObj(objResultPtr, length);
# 5104| TRACE_APPEND(("%d\n", length));
# 5105| NEXT_INST_F(1, 1, 1);
Error: CPPCHECK_WARNING (CWE-476): [#def1093]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5120: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5118| && (TclGetIntForIndexM(NULL , value2Ptr, objc-1,
# 5119| &index) == TCL_OK)) {
# 5120|-> TclDecrRefCount(value2Ptr);
# 5121| tosPtr--;
# 5122| pcAdjustment = 1;
Error: CPPCHECK_WARNING (CWE-457): [#def1094]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5120: error[uninitvar]: Uninitialized variable: cachePtr
# 5118| && (TclGetIntForIndexM(NULL , value2Ptr, objc-1,
# 5119| &index) == TCL_OK)) {
# 5120|-> TclDecrRefCount(value2Ptr);
# 5121| tosPtr--;
# 5122| pcAdjustment = 1;
Error: CPPCHECK_WARNING (CWE-476): [#def1095]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5169: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5167| objResultPtr = objv[index];
# 5168| } else {
# 5169|-> TclNewObj(objResultPtr);
# 5170| }
# 5171|
Error: CPPCHECK_WARNING (CWE-457): [#def1096]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5169: error[uninitvar]: Uninitialized variable: cachePtr
# 5167| objResultPtr = objv[index];
# 5168| } else {
# 5169|-> TclNewObj(objResultPtr);
# 5170| }
# 5171|
Error: CPPCHECK_WARNING (CWE-476): [#def1097]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5372: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5370| } else {
# 5371| emptyList:
# 5372|-> TclNewObj(objResultPtr);
# 5373| }
# 5374|
Error: CPPCHECK_WARNING (CWE-457): [#def1098]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5372: error[uninitvar]: Uninitialized variable: cachePtr
# 5370| } else {
# 5371| emptyList:
# 5372|-> TclNewObj(objResultPtr);
# 5373| }
# 5374|
Error: CPPCHECK_WARNING (CWE-476): [#def1099]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5425: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5423| */
# 5424|
# 5425|-> JUMP_PEEPHOLE_F(match, 1, 2);
# 5426|
# 5427| case INST_LIST_CONCAT:
Error: CPPCHECK_WARNING (CWE-457): [#def1100]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5425: error[uninitvar]: Uninitialized variable: cachePtr
# 5423| */
# 5424|
# 5425|-> JUMP_PEEPHOLE_F(match, 1, 2);
# 5426|
# 5427| case INST_LIST_CONCAT:
Error: CPPCHECK_WARNING (CWE-476): [#def1101]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5436: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5434| value2Ptr) != TCL_OK) {
# 5435| TRACE_ERROR(interp);
# 5436|-> TclDecrRefCount(objResultPtr);
# 5437| goto gotError;
# 5438| }
Error: CPPCHECK_WARNING (CWE-457): [#def1102]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5436: error[uninitvar]: Uninitialized variable: cachePtr
# 5434| value2Ptr) != TCL_OK) {
# 5435| TRACE_ERROR(interp);
# 5436|-> TclDecrRefCount(objResultPtr);
# 5437| goto gotError;
# 5438| }
Error: CPPCHECK_WARNING (CWE-476): [#def1103]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5505: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5503| TRACE(("\"%.20s\" \"%.20s\" => %d\n", O2S(valuePtr), O2S(value2Ptr),
# 5504| (match < 0 ? -1 : match > 0 ? 1 : 0)));
# 5505|-> JUMP_PEEPHOLE_F(match, 1, 2);
# 5506|
# 5507| case INST_STR_LEN:
Error: CPPCHECK_WARNING (CWE-457): [#def1104]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5505: error[uninitvar]: Uninitialized variable: cachePtr
# 5503| TRACE(("\"%.20s\" \"%.20s\" => %d\n", O2S(valuePtr), O2S(value2Ptr),
# 5504| (match < 0 ? -1 : match > 0 ? 1 : 0)));
# 5505|-> JUMP_PEEPHOLE_F(match, 1, 2);
# 5506|
# 5507| case INST_STR_LEN:
Error: CPPCHECK_WARNING (CWE-476): [#def1105]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5510: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5508| valuePtr = OBJ_AT_TOS;
# 5509| length = Tcl_GetCharLength(valuePtr);
# 5510|-> TclNewIntObj(objResultPtr, length);
# 5511| TRACE(("\"%.20s\" => %d\n", O2S(valuePtr), length));
# 5512| NEXT_INST_F(1, 1, 1);
Error: CPPCHECK_WARNING (CWE-457): [#def1106]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5510: error[uninitvar]: Uninitialized variable: cachePtr
# 5508| valuePtr = OBJ_AT_TOS;
# 5509| length = Tcl_GetCharLength(valuePtr);
# 5510|-> TclNewIntObj(objResultPtr, length);
# 5511| TRACE(("\"%.20s\" => %d\n", O2S(valuePtr), length));
# 5512| NEXT_INST_F(1, 1, 1);
Error: CPPCHECK_WARNING (CWE-476): [#def1107]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5519: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5517| if (Tcl_IsShared(valuePtr)) {
# 5518| s1 = TclGetStringFromObj(valuePtr, &length);
# 5519|-> TclNewStringObj(objResultPtr, s1, length);
# 5520| length = Tcl_UtfToUpper(TclGetString(objResultPtr));
# 5521| Tcl_SetObjLength(objResultPtr, length);
Error: CPPCHECK_WARNING (CWE-457): [#def1108]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5519: error[uninitvar]: Uninitialized variable: cachePtr
# 5517| if (Tcl_IsShared(valuePtr)) {
# 5518| s1 = TclGetStringFromObj(valuePtr, &length);
# 5519|-> TclNewStringObj(objResultPtr, s1, length);
# 5520| length = Tcl_UtfToUpper(TclGetString(objResultPtr));
# 5521| Tcl_SetObjLength(objResultPtr, length);
Error: CPPCHECK_WARNING (CWE-476): [#def1109]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5536: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5534| if (Tcl_IsShared(valuePtr)) {
# 5535| s1 = TclGetStringFromObj(valuePtr, &length);
# 5536|-> TclNewStringObj(objResultPtr, s1, length);
# 5537| length = Tcl_UtfToLower(TclGetString(objResultPtr));
# 5538| Tcl_SetObjLength(objResultPtr, length);
Error: CPPCHECK_WARNING (CWE-457): [#def1110]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5536: error[uninitvar]: Uninitialized variable: cachePtr
# 5534| if (Tcl_IsShared(valuePtr)) {
# 5535| s1 = TclGetStringFromObj(valuePtr, &length);
# 5536|-> TclNewStringObj(objResultPtr, s1, length);
# 5537| length = Tcl_UtfToLower(TclGetString(objResultPtr));
# 5538| Tcl_SetObjLength(objResultPtr, length);
Error: CPPCHECK_WARNING (CWE-476): [#def1111]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5553: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5551| if (Tcl_IsShared(valuePtr)) {
# 5552| s1 = TclGetStringFromObj(valuePtr, &length);
# 5553|-> TclNewStringObj(objResultPtr, s1, length);
# 5554| length = Tcl_UtfToTitle(TclGetString(objResultPtr));
# 5555| Tcl_SetObjLength(objResultPtr, length);
Error: CPPCHECK_WARNING (CWE-457): [#def1112]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5553: error[uninitvar]: Uninitialized variable: cachePtr
# 5551| if (Tcl_IsShared(valuePtr)) {
# 5552| s1 = TclGetStringFromObj(valuePtr, &length);
# 5553|-> TclNewStringObj(objResultPtr, s1, length);
# 5554| length = Tcl_UtfToTitle(TclGetString(objResultPtr));
# 5555| Tcl_SetObjLength(objResultPtr, length);
Error: CPPCHECK_WARNING (CWE-476): [#def1113]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5582: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5580|
# 5581| if ((index < 0) || (index >= length)) {
# 5582|-> TclNewObj(objResultPtr);
# 5583| } else if (TclIsPureByteArray(valuePtr)) {
# 5584| objResultPtr = Tcl_NewByteArrayObj(
Error: CPPCHECK_WARNING (CWE-457): [#def1114]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5582: error[uninitvar]: Uninitialized variable: cachePtr
# 5580|
# 5581| if ((index < 0) || (index >= length)) {
# 5582|-> TclNewObj(objResultPtr);
# 5583| } else if (TclIsPureByteArray(valuePtr)) {
# 5584| objResultPtr = Tcl_NewByteArrayObj(
Error: CPPCHECK_WARNING (CWE-476): [#def1115]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5621: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5619| objResultPtr = Tcl_GetRange(OBJ_AT_DEPTH(2), fromIdx, toIdx);
# 5620| } else {
# 5621|-> TclNewObj(objResultPtr);
# 5622| }
# 5623| TRACE_APPEND(("\"%.30s\"\n", O2S(objResultPtr)));
Error: CPPCHECK_WARNING (CWE-457): [#def1116]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5621: error[uninitvar]: Uninitialized variable: cachePtr
# 5619| objResultPtr = Tcl_GetRange(OBJ_AT_DEPTH(2), fromIdx, toIdx);
# 5620| } else {
# 5621|-> TclNewObj(objResultPtr);
# 5622| }
# 5623| TRACE_APPEND(("\"%.30s\"\n", O2S(objResultPtr)));
Error: CPPCHECK_WARNING (CWE-476): [#def1117]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5685: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5683| } else {
# 5684| emptyRange:
# 5685|-> TclNewObj(objResultPtr);
# 5686| }
# 5687| TRACE_APPEND(("%.30s\n", O2S(objResultPtr)));
Error: CPPCHECK_WARNING (CWE-457): [#def1118]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5685: error[uninitvar]: Uninitialized variable: cachePtr
# 5683| } else {
# 5684| emptyRange:
# 5685|-> TclNewObj(objResultPtr);
# 5686| }
# 5687| TRACE_APPEND(("%.30s\n", O2S(objResultPtr)));
Error: CPPCHECK_WARNING (CWE-476): [#def1119]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5705: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5703| || TclGetIntForIndexM(interp, OBJ_AT_TOS, endIdx,
# 5704| &toIdx) != TCL_OK) {
# 5705|-> TclDecrRefCount(value3Ptr);
# 5706| TRACE_ERROR(interp);
# 5707| goto gotError;
Error: CPPCHECK_WARNING (CWE-457): [#def1120]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5705: error[uninitvar]: Uninitialized variable: cachePtr
# 5703| || TclGetIntForIndexM(interp, OBJ_AT_TOS, endIdx,
# 5704| &toIdx) != TCL_OK) {
# 5705|-> TclDecrRefCount(value3Ptr);
# 5706| TRACE_ERROR(interp);
# 5707| goto gotError;
Error: CPPCHECK_WARNING (CWE-476): [#def1121]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5709: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5707| goto gotError;
# 5708| }
# 5709|-> TclDecrRefCount(OBJ_AT_TOS);
# 5710| (void) POP_OBJECT();
# 5711| TclDecrRefCount(OBJ_AT_TOS);
Error: CPPCHECK_WARNING (CWE-457): [#def1122]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5709: error[uninitvar]: Uninitialized variable: cachePtr
# 5707| goto gotError;
# 5708| }
# 5709|-> TclDecrRefCount(OBJ_AT_TOS);
# 5710| (void) POP_OBJECT();
# 5711| TclDecrRefCount(OBJ_AT_TOS);
Error: CPPCHECK_WARNING (CWE-476): [#def1123]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5711: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5709| TclDecrRefCount(OBJ_AT_TOS);
# 5710| (void) POP_OBJECT();
# 5711|-> TclDecrRefCount(OBJ_AT_TOS);
# 5712| (void) POP_OBJECT();
# 5713|
Error: CPPCHECK_WARNING (CWE-457): [#def1124]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5711: error[uninitvar]: Uninitialized variable: cachePtr
# 5709| TclDecrRefCount(OBJ_AT_TOS);
# 5710| (void) POP_OBJECT();
# 5711|-> TclDecrRefCount(OBJ_AT_TOS);
# 5712| (void) POP_OBJECT();
# 5713|
Error: CPPCHECK_WARNING (CWE-476): [#def1125]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5718: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5716| (toIdx < fromIdx)) {
# 5717| TRACE_APPEND(("\"%.30s\"\n", O2S(valuePtr)));
# 5718|-> TclDecrRefCount(value3Ptr);
# 5719| NEXT_INST_F(1, 0, 0);
# 5720| }
Error: CPPCHECK_WARNING (CWE-457): [#def1126]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5718: error[uninitvar]: Uninitialized variable: cachePtr
# 5716| (toIdx < fromIdx)) {
# 5717| TRACE_APPEND(("\"%.30s\"\n", O2S(valuePtr)));
# 5718|-> TclDecrRefCount(value3Ptr);
# 5719| NEXT_INST_F(1, 0, 0);
# 5720| }
Error: CPPCHECK_WARNING (CWE-476): [#def1127]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5731: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5729|
# 5730| if (fromIdx == 0 && toIdx == endIdx) {
# 5731|-> TclDecrRefCount(OBJ_AT_TOS);
# 5732| OBJ_AT_TOS = value3Ptr;
# 5733| TRACE_APPEND(("\"%.30s\"\n", O2S(value3Ptr)));
Error: CPPCHECK_WARNING (CWE-457): [#def1128]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5731: error[uninitvar]: Uninitialized variable: cachePtr
# 5729|
# 5730| if (fromIdx == 0 && toIdx == endIdx) {
# 5731|-> TclDecrRefCount(OBJ_AT_TOS);
# 5732| OBJ_AT_TOS = value3Ptr;
# 5733| TRACE_APPEND(("\"%.30s\"\n", O2S(value3Ptr)));
Error: CPPCHECK_WARNING (CWE-476): [#def1129]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5765: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5763| }
# 5764| Tcl_InvalidateStringRep(objResultPtr);
# 5765|-> TclDecrRefCount(value3Ptr);
# 5766| TRACE_APPEND(("\"%.30s\"\n", O2S(objResultPtr)));
# 5767| if (objResultPtr == valuePtr) {
Error: CPPCHECK_WARNING (CWE-457): [#def1130]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5765: error[uninitvar]: Uninitialized variable: cachePtr
# 5763| }
# 5764| Tcl_InvalidateStringRep(objResultPtr);
# 5765|-> TclDecrRefCount(value3Ptr);
# 5766| TRACE_APPEND(("\"%.30s\"\n", O2S(objResultPtr)));
# 5767| if (objResultPtr == valuePtr) {
Error: CPPCHECK_WARNING (CWE-476): [#def1131]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5815: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5813| if (objResultPtr == value3Ptr) {
# 5814| /* See [Bug 82e7f67325] */
# 5815|-> TclDecrRefCount(OBJ_AT_TOS);
# 5816| OBJ_AT_TOS = value3Ptr;
# 5817| TRACE_APPEND(("\"%.30s\"\n", O2S(value3Ptr)));
Error: CPPCHECK_WARNING (CWE-457): [#def1132]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5815: error[uninitvar]: Uninitialized variable: cachePtr
# 5813| if (objResultPtr == value3Ptr) {
# 5814| /* See [Bug 82e7f67325] */
# 5815|-> TclDecrRefCount(OBJ_AT_TOS);
# 5816| OBJ_AT_TOS = value3Ptr;
# 5817| TRACE_APPEND(("\"%.30s\"\n", O2S(value3Ptr)));
Error: CPPCHECK_WARNING (CWE-476): [#def1133]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5820: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5818| NEXT_INST_F(1, 0, 0);
# 5819| }
# 5820|-> TclDecrRefCount(value3Ptr);
# 5821| TRACE_APPEND(("\"%.30s\"\n", O2S(objResultPtr)));
# 5822| NEXT_INST_F(1, 1, 1);
Error: CPPCHECK_WARNING (CWE-457): [#def1134]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5820: error[uninitvar]: Uninitialized variable: cachePtr
# 5818| NEXT_INST_F(1, 0, 0);
# 5819| }
# 5820|-> TclDecrRefCount(value3Ptr);
# 5821| TRACE_APPEND(("\"%.30s\"\n", O2S(objResultPtr)));
# 5822| NEXT_INST_F(1, 1, 1);
Error: CPPCHECK_WARNING (CWE-476): [#def1135]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5904: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5902| TRACE(("%.20s %.20s => %d\n",
# 5903| O2S(OBJ_UNDER_TOS), O2S(OBJ_AT_TOS), match));
# 5904|-> TclNewIntObj(objResultPtr, match);
# 5905| NEXT_INST_F(1, 2, 1);
# 5906|
Error: CPPCHECK_WARNING (CWE-457): [#def1136]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5904: error[uninitvar]: Uninitialized variable: cachePtr
# 5902| TRACE(("%.20s %.20s => %d\n",
# 5903| O2S(OBJ_UNDER_TOS), O2S(OBJ_AT_TOS), match));
# 5904|-> TclNewIntObj(objResultPtr, match);
# 5905| NEXT_INST_F(1, 2, 1);
# 5906|
Error: CPPCHECK_WARNING (CWE-476): [#def1137]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5925: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5923| O2S(OBJ_UNDER_TOS), O2S(OBJ_AT_TOS), match));
# 5924|
# 5925|-> TclNewIntObj(objResultPtr, match);
# 5926| NEXT_INST_F(1, 2, 1);
# 5927|
Error: CPPCHECK_WARNING (CWE-457): [#def1138]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5925: error[uninitvar]: Uninitialized variable: cachePtr
# 5923| O2S(OBJ_UNDER_TOS), O2S(OBJ_AT_TOS), match));
# 5924|
# 5925|-> TclNewIntObj(objResultPtr, match);
# 5926| NEXT_INST_F(1, 2, 1);
# 5927|
Error: CPPCHECK_WARNING (CWE-476): [#def1139]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5947: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5945| }
# 5946| TRACE_APPEND(("%d\n", match));
# 5947|-> JUMP_PEEPHOLE_F(match, 2, 1);
# 5948| }
# 5949|
Error: CPPCHECK_WARNING (CWE-457): [#def1140]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5947: error[uninitvar]: Uninitialized variable: cachePtr
# 5945| }
# 5946| TRACE_APPEND(("%d\n", match));
# 5947|-> JUMP_PEEPHOLE_F(match, 2, 1);
# 5948| }
# 5949|
Error: CPPCHECK_WARNING (CWE-476): [#def1141]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5990: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5988| */
# 5989|
# 5990|-> JUMP_PEEPHOLE_F(match, 2, 2);
# 5991|
# 5992| {
Error: CPPCHECK_WARNING (CWE-457): [#def1142]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:5990: error[uninitvar]: Uninitialized variable: cachePtr
# 5988| */
# 5989|
# 5990|-> JUMP_PEEPHOLE_F(match, 2, 2);
# 5991|
# 5992| {
Error: CPPCHECK_WARNING (CWE-476): [#def1143]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6083: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 6081| */
# 6082|
# 6083|-> JUMP_PEEPHOLE_F(match, 2, 2);
# 6084| }
# 6085|
Error: CPPCHECK_WARNING (CWE-457): [#def1144]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6083: error[uninitvar]: Uninitialized variable: cachePtr
# 6081| */
# 6082|
# 6083|-> JUMP_PEEPHOLE_F(match, 2, 2);
# 6084| }
# 6085|
Error: CPPCHECK_WARNING (CWE-457): [#def1145]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6098: error[legacyUninitvar]: Uninitialized variable: *(&ptr1)
# 6096|
# 6097| case INST_NUM_TYPE:
# 6098|-> if (GetNumberFromObj(NULL, OBJ_AT_TOS, &ptr1, &type1) != TCL_OK) {
# 6099| type1 = 0;
# 6100| } else if (type1 == TCL_NUMBER_LONG) {
Error: CPPCHECK_WARNING (CWE-476): [#def1146]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6126: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 6124| }
# 6125| }
# 6126|-> TclNewIntObj(objResultPtr, type1);
# 6127| TRACE(("\"%.20s\" => %d\n", O2S(OBJ_AT_TOS), type1));
# 6128| NEXT_INST_F(1, 1, 1);
Error: CPPCHECK_WARNING (CWE-457): [#def1147]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6126: error[uninitvar]: Uninitialized variable: cachePtr
# 6124| }
# 6125| }
# 6126|-> TclNewIntObj(objResultPtr, type1);
# 6127| TRACE(("\"%.20s\" => %d\n", O2S(OBJ_AT_TOS), type1));
# 6128| NEXT_INST_F(1, 1, 1);
Error: CPPCHECK_WARNING (CWE-476): [#def1148]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6210: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 6208| TRACE(("\"%.20s\" \"%.20s\" => %d\n", O2S(valuePtr), O2S(value2Ptr),
# 6209| iResult));
# 6210|-> JUMP_PEEPHOLE_F(iResult, 1, 2);
# 6211| }
# 6212|
Error: CPPCHECK_WARNING (CWE-457): [#def1149]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6210: error[uninitvar]: Uninitialized variable: cachePtr
# 6208| TRACE(("\"%.20s\" \"%.20s\" => %d\n", O2S(valuePtr), O2S(value2Ptr),
# 6209| iResult));
# 6210|-> JUMP_PEEPHOLE_F(iResult, 1, 2);
# 6211| }
# 6212|
Error: CPPCHECK_WARNING (CWE-476): [#def1150]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6329: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 6327| objResultPtr = TCONST(0);
# 6328| } else {
# 6329|-> TclNewIntObj(objResultPtr, -1);
# 6330| }
# 6331| TRACE(("%s\n", O2S(objResultPtr)));
Error: CPPCHECK_WARNING (CWE-457): [#def1151]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6329: error[uninitvar]: Uninitialized variable: cachePtr
# 6327| objResultPtr = TCONST(0);
# 6328| } else {
# 6329|-> TclNewIntObj(objResultPtr, -1);
# 6330| }
# 6331| TRACE(("%s\n", O2S(objResultPtr)));
Error: CPPCHECK_WARNING (CWE-476): [#def1152]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6411: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 6409| TRACE(("%s %s => ", O2S(valuePtr), O2S(value2Ptr)));
# 6410| if (Tcl_IsShared(valuePtr)) {
# 6411|-> TclNewLongObj(objResultPtr, lResult);
# 6412| TRACE(("%s\n", O2S(objResultPtr)));
# 6413| NEXT_INST_F(1, 2, 1);
Error: CPPCHECK_WARNING (CWE-457): [#def1153]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6411: error[uninitvar]: Uninitialized variable: cachePtr
# 6409| TRACE(("%s %s => ", O2S(valuePtr), O2S(value2Ptr)));
# 6410| if (Tcl_IsShared(valuePtr)) {
# 6411|-> TclNewLongObj(objResultPtr, lResult);
# 6412| TRACE(("%s\n", O2S(objResultPtr)));
# 6413| NEXT_INST_F(1, 2, 1);
Error: CPPCHECK_WARNING (CWE-476): [#def1154]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6657: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 6655| l1 = *((const long *) ptr1);
# 6656| if (Tcl_IsShared(valuePtr)) {
# 6657|-> TclNewLongObj(objResultPtr, ~l1);
# 6658| TRACE_APPEND(("%s\n", O2S(objResultPtr)));
# 6659| NEXT_INST_F(1, 1, 1);
Error: CPPCHECK_WARNING (CWE-457): [#def1155]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6657: error[uninitvar]: Uninitialized variable: cachePtr
# 6655| l1 = *((const long *) ptr1);
# 6656| if (Tcl_IsShared(valuePtr)) {
# 6657|-> TclNewLongObj(objResultPtr, ~l1);
# 6658| TRACE_APPEND(("%s\n", O2S(objResultPtr)));
# 6659| NEXT_INST_F(1, 1, 1);
Error: CPPCHECK_WARNING (CWE-476): [#def1156]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6696: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 6694| if (l1 != LONG_MIN) {
# 6695| if (Tcl_IsShared(valuePtr)) {
# 6696|-> TclNewLongObj(objResultPtr, -l1);
# 6697| TRACE_APPEND(("%s\n", O2S(objResultPtr)));
# 6698| NEXT_INST_F(1, 1, 1);
Error: CPPCHECK_WARNING (CWE-457): [#def1157]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6696: error[uninitvar]: Uninitialized variable: cachePtr
# 6694| if (l1 != LONG_MIN) {
# 6695| if (Tcl_IsShared(valuePtr)) {
# 6696|-> TclNewLongObj(objResultPtr, -l1);
# 6697| TRACE_APPEND(("%s\n", O2S(objResultPtr)));
# 6698| NEXT_INST_F(1, 1, 1);
Error: CPPCHECK_WARNING (CWE-476): [#def1158]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6863: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 6861|
# 6862| if (oldValuePtr == NULL) {
# 6863|-> TclNewLongObj(iterVarPtr->value.objPtr, -1);
# 6864| Tcl_IncrRefCount(iterVarPtr->value.objPtr);
# 6865| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1159]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6863: error[uninitvar]: Uninitialized variable: cachePtr
# 6861|
# 6862| if (oldValuePtr == NULL) {
# 6863|-> TclNewLongObj(iterVarPtr->value.objPtr, -1);
# 6864| Tcl_IncrRefCount(iterVarPtr->value.objPtr);
# 6865| } else {
Error: CLANG_WARNING: [#def1160]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6878:2: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 6876|
# 6877| pc += 5;
# 6878|-> TCL_DTRACE_INST_NEXT();
# 6879| #else
# 6880| NEXT_INST_F(5, 0, 0);
Error: CPPCHECK_WARNING (CWE-476): [#def1161]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6949: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 6947| for (j = 0; j < numVars; j++) {
# 6948| if (valIndex >= listLen) {
# 6949|-> TclNewObj(valuePtr);
# 6950| } else {
# 6951| valuePtr = elements[valIndex];
Error: CPPCHECK_WARNING (CWE-457): [#def1162]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6949: error[uninitvar]: Uninitialized variable: cachePtr
# 6947| for (j = 0; j < numVars; j++) {
# 6948| if (valIndex >= listLen) {
# 6949|-> TclNewObj(valuePtr);
# 6950| } else {
# 6951| valuePtr = elements[valIndex];
Error: CPPCHECK_WARNING (CWE-476): [#def1163]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6963: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 6961| if (valuePtr != value2Ptr) {
# 6962| if (value2Ptr != NULL) {
# 6963|-> TclDecrRefCount(value2Ptr);
# 6964| }
# 6965| varPtr->value.objPtr = valuePtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1164]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6963: error[uninitvar]: Uninitialized variable: cachePtr
# 6961| if (valuePtr != value2Ptr) {
# 6962| if (value2Ptr != NULL) {
# 6963|-> TclDecrRefCount(value2Ptr);
# 6964| }
# 6965| varPtr->value.objPtr = valuePtr;
Error: CPPCHECK_WARNING (CWE-476): [#def1165]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6976: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 6974| "ERROR init. index temp %d: %s\n",
# 6975| varIndex, O2S(Tcl_GetObjResult(interp))));
# 6976|-> TclDecrRefCount(listPtr);
# 6977| goto gotError;
# 6978| }
Error: CPPCHECK_WARNING (CWE-457): [#def1166]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6976: error[uninitvar]: Uninitialized variable: cachePtr
# 6974| "ERROR init. index temp %d: %s\n",
# 6975| varIndex, O2S(Tcl_GetObjResult(interp))));
# 6976|-> TclDecrRefCount(listPtr);
# 6977| goto gotError;
# 6978| }
Error: CPPCHECK_WARNING (CWE-476): [#def1167]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6983: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 6981| valIndex++;
# 6982| }
# 6983|-> TclDecrRefCount(listPtr);
# 6984| listTmpIndex++;
# 6985| }
Error: CPPCHECK_WARNING (CWE-457): [#def1168]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:6983: error[uninitvar]: Uninitialized variable: cachePtr
# 6981| valIndex++;
# 6982| }
# 6983|-> TclDecrRefCount(listPtr);
# 6984| listTmpIndex++;
# 6985| }
Error: CPPCHECK_WARNING (CWE-476): [#def1169]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7059: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7057| */
# 7058|
# 7059|-> TclNewObj(tmpPtr);
# 7060| tmpPtr->internalRep.twoPtrValue.ptr1 = INT2PTR(0);
# 7061| tmpPtr->internalRep.twoPtrValue.ptr2 = INT2PTR(iterMax);
Error: CPPCHECK_WARNING (CWE-457): [#def1170]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7059: error[uninitvar]: Uninitialized variable: cachePtr
# 7057| */
# 7058|
# 7059|-> TclNewObj(tmpPtr);
# 7060| tmpPtr->internalRep.twoPtrValue.ptr1 = INT2PTR(0);
# 7061| tmpPtr->internalRep.twoPtrValue.ptr2 = INT2PTR(iterMax);
Error: CPPCHECK_WARNING (CWE-476): [#def1171]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7069: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7067| */
# 7068|
# 7069|-> TclNewObj(tmpPtr);
# 7070| tmpPtr->internalRep.twoPtrValue.ptr1 = infoPtr;
# 7071| PUSH_OBJECT(tmpPtr); /* infoPtr object */
Error: CPPCHECK_WARNING (CWE-457): [#def1172]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7069: error[uninitvar]: Uninitialized variable: cachePtr
# 7067| */
# 7068|
# 7069|-> TclNewObj(tmpPtr);
# 7070| tmpPtr->internalRep.twoPtrValue.ptr1 = infoPtr;
# 7071| PUSH_OBJECT(tmpPtr); /* infoPtr object */
Error: CPPCHECK_WARNING (CWE-476): [#def1173]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7120: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7118| for (j = 0; j < numVars; j++) {
# 7119| if (valIndex >= listLen) {
# 7120|-> TclNewObj(valuePtr);
# 7121| } else {
# 7122| valuePtr = elements[valIndex];
Error: CPPCHECK_WARNING (CWE-457): [#def1174]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7120: error[uninitvar]: Uninitialized variable: cachePtr
# 7118| for (j = 0; j < numVars; j++) {
# 7119| if (valIndex >= listLen) {
# 7120|-> TclNewObj(valuePtr);
# 7121| } else {
# 7122| valuePtr = elements[valIndex];
Error: CPPCHECK_WARNING (CWE-476): [#def1175]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7134: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7132| if (valuePtr != value2Ptr) {
# 7133| if (value2Ptr != NULL) {
# 7134|-> TclDecrRefCount(value2Ptr);
# 7135| }
# 7136| varPtr->value.objPtr = valuePtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1176]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7134: error[uninitvar]: Uninitialized variable: cachePtr
# 7132| if (valuePtr != value2Ptr) {
# 7133| if (value2Ptr != NULL) {
# 7134|-> TclDecrRefCount(value2Ptr);
# 7135| }
# 7136| varPtr->value.objPtr = valuePtr;
Error: CPPCHECK_WARNING (CWE-476): [#def1177]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7231: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7229| */
# 7230|
# 7231|-> TclNewObj(objPtr);
# 7232| Tcl_IncrRefCount(objPtr);
# 7233| iPtr->objResultPtr = objPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1178]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7231: error[uninitvar]: Uninitialized variable: cachePtr
# 7229| */
# 7230|
# 7231|-> TclNewObj(objPtr);
# 7232| Tcl_IncrRefCount(objPtr);
# 7233| iPtr->objResultPtr = objPtr;
Error: CPPCHECK_WARNING (CWE-476): [#def1179]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7238: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7236|
# 7237| case INST_PUSH_RETURN_CODE:
# 7238|-> TclNewIntObj(objResultPtr, result);
# 7239| TRACE(("=> %u\n", result));
# 7240| NEXT_INST_F(1, 0, 1);
Error: CPPCHECK_WARNING (CWE-457): [#def1180]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7238: error[uninitvar]: Uninitialized variable: cachePtr
# 7236|
# 7237| case INST_PUSH_RETURN_CODE:
# 7238|-> TclNewIntObj(objResultPtr, result);
# 7239| TRACE(("=> %u\n", result));
# 7240| NEXT_INST_F(1, 0, 1);
Error: CPPCHECK_WARNING (CWE-476): [#def1181]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7352: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7350| */
# 7351|
# 7352|-> JUMP_PEEPHOLE_V(found, 5, opnd+1);
# 7353| }
# 7354|
Error: CPPCHECK_WARNING (CWE-457): [#def1182]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7352: error[uninitvar]: Uninitialized variable: cachePtr
# 7350| */
# 7351|
# 7352|-> JUMP_PEEPHOLE_V(found, 5, opnd+1);
# 7353| }
# 7354|
Error: CPPCHECK_WARNING (CWE-476): [#def1183]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7375: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7373| }
# 7374| if (dictPtr == NULL) {
# 7375|-> TclNewObj(dictPtr);
# 7376| allocateDict = 1;
# 7377| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1184]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7375: error[uninitvar]: Uninitialized variable: cachePtr
# 7373| }
# 7374| if (dictPtr == NULL) {
# 7375|-> TclNewObj(dictPtr);
# 7376| allocateDict = 1;
# 7377| } else {
Error: CPPCHECK_WARNING (CWE-476): [#def1185]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7400: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7398| Tcl_DictObjPut(NULL, dictPtr, OBJ_AT_TOS,Tcl_NewIntObj(opnd));
# 7399| } else {
# 7400|-> TclNewIntObj(value2Ptr, opnd);
# 7401| Tcl_IncrRefCount(value2Ptr);
# 7402| if (Tcl_IsShared(valuePtr)) {
Error: CPPCHECK_WARNING (CWE-457): [#def1186]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7400: error[uninitvar]: Uninitialized variable: cachePtr
# 7398| Tcl_DictObjPut(NULL, dictPtr, OBJ_AT_TOS,Tcl_NewIntObj(opnd));
# 7399| } else {
# 7400|-> TclNewIntObj(value2Ptr, opnd);
# 7401| Tcl_IncrRefCount(value2Ptr);
# 7402| if (Tcl_IsShared(valuePtr)) {
Error: CPPCHECK_WARNING (CWE-476): [#def1187]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7410: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7408| TclInvalidateStringRep(dictPtr);
# 7409| }
# 7410|-> TclDecrRefCount(value2Ptr);
# 7411| }
# 7412| break;
Error: CPPCHECK_WARNING (CWE-457): [#def1188]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7410: error[uninitvar]: Uninitialized variable: cachePtr
# 7408| TclInvalidateStringRep(dictPtr);
# 7409| }
# 7410|-> TclDecrRefCount(value2Ptr);
# 7411| }
# 7412| break;
Error: CLANG_WARNING: [#def1189]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7419:6: warning[deadcode.DeadStores]: Value stored to 'cleanup' is never read
# 7417| break;
# 7418| default:
# 7419|-> cleanup = 0; /* stop compiler warning */
# 7420| Tcl_Panic("Should not happen!");
# 7421| }
Error: CPPCHECK_WARNING (CWE-476): [#def1190]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7425: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7423| if (result != TCL_OK) {
# 7424| if (allocateDict) {
# 7425|-> TclDecrRefCount(dictPtr);
# 7426| }
# 7427| TRACE_APPEND(("ERROR updating dictionary: %s\n",
Error: CPPCHECK_WARNING (CWE-457): [#def1191]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7425: error[uninitvar]: Uninitialized variable: cachePtr
# 7423| if (result != TCL_OK) {
# 7424| if (allocateDict) {
# 7425|-> TclDecrRefCount(dictPtr);
# 7426| }
# 7427| TRACE_APPEND(("ERROR updating dictionary: %s\n",
Error: CPPCHECK_WARNING (CWE-476): [#def1192]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7437: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7435| Tcl_IncrRefCount(dictPtr);
# 7436| if (value2Ptr != NULL) {
# 7437|-> TclDecrRefCount(value2Ptr);
# 7438| }
# 7439| varPtr->value.objPtr = dictPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1193]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7437: error[uninitvar]: Uninitialized variable: cachePtr
# 7435| Tcl_IncrRefCount(dictPtr);
# 7436| if (value2Ptr != NULL) {
# 7437|-> TclDecrRefCount(value2Ptr);
# 7438| }
# 7439| varPtr->value.objPtr = dictPtr;
Error: CPPCHECK_WARNING (CWE-476): [#def1194]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7448: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7446| dictPtr, TCL_LEAVE_ERR_MSG, opnd2);
# 7447| CACHE_STACK_INFO();
# 7448|-> TclDecrRefCount(dictPtr);
# 7449| if (objResultPtr == NULL) {
# 7450| TRACE_ERROR(interp);
Error: CPPCHECK_WARNING (CWE-457): [#def1195]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7448: error[uninitvar]: Uninitialized variable: cachePtr
# 7446| dictPtr, TCL_LEAVE_ERR_MSG, opnd2);
# 7447| CACHE_STACK_INFO();
# 7448|-> TclDecrRefCount(dictPtr);
# 7449| if (objResultPtr == NULL) {
# 7450| TRACE_ERROR(interp);
Error: CPPCHECK_WARNING (CWE-476): [#def1196]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7479: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7477| }
# 7478| if (dictPtr == NULL) {
# 7479|-> TclNewObj(dictPtr);
# 7480| allocateDict = 1;
# 7481| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1197]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7479: error[uninitvar]: Uninitialized variable: cachePtr
# 7477| }
# 7478| if (dictPtr == NULL) {
# 7479|-> TclNewObj(dictPtr);
# 7480| allocateDict = 1;
# 7481| } else {
Error: CPPCHECK_WARNING (CWE-476): [#def1198]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7491: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7489| &valuePtr) != TCL_OK) {
# 7490| if (allocateDict) {
# 7491|-> TclDecrRefCount(dictPtr);
# 7492| }
# 7493| TRACE_ERROR(interp);
Error: CPPCHECK_WARNING (CWE-457): [#def1199]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7491: error[uninitvar]: Uninitialized variable: cachePtr
# 7489| &valuePtr) != TCL_OK) {
# 7490| if (allocateDict) {
# 7491|-> TclDecrRefCount(dictPtr);
# 7492| }
# 7493| TRACE_ERROR(interp);
Error: CPPCHECK_WARNING (CWE-476): [#def1200]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7538: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7536| if (Tcl_ListObjAppendElement(interp, valuePtr,
# 7537| OBJ_AT_TOS) != TCL_OK) {
# 7538|-> TclDecrRefCount(valuePtr);
# 7539| if (allocateDict) {
# 7540| TclDecrRefCount(dictPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1201]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7538: error[uninitvar]: Uninitialized variable: cachePtr
# 7536| if (Tcl_ListObjAppendElement(interp, valuePtr,
# 7537| OBJ_AT_TOS) != TCL_OK) {
# 7538|-> TclDecrRefCount(valuePtr);
# 7539| if (allocateDict) {
# 7540| TclDecrRefCount(dictPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1202]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7540: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7538| TclDecrRefCount(valuePtr);
# 7539| if (allocateDict) {
# 7540|-> TclDecrRefCount(dictPtr);
# 7541| }
# 7542| TRACE_ERROR(interp);
Error: CPPCHECK_WARNING (CWE-457): [#def1203]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7540: error[uninitvar]: Uninitialized variable: cachePtr
# 7538| TclDecrRefCount(valuePtr);
# 7539| if (allocateDict) {
# 7540|-> TclDecrRefCount(dictPtr);
# 7541| }
# 7542| TRACE_ERROR(interp);
Error: CPPCHECK_WARNING (CWE-476): [#def1204]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7550: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7548| OBJ_AT_TOS) != TCL_OK) {
# 7549| if (allocateDict) {
# 7550|-> TclDecrRefCount(dictPtr);
# 7551| }
# 7552| TRACE_ERROR(interp);
Error: CPPCHECK_WARNING (CWE-457): [#def1205]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7550: error[uninitvar]: Uninitialized variable: cachePtr
# 7548| OBJ_AT_TOS) != TCL_OK) {
# 7549| if (allocateDict) {
# 7550|-> TclDecrRefCount(dictPtr);
# 7551| }
# 7552| TRACE_ERROR(interp);
Error: CPPCHECK_WARNING (CWE-476): [#def1206]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7576: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7574| Tcl_IncrRefCount(dictPtr);
# 7575| if (value2Ptr != NULL) {
# 7576|-> TclDecrRefCount(value2Ptr);
# 7577| }
# 7578| varPtr->value.objPtr = dictPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1207]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7576: error[uninitvar]: Uninitialized variable: cachePtr
# 7574| Tcl_IncrRefCount(dictPtr);
# 7575| if (value2Ptr != NULL) {
# 7576|-> TclDecrRefCount(value2Ptr);
# 7577| }
# 7578| varPtr->value.objPtr = dictPtr;
Error: CPPCHECK_WARNING (CWE-476): [#def1208]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7587: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7585| dictPtr, TCL_LEAVE_ERR_MSG, opnd);
# 7586| CACHE_STACK_INFO();
# 7587|-> TclDecrRefCount(dictPtr);
# 7588| if (objResultPtr == NULL) {
# 7589| TRACE_ERROR(interp);
Error: CPPCHECK_WARNING (CWE-457): [#def1209]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7587: error[uninitvar]: Uninitialized variable: cachePtr
# 7585| dictPtr, TCL_LEAVE_ERR_MSG, opnd);
# 7586| CACHE_STACK_INFO();
# 7587|-> TclDecrRefCount(dictPtr);
# 7588| if (objResultPtr == NULL) {
# 7589| TRACE_ERROR(interp);
Error: CPPCHECK_WARNING (CWE-476): [#def1210]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7620: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7618| goto gotError;
# 7619| }
# 7620|-> TclNewObj(statePtr);
# 7621| statePtr->typePtr = &dictIteratorType;
# 7622| statePtr->internalRep.twoPtrValue.ptr1 = searchPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1211]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7620: error[uninitvar]: Uninitialized variable: cachePtr
# 7618| goto gotError;
# 7619| }
# 7620|-> TclNewObj(statePtr);
# 7621| statePtr->typePtr = &dictIteratorType;
# 7622| statePtr->internalRep.twoPtrValue.ptr1 = searchPtr;
Error: CPPCHECK_WARNING (CWE-476): [#def1212]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7629: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7627| Tcl_Panic("mis-issued dictFirst!");
# 7628| }
# 7629|-> TclDecrRefCount(varPtr->value.objPtr);
# 7630| }
# 7631| varPtr->value.objPtr = statePtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1213]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7629: error[uninitvar]: Uninitialized variable: cachePtr
# 7627| Tcl_Panic("mis-issued dictFirst!");
# 7628| }
# 7629|-> TclDecrRefCount(varPtr->value.objPtr);
# 7630| }
# 7631| varPtr->value.objPtr = statePtr;
Error: CPPCHECK_WARNING (CWE-476): [#def1214]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7646: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7644| pushDictIteratorResult:
# 7645| if (done) {
# 7646|-> TclNewObj(emptyPtr);
# 7647| PUSH_OBJECT(emptyPtr);
# 7648| PUSH_OBJECT(emptyPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1215]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7646: error[uninitvar]: Uninitialized variable: cachePtr
# 7644| pushDictIteratorResult:
# 7645| if (done) {
# 7646|-> TclNewObj(emptyPtr);
# 7647| PUSH_OBJECT(emptyPtr);
# 7648| PUSH_OBJECT(emptyPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1216]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7663: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7661| */
# 7662|
# 7663|-> JUMP_PEEPHOLE_F(done, 5, 0);
# 7664|
# 7665| case INST_DICT_UPDATE_START:
Error: CPPCHECK_WARNING (CWE-457): [#def1217]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7663: error[uninitvar]: Uninitialized variable: cachePtr
# 7661| */
# 7662|
# 7663|-> JUMP_PEEPHOLE_F(done, 5, 0);
# 7664|
# 7665| case INST_DICT_UPDATE_START:
Error: CPPCHECK_WARNING (CWE-476): [#def1218]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7721: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7719| CACHE_STACK_INFO();
# 7720| }
# 7721|-> TclDecrRefCount(dictPtr);
# 7722| TRACE_APPEND(("OK\n"));
# 7723| NEXT_INST_F(9, 0, 0);
Error: CPPCHECK_WARNING (CWE-457): [#def1219]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7721: error[uninitvar]: Uninitialized variable: cachePtr
# 7719| CACHE_STACK_INFO();
# 7720| }
# 7721|-> TclDecrRefCount(dictPtr);
# 7722| TRACE_APPEND(("OK\n"));
# 7723| NEXT_INST_F(9, 0, 0);
Error: CPPCHECK_WARNING (CWE-476): [#def1220]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7784: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7782| if (TclIsVarDirectWritable(varPtr)) {
# 7783| Tcl_IncrRefCount(dictPtr);
# 7784|-> TclDecrRefCount(varPtr->value.objPtr);
# 7785| varPtr->value.objPtr = dictPtr;
# 7786| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1221]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7784: error[uninitvar]: Uninitialized variable: cachePtr
# 7782| if (TclIsVarDirectWritable(varPtr)) {
# 7783| Tcl_IncrRefCount(dictPtr);
# 7784|-> TclDecrRefCount(varPtr->value.objPtr);
# 7785| varPtr->value.objPtr = dictPtr;
# 7786| } else {
Error: CPPCHECK_WARNING (CWE-476): [#def1222]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7793: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7791| if (objResultPtr == NULL) {
# 7792| if (allocdict) {
# 7793|-> TclDecrRefCount(dictPtr);
# 7794| }
# 7795| TRACE_ERROR(interp);
Error: CPPCHECK_WARNING (CWE-457): [#def1223]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7793: error[uninitvar]: Uninitialized variable: cachePtr
# 7791| if (objResultPtr == NULL) {
# 7792| if (allocdict) {
# 7793|-> TclDecrRefCount(dictPtr);
# 7794| }
# 7795| TRACE_ERROR(interp);
Error: CPPCHECK_WARNING (CWE-476): [#def1224]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7826: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7824| if (TclListObjGetElements(interp, listPtr, &objc, &objv) != TCL_OK) {
# 7825| TRACE_ERROR(interp);
# 7826|-> TclDecrRefCount(keysPtr);
# 7827| goto gotError;
# 7828| }
Error: CPPCHECK_WARNING (CWE-457): [#def1225]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7826: error[uninitvar]: Uninitialized variable: cachePtr
# 7824| if (TclListObjGetElements(interp, listPtr, &objc, &objv) != TCL_OK) {
# 7825| TRACE_ERROR(interp);
# 7826|-> TclDecrRefCount(keysPtr);
# 7827| goto gotError;
# 7828| }
Error: CPPCHECK_WARNING (CWE-476): [#def1226]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7833: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7831| if (varPtr == NULL) {
# 7832| TRACE_ERROR(interp);
# 7833|-> TclDecrRefCount(keysPtr);
# 7834| goto gotError;
# 7835| }
Error: CPPCHECK_WARNING (CWE-457): [#def1227]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7833: error[uninitvar]: Uninitialized variable: cachePtr
# 7831| if (varPtr == NULL) {
# 7832| TRACE_ERROR(interp);
# 7833|-> TclDecrRefCount(keysPtr);
# 7834| goto gotError;
# 7835| }
Error: CPPCHECK_WARNING (CWE-476): [#def1228]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7840: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7838| objc, objv, keysPtr);
# 7839| CACHE_STACK_INFO();
# 7840|-> TclDecrRefCount(keysPtr);
# 7841| if (result != TCL_OK) {
# 7842| TRACE_ERROR(interp);
Error: CPPCHECK_WARNING (CWE-457): [#def1229]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7840: error[uninitvar]: Uninitialized variable: cachePtr
# 7838| objc, objv, keysPtr);
# 7839| CACHE_STACK_INFO();
# 7840|-> TclDecrRefCount(keysPtr);
# 7841| if (result != TCL_OK) {
# 7842| TRACE_ERROR(interp);
Error: CPPCHECK_WARNING (CWE-476): [#def1230]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7971: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 7969| while (cleanup--) {
# 7970| valuePtr = POP_OBJECT();
# 7971|-> TclDecrRefCount(valuePtr);
# 7972| }
# 7973| if (result == TCL_BREAK) {
Error: CPPCHECK_WARNING (CWE-457): [#def1231]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:7971: error[uninitvar]: Uninitialized variable: cachePtr
# 7969| while (cleanup--) {
# 7970| valuePtr = POP_OBJECT();
# 7971|-> TclDecrRefCount(valuePtr);
# 7972| }
# 7973| if (result == TCL_BREAK) {
Error: CPPCHECK_WARNING (CWE-476): [#def1232]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8148: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 8146| while (CURR_DEPTH > *catchTop) {
# 8147| valuePtr = POP_OBJECT();
# 8148|-> TclDecrRefCount(valuePtr);
# 8149| }
# 8150| #ifdef TCL_COMPILE_DEBUG
Error: CPPCHECK_WARNING (CWE-457): [#def1233]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8148: error[uninitvar]: Uninitialized variable: cachePtr
# 8146| while (CURR_DEPTH > *catchTop) {
# 8147| valuePtr = POP_OBJECT();
# 8148|-> TclDecrRefCount(valuePtr);
# 8149| }
# 8150| #ifdef TCL_COMPILE_DEBUG
Error: CLANG_WARNING: [#def1234]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8172:2: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 8170|
# 8171| abnormalReturn:
# 8172|-> TCL_DTRACE_INST_LAST();
# 8173|
# 8174| /*
Error: CPPCHECK_WARNING (CWE-476): [#def1235]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8705: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 8703| return constants[0];
# 8704| }
# 8705|-> LONG_RESULT(-1);
# 8706| }
# 8707| shift = (int)(*(const long *)ptr2);
Error: CPPCHECK_WARNING (CWE-457): [#def1236]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8705: error[uninitvar]: Uninitialized variable: cachePtr
# 8703| return constants[0];
# 8704| }
# 8705|-> LONG_RESULT(-1);
# 8706| }
# 8707| shift = (int)(*(const long *)ptr2);
Error: CPPCHECK_WARNING (CWE-457): [#def1237]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8705: error[uninitvar]: Uninitialized variable: objResultPtr
# 8703| return constants[0];
# 8704| }
# 8705|-> LONG_RESULT(-1);
# 8706| }
# 8707| shift = (int)(*(const long *)ptr2);
Error: CPPCHECK_WARNING (CWE-476): [#def1238]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8720: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 8718| return constants[0];
# 8719| }
# 8720|-> LONG_RESULT(-1);
# 8721| }
# 8722| WIDE_RESULT(w1 >> shift);
Error: CPPCHECK_WARNING (CWE-457): [#def1239]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8720: error[uninitvar]: Uninitialized variable: (objResultPtr)->internalRep.twoPtrValue.ptr1
# 8718| return constants[0];
# 8719| }
# 8720|-> LONG_RESULT(-1);
# 8721| }
# 8722| WIDE_RESULT(w1 >> shift);
Error: CPPCHECK_WARNING (CWE-457): [#def1240]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8720: error[uninitvar]: Uninitialized variable: cachePtr
# 8718| return constants[0];
# 8719| }
# 8720|-> LONG_RESULT(-1);
# 8721| }
# 8722| WIDE_RESULT(w1 >> shift);
Error: CPPCHECK_WARNING (CWE-476): [#def1241]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8806: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 8804| lResult = 0;
# 8805| }
# 8806|-> LONG_RESULT(lResult);
# 8807|
# 8808| case INST_EXPON: {
Error: CPPCHECK_WARNING (CWE-457): [#def1242]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8806: error[uninitvar]: Uninitialized variable: cachePtr
# 8804| lResult = 0;
# 8805| }
# 8806|-> LONG_RESULT(lResult);
# 8807|
# 8808| case INST_EXPON: {
Error: CPPCHECK_WARNING (CWE-476): [#def1243]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8893: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 8891| return constants[1];
# 8892| }
# 8893|-> LONG_RESULT(-1);
# 8894| }
# 8895| /* negativeExponent */
Error: CPPCHECK_WARNING (CWE-457): [#def1244]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8893: error[uninitvar]: Uninitialized variable: cachePtr
# 8891| return constants[1];
# 8892| }
# 8893|-> LONG_RESULT(-1);
# 8894| }
# 8895| /* negativeExponent */
Error: CPPCHECK_WARNING (CWE-476): [#def1245]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8897: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 8895| /* negativeExponent */
# 8896| if (oddExponent) {
# 8897|-> LONG_RESULT(-1);
# 8898| }
# 8899| return constants[1];
Error: CPPCHECK_WARNING (CWE-457): [#def1246]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8897: error[uninitvar]: Uninitialized variable: cachePtr
# 8895| /* negativeExponent */
# 8896| if (oddExponent) {
# 8897|-> LONG_RESULT(-1);
# 8898| }
# 8899| return constants[1];
Error: CPPCHECK_WARNING (CWE-476): [#def1247]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8951: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 8949|
# 8950| if ((unsigned long) l2 < CHAR_BIT * sizeof(long) - 1) {
# 8951|-> LONG_RESULT(1L << l2);
# 8952| }
# 8953| #if !defined(TCL_WIDE_INT_IS_LONG)
Error: CPPCHECK_WARNING (CWE-457): [#def1248]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8951: error[uninitvar]: Uninitialized variable: cachePtr
# 8949|
# 8950| if ((unsigned long) l2 < CHAR_BIT * sizeof(long) - 1) {
# 8951|-> LONG_RESULT(1L << l2);
# 8952| }
# 8953| #if !defined(TCL_WIDE_INT_IS_LONG)
Error: CPPCHECK_WARNING (CWE-476): [#def1249]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8968: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 8966|
# 8967| if ((unsigned long) l2 < CHAR_BIT * sizeof(long) - 1) {
# 8968|-> LONG_RESULT(signum * (1L << l2));
# 8969| }
# 8970| #if !defined(TCL_WIDE_INT_IS_LONG)
Error: CPPCHECK_WARNING (CWE-457): [#def1250]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:8968: error[uninitvar]: Uninitialized variable: cachePtr
# 8966|
# 8967| if ((unsigned long) l2 < CHAR_BIT * sizeof(long) - 1) {
# 8968|-> LONG_RESULT(signum * (1L << l2));
# 8969| }
# 8970| #if !defined(TCL_WIDE_INT_IS_LONG)
Error: CPPCHECK_WARNING (CWE-476): [#def1251]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:9143: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 9141| }
# 9142| #endif
# 9143|-> DOUBLE_RESULT(dResult);
# 9144| }
# 9145| if ((type1 != TCL_NUMBER_BIG) && (type2 != TCL_NUMBER_BIG)) {
Error: CPPCHECK_WARNING (CWE-457): [#def1252]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:9143: error[uninitvar]: Uninitialized variable: cachePtr
# 9141| }
# 9142| #endif
# 9143|-> DOUBLE_RESULT(dResult);
# 9144| }
# 9145| if ((type1 != TCL_NUMBER_BIG) && (type2 != TCL_NUMBER_BIG)) {
Error: CPPCHECK_WARNING (CWE-476): [#def1253]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:9309: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 9307| switch (type) {
# 9308| case TCL_NUMBER_DOUBLE:
# 9309|-> DOUBLE_RESULT(-(*((const double *) ptr)));
# 9310| case TCL_NUMBER_LONG:
# 9311| w = (Tcl_WideInt) (*((const long *) ptr));
Error: CPPCHECK_WARNING (CWE-457): [#def1254]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:9309: error[uninitvar]: Uninitialized variable: cachePtr
# 9307| switch (type) {
# 9308| case TCL_NUMBER_DOUBLE:
# 9309|-> DOUBLE_RESULT(-(*((const double *) ptr)));
# 9310| case TCL_NUMBER_LONG:
# 9311| w = (Tcl_WideInt) (*((const long *) ptr));
Error: CPPCHECK_WARNING (CWE-457): [#def1255]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:9309: error[uninitvar]: Uninitialized variable: objResultPtr
# 9307| switch (type) {
# 9308| case TCL_NUMBER_DOUBLE:
# 9309|-> DOUBLE_RESULT(-(*((const double *) ptr)));
# 9310| case TCL_NUMBER_LONG:
# 9311| w = (Tcl_WideInt) (*((const long *) ptr));
Error: CPPCHECK_WARNING (CWE-457): [#def1256]
tcl-8.6.14-build/tcl8.6.14/generic/tclExecute.c:9760: error[legacyUninitvar]: Uninitialized variable: *(&ptr)
# 9758| }
# 9759|
# 9760|-> if (GetNumberFromObj(NULL, opndPtr, &ptr, &type) != TCL_OK) {
# 9761| int numBytes;
# 9762| const char *bytes = Tcl_GetStringFromObj(opndPtr, &numBytes);
Error: CPPCHECK_WARNING: [#def1257]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1258]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:571: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 569| int index;
# 570|
# 571|-> TclNewLiteralStringObj(perm, "u+w");
# 572| Tcl_IncrRefCount(perm);
# 573| if (TclFSFileAttrIndex(target, "-permissions", &index) == TCL_OK) {
Error: CPPCHECK_WARNING (CWE-457): [#def1259]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:571: error[uninitvar]: Uninitialized variable: cachePtr
# 569| int index;
# 570|
# 571|-> TclNewLiteralStringObj(perm, "u+w");
# 572| Tcl_IncrRefCount(perm);
# 573| if (TclFSFileAttrIndex(target, "-permissions", &index) == TCL_OK) {
Error: CPPCHECK_WARNING (CWE-457): [#def1260]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:571: error[uninitvar]: Uninitialized variable: perm
# 569| int index;
# 570|
# 571|-> TclNewLiteralStringObj(perm, "u+w");
# 572| Tcl_IncrRefCount(perm);
# 573| if (TclFSFileAttrIndex(target, "-permissions", &index) == TCL_OK) {
Error: CPPCHECK_WARNING (CWE-476): [#def1261]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:697: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 695| Tcl_Obj *copyCommand, *cmdObj, *opObj;
# 696|
# 697|-> TclNewObj(copyCommand);
# 698| TclNewLiteralStringObj(cmdObj, "::tcl::CopyDirectory");
# 699| Tcl_ListObjAppendElement(interp, copyCommand, cmdObj);
Error: CPPCHECK_WARNING (CWE-457): [#def1262]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:697: error[uninitvar]: Uninitialized variable: cachePtr
# 695| Tcl_Obj *copyCommand, *cmdObj, *opObj;
# 696|
# 697|-> TclNewObj(copyCommand);
# 698| TclNewLiteralStringObj(cmdObj, "::tcl::CopyDirectory");
# 699| Tcl_ListObjAppendElement(interp, copyCommand, cmdObj);
Error: CPPCHECK_WARNING (CWE-457): [#def1263]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:697: error[uninitvar]: Uninitialized variable: copyCommand
# 695| Tcl_Obj *copyCommand, *cmdObj, *opObj;
# 696|
# 697|-> TclNewObj(copyCommand);
# 698| TclNewLiteralStringObj(cmdObj, "::tcl::CopyDirectory");
# 699| Tcl_ListObjAppendElement(interp, copyCommand, cmdObj);
Error: CPPCHECK_WARNING (CWE-476): [#def1264]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:698: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 696|
# 697| TclNewObj(copyCommand);
# 698|-> TclNewLiteralStringObj(cmdObj, "::tcl::CopyDirectory");
# 699| Tcl_ListObjAppendElement(interp, copyCommand, cmdObj);
# 700| if (copyFlag) {
Error: CPPCHECK_WARNING (CWE-457): [#def1265]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:698: error[uninitvar]: Uninitialized variable: cachePtr
# 696|
# 697| TclNewObj(copyCommand);
# 698|-> TclNewLiteralStringObj(cmdObj, "::tcl::CopyDirectory");
# 699| Tcl_ListObjAppendElement(interp, copyCommand, cmdObj);
# 700| if (copyFlag) {
Error: CPPCHECK_WARNING (CWE-457): [#def1266]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:698: error[uninitvar]: Uninitialized variable: cmdObj
# 696|
# 697| TclNewObj(copyCommand);
# 698|-> TclNewLiteralStringObj(cmdObj, "::tcl::CopyDirectory");
# 699| Tcl_ListObjAppendElement(interp, copyCommand, cmdObj);
# 700| if (copyFlag) {
Error: CPPCHECK_WARNING (CWE-476): [#def1267]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:701: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 699| Tcl_ListObjAppendElement(interp, copyCommand, cmdObj);
# 700| if (copyFlag) {
# 701|-> TclNewLiteralStringObj(opObj, "copying");
# 702| } else {
# 703| TclNewLiteralStringObj(opObj, "renaming");
Error: CPPCHECK_WARNING (CWE-457): [#def1268]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:701: error[uninitvar]: Uninitialized variable: cachePtr
# 699| Tcl_ListObjAppendElement(interp, copyCommand, cmdObj);
# 700| if (copyFlag) {
# 701|-> TclNewLiteralStringObj(opObj, "copying");
# 702| } else {
# 703| TclNewLiteralStringObj(opObj, "renaming");
Error: CPPCHECK_WARNING (CWE-457): [#def1269]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:701: error[uninitvar]: Uninitialized variable: opObj
# 699| Tcl_ListObjAppendElement(interp, copyCommand, cmdObj);
# 700| if (copyFlag) {
# 701|-> TclNewLiteralStringObj(opObj, "copying");
# 702| } else {
# 703| TclNewLiteralStringObj(opObj, "renaming");
Error: CPPCHECK_WARNING (CWE-476): [#def1270]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:703: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 701| TclNewLiteralStringObj(opObj, "copying");
# 702| } else {
# 703|-> TclNewLiteralStringObj(opObj, "renaming");
# 704| }
# 705| Tcl_ListObjAppendElement(interp, copyCommand, opObj);
Error: CPPCHECK_WARNING (CWE-457): [#def1271]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:703: error[uninitvar]: Uninitialized variable: (opObj)->internalRep.twoPtrValue.ptr1
# 701| TclNewLiteralStringObj(opObj, "copying");
# 702| } else {
# 703|-> TclNewLiteralStringObj(opObj, "renaming");
# 704| }
# 705| Tcl_ListObjAppendElement(interp, copyCommand, opObj);
Error: CPPCHECK_WARNING (CWE-457): [#def1272]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:703: error[uninitvar]: Uninitialized variable: cachePtr
# 701| TclNewLiteralStringObj(opObj, "copying");
# 702| } else {
# 703|-> TclNewLiteralStringObj(opObj, "renaming");
# 704| }
# 705| Tcl_ListObjAppendElement(interp, copyCommand, opObj);
Error: CPPCHECK_WARNING (CWE-476): [#def1273]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:907: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 905| }
# 906| if (resultPtr == NULL) {
# 907|-> TclNewObj(resultPtr);
# 908| }
# 909| Tcl_IncrRefCount(resultPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1274]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:907: error[uninitvar]: Uninitialized variable: cachePtr
# 905| }
# 906| if (resultPtr == NULL) {
# 907|-> TclNewObj(resultPtr);
# 908| }
# 909| Tcl_IncrRefCount(resultPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1275]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:907: error[uninitvar]: Uninitialized variable: resultPtr
# 905| }
# 906| if (resultPtr == NULL) {
# 907|-> TclNewObj(resultPtr);
# 908| }
# 909| Tcl_IncrRefCount(resultPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1276]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1395: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1393| if (objc > 1) {
# 1394| nameVarObj = objv[1];
# 1395|-> TclNewObj(nameObj);
# 1396| }
# 1397| if (objc > 2) {
Error: CPPCHECK_WARNING (CWE-457): [#def1277]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1395: error[uninitvar]: Uninitialized variable: cachePtr
# 1393| if (objc > 1) {
# 1394| nameVarObj = objv[1];
# 1395|-> TclNewObj(nameObj);
# 1396| }
# 1397| if (objc > 2) {
Error: CPPCHECK_WARNING (CWE-457): [#def1278]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1395: error[uninitvar]: Uninitialized variable: nameObj
# 1393| if (objc > 1) {
# 1394| nameVarObj = objv[1];
# 1395|-> TclNewObj(nameObj);
# 1396| }
# 1397| if (objc > 2) {
Error: CPPCHECK_WARNING (CWE-476): [#def1279]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1428: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1426| if (tempDirObj != NULL && Tcl_FSGetFileSystemForPath(tempDirObj)
# 1427| != &tclNativeFilesystem) {
# 1428|-> TclDecrRefCount(tempDirObj);
# 1429| tempDirObj = NULL;
# 1430| }
Error: CPPCHECK_WARNING (CWE-457): [#def1280]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1428: error[uninitvar]: Uninitialized variable: cachePtr
# 1426| if (tempDirObj != NULL && Tcl_FSGetFileSystemForPath(tempDirObj)
# 1427| != &tclNativeFilesystem) {
# 1428|-> TclDecrRefCount(tempDirObj);
# 1429| tempDirObj = NULL;
# 1430| }
Error: CPPCHECK_WARNING (CWE-476): [#def1281]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1446: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1444| tempBaseObj = TclPathPart(interp, tailObj, TCL_PATH_ROOT);
# 1445| tempExtObj = TclPathPart(interp, tailObj, TCL_PATH_EXTENSION);
# 1446|-> TclDecrRefCount(tailObj);
# 1447| }
# 1448| }
Error: CPPCHECK_WARNING (CWE-457): [#def1282]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1446: error[uninitvar]: Uninitialized variable: cachePtr
# 1444| tempBaseObj = TclPathPart(interp, tailObj, TCL_PATH_ROOT);
# 1445| tempExtObj = TclPathPart(interp, tailObj, TCL_PATH_EXTENSION);
# 1446|-> TclDecrRefCount(tailObj);
# 1447| }
# 1448| }
Error: CPPCHECK_WARNING (CWE-476): [#def1283]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1456: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1454|
# 1455| if (tempDirObj && !TclGetString(tempDirObj)[0]) {
# 1456|-> TclDecrRefCount(tempDirObj);
# 1457| tempDirObj = NULL;
# 1458| }
Error: CPPCHECK_WARNING (CWE-457): [#def1284]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1456: error[uninitvar]: Uninitialized variable: cachePtr
# 1454|
# 1455| if (tempDirObj && !TclGetString(tempDirObj)[0]) {
# 1456|-> TclDecrRefCount(tempDirObj);
# 1457| tempDirObj = NULL;
# 1458| }
Error: CPPCHECK_WARNING (CWE-476): [#def1285]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1460: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1458| }
# 1459| if (tempBaseObj && !TclGetString(tempBaseObj)[0]) {
# 1460|-> TclDecrRefCount(tempBaseObj);
# 1461| tempBaseObj = NULL;
# 1462| }
Error: CPPCHECK_WARNING (CWE-457): [#def1286]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1460: error[uninitvar]: Uninitialized variable: cachePtr
# 1458| }
# 1459| if (tempBaseObj && !TclGetString(tempBaseObj)[0]) {
# 1460|-> TclDecrRefCount(tempBaseObj);
# 1461| tempBaseObj = NULL;
# 1462| }
Error: CPPCHECK_WARNING (CWE-476): [#def1287]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1464: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1462| }
# 1463| if (tempExtObj && !TclGetString(tempExtObj)[0]) {
# 1464|-> TclDecrRefCount(tempExtObj);
# 1465| tempExtObj = NULL;
# 1466| }
Error: CPPCHECK_WARNING (CWE-457): [#def1288]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1464: error[uninitvar]: Uninitialized variable: cachePtr
# 1462| }
# 1463| if (tempExtObj && !TclGetString(tempExtObj)[0]) {
# 1464|-> TclDecrRefCount(tempExtObj);
# 1465| tempExtObj = NULL;
# 1466| }
Error: CPPCHECK_WARNING (CWE-476): [#def1289]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1480: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1478|
# 1479| if (tempDirObj) {
# 1480|-> TclDecrRefCount(tempDirObj);
# 1481| }
# 1482| if (tempBaseObj) {
Error: CPPCHECK_WARNING (CWE-457): [#def1290]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1480: error[uninitvar]: Uninitialized variable: cachePtr
# 1478|
# 1479| if (tempDirObj) {
# 1480|-> TclDecrRefCount(tempDirObj);
# 1481| }
# 1482| if (tempBaseObj) {
Error: CPPCHECK_WARNING (CWE-476): [#def1291]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1483: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1481| }
# 1482| if (tempBaseObj) {
# 1483|-> TclDecrRefCount(tempBaseObj);
# 1484| }
# 1485| if (tempExtObj) {
Error: CPPCHECK_WARNING (CWE-457): [#def1292]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1483: error[uninitvar]: Uninitialized variable: cachePtr
# 1481| }
# 1482| if (tempBaseObj) {
# 1483|-> TclDecrRefCount(tempBaseObj);
# 1484| }
# 1485| if (tempExtObj) {
Error: CPPCHECK_WARNING (CWE-476): [#def1293]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1486: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1484| }
# 1485| if (tempExtObj) {
# 1486|-> TclDecrRefCount(tempExtObj);
# 1487| }
# 1488|
Error: CPPCHECK_WARNING (CWE-457): [#def1294]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1486: error[uninitvar]: Uninitialized variable: cachePtr
# 1484| }
# 1485| if (tempExtObj) {
# 1486|-> TclDecrRefCount(tempExtObj);
# 1487| }
# 1488|
Error: CPPCHECK_WARNING (CWE-476): [#def1295]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1495: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1493| if (chan == NULL) {
# 1494| if (nameVarObj) {
# 1495|-> TclDecrRefCount(nameObj);
# 1496| }
# 1497| Tcl_SetObjResult(interp, Tcl_ObjPrintf(
Error: CPPCHECK_WARNING (CWE-457): [#def1296]
tcl-8.6.14-build/tcl8.6.14/generic/tclFCmd.c:1495: error[uninitvar]: Uninitialized variable: cachePtr
# 1493| if (chan == NULL) {
# 1494| if (nameVarObj) {
# 1495|-> TclDecrRefCount(nameObj);
# 1496| }
# 1497| Tcl_SetObjResult(interp, Tcl_ObjPrintf(
Error: CPPCHECK_WARNING: [#def1297]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1298]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:643: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 641| */
# 642|
# 643|-> TclNewObj(result);
# 644| if (*path == '/') {
# 645| Tcl_Obj *rootElt;
Error: CPPCHECK_WARNING (CWE-457): [#def1299]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:643: error[uninitvar]: Uninitialized variable: cachePtr
# 641| */
# 642|
# 643|-> TclNewObj(result);
# 644| if (*path == '/') {
# 645| Tcl_Obj *rootElt;
Error: CPPCHECK_WARNING (CWE-457): [#def1300]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:643: error[uninitvar]: Uninitialized variable: result
# 641| */
# 642|
# 643|-> TclNewObj(result);
# 644| if (*path == '/') {
# 645| Tcl_Obj *rootElt;
Error: CPPCHECK_WARNING (CWE-476): [#def1301]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:679: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 677| Tcl_Obj *nextElt;
# 678| if ((elementStart[0] == '~') && (elementStart != origPath)) {
# 679|-> TclNewLiteralStringObj(nextElt, "./");
# 680| Tcl_AppendToObj(nextElt, elementStart, length);
# 681| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1302]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:679: error[uninitvar]: Uninitialized variable: cachePtr
# 677| Tcl_Obj *nextElt;
# 678| if ((elementStart[0] == '~') && (elementStart != origPath)) {
# 679|-> TclNewLiteralStringObj(nextElt, "./");
# 680| Tcl_AppendToObj(nextElt, elementStart, length);
# 681| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1303]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:679: error[uninitvar]: Uninitialized variable: nextElt
# 677| Tcl_Obj *nextElt;
# 678| if ((elementStart[0] == '~') && (elementStart != origPath)) {
# 679|-> TclNewLiteralStringObj(nextElt, "./");
# 680| Tcl_AppendToObj(nextElt, elementStart, length);
# 681| } else {
Error: CPPCHECK_WARNING (CWE-476): [#def1304]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:721: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 719| Tcl_DStringInit(&buf);
# 720|
# 721|-> TclNewObj(result);
# 722| p = ExtractWinRoot(path, &buf, 0, &type);
# 723|
Error: CPPCHECK_WARNING (CWE-457): [#def1305]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:721: error[uninitvar]: Uninitialized variable: cachePtr
# 719| Tcl_DStringInit(&buf);
# 720|
# 721|-> TclNewObj(result);
# 722| p = ExtractWinRoot(path, &buf, 0, &type);
# 723|
Error: CPPCHECK_WARNING (CWE-457): [#def1306]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:721: error[uninitvar]: Uninitialized variable: result
# 719| Tcl_DStringInit(&buf);
# 720|
# 721|-> TclNewObj(result);
# 722| p = ExtractWinRoot(path, &buf, 0, &type);
# 723|
Error: CPPCHECK_WARNING (CWE-476): [#def1307]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:750: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 748| || (isalpha(UCHAR(elementStart[0]))
# 749| && elementStart[1] == ':'))) {
# 750|-> TclNewLiteralStringObj(nextElt, "./");
# 751| Tcl_AppendToObj(nextElt, elementStart, length);
# 752| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1308]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:750: error[uninitvar]: Uninitialized variable: cachePtr
# 748| || (isalpha(UCHAR(elementStart[0]))
# 749| && elementStart[1] == ':'))) {
# 750|-> TclNewLiteralStringObj(nextElt, "./");
# 751| Tcl_AppendToObj(nextElt, elementStart, length);
# 752| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1309]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:750: error[uninitvar]: Uninitialized variable: nextElt
# 748| || (isalpha(UCHAR(elementStart[0]))
# 749| && elementStart[1] == ':'))) {
# 750|-> TclNewLiteralStringObj(nextElt, "./");
# 751| Tcl_AppendToObj(nextElt, elementStart, length);
# 752| } else {
Error: CPPCHECK_WARNING (CWE-476): [#def1310]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:969: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 967| */
# 968|
# 969|-> TclNewObj(listObj);
# 970| for (i = 0; i < argc; i++) {
# 971| Tcl_ListObjAppendElement(NULL, listObj,
Error: CPPCHECK_WARNING (CWE-457): [#def1311]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:969: error[uninitvar]: Uninitialized variable: cachePtr
# 967| */
# 968|
# 969|-> TclNewObj(listObj);
# 970| for (i = 0; i < argc; i++) {
# 971| Tcl_ListObjAppendElement(NULL, listObj,
Error: CPPCHECK_WARNING (CWE-457): [#def1312]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:969: error[uninitvar]: Uninitialized variable: listObj
# 967| */
# 968|
# 969|-> TclNewObj(listObj);
# 970| for (i = 0; i < argc; i++) {
# 971| Tcl_ListObjAppendElement(NULL, listObj,
Error: CPPCHECK_WARNING (CWE-476): [#def1313]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:1906: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1904| Tcl_IncrRefCount(savedResultObj);
# 1905| Tcl_ResetResult(interp);
# 1906|-> TclNewObj(filenamesObj);
# 1907| Tcl_IncrRefCount(filenamesObj);
# 1908|
Error: CPPCHECK_WARNING (CWE-457): [#def1314]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:1906: error[uninitvar]: Uninitialized variable: cachePtr
# 1904| Tcl_IncrRefCount(savedResultObj);
# 1905| Tcl_ResetResult(interp);
# 1906|-> TclNewObj(filenamesObj);
# 1907| Tcl_IncrRefCount(filenamesObj);
# 1908|
Error: CPPCHECK_WARNING (CWE-457): [#def1315]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:1906: error[uninitvar]: Uninitialized variable: filenamesObj
# 1904| Tcl_IncrRefCount(savedResultObj);
# 1905| Tcl_ResetResult(interp);
# 1906|-> TclNewObj(filenamesObj);
# 1907| Tcl_IncrRefCount(filenamesObj);
# 1908|
Error: CPPCHECK_WARNING (CWE-476): [#def1316]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:1952: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1950|
# 1951| if (result != TCL_OK) {
# 1952|-> TclDecrRefCount(filenamesObj);
# 1953| TclDecrRefCount(savedResultObj);
# 1954| if (pathPrefix != NULL) {
Error: CPPCHECK_WARNING (CWE-457): [#def1317]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:1952: error[uninitvar]: Uninitialized variable: cachePtr
# 1950|
# 1951| if (result != TCL_OK) {
# 1952|-> TclDecrRefCount(filenamesObj);
# 1953| TclDecrRefCount(savedResultObj);
# 1954| if (pathPrefix != NULL) {
Error: CPPCHECK_WARNING (CWE-476): [#def1318]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:1953: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1951| if (result != TCL_OK) {
# 1952| TclDecrRefCount(filenamesObj);
# 1953|-> TclDecrRefCount(savedResultObj);
# 1954| if (pathPrefix != NULL) {
# 1955| Tcl_DecrRefCount(pathPrefix);
Error: CPPCHECK_WARNING (CWE-457): [#def1319]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:1953: error[uninitvar]: Uninitialized variable: cachePtr
# 1951| if (result != TCL_OK) {
# 1952| TclDecrRefCount(filenamesObj);
# 1953|-> TclDecrRefCount(savedResultObj);
# 1954| if (pathPrefix != NULL) {
# 1955| Tcl_DecrRefCount(pathPrefix);
Error: CPPCHECK_WARNING (CWE-476): [#def1320]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:2009: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2007| if ((pattern[0] == '\0')
# 2008| || (strchr(separators, pattern[0]) == NULL)) {
# 2009|-> TclNewLiteralStringObj(elem, ".");
# 2010| } else {
# 2011| TclNewLiteralStringObj(elem, "/");
Error: CPPCHECK_WARNING (CWE-457): [#def1321]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:2009: error[uninitvar]: Uninitialized variable: cachePtr
# 2007| if ((pattern[0] == '\0')
# 2008| || (strchr(separators, pattern[0]) == NULL)) {
# 2009|-> TclNewLiteralStringObj(elem, ".");
# 2010| } else {
# 2011| TclNewLiteralStringObj(elem, "/");
Error: CPPCHECK_WARNING (CWE-457): [#def1322]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:2009: error[uninitvar]: Uninitialized variable: elem
# 2007| if ((pattern[0] == '\0')
# 2008| || (strchr(separators, pattern[0]) == NULL)) {
# 2009|-> TclNewLiteralStringObj(elem, ".");
# 2010| } else {
# 2011| TclNewLiteralStringObj(elem, "/");
Error: CPPCHECK_WARNING (CWE-476): [#def1323]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:2011: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2009| TclNewLiteralStringObj(elem, ".");
# 2010| } else {
# 2011|-> TclNewLiteralStringObj(elem, "/");
# 2012| }
# 2013| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1324]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:2011: error[uninitvar]: Uninitialized variable: (elem)->internalRep.twoPtrValue.ptr1
# 2009| TclNewLiteralStringObj(elem, ".");
# 2010| } else {
# 2011|-> TclNewLiteralStringObj(elem, "/");
# 2012| }
# 2013| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1325]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:2011: error[uninitvar]: Uninitialized variable: cachePtr
# 2009| TclNewLiteralStringObj(elem, ".");
# 2010| } else {
# 2011|-> TclNewLiteralStringObj(elem, "/");
# 2012| }
# 2013| } else {
Error: CPPCHECK_WARNING (CWE-476): [#def1326]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:2027: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2025|
# 2026| if (Tcl_IsShared(savedResultObj)) {
# 2027|-> TclDecrRefCount(savedResultObj);
# 2028| savedResultObj = Tcl_DuplicateObj(savedResultObj);
# 2029| Tcl_IncrRefCount(savedResultObj);
Error: CPPCHECK_WARNING (CWE-457): [#def1327]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:2027: error[uninitvar]: Uninitialized variable: cachePtr
# 2025|
# 2026| if (Tcl_IsShared(savedResultObj)) {
# 2027|-> TclDecrRefCount(savedResultObj);
# 2028| savedResultObj = Tcl_DuplicateObj(savedResultObj);
# 2029| Tcl_IncrRefCount(savedResultObj);
Error: CPPCHECK_WARNING (CWE-476): [#def1328]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:2036: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2034| Tcl_SetObjResult(interp, savedResultObj);
# 2035| }
# 2036|-> TclDecrRefCount(savedResultObj);
# 2037| TclDecrRefCount(filenamesObj);
# 2038| if (pathPrefix != NULL) {
Error: CPPCHECK_WARNING (CWE-457): [#def1329]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:2036: error[uninitvar]: Uninitialized variable: cachePtr
# 2034| Tcl_SetObjResult(interp, savedResultObj);
# 2035| }
# 2036|-> TclDecrRefCount(savedResultObj);
# 2037| TclDecrRefCount(filenamesObj);
# 2038| if (pathPrefix != NULL) {
Error: CPPCHECK_WARNING (CWE-476): [#def1330]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:2037: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2035| }
# 2036| TclDecrRefCount(savedResultObj);
# 2037|-> TclDecrRefCount(filenamesObj);
# 2038| if (pathPrefix != NULL) {
# 2039| Tcl_DecrRefCount(pathPrefix);
Error: CPPCHECK_WARNING (CWE-457): [#def1331]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:2037: error[uninitvar]: Uninitialized variable: cachePtr
# 2035| }
# 2036| TclDecrRefCount(savedResultObj);
# 2037|-> TclDecrRefCount(filenamesObj);
# 2038| if (pathPrefix != NULL) {
# 2039| Tcl_DecrRefCount(pathPrefix);
Error: CPPCHECK_WARNING (CWE-476): [#def1332]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:2318: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2316|
# 2317| *p = '\0';
# 2318|-> TclNewObj(subdirsPtr);
# 2319| Tcl_IncrRefCount(subdirsPtr);
# 2320| result = Tcl_FSMatchInDirectory(interp, subdirsPtr, pathPtr,
Error: CPPCHECK_WARNING (CWE-457): [#def1333]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:2318: error[uninitvar]: Uninitialized variable: cachePtr
# 2316|
# 2317| *p = '\0';
# 2318|-> TclNewObj(subdirsPtr);
# 2319| Tcl_IncrRefCount(subdirsPtr);
# 2320| result = Tcl_FSMatchInDirectory(interp, subdirsPtr, pathPtr,
Error: CPPCHECK_WARNING (CWE-457): [#def1334]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:2318: error[uninitvar]: Uninitialized variable: subdirsPtr
# 2316|
# 2317| *p = '\0';
# 2318|-> TclNewObj(subdirsPtr);
# 2319| Tcl_IncrRefCount(subdirsPtr);
# 2320| result = Tcl_FSMatchInDirectory(interp, subdirsPtr, pathPtr,
Error: CPPCHECK_WARNING (CWE-476): [#def1335]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:2363: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2361| }
# 2362| }
# 2363|-> TclDecrRefCount(subdirsPtr);
# 2364| return result;
# 2365| }
Error: CPPCHECK_WARNING (CWE-457): [#def1336]
tcl-8.6.14-build/tcl8.6.14/generic/tclFileName.c:2363: error[uninitvar]: Uninitialized variable: cachePtr
# 2361| }
# 2362| }
# 2363|-> TclDecrRefCount(subdirsPtr);
# 2364| return result;
# 2365| }
Error: CPPCHECK_WARNING: [#def1337]
tcl-8.6.14-build/tcl8.6.14/generic/tclHash.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1338]
tcl-8.6.14-build/tcl8.6.14/generic/tclHash.c: scope_hint: In function ‘RebuildTable’
tcl-8.6.14-build/tcl8.6.14/generic/tclHash.c:1059:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newChainPtr’
tcl-8.6.14-build/tcl8.6.14/generic/tclPort.h:23: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:36: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tclHash.c:14: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixPort.h:682:57: note: in definition of macro ‘TclpSysAlloc’
tcl-8.6.14-build/tcl8.6.14/generic/tclHash.c:1051:48: note: in expansion of macro ‘TclpSysAlloc’
# 1057| for (count = tablePtr->numBuckets, newChainPtr = tablePtr->buckets;
# 1058| count > 0; count--, newChainPtr++) {
# 1059|-> *newChainPtr = NULL;
# 1060| }
# 1061| tablePtr->rebuildSize *= 4;
Error: CPPCHECK_WARNING: [#def1339]
tcl-8.6.14-build/tcl8.6.14/generic/tclHistory.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1340]
tcl-8.6.14-build/tcl8.6.14/generic/tclHistory.c:143: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 141| if (histObjsPtr == NULL) {
# 142| histObjsPtr = ckalloc(sizeof(HistoryObjs));
# 143|-> TclNewLiteralStringObj(histObjsPtr->historyObj, "::history");
# 144| TclNewLiteralStringObj(histObjsPtr->addObj, "add");
# 145| Tcl_IncrRefCount(histObjsPtr->historyObj);
Error: CPPCHECK_WARNING (CWE-457): [#def1341]
tcl-8.6.14-build/tcl8.6.14/generic/tclHistory.c:143: error[uninitvar]: Uninitialized variable: cachePtr
# 141| if (histObjsPtr == NULL) {
# 142| histObjsPtr = ckalloc(sizeof(HistoryObjs));
# 143|-> TclNewLiteralStringObj(histObjsPtr->historyObj, "::history");
# 144| TclNewLiteralStringObj(histObjsPtr->addObj, "add");
# 145| Tcl_IncrRefCount(histObjsPtr->historyObj);
Error: CPPCHECK_WARNING (CWE-457): [#def1342]
tcl-8.6.14-build/tcl8.6.14/generic/tclHistory.c:143: error[uninitvar]: Uninitialized variable: histObjsPtr->historyObj
# 141| if (histObjsPtr == NULL) {
# 142| histObjsPtr = ckalloc(sizeof(HistoryObjs));
# 143|-> TclNewLiteralStringObj(histObjsPtr->historyObj, "::history");
# 144| TclNewLiteralStringObj(histObjsPtr->addObj, "add");
# 145| Tcl_IncrRefCount(histObjsPtr->historyObj);
Error: CPPCHECK_WARNING (CWE-476): [#def1343]
tcl-8.6.14-build/tcl8.6.14/generic/tclHistory.c:144: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 142| histObjsPtr = ckalloc(sizeof(HistoryObjs));
# 143| TclNewLiteralStringObj(histObjsPtr->historyObj, "::history");
# 144|-> TclNewLiteralStringObj(histObjsPtr->addObj, "add");
# 145| Tcl_IncrRefCount(histObjsPtr->historyObj);
# 146| Tcl_IncrRefCount(histObjsPtr->addObj);
Error: CPPCHECK_WARNING (CWE-457): [#def1344]
tcl-8.6.14-build/tcl8.6.14/generic/tclHistory.c:144: error[uninitvar]: Uninitialized variable: cachePtr
# 142| histObjsPtr = ckalloc(sizeof(HistoryObjs));
# 143| TclNewLiteralStringObj(histObjsPtr->historyObj, "::history");
# 144|-> TclNewLiteralStringObj(histObjsPtr->addObj, "add");
# 145| Tcl_IncrRefCount(histObjsPtr->historyObj);
# 146| Tcl_IncrRefCount(histObjsPtr->addObj);
Error: CPPCHECK_WARNING (CWE-457): [#def1345]
tcl-8.6.14-build/tcl8.6.14/generic/tclHistory.c:144: error[uninitvar]: Uninitialized variable: histObjsPtr->addObj
# 142| histObjsPtr = ckalloc(sizeof(HistoryObjs));
# 143| TclNewLiteralStringObj(histObjsPtr->historyObj, "::history");
# 144|-> TclNewLiteralStringObj(histObjsPtr->addObj, "add");
# 145| Tcl_IncrRefCount(histObjsPtr->historyObj);
# 146| Tcl_IncrRefCount(histObjsPtr->addObj);
Error: CPPCHECK_WARNING (CWE-476): [#def1346]
tcl-8.6.14-build/tcl8.6.14/generic/tclHistory.c:220: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 218| HistoryObjs *histObjsPtr = clientData;
# 219|
# 220|-> TclDecrRefCount(histObjsPtr->historyObj);
# 221| TclDecrRefCount(histObjsPtr->addObj);
# 222| ckfree(histObjsPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1347]
tcl-8.6.14-build/tcl8.6.14/generic/tclHistory.c:220: error[uninitvar]: Uninitialized variable: cachePtr
# 218| HistoryObjs *histObjsPtr = clientData;
# 219|
# 220|-> TclDecrRefCount(histObjsPtr->historyObj);
# 221| TclDecrRefCount(histObjsPtr->addObj);
# 222| ckfree(histObjsPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1348]
tcl-8.6.14-build/tcl8.6.14/generic/tclHistory.c:221: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 219|
# 220| TclDecrRefCount(histObjsPtr->historyObj);
# 221|-> TclDecrRefCount(histObjsPtr->addObj);
# 222| ckfree(histObjsPtr);
# 223| }
Error: CPPCHECK_WARNING (CWE-457): [#def1349]
tcl-8.6.14-build/tcl8.6.14/generic/tclHistory.c:221: error[uninitvar]: Uninitialized variable: cachePtr
# 219|
# 220| TclDecrRefCount(histObjsPtr->historyObj);
# 221|-> TclDecrRefCount(histObjsPtr->addObj);
# 222| ckfree(histObjsPtr);
# 223| }
Error: CPPCHECK_WARNING: [#def1350]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1351]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c:166: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 164| if (!tsdPtr->initialized) {
# 165| tsdPtr->initialized = 1;
# 166|-> TclNewLiteralStringObj(tsdPtr->stdoutObjPtr, "stdout");
# 167| Tcl_IncrRefCount(tsdPtr->stdoutObjPtr);
# 168| Tcl_CreateThreadExitHandler(FinalizeIOCmdTSD, NULL);
Error: CPPCHECK_WARNING (CWE-457): [#def1352]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c:166: error[uninitvar]: Uninitialized variable: cachePtr
# 164| if (!tsdPtr->initialized) {
# 165| tsdPtr->initialized = 1;
# 166|-> TclNewLiteralStringObj(tsdPtr->stdoutObjPtr, "stdout");
# 167| Tcl_IncrRefCount(tsdPtr->stdoutObjPtr);
# 168| Tcl_CreateThreadExitHandler(FinalizeIOCmdTSD, NULL);
Error: CPPCHECK_WARNING (CWE-457): [#def1353]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c:166: error[uninitvar]: Uninitialized variable: tsdPtr->stdoutObjPtr
# 164| if (!tsdPtr->initialized) {
# 165| tsdPtr->initialized = 1;
# 166|-> TclNewLiteralStringObj(tsdPtr->stdoutObjPtr, "stdout");
# 167| Tcl_IncrRefCount(tsdPtr->stdoutObjPtr);
# 168| Tcl_CreateThreadExitHandler(FinalizeIOCmdTSD, NULL);
Error: CPPCHECK_WARNING (CWE-476): [#def1354]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c:324: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 322|
# 323| TclChannelPreserve(chan);
# 324|-> TclNewObj(linePtr);
# 325| lineLen = Tcl_GetsObj(chan, linePtr);
# 326| if (lineLen < 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def1355]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c:324: error[uninitvar]: Uninitialized variable: cachePtr
# 322|
# 323| TclChannelPreserve(chan);
# 324|-> TclNewObj(linePtr);
# 325| lineLen = Tcl_GetsObj(chan, linePtr);
# 326| if (lineLen < 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def1356]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c:324: error[uninitvar]: Uninitialized variable: linePtr
# 322|
# 323| TclChannelPreserve(chan);
# 324|-> TclNewObj(linePtr);
# 325| lineLen = Tcl_GetsObj(chan, linePtr);
# 326| if (lineLen < 0) {
Error: CPPCHECK_WARNING (CWE-476): [#def1357]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c:460: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 458| }
# 459|
# 460|-> TclNewObj(resultPtr);
# 461| Tcl_IncrRefCount(resultPtr);
# 462| TclChannelPreserve(chan);
Error: CPPCHECK_WARNING (CWE-457): [#def1358]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c:460: error[uninitvar]: Uninitialized variable: cachePtr
# 458| }
# 459|
# 460|-> TclNewObj(resultPtr);
# 461| Tcl_IncrRefCount(resultPtr);
# 462| TclChannelPreserve(chan);
Error: CPPCHECK_WARNING (CWE-457): [#def1359]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c:460: error[uninitvar]: Uninitialized variable: resultPtr
# 458| }
# 459|
# 460|-> TclNewObj(resultPtr);
# 461| Tcl_IncrRefCount(resultPtr);
# 462| TclChannelPreserve(chan);
Error: CPPCHECK_WARNING (CWE-476): [#def1360]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c:988: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 986| }
# 987|
# 988|-> TclNewObj(resultPtr);
# 989| if (Tcl_GetChannelHandle(chan, TCL_READABLE, NULL) == TCL_OK) {
# 990| if (Tcl_ReadChars(chan, resultPtr, -1, 0) < 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def1361]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c:988: error[uninitvar]: Uninitialized variable: cachePtr
# 986| }
# 987|
# 988|-> TclNewObj(resultPtr);
# 989| if (Tcl_GetChannelHandle(chan, TCL_READABLE, NULL) == TCL_OK) {
# 990| if (Tcl_ReadChars(chan, resultPtr, -1, 0) < 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def1362]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c:988: error[uninitvar]: Uninitialized variable: resultPtr
# 986| }
# 987|
# 988|-> TclNewObj(resultPtr);
# 989| if (Tcl_GetChannelHandle(chan, TCL_READABLE, NULL) == TCL_OK) {
# 990| if (Tcl_ReadChars(chan, resultPtr, -1, 0) < 0) {
Error: CPPCHECK_WARNING (CWE-476): [#def1363]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c:1133: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1131| Tcl_Obj *permObj;
# 1132|
# 1133|-> TclNewLiteralStringObj(permObj, "0o");
# 1134| Tcl_AppendToObj(permObj, permString+scanned+1, -1);
# 1135| code = TclGetIntFromObj(NULL, permObj, &prot);
Error: CPPCHECK_WARNING (CWE-457): [#def1364]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c:1133: error[uninitvar]: Uninitialized variable: cachePtr
# 1131| Tcl_Obj *permObj;
# 1132|
# 1133|-> TclNewLiteralStringObj(permObj, "0o");
# 1134| Tcl_AppendToObj(permObj, permString+scanned+1, -1);
# 1135| code = TclGetIntFromObj(NULL, permObj, &prot);
Error: CPPCHECK_WARNING (CWE-457): [#def1365]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c:1133: error[uninitvar]: Uninitialized variable: permObj
# 1131| Tcl_Obj *permObj;
# 1132|
# 1133|-> TclNewLiteralStringObj(permObj, "0o");
# 1134| Tcl_AppendToObj(permObj, permString+scanned+1, -1);
# 1135| code = TclGetIntFromObj(NULL, permObj, &prot);
Error: CPPCHECK_WARNING (CWE-476): [#def1366]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c:1900: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1898| channelNames[1] = Tcl_GetChannelName(wchan);
# 1899|
# 1900|-> TclNewObj(resultPtr);
# 1901| Tcl_ListObjAppendElement(NULL, resultPtr,
# 1902| Tcl_NewStringObj(channelNames[0], -1));
Error: CPPCHECK_WARNING (CWE-457): [#def1367]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c:1900: error[uninitvar]: Uninitialized variable: cachePtr
# 1898| channelNames[1] = Tcl_GetChannelName(wchan);
# 1899|
# 1900|-> TclNewObj(resultPtr);
# 1901| Tcl_ListObjAppendElement(NULL, resultPtr,
# 1902| Tcl_NewStringObj(channelNames[0], -1));
Error: CPPCHECK_WARNING (CWE-457): [#def1368]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOCmd.c:1900: error[uninitvar]: Uninitialized variable: resultPtr
# 1898| channelNames[1] = Tcl_GetChannelName(wchan);
# 1899|
# 1900|-> TclNewObj(resultPtr);
# 1901| Tcl_ListObjAppendElement(NULL, resultPtr,
# 1902| Tcl_NewStringObj(channelNames[0], -1));
Error: CLANG_WARNING: [#def1369]
tcl-8.6.14-build/tcl8.6.14/generic/tclIORChan.c:538:5: warning[deadcode.DeadStores]: Value stored to 'modeObj' is never read
# 536| */
# 537|
# 538|-> modeObj = objv[MODE];
# 539| if (EncodeEventMask(interp, "mode", objv[MODE], &mode) != TCL_OK) {
# 540| return TCL_ERROR;
Error: CLANG_WARNING: [#def1370]
tcl-8.6.14-build/tcl8.6.14/generic/tclIORChan.c:1154:13: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1152|
# 1153| ForwardOpToHandlerThread(rcPtr, ForwardedClose, &p);
# 1154|-> result = p.base.code;
# 1155|
# 1156| /*
Error: CLANG_WARNING: [#def1371]
tcl-8.6.14-build/tcl8.6.14/generic/tclIORChan.c:1186:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1184|
# 1185| ForwardOpToHandlerThread(rcPtr, ForwardedClose, &p);
# 1186|-> result = p.base.code;
# 1187|
# 1188| /*
Error: CLANG_WARNING: [#def1372]
tcl-8.6.14-build/tcl8.6.14/generic/tclIORTrans.c:919:13: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 917|
# 918| ForwardOpToOwnerThread(rtPtr, ForwardedClose, &p);
# 919|-> result = p.base.code;
# 920|
# 921| if (result != TCL_OK) {
Error: CLANG_WARNING: [#def1373]
tcl-8.6.14-build/tcl8.6.14/generic/tclIORTrans.c:976:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 974|
# 975| ForwardOpToOwnerThread(rtPtr, ForwardedClose, &p);
# 976|-> result = p.base.code;
# 977|
# 978| Tcl_EventuallyFree(rtPtr, FreeReflectedTransform);
Error: CLANG_WARNING: [#def1374]
tcl-8.6.14-build/tcl8.6.14/generic/tclIORTrans.c:3234:18: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 3232| ForwardOpToOwnerThread(rtPtr, ForwardedDrain, &p);
# 3233|
# 3234|-> if (p.base.code != TCL_OK) {
# 3235| PassReceivedError(rtPtr->chan, &p);
# 3236| *errorCodePtr = EINVAL;
Error: CLANG_WARNING: [#def1375]
tcl-8.6.14-build/tcl8.6.14/generic/tclIORTrans.c:3284:18: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 3282| ForwardOpToOwnerThread(rtPtr, ForwardedFlush, &p);
# 3283|
# 3284|-> if (p.base.code != TCL_OK) {
# 3285| PassReceivedError(rtPtr->chan, &p);
# 3286| *errorCodePtr = EINVAL;
Error: CLANG_WARNING: [#def1376]
tcl-8.6.14-build/tcl8.6.14/generic/tclIORTrans.c:3371:18: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 3369| ForwardOpToOwnerThread(rtPtr, ForwardedLimit, &p);
# 3370|
# 3371|-> if (p.base.code != TCL_OK) {
# 3372| PassReceivedError(rtPtr->chan, &p);
# 3373| *errorCodePtr = EINVAL;
Error: CPPCHECK_WARNING: [#def1377]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOSock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1378]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1379]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:1120: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1118| fsPtr = Tcl_FSGetFileSystemForPath(cwd);
# 1119| if (fsPtr != NULL && fsPtr->matchInDirectoryProc != NULL) {
# 1120|-> TclNewObj(tmpResultPtr);
# 1121| Tcl_IncrRefCount(tmpResultPtr);
# 1122| ret = fsPtr->matchInDirectoryProc(interp, tmpResultPtr, cwd, pattern,
Error: CPPCHECK_WARNING (CWE-457): [#def1380]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:1120: error[uninitvar]: Uninitialized variable: cachePtr
# 1118| fsPtr = Tcl_FSGetFileSystemForPath(cwd);
# 1119| if (fsPtr != NULL && fsPtr->matchInDirectoryProc != NULL) {
# 1120|-> TclNewObj(tmpResultPtr);
# 1121| Tcl_IncrRefCount(tmpResultPtr);
# 1122| ret = fsPtr->matchInDirectoryProc(interp, tmpResultPtr, cwd, pattern,
Error: CPPCHECK_WARNING (CWE-457): [#def1381]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:1120: error[uninitvar]: Uninitialized variable: tmpResultPtr
# 1118| fsPtr = Tcl_FSGetFileSystemForPath(cwd);
# 1119| if (fsPtr != NULL && fsPtr->matchInDirectoryProc != NULL) {
# 1120|-> TclNewObj(tmpResultPtr);
# 1121| Tcl_IncrRefCount(tmpResultPtr);
# 1122| ret = fsPtr->matchInDirectoryProc(interp, tmpResultPtr, cwd, pattern,
Error: CPPCHECK_WARNING (CWE-476): [#def1382]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:1138: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1136| }
# 1137| }
# 1138|-> TclDecrRefCount(tmpResultPtr);
# 1139| }
# 1140| Tcl_DecrRefCount(cwd);
Error: CPPCHECK_WARNING (CWE-457): [#def1383]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:1138: error[uninitvar]: Uninitialized variable: cachePtr
# 1136| }
# 1137| }
# 1138|-> TclDecrRefCount(tmpResultPtr);
# 1139| }
# 1140| Tcl_DecrRefCount(cwd);
Error: CPPCHECK_WARNING (CWE-476): [#def1384]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:1778: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1776| }
# 1777|
# 1778|-> TclNewObj(objPtr);
# 1779| Tcl_IncrRefCount(objPtr);
# 1780|
Error: CPPCHECK_WARNING (CWE-457): [#def1385]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:1778: error[uninitvar]: Uninitialized variable: cachePtr
# 1776| }
# 1777|
# 1778|-> TclNewObj(objPtr);
# 1779| Tcl_IncrRefCount(objPtr);
# 1780|
Error: CPPCHECK_WARNING (CWE-457): [#def1386]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:1778: error[uninitvar]: Uninitialized variable: objPtr
# 1776| }
# 1777|
# 1778|-> TclNewObj(objPtr);
# 1779| Tcl_IncrRefCount(objPtr);
# 1780|
Error: CPPCHECK_WARNING (CWE-476): [#def1387]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:1912: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1910| }
# 1911|
# 1912|-> TclNewObj(objPtr);
# 1913| Tcl_IncrRefCount(objPtr);
# 1914|
Error: CPPCHECK_WARNING (CWE-457): [#def1388]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:1912: error[uninitvar]: Uninitialized variable: cachePtr
# 1910| }
# 1911|
# 1912|-> TclNewObj(objPtr);
# 1913| Tcl_IncrRefCount(objPtr);
# 1914|
Error: CPPCHECK_WARNING (CWE-457): [#def1389]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:1912: error[uninitvar]: Uninitialized variable: objPtr
# 1910| }
# 1911|
# 1912|-> TclNewObj(objPtr);
# 1913| Tcl_IncrRefCount(objPtr);
# 1914|
Error: CPPCHECK_WARNING (CWE-476): [#def1390]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:2508: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2506| result = Tcl_GetIndexFromObj(NULL, tmpObj, attrTable, NULL, TCL_EXACT,
# 2507| indexPtr);
# 2508|-> TclDecrRefCount(tmpObj);
# 2509| if (listObj != NULL) {
# 2510| TclDecrRefCount(listObj);
Error: CPPCHECK_WARNING (CWE-457): [#def1391]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:2508: error[uninitvar]: Uninitialized variable: cachePtr
# 2506| result = Tcl_GetIndexFromObj(NULL, tmpObj, attrTable, NULL, TCL_EXACT,
# 2507| indexPtr);
# 2508|-> TclDecrRefCount(tmpObj);
# 2509| if (listObj != NULL) {
# 2510| TclDecrRefCount(listObj);
Error: CPPCHECK_WARNING (CWE-476): [#def1392]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:2510: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2508| TclDecrRefCount(tmpObj);
# 2509| if (listObj != NULL) {
# 2510|-> TclDecrRefCount(listObj);
# 2511| }
# 2512| return result;
Error: CPPCHECK_WARNING (CWE-457): [#def1393]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:2510: error[uninitvar]: Uninitialized variable: cachePtr
# 2508| TclDecrRefCount(tmpObj);
# 2509| if (listObj != NULL) {
# 2510|-> TclDecrRefCount(listObj);
# 2511| }
# 2512| return result;
Error: CPPCHECK_WARNING (CWE-457): [#def1394]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:2521: error[legacyUninitvar]: Uninitialized variable: *(&objv)
# 2519| Tcl_Obj **objv;
# 2520|
# 2521|-> if (TclListObjGetElements(NULL, listObj, &objc, &objv) != TCL_OK) {
# 2522| TclDecrRefCount(listObj);
# 2523| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def1395]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:2522: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2520|
# 2521| if (TclListObjGetElements(NULL, listObj, &objc, &objv) != TCL_OK) {
# 2522|-> TclDecrRefCount(listObj);
# 2523| return TCL_ERROR;
# 2524| }
Error: CPPCHECK_WARNING (CWE-457): [#def1396]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:2522: error[uninitvar]: Uninitialized variable: cachePtr
# 2520|
# 2521| if (TclListObjGetElements(NULL, listObj, &objc, &objv) != TCL_OK) {
# 2522|-> TclDecrRefCount(listObj);
# 2523| return TCL_ERROR;
# 2524| }
Error: CPPCHECK_WARNING (CWE-476): [#def1397]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:2527: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2525| for (i=0 ; i<objc ; i++) {
# 2526| if (!strcmp(attributeName, TclGetString(objv[i]))) {
# 2527|-> TclDecrRefCount(listObj);
# 2528| *indexPtr = i;
# 2529| return TCL_OK;
Error: CPPCHECK_WARNING (CWE-457): [#def1398]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:2527: error[uninitvar]: Uninitialized variable: cachePtr
# 2525| for (i=0 ; i<objc ; i++) {
# 2526| if (!strcmp(attributeName, TclGetString(objv[i]))) {
# 2527|-> TclDecrRefCount(listObj);
# 2528| *indexPtr = i;
# 2529| return TCL_OK;
Error: CPPCHECK_WARNING (CWE-476): [#def1399]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:2532: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2530| }
# 2531| }
# 2532|-> TclDecrRefCount(listObj);
# 2533| return TCL_ERROR;
# 2534| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1400]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:2532: error[uninitvar]: Uninitialized variable: cachePtr
# 2530| }
# 2531| }
# 2532|-> TclDecrRefCount(listObj);
# 2533| return TCL_ERROR;
# 2534| } else {
Error: CPPCHECK_WARNING (CWE-476): [#def1401]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:3387: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3385| Tcl_Obj *perm;
# 3386|
# 3387|-> TclNewLiteralStringObj(perm, "0700");
# 3388| Tcl_IncrRefCount(perm);
# 3389| if (TclFSFileAttrIndex(copyToPtr, "-permissions", &index) == TCL_OK) {
Error: CPPCHECK_WARNING (CWE-457): [#def1402]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:3387: error[uninitvar]: Uninitialized variable: cachePtr
# 3385| Tcl_Obj *perm;
# 3386|
# 3387|-> TclNewLiteralStringObj(perm, "0700");
# 3388| Tcl_IncrRefCount(perm);
# 3389| if (TclFSFileAttrIndex(copyToPtr, "-permissions", &index) == TCL_OK) {
Error: CPPCHECK_WARNING (CWE-457): [#def1403]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:3387: error[uninitvar]: Uninitialized variable: perm
# 3385| Tcl_Obj *perm;
# 3386|
# 3387|-> TclNewLiteralStringObj(perm, "0700");
# 3388| Tcl_IncrRefCount(perm);
# 3389| if (TclFSFileAttrIndex(copyToPtr, "-permissions", &index) == TCL_OK) {
Error: CPPCHECK_WARNING (CWE-476): [#def1404]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:3790: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3788| Tcl_Obj *resultPtr;
# 3789|
# 3790|-> TclNewObj(resultPtr);
# 3791| /*
# 3792| * Call each of the "listVolumes" function in succession. A non-NULL
Error: CPPCHECK_WARNING (CWE-457): [#def1405]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:3790: error[uninitvar]: Uninitialized variable: cachePtr
# 3788| Tcl_Obj *resultPtr;
# 3789|
# 3790|-> TclNewObj(resultPtr);
# 3791| /*
# 3792| * Call each of the "listVolumes" function in succession. A non-NULL
Error: CPPCHECK_WARNING (CWE-457): [#def1406]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:3790: error[uninitvar]: Uninitialized variable: resultPtr
# 3788| Tcl_Obj *resultPtr;
# 3789|
# 3790|-> TclNewObj(resultPtr);
# 3791| /*
# 3792| * Call each of the "listVolumes" function in succession. A non-NULL
Error: CPPCHECK_WARNING (CWE-476): [#def1407]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:3856: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3854| fsRecPtr->fsPtr->matchInDirectoryProc != NULL) {
# 3855| if (resultPtr == NULL) {
# 3856|-> TclNewObj(resultPtr);
# 3857| }
# 3858| fsRecPtr->fsPtr->matchInDirectoryProc(NULL, resultPtr, pathPtr,
Error: CPPCHECK_WARNING (CWE-457): [#def1408]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:3856: error[uninitvar]: Uninitialized variable: cachePtr
# 3854| fsRecPtr->fsPtr->matchInDirectoryProc != NULL) {
# 3855| if (resultPtr == NULL) {
# 3856|-> TclNewObj(resultPtr);
# 3857| }
# 3858| fsRecPtr->fsPtr->matchInDirectoryProc(NULL, resultPtr, pathPtr,
Error: CPPCHECK_WARNING (CWE-457): [#def1409]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:3856: error[uninitvar]: Uninitialized variable: resultPtr
# 3854| fsRecPtr->fsPtr->matchInDirectoryProc != NULL) {
# 3855| if (resultPtr == NULL) {
# 3856|-> TclNewObj(resultPtr);
# 3857| }
# 3858| fsRecPtr->fsPtr->matchInDirectoryProc(NULL, resultPtr, pathPtr,
Error: CPPCHECK_WARNING (CWE-476): [#def1410]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:3932: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3930| */
# 3931|
# 3932|-> TclNewObj(result);
# 3933| p = Tcl_GetString(pathPtr);
# 3934| Tcl_ListObjAppendElement(NULL, result,
Error: CPPCHECK_WARNING (CWE-457): [#def1411]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:3932: error[uninitvar]: Uninitialized variable: cachePtr
# 3930| */
# 3931|
# 3932|-> TclNewObj(result);
# 3933| p = Tcl_GetString(pathPtr);
# 3934| Tcl_ListObjAppendElement(NULL, result,
Error: CPPCHECK_WARNING (CWE-457): [#def1412]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:3932: error[uninitvar]: Uninitialized variable: result
# 3930| */
# 3931|
# 3932|-> TclNewObj(result);
# 3933| p = Tcl_GetString(pathPtr);
# 3934| Tcl_ListObjAppendElement(NULL, result,
Error: CPPCHECK_WARNING (CWE-476): [#def1413]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:3954: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3952|
# 3953| if (elementStart[0] == '~') {
# 3954|-> TclNewLiteralStringObj(nextElt, "./");
# 3955| Tcl_AppendToObj(nextElt, elementStart, length);
# 3956| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1414]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:3954: error[uninitvar]: Uninitialized variable: cachePtr
# 3952|
# 3953| if (elementStart[0] == '~') {
# 3954|-> TclNewLiteralStringObj(nextElt, "./");
# 3955| Tcl_AppendToObj(nextElt, elementStart, length);
# 3956| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1415]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:3954: error[uninitvar]: Uninitialized variable: nextElt
# 3952|
# 3953| if (elementStart[0] == '~') {
# 3954|-> TclNewLiteralStringObj(nextElt, "./");
# 3955| Tcl_AppendToObj(nextElt, elementStart, length);
# 3956| } else {
Error: CPPCHECK_WARNING (CWE-476): [#def1416]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:4723: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4721| */
# 4722|
# 4723|-> TclNewLiteralStringObj(resultObj, "/");
# 4724| return resultObj;
# 4725| }
Error: CPPCHECK_WARNING (CWE-457): [#def1417]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:4723: error[uninitvar]: Uninitialized variable: cachePtr
# 4721| */
# 4722|
# 4723|-> TclNewLiteralStringObj(resultObj, "/");
# 4724| return resultObj;
# 4725| }
Error: CPPCHECK_WARNING (CWE-457): [#def1418]
tcl-8.6.14-build/tcl8.6.14/generic/tclIOUtil.c:4723: error[uninitvar]: Uninitialized variable: resultObj
# 4721| */
# 4722|
# 4723|-> TclNewLiteralStringObj(resultObj, "/");
# 4724| return resultObj;
# 4725| }
Error: CPPCHECK_WARNING: [#def1419]
tcl-8.6.14-build/tcl8.6.14/generic/tclIndexObj.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1420]
tcl-8.6.14-build/tcl8.6.14/generic/tclIndexObj.c:369: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 367| int count = 0;
# 368|
# 369|-> TclNewObj(resultPtr);
# 370| entryPtr = (const char *const *)tablePtr;
# 371| while ((*entryPtr != NULL) && !**entryPtr) {
Error: CPPCHECK_WARNING (CWE-457): [#def1421]
tcl-8.6.14-build/tcl8.6.14/generic/tclIndexObj.c:369: error[uninitvar]: Uninitialized variable: cachePtr
# 367| int count = 0;
# 368|
# 369|-> TclNewObj(resultPtr);
# 370| entryPtr = (const char *const *)tablePtr;
# 371| while ((*entryPtr != NULL) && !**entryPtr) {
Error: CPPCHECK_WARNING (CWE-457): [#def1422]
tcl-8.6.14-build/tcl8.6.14/generic/tclIndexObj.c:369: error[uninitvar]: Uninitialized variable: resultPtr
# 367| int count = 0;
# 368|
# 369|-> TclNewObj(resultPtr);
# 370| entryPtr = (const char *const *)tablePtr;
# 371| while ((*entryPtr != NULL) && !**entryPtr) {
Error: CPPCHECK_WARNING (CWE-476): [#def1423]
tcl-8.6.14-build/tcl8.6.14/generic/tclIndexObj.c:879: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 877| #endif /* AVOID_HACKS_FOR_ITCL */
# 878|
# 879|-> TclNewObj(objPtr);
# 880| if (iPtr->flags & INTERP_ALTERNATE_WRONG_ARGS) {
# 881| iPtr->flags &= ~INTERP_ALTERNATE_WRONG_ARGS;
Error: CPPCHECK_WARNING (CWE-457): [#def1424]
tcl-8.6.14-build/tcl8.6.14/generic/tclIndexObj.c:879: error[uninitvar]: Uninitialized variable: cachePtr
# 877| #endif /* AVOID_HACKS_FOR_ITCL */
# 878|
# 879|-> TclNewObj(objPtr);
# 880| if (iPtr->flags & INTERP_ALTERNATE_WRONG_ARGS) {
# 881| iPtr->flags &= ~INTERP_ALTERNATE_WRONG_ARGS;
Error: CPPCHECK_WARNING (CWE-457): [#def1425]
tcl-8.6.14-build/tcl8.6.14/generic/tclIndexObj.c:879: error[uninitvar]: Uninitialized variable: objPtr
# 877| #endif /* AVOID_HACKS_FOR_ITCL */
# 878|
# 879|-> TclNewObj(objPtr);
# 880| if (iPtr->flags & INTERP_ALTERNATE_WRONG_ARGS) {
# 881| iPtr->flags &= ~INTERP_ALTERNATE_WRONG_ARGS;
Error: CLANG_WARNING: [#def1426]
tcl-8.6.14-build/tcl8.6.14/generic/tclIndexObj.c:1356:26: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1354| }
# 1355| Tcl_AppendPrintfToObj(msg, "\n %s:", infoPtr->keyStr);
# 1356|-> numSpaces = width + 1 - strlen(infoPtr->keyStr);
# 1357| while (numSpaces > 0) {
# 1358| if (numSpaces >= NUM_SPACES) {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1427]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:20: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c: scope_hint: In function ‘TclLookupArrayElement’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:753:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:1136:13: note: in expansion of macro ‘TclSetVarArrayElement’
tcl-8.6.14-build/tcl8.6.14/generic/tclPort.h:25: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:36: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:622:21: note: in expansion of macro ‘Tcl_IncrRefCount’
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c: scope_hint: In function ‘TclLookupArrayElement’
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:1136:13: note: in expansion of macro ‘TclSetVarArrayElement’
# 751|
# 752| #define TclSetVarArrayElement(varPtr) \
# 753|-> (varPtr)->flags = ((varPtr)->flags & ~VAR_ARRAY) | VAR_ARRAY_ELEMENT
# 754|
# 755| #define TclSetVarUndefined(varPtr) \
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1428]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:16: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c: scope_hint: In function ‘TclOOObjectCmdCore’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:3857:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘methodNamePtr’
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:2604:40: note: in expansion of macro ‘TclGetString’
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:2604:40: note: in expansion of macro ‘TclGetString’
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:2604:40: note: in expansion of macro ‘TclGetString’
# 3855|
# 3856| #define TclGetString(objPtr) \
# 3857|-> ((objPtr)->bytes? (objPtr)->bytes : Tcl_GetString(objPtr))
# 3858|
# 3859| #define TclGetStringFromObj(objPtr, lenPtr) \
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1429]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOBasic.c:16: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tclOOBasic.c: scope_hint: In function ‘TclOO_Object_Eval’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:4465:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘interp’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:4480:33: note: in expansion of macro ‘TOP_CB’
tcl-8.6.14-build/tcl8.6.14/generic/tclOOBasic.c:448:5: note: in expansion of macro ‘TclNRAddCallback’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:4396:9: note: in expansion of macro ‘TclAllocObjStorageEx’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:4486:5: note: in expansion of macro ‘TclSmallAllocEx’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:4474:9: note: in expansion of macro ‘TCLNR_ALLOC’
tcl-8.6.14-build/tcl8.6.14/generic/tclOOBasic.c:448:5: note: in expansion of macro ‘TclNRAddCallback’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:4396:9: note: in expansion of macro ‘TclAllocObjStorageEx’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:4486:5: note: in expansion of macro ‘TclSmallAllocEx’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:4474:9: note: in expansion of macro ‘TCLNR_ALLOC’
tcl-8.6.14-build/tcl8.6.14/generic/tclOOBasic.c:448:5: note: in expansion of macro ‘TclNRAddCallback’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:4480:33: note: in expansion of macro ‘TOP_CB’
tcl-8.6.14-build/tcl8.6.14/generic/tclOOBasic.c:448:5: note: in expansion of macro ‘TclNRAddCallback’
# 4463| } NRE_callback;
# 4464|
# 4465|-> #define TOP_CB(iPtr) (((Interp *)(iPtr))->execEnvPtr->callbackPtr)
# 4466|
# 4467| /*
Error: CPPCHECK_WARNING: [#def1430]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1431]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:1021: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1019| }
# 1020| iiPtr = (InterpInfo *) ((Interp *) childInterp)->interpInfo;
# 1021|-> TclNewObj(resultPtr);
# 1022| hPtr = Tcl_FirstHashEntry(&iiPtr->parent.childTable, &hashSearch);
# 1023| for ( ; hPtr != NULL; hPtr = Tcl_NextHashEntry(&hashSearch)) {
Error: CPPCHECK_WARNING (CWE-457): [#def1432]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:1021: error[uninitvar]: Uninitialized variable: cachePtr
# 1019| }
# 1020| iiPtr = (InterpInfo *) ((Interp *) childInterp)->interpInfo;
# 1021|-> TclNewObj(resultPtr);
# 1022| hPtr = Tcl_FirstHashEntry(&iiPtr->parent.childTable, &hashSearch);
# 1023| for ( ; hPtr != NULL; hPtr = Tcl_NextHashEntry(&hashSearch)) {
Error: CPPCHECK_WARNING (CWE-457): [#def1433]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:1021: error[uninitvar]: Uninitialized variable: resultPtr
# 1019| }
# 1020| iiPtr = (InterpInfo *) ((Interp *) childInterp)->interpInfo;
# 1021|-> TclNewObj(resultPtr);
# 1022| hPtr = Tcl_FirstHashEntry(&iiPtr->parent.childTable, &hashSearch);
# 1023| for ( ; hPtr != NULL; hPtr = Tcl_NextHashEntry(&hashSearch)) {
Error: CPPCHECK_WARNING (CWE-476): [#def1434]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:1592: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1590| */
# 1591|
# 1592|-> TclNewLiteralStringObj(newToken, "::");
# 1593| Tcl_AppendObjToObj(newToken, aliasPtr->token);
# 1594| Tcl_DecrRefCount(aliasPtr->token);
Error: CPPCHECK_WARNING (CWE-457): [#def1435]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:1592: error[uninitvar]: Uninitialized variable: cachePtr
# 1590| */
# 1591|
# 1592|-> TclNewLiteralStringObj(newToken, "::");
# 1593| Tcl_AppendObjToObj(newToken, aliasPtr->token);
# 1594| Tcl_DecrRefCount(aliasPtr->token);
Error: CPPCHECK_WARNING (CWE-457): [#def1436]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:1592: error[uninitvar]: Uninitialized variable: newToken
# 1590| */
# 1591|
# 1592|-> TclNewLiteralStringObj(newToken, "::");
# 1593| Tcl_AppendObjToObj(newToken, aliasPtr->token);
# 1594| Tcl_DecrRefCount(aliasPtr->token);
Error: CPPCHECK_WARNING (CWE-476): [#def1437]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:1750: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1748| Child *childPtr;
# 1749|
# 1750|-> TclNewObj(resultPtr);
# 1751| childPtr = &((InterpInfo *) ((Interp *) childInterp)->interpInfo)->child;
# 1752|
Error: CPPCHECK_WARNING (CWE-457): [#def1438]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:1750: error[uninitvar]: Uninitialized variable: cachePtr
# 1748| Child *childPtr;
# 1749|
# 1750|-> TclNewObj(resultPtr);
# 1751| childPtr = &((InterpInfo *) ((Interp *) childInterp)->interpInfo)->child;
# 1752|
Error: CPPCHECK_WARNING (CWE-457): [#def1439]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:1750: error[uninitvar]: Uninitialized variable: resultPtr
# 1748| Child *childPtr;
# 1749|
# 1750|-> TclNewObj(resultPtr);
# 1751| childPtr = &((InterpInfo *) ((Interp *) childInterp)->interpInfo)->child;
# 1752|
Error: CLANG_WARNING: [#def1440]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:1804:5: warning[deadcode.DeadStores]: Value stored to 'prefv' is never read
# 1802|
# 1803| prefc = aliasPtr->objc;
# 1804|-> prefv = &aliasPtr->objPtr;
# 1805| cmdc = prefc + objc - 1;
# 1806|
Error: CPPCHECK_WARNING (CWE-457): [#def1441]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:2221: error[legacyUninitvar]: Uninitialized variable: *(&objv)
# 2219| InterpInfo *parentInfoPtr;
# 2220|
# 2221|-> if (TclListObjGetElements(interp, pathPtr, &objc, &objv) != TCL_OK) {
# 2222| return NULL;
# 2223| }
Error: CPPCHECK_WARNING (CWE-457): [#def1442]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:2324: error[legacyUninitvar]: Uninitialized variable: *(&objv)
# 2322| Tcl_Obj **objv;
# 2323|
# 2324|-> if (TclListObjGetElements(interp, pathPtr, &objc, &objv) != TCL_OK) {
# 2325| return NULL;
# 2326| }
Error: CPPCHECK_WARNING (CWE-476): [#def1443]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:2406: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2404| int status;
# 2405|
# 2406|-> TclNewLiteralStringObj(clockObj, "clock");
# 2407| Tcl_IncrRefCount(clockObj);
# 2408| status = AliasCreate(interp, childInterp, parentInterp, clockObj,
Error: CPPCHECK_WARNING (CWE-457): [#def1444]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:2406: error[uninitvar]: Uninitialized variable: cachePtr
# 2404| int status;
# 2405|
# 2406|-> TclNewLiteralStringObj(clockObj, "clock");
# 2407| Tcl_IncrRefCount(clockObj);
# 2408| status = AliasCreate(interp, childInterp, parentInterp, clockObj,
Error: CPPCHECK_WARNING (CWE-457): [#def1445]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:2406: error[uninitvar]: Uninitialized variable: clockObj
# 2404| int status;
# 2405|
# 2406|-> TclNewLiteralStringObj(clockObj, "clock");
# 2407| Tcl_IncrRefCount(clockObj);
# 2408| status = AliasCreate(interp, childInterp, parentInterp, clockObj,
Error: CPPCHECK_WARNING (CWE-476): [#def1446]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:2724: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2722| iPtr = (Interp *) childInterp;
# 2723| if (objc == 0) {
# 2724|-> TclNewObj(resultPtr);
# 2725| Tcl_ListObjAppendElement(NULL, resultPtr,
# 2726| Tcl_NewStringObj("-frame", -1));
Error: CPPCHECK_WARNING (CWE-457): [#def1447]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:2724: error[uninitvar]: Uninitialized variable: cachePtr
# 2722| iPtr = (Interp *) childInterp;
# 2723| if (objc == 0) {
# 2724|-> TclNewObj(resultPtr);
# 2725| Tcl_ListObjAppendElement(NULL, resultPtr,
# 2726| Tcl_NewStringObj("-frame", -1));
Error: CPPCHECK_WARNING (CWE-457): [#def1448]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:2724: error[uninitvar]: Uninitialized variable: resultPtr
# 2722| iPtr = (Interp *) childInterp;
# 2723| if (objc == 0) {
# 2724|-> TclNewObj(resultPtr);
# 2725| Tcl_ListObjAppendElement(NULL, resultPtr,
# 2726| Tcl_NewStringObj("-frame", -1));
Error: CPPCHECK_WARNING (CWE-476): [#def1449]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:2998: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2996| Tcl_HashSearch hSearch; /* For local searches. */
# 2997|
# 2998|-> TclNewObj(listObjPtr);
# 2999| hTblPtr = ((Interp *) childInterp)->hiddenCmdTablePtr;
# 3000| if (hTblPtr != NULL) {
Error: CPPCHECK_WARNING (CWE-457): [#def1450]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:2998: error[uninitvar]: Uninitialized variable: cachePtr
# 2996| Tcl_HashSearch hSearch; /* For local searches. */
# 2997|
# 2998|-> TclNewObj(listObjPtr);
# 2999| hTblPtr = ((Interp *) childInterp)->hiddenCmdTablePtr;
# 3000| if (hTblPtr != NULL) {
Error: CPPCHECK_WARNING (CWE-457): [#def1451]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:2998: error[uninitvar]: Uninitialized variable: listObjPtr
# 2996| Tcl_HashSearch hSearch; /* For local searches. */
# 2997|
# 2998|-> TclNewObj(listObjPtr);
# 2999| hTblPtr = ((Interp *) childInterp)->hiddenCmdTablePtr;
# 3000| if (hTblPtr != NULL) {
Error: CPPCHECK_WARNING (CWE-476): [#def1452]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:4424: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4422| Tcl_Obj *dictPtr;
# 4423|
# 4424|-> TclNewObj(dictPtr);
# 4425| key.interp = childInterp;
# 4426| key.type = TCL_LIMIT_COMMANDS;
Error: CPPCHECK_WARNING (CWE-457): [#def1453]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:4424: error[uninitvar]: Uninitialized variable: cachePtr
# 4422| Tcl_Obj *dictPtr;
# 4423|
# 4424|-> TclNewObj(dictPtr);
# 4425| key.interp = childInterp;
# 4426| key.type = TCL_LIMIT_COMMANDS;
Error: CPPCHECK_WARNING (CWE-457): [#def1454]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:4424: error[uninitvar]: Uninitialized variable: dictPtr
# 4422| Tcl_Obj *dictPtr;
# 4423|
# 4424|-> TclNewObj(dictPtr);
# 4425| key.interp = childInterp;
# 4426| key.type = TCL_LIMIT_COMMANDS;
Error: CPPCHECK_WARNING (CWE-476): [#def1455]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:4440: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4438|
# 4439| putEmptyCommandInDict:
# 4440|-> TclNewObj(empty);
# 4441| Tcl_DictObjPut(NULL, dictPtr,
# 4442| Tcl_NewStringObj(options[0], -1), empty);
Error: CPPCHECK_WARNING (CWE-457): [#def1456]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:4440: error[uninitvar]: Uninitialized variable: cachePtr
# 4438|
# 4439| putEmptyCommandInDict:
# 4440|-> TclNewObj(empty);
# 4441| Tcl_DictObjPut(NULL, dictPtr,
# 4442| Tcl_NewStringObj(options[0], -1), empty);
Error: CPPCHECK_WARNING (CWE-457): [#def1457]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:4440: error[uninitvar]: Uninitialized variable: empty
# 4438|
# 4439| putEmptyCommandInDict:
# 4440|-> TclNewObj(empty);
# 4441| Tcl_DictObjPut(NULL, dictPtr,
# 4442| Tcl_NewStringObj(options[0], -1), empty);
Error: CPPCHECK_WARNING (CWE-476): [#def1458]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:4454: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4452| Tcl_Obj *empty;
# 4453|
# 4454|-> TclNewObj(empty);
# 4455| Tcl_DictObjPut(NULL, dictPtr,
# 4456| Tcl_NewStringObj(options[2], -1), empty);
Error: CPPCHECK_WARNING (CWE-457): [#def1459]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:4454: error[uninitvar]: Uninitialized variable: cachePtr
# 4452| Tcl_Obj *empty;
# 4453|
# 4454|-> TclNewObj(empty);
# 4455| Tcl_DictObjPut(NULL, dictPtr,
# 4456| Tcl_NewStringObj(options[2], -1), empty);
Error: CPPCHECK_WARNING (CWE-457): [#def1460]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:4454: error[uninitvar]: Uninitialized variable: empty
# 4452| Tcl_Obj *empty;
# 4453|
# 4454|-> TclNewObj(empty);
# 4455| Tcl_DictObjPut(NULL, dictPtr,
# 4456| Tcl_NewStringObj(options[2], -1), empty);
Error: CPPCHECK_WARNING (CWE-476): [#def1461]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:4612: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4610| Tcl_Obj *dictPtr;
# 4611|
# 4612|-> TclNewObj(dictPtr);
# 4613| key.interp = childInterp;
# 4614| key.type = TCL_LIMIT_TIME;
Error: CPPCHECK_WARNING (CWE-457): [#def1462]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:4612: error[uninitvar]: Uninitialized variable: cachePtr
# 4610| Tcl_Obj *dictPtr;
# 4611|
# 4612|-> TclNewObj(dictPtr);
# 4613| key.interp = childInterp;
# 4614| key.type = TCL_LIMIT_TIME;
Error: CPPCHECK_WARNING (CWE-457): [#def1463]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:4612: error[uninitvar]: Uninitialized variable: dictPtr
# 4610| Tcl_Obj *dictPtr;
# 4611|
# 4612|-> TclNewObj(dictPtr);
# 4613| key.interp = childInterp;
# 4614| key.type = TCL_LIMIT_TIME;
Error: CPPCHECK_WARNING (CWE-476): [#def1464]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:4627: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4625| Tcl_Obj *empty;
# 4626| putEmptyCommandInDict:
# 4627|-> TclNewObj(empty);
# 4628| Tcl_DictObjPut(NULL, dictPtr,
# 4629| Tcl_NewStringObj(options[0], -1), empty);
Error: CPPCHECK_WARNING (CWE-457): [#def1465]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:4627: error[uninitvar]: Uninitialized variable: cachePtr
# 4625| Tcl_Obj *empty;
# 4626| putEmptyCommandInDict:
# 4627|-> TclNewObj(empty);
# 4628| Tcl_DictObjPut(NULL, dictPtr,
# 4629| Tcl_NewStringObj(options[0], -1), empty);
Error: CPPCHECK_WARNING (CWE-457): [#def1466]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:4627: error[uninitvar]: Uninitialized variable: empty
# 4625| Tcl_Obj *empty;
# 4626| putEmptyCommandInDict:
# 4627|-> TclNewObj(empty);
# 4628| Tcl_DictObjPut(NULL, dictPtr,
# 4629| Tcl_NewStringObj(options[0], -1), empty);
Error: CPPCHECK_WARNING (CWE-476): [#def1467]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:4646: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4644| Tcl_Obj *empty;
# 4645|
# 4646|-> TclNewObj(empty);
# 4647| Tcl_DictObjPut(NULL, dictPtr,
# 4648| Tcl_NewStringObj(options[2], -1), empty);
Error: CPPCHECK_WARNING (CWE-457): [#def1468]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:4646: error[uninitvar]: Uninitialized variable: cachePtr
# 4644| Tcl_Obj *empty;
# 4645|
# 4646|-> TclNewObj(empty);
# 4647| Tcl_DictObjPut(NULL, dictPtr,
# 4648| Tcl_NewStringObj(options[2], -1), empty);
Error: CPPCHECK_WARNING (CWE-457): [#def1469]
tcl-8.6.14-build/tcl8.6.14/generic/tclInterp.c:4646: error[uninitvar]: Uninitialized variable: empty
# 4644| Tcl_Obj *empty;
# 4645|
# 4646|-> TclNewObj(empty);
# 4647| Tcl_DictObjPut(NULL, dictPtr,
# 4648| Tcl_NewStringObj(options[2], -1), empty);
Error: CPPCHECK_WARNING: [#def1470]
tcl-8.6.14-build/tcl8.6.14/generic/tclLink.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1471]
tcl-8.6.14-build/tcl8.6.14/generic/tclLink.c:634: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 632| p = LinkedVar(char *);
# 633| if (p == NULL) {
# 634|-> TclNewLiteralStringObj(resultObj, "NULL");
# 635| return resultObj;
# 636| }
Error: CPPCHECK_WARNING (CWE-457): [#def1472]
tcl-8.6.14-build/tcl8.6.14/generic/tclLink.c:634: error[uninitvar]: Uninitialized variable: cachePtr
# 632| p = LinkedVar(char *);
# 633| if (p == NULL) {
# 634|-> TclNewLiteralStringObj(resultObj, "NULL");
# 635| return resultObj;
# 636| }
Error: CPPCHECK_WARNING (CWE-457): [#def1473]
tcl-8.6.14-build/tcl8.6.14/generic/tclLink.c:634: error[uninitvar]: Uninitialized variable: resultObj
# 632| p = LinkedVar(char *);
# 633| if (p == NULL) {
# 634|-> TclNewLiteralStringObj(resultObj, "NULL");
# 635| return resultObj;
# 636| }
Error: CPPCHECK_WARNING (CWE-476): [#def1474]
tcl-8.6.14-build/tcl8.6.14/generic/tclLink.c:645: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 643|
# 644| default:
# 645|-> TclNewLiteralStringObj(resultObj, "??");
# 646| return resultObj;
# 647| }
Error: CPPCHECK_WARNING (CWE-457): [#def1475]
tcl-8.6.14-build/tcl8.6.14/generic/tclLink.c:645: error[uninitvar]: Uninitialized variable: (resultObj)->internalRep.twoPtrValue.ptr1
# 643|
# 644| default:
# 645|-> TclNewLiteralStringObj(resultObj, "??");
# 646| return resultObj;
# 647| }
Error: CPPCHECK_WARNING (CWE-457): [#def1476]
tcl-8.6.14-build/tcl8.6.14/generic/tclLink.c:645: error[uninitvar]: Uninitialized variable: cachePtr
# 643|
# 644| default:
# 645|-> TclNewLiteralStringObj(resultObj, "??");
# 646| return resultObj;
# 647| }
Error: CPPCHECK_WARNING: [#def1477]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1478]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:220: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 218| Tcl_Obj *listPtr;
# 219|
# 220|-> TclNewObj(listPtr);
# 221|
# 222| if (objc <= 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def1479]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:220: error[uninitvar]: Uninitialized variable: cachePtr
# 218| Tcl_Obj *listPtr;
# 219|
# 220|-> TclNewObj(listPtr);
# 221|
# 222| if (objc <= 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def1480]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:220: error[uninitvar]: Uninitialized variable: listPtr
# 218| Tcl_Obj *listPtr;
# 219|
# 220|-> TclNewObj(listPtr);
# 221|
# 222| if (objc <= 0) {
Error: CPPCHECK_WARNING (CWE-476): [#def1481]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:390: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 388| }
# 389|
# 390|-> TclNewObj(copyPtr);
# 391| TclInvalidateStringRep(copyPtr);
# 392| DupListInternalRep(listPtr, copyPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1482]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:390: error[uninitvar]: Uninitialized variable: cachePtr
# 388| }
# 389|
# 390|-> TclNewObj(copyPtr);
# 391| TclInvalidateStringRep(copyPtr);
# 392| DupListInternalRep(listPtr, copyPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1483]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:390: error[uninitvar]: Uninitialized variable: copyPtr
# 388| }
# 389|
# 390|-> TclNewObj(copyPtr);
# 391| TclInvalidateStringRep(copyPtr);
# 392| DupListInternalRep(listPtr, copyPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1484]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:507: error[legacyUninitvar]: Uninitialized variable: *(&objv)
# 505| */
# 506|
# 507|-> if (TCL_OK != TclListObjGetElements(interp, elemListPtr, &objc, &objv)) {
# 508| return TCL_ERROR;
# 509| }
Error: CPPCHECK_WARNING (CWE-476): [#def1485]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:951: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 949| Tcl_Obj *victimPtr = elemPtrs[j];
# 950|
# 951|-> TclDecrRefCount(victimPtr);
# 952| }
# 953|
Error: CPPCHECK_WARNING (CWE-457): [#def1486]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:951: error[uninitvar]: Uninitialized variable: cachePtr
# 949| Tcl_Obj *victimPtr = elemPtrs[j];
# 950|
# 951|-> TclDecrRefCount(victimPtr);
# 952| }
# 953|
Error: CPPCHECK_WARNING (CWE-476): [#def1487]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:1042: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1040| Tcl_Obj *victimPtr = oldPtrs[j];
# 1041|
# 1042|-> TclDecrRefCount(victimPtr);
# 1043| }
# 1044|
Error: CPPCHECK_WARNING (CWE-457): [#def1488]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:1042: error[uninitvar]: Uninitialized variable: cachePtr
# 1040| Tcl_Obj *victimPtr = oldPtrs[j];
# 1041|
# 1042|-> TclDecrRefCount(victimPtr);
# 1043| }
# 1044|
Error: CPPCHECK_WARNING (CWE-476): [#def1489]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:1235: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1233| }
# 1234| }
# 1235|-> TclNewObj(listPtr);
# 1236| } else {
# 1237| /*
Error: CPPCHECK_WARNING (CWE-457): [#def1490]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:1235: error[uninitvar]: Uninitialized variable: cachePtr
# 1233| }
# 1234| }
# 1235|-> TclNewObj(listPtr);
# 1236| } else {
# 1237| /*
Error: CPPCHECK_WARNING (CWE-457): [#def1491]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:1235: error[uninitvar]: Uninitialized variable: listPtr
# 1233| }
# 1234| }
# 1235|-> TclNewObj(listPtr);
# 1236| } else {
# 1237| /*
Error: CPPCHECK_WARNING (CWE-457): [#def1492]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:1423: error[legacyUninitvar]: Uninitialized variable: *(&elemPtrs)
# 1421| */
# 1422|
# 1423|-> if (TclListObjGetElements(interp, subListPtr, &elemCount, &elemPtrs)
# 1424| != TCL_OK) {
# 1425| /* ...the sublist we're indexing into isn't a list at all. */
Error: CPPCHECK_WARNING (CWE-476): [#def1493]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:1466: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1464| parentList = subListPtr;
# 1465| if (index == elemCount) {
# 1466|-> TclNewObj(subListPtr);
# 1467| } else {
# 1468| subListPtr = elemPtrs[index];
Error: CPPCHECK_WARNING (CWE-457): [#def1494]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:1466: error[uninitvar]: Uninitialized variable: cachePtr
# 1464| parentList = subListPtr;
# 1465| if (index == elemCount) {
# 1466|-> TclNewObj(subListPtr);
# 1467| } else {
# 1468| subListPtr = elemPtrs[index];
Error: CPPCHECK_WARNING (CWE-457): [#def1495]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:1466: error[uninitvar]: Uninitialized variable: subListPtr
# 1464| parentList = subListPtr;
# 1465| if (index == elemCount) {
# 1466|-> TclNewObj(subListPtr);
# 1467| } else {
# 1468| subListPtr = elemPtrs[index];
Error: CPPCHECK_WARNING (CWE-476): [#def1496]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:1892: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1890| /* TODO: replace panic with error on alloc failure? */
# 1891| if (literal) {
# 1892|-> TclNewStringObj(*elemPtrs, elemStart, elemSize);
# 1893| } else {
# 1894| TclNewObj(*elemPtrs);
Error: CPPCHECK_WARNING (CWE-457): [#def1497]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:1892: error[uninitvar]: Uninitialized variable: *elemPtrs
# 1890| /* TODO: replace panic with error on alloc failure? */
# 1891| if (literal) {
# 1892|-> TclNewStringObj(*elemPtrs, elemStart, elemSize);
# 1893| } else {
# 1894| TclNewObj(*elemPtrs);
Error: CPPCHECK_WARNING (CWE-457): [#def1498]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:1892: error[uninitvar]: Uninitialized variable: cachePtr
# 1890| /* TODO: replace panic with error on alloc failure? */
# 1891| if (literal) {
# 1892|-> TclNewStringObj(*elemPtrs, elemStart, elemSize);
# 1893| } else {
# 1894| TclNewObj(*elemPtrs);
Error: CPPCHECK_WARNING (CWE-476): [#def1499]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:1894: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1892| TclNewStringObj(*elemPtrs, elemStart, elemSize);
# 1893| } else {
# 1894|-> TclNewObj(*elemPtrs);
# 1895| (*elemPtrs)->bytes = (char *)ckalloc((unsigned) elemSize + 1);
# 1896| (*elemPtrs)->length = TclCopyAndCollapse(elemSize, elemStart,
Error: CPPCHECK_WARNING (CWE-457): [#def1500]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:1894: error[uninitvar]: Uninitialized variable: (*elemPtrs)->internalRep.twoPtrValue.ptr1
# 1892| TclNewStringObj(*elemPtrs, elemStart, elemSize);
# 1893| } else {
# 1894|-> TclNewObj(*elemPtrs);
# 1895| (*elemPtrs)->bytes = (char *)ckalloc((unsigned) elemSize + 1);
# 1896| (*elemPtrs)->length = TclCopyAndCollapse(elemSize, elemStart,
Error: CPPCHECK_WARNING (CWE-457): [#def1501]
tcl-8.6.14-build/tcl8.6.14/generic/tclListObj.c:1894: error[uninitvar]: Uninitialized variable: cachePtr
# 1892| TclNewStringObj(*elemPtrs, elemStart, elemSize);
# 1893| } else {
# 1894|-> TclNewObj(*elemPtrs);
# 1895| (*elemPtrs)->bytes = (char *)ckalloc((unsigned) elemSize + 1);
# 1896| (*elemPtrs)->length = TclCopyAndCollapse(elemSize, elemStart,
Error: CPPCHECK_WARNING: [#def1502]
tcl-8.6.14-build/tcl8.6.14/generic/tclLiteral.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1503]
tcl-8.6.14-build/tcl8.6.14/generic/tclLiteral.c:132: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 130| while (entryPtr != NULL) {
# 131| objPtr = entryPtr->objPtr;
# 132|-> TclDecrRefCount(objPtr);
# 133| nextPtr = entryPtr->nextPtr;
# 134| ckfree(entryPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1504]
tcl-8.6.14-build/tcl8.6.14/generic/tclLiteral.c:132: error[uninitvar]: Uninitialized variable: cachePtr
# 130| while (entryPtr != NULL) {
# 131| objPtr = entryPtr->objPtr;
# 132|-> TclDecrRefCount(objPtr);
# 133| nextPtr = entryPtr->nextPtr;
# 134| ckfree(entryPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1505]
tcl-8.6.14-build/tcl8.6.14/generic/tclLiteral.c:247: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 245| */
# 246|
# 247|-> TclNewObj(objPtr);
# 248| if ((flags & LITERAL_ON_HEAP)) {
# 249| objPtr->bytes = bytes;
Error: CPPCHECK_WARNING (CWE-457): [#def1506]
tcl-8.6.14-build/tcl8.6.14/generic/tclLiteral.c:247: error[uninitvar]: Uninitialized variable: cachePtr
# 245| */
# 246|
# 247|-> TclNewObj(objPtr);
# 248| if ((flags & LITERAL_ON_HEAP)) {
# 249| objPtr->bytes = bytes;
Error: CPPCHECK_WARNING (CWE-457): [#def1507]
tcl-8.6.14-build/tcl8.6.14/generic/tclLiteral.c:247: error[uninitvar]: Uninitialized variable: objPtr
# 245| */
# 246|
# 247|-> TclNewObj(objPtr);
# 248| if ((flags & LITERAL_ON_HEAP)) {
# 249| objPtr->bytes = bytes;
Error: CPPCHECK_WARNING (CWE-476): [#def1508]
tcl-8.6.14-build/tcl8.6.14/generic/tclLiteral.c:854: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 852| globalTablePtr->numEntries--;
# 853|
# 854|-> TclDecrRefCount(objPtr);
# 855|
# 856| #ifdef TCL_COMPILE_STATS
Error: CPPCHECK_WARNING (CWE-457): [#def1509]
tcl-8.6.14-build/tcl8.6.14/generic/tclLiteral.c:854: error[uninitvar]: Uninitialized variable: cachePtr
# 852| globalTablePtr->numEntries--;
# 853|
# 854|-> TclDecrRefCount(objPtr);
# 855|
# 856| #ifdef TCL_COMPILE_STATS
Error: CPPCHECK_WARNING: [#def1510]
tcl-8.6.14-build/tcl8.6.14/generic/tclLoad.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1511]
tcl-8.6.14-build/tcl8.6.14/generic/tclLoad.c:544:17: warning[deadcode.DeadStores]: Value stored to 'fullFileName' during its initialization is never read
# 542| int i, index, code, complain = 1, keepLibrary = 0;
# 543| int trustedRefCount = -1, safeRefCount = -1;
# 544|-> const char *fullFileName = "";
# 545| const char *packageName;
# 546| static const char *const options[] = {
Error: CLANG_WARNING: [#def1512]
tcl-8.6.14-build/tcl8.6.14/generic/tclLoad.c:669:6: warning[deadcode.DeadStores]: Value stored to 'defaultPtr' is never read
# 667| }
# 668| if (namesMatch && (fullFileName[0] == 0)) {
# 669|-> defaultPtr = pkgPtr;
# 670| }
# 671| if (filesMatch && !namesMatch && (fullFileName[0] != 0)) {
Error: CLANG_WARNING: [#def1513]
tcl-8.6.14-build/tcl8.6.14/generic/tclLoad.c:822:5: warning[deadcode.DeadStores]: Value stored to 'trustedRefCount' is never read
# 820| }
# 821| }
# 822|-> trustedRefCount = pkgPtr->interpRefCount;
# 823| safeRefCount = pkgPtr->safeInterpRefCount;
# 824| Tcl_MutexUnlock(&packageMutex);
Error: CLANG_WARNING: [#def1514]
tcl-8.6.14-build/tcl8.6.14/generic/tclLoad.c:823:5: warning[deadcode.DeadStores]: Value stored to 'safeRefCount' is never read
# 821| }
# 822| trustedRefCount = pkgPtr->interpRefCount;
# 823|-> safeRefCount = pkgPtr->safeInterpRefCount;
# 824| Tcl_MutexUnlock(&packageMutex);
# 825|
Error: CPPCHECK_WARNING (CWE-476): [#def1515]
tcl-8.6.14-build/tcl8.6.14/generic/tclLoad.c:1052: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1050| */
# 1051|
# 1052|-> TclNewObj(resultObj);
# 1053| Tcl_MutexLock(&packageMutex);
# 1054| for (pkgPtr = firstPackagePtr; pkgPtr != NULL;
Error: CPPCHECK_WARNING (CWE-457): [#def1516]
tcl-8.6.14-build/tcl8.6.14/generic/tclLoad.c:1052: error[uninitvar]: Uninitialized variable: cachePtr
# 1050| */
# 1051|
# 1052|-> TclNewObj(resultObj);
# 1053| Tcl_MutexLock(&packageMutex);
# 1054| for (pkgPtr = firstPackagePtr; pkgPtr != NULL;
Error: CPPCHECK_WARNING (CWE-457): [#def1517]
tcl-8.6.14-build/tcl8.6.14/generic/tclLoad.c:1052: error[uninitvar]: Uninitialized variable: resultObj
# 1050| */
# 1051|
# 1052|-> TclNewObj(resultObj);
# 1053| Tcl_MutexLock(&packageMutex);
# 1054| for (pkgPtr = firstPackagePtr; pkgPtr != NULL;
Error: CPPCHECK_WARNING (CWE-476): [#def1518]
tcl-8.6.14-build/tcl8.6.14/generic/tclLoad.c:1076: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1074| }
# 1075| ipPtr = Tcl_GetAssocData(target, "tclLoad", NULL);
# 1076|-> TclNewObj(resultObj);
# 1077| for (; ipPtr != NULL; ipPtr = ipPtr->nextPtr) {
# 1078| pkgPtr = ipPtr->pkgPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1519]
tcl-8.6.14-build/tcl8.6.14/generic/tclLoad.c:1076: error[uninitvar]: Uninitialized variable: (resultObj)->internalRep.twoPtrValue.ptr1
# 1074| }
# 1075| ipPtr = Tcl_GetAssocData(target, "tclLoad", NULL);
# 1076|-> TclNewObj(resultObj);
# 1077| for (; ipPtr != NULL; ipPtr = ipPtr->nextPtr) {
# 1078| pkgPtr = ipPtr->pkgPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1520]
tcl-8.6.14-build/tcl8.6.14/generic/tclLoad.c:1076: error[uninitvar]: Uninitialized variable: cachePtr
# 1074| }
# 1075| ipPtr = Tcl_GetAssocData(target, "tclLoad", NULL);
# 1076|-> TclNewObj(resultObj);
# 1077| for (; ipPtr != NULL; ipPtr = ipPtr->nextPtr) {
# 1078| pkgPtr = ipPtr->pkgPtr;
Error: CPPCHECK_WARNING: [#def1521]
tcl-8.6.14-build/tcl8.6.14/generic/tclMain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1522]
tcl-8.6.14-build/tcl8.6.14/generic/tclMain.c:309: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 307| is.interp = interp;
# 308| is.prompt = PROMPT_START;
# 309|-> TclNewObj(is.commandPtr);
# 310|
# 311| /*
Error: CPPCHECK_WARNING (CWE-457): [#def1523]
tcl-8.6.14-build/tcl8.6.14/generic/tclMain.c:309: error[uninitvar]: Uninitialized variable: cachePtr
# 307| is.interp = interp;
# 308| is.prompt = PROMPT_START;
# 309|-> TclNewObj(is.commandPtr);
# 310|
# 311| /*
Error: CPPCHECK_WARNING (CWE-457): [#def1524]
tcl-8.6.14-build/tcl8.6.14/generic/tclMain.c:309: error[uninitvar]: Uninitialized variable: is.commandPtr
# 307| is.interp = interp;
# 308| is.prompt = PROMPT_START;
# 309|-> TclNewObj(is.commandPtr);
# 310|
# 311| /*
Error: CPPCHECK_WARNING (CWE-476): [#def1525]
tcl-8.6.14-build/tcl8.6.14/generic/tclMain.c:410: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 408| Tcl_Obj *keyPtr, *valuePtr;
# 409|
# 410|-> TclNewLiteralStringObj(keyPtr, "-errorinfo");
# 411| Tcl_IncrRefCount(keyPtr);
# 412| Tcl_DictObjGet(NULL, options, keyPtr, &valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1526]
tcl-8.6.14-build/tcl8.6.14/generic/tclMain.c:410: error[uninitvar]: Uninitialized variable: cachePtr
# 408| Tcl_Obj *keyPtr, *valuePtr;
# 409|
# 410|-> TclNewLiteralStringObj(keyPtr, "-errorinfo");
# 411| Tcl_IncrRefCount(keyPtr);
# 412| Tcl_DictObjGet(NULL, options, keyPtr, &valuePtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1527]
tcl-8.6.14-build/tcl8.6.14/generic/tclMain.c:410: error[uninitvar]: Uninitialized variable: keyPtr
# 408| Tcl_Obj *keyPtr, *valuePtr;
# 409|
# 410|-> TclNewLiteralStringObj(keyPtr, "-errorinfo");
# 411| Tcl_IncrRefCount(keyPtr);
# 412| Tcl_DictObjGet(NULL, options, keyPtr, &valuePtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1528]
tcl-8.6.14-build/tcl8.6.14/generic/tclMain.c:524: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 522| is.input = Tcl_GetStdChannel(TCL_STDIN);
# 523| Tcl_DecrRefCount(is.commandPtr);
# 524|-> TclNewObj(is.commandPtr);
# 525| Tcl_IncrRefCount(is.commandPtr);
# 526| if (code != TCL_OK) {
Error: CPPCHECK_WARNING (CWE-457): [#def1529]
tcl-8.6.14-build/tcl8.6.14/generic/tclMain.c:524: error[uninitvar]: Uninitialized variable: (is.commandPtr)->internalRep.twoPtrValue.ptr1
# 522| is.input = Tcl_GetStdChannel(TCL_STDIN);
# 523| Tcl_DecrRefCount(is.commandPtr);
# 524|-> TclNewObj(is.commandPtr);
# 525| Tcl_IncrRefCount(is.commandPtr);
# 526| if (code != TCL_OK) {
Error: CPPCHECK_WARNING (CWE-457): [#def1530]
tcl-8.6.14-build/tcl8.6.14/generic/tclMain.c:524: error[uninitvar]: Uninitialized variable: cachePtr
# 522| is.input = Tcl_GetStdChannel(TCL_STDIN);
# 523| Tcl_DecrRefCount(is.commandPtr);
# 524|-> TclNewObj(is.commandPtr);
# 525| Tcl_IncrRefCount(is.commandPtr);
# 526| if (code != TCL_OK) {
Error: CPPCHECK_WARNING (CWE-476): [#def1531]
tcl-8.6.14-build/tcl8.6.14/generic/tclMain.c:809: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 807| isPtr->input = chan = Tcl_GetStdChannel(TCL_STDIN);
# 808| Tcl_DecrRefCount(commandPtr);
# 809|-> TclNewObj(commandPtr);
# 810| isPtr->commandPtr = commandPtr;
# 811| Tcl_IncrRefCount(commandPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1532]
tcl-8.6.14-build/tcl8.6.14/generic/tclMain.c:809: error[uninitvar]: Uninitialized variable: cachePtr
# 807| isPtr->input = chan = Tcl_GetStdChannel(TCL_STDIN);
# 808| Tcl_DecrRefCount(commandPtr);
# 809|-> TclNewObj(commandPtr);
# 810| isPtr->commandPtr = commandPtr;
# 811| Tcl_IncrRefCount(commandPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1533]
tcl-8.6.14-build/tcl8.6.14/generic/tclMain.c:809: error[uninitvar]: Uninitialized variable: commandPtr
# 807| isPtr->input = chan = Tcl_GetStdChannel(TCL_STDIN);
# 808| Tcl_DecrRefCount(commandPtr);
# 809|-> TclNewObj(commandPtr);
# 810| isPtr->commandPtr = commandPtr;
# 811| Tcl_IncrRefCount(commandPtr);
Error: CPPCHECK_WARNING: [#def1534]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1535]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:1580: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1578| int result;
# 1579|
# 1580|-> TclNewLiteralStringObj(objv[0], "auto_import");
# 1581| objv[1] = Tcl_NewStringObj(pattern, -1);
# 1582|
Error: CPPCHECK_WARNING (CWE-457): [#def1536]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:1580: error[uninitvar]: Uninitialized variable: (objv[0])->internalRep.twoPtrValue.ptr1
# 1578| int result;
# 1579|
# 1580|-> TclNewLiteralStringObj(objv[0], "auto_import");
# 1581| objv[1] = Tcl_NewStringObj(pattern, -1);
# 1582|
Error: CPPCHECK_WARNING (CWE-457): [#def1537]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:1580: error[uninitvar]: Uninitialized variable: cachePtr
# 1578| int result;
# 1579|
# 1580|-> TclNewLiteralStringObj(objv[0], "auto_import");
# 1581| objv[1] = Tcl_NewStringObj(pattern, -1);
# 1582|
Error: CPPCHECK_WARNING (CWE-476): [#def1538]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3129: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3127| */
# 3128|
# 3129|-> TclNewObj(listPtr);
# 3130| TclNewLiteralStringObj(objPtr, "::namespace");
# 3131| Tcl_ListObjAppendElement(interp, listPtr, objPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1539]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3129: error[uninitvar]: Uninitialized variable: cachePtr
# 3127| */
# 3128|
# 3129|-> TclNewObj(listPtr);
# 3130| TclNewLiteralStringObj(objPtr, "::namespace");
# 3131| Tcl_ListObjAppendElement(interp, listPtr, objPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1540]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3129: error[uninitvar]: Uninitialized variable: listPtr
# 3127| */
# 3128|
# 3129|-> TclNewObj(listPtr);
# 3130| TclNewLiteralStringObj(objPtr, "::namespace");
# 3131| Tcl_ListObjAppendElement(interp, listPtr, objPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1541]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3130: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3128|
# 3129| TclNewObj(listPtr);
# 3130|-> TclNewLiteralStringObj(objPtr, "::namespace");
# 3131| Tcl_ListObjAppendElement(interp, listPtr, objPtr);
# 3132| TclNewLiteralStringObj(objPtr, "inscope");
Error: CPPCHECK_WARNING (CWE-457): [#def1542]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3130: error[uninitvar]: Uninitialized variable: cachePtr
# 3128|
# 3129| TclNewObj(listPtr);
# 3130|-> TclNewLiteralStringObj(objPtr, "::namespace");
# 3131| Tcl_ListObjAppendElement(interp, listPtr, objPtr);
# 3132| TclNewLiteralStringObj(objPtr, "inscope");
Error: CPPCHECK_WARNING (CWE-457): [#def1543]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3130: error[uninitvar]: Uninitialized variable: objPtr
# 3128|
# 3129| TclNewObj(listPtr);
# 3130|-> TclNewLiteralStringObj(objPtr, "::namespace");
# 3131| Tcl_ListObjAppendElement(interp, listPtr, objPtr);
# 3132| TclNewLiteralStringObj(objPtr, "inscope");
Error: CPPCHECK_WARNING (CWE-476): [#def1544]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3132: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3130| TclNewLiteralStringObj(objPtr, "::namespace");
# 3131| Tcl_ListObjAppendElement(interp, listPtr, objPtr);
# 3132|-> TclNewLiteralStringObj(objPtr, "inscope");
# 3133| Tcl_ListObjAppendElement(interp, listPtr, objPtr);
# 3134|
Error: CPPCHECK_WARNING (CWE-457): [#def1545]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3132: error[uninitvar]: Uninitialized variable: (objPtr)->internalRep.twoPtrValue.ptr1
# 3130| TclNewLiteralStringObj(objPtr, "::namespace");
# 3131| Tcl_ListObjAppendElement(interp, listPtr, objPtr);
# 3132|-> TclNewLiteralStringObj(objPtr, "inscope");
# 3133| Tcl_ListObjAppendElement(interp, listPtr, objPtr);
# 3134|
Error: CPPCHECK_WARNING (CWE-457): [#def1546]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3132: error[uninitvar]: Uninitialized variable: cachePtr
# 3130| TclNewLiteralStringObj(objPtr, "::namespace");
# 3131| Tcl_ListObjAppendElement(interp, listPtr, objPtr);
# 3132|-> TclNewLiteralStringObj(objPtr, "inscope");
# 3133| Tcl_ListObjAppendElement(interp, listPtr, objPtr);
# 3134|
Error: CPPCHECK_WARNING (CWE-476): [#def1547]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3137: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3135| currNsPtr = (Namespace *) TclGetCurrentNamespace(interp);
# 3136| if (currNsPtr == (Namespace *) TclGetGlobalNamespace(interp)) {
# 3137|-> TclNewLiteralStringObj(objPtr, "::");
# 3138| } else {
# 3139| objPtr = Tcl_NewStringObj(currNsPtr->fullName, -1);
Error: CPPCHECK_WARNING (CWE-457): [#def1548]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3137: error[uninitvar]: Uninitialized variable: cachePtr
# 3135| currNsPtr = (Namespace *) TclGetCurrentNamespace(interp);
# 3136| if (currNsPtr == (Namespace *) TclGetGlobalNamespace(interp)) {
# 3137|-> TclNewLiteralStringObj(objPtr, "::");
# 3138| } else {
# 3139| objPtr = Tcl_NewStringObj(currNsPtr->fullName, -1);
Error: CPPCHECK_WARNING (CWE-476): [#def1549]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3530: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3528| Tcl_Obj *listPtr;
# 3529|
# 3530|-> TclNewObj(listPtr);
# 3531| (void)Tcl_AppendExportList(interp, NULL, listPtr);
# 3532| Tcl_SetObjResult(interp, listPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1550]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3530: error[uninitvar]: Uninitialized variable: cachePtr
# 3528| Tcl_Obj *listPtr;
# 3529|
# 3530|-> TclNewObj(listPtr);
# 3531| (void)Tcl_AppendExportList(interp, NULL, listPtr);
# 3532| Tcl_SetObjResult(interp, listPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1551]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3530: error[uninitvar]: Uninitialized variable: listPtr
# 3528| Tcl_Obj *listPtr;
# 3529|
# 3530|-> TclNewObj(listPtr);
# 3531| (void)Tcl_AppendExportList(interp, NULL, listPtr);
# 3532| Tcl_SetObjResult(interp, listPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1552]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3694: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3692| Tcl_Obj *listPtr;
# 3693|
# 3694|-> TclNewObj(listPtr);
# 3695| for (hPtr = Tcl_FirstHashEntry(&nsPtr->cmdTable, &search);
# 3696| hPtr != NULL; hPtr = Tcl_NextHashEntry(&search)) {
Error: CPPCHECK_WARNING (CWE-457): [#def1553]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3694: error[uninitvar]: Uninitialized variable: cachePtr
# 3692| Tcl_Obj *listPtr;
# 3693|
# 3694|-> TclNewObj(listPtr);
# 3695| for (hPtr = Tcl_FirstHashEntry(&nsPtr->cmdTable, &search);
# 3696| hPtr != NULL; hPtr = Tcl_NextHashEntry(&search)) {
Error: CPPCHECK_WARNING (CWE-457): [#def1554]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3694: error[uninitvar]: Uninitialized variable: listPtr
# 3692| Tcl_Obj *listPtr;
# 3693|
# 3694|-> TclNewObj(listPtr);
# 3695| for (hPtr = Tcl_FirstHashEntry(&nsPtr->cmdTable, &search);
# 3696| hPtr != NULL; hPtr = Tcl_NextHashEntry(&search)) {
Error: CPPCHECK_WARNING (CWE-476): [#def1555]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3891: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3889| }
# 3890| origCommand = TclGetOriginalCommand(command);
# 3891|-> TclNewObj(resultPtr);
# 3892| if (origCommand == NULL) {
# 3893| /*
Error: CPPCHECK_WARNING (CWE-457): [#def1556]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3891: error[uninitvar]: Uninitialized variable: cachePtr
# 3889| }
# 3890| origCommand = TclGetOriginalCommand(command);
# 3891|-> TclNewObj(resultPtr);
# 3892| if (origCommand == NULL) {
# 3893| /*
Error: CPPCHECK_WARNING (CWE-457): [#def1557]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:3891: error[uninitvar]: Uninitialized variable: resultPtr
# 3889| }
# 3890| origCommand = TclGetOriginalCommand(command);
# 3891|-> TclNewObj(resultPtr);
# 3892| if (origCommand == NULL) {
# 3893| /*
Error: CPPCHECK_WARNING (CWE-476): [#def1558]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:4010: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4008| Tcl_Obj *resultObj;
# 4009|
# 4010|-> TclNewObj(resultObj);
# 4011| for (i=0 ; i<nsPtr->commandPathLength ; i++) {
# 4012| if (nsPtr->commandPathArray[i].nsPtr != NULL) {
Error: CPPCHECK_WARNING (CWE-457): [#def1559]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:4010: error[uninitvar]: Uninitialized variable: cachePtr
# 4008| Tcl_Obj *resultObj;
# 4009|
# 4010|-> TclNewObj(resultObj);
# 4011| for (i=0 ; i<nsPtr->commandPathLength ; i++) {
# 4012| if (nsPtr->commandPathArray[i].nsPtr != NULL) {
Error: CPPCHECK_WARNING (CWE-457): [#def1560]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:4010: error[uninitvar]: Uninitialized variable: resultObj
# 4008| Tcl_Obj *resultObj;
# 4009|
# 4010|-> TclNewObj(resultObj);
# 4011| for (i=0 ; i<nsPtr->commandPathLength ; i++) {
# 4012| if (nsPtr->commandPathArray[i].nsPtr != NULL) {
Error: CPPCHECK_WARNING (CWE-457): [#def1561]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:4025: error[legacyUninitvar]: Uninitialized variable: *(&nsObjv)
# 4023| */
# 4024|
# 4025|-> if (TclListObjGetElements(interp, objv[1], &nsObjc, &nsObjv) != TCL_OK) {
# 4026| goto badNamespace;
# 4027| }
Error: CPPCHECK_WARNING (CWE-476): [#def1562]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:4305: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4303| resultPtr = Tcl_GetNamespaceUnknownHandler(interp, currNsPtr);
# 4304| if (resultPtr == NULL) {
# 4305|-> TclNewObj(resultPtr);
# 4306| }
# 4307| Tcl_SetObjResult(interp, resultPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1563]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:4305: error[uninitvar]: Uninitialized variable: cachePtr
# 4303| resultPtr = Tcl_GetNamespaceUnknownHandler(interp, currNsPtr);
# 4304| if (resultPtr == NULL) {
# 4305|-> TclNewObj(resultPtr);
# 4306| }
# 4307| Tcl_SetObjResult(interp, resultPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1564]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:4305: error[uninitvar]: Uninitialized variable: resultPtr
# 4303| resultPtr = Tcl_GetNamespaceUnknownHandler(interp, currNsPtr);
# 4304| if (resultPtr == NULL) {
# 4305|-> TclNewObj(resultPtr);
# 4306| }
# 4307| Tcl_SetObjResult(interp, resultPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1565]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:4352: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4350| */
# 4351|
# 4352|-> TclNewLiteralStringObj(currNsPtr->unknownHandlerPtr, "::unknown");
# 4353| Tcl_IncrRefCount(currNsPtr->unknownHandlerPtr);
# 4354| }
Error: CPPCHECK_WARNING (CWE-457): [#def1566]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:4352: error[uninitvar]: Uninitialized variable: cachePtr
# 4350| */
# 4351|
# 4352|-> TclNewLiteralStringObj(currNsPtr->unknownHandlerPtr, "::unknown");
# 4353| Tcl_IncrRefCount(currNsPtr->unknownHandlerPtr);
# 4354| }
Error: CPPCHECK_WARNING (CWE-457): [#def1567]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:4352: error[uninitvar]: Uninitialized variable: currNsPtr->unknownHandlerPtr
# 4350| */
# 4351|
# 4352|-> TclNewLiteralStringObj(currNsPtr->unknownHandlerPtr, "::unknown");
# 4353| Tcl_IncrRefCount(currNsPtr->unknownHandlerPtr);
# 4354| }
Error: CPPCHECK_WARNING (CWE-476): [#def1568]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:4632: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 4630| }
# 4631|
# 4632|-> TclNewObj(resultPtr);
# 4633| switch (lookupType) {
# 4634| case 0: { /* -command */
Error: CPPCHECK_WARNING (CWE-457): [#def1569]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:4632: error[uninitvar]: Uninitialized variable: cachePtr
# 4630| }
# 4631|
# 4632|-> TclNewObj(resultPtr);
# 4633| switch (lookupType) {
# 4634| case 0: { /* -command */
Error: CPPCHECK_WARNING (CWE-457): [#def1570]
tcl-8.6.14-build/tcl8.6.14/generic/tclNamesp.c:4632: error[uninitvar]: Uninitialized variable: resultPtr
# 4630| }
# 4631|
# 4632|-> TclNewObj(resultPtr);
# 4633| switch (lookupType) {
# 4634| case 0: { /* -command */
Error: CPPCHECK_WARNING: [#def1571]
tcl-8.6.14-build/tcl8.6.14/generic/tclNotify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1572]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1573]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:347: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 345| fPtr->epoch = 0;
# 346| fPtr->tsdPtr = tsdPtr;
# 347|-> TclNewLiteralStringObj(fPtr->unknownMethodNameObj, "unknown");
# 348| TclNewLiteralStringObj(fPtr->constructorName, "<constructor>");
# 349| TclNewLiteralStringObj(fPtr->destructorName, "<destructor>");
Error: CPPCHECK_WARNING (CWE-476): [#def1574]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:348: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 346| fPtr->tsdPtr = tsdPtr;
# 347| TclNewLiteralStringObj(fPtr->unknownMethodNameObj, "unknown");
# 348|-> TclNewLiteralStringObj(fPtr->constructorName, "<constructor>");
# 349| TclNewLiteralStringObj(fPtr->destructorName, "<destructor>");
# 350| TclNewLiteralStringObj(fPtr->clonedName, "<cloned>");
Error: CPPCHECK_WARNING (CWE-476): [#def1575]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:349: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 347| TclNewLiteralStringObj(fPtr->unknownMethodNameObj, "unknown");
# 348| TclNewLiteralStringObj(fPtr->constructorName, "<constructor>");
# 349|-> TclNewLiteralStringObj(fPtr->destructorName, "<destructor>");
# 350| TclNewLiteralStringObj(fPtr->clonedName, "<cloned>");
# 351| TclNewLiteralStringObj(fPtr->defineName, "::oo::define");
Error: CPPCHECK_WARNING (CWE-476): [#def1576]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:350: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 348| TclNewLiteralStringObj(fPtr->constructorName, "<constructor>");
# 349| TclNewLiteralStringObj(fPtr->destructorName, "<destructor>");
# 350|-> TclNewLiteralStringObj(fPtr->clonedName, "<cloned>");
# 351| TclNewLiteralStringObj(fPtr->defineName, "::oo::define");
# 352| Tcl_IncrRefCount(fPtr->unknownMethodNameObj);
Error: CPPCHECK_WARNING (CWE-476): [#def1577]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:351: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 349| TclNewLiteralStringObj(fPtr->destructorName, "<destructor>");
# 350| TclNewLiteralStringObj(fPtr->clonedName, "<cloned>");
# 351|-> TclNewLiteralStringObj(fPtr->defineName, "::oo::define");
# 352| Tcl_IncrRefCount(fPtr->unknownMethodNameObj);
# 353| Tcl_IncrRefCount(fPtr->constructorName);
Error: CPPCHECK_WARNING (CWE-476): [#def1578]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:359: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 357| Tcl_CreateObjCommand(interp, "::oo::UnknownDefinition",
# 358| TclOOUnknownDefinition, NULL, NULL);
# 359|-> TclNewLiteralStringObj(namePtr, "::oo::UnknownDefinition");
# 360| Tcl_SetNamespaceUnknownHandler(interp, fPtr->defineNs, namePtr);
# 361| Tcl_SetNamespaceUnknownHandler(interp, fPtr->objdefNs, namePtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1579]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:482: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 480| */
# 481|
# 482|-> TclNewLiteralStringObj(argsPtr, "originObject");
# 483| Tcl_IncrRefCount(argsPtr);
# 484| bodyPtr = Tcl_NewStringObj(clonedBody, -1);
Error: CPPCHECK_WARNING (CWE-476): [#def1580]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:487: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 485| TclOONewProcMethod(interp, fPtr->objectCls, 0, fPtr->clonedName, argsPtr,
# 486| bodyPtr, NULL);
# 487|-> TclDecrRefCount(argsPtr);
# 488|
# 489| /*
Error: CPPCHECK_WARNING (CWE-476): [#def1581]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:495: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 493| */
# 494|
# 495|-> TclNewLiteralStringObj(namePtr, "new");
# 496| Tcl_NewInstanceMethod(interp, (Tcl_Object) fPtr->classCls->thisPtr,
# 497| namePtr /* keeps ref */, 0 /* private */, NULL, NULL);
Error: CPPCHECK_WARNING (CWE-476): [#def1582]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:590: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 588| Foundation *fPtr = GetFoundation(interp);
# 589|
# 590|-> TclDecrRefCount(fPtr->unknownMethodNameObj);
# 591| TclDecrRefCount(fPtr->constructorName);
# 592| TclDecrRefCount(fPtr->destructorName);
Error: CPPCHECK_WARNING (CWE-476): [#def1583]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:591: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 589|
# 590| TclDecrRefCount(fPtr->unknownMethodNameObj);
# 591|-> TclDecrRefCount(fPtr->constructorName);
# 592| TclDecrRefCount(fPtr->destructorName);
# 593| TclDecrRefCount(fPtr->clonedName);
Error: CPPCHECK_WARNING (CWE-476): [#def1584]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:592: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 590| TclDecrRefCount(fPtr->unknownMethodNameObj);
# 591| TclDecrRefCount(fPtr->constructorName);
# 592|-> TclDecrRefCount(fPtr->destructorName);
# 593| TclDecrRefCount(fPtr->clonedName);
# 594| TclDecrRefCount(fPtr->defineName);
Error: CPPCHECK_WARNING (CWE-476): [#def1585]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:593: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 591| TclDecrRefCount(fPtr->constructorName);
# 592| TclDecrRefCount(fPtr->destructorName);
# 593|-> TclDecrRefCount(fPtr->clonedName);
# 594| TclDecrRefCount(fPtr->defineName);
# 595| TclOODecrRefCount(fPtr->objectCls->thisPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1586]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:594: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 592| TclDecrRefCount(fPtr->destructorName);
# 593| TclDecrRefCount(fPtr->clonedName);
# 594|-> TclDecrRefCount(fPtr->defineName);
# 595| TclOODecrRefCount(fPtr->objectCls->thisPtr);
# 596| TclOODecrRefCount(fPtr->classCls->thisPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1587]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:1010: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1008|
# 1009| FOREACH(filterObj, clsPtr->filters) {
# 1010|-> TclDecrRefCount(filterObj);
# 1011| }
# 1012| ckfree(clsPtr->filters.list);
Error: CPPCHECK_WARNING (CWE-476): [#def1588]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:1061: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1059|
# 1060| FOREACH(variableObj, clsPtr->variables) {
# 1061|-> TclDecrRefCount(variableObj);
# 1062| }
# 1063| if (i) {
Error: CPPCHECK_WARNING (CWE-476): [#def1589]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:1195: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1193|
# 1194| FOREACH(filterObj, oPtr->filters) {
# 1195|-> TclDecrRefCount(filterObj);
# 1196| }
# 1197| if (i) {
Error: CPPCHECK_WARNING (CWE-476): [#def1590]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:1210: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1208|
# 1209| FOREACH(variableObj, oPtr->variables) {
# 1210|-> TclDecrRefCount(variableObj);
# 1211| }
# 1212| if (i) {
Error: CLANG_WARNING: [#def1591]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:1941:5: warning[core.NullDereference]: Array access (via field 'list') results in a null pointer dereference
# 1939| }
# 1940| DUPLICATE(o2Ptr->mixins, oPtr->mixins, Class *);
# 1941|-> FOREACH(mixinPtr, o2Ptr->mixins) {
# 1942| if (mixinPtr && mixinPtr != o2Ptr->selfCls) {
# 1943| TclOOAddToInstances(o2Ptr, mixinPtr);
Error: CLANG_WARNING: [#def1592]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:1958:5: warning[core.NullDereference]: Array access (via field 'list') results in a null pointer dereference
# 1956|
# 1957| DUPLICATE(o2Ptr->filters, oPtr->filters, Tcl_Obj *);
# 1958|-> FOREACH(filterObj, o2Ptr->filters) {
# 1959| Tcl_IncrRefCount(filterObj);
# 1960| }
Error: CLANG_WARNING: [#def1593]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:1967:5: warning[core.NullDereference]: Array access (via field 'list') results in a null pointer dereference
# 1965|
# 1966| DUPLICATE(o2Ptr->variables, oPtr->variables, Tcl_Obj *);
# 1967|-> FOREACH(variableObj, o2Ptr->variables) {
# 1968| Tcl_IncrRefCount(variableObj);
# 1969| }
Error: CLANG_WARNING: [#def1594]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:2020:17: warning[core.NullDereference]: Access to field 'flags' results in a dereference of a null pointer (loaded from variable 'cls2Ptr')
# 2018| */
# 2019|
# 2020|-> cls2Ptr->flags = clsPtr->flags;
# 2021|
# 2022| /*
Error: CPPCHECK_WARNING (CWE-476): [#def1595]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:2156: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2154| result = Tcl_NRCallObjProc(interp, TclOOInvokeContext, contextPtr, 3,
# 2155| args);
# 2156|-> TclDecrRefCount(args[0]);
# 2157| TclDecrRefCount(args[1]);
# 2158| TclDecrRefCount(args[2]);
Error: CPPCHECK_WARNING (CWE-476): [#def1596]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:2157: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2155| args);
# 2156| TclDecrRefCount(args[0]);
# 2157|-> TclDecrRefCount(args[1]);
# 2158| TclDecrRefCount(args[2]);
# 2159| TclOODeleteContext(contextPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1597]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:2158: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2156| TclDecrRefCount(args[0]);
# 2157| TclDecrRefCount(args[1]);
# 2158|-> TclDecrRefCount(args[2]);
# 2159| TclOODeleteContext(contextPtr);
# 2160| if (result == TCL_ERROR) {
Error: CPPCHECK_WARNING (CWE-476): [#def1598]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:2568: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2566| (Tcl_Class *) startClsPtr, mappedMethodName);
# 2567| if (result != TCL_OK) {
# 2568|-> TclDecrRefCount(mappedMethodName);
# 2569| if (result == TCL_BREAK) {
# 2570| goto noMapping;
Error: CPPCHECK_WARNING (CWE-476): [#def1599]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:2584: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2582| contextPtr = TclOOGetCallContext(oPtr, mappedMethodName,
# 2583| flags | (oPtr->flags & FILTER_HANDLING), methodNamePtr);
# 2584|-> TclDecrRefCount(mappedMethodName);
# 2585| if (contextPtr == NULL) {
# 2586| Tcl_SetObjResult(interp, Tcl_ObjPrintf(
Error: CLANG_WARNING: [#def1600]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:2604:26: warning[core.NullDereference]: Access to field 'bytes' results in a dereference of a null pointer (loaded from variable 'methodNamePtr')
# 2602| Tcl_SetObjResult(interp, Tcl_ObjPrintf(
# 2603| "impossible to invoke method \"%s\": no defined method or"
# 2604|-> " unknown method", TclGetString(methodNamePtr)));
# 2605| Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "METHOD",
# 2606| TclGetString(methodNamePtr), NULL);
Error: CLANG_WARNING: [#def1601]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:2633:7: warning[core.NullDereference]: Access to field 'bytes' results in a dereference of a null pointer (loaded from variable 'methodNamePtr')
# 2631| "no valid method implementation", -1));
# 2632| Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "METHOD",
# 2633|-> TclGetString(methodNamePtr), NULL);
# 2634| TclOODeleteContext(contextPtr);
# 2635| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def1602]
tcl-8.6.14-build/tcl8.6.14/generic/tclOO.c:2929: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2927| return oPtr->cachedNameObj;
# 2928| }
# 2929|-> TclNewObj(namePtr);
# 2930| Tcl_GetCommandFullName(interp, oPtr->command, namePtr);
# 2931| Tcl_IncrRefCount(namePtr);
Error: CPPCHECK_WARNING: [#def1603]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOBasic.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1604]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOBasic.c:132: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 130| Tcl_Obj **invoke = data[0];
# 131|
# 132|-> TclDecrRefCount(invoke[0]);
# 133| TclDecrRefCount(invoke[1]);
# 134| TclDecrRefCount(invoke[2]);
Error: CPPCHECK_WARNING (CWE-476): [#def1605]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOBasic.c:133: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 131|
# 132| TclDecrRefCount(invoke[0]);
# 133|-> TclDecrRefCount(invoke[1]);
# 134| TclDecrRefCount(invoke[2]);
# 135| ckfree(invoke);
Error: CPPCHECK_WARNING (CWE-476): [#def1606]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOBasic.c:134: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 132| TclDecrRefCount(invoke[0]);
# 133| TclDecrRefCount(invoke[1]);
# 134|-> TclDecrRefCount(invoke[2]);
# 135| ckfree(invoke);
# 136| return result;
Error: CPPCHECK_WARNING (CWE-476): [#def1607]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOBasic.c:730: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 728| */
# 729|
# 730|-> TclNewObj(varNamePtr);
# 731| if (aryVar != NULL) {
# 732| Tcl_HashEntry *hPtr;
Error: CPPCHECK_WARNING (CWE-476): [#def1608]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOBasic.c:1158: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1156| case SELF_CALL:
# 1157| result[0] = TclOORenderCallChain(interp, contextPtr->callPtr);
# 1158|-> TclNewIntObj(result[1], contextPtr->index);
# 1159| Tcl_SetObjResult(interp, Tcl_NewListObj(2, result));
# 1160| return TCL_OK;
Error: CPPCHECK_WARNING: [#def1609]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOCall.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1610]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1611]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:853: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 851| */
# 852|
# 853|-> TclNewObj(objPtr);
# 854| TclNewObj(obj2Ptr);
# 855| cmd = FindCommand(interp, objv[cmdIndex], nsPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1612]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:854: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 852|
# 853| TclNewObj(objPtr);
# 854|-> TclNewObj(obj2Ptr);
# 855| cmd = FindCommand(interp, objv[cmdIndex], nsPtr);
# 856| if (cmd == NULL) {
Error: CPPCHECK_WARNING (CWE-476): [#def1613]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:939: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 937| GenerateErrorInfo(interp, oPtr, objNameObj, "class");
# 938| }
# 939|-> TclDecrRefCount(objNameObj);
# 940| } else {
# 941| result = MagicDefinitionInvoke(interp, fPtr->defineNs, 2, objc, objv);
Error: CPPCHECK_WARNING (CWE-476): [#def1614]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:1006: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1004| GenerateErrorInfo(interp, oPtr, objNameObj, "object");
# 1005| }
# 1006|-> TclDecrRefCount(objNameObj);
# 1007| } else {
# 1008| result = MagicDefinitionInvoke(interp, fPtr->objdefNs, 2, objc, objv);
Error: CPPCHECK_WARNING (CWE-476): [#def1615]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:1073: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1071| GenerateErrorInfo(interp, oPtr, objNameObj, "class object");
# 1072| }
# 1073|-> TclDecrRefCount(objNameObj);
# 1074| } else {
# 1075| result = MagicDefinitionInvoke(interp, fPtr->objdefNs, 1, objc, objv);
Error: CPPCHECK_WARNING (CWE-476): [#def1616]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:1877: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1875| }
# 1876|
# 1877|-> TclNewObj(resultObj);
# 1878| FOREACH(filterObj, oPtr->classPtr->filters) {
# 1879| Tcl_ListObjAppendElement(NULL, resultObj, filterObj);
Error: CPPCHECK_WARNING (CWE-457): [#def1617]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:1911: error[legacyUninitvar]: Uninitialized variable: *(&filterv)
# 1909| Tcl_SetErrorCode(interp, "TCL", "OO", "MONKEY_BUSINESS", NULL);
# 1910| return TCL_ERROR;
# 1911|-> } else if (TclListObjGetElements(interp, objv[0], &filterc,
# 1912| &filterv) != TCL_OK) {
# 1913| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def1618]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:1957: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1955| }
# 1956|
# 1957|-> TclNewObj(resultObj);
# 1958| FOREACH(mixinPtr, oPtr->classPtr->mixins) {
# 1959| Tcl_ListObjAppendElement(NULL, resultObj,
Error: CPPCHECK_WARNING (CWE-457): [#def1619]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:1994: error[legacyUninitvar]: Uninitialized variable: *(&mixinv)
# 1992| Tcl_SetErrorCode(interp, "TCL", "OO", "MONKEY_BUSINESS", NULL);
# 1993| return TCL_ERROR;
# 1994|-> } else if (TclListObjGetElements(interp, objv[0], &mixinc,
# 1995| &mixinv) != TCL_OK) {
# 1996| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def1620]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:2062: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2060| }
# 2061|
# 2062|-> TclNewObj(resultObj);
# 2063| FOREACH(superPtr, oPtr->classPtr->superclasses) {
# 2064| Tcl_ListObjAppendElement(NULL, resultObj,
Error: CPPCHECK_WARNING (CWE-457): [#def1621]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:2103: error[legacyUninitvar]: Uninitialized variable: *(&superv)
# 2101| Tcl_SetErrorCode(interp, "TCL", "OO", "MONKEY_BUSINESS", NULL);
# 2102| return TCL_ERROR;
# 2103|-> } else if (TclListObjGetElements(interp, objv[0], &superc,
# 2104| &superv) != TCL_OK) {
# 2105| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def1622]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:2227: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2225| }
# 2226|
# 2227|-> TclNewObj(resultObj);
# 2228| FOREACH(variableObj, oPtr->classPtr->variables) {
# 2229| Tcl_ListObjAppendElement(NULL, resultObj, variableObj);
Error: CPPCHECK_WARNING (CWE-457): [#def1623]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:2262: error[legacyUninitvar]: Uninitialized variable: *(&varv)
# 2260| Tcl_SetErrorCode(interp, "TCL", "OO", "MONKEY_BUSINESS", NULL);
# 2261| return TCL_ERROR;
# 2262|-> } else if (TclListObjGetElements(interp, objv[0], &varc,
# 2263| &varv) != TCL_OK) {
# 2264| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def1624]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:2363: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2361| }
# 2362|
# 2363|-> TclNewObj(resultObj);
# 2364| FOREACH(filterObj, oPtr->filters) {
# 2365| Tcl_ListObjAppendElement(NULL, resultObj, filterObj);
Error: CPPCHECK_WARNING (CWE-457): [#def1625]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:2391: error[legacyUninitvar]: Uninitialized variable: *(&filterv)
# 2389| }
# 2390| objv += Tcl_ObjectContextSkippedArgs(context);
# 2391|-> if (TclListObjGetElements(interp, objv[0], &filterc,
# 2392| &filterv) != TCL_OK) {
# 2393| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def1626]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:2431: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2429| }
# 2430|
# 2431|-> TclNewObj(resultObj);
# 2432| FOREACH(mixinPtr, oPtr->mixins) {
# 2433| if (mixinPtr) {
Error: CPPCHECK_WARNING (CWE-457): [#def1627]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:2464: error[legacyUninitvar]: Uninitialized variable: *(&mixinv)
# 2462| }
# 2463| objv += Tcl_ObjectContextSkippedArgs(context);
# 2464|-> if (TclListObjGetElements(interp, objv[0], &mixinc,
# 2465| &mixinv) != TCL_OK) {
# 2466| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def1628]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:2515: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2513| }
# 2514|
# 2515|-> TclNewObj(resultObj);
# 2516| FOREACH(variableObj, oPtr->variables) {
# 2517| Tcl_ListObjAppendElement(NULL, resultObj, variableObj);
Error: CPPCHECK_WARNING (CWE-457): [#def1629]
tcl-8.6.14-build/tcl8.6.14/generic/tclOODefineCmds.c:2543: error[legacyUninitvar]: Uninitialized variable: *(&varv)
# 2541| }
# 2542| objv += Tcl_ObjectContextSkippedArgs(context);
# 2543|-> if (TclListObjGetElements(interp, objv[0], &varc,
# 2544| &varv) != TCL_OK) {
# 2545| return TCL_ERROR;
Error: CPPCHECK_WARNING: [#def1630]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1631]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c:269: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 267| }
# 268|
# 269|-> TclNewObj(resultObjs[0]);
# 270| for (localPtr=procPtr->firstLocalPtr; localPtr!=NULL;
# 271| localPtr=localPtr->nextPtr) {
Error: CPPCHECK_WARNING (CWE-476): [#def1632]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c:275: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 273| Tcl_Obj *argObj;
# 274|
# 275|-> TclNewObj(argObj);
# 276| Tcl_ListObjAppendElement(NULL, argObj,
# 277| Tcl_NewStringObj(localPtr->name, -1));
Error: CPPCHECK_WARNING (CWE-476): [#def1633]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c:319: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 317| return TCL_ERROR;
# 318| }
# 319|-> TclNewObj(resultObj);
# 320|
# 321| FOREACH(filterObj, oPtr->filters) {
Error: CPPCHECK_WARNING (CWE-476): [#def1634]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c:563: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 561| }
# 562|
# 563|-> TclNewObj(resultObj);
# 564| if (recurse) {
# 565| const char **names;
Error: CPPCHECK_WARNING (CWE-476): [#def1635]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c:674: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 672| }
# 673|
# 674|-> TclNewObj(resultObj);
# 675| FOREACH(mixinPtr, oPtr->mixins) {
# 676| if (!mixinPtr) {
Error: CPPCHECK_WARNING (CWE-476): [#def1636]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c:749: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 747| }
# 748|
# 749|-> TclNewObj(resultObj);
# 750| FOREACH(variableObj, oPtr->variables) {
# 751| Tcl_ListObjAppendElement(NULL, resultObj, variableObj);
Error: CPPCHECK_WARNING (CWE-476): [#def1637]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c:791: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 789| pattern = TclGetString(objv[2]);
# 790| }
# 791|-> TclNewObj(resultObj);
# 792|
# 793| /*
Error: CPPCHECK_WARNING (CWE-476): [#def1638]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c:859: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 857| }
# 858|
# 859|-> TclNewObj(resultObjs[0]);
# 860| for (localPtr=procPtr->firstLocalPtr; localPtr!=NULL;
# 861| localPtr=localPtr->nextPtr) {
Error: CPPCHECK_WARNING (CWE-476): [#def1639]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c:865: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 863| Tcl_Obj *argObj;
# 864|
# 865|-> TclNewObj(argObj);
# 866| Tcl_ListObjAppendElement(NULL, argObj,
# 867| Tcl_NewStringObj(localPtr->name, -1));
Error: CPPCHECK_WARNING (CWE-476): [#def1640]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c:927: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 925| }
# 926|
# 927|-> TclNewObj(resultObjs[0]);
# 928| for (localPtr=procPtr->firstLocalPtr; localPtr!=NULL;
# 929| localPtr=localPtr->nextPtr) {
Error: CPPCHECK_WARNING (CWE-476): [#def1641]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c:933: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 931| Tcl_Obj *argObj;
# 932|
# 933|-> TclNewObj(argObj);
# 934| Tcl_ListObjAppendElement(NULL, argObj,
# 935| Tcl_NewStringObj(localPtr->name, -1));
Error: CPPCHECK_WARNING (CWE-476): [#def1642]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c:1021: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1019| }
# 1020|
# 1021|-> TclNewObj(resultObj);
# 1022| FOREACH(filterObj, clsPtr->filters) {
# 1023| Tcl_ListObjAppendElement(NULL, resultObj, filterObj);
Error: CPPCHECK_WARNING (CWE-476): [#def1643]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c:1115: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1113| }
# 1114|
# 1115|-> TclNewObj(resultObj);
# 1116| FOREACH(oPtr, clsPtr->instances) {
# 1117| Tcl_Obj *tmpObj = TclOOObjectName(interp, oPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1644]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c:1186: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1184| }
# 1185|
# 1186|-> TclNewObj(resultObj);
# 1187| if (recurse) {
# 1188| const char **names;
Error: CPPCHECK_WARNING (CWE-476): [#def1645]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c:1293: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1291| }
# 1292|
# 1293|-> TclNewObj(resultObj);
# 1294| FOREACH(mixinPtr, clsPtr->mixins) {
# 1295| if (!mixinPtr) {
Error: CPPCHECK_WARNING (CWE-476): [#def1646]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c:1339: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1337| }
# 1338|
# 1339|-> TclNewObj(resultObj);
# 1340| FOREACH(subclassPtr, clsPtr->subclasses) {
# 1341| Tcl_Obj *tmpObj = TclOOObjectName(interp, subclassPtr->thisPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1647]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c:1390: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1388| }
# 1389|
# 1390|-> TclNewObj(resultObj);
# 1391| FOREACH(superPtr, clsPtr->superclasses) {
# 1392| Tcl_ListObjAppendElement(NULL, resultObj,
Error: CPPCHECK_WARNING (CWE-476): [#def1648]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOInfo.c:1429: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1427| }
# 1428|
# 1429|-> TclNewObj(resultObj);
# 1430| FOREACH(variableObj, clsPtr->variables) {
# 1431| Tcl_ListObjAppendElement(NULL, resultObj, variableObj);
Error: CPPCHECK_WARNING: [#def1649]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOMethod.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1650]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOMethod.c:397: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 395| if (argsObj == NULL) {
# 396| argsLen = -1;
# 397|-> TclNewObj(argsObj);
# 398| Tcl_IncrRefCount(argsObj);
# 399| procName = "<destructor>";
Error: CPPCHECK_WARNING (CWE-476): [#def1651]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOMethod.c:1299: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1297| */
# 1298|
# 1299|-> TclNewObj(argsObj);
# 1300| for (localPtr=pmPtr->procPtr->firstLocalPtr; localPtr!=NULL;
# 1301| localPtr=localPtr->nextPtr) {
Error: CPPCHECK_WARNING (CWE-476): [#def1652]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOMethod.c:1305: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1303| Tcl_Obj *argObj;
# 1304|
# 1305|-> TclNewObj(argObj);
# 1306| Tcl_ListObjAppendElement(NULL, argObj,
# 1307| Tcl_NewStringObj(localPtr->name, -1));
Error: CPPCHECK_WARNING (CWE-562): [#def1653]
tcl-8.6.14-build/tcl8.6.14/generic/tclOOStubLib.c:56: error[returnDanglingLifetime]: Returning pointer to local variable 'stubsPtr' that will be invalid when returning.
# 54| tclOOIntStubsPtr = NULL;
# 55| }
# 56|-> return actualVersion;
# 57| }
# 58| tclStubsPtr->tcl_ResetResult(interp);
Error: CPPCHECK_WARNING: [#def1654]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1655]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:1151: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1149| */
# 1150|
# 1151|-> TclNewObj(objPtr);
# 1152| return objPtr;
# 1153| }
Error: CPPCHECK_WARNING (CWE-457): [#def1656]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:1151: error[uninitvar]: Uninitialized variable: cachePtr
# 1149| */
# 1150|
# 1151|-> TclNewObj(objPtr);
# 1152| return objPtr;
# 1153| }
Error: CPPCHECK_WARNING (CWE-457): [#def1657]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:1151: error[uninitvar]: Uninitialized variable: objPtr
# 1149| */
# 1150|
# 1151|-> TclNewObj(objPtr);
# 1152| return objPtr;
# 1153| }
Error: CPPCHECK_WARNING (CWE-476): [#def1658]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:1437: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1435|
# 1436| TCL_DTRACE_OBJ_FREE(objPtr);
# 1437|-> TclFreeObjStorage(objPtr);
# 1438| TclIncrObjsFreed();
# 1439| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1659]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:1437: error[uninitvar]: Uninitialized variable: cachePtr
# 1435|
# 1436| TCL_DTRACE_OBJ_FREE(objPtr);
# 1437|-> TclFreeObjStorage(objPtr);
# 1438| TclIncrObjsFreed();
# 1439| } else {
Error: CPPCHECK_WARNING (CWE-476): [#def1660]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:1464: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1462| ObjDeletionUnlock(context);
# 1463|
# 1464|-> TclFreeObjStorage(objPtr);
# 1465| TclIncrObjsFreed();
# 1466| ObjDeletionLock(context);
Error: CPPCHECK_WARNING (CWE-457): [#def1661]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:1464: error[uninitvar]: Uninitialized variable: cachePtr
# 1462| ObjDeletionUnlock(context);
# 1463|
# 1464|-> TclFreeObjStorage(objPtr);
# 1465| TclIncrObjsFreed();
# 1466| ObjDeletionLock(context);
Error: CPPCHECK_WARNING (CWE-476): [#def1662]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:1476: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1474| objToFree->typePtr->freeIntRepProc(objToFree);
# 1475| }
# 1476|-> TclFreeObjStorage(objToFree);
# 1477| TclIncrObjsFreed();
# 1478| }
Error: CPPCHECK_WARNING (CWE-457): [#def1663]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:1476: error[uninitvar]: Uninitialized variable: cachePtr
# 1474| objToFree->typePtr->freeIntRepProc(objToFree);
# 1475| }
# 1476|-> TclFreeObjStorage(objToFree);
# 1477| TclIncrObjsFreed();
# 1478| }
Error: CPPCHECK_WARNING (CWE-476): [#def1664]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:1587: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1585| Tcl_Obj *dupPtr;
# 1586|
# 1587|-> TclNewObj(dupPtr);
# 1588| SetDuplicateObj(dupPtr, objPtr);
# 1589| return dupPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1665]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:1587: error[uninitvar]: Uninitialized variable: cachePtr
# 1585| Tcl_Obj *dupPtr;
# 1586|
# 1587|-> TclNewObj(dupPtr);
# 1588| SetDuplicateObj(dupPtr, objPtr);
# 1589| return dupPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1666]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:1587: error[uninitvar]: Uninitialized variable: dupPtr
# 1585| Tcl_Obj *dupPtr;
# 1586|
# 1587|-> TclNewObj(dupPtr);
# 1588| SetDuplicateObj(dupPtr, objPtr);
# 1589| return dupPtr;
Error: CPPCHECK_WARNING (CWE-476): [#def1667]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:1767: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1765| Tcl_Obj *objPtr;
# 1766|
# 1767|-> TclNewBooleanObj(objPtr, intValue);
# 1768| return objPtr;
# 1769| }
Error: CPPCHECK_WARNING (CWE-457): [#def1668]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:1767: error[uninitvar]: Uninitialized variable: cachePtr
# 1765| Tcl_Obj *objPtr;
# 1766|
# 1767|-> TclNewBooleanObj(objPtr, intValue);
# 1768| return objPtr;
# 1769| }
Error: CPPCHECK_WARNING (CWE-457): [#def1669]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:1767: error[uninitvar]: Uninitialized variable: objPtr
# 1765| Tcl_Obj *objPtr;
# 1766|
# 1767|-> TclNewBooleanObj(objPtr, intValue);
# 1768| return objPtr;
# 1769| }
Error: CPPCHECK_WARNING (CWE-476): [#def1670]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:1995: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1993| Tcl_Obj *msg;
# 1994|
# 1995|-> TclNewLiteralStringObj(msg, "expected boolean value but got \"");
# 1996| Tcl_AppendLimitedToObj(msg, str, length, 50, "");
# 1997| Tcl_AppendToObj(msg, "\"", -1);
Error: CPPCHECK_WARNING (CWE-457): [#def1671]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:1995: error[uninitvar]: Uninitialized variable: cachePtr
# 1993| Tcl_Obj *msg;
# 1994|
# 1995|-> TclNewLiteralStringObj(msg, "expected boolean value but got \"");
# 1996| Tcl_AppendLimitedToObj(msg, str, length, 50, "");
# 1997| Tcl_AppendToObj(msg, "\"", -1);
Error: CPPCHECK_WARNING (CWE-457): [#def1672]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:1995: error[uninitvar]: Uninitialized variable: msg
# 1993| Tcl_Obj *msg;
# 1994|
# 1995|-> TclNewLiteralStringObj(msg, "expected boolean value but got \"");
# 1996| Tcl_AppendLimitedToObj(msg, str, length, 50, "");
# 1997| Tcl_AppendToObj(msg, "\"", -1);
Error: CPPCHECK_WARNING (CWE-476): [#def1673]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:2160: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2158| Tcl_Obj *objPtr;
# 2159|
# 2160|-> TclNewDoubleObj(objPtr, dblValue);
# 2161| return objPtr;
# 2162| }
Error: CPPCHECK_WARNING (CWE-457): [#def1674]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:2160: error[uninitvar]: Uninitialized variable: cachePtr
# 2158| Tcl_Obj *objPtr;
# 2159|
# 2160|-> TclNewDoubleObj(objPtr, dblValue);
# 2161| return objPtr;
# 2162| }
Error: CPPCHECK_WARNING (CWE-457): [#def1675]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:2160: error[uninitvar]: Uninitialized variable: objPtr
# 2158| Tcl_Obj *objPtr;
# 2159|
# 2160|-> TclNewDoubleObj(objPtr, dblValue);
# 2161| return objPtr;
# 2162| }
Error: CPPCHECK_WARNING (CWE-476): [#def1676]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:2429: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2427| Tcl_Obj *objPtr;
# 2428|
# 2429|-> TclNewIntObj(objPtr, intValue);
# 2430| return objPtr;
# 2431| }
Error: CPPCHECK_WARNING (CWE-457): [#def1677]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:2429: error[uninitvar]: Uninitialized variable: cachePtr
# 2427| Tcl_Obj *objPtr;
# 2428|
# 2429|-> TclNewIntObj(objPtr, intValue);
# 2430| return objPtr;
# 2431| }
Error: CPPCHECK_WARNING (CWE-457): [#def1678]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:2429: error[uninitvar]: Uninitialized variable: objPtr
# 2427| Tcl_Obj *objPtr;
# 2428|
# 2429|-> TclNewIntObj(objPtr, intValue);
# 2430| return objPtr;
# 2431| }
Error: CPPCHECK_WARNING (CWE-476): [#def1679]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:2639: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2637| Tcl_Obj *objPtr;
# 2638|
# 2639|-> TclNewLongObj(objPtr, longValue);
# 2640| return objPtr;
# 2641| }
Error: CPPCHECK_WARNING (CWE-457): [#def1680]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:2639: error[uninitvar]: Uninitialized variable: cachePtr
# 2637| Tcl_Obj *objPtr;
# 2638|
# 2639|-> TclNewLongObj(objPtr, longValue);
# 2640| return objPtr;
# 2641| }
Error: CPPCHECK_WARNING (CWE-457): [#def1681]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:2639: error[uninitvar]: Uninitialized variable: objPtr
# 2637| Tcl_Obj *objPtr;
# 2638|
# 2639|-> TclNewLongObj(objPtr, longValue);
# 2640| return objPtr;
# 2641| }
Error: CPPCHECK_WARNING (CWE-476): [#def1682]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:2941: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2939| Tcl_Obj *objPtr;
# 2940|
# 2941|-> TclNewObj(objPtr);
# 2942| Tcl_SetWideIntObj(objPtr, wideValue);
# 2943| return objPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1683]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:2941: error[uninitvar]: Uninitialized variable: cachePtr
# 2939| Tcl_Obj *objPtr;
# 2940|
# 2941|-> TclNewObj(objPtr);
# 2942| Tcl_SetWideIntObj(objPtr, wideValue);
# 2943| return objPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1684]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:2941: error[uninitvar]: Uninitialized variable: objPtr
# 2939| Tcl_Obj *objPtr;
# 2940|
# 2941|-> TclNewObj(objPtr);
# 2942| Tcl_SetWideIntObj(objPtr, wideValue);
# 2943| return objPtr;
Error: CPPCHECK_WARNING (CWE-476): [#def1685]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:3315: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3313| Tcl_Obj *objPtr;
# 3314|
# 3315|-> TclNewObj(objPtr);
# 3316| Tcl_SetBignumObj(objPtr, bignumValue);
# 3317| return objPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1686]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:3315: error[uninitvar]: Uninitialized variable: cachePtr
# 3313| Tcl_Obj *objPtr;
# 3314|
# 3315|-> TclNewObj(objPtr);
# 3316| Tcl_SetBignumObj(objPtr, bignumValue);
# 3317| return objPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1687]
tcl-8.6.14-build/tcl8.6.14/generic/tclObj.c:3315: error[uninitvar]: Uninitialized variable: objPtr
# 3313| Tcl_Obj *objPtr;
# 3314|
# 3315|-> TclNewObj(objPtr);
# 3316| Tcl_SetBignumObj(objPtr, bignumValue);
# 3317| return objPtr;
Error: CPPCHECK_WARNING: [#def1688]
tcl-8.6.14-build/tcl8.6.14/generic/tclParse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1689]
tcl-8.6.14-build/tcl8.6.14/generic/tclParse.c:343:6: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'src')
# 341|
# 342| parseWord:
# 343|-> if (*src == '"') {
# 344| if (Tcl_ParseQuotedString(interp, src, numBytes, parsePtr, 1,
# 345| &termPtr) != TCL_OK) {
Error: CPPCHECK_WARNING: [#def1690]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1691]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:270: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 268| /* Safety check in case driver caused sharing */
# 269| if (Tcl_IsShared(retVal)) {
# 270|-> TclDecrRefCount(retVal);
# 271| retVal = Tcl_DuplicateObj(retVal);
# 272| Tcl_IncrRefCount(retVal);
Error: CPPCHECK_WARNING (CWE-457): [#def1692]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:270: error[uninitvar]: Uninitialized variable: cachePtr
# 268| /* Safety check in case driver caused sharing */
# 269| if (Tcl_IsShared(retVal)) {
# 270|-> TclDecrRefCount(retVal);
# 271| retVal = Tcl_DuplicateObj(retVal);
# 272| Tcl_IncrRefCount(retVal);
Error: CPPCHECK_WARNING (CWE-476): [#def1693]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:306: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 304| Tcl_SetObjLength(retVal, curLen+1);
# 305| Tcl_AppendObjToObj(retVal, linkObj);
# 306|-> TclDecrRefCount(linkObj);
# 307| linkStr = Tcl_GetStringFromObj(retVal, &curLen);
# 308| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1694]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:306: error[uninitvar]: Uninitialized variable: cachePtr
# 304| Tcl_SetObjLength(retVal, curLen+1);
# 305| Tcl_AppendObjToObj(retVal, linkObj);
# 306|-> TclDecrRefCount(linkObj);
# 307| linkStr = Tcl_GetStringFromObj(retVal, &curLen);
# 308| } else {
Error: CPPCHECK_WARNING (CWE-476): [#def1695]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:313: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 311| */
# 312|
# 313|-> TclDecrRefCount(retVal);
# 314| if (Tcl_IsShared(linkObj)) {
# 315| retVal = Tcl_DuplicateObj(linkObj);
Error: CPPCHECK_WARNING (CWE-457): [#def1696]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:313: error[uninitvar]: Uninitialized variable: cachePtr
# 311| */
# 312|
# 313|-> TclDecrRefCount(retVal);
# 314| if (Tcl_IsShared(linkObj)) {
# 315| retVal = Tcl_DuplicateObj(linkObj);
Error: CPPCHECK_WARNING (CWE-476): [#def1697]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:316: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 314| if (Tcl_IsShared(linkObj)) {
# 315| retVal = Tcl_DuplicateObj(linkObj);
# 316|-> TclDecrRefCount(linkObj);
# 317| } else {
# 318| retVal = linkObj;
Error: CPPCHECK_WARNING (CWE-457): [#def1698]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:316: error[uninitvar]: Uninitialized variable: cachePtr
# 314| if (Tcl_IsShared(linkObj)) {
# 315| retVal = Tcl_DuplicateObj(linkObj);
# 316|-> TclDecrRefCount(linkObj);
# 317| } else {
# 318| retVal = linkObj;
Error: CPPCHECK_WARNING (CWE-476): [#def1699]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:396: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 394| */
# 395|
# 396|-> TclDecrRefCount(retVal);
# 397| retVal = Tcl_DuplicateObj(pathPtr);
# 398| Tcl_IncrRefCount(retVal);
Error: CPPCHECK_WARNING (CWE-457): [#def1700]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:396: error[uninitvar]: Uninitialized variable: cachePtr
# 394| */
# 395|
# 396|-> TclDecrRefCount(retVal);
# 397| retVal = Tcl_DuplicateObj(pathPtr);
# 398| Tcl_IncrRefCount(retVal);
Error: CPPCHECK_WARNING (CWE-476): [#def1701]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:412: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 410| if (len == 2 && path[0] != 0 && path[1] == ':') {
# 411| if (Tcl_IsShared(retVal)) {
# 412|-> TclDecrRefCount(retVal);
# 413| retVal = Tcl_DuplicateObj(retVal);
# 414| Tcl_IncrRefCount(retVal);
Error: CPPCHECK_WARNING (CWE-457): [#def1702]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:412: error[uninitvar]: Uninitialized variable: cachePtr
# 410| if (len == 2 && path[0] != 0 && path[1] == ':') {
# 411| if (Tcl_IsShared(retVal)) {
# 412|-> TclDecrRefCount(retVal);
# 413| retVal = Tcl_DuplicateObj(retVal);
# 414| Tcl_IncrRefCount(retVal);
Error: CPPCHECK_WARNING (CWE-476): [#def1703]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:728: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 726| Tcl_Obj *norm;
# 727|
# 728|-> TclDecrRefCount(splitPtr);
# 729| norm = Tcl_FSGetNormalizedPath(interp, pathPtr);
# 730| if (norm == NULL) {
Error: CPPCHECK_WARNING (CWE-457): [#def1704]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:728: error[uninitvar]: Uninitialized variable: cachePtr
# 726| Tcl_Obj *norm;
# 727|
# 728|-> TclDecrRefCount(splitPtr);
# 729| norm = Tcl_FSGetNormalizedPath(interp, pathPtr);
# 730| if (norm == NULL) {
Error: CPPCHECK_WARNING (CWE-476): [#def1705]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:746: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 744| Tcl_ListObjIndex(NULL, splitPtr, splitElements-1, &resultPtr);
# 745| } else {
# 746|-> TclNewObj(resultPtr);
# 747| }
# 748| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1706]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:746: error[uninitvar]: Uninitialized variable: cachePtr
# 744| Tcl_ListObjIndex(NULL, splitPtr, splitElements-1, &resultPtr);
# 745| } else {
# 746|-> TclNewObj(resultPtr);
# 747| }
# 748| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1707]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:746: error[uninitvar]: Uninitialized variable: resultPtr
# 744| Tcl_ListObjIndex(NULL, splitPtr, splitElements-1, &resultPtr);
# 745| } else {
# 746|-> TclNewObj(resultPtr);
# 747| }
# 748| } else {
Error: CPPCHECK_WARNING (CWE-476): [#def1708]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:759: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 757| } else if (splitElements == 0 ||
# 758| (Tcl_FSGetPathType(pathPtr) == TCL_PATH_RELATIVE)) {
# 759|-> TclNewLiteralStringObj(resultPtr, ".");
# 760| } else {
# 761| Tcl_ListObjIndex(NULL, splitPtr, 0, &resultPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1709]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:759: error[uninitvar]: Uninitialized variable: (resultPtr)->internalRep.twoPtrValue.ptr1
# 757| } else if (splitElements == 0 ||
# 758| (Tcl_FSGetPathType(pathPtr) == TCL_PATH_RELATIVE)) {
# 759|-> TclNewLiteralStringObj(resultPtr, ".");
# 760| } else {
# 761| Tcl_ListObjIndex(NULL, splitPtr, 0, &resultPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1710]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:759: error[uninitvar]: Uninitialized variable: cachePtr
# 757| } else if (splitElements == 0 ||
# 758| (Tcl_FSGetPathType(pathPtr) == TCL_PATH_RELATIVE)) {
# 759|-> TclNewLiteralStringObj(resultPtr, ".");
# 760| } else {
# 761| Tcl_ListObjIndex(NULL, splitPtr, 0, &resultPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1711]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:765: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 763| }
# 764| Tcl_IncrRefCount(resultPtr);
# 765|-> TclDecrRefCount(splitPtr);
# 766| return resultPtr;
# 767| }
Error: CPPCHECK_WARNING (CWE-457): [#def1712]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:765: error[uninitvar]: Uninitialized variable: cachePtr
# 763| }
# 764| Tcl_IncrRefCount(resultPtr);
# 765|-> TclDecrRefCount(splitPtr);
# 766| return resultPtr;
# 767| }
Error: CPPCHECK_WARNING (CWE-476): [#def1713]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:784: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 782| extension = TclGetExtension(tail);
# 783| if (extension == NULL) {
# 784|-> TclNewObj(ret);
# 785| } else {
# 786| ret = Tcl_NewStringObj(extension, -1);
Error: CPPCHECK_WARNING (CWE-457): [#def1714]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:784: error[uninitvar]: Uninitialized variable: cachePtr
# 782| extension = TclGetExtension(tail);
# 783| if (extension == NULL) {
# 784|-> TclNewObj(ret);
# 785| } else {
# 786| ret = Tcl_NewStringObj(extension, -1);
Error: CPPCHECK_WARNING (CWE-457): [#def1715]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:784: error[uninitvar]: Uninitialized variable: ret
# 782| extension = TclGetExtension(tail);
# 783| if (extension == NULL) {
# 784|-> TclNewObj(ret);
# 785| } else {
# 786| ret = Tcl_NewStringObj(extension, -1);
Error: CPPCHECK_WARNING (CWE-476): [#def1716]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:860: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 858|
# 859| if (elements == 0) {
# 860|-> TclNewObj(res);
# 861| return res;
# 862| }
Error: CPPCHECK_WARNING (CWE-457): [#def1717]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:860: error[uninitvar]: Uninitialized variable: cachePtr
# 858|
# 859| if (elements == 0) {
# 860|-> TclNewObj(res);
# 861| return res;
# 862| }
Error: CPPCHECK_WARNING (CWE-457): [#def1718]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:860: error[uninitvar]: Uninitialized variable: res
# 858|
# 859| if (elements == 0) {
# 860|-> TclNewObj(res);
# 861| return res;
# 862| }
Error: CPPCHECK_WARNING (CWE-476): [#def1719]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:976: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 974|
# 975| if (res != NULL) {
# 976|-> TclDecrRefCount(res);
# 977| }
# 978|
Error: CPPCHECK_WARNING (CWE-457): [#def1720]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:976: error[uninitvar]: Uninitialized variable: cachePtr
# 974|
# 975| if (res != NULL) {
# 976|-> TclDecrRefCount(res);
# 977| }
# 978|
Error: CPPCHECK_WARNING (CWE-476): [#def1721]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:988: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 986|
# 987| res = Tcl_DuplicateObj(driveName);
# 988|-> TclDecrRefCount(driveName);
# 989|
# 990| /*
Error: CPPCHECK_WARNING (CWE-457): [#def1722]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:988: error[uninitvar]: Uninitialized variable: cachePtr
# 986|
# 987| res = Tcl_DuplicateObj(driveName);
# 988|-> TclDecrRefCount(driveName);
# 989|
# 990| /*
Error: CPPCHECK_WARNING (CWE-476): [#def1723]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1042: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1040| }
# 1041| if (res != NULL) {
# 1042|-> TclDecrRefCount(res);
# 1043| }
# 1044|
Error: CPPCHECK_WARNING (CWE-457): [#def1724]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1042: error[uninitvar]: Uninitialized variable: cachePtr
# 1040| }
# 1041| if (res != NULL) {
# 1042|-> TclDecrRefCount(res);
# 1043| }
# 1044|
Error: CPPCHECK_WARNING (CWE-476): [#def1725]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1060: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1058| noQuickReturn:
# 1059| if (res == NULL) {
# 1060|-> TclNewObj(res);
# 1061| ptr = Tcl_GetStringFromObj(res, &length);
# 1062| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1726]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1060: error[uninitvar]: Uninitialized variable: (res)->internalRep.twoPtrValue.ptr1
# 1058| noQuickReturn:
# 1059| if (res == NULL) {
# 1060|-> TclNewObj(res);
# 1061| ptr = Tcl_GetStringFromObj(res, &length);
# 1062| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1727]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1060: error[uninitvar]: Uninitialized variable: cachePtr
# 1058| noQuickReturn:
# 1059| if (res == NULL) {
# 1060|-> TclNewObj(res);
# 1061| ptr = Tcl_GetStringFromObj(res, &length);
# 1062| } else {
Error: CPPCHECK_WARNING (CWE-476): [#def1728]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1101: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1099| /* Safety check in case the VFS driver caused sharing */
# 1100| if (Tcl_IsShared(res)) {
# 1101|-> TclDecrRefCount(res);
# 1102| res = Tcl_DuplicateObj(res);
# 1103| Tcl_IncrRefCount(res);
Error: CPPCHECK_WARNING (CWE-457): [#def1729]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1101: error[uninitvar]: Uninitialized variable: cachePtr
# 1099| /* Safety check in case the VFS driver caused sharing */
# 1100| if (Tcl_IsShared(res)) {
# 1101|-> TclDecrRefCount(res);
# 1102| res = Tcl_DuplicateObj(res);
# 1103| Tcl_IncrRefCount(res);
Error: CPPCHECK_WARNING (CWE-476): [#def1730]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1321: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1319| }
# 1320|
# 1321|-> TclNewObj(pathPtr);
# 1322| fsPathPtr = ckalloc(sizeof(FsPath));
# 1323|
Error: CPPCHECK_WARNING (CWE-457): [#def1731]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1321: error[uninitvar]: Uninitialized variable: cachePtr
# 1319| }
# 1320|
# 1321|-> TclNewObj(pathPtr);
# 1322| fsPathPtr = ckalloc(sizeof(FsPath));
# 1323|
Error: CPPCHECK_WARNING (CWE-457): [#def1732]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1321: error[uninitvar]: Uninitialized variable: pathPtr
# 1319| }
# 1320|
# 1321|-> TclNewObj(pathPtr);
# 1322| fsPathPtr = ckalloc(sizeof(FsPath));
# 1323|
Error: CPPCHECK_WARNING (CWE-476): [#def1733]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1750: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1748|
# 1749| memcpy(result, orig, len+1);
# 1750|-> TclDecrRefCount(transPtr);
# 1751| return result;
# 1752| }
Error: CPPCHECK_WARNING (CWE-457): [#def1734]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1750: error[uninitvar]: Uninitialized variable: cachePtr
# 1748|
# 1749| memcpy(result, orig, len+1);
# 1750|-> TclDecrRefCount(transPtr);
# 1751| return result;
# 1752| }
Error: CPPCHECK_WARNING (CWE-476): [#def1735]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1869: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1867| Tcl_IncrRefCount(fsPathPtr->cwdPtr);
# 1868|
# 1869|-> TclDecrRefCount(fsPathPtr->normPathPtr);
# 1870| fsPathPtr->normPathPtr = copy;
# 1871|
Error: CPPCHECK_WARNING (CWE-457): [#def1736]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1869: error[uninitvar]: Uninitialized variable: cachePtr
# 1867| Tcl_IncrRefCount(fsPathPtr->cwdPtr);
# 1868|
# 1869|-> TclDecrRefCount(fsPathPtr->normPathPtr);
# 1870| fsPathPtr->normPathPtr = copy;
# 1871|
Error: CPPCHECK_WARNING (CWE-476): [#def1737]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1876: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1874| */
# 1875|
# 1876|-> TclDecrRefCount(dir);
# 1877| TclDecrRefCount(origDir);
# 1878| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1738]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1876: error[uninitvar]: Uninitialized variable: cachePtr
# 1874| */
# 1875|
# 1876|-> TclDecrRefCount(dir);
# 1877| TclDecrRefCount(origDir);
# 1878| } else {
Error: CPPCHECK_WARNING (CWE-476): [#def1739]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1877: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1875|
# 1876| TclDecrRefCount(dir);
# 1877|-> TclDecrRefCount(origDir);
# 1878| } else {
# 1879| TclDecrRefCount(fsPathPtr->cwdPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1740]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1877: error[uninitvar]: Uninitialized variable: cachePtr
# 1875|
# 1876| TclDecrRefCount(dir);
# 1877|-> TclDecrRefCount(origDir);
# 1878| } else {
# 1879| TclDecrRefCount(fsPathPtr->cwdPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1741]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1879: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1877| TclDecrRefCount(origDir);
# 1878| } else {
# 1879|-> TclDecrRefCount(fsPathPtr->cwdPtr);
# 1880| fsPathPtr->cwdPtr = NULL;
# 1881| TclDecrRefCount(fsPathPtr->normPathPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1742]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1879: error[uninitvar]: Uninitialized variable: cachePtr
# 1877| TclDecrRefCount(origDir);
# 1878| } else {
# 1879|-> TclDecrRefCount(fsPathPtr->cwdPtr);
# 1880| fsPathPtr->cwdPtr = NULL;
# 1881| TclDecrRefCount(fsPathPtr->normPathPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1743]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1881: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1879| TclDecrRefCount(fsPathPtr->cwdPtr);
# 1880| fsPathPtr->cwdPtr = NULL;
# 1881|-> TclDecrRefCount(fsPathPtr->normPathPtr);
# 1882| fsPathPtr->normPathPtr = copy;
# 1883|
Error: CPPCHECK_WARNING (CWE-457): [#def1744]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1881: error[uninitvar]: Uninitialized variable: cachePtr
# 1879| TclDecrRefCount(fsPathPtr->cwdPtr);
# 1880| fsPathPtr->cwdPtr = NULL;
# 1881|-> TclDecrRefCount(fsPathPtr->normPathPtr);
# 1882| fsPathPtr->normPathPtr = copy;
# 1883|
Error: CPPCHECK_WARNING (CWE-476): [#def1745]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1888: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1886| */
# 1887|
# 1888|-> TclDecrRefCount(dir);
# 1889| }
# 1890| PATHFLAGS(pathPtr) = 0;
Error: CPPCHECK_WARNING (CWE-457): [#def1746]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:1888: error[uninitvar]: Uninitialized variable: cachePtr
# 1886| */
# 1887|
# 1888|-> TclDecrRefCount(dir);
# 1889| }
# 1890| PATHFLAGS(pathPtr) = 0;
Error: CPPCHECK_WARNING (CWE-476): [#def1747]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:2026: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2024| */
# 2025|
# 2026|-> TclDecrRefCount(fsPathPtr->normPathPtr);
# 2027|
# 2028| /*
Error: CPPCHECK_WARNING (CWE-457): [#def1748]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:2026: error[uninitvar]: Uninitialized variable: cachePtr
# 2024| */
# 2025|
# 2026|-> TclDecrRefCount(fsPathPtr->normPathPtr);
# 2027|
# 2028| /*
Error: CPPCHECK_WARNING (CWE-476): [#def1749]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:2045: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2043| fsPathPtr->cwdPtr = useThisCwd;
# 2044| }
# 2045|-> TclDecrRefCount(absolutePath);
# 2046| }
# 2047|
Error: CPPCHECK_WARNING (CWE-457): [#def1750]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:2045: error[uninitvar]: Uninitialized variable: cachePtr
# 2043| fsPathPtr->cwdPtr = useThisCwd;
# 2044| }
# 2045|-> TclDecrRefCount(absolutePath);
# 2046| }
# 2047|
Error: CPPCHECK_WARNING (CWE-476): [#def1751]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:2462: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2460| TclpNativeJoinPath(transPtr, Tcl_GetString(*objv++));
# 2461| }
# 2462|-> TclDecrRefCount(parts);
# 2463| } else {
# 2464| Tcl_Obj *pair[2];
Error: CPPCHECK_WARNING (CWE-457): [#def1752]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:2462: error[uninitvar]: Uninitialized variable: cachePtr
# 2460| TclpNativeJoinPath(transPtr, Tcl_GetString(*objv++));
# 2461| }
# 2462|-> TclDecrRefCount(parts);
# 2463| } else {
# 2464| Tcl_Obj *pair[2];
Error: CPPCHECK_WARNING (CWE-476): [#def1753]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:2520: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2518| if (fsPathPtr->translatedPathPtr != NULL) {
# 2519| if (fsPathPtr->translatedPathPtr != pathPtr) {
# 2520|-> TclDecrRefCount(fsPathPtr->translatedPathPtr);
# 2521| }
# 2522| }
Error: CPPCHECK_WARNING (CWE-457): [#def1754]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:2520: error[uninitvar]: Uninitialized variable: cachePtr
# 2518| if (fsPathPtr->translatedPathPtr != NULL) {
# 2519| if (fsPathPtr->translatedPathPtr != pathPtr) {
# 2520|-> TclDecrRefCount(fsPathPtr->translatedPathPtr);
# 2521| }
# 2522| }
Error: CPPCHECK_WARNING (CWE-476): [#def1755]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:2525: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2523| if (fsPathPtr->normPathPtr != NULL) {
# 2524| if (fsPathPtr->normPathPtr != pathPtr) {
# 2525|-> TclDecrRefCount(fsPathPtr->normPathPtr);
# 2526| }
# 2527| fsPathPtr->normPathPtr = NULL;
Error: CPPCHECK_WARNING (CWE-457): [#def1756]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:2525: error[uninitvar]: Uninitialized variable: cachePtr
# 2523| if (fsPathPtr->normPathPtr != NULL) {
# 2524| if (fsPathPtr->normPathPtr != pathPtr) {
# 2525|-> TclDecrRefCount(fsPathPtr->normPathPtr);
# 2526| }
# 2527| fsPathPtr->normPathPtr = NULL;
Error: CPPCHECK_WARNING (CWE-476): [#def1757]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:2530: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2528| }
# 2529| if (fsPathPtr->cwdPtr != NULL) {
# 2530|-> TclDecrRefCount(fsPathPtr->cwdPtr);
# 2531| }
# 2532| if (fsPathPtr->nativePathPtr != NULL && fsPathPtr->fsPtr != NULL) {
Error: CPPCHECK_WARNING (CWE-457): [#def1758]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:2530: error[uninitvar]: Uninitialized variable: cachePtr
# 2528| }
# 2529| if (fsPathPtr->cwdPtr != NULL) {
# 2530|-> TclDecrRefCount(fsPathPtr->cwdPtr);
# 2531| }
# 2532| if (fsPathPtr->nativePathPtr != NULL && fsPathPtr->fsPtr != NULL) {
Error: CPPCHECK_WARNING (CWE-476): [#def1759]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:2637: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2635| copy->bytes = tclEmptyStringRep;
# 2636| copy->length = 0;
# 2637|-> TclDecrRefCount(copy);
# 2638| }
# 2639|
Error: CPPCHECK_WARNING (CWE-457): [#def1760]
tcl-8.6.14-build/tcl8.6.14/generic/tclPathObj.c:2637: error[uninitvar]: Uninitialized variable: cachePtr
# 2635| copy->bytes = tclEmptyStringRep;
# 2636| copy->length = 0;
# 2637|-> TclDecrRefCount(copy);
# 2638| }
# 2639|
Error: CPPCHECK_WARNING: [#def1761]
tcl-8.6.14-build/tcl8.6.14/generic/tclPipe.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1762]
tcl-8.6.14-build/tcl8.6.14/generic/tclPipe.c:374: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 372|
# 373| Tcl_Seek(errorChan, (Tcl_WideInt)0, SEEK_SET);
# 374|-> TclNewObj(objPtr);
# 375| count = Tcl_ReadChars(errorChan, objPtr, -1, 0);
# 376| if (count < 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def1763]
tcl-8.6.14-build/tcl8.6.14/generic/tclPipe.c:374: error[uninitvar]: Uninitialized variable: cachePtr
# 372|
# 373| Tcl_Seek(errorChan, (Tcl_WideInt)0, SEEK_SET);
# 374|-> TclNewObj(objPtr);
# 375| count = Tcl_ReadChars(errorChan, objPtr, -1, 0);
# 376| if (count < 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def1764]
tcl-8.6.14-build/tcl8.6.14/generic/tclPipe.c:374: error[uninitvar]: Uninitialized variable: objPtr
# 372|
# 373| Tcl_Seek(errorChan, (Tcl_WideInt)0, SEEK_SET);
# 374|-> TclNewObj(objPtr);
# 375| count = Tcl_ReadChars(errorChan, objPtr, -1, 0);
# 376| if (count < 0) {
Error: CPPCHECK_WARNING: [#def1765]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1766]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:336: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 334| Tcl_ResetResult(interp);
# 335| }
# 336|-> TclDecrRefCount(ov);
# 337| }
# 338| return result;
Error: CPPCHECK_WARNING (CWE-457): [#def1767]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:336: error[uninitvar]: Uninitialized variable: cachePtr
# 334| Tcl_ResetResult(interp);
# 335| }
# 336|-> TclDecrRefCount(ov);
# 337| }
# 338| return result;
Error: CPPCHECK_WARNING (CWE-476): [#def1768]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:723: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 721| Tcl_Obj *codePtr;
# 722|
# 723|-> TclNewIntObj(codePtr, result);
# 724| Tcl_SetObjResult(interp, Tcl_ObjPrintf(
# 725| "attempt to provide package %s %s failed:"
Error: CPPCHECK_WARNING (CWE-457): [#def1769]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:723: error[uninitvar]: Uninitialized variable: cachePtr
# 721| Tcl_Obj *codePtr;
# 722|
# 723|-> TclNewIntObj(codePtr, result);
# 724| Tcl_SetObjResult(interp, Tcl_ObjPrintf(
# 725| "attempt to provide package %s %s failed:"
Error: CPPCHECK_WARNING (CWE-457): [#def1770]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:723: error[uninitvar]: Uninitialized variable: codePtr
# 721| Tcl_Obj *codePtr;
# 722|
# 723|-> TclNewIntObj(codePtr, result);
# 724| Tcl_SetObjResult(interp, Tcl_ObjPrintf(
# 725| "attempt to provide package %s %s failed:"
Error: CPPCHECK_WARNING (CWE-476): [#def1771]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:729: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 727| name, versionToProvide, TclGetString(codePtr)));
# 728| Tcl_SetErrorCode(interp, "TCL", "PACKAGE", "BADRESULT", NULL);
# 729|-> TclDecrRefCount(codePtr);
# 730| result = TCL_ERROR;
# 731| }
Error: CPPCHECK_WARNING (CWE-457): [#def1772]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:729: error[uninitvar]: Uninitialized variable: cachePtr
# 727| name, versionToProvide, TclGetString(codePtr)));
# 728| Tcl_SetErrorCode(interp, "TCL", "PACKAGE", "BADRESULT", NULL);
# 729|-> TclDecrRefCount(codePtr);
# 730| result = TCL_ERROR;
# 731| }
Error: CPPCHECK_WARNING (CWE-476): [#def1773]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:1017: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1015| Tcl_Obj *resultObj;
# 1016|
# 1017|-> TclNewObj(resultObj);
# 1018| tablePtr = &iPtr->packageTable;
# 1019| for (hPtr = Tcl_FirstHashEntry(tablePtr, &search); hPtr != NULL;
Error: CPPCHECK_WARNING (CWE-457): [#def1774]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:1017: error[uninitvar]: Uninitialized variable: cachePtr
# 1015| Tcl_Obj *resultObj;
# 1016|
# 1017|-> TclNewObj(resultObj);
# 1018| tablePtr = &iPtr->packageTable;
# 1019| for (hPtr = Tcl_FirstHashEntry(tablePtr, &search); hPtr != NULL;
Error: CPPCHECK_WARNING (CWE-457): [#def1775]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:1017: error[uninitvar]: Uninitialized variable: resultObj
# 1015| Tcl_Obj *resultObj;
# 1016|
# 1017|-> TclNewObj(resultObj);
# 1018| tablePtr = &iPtr->packageTable;
# 1019| for (hPtr = Tcl_FirstHashEntry(tablePtr, &search); hPtr != NULL;
Error: CPPCHECK_WARNING (CWE-476): [#def1776]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:1262: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1260| Tcl_Obj *resultObj;
# 1261|
# 1262|-> TclNewObj(resultObj);
# 1263| argv2 = TclGetString(objv[2]);
# 1264| hPtr = Tcl_FindHashEntry(&iPtr->packageTable, argv2);
Error: CPPCHECK_WARNING (CWE-457): [#def1777]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:1262: error[uninitvar]: Uninitialized variable: cachePtr
# 1260| Tcl_Obj *resultObj;
# 1261|
# 1262|-> TclNewObj(resultObj);
# 1263| argv2 = TclGetString(objv[2]);
# 1264| hPtr = Tcl_FindHashEntry(&iPtr->packageTable, argv2);
Error: CPPCHECK_WARNING (CWE-457): [#def1778]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:1262: error[uninitvar]: Uninitialized variable: resultObj
# 1260| Tcl_Obj *resultObj;
# 1261|
# 1262|-> TclNewObj(resultObj);
# 1263| argv2 = TclGetString(objv[2]);
# 1264| hPtr = Tcl_FindHashEntry(&iPtr->packageTable, argv2);
Error: CPPCHECK_WARNING (CWE-476): [#def1779]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:1306: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1304| static int
# 1305| TclNRPackageObjCmdCleanup(ClientData data[], Tcl_Interp *interp, int result) {
# 1306|-> TclDecrRefCount((Tcl_Obj *)data[0]);
# 1307| TclDecrRefCount((Tcl_Obj *)data[1]);
# 1308| return result;
Error: CPPCHECK_WARNING (CWE-457): [#def1780]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:1306: error[uninitvar]: Uninitialized variable: cachePtr
# 1304| static int
# 1305| TclNRPackageObjCmdCleanup(ClientData data[], Tcl_Interp *interp, int result) {
# 1306|-> TclDecrRefCount((Tcl_Obj *)data[0]);
# 1307| TclDecrRefCount((Tcl_Obj *)data[1]);
# 1308| return result;
Error: CPPCHECK_WARNING (CWE-476): [#def1781]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:1307: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1305| TclNRPackageObjCmdCleanup(ClientData data[], Tcl_Interp *interp, int result) {
# 1306| TclDecrRefCount((Tcl_Obj *)data[0]);
# 1307|-> TclDecrRefCount((Tcl_Obj *)data[1]);
# 1308| return result;
# 1309| }
Error: CPPCHECK_WARNING (CWE-457): [#def1782]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:1307: error[uninitvar]: Uninitialized variable: cachePtr
# 1305| TclNRPackageObjCmdCleanup(ClientData data[], Tcl_Interp *interp, int result) {
# 1306| TclDecrRefCount((Tcl_Obj *)data[0]);
# 1307|-> TclDecrRefCount((Tcl_Obj *)data[1]);
# 1308| return result;
# 1309| }
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1783]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c: scope_hint: In function ‘RequirementSatisfied’
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:1963:9: warning[-Wanalyzer-null-argument]: use of NULL ‘reqi’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1961|
# 1962| CheckVersionAndConvert(NULL, req, &reqi, NULL);
# 1963|-> strcat(reqi, " -2");
# 1964| res = CompareVersions(havei, reqi, &thisIsMajor);
# 1965| satisfied = (res == 0) || ((res == 1) && !thisIsMajor);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1784]
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c: scope_hint: In function ‘Tcl_PkgInitStubsCheck’
tcl-8.6.14-build/tcl8.6.14/generic/tclPkg.c:2050:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
# 2048| int count = 0;
# 2049|
# 2050|-> while (*p) {
# 2051| count += !isdigit(UCHAR(*p++));
# 2052| }
Error: CPPCHECK_WARNING: [#def1785]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1786]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:1089: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1087|
# 1088| if (defPtr->value.objPtr != NULL) {
# 1089|-> TclNewObj(argObj);
# 1090| Tcl_AppendStringsToObj(argObj, "?", TclGetString(namePtr), "?", NULL);
# 1091| } else if (defPtr->flags & VAR_IS_ARGS) {
Error: CPPCHECK_WARNING (CWE-457): [#def1787]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:1089: error[uninitvar]: Uninitialized variable: argObj
# 1087|
# 1088| if (defPtr->value.objPtr != NULL) {
# 1089|-> TclNewObj(argObj);
# 1090| Tcl_AppendStringsToObj(argObj, "?", TclGetString(namePtr), "?", NULL);
# 1091| } else if (defPtr->flags & VAR_IS_ARGS) {
Error: CPPCHECK_WARNING (CWE-457): [#def1788]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:1089: error[uninitvar]: Uninitialized variable: cachePtr
# 1087|
# 1088| if (defPtr->value.objPtr != NULL) {
# 1089|-> TclNewObj(argObj);
# 1090| Tcl_AppendStringsToObj(argObj, "?", TclGetString(namePtr), "?", NULL);
# 1091| } else if (defPtr->flags & VAR_IS_ARGS) {
Error: CLANG_WARNING: [#def1789]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:1155:2: warning[core.NullDereference]: Access to field 'refCount' results in a dereference of a null pointer (loaded from field 'localCachePtr')
# 1153| }
# 1154| framePtr->localCachePtr = codePtr->localCachePtr;
# 1155|-> framePtr->localCachePtr->refCount++;
# 1156| }
# 1157|
Error: CLANG_WARNING: [#def1790]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:1403:2: warning[core.NullDereference]: Access to field 'refCount' results in a dereference of a null pointer (loaded from field 'localCachePtr')
# 1401| }
# 1402| framePtr->localCachePtr = codePtr->localCachePtr;
# 1403|-> framePtr->localCachePtr->refCount++;
# 1404| defPtr = (Var *) (&framePtr->localCachePtr->varName0 + localCt);
# 1405| } else {
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1791]
tcl-8.6.14-build/tcl8.6.14/unix/tclDTrace.h:10: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:3628: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:16: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c: scope_hint: In function ‘TclNRInterpProcCore’
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:1746:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘a[1]’
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.h:1744:9: note: in expansion of macro ‘TCL_PROC_ARGS’
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:1746:9: note: in expansion of macro ‘TCL_DTRACE_PROC_ARGS’
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:17: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.h:1730:40: note: in definition of macro ‘unlikely’
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.h:1738:54: note: in expansion of macro ‘TCL_PROC_ARGS_ENABLED’
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:1736:9: note: in expansion of macro ‘TCL_DTRACE_PROC_ARGS_ENABLED’
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.h:1744:9: note: in expansion of macro ‘TCL_PROC_ARGS’
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:1746:9: note: in expansion of macro ‘TCL_DTRACE_PROC_ARGS’
tcl-8.6.14-build/tcl8.6.14/generic/tclCompile.h:1744:9: note: in expansion of macro ‘TCL_PROC_ARGS’
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:1746:9: note: in expansion of macro ‘TCL_DTRACE_PROC_ARGS’
# 1744| l++;
# 1745| }
# 1746|-> TCL_DTRACE_PROC_ARGS(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7],
# 1747| a[8], a[9]);
# 1748| }
Error: CPPCHECK_WARNING (CWE-476): [#def1792]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:1755: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1753| TclDTraceInfo(info, a, i);
# 1754| TCL_DTRACE_PROC_INFO(a[0], a[1], a[2], a[3], i[0], i[1], a[4], a[5]);
# 1755|-> TclDecrRefCount(info);
# 1756| }
# 1757| if (TCL_DTRACE_PROC_ENTRY_ENABLED()) {
Error: CPPCHECK_WARNING (CWE-457): [#def1793]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:1755: error[uninitvar]: Uninitialized variable: cachePtr
# 1753| TclDTraceInfo(info, a, i);
# 1754| TCL_DTRACE_PROC_INFO(a[0], a[1], a[2], a[3], i[0], i[1], a[4], a[5]);
# 1755|-> TclDecrRefCount(info);
# 1756| }
# 1757| if (TCL_DTRACE_PROC_ENTRY_ENABLED()) {
Error: CPPCHECK_WARNING (CWE-476): [#def1794]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:2308: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2306| }
# 2307|
# 2308|-> TclNewObj(objPtr);
# 2309| if (objPtr) {
# 2310| objPtr->typePtr = &tclProcBodyType;
Error: CPPCHECK_WARNING (CWE-457): [#def1795]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:2308: error[uninitvar]: Uninitialized variable: cachePtr
# 2306| }
# 2307|
# 2308|-> TclNewObj(objPtr);
# 2309| if (objPtr) {
# 2310| objPtr->typePtr = &tclProcBodyType;
Error: CPPCHECK_WARNING (CWE-457): [#def1796]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:2308: error[uninitvar]: Uninitialized variable: objPtr
# 2306| }
# 2307|
# 2308|-> TclNewObj(objPtr);
# 2309| if (objPtr) {
# 2310| objPtr->typePtr = &tclProcBodyType;
Error: CPPCHECK_WARNING (CWE-476): [#def1797]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:2419: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2417| TclProcCleanupProc(procPtr);
# 2418| }
# 2419|-> TclDecrRefCount(nsObjPtr);
# 2420| objPtr->typePtr = NULL;
# 2421| }
Error: CPPCHECK_WARNING (CWE-457): [#def1798]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:2419: error[uninitvar]: Uninitialized variable: cachePtr
# 2417| TclProcCleanupProc(procPtr);
# 2418| }
# 2419|-> TclDecrRefCount(nsObjPtr);
# 2420| objPtr->typePtr = NULL;
# 2421| }
Error: CLANG_WARNING: [#def1799]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:2444:14: warning[core.NullDereference]: Access to field 'elemCount' results in a dereference of a null pointer (loaded from field 'ptr1')
# 2442| */
# 2443|
# 2444|-> result = TclListObjGetElements(NULL, objPtr, &objc, &objv);
# 2445| if ((result != TCL_OK) || ((objc != 2) && (objc != 3))) {
# 2446| Tcl_SetObjResult(interp, Tcl_ObjPrintf(
Error: CPPCHECK_WARNING (CWE-476): [#def1800]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:2570: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2568|
# 2569| if (objc == 2) {
# 2570|-> TclNewLiteralStringObj(nsObjPtr, "::");
# 2571| } else {
# 2572| const char *nsName = TclGetString(objv[2]);
Error: CPPCHECK_WARNING (CWE-457): [#def1801]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:2570: error[uninitvar]: Uninitialized variable: cachePtr
# 2568|
# 2569| if (objc == 2) {
# 2570|-> TclNewLiteralStringObj(nsObjPtr, "::");
# 2571| } else {
# 2572| const char *nsName = TclGetString(objv[2]);
Error: CPPCHECK_WARNING (CWE-457): [#def1802]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:2570: error[uninitvar]: Uninitialized variable: nsObjPtr
# 2568|
# 2569| if (objc == 2) {
# 2570|-> TclNewLiteralStringObj(nsObjPtr, "::");
# 2571| } else {
# 2572| const char *nsName = TclGetString(objv[2]);
Error: CPPCHECK_WARNING (CWE-476): [#def1803]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:2575: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2573|
# 2574| if ((*nsName != ':') || (*(nsName+1) != ':')) {
# 2575|-> TclNewLiteralStringObj(nsObjPtr, "::");
# 2576| Tcl_AppendObjToObj(nsObjPtr, objv[2]);
# 2577| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1804]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:2575: error[uninitvar]: Uninitialized variable: (nsObjPtr)->internalRep.twoPtrValue.ptr1
# 2573|
# 2574| if ((*nsName != ':') || (*(nsName+1) != ':')) {
# 2575|-> TclNewLiteralStringObj(nsObjPtr, "::");
# 2576| Tcl_AppendObjToObj(nsObjPtr, objv[2]);
# 2577| } else {
Error: CPPCHECK_WARNING (CWE-457): [#def1805]
tcl-8.6.14-build/tcl8.6.14/generic/tclProc.c:2575: error[uninitvar]: Uninitialized variable: cachePtr
# 2573|
# 2574| if ((*nsName != ':') || (*(nsName+1) != ':')) {
# 2575|-> TclNewLiteralStringObj(nsObjPtr, "::");
# 2576| Tcl_AppendObjToObj(nsObjPtr, objv[2]);
# 2577| } else {
Error: CPPCHECK_WARNING: [#def1806]
tcl-8.6.14-build/tcl8.6.14/generic/tclRegexp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1807]
tcl-8.6.14-build/tcl8.6.14/generic/tclRegexp.c:680: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 678| */
# 679|
# 680|-> TclNewObj(resultObj);
# 681| Tcl_ListObjAppendElement(NULL, resultObj,
# 682| Tcl_NewIntObj((int) regexpPtr->re.re_nsub));
Error: CPPCHECK_WARNING (CWE-457): [#def1808]
tcl-8.6.14-build/tcl8.6.14/generic/tclRegexp.c:680: error[uninitvar]: Uninitialized variable: cachePtr
# 678| */
# 679|
# 680|-> TclNewObj(resultObj);
# 681| Tcl_ListObjAppendElement(NULL, resultObj,
# 682| Tcl_NewIntObj((int) regexpPtr->re.re_nsub));
Error: CPPCHECK_WARNING (CWE-457): [#def1809]
tcl-8.6.14-build/tcl8.6.14/generic/tclRegexp.c:680: error[uninitvar]: Uninitialized variable: resultObj
# 678| */
# 679|
# 680|-> TclNewObj(resultObj);
# 681| Tcl_ListObjAppendElement(NULL, resultObj,
# 682| Tcl_NewIntObj((int) regexpPtr->re.re_nsub));
Error: CPPCHECK_WARNING (CWE-476): [#def1810]
tcl-8.6.14-build/tcl8.6.14/generic/tclRegexp.c:688: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 686| */
# 687|
# 688|-> TclNewObj(infoObj);
# 689| for (inf=infonames ; inf->bit != 0 ; inf++) {
# 690| if (regexpPtr->re.re_info & inf->bit) {
Error: CPPCHECK_WARNING (CWE-457): [#def1811]
tcl-8.6.14-build/tcl8.6.14/generic/tclRegexp.c:688: error[uninitvar]: Uninitialized variable: cachePtr
# 686| */
# 687|
# 688|-> TclNewObj(infoObj);
# 689| for (inf=infonames ; inf->bit != 0 ; inf++) {
# 690| if (regexpPtr->re.re_info & inf->bit) {
Error: CPPCHECK_WARNING (CWE-457): [#def1812]
tcl-8.6.14-build/tcl8.6.14/generic/tclRegexp.c:688: error[uninitvar]: Uninitialized variable: infoObj
# 686| */
# 687|
# 688|-> TclNewObj(infoObj);
# 689| for (inf=infonames ; inf->bit != 0 ; inf++) {
# 690| if (regexpPtr->re.re_info & inf->bit) {
Error: CPPCHECK_WARNING (CWE-476): [#def1813]
tcl-8.6.14-build/tcl8.6.14/generic/tclRegexp.c:1026: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1024| TclReFree(®expPtr->re);
# 1025| if (regexpPtr->globObjPtr) {
# 1026|-> TclDecrRefCount(regexpPtr->globObjPtr);
# 1027| }
# 1028| if (regexpPtr->matches) {
Error: CPPCHECK_WARNING (CWE-457): [#def1814]
tcl-8.6.14-build/tcl8.6.14/generic/tclRegexp.c:1026: error[uninitvar]: Uninitialized variable: cachePtr
# 1024| TclReFree(®expPtr->re);
# 1025| if (regexpPtr->globObjPtr) {
# 1026|-> TclDecrRefCount(regexpPtr->globObjPtr);
# 1027| }
# 1028| if (regexpPtr->matches) {
Error: CPPCHECK_WARNING: [#def1815]
tcl-8.6.14-build/tcl8.6.14/generic/tclResolve.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1816]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1817]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:248: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 246|
# 247| statePtr->objResultPtr = iPtr->objResultPtr;
# 248|-> TclNewObj(iPtr->objResultPtr);
# 249| Tcl_IncrRefCount(iPtr->objResultPtr);
# 250|
Error: CPPCHECK_WARNING (CWE-457): [#def1818]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:248: error[uninitvar]: Uninitialized variable: cachePtr
# 246|
# 247| statePtr->objResultPtr = iPtr->objResultPtr;
# 248|-> TclNewObj(iPtr->objResultPtr);
# 249| Tcl_IncrRefCount(iPtr->objResultPtr);
# 250|
Error: CPPCHECK_WARNING (CWE-457): [#def1819]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:248: error[uninitvar]: Uninitialized variable: iPtr->objResultPtr
# 246|
# 247| statePtr->objResultPtr = iPtr->objResultPtr;
# 248|-> TclNewObj(iPtr->objResultPtr);
# 249| Tcl_IncrRefCount(iPtr->objResultPtr);
# 250|
Error: CPPCHECK_WARNING (CWE-476): [#def1820]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:382: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 380| Tcl_SavedResult *statePtr) /* State returned by Tcl_SaveResult. */
# 381| {
# 382|-> TclDecrRefCount(statePtr->objResultPtr);
# 383|
# 384| if (statePtr->result == statePtr->appendResult) {
Error: CPPCHECK_WARNING (CWE-457): [#def1821]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:382: error[uninitvar]: Uninitialized variable: cachePtr
# 380| Tcl_SavedResult *statePtr) /* State returned by Tcl_SaveResult. */
# 381| {
# 382|-> TclDecrRefCount(statePtr->objResultPtr);
# 383|
# 384| if (statePtr->result == statePtr->appendResult) {
Error: CPPCHECK_WARNING (CWE-476): [#def1822]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:537: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 535| */
# 536|
# 537|-> TclDecrRefCount(oldObjResult);
# 538|
# 539| /*
Error: CPPCHECK_WARNING (CWE-457): [#def1823]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:537: error[uninitvar]: Uninitialized variable: cachePtr
# 535| */
# 536|
# 537|-> TclDecrRefCount(oldObjResult);
# 538|
# 539| /*
Error: CLANG_WARNING: [#def1824]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:852:2: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 850| iPtr->appendAvl = totalSpace;
# 851| } else if (iPtr->result != iPtr->appendResult) {
# 852|-> strcpy(iPtr->appendResult, iPtr->result);
# 853| }
# 854|
Error: CPPCHECK_WARNING (CWE-476): [#def1825]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:989: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 987|
# 988| if (Tcl_IsShared(objResultPtr)) {
# 989|-> TclDecrRefCount(objResultPtr);
# 990| TclNewObj(objResultPtr);
# 991| Tcl_IncrRefCount(objResultPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1826]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:989: error[uninitvar]: Uninitialized variable: cachePtr
# 987|
# 988| if (Tcl_IsShared(objResultPtr)) {
# 989|-> TclDecrRefCount(objResultPtr);
# 990| TclNewObj(objResultPtr);
# 991| Tcl_IncrRefCount(objResultPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def1827]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:990: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 988| if (Tcl_IsShared(objResultPtr)) {
# 989| TclDecrRefCount(objResultPtr);
# 990|-> TclNewObj(objResultPtr);
# 991| Tcl_IncrRefCount(objResultPtr);
# 992| iPtr->objResultPtr = objResultPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1828]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:990: error[uninitvar]: Uninitialized variable: cachePtr
# 988| if (Tcl_IsShared(objResultPtr)) {
# 989| TclDecrRefCount(objResultPtr);
# 990|-> TclNewObj(objResultPtr);
# 991| Tcl_IncrRefCount(objResultPtr);
# 992| iPtr->objResultPtr = objResultPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1829]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:990: error[uninitvar]: Uninitialized variable: objResultPtr
# 988| if (Tcl_IsShared(objResultPtr)) {
# 989| TclDecrRefCount(objResultPtr);
# 990|-> TclNewObj(objResultPtr);
# 991| Tcl_IncrRefCount(objResultPtr);
# 992| iPtr->objResultPtr = objResultPtr;
Error: CPPCHECK_WARNING (CWE-476): [#def1830]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1036: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1034| */
# 1035|
# 1036|-> TclNewObj(errorObj);
# 1037| while (1) {
# 1038| char *elem = va_arg(argList, char *);
Error: CPPCHECK_WARNING (CWE-457): [#def1831]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1036: error[uninitvar]: Uninitialized variable: cachePtr
# 1034| */
# 1035|
# 1036|-> TclNewObj(errorObj);
# 1037| while (1) {
# 1038| char *elem = va_arg(argList, char *);
Error: CPPCHECK_WARNING (CWE-457): [#def1832]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1036: error[uninitvar]: Uninitialized variable: errorObj
# 1034| */
# 1035|
# 1036|-> TclNewObj(errorObj);
# 1037| while (1) {
# 1038| char *elem = va_arg(argList, char *);
Error: CPPCHECK_WARNING (CWE-476): [#def1833]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1187: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1185| int i;
# 1186|
# 1187|-> TclNewLiteralStringObj(keys[KEY_CODE], "-code");
# 1188| TclNewLiteralStringObj(keys[KEY_ERRORCODE], "-errorcode");
# 1189| TclNewLiteralStringObj(keys[KEY_ERRORINFO], "-errorinfo");
Error: CPPCHECK_WARNING (CWE-457): [#def1834]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1187: error[uninitvar]: Uninitialized variable: (keys[KEY_CODE])->internalRep.twoPtrValue.ptr1
# 1185| int i;
# 1186|
# 1187|-> TclNewLiteralStringObj(keys[KEY_CODE], "-code");
# 1188| TclNewLiteralStringObj(keys[KEY_ERRORCODE], "-errorcode");
# 1189| TclNewLiteralStringObj(keys[KEY_ERRORINFO], "-errorinfo");
Error: CPPCHECK_WARNING (CWE-457): [#def1835]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1187: error[uninitvar]: Uninitialized variable: cachePtr
# 1185| int i;
# 1186|
# 1187|-> TclNewLiteralStringObj(keys[KEY_CODE], "-code");
# 1188| TclNewLiteralStringObj(keys[KEY_ERRORCODE], "-errorcode");
# 1189| TclNewLiteralStringObj(keys[KEY_ERRORINFO], "-errorinfo");
Error: CPPCHECK_WARNING (CWE-476): [#def1836]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1188: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1186|
# 1187| TclNewLiteralStringObj(keys[KEY_CODE], "-code");
# 1188|-> TclNewLiteralStringObj(keys[KEY_ERRORCODE], "-errorcode");
# 1189| TclNewLiteralStringObj(keys[KEY_ERRORINFO], "-errorinfo");
# 1190| TclNewLiteralStringObj(keys[KEY_ERRORLINE], "-errorline");
Error: CPPCHECK_WARNING (CWE-457): [#def1837]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1188: error[uninitvar]: Uninitialized variable: cachePtr
# 1186|
# 1187| TclNewLiteralStringObj(keys[KEY_CODE], "-code");
# 1188|-> TclNewLiteralStringObj(keys[KEY_ERRORCODE], "-errorcode");
# 1189| TclNewLiteralStringObj(keys[KEY_ERRORINFO], "-errorinfo");
# 1190| TclNewLiteralStringObj(keys[KEY_ERRORLINE], "-errorline");
Error: CPPCHECK_WARNING (CWE-476): [#def1838]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1189: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1187| TclNewLiteralStringObj(keys[KEY_CODE], "-code");
# 1188| TclNewLiteralStringObj(keys[KEY_ERRORCODE], "-errorcode");
# 1189|-> TclNewLiteralStringObj(keys[KEY_ERRORINFO], "-errorinfo");
# 1190| TclNewLiteralStringObj(keys[KEY_ERRORLINE], "-errorline");
# 1191| TclNewLiteralStringObj(keys[KEY_ERRORSTACK],"-errorstack");
Error: CPPCHECK_WARNING (CWE-457): [#def1839]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1189: error[uninitvar]: Uninitialized variable: cachePtr
# 1187| TclNewLiteralStringObj(keys[KEY_CODE], "-code");
# 1188| TclNewLiteralStringObj(keys[KEY_ERRORCODE], "-errorcode");
# 1189|-> TclNewLiteralStringObj(keys[KEY_ERRORINFO], "-errorinfo");
# 1190| TclNewLiteralStringObj(keys[KEY_ERRORLINE], "-errorline");
# 1191| TclNewLiteralStringObj(keys[KEY_ERRORSTACK],"-errorstack");
Error: CPPCHECK_WARNING (CWE-476): [#def1840]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1190: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1188| TclNewLiteralStringObj(keys[KEY_ERRORCODE], "-errorcode");
# 1189| TclNewLiteralStringObj(keys[KEY_ERRORINFO], "-errorinfo");
# 1190|-> TclNewLiteralStringObj(keys[KEY_ERRORLINE], "-errorline");
# 1191| TclNewLiteralStringObj(keys[KEY_ERRORSTACK],"-errorstack");
# 1192| TclNewLiteralStringObj(keys[KEY_LEVEL], "-level");
Error: CPPCHECK_WARNING (CWE-457): [#def1841]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1190: error[uninitvar]: Uninitialized variable: cachePtr
# 1188| TclNewLiteralStringObj(keys[KEY_ERRORCODE], "-errorcode");
# 1189| TclNewLiteralStringObj(keys[KEY_ERRORINFO], "-errorinfo");
# 1190|-> TclNewLiteralStringObj(keys[KEY_ERRORLINE], "-errorline");
# 1191| TclNewLiteralStringObj(keys[KEY_ERRORSTACK],"-errorstack");
# 1192| TclNewLiteralStringObj(keys[KEY_LEVEL], "-level");
Error: CPPCHECK_WARNING (CWE-476): [#def1842]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1191: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1189| TclNewLiteralStringObj(keys[KEY_ERRORINFO], "-errorinfo");
# 1190| TclNewLiteralStringObj(keys[KEY_ERRORLINE], "-errorline");
# 1191|-> TclNewLiteralStringObj(keys[KEY_ERRORSTACK],"-errorstack");
# 1192| TclNewLiteralStringObj(keys[KEY_LEVEL], "-level");
# 1193| TclNewLiteralStringObj(keys[KEY_OPTIONS], "-options");
Error: CPPCHECK_WARNING (CWE-457): [#def1843]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1191: error[uninitvar]: Uninitialized variable: cachePtr
# 1189| TclNewLiteralStringObj(keys[KEY_ERRORINFO], "-errorinfo");
# 1190| TclNewLiteralStringObj(keys[KEY_ERRORLINE], "-errorline");
# 1191|-> TclNewLiteralStringObj(keys[KEY_ERRORSTACK],"-errorstack");
# 1192| TclNewLiteralStringObj(keys[KEY_LEVEL], "-level");
# 1193| TclNewLiteralStringObj(keys[KEY_OPTIONS], "-options");
Error: CPPCHECK_WARNING (CWE-476): [#def1844]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1192: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1190| TclNewLiteralStringObj(keys[KEY_ERRORLINE], "-errorline");
# 1191| TclNewLiteralStringObj(keys[KEY_ERRORSTACK],"-errorstack");
# 1192|-> TclNewLiteralStringObj(keys[KEY_LEVEL], "-level");
# 1193| TclNewLiteralStringObj(keys[KEY_OPTIONS], "-options");
# 1194|
Error: CPPCHECK_WARNING (CWE-457): [#def1845]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1192: error[uninitvar]: Uninitialized variable: cachePtr
# 1190| TclNewLiteralStringObj(keys[KEY_ERRORLINE], "-errorline");
# 1191| TclNewLiteralStringObj(keys[KEY_ERRORSTACK],"-errorstack");
# 1192|-> TclNewLiteralStringObj(keys[KEY_LEVEL], "-level");
# 1193| TclNewLiteralStringObj(keys[KEY_OPTIONS], "-options");
# 1194|
Error: CPPCHECK_WARNING (CWE-476): [#def1846]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1193: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1191| TclNewLiteralStringObj(keys[KEY_ERRORSTACK],"-errorstack");
# 1192| TclNewLiteralStringObj(keys[KEY_LEVEL], "-level");
# 1193|-> TclNewLiteralStringObj(keys[KEY_OPTIONS], "-options");
# 1194|
# 1195| for (i = KEY_CODE; i < KEY_LAST; i++) {
Error: CPPCHECK_WARNING (CWE-457): [#def1847]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1193: error[uninitvar]: Uninitialized variable: cachePtr
# 1191| TclNewLiteralStringObj(keys[KEY_ERRORSTACK],"-errorstack");
# 1192| TclNewLiteralStringObj(keys[KEY_LEVEL], "-level");
# 1193|-> TclNewLiteralStringObj(keys[KEY_OPTIONS], "-options");
# 1194|
# 1195| for (i = KEY_CODE; i < KEY_LAST; i++) {
Error: CPPCHECK_WARNING (CWE-457): [#def1848]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1318: error[legacyUninitvar]: Uninitialized variable: *(&valueObjv)
# 1316| */
# 1317|
# 1318|-> if (TclListObjGetElements(interp, valuePtr, &valueObjc,
# 1319| &valueObjv) == TCL_ERROR) {
# 1320| return TCL_ERROR;
Error: CPPCHECK_WARNING (CWE-476): [#def1849]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1394: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1392| Tcl_Obj **keys = GetKeys();
# 1393|
# 1394|-> TclNewObj(returnOpts);
# 1395| for (; objc > 1; objv += 2, objc -= 2) {
# 1396| int optLen;
Error: CPPCHECK_WARNING (CWE-457): [#def1850]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1394: error[uninitvar]: Uninitialized variable: cachePtr
# 1392| Tcl_Obj **keys = GetKeys();
# 1393|
# 1394|-> TclNewObj(returnOpts);
# 1395| for (; objc > 1; objv += 2, objc -= 2) {
# 1396| int optLen;
Error: CPPCHECK_WARNING (CWE-457): [#def1851]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1394: error[uninitvar]: Uninitialized variable: returnOpts
# 1392| Tcl_Obj **keys = GetKeys();
# 1393|
# 1394|-> TclNewObj(returnOpts);
# 1395| for (; objc > 1; objv += 2, objc -= 2) {
# 1396| int optLen;
Error: CPPCHECK_WARNING (CWE-476): [#def1852]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1590: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1588| options = Tcl_DuplicateObj(iPtr->returnOpts);
# 1589| } else {
# 1590|-> TclNewObj(options);
# 1591| }
# 1592|
Error: CPPCHECK_WARNING (CWE-457): [#def1853]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1590: error[uninitvar]: Uninitialized variable: cachePtr
# 1588| options = Tcl_DuplicateObj(iPtr->returnOpts);
# 1589| } else {
# 1590|-> TclNewObj(options);
# 1591| }
# 1592|
Error: CPPCHECK_WARNING (CWE-457): [#def1854]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1590: error[uninitvar]: Uninitialized variable: options
# 1588| options = Tcl_DuplicateObj(iPtr->returnOpts);
# 1589| } else {
# 1590|-> TclNewObj(options);
# 1591| }
# 1592|
Error: CPPCHECK_WARNING (CWE-457): [#def1855]
tcl-8.6.14-build/tcl8.6.14/generic/tclResult.c:1674: error[legacyUninitvar]: Uninitialized variable: *(&objv)
# 1672|
# 1673| Tcl_IncrRefCount(options);
# 1674|-> if (TCL_ERROR == TclListObjGetElements(interp, options, &objc, &objv)
# 1675| || (objc % 2)) {
# 1676| Tcl_SetObjResult(interp, Tcl_ObjPrintf(
Error: CPPCHECK_WARNING: [#def1856]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1857]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:353:6: warning[deadcode.DeadStores]: Value stored to 'value' is never read
# 351|
# 352| if ((ch < 0x80) && isdigit(UCHAR(ch))) { /* INTL: "C" locale. */
# 353|-> value = strtoul(format-1, (char **) &format, 10); /* INTL: "C" locale. */
# 354| flags |= SCAN_WIDTH;
# 355| format += TclUtfToUniChar(format, &ch);
Error: CPPCHECK_WARNING (CWE-476): [#def1858]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:729: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 727| case 'n':
# 728| if (!(flags & SCAN_SUPPRESS)) {
# 729|-> TclNewIntObj(objPtr, string - baseString);
# 730| Tcl_IncrRefCount(objPtr);
# 731| CLANG_ASSERT(objs);
Error: CPPCHECK_WARNING (CWE-457): [#def1859]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:729: error[uninitvar]: Uninitialized variable: cachePtr
# 727| case 'n':
# 728| if (!(flags & SCAN_SUPPRESS)) {
# 729|-> TclNewIntObj(objPtr, string - baseString);
# 730| Tcl_IncrRefCount(objPtr);
# 731| CLANG_ASSERT(objs);
Error: CPPCHECK_WARNING (CWE-457): [#def1860]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:729: error[uninitvar]: Uninitialized variable: objPtr
# 727| case 'n':
# 728| if (!(flags & SCAN_SUPPRESS)) {
# 729|-> TclNewIntObj(objPtr, string - baseString);
# 730| Tcl_IncrRefCount(objPtr);
# 731| CLANG_ASSERT(objs);
Error: CLANG_WARNING: [#def1861]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:732:20: warning[core.NullDereference]: Array access (from variable 'objs') results in a null pointer dereference
# 730| Tcl_IncrRefCount(objPtr);
# 731| CLANG_ASSERT(objs);
# 732|-> objs[objIndex++] = objPtr;
# 733| }
# 734| nconversions++;
Error: CLANG_WARNING: [#def1862]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:843:20: warning[core.NullDereference]: Array access (from variable 'objs') results in a null pointer dereference
# 841| Tcl_IncrRefCount(objPtr);
# 842| CLANG_ASSERT(objs);
# 843|-> objs[objIndex++] = objPtr;
# 844| }
# 845| string = end;
Error: CLANG_WARNING: [#def1863]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:878:20: warning[core.NullDereference]: Array access (from variable 'objs') results in a null pointer dereference
# 876| objPtr = Tcl_NewStringObj(string, end-string);
# 877| Tcl_IncrRefCount(objPtr);
# 878|-> objs[objIndex++] = objPtr;
# 879| }
# 880| string = end;
Error: CPPCHECK_WARNING (CWE-476): [#def1864]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:892: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 890| string += offset;
# 891| if (!(flags & SCAN_SUPPRESS)) {
# 892|-> TclNewIntObj(objPtr, i);
# 893| Tcl_IncrRefCount(objPtr);
# 894| CLANG_ASSERT(objs);
Error: CPPCHECK_WARNING (CWE-457): [#def1865]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:892: error[uninitvar]: Uninitialized variable: (objPtr)->internalRep.twoPtrValue.ptr1
# 890| string += offset;
# 891| if (!(flags & SCAN_SUPPRESS)) {
# 892|-> TclNewIntObj(objPtr, i);
# 893| Tcl_IncrRefCount(objPtr);
# 894| CLANG_ASSERT(objs);
Error: CPPCHECK_WARNING (CWE-457): [#def1866]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:892: error[uninitvar]: Uninitialized variable: cachePtr
# 890| string += offset;
# 891| if (!(flags & SCAN_SUPPRESS)) {
# 892|-> TclNewIntObj(objPtr, i);
# 893| Tcl_IncrRefCount(objPtr);
# 894| CLANG_ASSERT(objs);
Error: CLANG_WARNING: [#def1867]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:895:20: warning[core.NullDereference]: Array access (from variable 'objs') results in a null pointer dereference
# 893| Tcl_IncrRefCount(objPtr);
# 894| CLANG_ASSERT(objs);
# 895|-> objs[objIndex++] = objPtr;
# 896| }
# 897| break;
Error: CPPCHECK_WARNING (CWE-476): [#def1868]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:903: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 901| * Scan an unsigned or signed integer.
# 902| */
# 903|-> TclNewIntObj(objPtr, 0);
# 904| Tcl_IncrRefCount(objPtr);
# 905| if (width == 0) {
Error: CPPCHECK_WARNING (CWE-457): [#def1869]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:903: error[uninitvar]: Uninitialized variable: cachePtr
# 901| * Scan an unsigned or signed integer.
# 902| */
# 903|-> TclNewIntObj(objPtr, 0);
# 904| Tcl_IncrRefCount(objPtr);
# 905| if (width == 0) {
Error: CLANG_WARNING: [#def1870]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:962:23: warning[core.NullDereference]: Array access (from variable 'objs') results in a null pointer dereference
# 960| }
# 961| }
# 962|-> objs[objIndex++] = objPtr;
# 963| break;
# 964|
Error: CLANG_WARNING: [#def1871]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:1006:20: warning[core.NullDereference]: Array access (from variable 'objs') results in a null pointer dereference
# 1004| Tcl_SetDoubleObj(objPtr, dvalue);
# 1005| CLANG_ASSERT(objs);
# 1006|-> objs[objIndex++] = objPtr;
# 1007| string = end;
# 1008| }
Error: CPPCHECK_WARNING (CWE-476): [#def1872]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:1044: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1042| */
# 1043|
# 1044|-> TclNewObj(objPtr);
# 1045| for (i = 0; i < totalVars; i++) {
# 1046| if (objs[i] != NULL) {
Error: CPPCHECK_WARNING (CWE-457): [#def1873]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:1044: error[uninitvar]: Uninitialized variable: cachePtr
# 1042| */
# 1043|
# 1044|-> TclNewObj(objPtr);
# 1045| for (i = 0; i < totalVars; i++) {
# 1046| if (objs[i] != NULL) {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1874]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c: scope_hint: In function ‘Tcl_ScanObjCmd’
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:1046:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘objs’
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:12: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:3648:9: note: in expansion of macro ‘TclAllocObjStorageEx’
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:3656:5: note: in expansion of macro ‘TclAllocObjStorage’
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:1044:9: note: in expansion of macro ‘TclNewObj’
# 1044| TclNewObj(objPtr);
# 1045| for (i = 0; i < totalVars; i++) {
# 1046|-> if (objs[i] != NULL) {
# 1047| Tcl_ListObjAppendElement(NULL, objPtr, objs[i]);
# 1048| Tcl_DecrRefCount(objs[i]);
Error: CPPCHECK_WARNING (CWE-476): [#def1875]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:1065: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1063| if (underflow && (nconversions == 0)) {
# 1064| if (numVars) {
# 1065|-> TclNewIntObj(objPtr, -1);
# 1066| } else {
# 1067| if (objPtr) {
Error: CPPCHECK_WARNING (CWE-457): [#def1876]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:1065: error[uninitvar]: Uninitialized variable: cachePtr
# 1063| if (underflow && (nconversions == 0)) {
# 1064| if (numVars) {
# 1065|-> TclNewIntObj(objPtr, -1);
# 1066| } else {
# 1067| if (objPtr) {
Error: CPPCHECK_WARNING (CWE-476): [#def1877]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:1070: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1068| Tcl_SetListObj(objPtr, 0, NULL);
# 1069| } else {
# 1070|-> TclNewObj(objPtr);
# 1071| }
# 1072| }
Error: CPPCHECK_WARNING (CWE-457): [#def1878]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:1070: error[uninitvar]: Uninitialized variable: cachePtr
# 1068| Tcl_SetListObj(objPtr, 0, NULL);
# 1069| } else {
# 1070|-> TclNewObj(objPtr);
# 1071| }
# 1072| }
Error: CPPCHECK_WARNING (CWE-476): [#def1879]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:1074: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1072| }
# 1073| } else if (numVars) {
# 1074|-> TclNewIntObj(objPtr, result);
# 1075| }
# 1076| Tcl_SetObjResult(interp, objPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1880]
tcl-8.6.14-build/tcl8.6.14/generic/tclScan.c:1074: error[uninitvar]: Uninitialized variable: cachePtr
# 1072| }
# 1073| } else if (numVars) {
# 1074|-> TclNewIntObj(objPtr, result);
# 1075| }
# 1076| Tcl_SetObjResult(interp, objPtr);
Error: CPPCHECK_WARNING: [#def1881]
tcl-8.6.14-build/tcl8.6.14/generic/tclStrToD.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1882]
tcl-8.6.14-build/tcl8.6.14/generic/tclStrToD.c:3057:34: warning[core.BitwiseShift]: Left shift overflows the capacity of 'Tcl_WideUInt'
# 3055| /* Numerator of the fraction being
# 3056| * converted. */
# 3057|-> Tcl_WideUInt S = wuipow5[s5] << s2;
# 3058| /* Denominator of the fraction being
# 3059| * converted. */
Error: CLANG_WARNING: [#def1883]
tcl-8.6.14-build/tcl8.6.14/generic/tclStrToD.c:4456:32: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value due to array index out of bounds
# 4454| }
# 4455|
# 4456|-> if (s5+1 < N_LOG2POW5 && s2+1 + log2pow5[s5+1] < 64) {
# 4457| /*
# 4458| * If 10*2**s2*5**s5 == 2**(s2+1)+5**(s5+1) fits in a 64-bit word,
Error: CPPCHECK_WARNING: [#def1884]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1885]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:287: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 285| length = (bytes? strlen(bytes) : 0);
# 286| }
# 287|-> TclNewStringObj(objPtr, bytes, length);
# 288| return objPtr;
# 289| }
Error: CPPCHECK_WARNING (CWE-457): [#def1886]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:287: error[uninitvar]: Uninitialized variable: cachePtr
# 285| length = (bytes? strlen(bytes) : 0);
# 286| }
# 287|-> TclNewStringObj(objPtr, bytes, length);
# 288| return objPtr;
# 289| }
Error: CPPCHECK_WARNING (CWE-457): [#def1887]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:287: error[uninitvar]: Uninitialized variable: objPtr
# 285| length = (bytes? strlen(bytes) : 0);
# 286| }
# 287|-> TclNewStringObj(objPtr, bytes, length);
# 288| return objPtr;
# 289| }
Error: CPPCHECK_WARNING (CWE-476): [#def1888]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:390: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 388| Tcl_Obj *objPtr;
# 389|
# 390|-> TclNewObj(objPtr);
# 391| SetUnicodeObj(objPtr, unicode, numChars);
# 392| return objPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1889]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:390: error[uninitvar]: Uninitialized variable: cachePtr
# 388| Tcl_Obj *objPtr;
# 389|
# 390|-> TclNewObj(objPtr);
# 391| SetUnicodeObj(objPtr, unicode, numChars);
# 392| return objPtr;
Error: CPPCHECK_WARNING (CWE-457): [#def1890]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:390: error[uninitvar]: Uninitialized variable: objPtr
# 388| Tcl_Obj *objPtr;
# 389|
# 390|-> TclNewObj(objPtr);
# 391| SetUnicodeObj(objPtr, unicode, numChars);
# 392| return objPtr;
Error: CLANG_WARNING: [#def1891]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:459:2: warning[core.NullDereference]: Dereference of null pointer (loaded from variable '_str')
# 457|
# 458| if (numChars == -1) {
# 459|-> TclNumUtfChars(numChars, objPtr->bytes, objPtr->length);
# 460| stringPtr->numChars = numChars;
# 461|
Error: CPPCHECK_WARNING (CWE-476): [#def1892]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:788: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 786| }
# 787| if (last < first) {
# 788|-> TclNewObj(newObjPtr);
# 789| return newObjPtr;
# 790| }
Error: CPPCHECK_WARNING (CWE-457): [#def1893]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:788: error[uninitvar]: Uninitialized variable: cachePtr
# 786| }
# 787| if (last < first) {
# 788|-> TclNewObj(newObjPtr);
# 789| return newObjPtr;
# 790| }
Error: CPPCHECK_WARNING (CWE-457): [#def1894]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:788: error[uninitvar]: Uninitialized variable: newObjPtr
# 786| }
# 787| if (last < first) {
# 788|-> TclNewObj(newObjPtr);
# 789| return newObjPtr;
# 790| }
Error: CPPCHECK_WARNING (CWE-476): [#def1895]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:814: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 812| }
# 813| if (last < first) {
# 814|-> TclNewObj(newObjPtr);
# 815| return newObjPtr;
# 816| }
Error: CPPCHECK_WARNING (CWE-457): [#def1896]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:814: error[uninitvar]: Uninitialized variable: (newObjPtr)->internalRep.twoPtrValue.ptr1
# 812| }
# 813| if (last < first) {
# 814|-> TclNewObj(newObjPtr);
# 815| return newObjPtr;
# 816| }
Error: CPPCHECK_WARNING (CWE-457): [#def1897]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:814: error[uninitvar]: Uninitialized variable: cachePtr
# 812| }
# 813| if (last < first) {
# 814|-> TclNewObj(newObjPtr);
# 815| return newObjPtr;
# 816| }
Error: CPPCHECK_WARNING (CWE-476): [#def1898]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:836: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 834| }
# 835| if (last < first) {
# 836|-> TclNewObj(newObjPtr);
# 837| return newObjPtr;
# 838| }
Error: CPPCHECK_WARNING (CWE-457): [#def1899]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:836: error[uninitvar]: Uninitialized variable: cachePtr
# 834| }
# 835| if (last < first) {
# 836|-> TclNewObj(newObjPtr);
# 837| return newObjPtr;
# 838| }
Error: CLANG_WARNING: [#def1900]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:1781:2: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1779|
# 1780| if (bytes) {
# 1781|-> memmove(objPtr->bytes + oldLength, bytes, numBytes);
# 1782| }
# 1783| objPtr->bytes[newLength] = 0;
Error: CLANG_WARNING: [#def1901]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:1783:30: warning[core.NullDereference]: Array access (via field 'bytes') results in a null pointer dereference
# 1781| memmove(objPtr->bytes + oldLength, bytes, numBytes);
# 1782| }
# 1783|-> objPtr->bytes[newLength] = 0;
# 1784| objPtr->length = newLength;
# 1785| }
Error: CPPCHECK_WARNING (CWE-476): [#def1902]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2163: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2161| if (precision < numChars) {
# 2162| if (precision < 1) {
# 2163|-> TclNewObj(segment);
# 2164| } else {
# 2165| segment = Tcl_GetRange(segment, 0, precision - 1);
Error: CPPCHECK_WARNING (CWE-457): [#def1903]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2163: error[uninitvar]: Uninitialized variable: cachePtr
# 2161| if (precision < numChars) {
# 2162| if (precision < 1) {
# 2163|-> TclNewObj(segment);
# 2164| } else {
# 2165| segment = Tcl_GetRange(segment, 0, precision - 1);
Error: CPPCHECK_WARNING (CWE-476): [#def1904]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2261: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2259| }
# 2260|
# 2261|-> TclNewObj(segment);
# 2262| allocSegment = 1;
# 2263| segmentLimit = INT_MAX;
Error: CPPCHECK_WARNING (CWE-457): [#def1905]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2261: error[uninitvar]: Uninitialized variable: cachePtr
# 2259| }
# 2260|
# 2261|-> TclNewObj(segment);
# 2262| allocSegment = 1;
# 2263| segmentLimit = INT_MAX;
Error: CPPCHECK_WARNING (CWE-476): [#def1906]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2301: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2299|
# 2300| if (useShort) {
# 2301|-> TclNewIntObj(pure, (int) s);
# 2302| #ifndef TCL_WIDE_INT_IS_LONG
# 2303| } else if (useWide) {
Error: CPPCHECK_WARNING (CWE-457): [#def1907]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2301: error[uninitvar]: Uninitialized variable: cachePtr
# 2299|
# 2300| if (useShort) {
# 2301|-> TclNewIntObj(pure, (int) s);
# 2302| #ifndef TCL_WIDE_INT_IS_LONG
# 2303| } else if (useWide) {
Error: CPPCHECK_WARNING (CWE-476): [#def1908]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2430: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2428| numDigits = 1;
# 2429| }
# 2430|-> TclNewObj(pure);
# 2431| Tcl_SetObjLength(pure, (int) numDigits);
# 2432| bytes = TclGetString(pure);
Error: CPPCHECK_WARNING (CWE-457): [#def1909]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2430: error[uninitvar]: Uninitialized variable: cachePtr
# 2428| numDigits = 1;
# 2429| }
# 2430|-> TclNewObj(pure);
# 2431| Tcl_SetObjLength(pure, (int) numDigits);
# 2432| bytes = TclGetString(pure);
Error: CPPCHECK_WARNING (CWE-476): [#def1910]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2549: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2547| *p = '\0';
# 2548|
# 2549|-> TclNewObj(segment);
# 2550| allocSegment = 1;
# 2551| if (!Tcl_AttemptSetObjLength(segment, length)) {
Error: CPPCHECK_WARNING (CWE-457): [#def1911]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2549: error[uninitvar]: Uninitialized variable: cachePtr
# 2547| *p = '\0';
# 2548|
# 2549|-> TclNewObj(segment);
# 2550| allocSegment = 1;
# 2551| if (!Tcl_AttemptSetObjLength(segment, length)) {
Error: CLANG_WARNING: [#def1912]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2619:2: warning[deadcode.DeadStores]: Value stored to 'limit' is never read
# 2617| }
# 2618| Tcl_AppendToObj(appendObj, span, numBytes);
# 2619|-> limit -= numBytes;
# 2620| numBytes = 0;
# 2621| }
Error: CLANG_WARNING: [#def1913]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2620:2: warning[deadcode.DeadStores]: Value stored to 'numBytes' is never read
# 2618| Tcl_AppendToObj(appendObj, span, numBytes);
# 2619| limit -= numBytes;
# 2620|-> numBytes = 0;
# 2621| }
# 2622|
Error: CPPCHECK_WARNING (CWE-476): [#def1914]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2659: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2657| Tcl_Obj *objPtr;
# 2658|
# 2659|-> TclNewObj(objPtr);
# 2660| result = Tcl_AppendFormatToObj(interp, objPtr, format, objc, objv);
# 2661| if (result != TCL_OK) {
Error: CPPCHECK_WARNING (CWE-457): [#def1915]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2659: error[uninitvar]: Uninitialized variable: cachePtr
# 2657| Tcl_Obj *objPtr;
# 2658|
# 2659|-> TclNewObj(objPtr);
# 2660| result = Tcl_AppendFormatToObj(interp, objPtr, format, objc, objv);
# 2661| if (result != TCL_OK) {
Error: CPPCHECK_WARNING (CWE-457): [#def1916]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2659: error[uninitvar]: Uninitialized variable: objPtr
# 2657| Tcl_Obj *objPtr;
# 2658|
# 2659|-> TclNewObj(objPtr);
# 2660| result = Tcl_AppendFormatToObj(interp, objPtr, format, objc, objv);
# 2661| if (result != TCL_OK) {
Error: CPPCHECK_WARNING (CWE-476): [#def1917]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2707: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2705| const char *p;
# 2706|
# 2707|-> TclNewObj(list);
# 2708| p = format;
# 2709| Tcl_IncrRefCount(list);
Error: CPPCHECK_WARNING (CWE-457): [#def1918]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2707: error[uninitvar]: Uninitialized variable: cachePtr
# 2705| const char *p;
# 2706|
# 2707|-> TclNewObj(list);
# 2708| p = format;
# 2709| Tcl_IncrRefCount(list);
Error: CPPCHECK_WARNING (CWE-457): [#def1919]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2707: error[uninitvar]: Uninitialized variable: list
# 2705| const char *p;
# 2706|
# 2707|-> TclNewObj(list);
# 2708| p = format;
# 2709| Tcl_IncrRefCount(list);
Error: CPPCHECK_WARNING (CWE-476): [#def1920]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2881: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2879| Tcl_Obj *objPtr;
# 2880|
# 2881|-> TclNewObj(objPtr);
# 2882| va_start(argList, format);
# 2883| AppendPrintfToObjVA(objPtr, format, argList);
Error: CPPCHECK_WARNING (CWE-457): [#def1921]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2881: error[uninitvar]: Uninitialized variable: cachePtr
# 2879| Tcl_Obj *objPtr;
# 2880|
# 2881|-> TclNewObj(objPtr);
# 2882| va_start(argList, format);
# 2883| AppendPrintfToObjVA(objPtr, format, argList);
Error: CPPCHECK_WARNING (CWE-457): [#def1922]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:2881: error[uninitvar]: Uninitialized variable: objPtr
# 2879| Tcl_Obj *objPtr;
# 2880|
# 2881|-> TclNewObj(objPtr);
# 2882| va_start(argList, format);
# 2883| AppendPrintfToObjVA(objPtr, format, argList);
Error: CPPCHECK_WARNING (CWE-476): [#def1923]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:3057: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3055|
# 3056| if (Tcl_IsShared(objPtr)) {
# 3057|-> TclNewObj(objPtr);
# 3058| Tcl_SetObjLength(objPtr, numBytes);
# 3059| }
Error: CPPCHECK_WARNING (CWE-457): [#def1924]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:3057: error[uninitvar]: Uninitialized variable: cachePtr
# 3055|
# 3056| if (Tcl_IsShared(objPtr)) {
# 3057|-> TclNewObj(objPtr);
# 3058| Tcl_SetObjLength(objPtr, numBytes);
# 3059| }
Error: CPPCHECK_WARNING (CWE-457): [#def1925]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:3057: error[uninitvar]: Uninitialized variable: objPtr
# 3055|
# 3056| if (Tcl_IsShared(objPtr)) {
# 3057|-> TclNewObj(objPtr);
# 3058| Tcl_SetObjLength(objPtr, numBytes);
# 3059| }
Error: CLANG_WARNING: [#def1926]
tcl-8.6.14-build/tcl8.6.14/generic/tclStringObj.c:3422:10: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'dst')
# 3420| dst += Tcl_UniCharToUtf(unicode[i], dst);
# 3421| }
# 3422|-> *dst = '\0';
# 3423| objPtr->length = dst - objPtr->bytes;
# 3424| return numChars;
Error: CPPCHECK_WARNING: [#def1927]
tcl-8.6.14-build/tcl8.6.14/generic/tclStubLib.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1928]
tcl-8.6.14-build/tcl8.6.14/generic/tclThread.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1929]
tcl-8.6.14-build/tcl8.6.14/generic/tclThreadAlloc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-401): [#def1930]
tcl-8.6.14-build/tcl8.6.14/generic/tclThreadAlloc.c:503: error[memleakOnRealloc]: Common realloc mistake: 'blockPtr' nulled but not freed upon failure
# 501| cachePtr->totalAssigned -= blockPtr->blockReqSize;
# 502| cachePtr->totalAssigned += reqSize;
# 503|-> blockPtr = TclpSysRealloc(blockPtr, size);
# 504| if (blockPtr == NULL) {
# 505| return NULL;
Error: CPPCHECK_WARNING: [#def1931]
tcl-8.6.14-build/tcl8.6.14/generic/tclTimer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1932]
tcl-8.6.14-build/tcl8.6.14/generic/tclTimer.c:954: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 952| Tcl_Obj *resultObj;
# 953|
# 954|-> TclNewObj(resultObj);
# 955| for (afterPtr = assocPtr->firstAfterPtr; afterPtr != NULL;
# 956| afterPtr = afterPtr->nextPtr) {
Error: CPPCHECK_WARNING (CWE-457): [#def1933]
tcl-8.6.14-build/tcl8.6.14/generic/tclTimer.c:954: error[uninitvar]: Uninitialized variable: cachePtr
# 952| Tcl_Obj *resultObj;
# 953|
# 954|-> TclNewObj(resultObj);
# 955| for (afterPtr = assocPtr->firstAfterPtr; afterPtr != NULL;
# 956| afterPtr = afterPtr->nextPtr) {
Error: CPPCHECK_WARNING (CWE-457): [#def1934]
tcl-8.6.14-build/tcl8.6.14/generic/tclTimer.c:954: error[uninitvar]: Uninitialized variable: resultObj
# 952| Tcl_Obj *resultObj;
# 953|
# 954|-> TclNewObj(resultObj);
# 955| for (afterPtr = assocPtr->firstAfterPtr; afterPtr != NULL;
# 956| afterPtr = afterPtr->nextPtr) {
Error: CPPCHECK_WARNING (CWE-476): [#def1935]
tcl-8.6.14-build/tcl8.6.14/generic/tclTimer.c:980: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 978| Tcl_Obj *resultListPtr;
# 979|
# 980|-> TclNewObj(resultListPtr);
# 981| Tcl_ListObjAppendElement(interp, resultListPtr,
# 982| afterPtr->commandPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1936]
tcl-8.6.14-build/tcl8.6.14/generic/tclTimer.c:980: error[uninitvar]: Uninitialized variable: cachePtr
# 978| Tcl_Obj *resultListPtr;
# 979|
# 980|-> TclNewObj(resultListPtr);
# 981| Tcl_ListObjAppendElement(interp, resultListPtr,
# 982| afterPtr->commandPtr);
Error: CPPCHECK_WARNING (CWE-457): [#def1937]
tcl-8.6.14-build/tcl8.6.14/generic/tclTimer.c:980: error[uninitvar]: Uninitialized variable: resultListPtr
# 978| Tcl_Obj *resultListPtr;
# 979|
# 980|-> TclNewObj(resultListPtr);
# 981| Tcl_ListObjAppendElement(interp, resultListPtr,
# 982| afterPtr->commandPtr);
Error: CPPCHECK_WARNING (CWE-562): [#def1938]
tcl-8.6.14-build/tcl8.6.14/generic/tclTomMathStubLib.c:64: error[returnDanglingLifetime]: Returning pointer to local variable 'stubsPtr' that will be invalid when returning.
# 62| } else {
# 63| tclTomMathStubsPtr = stubsPtr;
# 64|-> return actualVersion;
# 65| }
# 66| tclStubsPtr->tcl_ResetResult(interp);
Error: CPPCHECK_WARNING: [#def1939]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1940]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:281: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 279| }
# 280|
# 281|-> TclNewObj(opsList);
# 282| Tcl_IncrRefCount(opsList);
# 283| flagOps = Tcl_GetStringFromObj(objv[3], &numFlags);
Error: CPPCHECK_WARNING (CWE-457): [#def1941]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:281: error[uninitvar]: Uninitialized variable: cachePtr
# 279| }
# 280|
# 281|-> TclNewObj(opsList);
# 282| Tcl_IncrRefCount(opsList);
# 283| flagOps = Tcl_GetStringFromObj(objv[3], &numFlags);
Error: CPPCHECK_WARNING (CWE-457): [#def1942]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:281: error[uninitvar]: Uninitialized variable: opsList
# 279| }
# 280|
# 281|-> TclNewObj(opsList);
# 282| Tcl_IncrRefCount(opsList);
# 283| flagOps = Tcl_GetStringFromObj(objv[3], &numFlags);
Error: CPPCHECK_WARNING (CWE-476): [#def1943]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:292: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 290|
# 291| if (*p == 'r') {
# 292|-> TclNewLiteralStringObj(opObj, "read");
# 293| } else if (*p == 'w') {
# 294| TclNewLiteralStringObj(opObj, "write");
Error: CPPCHECK_WARNING (CWE-457): [#def1944]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:292: error[uninitvar]: Uninitialized variable: cachePtr
# 290|
# 291| if (*p == 'r') {
# 292|-> TclNewLiteralStringObj(opObj, "read");
# 293| } else if (*p == 'w') {
# 294| TclNewLiteralStringObj(opObj, "write");
Error: CPPCHECK_WARNING (CWE-457): [#def1945]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:292: error[uninitvar]: Uninitialized variable: opObj
# 290|
# 291| if (*p == 'r') {
# 292|-> TclNewLiteralStringObj(opObj, "read");
# 293| } else if (*p == 'w') {
# 294| TclNewLiteralStringObj(opObj, "write");
Error: CPPCHECK_WARNING (CWE-476): [#def1946]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:294: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 292| TclNewLiteralStringObj(opObj, "read");
# 293| } else if (*p == 'w') {
# 294|-> TclNewLiteralStringObj(opObj, "write");
# 295| } else if (*p == 'u') {
# 296| TclNewLiteralStringObj(opObj, "unset");
Error: CPPCHECK_WARNING (CWE-457): [#def1947]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:294: error[uninitvar]: Uninitialized variable: (opObj)->internalRep.twoPtrValue.ptr1
# 292| TclNewLiteralStringObj(opObj, "read");
# 293| } else if (*p == 'w') {
# 294|-> TclNewLiteralStringObj(opObj, "write");
# 295| } else if (*p == 'u') {
# 296| TclNewLiteralStringObj(opObj, "unset");
Error: CPPCHECK_WARNING (CWE-457): [#def1948]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:294: error[uninitvar]: Uninitialized variable: cachePtr
# 292| TclNewLiteralStringObj(opObj, "read");
# 293| } else if (*p == 'w') {
# 294|-> TclNewLiteralStringObj(opObj, "write");
# 295| } else if (*p == 'u') {
# 296| TclNewLiteralStringObj(opObj, "unset");
Error: CPPCHECK_WARNING (CWE-476): [#def1949]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:296: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 294| TclNewLiteralStringObj(opObj, "write");
# 295| } else if (*p == 'u') {
# 296|-> TclNewLiteralStringObj(opObj, "unset");
# 297| } else if (*p == 'a') {
# 298| TclNewLiteralStringObj(opObj, "array");
Error: CPPCHECK_WARNING (CWE-457): [#def1950]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:296: error[uninitvar]: Uninitialized variable: cachePtr
# 294| TclNewLiteralStringObj(opObj, "write");
# 295| } else if (*p == 'u') {
# 296|-> TclNewLiteralStringObj(opObj, "unset");
# 297| } else if (*p == 'a') {
# 298| TclNewLiteralStringObj(opObj, "array");
Error: CPPCHECK_WARNING (CWE-476): [#def1951]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:298: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 296| TclNewLiteralStringObj(opObj, "unset");
# 297| } else if (*p == 'a') {
# 298|-> TclNewLiteralStringObj(opObj, "array");
# 299| } else {
# 300| Tcl_DecrRefCount(opsList);
Error: CPPCHECK_WARNING (CWE-457): [#def1952]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:298: error[uninitvar]: Uninitialized variable: cachePtr
# 296| TclNewLiteralStringObj(opObj, "unset");
# 297| } else if (*p == 'a') {
# 298|-> TclNewLiteralStringObj(opObj, "array");
# 299| } else {
# 300| Tcl_DecrRefCount(opsList);
Error: CPPCHECK_WARNING (CWE-476): [#def1953]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:325: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 323| return TCL_ERROR;
# 324| }
# 325|-> TclNewObj(resultListPtr);
# 326| name = Tcl_GetString(objv[2]);
# 327| FOREACH_VAR_TRACE(interp, name, clientData) {
Error: CPPCHECK_WARNING (CWE-457): [#def1954]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:325: error[uninitvar]: Uninitialized variable: cachePtr
# 323| return TCL_ERROR;
# 324| }
# 325|-> TclNewObj(resultListPtr);
# 326| name = Tcl_GetString(objv[2]);
# 327| FOREACH_VAR_TRACE(interp, name, clientData) {
Error: CPPCHECK_WARNING (CWE-457): [#def1955]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:325: error[uninitvar]: Uninitialized variable: resultListPtr
# 323| return TCL_ERROR;
# 324| }
# 325|-> TclNewObj(resultListPtr);
# 326| name = Tcl_GetString(objv[2]);
# 327| FOREACH_VAR_TRACE(interp, name, clientData) {
Error: CPPCHECK_WARNING (CWE-476): [#def1956]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:592: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 590| Tcl_IncrRefCount(elemObjPtr);
# 591| if (tcmdPtr->flags & TCL_TRACE_ENTER_EXEC) {
# 592|-> TclNewLiteralStringObj(opObj, "enter");
# 593| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObj);
# 594| }
Error: CPPCHECK_WARNING (CWE-457): [#def1957]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:592: error[uninitvar]: Uninitialized variable: cachePtr
# 590| Tcl_IncrRefCount(elemObjPtr);
# 591| if (tcmdPtr->flags & TCL_TRACE_ENTER_EXEC) {
# 592|-> TclNewLiteralStringObj(opObj, "enter");
# 593| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObj);
# 594| }
Error: CPPCHECK_WARNING (CWE-457): [#def1958]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:592: error[uninitvar]: Uninitialized variable: opObj
# 590| Tcl_IncrRefCount(elemObjPtr);
# 591| if (tcmdPtr->flags & TCL_TRACE_ENTER_EXEC) {
# 592|-> TclNewLiteralStringObj(opObj, "enter");
# 593| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObj);
# 594| }
Error: CPPCHECK_WARNING (CWE-476): [#def1959]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:596: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 594| }
# 595| if (tcmdPtr->flags & TCL_TRACE_LEAVE_EXEC) {
# 596|-> TclNewLiteralStringObj(opObj, "leave");
# 597| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObj);
# 598| }
Error: CPPCHECK_WARNING (CWE-457): [#def1960]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:596: error[uninitvar]: Uninitialized variable: (opObj)->internalRep.twoPtrValue.ptr1
# 594| }
# 595| if (tcmdPtr->flags & TCL_TRACE_LEAVE_EXEC) {
# 596|-> TclNewLiteralStringObj(opObj, "leave");
# 597| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObj);
# 598| }
Error: CPPCHECK_WARNING (CWE-457): [#def1961]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:596: error[uninitvar]: Uninitialized variable: cachePtr
# 594| }
# 595| if (tcmdPtr->flags & TCL_TRACE_LEAVE_EXEC) {
# 596|-> TclNewLiteralStringObj(opObj, "leave");
# 597| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObj);
# 598| }
Error: CPPCHECK_WARNING (CWE-476): [#def1962]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:600: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 598| }
# 599| if (tcmdPtr->flags & TCL_TRACE_ENTER_DURING_EXEC) {
# 600|-> TclNewLiteralStringObj(opObj, "enterstep");
# 601| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObj);
# 602| }
Error: CPPCHECK_WARNING (CWE-457): [#def1963]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:600: error[uninitvar]: Uninitialized variable: cachePtr
# 598| }
# 599| if (tcmdPtr->flags & TCL_TRACE_ENTER_DURING_EXEC) {
# 600|-> TclNewLiteralStringObj(opObj, "enterstep");
# 601| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObj);
# 602| }
Error: CPPCHECK_WARNING (CWE-476): [#def1964]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:604: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 602| }
# 603| if (tcmdPtr->flags & TCL_TRACE_LEAVE_DURING_EXEC) {
# 604|-> TclNewLiteralStringObj(opObj, "leavestep");
# 605| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObj);
# 606| }
Error: CPPCHECK_WARNING (CWE-457): [#def1965]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:604: error[uninitvar]: Uninitialized variable: cachePtr
# 602| }
# 603| if (tcmdPtr->flags & TCL_TRACE_LEAVE_DURING_EXEC) {
# 604|-> TclNewLiteralStringObj(opObj, "leavestep");
# 605| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObj);
# 606| }
Error: CPPCHECK_WARNING (CWE-476): [#def1966]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:795: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 793| Tcl_IncrRefCount(elemObjPtr);
# 794| if (tcmdPtr->flags & TCL_TRACE_RENAME) {
# 795|-> TclNewLiteralStringObj(opObj, "rename");
# 796| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObj);
# 797| }
Error: CPPCHECK_WARNING (CWE-457): [#def1967]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:795: error[uninitvar]: Uninitialized variable: cachePtr
# 793| Tcl_IncrRefCount(elemObjPtr);
# 794| if (tcmdPtr->flags & TCL_TRACE_RENAME) {
# 795|-> TclNewLiteralStringObj(opObj, "rename");
# 796| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObj);
# 797| }
Error: CPPCHECK_WARNING (CWE-457): [#def1968]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:795: error[uninitvar]: Uninitialized variable: opObj
# 793| Tcl_IncrRefCount(elemObjPtr);
# 794| if (tcmdPtr->flags & TCL_TRACE_RENAME) {
# 795|-> TclNewLiteralStringObj(opObj, "rename");
# 796| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObj);
# 797| }
Error: CPPCHECK_WARNING (CWE-476): [#def1969]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:799: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 797| }
# 798| if (tcmdPtr->flags & TCL_TRACE_DELETE) {
# 799|-> TclNewLiteralStringObj(opObj, "delete");
# 800| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObj);
# 801| }
Error: CPPCHECK_WARNING (CWE-457): [#def1970]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:799: error[uninitvar]: Uninitialized variable: (opObj)->internalRep.twoPtrValue.ptr1
# 797| }
# 798| if (tcmdPtr->flags & TCL_TRACE_DELETE) {
# 799|-> TclNewLiteralStringObj(opObj, "delete");
# 800| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObj);
# 801| }
Error: CPPCHECK_WARNING (CWE-457): [#def1971]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:799: error[uninitvar]: Uninitialized variable: cachePtr
# 797| }
# 798| if (tcmdPtr->flags & TCL_TRACE_DELETE) {
# 799|-> TclNewLiteralStringObj(opObj, "delete");
# 800| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObj);
# 801| }
Error: CPPCHECK_WARNING (CWE-476): [#def1972]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:970: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 968| }
# 969|
# 970|-> TclNewObj(resultListPtr);
# 971| name = Tcl_GetString(objv[3]);
# 972| FOREACH_VAR_TRACE(interp, name, clientData) {
Error: CPPCHECK_WARNING (CWE-457): [#def1973]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:970: error[uninitvar]: Uninitialized variable: cachePtr
# 968| }
# 969|
# 970|-> TclNewObj(resultListPtr);
# 971| name = Tcl_GetString(objv[3]);
# 972| FOREACH_VAR_TRACE(interp, name, clientData) {
Error: CPPCHECK_WARNING (CWE-457): [#def1974]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:970: error[uninitvar]: Uninitialized variable: resultListPtr
# 968| }
# 969|
# 970|-> TclNewObj(resultListPtr);
# 971| name = Tcl_GetString(objv[3]);
# 972| FOREACH_VAR_TRACE(interp, name, clientData) {
Error: CPPCHECK_WARNING (CWE-476): [#def1975]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:984: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 982| elemObjPtr = Tcl_NewListObj(0, NULL);
# 983| if (tvarPtr->flags & TCL_TRACE_ARRAY) {
# 984|-> TclNewLiteralStringObj(opObjPtr, "array");
# 985| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObjPtr);
# 986| }
Error: CPPCHECK_WARNING (CWE-457): [#def1976]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:984: error[uninitvar]: Uninitialized variable: cachePtr
# 982| elemObjPtr = Tcl_NewListObj(0, NULL);
# 983| if (tvarPtr->flags & TCL_TRACE_ARRAY) {
# 984|-> TclNewLiteralStringObj(opObjPtr, "array");
# 985| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObjPtr);
# 986| }
Error: CPPCHECK_WARNING (CWE-457): [#def1977]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:984: error[uninitvar]: Uninitialized variable: opObjPtr
# 982| elemObjPtr = Tcl_NewListObj(0, NULL);
# 983| if (tvarPtr->flags & TCL_TRACE_ARRAY) {
# 984|-> TclNewLiteralStringObj(opObjPtr, "array");
# 985| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObjPtr);
# 986| }
Error: CPPCHECK_WARNING (CWE-476): [#def1978]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:988: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 986| }
# 987| if (tvarPtr->flags & TCL_TRACE_READS) {
# 988|-> TclNewLiteralStringObj(opObjPtr, "read");
# 989| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObjPtr);
# 990| }
Error: CPPCHECK_WARNING (CWE-457): [#def1979]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:988: error[uninitvar]: Uninitialized variable: cachePtr
# 986| }
# 987| if (tvarPtr->flags & TCL_TRACE_READS) {
# 988|-> TclNewLiteralStringObj(opObjPtr, "read");
# 989| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObjPtr);
# 990| }
Error: CPPCHECK_WARNING (CWE-476): [#def1980]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:992: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 990| }
# 991| if (tvarPtr->flags & TCL_TRACE_WRITES) {
# 992|-> TclNewLiteralStringObj(opObjPtr, "write");
# 993| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObjPtr);
# 994| }
Error: CPPCHECK_WARNING (CWE-476): [#def1981]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:996: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 994| }
# 995| if (tvarPtr->flags & TCL_TRACE_UNSETS) {
# 996|-> TclNewLiteralStringObj(opObjPtr, "unset");
# 997| Tcl_ListObjAppendElement(NULL, elemObjPtr, opObjPtr);
# 998| }
Error: CPPCHECK_WARNING (CWE-476): [#def1982]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:1854: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1852| */
# 1853|
# 1854|-> TclNewIntObj(resultCode, code);
# 1855| resultCodeStr = Tcl_GetString(resultCode);
# 1856| Tcl_DStringAppendElement(&cmd, resultCodeStr);
Error: CPPCHECK_WARNING (CWE-562): [#def1983]
tcl-8.6.14-build/tcl8.6.14/generic/tclTrace.c:2652: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 2650| result = NULL;
# 2651| active.nextPtr = iPtr->activeVarTracePtr;
# 2652|-> iPtr->activeVarTracePtr = &active;
# 2653| Tcl_Preserve(iPtr);
# 2654| if (arrayPtr && !TclIsVarTraceActive(arrayPtr)
Error: CPPCHECK_WARNING: [#def1984]
tcl-8.6.14-build/tcl8.6.14/generic/tclUtf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1985]
tcl-8.6.14-build/tcl8.6.14/generic/tclUtf.c:523:17: warning[deadcode.DeadStores]: Value stored to 'optPtr' during its initialization is never read
# 521| const char *endPtr = src + length;
# 522| /* Pointer to last byte where optimization still can be used */
# 523|-> const char *optPtr = endPtr - TCL_UTF_MAX;
# 524|
# 525| if (length < 0) {
Error: CPPCHECK_WARNING: [#def1986]
tcl-8.6.14-build/tcl8.6.14/generic/tclUtil.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1987]
tcl-8.6.14-build/tcl8.6.14/generic/tclUtil.c:1449:5: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'p')
# 1447|
# 1448| if (conversion == CONVERT_BRACE) {
# 1449|-> *p = '{';
# 1450| p++;
# 1451| if (length == -1) {
Error: CPPCHECK_WARNING (CWE-476): [#def1988]
tcl-8.6.14-build/tcl8.6.14/generic/tclUtil.c:2051: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2049| }
# 2050| if (!resPtr) {
# 2051|-> TclNewObj(resPtr);
# 2052| }
# 2053| return resPtr;
Error: CLANG_WARNING: [#def1989]
tcl-8.6.14-build/tcl8.6.14/generic/tclUtil.c:2065:2: warning[deadcode.DeadStores]: Value stored to 'element' is never read
# 2063|
# 2064| for (i = 0; i < objc; i++) {
# 2065|-> element = TclGetStringFromObj(objv[i], &elemLength);
# 2066| bytesNeeded += elemLength;
# 2067| if (bytesNeeded < 0) {
Error: CPPCHECK_WARNING (CWE-476): [#def1990]
tcl-8.6.14-build/tcl8.6.14/generic/tclUtil.c:2078: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2076| */
# 2077|
# 2078|-> TclNewObj(resPtr);
# 2079| (void) Tcl_AttemptSetObjLength(resPtr, bytesNeeded + objc - 1);
# 2080| Tcl_SetObjLength(resPtr, 0);
Error: CPPCHECK_WARNING (CWE-476): [#def1991]
tcl-8.6.14-build/tcl8.6.14/generic/tclUtil.c:3101: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3099| if (dsPtr->string == dsPtr->staticSpace) {
# 3100| if (dsPtr->length == 0) {
# 3101|-> TclNewObj(result);
# 3102| } else {
# 3103| /*
Error: CPPCHECK_WARNING (CWE-476): [#def1992]
tcl-8.6.14-build/tcl8.6.14/generic/tclUtil.c:3107: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3105| */
# 3106|
# 3107|-> TclNewStringObj(result, dsPtr->string, dsPtr->length);
# 3108| }
# 3109| } else {
Error: CPPCHECK_WARNING (CWE-476): [#def1993]
tcl-8.6.14-build/tcl8.6.14/generic/tclUtil.c:3114: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3112| */
# 3113|
# 3114|-> TclNewObj(result);
# 3115| result->bytes = dsPtr->string;
# 3116| result->length = dsPtr->length;
Error: CPPCHECK_WARNING: [#def1994]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def1995]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:440: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 438| createPart1, createPart2, arrayPtrPtr);
# 439|
# 440|-> TclDecrRefCount(part1Ptr);
# 441| return varPtr;
# 442| }
Error: CPPCHECK_WARNING (CWE-476): [#def1996]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:689: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 687| */
# 688|
# 689|-> TclNewStringObj(part1Ptr, part1, len1);
# 690| Tcl_IncrRefCount(part1Ptr);
# 691|
Error: CPPCHECK_WARNING (CWE-476): [#def1997]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:1187: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1185| Tcl_Obj *resultPtr = Tcl_ObjGetVar2(interp, varNamePtr, NULL, flags);
# 1186|
# 1187|-> TclDecrRefCount(varNamePtr);
# 1188|
# 1189| if (resultPtr == NULL) {
Error: CPPCHECK_WARNING (CWE-476): [#def1998]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:1940: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1938| if (flags & TCL_LIST_ELEMENT) { /* Append list element. */
# 1939| if (oldValuePtr == NULL) {
# 1940|-> TclNewObj(oldValuePtr);
# 1941| varPtr->value.objPtr = oldValuePtr;
# 1942| Tcl_IncrRefCount(oldValuePtr); /* Since var is referenced. */
Error: CPPCHECK_WARNING (CWE-476): [#def1999]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:1945: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1943| } else if (Tcl_IsShared(oldValuePtr)) {
# 1944| varPtr->value.objPtr = Tcl_DuplicateObj(oldValuePtr);
# 1945|-> TclDecrRefCount(oldValuePtr);
# 1946| oldValuePtr = varPtr->value.objPtr;
# 1947| Tcl_IncrRefCount(oldValuePtr); /* Since var is referenced. */
Error: CPPCHECK_WARNING (CWE-476): [#def2000]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:1968: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1966| TclContinuationsCopy(varPtr->value.objPtr, oldValuePtr);
# 1967|
# 1968|-> TclDecrRefCount(oldValuePtr);
# 1969| oldValuePtr = varPtr->value.objPtr;
# 1970| Tcl_IncrRefCount(oldValuePtr); /* Since var is ref */
Error: CPPCHECK_WARNING (CWE-476): [#def2001]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:1987: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1985| Tcl_IncrRefCount(newValuePtr); /* Var is another ref. */
# 1986| if (oldValuePtr != NULL) {
# 1987|-> TclDecrRefCount(oldValuePtr); /* Discard old value. */
# 1988| }
# 1989| }
Error: CPPCHECK_WARNING (CWE-476): [#def2002]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:2215: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2213| }
# 2214| if (varValuePtr == NULL) {
# 2215|-> TclNewIntObj(varValuePtr, 0);
# 2216| }
# 2217| if (Tcl_IsShared(varValuePtr)) {
Error: CPPCHECK_WARNING (CWE-476): [#def2003]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:2656: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2654| Tcl_Obj *objPtr = dummyVar.value.objPtr;
# 2655|
# 2656|-> TclDecrRefCount(objPtr);
# 2657| } else if (TclIsVarArray(&dummyVar)) {
# 2658| /*
Error: CPPCHECK_WARNING (CWE-476): [#def2004]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:2865: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2863| */
# 2864|
# 2865|-> TclNewObj(varValuePtr);
# 2866| newValuePtr = Tcl_ObjSetVar2(interp, objv[1], NULL, varValuePtr,
# 2867| TCL_LEAVE_ERR_MSG);
Error: CPPCHECK_WARNING (CWE-476): [#def2005]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:2923: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2921| */
# 2922|
# 2923|-> TclNewObj(varValuePtr);
# 2924| createdNewObj = 1;
# 2925| } else if (Tcl_IsShared(varValuePtr)) {
Error: CPPCHECK_WARNING (CWE-476): [#def2006]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:2937: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 2935| if (result != TCL_OK) {
# 2936| if (createdNewObj) {
# 2937|-> TclDecrRefCount(varValuePtr); /* Free unneeded obj. */
# 2938| }
# 2939| return result;
Error: CPPCHECK_WARNING (CWE-476): [#def2007]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:3371: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3369| */
# 3370|
# 3371|-> TclNewObj(nameLstObj);
# 3372| Tcl_IncrRefCount(nameLstObj);
# 3373| if ((patternObj != NULL) && TclMatchIsTrivial(pattern)) {
Error: CPPCHECK_WARNING (CWE-476): [#def2008]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:3384: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3382| VarHashGetKey(varPtr2));
# 3383| if (result != TCL_OK) {
# 3384|-> TclDecrRefCount(nameLstObj);
# 3385| return result;
# 3386| }
Error: CPPCHECK_WARNING (CWE-476): [#def2009]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:3402: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3400| result = Tcl_ListObjAppendElement(interp, nameLstObj, nameObj);
# 3401| if (result != TCL_OK) {
# 3402|-> TclDecrRefCount(nameLstObj);
# 3403| return result;
# 3404| }
Error: CPPCHECK_WARNING (CWE-476): [#def2010]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:3421: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3419| */
# 3420|
# 3421|-> TclNewObj(tmpResObj);
# 3422| result = TclListObjGetElements(interp, nameLstObj, &count, &nameObjPtr);
# 3423| if (result != TCL_OK) {
Error: CPPCHECK_WARNING (CWE-476): [#def2011]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:3458: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3456| }
# 3457| Tcl_SetObjResult(interp, tmpResObj);
# 3458|-> TclDecrRefCount(nameLstObj);
# 3459| return TCL_OK;
# 3460|
Error: CPPCHECK_WARNING (CWE-476): [#def2012]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:3465: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3463| VarHashRefCount(varPtr)--;
# 3464| }
# 3465|-> TclDecrRefCount(nameLstObj);
# 3466| TclDecrRefCount(tmpResObj); /* Free unneeded temp result. */
# 3467| return result;
Error: CPPCHECK_WARNING (CWE-476): [#def2013]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:3466: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3464| }
# 3465| TclDecrRefCount(nameLstObj);
# 3466|-> TclDecrRefCount(tmpResObj); /* Free unneeded temp result. */
# 3467| return result;
# 3468| }
Error: CPPCHECK_WARNING (CWE-476): [#def2014]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:3533: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3531| */
# 3532|
# 3533|-> TclNewObj(resultObj);
# 3534| if (patternObj) {
# 3535| pattern = TclGetString(patternObj);
Error: CPPCHECK_WARNING (CWE-476): [#def2015]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:3574: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 3572| matched = Tcl_RegExpMatchObj(interp, nameObj, patternObj);
# 3573| if (matched < 0) {
# 3574|-> TclDecrRefCount(resultObj);
# 3575| return TCL_ERROR;
# 3576| }
Error: CPPCHECK_WARNING (CWE-476): [#def2016]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:5124: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5122| varPtr = VarHashFirstVar(tablePtr, &search)) {
# 5123| Tcl_Obj *objPtr;
# 5124|-> TclNewObj(objPtr);
# 5125| VarHashRefCount(varPtr)++; /* Make sure we get to remove from
# 5126| * hash. */
Error: CPPCHECK_WARNING (CWE-476): [#def2017]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:5316: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5314| if (TclIsVarScalar(elPtr) && (elPtr->value.objPtr != NULL)) {
# 5315| objPtr = elPtr->value.objPtr;
# 5316|-> TclDecrRefCount(objPtr);
# 5317| elPtr->value.objPtr = NULL;
# 5318| }
Error: CPPCHECK_WARNING (CWE-476): [#def2018]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:5523: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5521|
# 5522| if (arrayPtr != NULL) {
# 5523|-> TclDecrRefCount(arrayPtr);
# 5524| ckfree(elem);
# 5525| }
Error: CPPCHECK_WARNING (CWE-476): [#def2019]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:5859: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5857| || TclIsVarNamespaceVar(varPtr)) {
# 5858| if (specificNsInPattern) {
# 5859|-> TclNewObj(elemObjPtr);
# 5860| Tcl_GetVariableFullName(interp, (Tcl_Var) varPtr,
# 5861| elemObjPtr);
Error: CPPCHECK_WARNING (CWE-476): [#def2020]
tcl-8.6.14-build/tcl8.6.14/generic/tclVar.c:5892: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 5890| || Tcl_StringMatch(varName, simplePattern)) {
# 5891| if (specificNsInPattern) {
# 5892|-> TclNewObj(elemObjPtr);
# 5893| Tcl_GetVariableFullName(interp, (Tcl_Var) varPtr,
# 5894| elemObjPtr);
Error: CLANG_WARNING: [#def2021]
tcl-8.6.14-build/tcl8.6.14/generic/tclZlib.c:1867:2: warning[deadcode.DeadStores]: Value stored to 'outData' is never read
# 1865|
# 1866| stream.avail_out += newBufferSize - bufferSize;
# 1867|-> outData = newOutData;
# 1868| bufferSize = newBufferSize;
# 1869| }
Error: CLANG_WARNING: [#def2022]
tcl-8.6.14-build/tcl8.6.14/generic/tclZlib.c:3306:2: warning[deadcode.DeadStores]: Value stored to 'code' is never read
# 3304| }
# 3305| cd->compDictObj = compDictObj;
# 3306|-> code = Z_OK;
# 3307| if (cd->mode == TCL_ZLIB_STREAM_DEFLATE) {
# 3308| code = SetDeflateDictionary(&cd->outStream, compDictObj);
Error: CPPCHECK_WARNING: [#def2023]
tcl-8.6.14-build/tcl8.6.14/libtommath/bn_mp_and.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2024]
tcl-8.6.14-build/tcl8.6.14/libtommath/bn_mp_div_2d.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2025]
tcl-8.6.14-build/tcl8.6.14/libtommath/bn_mp_div_3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2026]
tcl-8.6.14-build/tcl8.6.14/libtommath/bn_mp_div_d.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2027]
tcl-8.6.14-build/tcl8.6.14/libtommath/bn_mp_mul.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2028]
tcl-8.6.14-build/tcl8.6.14/libtommath/bn_mp_mul_2d.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2029]
tcl-8.6.14-build/tcl8.6.14/libtommath/bn_mp_or.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2030]
tcl-8.6.14-build/tcl8.6.14/libtommath/bn_mp_pack.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2031]
tcl-8.6.14-build/tcl8.6.14/libtommath/bn_mp_radix_size.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2032]
tcl-8.6.14-build/tcl8.6.14/libtommath/bn_mp_read_radix.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2033]
tcl-8.6.14-build/tcl8.6.14/libtommath/bn_mp_to_radix.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2034]
tcl-8.6.14-build/tcl8.6.14/libtommath/bn_mp_xor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2035]
tcl-8.6.14-build/tcl8.6.14/libtommath/bn_s_mp_balance_mul.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2036]
tcl-8.6.14-build/tcl8.6.14/libtommath/bn_s_mp_mul_digs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2037]
tcl-8.6.14-build/tcl8.6.14/libtommath/bn_s_mp_mul_digs_fast.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2038]
tcl-8.6.14-build/tcl8.6.14/libtommath/bn_s_mp_sqr_fast.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2039]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixFCmd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def2040]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixFCmd.c:1372: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1370|
# 1371| if (groupPtr == NULL) {
# 1372|-> TclNewIntObj(*attributePtrPtr, (int) statBuf.st_gid);
# 1373| } else {
# 1374| Tcl_DString ds;
Error: CPPCHECK_WARNING (CWE-476): [#def2041]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixFCmd.c:1426: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1424|
# 1425| if (pwPtr == NULL) {
# 1426|-> TclNewIntObj(*attributePtrPtr, (int) statBuf.st_uid);
# 1427| } else {
# 1428| Tcl_DString ds;
Error: CPPCHECK_WARNING (CWE-476): [#def2042]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixFCmd.c:1653: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1651| Tcl_Obj *modeObj;
# 1652|
# 1653|-> TclNewLiteralStringObj(modeObj, "0o");
# 1654| Tcl_AppendToObj(modeObj, modeStringPtr+scanned+1, -1);
# 1655| result = Tcl_GetLongFromObj(NULL, modeObj, &mode);
Error: CPPCHECK_WARNING (CWE-476): [#def2043]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixFCmd.c:1727: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1725| {
# 1726| Tcl_Obj *resultPtr;
# 1727|-> TclNewLiteralStringObj(resultPtr, "/");
# 1728|
# 1729| Tcl_IncrRefCount(resultPtr);
Error: CPPCHECK_WARNING: [#def2044]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixFile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def2045]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixFile.c: scope_hint: In function ‘TclpObjLink’
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixFile.c:963:17: warning[-Wanalyzer-null-argument]: use of NULL ‘target’ where non-null expected
tcl-8.6.14-build/tcl8.6.14/generic/tclPort.h:25: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tclInt.h:36: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixFile.c:13: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixFile.c:909:13: note: in expansion of macro ‘Tcl_DecrRefCount’
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixPort.h:166: included_from: Included from here.
tcl-8.6.14-build/tcl8.6.14/generic/tclPort.h:23: included_from: Included from here.
/usr/include/unistd.h:819:12: note: argument 1 of ‘link’ must be non-null
# 961| Tcl_DStringFree(&ds);
# 962| } else if (linkAction & TCL_CREATE_HARD_LINK) {
# 963|-> if (link(target, src) != 0) {
# 964| return NULL;
# 965| }
Error: CPPCHECK_WARNING: [#def2046]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixInit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2047]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixInit.c: scope_hint: In function ‘TclpInitPlatform’
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixInit.c:375:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor
# 373|
# 374| if (TclOSseek(0, (Tcl_SeekOffset) 0, SEEK_CUR) == -1 && errno == EBADF) {
# 375|-> open("/dev/null", O_RDONLY);
# 376| }
# 377| if (TclOSseek(1, (Tcl_SeekOffset) 0, SEEK_CUR) == -1 && errno == EBADF) {
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2048]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixInit.c:378:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor
# 376| }
# 377| if (TclOSseek(1, (Tcl_SeekOffset) 0, SEEK_CUR) == -1 && errno == EBADF) {
# 378|-> open("/dev/null", O_WRONLY);
# 379| }
# 380| if (TclOSseek(2, (Tcl_SeekOffset) 0, SEEK_CUR) == -1 && errno == EBADF) {
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2049]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixInit.c:381:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor
# 379| }
# 380| if (TclOSseek(2, (Tcl_SeekOffset) 0, SEEK_CUR) == -1 && errno == EBADF) {
# 381|-> open("/dev/null", O_WRONLY);
# 382| }
# 383|
Error: CPPCHECK_WARNING (CWE-476): [#def2050]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixInit.c:476: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 474| Tcl_DString buffer;
# 475|
# 476|-> TclNewObj(pathPtr);
# 477|
# 478| /*
Error: CLANG_WARNING: [#def2051]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixInit.c:522:6: warning[deadcode.DeadStores]: Value stored to 'str' is never read
# 520|
# 521| pathv[pathc - 1] = installLib + 4;
# 522|-> str = Tcl_JoinPath(pathc, pathv, &ds);
# 523| Tcl_ListObjAppendElement(NULL, pathPtr, TclDStringToObj(&ds));
# 524| }
Error: CPPCHECK_WARNING: [#def2052]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixNotfy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2053]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixPipe.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def2054]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixPipe.c:246: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 244| int fd;
# 245|
# 246|-> TclNewObj(nameObj);
# 247| Tcl_IncrRefCount(nameObj);
# 248| fd = TclUnixOpenTemporaryFile(NULL, NULL, NULL, nameObj);
Error: CLANG_WARNING: [#def2055]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixPipe.c:543:11: warning[security.insecureAPI.vfork]: Call to function 'vfork' is insecure as it can lead to denial of service situations in the parent process. Replace calls to vfork with calls to the safer 'posix_spawn' function
# 541| }
# 542| #else
# 543|-> pid = fork();
# 544| #endif
# 545| if (pid == 0) {
Error: CLANG_WARNING: [#def2056]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixPipe.c:547:2: warning[unix.Vfork]: This assignment is prohibited after a successful vfork
# 545| if (pid == 0) {
# 546| size_t len;
# 547|-> int joinThisError = errorFile && (errorFile == outputFile);
# 548|
# 549| fd = GetFd(errPipeOut);
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2057]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixPipe.c: scope_hint: In function ‘TclpCreateProcess’
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixPipe.c:558:35: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(1, 2)’
# 556| || !SetupStdFile(outputFile, TCL_STDOUT)
# 557| || (!joinThisError && !SetupStdFile(errorFile, TCL_STDERR))
# 558|-> || (joinThisError &&
# 559| ((dup2(1,2) == -1) || (fcntl(2, F_SETFD, 0) != 0)))) {
# 560| snprintf(errSpace, sizeof(errSpace),
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2058]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixPipe.c: scope_hint: In function ‘SetupStdFile’
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixPipe.c:776:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd, targetFd)’
# 774| fd = GetFd(file);
# 775| if (fd != targetFd) {
# 776|-> if (dup2(fd, targetFd) == -1) {
# 777| return 0;
# 778| }
Error: CPPCHECK_WARNING (CWE-476): [#def2059]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixPipe.c:958: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 956|
# 957| pipePtr = (PipeState *)Tcl_GetChannelInstanceData(chan);
# 958|-> TclNewObj(pidsObj);
# 959| for (i = 0; i < pipePtr->numPids; i++) {
# 960| Tcl_ListObjAppendElement(NULL, pidsObj, Tcl_NewIntObj(
Error: CPPCHECK_WARNING (CWE-476): [#def2060]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixPipe.c:1387: error[nullPointer]: Null pointer dereference: (struct Interp*)(NULL)
# 1385|
# 1386| pipePtr = (PipeState *)Tcl_GetChannelInstanceData(chan);
# 1387|-> TclNewObj(resultPtr);
# 1388| for (i = 0; i < pipePtr->numPids; i++) {
# 1389| Tcl_ListObjAppendElement(NULL, resultPtr,
Error: CPPCHECK_WARNING: [#def2061]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixSock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2062]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixSock.c: scope_hint: In function ‘TcpConnect’
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixSock.c:1267:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*statePtr.fds.fd’
# 1265| ret = bind(statePtr->fds.fd, statePtr->myaddr->ai_addr,
# 1266| statePtr->myaddr->ai_addrlen);
# 1267|-> if (ret < 0) {
# 1268| error = errno;
# 1269| continue;
Error: GCC_ANALYZER_WARNING (CWE-666): [#def2063]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixSock.c:1279:19: warning[-Wanalyzer-fd-phase-mismatch]: ‘connect’ on file descriptor ‘*(void *)((void *)statePtr).fd’ in wrong phase
# 1277| */
# 1278|
# 1279|-> ret = connect(statePtr->fds.fd, statePtr->addr->ai_addr,
# 1280| statePtr->addr->ai_addrlen);
# 1281| if (ret < 0) {
Error: GCC_ANALYZER_WARNING (CWE-666): [#def2064]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixSock.c:1279:19: warning[-Wanalyzer-fd-phase-mismatch]: ‘connect’ on file descriptor ‘*statePtr.fds.fd’ in wrong phase
# 1277| */
# 1278|
# 1279|-> ret = connect(statePtr->fds.fd, statePtr->addr->ai_addr,
# 1280| statePtr->addr->ai_addrlen);
# 1281| if (ret < 0) {
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2065]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixSock.c:1281:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*statePtr.fds.fd’
# 1279| ret = connect(statePtr->fds.fd, statePtr->addr->ai_addr,
# 1280| statePtr->addr->ai_addrlen);
# 1281|-> if (ret < 0) {
# 1282| error = errno;
# 1283| }
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2066]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixSock.c: scope_hint: In function ‘TcpAccept’
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixSock.c:1734:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*(TcpFdList *)data.fd’
# 1732| len = sizeof(addr);
# 1733| newsock = accept(fds->fd, &addr.sa, &len);
# 1734|-> if (newsock < 0) {
# 1735| return;
# 1736| }
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2067]
tcl-8.6.14-build/tcl8.6.14/unix/tclUnixSock.c:1743:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor
# 1741| */
# 1742|
# 1743|-> (void) fcntl(newsock, F_SETFD, FD_CLOEXEC);
# 1744|
# 1745| newSockState = (TcpState *)ckalloc(sizeof(TcpState));
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-133.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | tcl-8.6.14-1.fc41 |
store-results-to | /tmp/tmp26s9kkai/tcl-8.6.14-1.fc41.tar.xz |
time-created | 2024-07-03 18:08:12 |
time-finished | 2024-07-03 18:11:53 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp26s9kkai/tcl-8.6.14-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp26s9kkai/tcl-8.6.14-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |