The problem seems to be related with the structure fim_file_data. The attribute size in this structure is declared as an unsigned int and the maximum size that this variable can represent is 2GB so, the problem is probably related to this variable in the mentioned data structure.
(17/05/2024) Added IT test cases for large files.
(21/05/2024) Researching some failing tests.
(22/05/2024) Solved corrupted test cases, now working fine.
Description
Querying the Wazuh API under version
4.4.1
about the size of files larger than2147483647
bytes returns an incorrect value.The problem seems to be related with the structure
fim_file_data
. The attribute size in this structure is declared as an unsigned int and the maximum size that this variable can represent is 2GB so, the problem is probably related to this variable in the mentioned data structure.