wazuh / wazuh-agent

Wazuh agent, the Wazuh agent for endpoints.
GNU Affero General Public License v3.0
32 stars 18 forks source link

Port commit from wazuh/wazuh - Fix some Coverity defects in syscheck and syscollector #329

Closed jotacarma90 closed 1 day ago

jotacarma90 commented 1 day ago
Related issue
https://github.com/wazuh/wazuh/issues/24071#top

Port

After introducing some changes in the wazuh/wazuh repo for version 4.10.1, we want to bring those changes to the new wazuh-agent repository for version 5.0. This two files are not in the wazuh-agent repo. It belongs to new inventory reworked from syscollector.

        deleted by us:   src/config/wmodules-syscollector.c
        deleted by us:   src/wazuh_modules/syscollector/src/syscollectorImp.cpp

Description

In this PR we are introducing multiple fixes related to Coverity reporting.

Testing Coverity again

Finally, this snapshot shows every defects fixed: https://scan9.scan.coverity.com/#/project-view/55587/12779