python-lxml-5.3.2-1.fc43

List of Findings

Error: CPPCHECK_WARNING (CWE-476): [#def1]
lxml-5.3.2/src/lxml/sax.c:16004: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: 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)));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
lxml-5.3.2/src/lxml/sax.c:16004:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘base_vtables’
lxml-5.3.2/src/lxml/sax.c:16003:29: acquire_memory: this call could return NULL
lxml-5.3.2/src/lxml/sax.c:16004:5: danger: ‘base_vtables’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#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.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-195.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namepython-lxml-5.3.2-1.fc43
store-results-to/tmp/tmp8_kn5mvg/python-lxml-5.3.2-1.fc43.tar.xz
time-created2025-04-25 15:13:02
time-finished2025-04-25 15:17:44
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp8_kn5mvg/python-lxml-5.3.2-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp8_kn5mvg/python-lxml-5.3.2-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9