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)));
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-195.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | python-lxml-5.3.2-1.fc43 |
store-results-to | /tmp/tmp8_kn5mvg/python-lxml-5.3.2-1.fc43.tar.xz |
time-created | 2025-04-25 15:13:02 |
time-finished | 2025-04-25 15:17:44 |
tool | csmock |
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-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |