python-lxml-5.3.0-1.fc42

List of Findings

Error: COMPILER_WARNING (CWE-477): [#def1]
python-lxml-5.3.0-build/lxml-5.3.0/src/lxml/etree.c: scope_hint: In function ‘__pyx_f_4lxml_5etree__setupPythonUnicode’
python-lxml-5.3.0-build/lxml-5.3.0/src/lxml/etree.c:126001:3: warning[-Wdeprecated-declarations]: ‘Py_UNICODE’ is deprecated
#125999|     xmlCharEncodingHandler *__pyx_v_enchandler;
#126000|     const char *__pyx_v_enc;
#126001|->   Py_UNICODE *__pyx_v_uchars;
#126002|     const xmlChar *__pyx_v_buffer;
#126003|     int __pyx_r;

Error: COMPILER_WARNING (CWE-477): [#def2]
python-lxml-5.3.0-build/lxml-5.3.0/src/lxml/etree.c:126004:3: warning[-Wdeprecated-declarations]: ‘Py_UNICODE’ is deprecated
#126002|     const xmlChar *__pyx_v_buffer;
#126003|     int __pyx_r;
#126004|->   Py_UNICODE __pyx_t_1[7];
#126005|     int __pyx_t_2;
#126006|     int __pyx_t_3;

Error: COMPILER_WARNING (CWE-477): [#def3]
python-lxml-5.3.0-build/lxml-5.3.0/src/lxml/etree.c:126175:5: warning[-Wdeprecated-declarations]: ‘Py_UNICODE’ is deprecated
#126173|    */
#126174|     /*else*/ {
#126175|->     __pyx_t_4 = __pyx_f_4lxml_5etree__findEncodingName(__pyx_v_buffer, ((sizeof(Py_UNICODE)) * 7)); if (unlikely(__pyx_t_4 == ((const char *)NULL) && PyErr_Occurred())) __PYX_ERR(2, 208, __pyx_L1_error)
#126176|       __pyx_v_enc = __pyx_t_4;
#126177|   

Error: COMPILER_WARNING (CWE-477): [#def4]
python-lxml-5.3.0-build/lxml-5.3.0/src/lxml/etree.c: scope_hint: In function ‘__pyx_f_4lxml_5etree_11_BaseParser__registerHtmlErrorHandler’
python-lxml-5.3.0-build/lxml-5.3.0/src/lxml/etree.c:135278:5: warning[-Wdeprecated-declarations]: ‘__htmlDefaultSAXHandler’ is deprecated
python-lxml-5.3.0-build/lxml-5.3.0/src/lxml/includes/etree_defs.h:12: included_from: Included from here.
python-lxml-5.3.0-build/lxml-5.3.0/src/lxml/etree.c:1332: included_from: Included from here.
/usr/include/libxml2/libxml/xmlversion.h:499:27: note: declared here
/usr/include/libxml2/libxml/HTMLparser.h:91:16: note: in expansion of macro ‘XML_DECLARE_GLOBAL’
/usr/include/libxml2/libxml/HTMLparser.h:86:5: note: in expansion of macro ‘XML_OP’
/usr/include/libxml2/libxml/HTMLparser.h:92:1: note: in expansion of macro ‘XML_GLOBALS_HTML’
#135276|    *                 if sax is NULL:
#135277|    */
#135278|->     __pyx_t_2 = (((xmlSAXHandlerV1 *)__pyx_v_sax) == (&htmlDefaultSAXHandler));
#135279|       if (__pyx_t_2) {
#135280|   

Error: COMPILER_WARNING (CWE-477): [#def5]
python-lxml-5.3.0-build/lxml-5.3.0/src/lxml/etree.c:135325:7: warning[-Wdeprecated-declarations]: ‘__htmlDefaultSAXHandler’ is deprecated
/usr/include/libxml2/libxml/xmlversion.h:499:27: note: declared here
/usr/include/libxml2/libxml/HTMLparser.h:91:16: note: in expansion of macro ‘XML_DECLARE_GLOBAL’
/usr/include/libxml2/libxml/HTMLparser.h:86:5: note: in expansion of macro ‘XML_OP’
/usr/include/libxml2/libxml/HTMLparser.h:92:1: note: in expansion of macro ‘XML_GLOBALS_HTML’
#135323|    *                 c_ctxt.sax = sax
#135324|    */
#135325|->       (void)(memcpy(__pyx_v_sax, (&htmlDefaultSAXHandler), (sizeof(htmlDefaultSAXHandler))));
#135326|   
#135327|         /* "src/lxml/parser.pxi":940

Error: COMPILER_WARNING (CWE-704): [#def6]
python-lxml-5.3.0-build/lxml-5.3.0/src/lxml/etree.c: scope_hint: In function ‘__pyx_f_4lxml_5etree__getInternalEntityOnly’
python-lxml-5.3.0-build/lxml-5.3.0/src/lxml/etree.c:138875:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#138873|    *             str1=<char*> name,
#138874|    */
#138875|->     __pyx_t_4.file = __pyx_v_parser_input->filename;
#138876|   
#138877|       /* "src/lxml/parser.pxi":1266

Error: COMPILER_WARNING (CWE-477): [#def7]
python-lxml-5.3.0-build/lxml-5.3.0/src/lxml/etree.c: scope_hint: In function ‘__pyx_pymod_exec_etree’
python-lxml-5.3.0-build/lxml-5.3.0/src/lxml/etree.c:286409:3: warning[-Wdeprecated-declarations]: ‘xmlThrDefLineNumbersDefaultValue’ is deprecated
/usr/include/libxml2/libxml/tree.h:17: included_from: Included from here.
python-lxml-5.3.0-build/lxml-5.3.0/src/lxml/includes/etree_defs.h:155: included_from: Included from here.
/usr/include/libxml2/libxml/parser.h:969:17: note: declared here
#286407|    * _initThreadLogging()
#286408|    */
#286409|->   (void)(xmlThrDefLineNumbersDefaultValue(1));
#286410|   
#286411|     /* "lxml/etree.pyx":149

Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
python-lxml-5.3.0-build/lxml-5.3.0/src/lxml/sax.c: scope_hint: In function ‘__Pyx_MergeVtables’
python-lxml-5.3.0-build/lxml-5.3.0/src/lxml/sax.c:16004:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘base_vtables’
#16002|       }
#16003|       base_vtables = (void**) malloc(sizeof(void*) * (size_t)(base_depth + 1));
#16004|->     base_vtables[0] = unknown;
#16005|       for (i = 1; i < PyTuple_GET_SIZE(bases); i++) {
#16006|           void* base_vtable = __Pyx_GetVtable(((PyTypeObject*)PyTuple_GET_ITEM(bases, i)));

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-98.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namepython-lxml-5.3.0-1.fc42
store-results-to/tmp/tmp95bb85d8/python-lxml-5.3.0-1.fc42.tar.xz
time-created2024-11-13 02:58:30
time-finished2024-11-13 03:04:20
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp95bb85d8/python-lxml-5.3.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp95bb85d8/python-lxml-5.3.0-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9