# python-cffi-2.0.0-4.fc45 - findings not occurring in python-cffi-2.0.0-4.fc45

## List of Findings

    Error: COMPILER_WARNING (CWE-477): [#def1]
    python-cffi-2.0.0-build/cffi-2.0.0/src/c/_cffi_backend.c: scope_hint: In function ‘_my_PyLong_AsUnsignedLongLong’
    python-cffi-2.0.0-build/cffi-2.0.0/src/c/_cffi_backend.c:955:13: warning[-Wdeprecated-declarations]: ‘_PyLong_Sign’ is deprecated
    #  955 |             if (_PyLong_Sign(ob) < 0)
    #      |             ^~
    /usr/include/python3.14/longobject.h:171: included_from: Included from here.
    /usr/include/python3.14/Python.h:92: included_from: Included from here.
    python-cffi-2.0.0-build/cffi-2.0.0/src/c/_cffi_backend.c:2: included_from: Included from here.
    /usr/include/python3.14/cpython/longobject.h:38:37: note: declared here
    #   38 | Py_DEPRECATED(3.14) PyAPI_FUNC(int) _PyLong_Sign(PyObject *v);
    #      |                                     ^~~~~~~~~~~~
    #  953|       if (PyLong_Check(ob)) {
    #  954|           if (strict) {
    #  955|->             if (_PyLong_Sign(ob) < 0)
    #  956|                   goto negative;
    #  957|               return PyLong_AsUnsignedLongLong(ob);

    Error: COMPILER_WARNING (CWE-477): [#def2]
    python-cffi-2.0.0-build/cffi-2.0.0/src/c/_cffi_backend.c: scope_hint: In function ‘_my_PyObject_AsBool’
    python-cffi-2.0.0-build/cffi-2.0.0/src/c/_cffi_backend.c:4083:9: warning[-Wdeprecated-declarations]: ‘_PyLong_Sign’ is deprecated
    # 4083 |         return _PyLong_Sign(ob) != 0;
    #      |         ^~~~~~
    /usr/include/python3.14/cpython/longobject.h:38:37: note: declared here
    #   38 | Py_DEPRECATED(3.14) PyAPI_FUNC(int) _PyLong_Sign(PyObject *v);
    #      |                                     ^~~~~~~~~~~~
    # 4081|   #endif
    # 4082|       if (PyLong_Check(ob)) {
    # 4083|->         return _PyLong_Sign(ob) != 0;
    # 4084|       }
    # 4085|       else if (PyFloat_Check(ob)) {

    Error: COMPILER_WARNING (CWE-477): [#def3]
    python-cffi-2.0.0-build/cffi-2.0.0/src/c/_cffi_backend.c: scope_hint: In function ‘b_do_dlopen’
    python-cffi-2.0.0-build/cffi-2.0.0/src/c/_cffi_backend.c:4658:22: warning[-Wdeprecated-declarations]: ‘Py_FileSystemDefaultEncoding’ is deprecated
    # 4658 |                      Py_FileSystemDefaultEncoding, &filename_or_null, &flags))
    #      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/include/python3.14/Python.h:110: included_from: Included from here.
    /usr/include/python3.14/fileobject.h:22:46: note: declared here
    #   22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
    #      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # 4656|   #endif
    # 4657|           if (!PyArg_ParseTuple(args, "et|i:load_library",
    # 4658|->                      Py_FileSystemDefaultEncoding, &filename_or_null, &flags))
    # 4659|               return NULL;
    # 4660|   #if PY_MAJOR_VERSION < 3

    Error: COMPILER_WARNING (CWE-563): [#def4]
    python-cffi-2.0.0-build/cffi-2.0.0/src/c/cffi1_module.c:3: included_from: Included from here.
    python-cffi-2.0.0-build/cffi-2.0.0/src/c/_cffi_backend.c:8173: included_from: Included from here.
    python-cffi-2.0.0-build/cffi-2.0.0/src/c/realize_c_type.c: scope_hint: In function ‘init_global_types_dict’
    python-cffi-2.0.0-build/cffi-2.0.0/src/c/realize_c_type.c:32:16: warning[-Wunused-variable]: unused variable ‘i’
    #   32 |     Py_ssize_t i;
    #      |                ^
    #   30|   {
    #   31|       int err;
    #   32|->     Py_ssize_t i;
    #   33|       PyObject *ct_void, *ct_char, *ct2, *pnull;
    #   34|       /* XXX some leaks in case these functions fail, but well,

## Scan Properties

analyzer-version-clippy | 1.95.0
analyzer-version-cppcheck | 2.20.0
analyzer-version-gcc | 16.1.1
analyzer-version-gcc-analyzer | 16.1.1
analyzer-version-shellcheck | 0.11.0
analyzer-version-unicontrol | 0.0.2
diffbase-analyzer-version-clippy | 1.95.0
diffbase-analyzer-version-cppcheck | 2.20.0
diffbase-analyzer-version-gcc | 16.1.1
diffbase-analyzer-version-gcc-analyzer | 16.1.1
diffbase-analyzer-version-shellcheck | 0.11.0
diffbase-analyzer-version-unicontrol | 0.0.2
diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code | 0
diffbase-host | ip-172-16-1-198.us-west-2.compute.internal
diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-config | fedora-rawhide-x86_64
diffbase-project-name | python-cffi-2.0.0-4.fc45
diffbase-store-results-to | /tmp/tmp_ma2dze6/python-cffi-2.0.0-4.fc45.tar.xz
diffbase-time-created | 2026-06-01 16:00:53
diffbase-time-finished | 2026-06-01 16:02:40
diffbase-tool | csmock
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmp_ma2dze6/python-cffi-2.0.0-4.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp_ma2dze6/python-cffi-2.0.0-4.fc45.src.rpm'
diffbase-tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol
exit-code | 0
host | ip-172-16-1-198.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.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-config | fedora-rawhide-x86_64
project-name | python-cffi-2.0.0-4.fc45
store-results-to | /tmp/tmp_ma2dze6/python-cffi-2.0.0-4.fc45.tar.xz
time-created | 2026-06-01 16:00:53
time-finished | 2026-06-01 16:02:40
tool | csmock
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmp_ma2dze6/python-cffi-2.0.0-4.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp_ma2dze6/python-cffi-2.0.0-4.fc45.src.rpm'
tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9