libxslt-1.1.41-2.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libxslt-1.1.41-build/libxslt-1.1.41/libexslt/date.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
libxslt-1.1.41-build/libxslt-1.1.41/libexslt/dynamic.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
libxslt-1.1.41-build/libxslt-1.1.41/libexslt/functions.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
libxslt-1.1.41-build/libxslt-1.1.41/libexslt/math.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
libxslt-1.1.41-build/libxslt-1.1.41/libexslt/saxon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
libxslt-1.1.41-build/libxslt-1.1.41/libexslt/strings.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-758): [#def7]
libxslt-1.1.41-build/libxslt-1.1.41/libexslt/strings.c:674: warning[objectIndex]: The address of variable 'search_str' might be accessed at non-zero index.
#  672|       for (i=0; i<n; ++i) {
#  673|           if (search_set != NULL) {
#  674|->             search[i] = xmlXPathCastNodeToString(search_set->nodeTab[i]);
#  675|               if (search[i] == NULL) {
#  676|                   n = i;

Error: CPPCHECK_WARNING (CWE-758): [#def8]
libxslt-1.1.41-build/libxslt-1.1.41/libexslt/strings.c:675: warning[objectIndex]: The address of variable 'search_str' might be accessed at non-zero index.
#  673|           if (search_set != NULL) {
#  674|               search[i] = xmlXPathCastNodeToString(search_set->nodeTab[i]);
#  675|->             if (search[i] == NULL) {
#  676|                   n = i;
#  677|                   goto fail_process_args;

Error: CPPCHECK_WARNING: [#def9]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/attributes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def10]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/attributes.c:1021:2: warning[deadcode.DeadStores]: Value stored to 'attr' is never read
# 1019|   	* TODO: Do we need to put the empty string in ?
# 1020|   	*/
# 1021|-> 	attr = xmlSetNsProp(ctxt->insert, ns, name, (const xmlChar *) "");
# 1022|       } else if ((inst->children->next == NULL) &&
# 1023|   	    ((inst->children->type == XML_TEXT_NODE) ||

Error: CLANG_WARNING: [#def11]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/attributes.c:1088:6: warning[deadcode.DeadStores]: Value stored to 'attr' is never read
# 1086|   	value = xsltEvalTemplateString(ctxt, contextNode, inst);
# 1087|   	if (value != NULL) {
# 1088|-> 	    attr = xmlSetNsProp(ctxt->insert, ns, name, value);
# 1089|   	    xmlFree(value);
# 1090|   	} else {

Error: CLANG_WARNING: [#def12]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/attributes.c:1096:6: warning[deadcode.DeadStores]: Value stored to 'attr' is never read
# 1094|   	    *  error in xsltEvalTemplateString() ?
# 1095|   	    */
# 1096|-> 	    attr = xmlSetNsProp(ctxt->insert, ns, name,
# 1097|   		(const xmlChar *) "");
# 1098|   	}

Error: CLANG_WARNING: [#def13]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/attributes.c:1208:34: warning[core.NullDereference]: Access to field 'attributeSets' results in a dereference of a null pointer (loaded from variable 'style')
# 1206|               * imported stylesheets
# 1207|   	    */
# 1208|->             set = xmlHashLookup2(style->attributeSets, ncname, nsUri);
# 1209|               if (set != NULL) {
# 1210|                   xsltAttrElemPtr cur = set->attrs;

Error: CPPCHECK_WARNING: [#def14]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/attrvt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def15]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/attrvt.c:331:2: warning[deadcode.DeadStores]: Value stored to 'str' is never read
#  329|       if ((ret != NULL) || (cur - str > 0)) {
#  330|   	ret = xmlStrncat(ret, str, cur - str);
#  331|-> 	str = cur;
#  332|   	if (avt->nb_seg == 0)
#  333|   	    avt->strstart = 1;

Error: CPPCHECK_WARNING: [#def16]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/extensions.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def17]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/functions.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/imports.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/keys.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def20]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/keys.c:312:15: warning[deadcode.DeadStores]: Although the value stored to 'end' is used in the enclosing expression, the value is never actually read from 'end'
#  310|        * Split the | and register it as as many keys
#  311|        */
#  312|->     current = end = 0;
#  313|       while (match[current] != 0) {
#  314|   	start = current;

Error: CPPCHECK_WARNING: [#def21]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/namespaces.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/numbers.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def23]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/numbers.c:356:31: warning[deadcode.DeadStores]: Although the value stored to 'val' is used in the enclosing expression, the value is never actually read from 'val'
#  354|        * There is always such a token in the list, even if NULL
#  355|        */
#  356|->     while (!xsltIsLetterDigit(val = xsltGetUTF8CharZ(format+ix, &len))) {
#  357|   	if (format[ix] == 0)		/* if end of format string */
#  358|   	    break; /* while */

Error: CPPCHECK_WARNING: [#def24]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/pattern.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def25]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/pattern.c:2460:7: warning[deadcode.DeadStores]: Value stored to 'priority' is never read
# 2458|   				      ctxt->mode, ctxt->modeURI) == 1) {
# 2459|   		    ret = list->template;
# 2460|-> 		    priority = list->priority;
# 2461|   		    break;
# 2462|   		}

Error: CPPCHECK_WARNING: [#def26]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/preproc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def27]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/templates.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def28]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/transform.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def29]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/transform.c:854:2: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  852|   	    target->content = newbuf;
#  853|   	}
#  854|-> 	memcpy(&(target->content[ctxt->lasttuse]), string, len);
#  855|   	ctxt->lasttuse += len;
#  856|   	target->content[ctxt->lasttuse] = 0;

Error: CLANG_WARNING: [#def30]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/transform.c:2373:15: warning[deadcode.DeadStores]: Although the value stored to 'oldCurInst' is used in the enclosing expression, the value is never actually read from 'oldCurInst'
# 2371|       oldLocalFragmentTop = ctxt->localRVT;
# 2372|       oldInsert = insert = ctxt->insert;
# 2373|->     oldInst = oldCurInst = ctxt->inst;
# 2374|       oldContextNode = ctxt->node;
# 2375|       /*

Error: CLANG_WARNING: [#def31]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/transform.c:3974:3: warning[deadcode.DeadStores]: Value stored to 'copy' is never read
# 3972|   		copy = xmlNewDocPI(ctxt->insert->doc, node->name,
# 3973|   		                   node->content);
# 3974|-> 		copy = xsltAddChild(ctxt->insert, copy);
# 3975|   		break;
# 3976|   	    case XML_COMMENT_NODE:

Error: CLANG_WARNING: [#def32]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/transform.c:3982:3: warning[deadcode.DeadStores]: Value stored to 'copy' is never read
# 3980|   #endif
# 3981|   		copy = xmlNewComment(node->content);
# 3982|-> 		copy = xsltAddChild(ctxt->insert, copy);
# 3983|   		break;
# 3984|   	    case XML_NAMESPACE_DECL:

Error: CLANG_WARNING: [#def33]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/transform.c:4041:6: warning[deadcode.DeadStores]: Value stored to 'copy' is never read
# 4039|   		copy->name = xmlStringTextNoenc;
# 4040|   	    }
# 4041|-> 	    copy = xsltAddChild(ctxt->insert, copy);
# 4042|   	    text = text->next;
# 4043|   	}

Error: CLANG_WARNING: [#def34]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/transform.c:4293:5: warning[deadcode.DeadStores]: Value stored to 'commentNode' is never read
# 4291|   
# 4292|       commentNode = xmlNewComment(value);
# 4293|->     commentNode = xsltAddChild(ctxt->insert, commentNode);
# 4294|   
# 4295|       if (value != NULL)

Error: CLANG_WARNING: [#def35]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/transform.c:4356:5: warning[deadcode.DeadStores]: Value stored to 'pi' is never read
# 4354|   
# 4355|       pi = xmlNewDocPI(ctxt->insert->doc, name, value);
# 4356|->     pi = xsltAddChild(ctxt->insert, pi);
# 4357|   
# 4358|   error:

Error: CPPCHECK_WARNING: [#def36]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/variables.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def37]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/variables.c:2305:6: warning[deadcode.DeadStores]: Value stored to 'cur' is never read
# 2303|   		goto local_variable_found;
# 2304|   	    }
# 2305|-> 	    cur = cur->next;
# 2306|   	}
# 2307|   	/*

Error: CPPCHECK_WARNING: [#def38]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/xslt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def39]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/xsltlocale.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def40]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/xsltutils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def41]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/xsltutils.c:1281:5: warning[deadcode.DeadStores]: Value stored to 'comp' is never read
# 1279|       results = resultsTab[0];
# 1280|   
# 1281|->     comp = sorts[0]->psvi;
# 1282|       if (results == NULL)
# 1283|   	goto cleanup;

Error: CLANG_WARNING: [#def42]
libxslt-1.1.41-build/libxslt-1.1.41/libxslt/xsltutils.c:2200:23: warning[core.NullDereference]: Array access (from variable 'src') results in a null pointer dereference
# 2198|   
# 2199|     /* strip white spaces */
# 2200|->   for (j=0; i<1000 && src[j]; i++,j++) {
# 2201|         for(;src[j]==' ';j++);
# 2202|         dst[i]=src[j];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltXPathGetTransformContext'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1722:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt_wrap.h:1: included_from: Included from here.
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:4: included_from: Included from here.
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1720:33: note: in expansion of macro 'PyxmlXPathContext_Get'
# 1720|       ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
# 1721|   
# 1722|->     c_retval = ctxt->extra;
# 1723|       py_retval = libxslt_xsltTransformContextPtrWrap((xsltTransformContextPtr) c_retval);
# 1724|       return(py_retval);

Error: CLANG_WARNING: [#def44]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1722:16: warning[core.NullDereference]: Access to field 'extra' results in a dereference of a null pointer (loaded from variable 'ctxt')
# 1720|       ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt);
# 1721|   
# 1722|->     c_retval = ctxt->extra;
# 1723|       py_retval = libxslt_xsltTransformContextPtrWrap((xsltTransformContextPtr) c_retval);
# 1724|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltXPathParserGetContext'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1738:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1736:39: note: in expansion of macro 'PyxmlXPathParserContext_Get'
# 1736|       ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
# 1737|   
# 1738|->     c_retval = ctxt->context;
# 1739|       py_retval = libxml_xmlXPathContextPtrWrap((xmlXPathContextPtr) c_retval);
# 1740|       return(py_retval);

Error: CLANG_WARNING: [#def46]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1738:16: warning[core.NullDereference]: Access to field 'context' results in a dereference of a null pointer (loaded from variable 'ctxt')
# 1736|       ctxt = (xmlXPathParserContextPtr) PyxmlXPathParserContext_Get(pyobj_ctxt);
# 1737|   
# 1738|->     c_retval = ctxt->context;
# 1739|       py_retval = libxml_xmlXPathContextPtrWrap((xmlXPathContextPtr) c_retval);
# 1740|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltTransformGetStyle'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1754:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1752:38: note: in expansion of macro 'PytransformCtxt_Get'
# 1752|       ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt);
# 1753|   
# 1754|->     c_retval = ctxt->style;
# 1755|       py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval);
# 1756|       return(py_retval);

Error: CLANG_WARNING: [#def48]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1754:16: warning[core.NullDereference]: Access to field 'style' results in a dereference of a null pointer (loaded from variable 'ctxt')
# 1752|       ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt);
# 1753|   
# 1754|->     c_retval = ctxt->style;
# 1755|       py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval);
# 1756|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltTransformGetCurrent'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1770:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1768:38: note: in expansion of macro 'PytransformCtxt_Get'
# 1768|       ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt);
# 1769|   
# 1770|->     c_retval = ctxt->node;
# 1771|       py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
# 1772|       return(py_retval);

Error: CLANG_WARNING: [#def50]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1770:16: warning[core.NullDereference]: Access to field 'node' results in a dereference of a null pointer (loaded from variable 'ctxt')
# 1768|       ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt);
# 1769|   
# 1770|->     c_retval = ctxt->node;
# 1771|       py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
# 1772|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltTransformGetOutputDoc'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1786:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1784:38: note: in expansion of macro 'PytransformCtxt_Get'
# 1784|       ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt);
# 1785|   
# 1786|->     c_retval = ctxt->output;
# 1787|       py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
# 1788|       return(py_retval);

Error: CLANG_WARNING: [#def52]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1786:16: warning[core.NullDereference]: Access to field 'output' results in a dereference of a null pointer (loaded from variable 'ctxt')
# 1784|       ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt);
# 1785|   
# 1786|->     c_retval = ctxt->output;
# 1787|       py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
# 1788|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltTransformGetOutputURI'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1802:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1800:38: note: in expansion of macro 'PytransformCtxt_Get'
# 1800|       ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt);
# 1801|   
# 1802|->     c_retval = ctxt->outputFile;
# 1803|       py_retval = libxml_charPtrConstWrap((const char *) c_retval);
# 1804|       return(py_retval);

Error: CLANG_WARNING: [#def54]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1802:16: warning[core.NullDereference]: Access to field 'outputFile' results in a dereference of a null pointer (loaded from variable 'ctxt')
# 1800|       ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt);
# 1801|   
# 1802|->     c_retval = ctxt->outputFile;
# 1803|       py_retval = libxml_charPtrConstWrap((const char *) c_retval);
# 1804|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltTransformGetInsertNode'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1818:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1816:38: note: in expansion of macro 'PytransformCtxt_Get'
# 1816|       ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt);
# 1817|   
# 1818|->     c_retval = ctxt->insert;
# 1819|       py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
# 1820|       return(py_retval);

Error: CLANG_WARNING: [#def56]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1818:16: warning[core.NullDereference]: Access to field 'insert' results in a dereference of a null pointer (loaded from variable 'ctxt')
# 1816|       ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt);
# 1817|   
# 1818|->     c_retval = ctxt->insert;
# 1819|       py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
# 1820|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltTransformGetInstruction'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1834:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1832:38: note: in expansion of macro 'PytransformCtxt_Get'
# 1832|       ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt);
# 1833|   
# 1834|->     c_retval = ctxt->inst;
# 1835|       py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
# 1836|       return(py_retval);

Error: CLANG_WARNING: [#def58]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1834:16: warning[core.NullDereference]: Access to field 'inst' results in a dereference of a null pointer (loaded from variable 'ctxt')
# 1832|       ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt);
# 1833|   
# 1834|->     c_retval = ctxt->inst;
# 1835|       py_retval = libxml_xmlNodePtrWrap((xmlNodePtr) c_retval);
# 1836|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltTransformGetMode'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1850:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1848:38: note: in expansion of macro 'PytransformCtxt_Get'
# 1848|       ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt);
# 1849|   
# 1850|->     c_retval = ctxt->mode;
# 1851|       py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
# 1852|       return(py_retval);

Error: CLANG_WARNING: [#def60]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1850:16: warning[core.NullDereference]: Access to field 'mode' results in a dereference of a null pointer (loaded from variable 'ctxt')
# 1848|       ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt);
# 1849|   
# 1850|->     c_retval = ctxt->mode;
# 1851|       py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
# 1852|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltTransformGetModeURI'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1866:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1864:38: note: in expansion of macro 'PytransformCtxt_Get'
# 1864|       ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt);
# 1865|   
# 1866|->     c_retval = ctxt->modeURI;
# 1867|       py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
# 1868|       return(py_retval);

Error: CLANG_WARNING: [#def62]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1866:16: warning[core.NullDereference]: Access to field 'modeURI' results in a dereference of a null pointer (loaded from variable 'ctxt')
# 1864|       ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt);
# 1865|   
# 1866|->     c_retval = ctxt->modeURI;
# 1867|       py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
# 1868|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltTransformGetContext'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1882:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1880:38: note: in expansion of macro 'PytransformCtxt_Get'
# 1880|       ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt);
# 1881|   
# 1882|->     c_retval = ctxt->xpathCtxt;
# 1883|       py_retval = libxml_xmlXPathContextPtrWrap((xmlXPathContextPtr) c_retval);
# 1884|       return(py_retval);

Error: CLANG_WARNING: [#def64]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1882:16: warning[core.NullDereference]: Access to field 'xpathCtxt' results in a dereference of a null pointer (loaded from variable 'ctxt')
# 1880|       ctxt = (xsltTransformContextPtr) PytransformCtxt_Get(pyobj_ctxt);
# 1881|   
# 1882|->     c_retval = ctxt->xpathCtxt;
# 1883|       py_retval = libxml_xmlXPathContextPtrWrap((xmlXPathContextPtr) c_retval);
# 1884|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltStylesheetGetParent'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1898:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1896:33: note: in expansion of macro 'Pystylesheet_Get'
# 1896|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 1897|   
# 1898|->     c_retval = style->parent;
# 1899|       py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval);
# 1900|       return(py_retval);

Error: CLANG_WARNING: [#def66]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1898:16: warning[core.NullDereference]: Access to field 'parent' results in a dereference of a null pointer (loaded from variable 'style')
# 1896|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 1897|   
# 1898|->     c_retval = style->parent;
# 1899|       py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval);
# 1900|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltStylesheetGetNext'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1914:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1912:33: note: in expansion of macro 'Pystylesheet_Get'
# 1912|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 1913|   
# 1914|->     c_retval = style->next;
# 1915|       py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval);
# 1916|       return(py_retval);

Error: CLANG_WARNING: [#def68]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1914:16: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'style')
# 1912|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 1913|   
# 1914|->     c_retval = style->next;
# 1915|       py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval);
# 1916|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltStylesheetGetImports'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1930:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1928:33: note: in expansion of macro 'Pystylesheet_Get'
# 1928|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 1929|   
# 1930|->     c_retval = style->imports;
# 1931|       py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval);
# 1932|       return(py_retval);

Error: CLANG_WARNING: [#def70]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1930:16: warning[core.NullDereference]: Access to field 'imports' results in a dereference of a null pointer (loaded from variable 'style')
# 1928|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 1929|   
# 1930|->     c_retval = style->imports;
# 1931|       py_retval = libxslt_xsltStylesheetPtrWrap((xsltStylesheetPtr) c_retval);
# 1932|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltStylesheetGetDoc'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1946:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1944:33: note: in expansion of macro 'Pystylesheet_Get'
# 1944|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 1945|   
# 1946|->     c_retval = style->doc;
# 1947|       py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
# 1948|       return(py_retval);

Error: CLANG_WARNING: [#def72]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1946:16: warning[core.NullDereference]: Access to field 'doc' results in a dereference of a null pointer (loaded from variable 'style')
# 1944|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 1945|   
# 1946|->     c_retval = style->doc;
# 1947|       py_retval = libxml_xmlDocPtrWrap((xmlDocPtr) c_retval);
# 1948|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def73]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltStylesheetGetMethod'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1962:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1960:33: note: in expansion of macro 'Pystylesheet_Get'
# 1960|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 1961|   
# 1962|->     c_retval = style->method;
# 1963|       py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
# 1964|       return(py_retval);

Error: CLANG_WARNING: [#def74]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1962:16: warning[core.NullDereference]: Access to field 'method' results in a dereference of a null pointer (loaded from variable 'style')
# 1960|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 1961|   
# 1962|->     c_retval = style->method;
# 1963|       py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
# 1964|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltStylesheetGetMethodURI'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1978:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1976:33: note: in expansion of macro 'Pystylesheet_Get'
# 1976|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 1977|   
# 1978|->     c_retval = style->methodURI;
# 1979|       py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
# 1980|       return(py_retval);

Error: CLANG_WARNING: [#def76]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1978:16: warning[core.NullDereference]: Access to field 'methodURI' results in a dereference of a null pointer (loaded from variable 'style')
# 1976|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 1977|   
# 1978|->     c_retval = style->methodURI;
# 1979|       py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
# 1980|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltStylesheetGetVersion'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1994:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1992:33: note: in expansion of macro 'Pystylesheet_Get'
# 1992|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 1993|   
# 1994|->     c_retval = style->version;
# 1995|       py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
# 1996|       return(py_retval);

Error: CLANG_WARNING: [#def78]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:1994:16: warning[core.NullDereference]: Access to field 'version' results in a dereference of a null pointer (loaded from variable 'style')
# 1992|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 1993|   
# 1994|->     c_retval = style->version;
# 1995|       py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
# 1996|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def79]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltStylesheetGetEncoding'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:2010:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:2008:33: note: in expansion of macro 'Pystylesheet_Get'
# 2008|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 2009|   
# 2010|->     c_retval = style->encoding;
# 2011|       py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
# 2012|       return(py_retval);

Error: CLANG_WARNING: [#def80]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:2010:16: warning[core.NullDereference]: Access to field 'encoding' results in a dereference of a null pointer (loaded from variable 'style')
# 2008|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 2009|   
# 2010|->     c_retval = style->encoding;
# 2011|       py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
# 2012|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def81]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltStylesheetGetDoctypePublic'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:2026:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:2024:33: note: in expansion of macro 'Pystylesheet_Get'
# 2024|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 2025|   
# 2026|->     c_retval = style->doctypePublic;
# 2027|       py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
# 2028|       return(py_retval);

Error: CLANG_WARNING: [#def82]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:2026:16: warning[core.NullDereference]: Access to field 'doctypePublic' results in a dereference of a null pointer (loaded from variable 'style')
# 2024|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 2025|   
# 2026|->     c_retval = style->doctypePublic;
# 2027|       py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
# 2028|       return(py_retval);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def83]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c: scope_hint: In function 'libxslt_xsltStylesheetGetDoctypeSystem'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:2042:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:2040:33: note: in expansion of macro 'Pystylesheet_Get'
# 2040|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 2041|   
# 2042|->     c_retval = style->doctypeSystem;
# 2043|       py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
# 2044|       return(py_retval);

Error: CLANG_WARNING: [#def84]
libxslt-1.1.41-build/libxslt-1.1.41/python/libxslt-py.c:2042:16: warning[core.NullDereference]: Access to field 'doctypeSystem' results in a dereference of a null pointer (loaded from variable 'style')
# 2040|       style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
# 2041|   
# 2042|->     c_retval = style->doctypeSystem;
# 2043|       py_retval = libxml_xmlCharPtrConstWrap((const xmlChar *) c_retval);
# 2044|       return(py_retval);

Error: CPPCHECK_WARNING: [#def85]
libxslt-1.1.41-build/libxslt-1.1.41/xsltproc/xsltproc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-168.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibxslt-1.1.41-2.fc41
store-results-to/tmp/tmp2laqsegn/libxslt-1.1.41-2.fc41.tar.xz
time-created2024-07-03 16:11:23
time-finished2024-07-03 16:13:28
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp2laqsegn/libxslt-1.1.41-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp2laqsegn/libxslt-1.1.41-2.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9