mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 02:13:16 +00:00
Windows: fix number of arguments in function call (#1586)
Some checks failed
clang-format / check-16 (push) Has been cancelled
CMake Build / build-windows (push) Has been cancelled
CMake Build / build-macos (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
CMake Build / build-ubuntu (push) Has been cancelled
clang-format / check (push) Has been cancelled
clang-format / check-1 (push) Has been cancelled
clang-format / check-2 (push) Has been cancelled
clang-format / check-3 (push) Has been cancelled
clang-format / check-4 (push) Has been cancelled
clang-format / check-5 (push) Has been cancelled
clang-format / check-6 (push) Has been cancelled
clang-format / check-7 (push) Has been cancelled
clang-format / check-8 (push) Has been cancelled
clang-format / check-9 (push) Has been cancelled
clang-format / check-10 (push) Has been cancelled
clang-format / check-11 (push) Has been cancelled
clang-format / check-12 (push) Has been cancelled
clang-format / check-13 (push) Has been cancelled
clang-format / check-14 (push) Has been cancelled
clang-format / check-15 (push) Has been cancelled
CodeQL / Analyze-1 (push) Has been cancelled
Some checks failed
clang-format / check-16 (push) Has been cancelled
CMake Build / build-windows (push) Has been cancelled
CMake Build / build-macos (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
CMake Build / build-ubuntu (push) Has been cancelled
clang-format / check (push) Has been cancelled
clang-format / check-1 (push) Has been cancelled
clang-format / check-2 (push) Has been cancelled
clang-format / check-3 (push) Has been cancelled
clang-format / check-4 (push) Has been cancelled
clang-format / check-5 (push) Has been cancelled
clang-format / check-6 (push) Has been cancelled
clang-format / check-7 (push) Has been cancelled
clang-format / check-8 (push) Has been cancelled
clang-format / check-9 (push) Has been cancelled
clang-format / check-10 (push) Has been cancelled
clang-format / check-11 (push) Has been cancelled
clang-format / check-12 (push) Has been cancelled
clang-format / check-13 (push) Has been cancelled
clang-format / check-14 (push) Has been cancelled
clang-format / check-15 (push) Has been cancelled
CodeQL / Analyze-1 (push) Has been cancelled
Fix the number of NULL arguments in `scanmem.c` call to `cl_scandesc_ex()`.
This commit is contained in:
parent
518af0a568
commit
23c3cc05f1
3 changed files with 23 additions and 25 deletions
|
@ -572,13 +572,12 @@ int scanfile(const char *filename, scanmem_data *scan_data, struct mem_info *inf
|
|||
&info->bytes_scanned,
|
||||
info->engine,
|
||||
info->options,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL);
|
||||
NULL, // void *context,
|
||||
NULL, // const char *hash_hint,
|
||||
NULL, // char **hash_out,
|
||||
NULL, // const char *hash_alg,
|
||||
NULL, // const char *file_type_hint,
|
||||
NULL); // char **file_type_out);
|
||||
|
||||
switch (verdict) {
|
||||
case CL_VERDICT_NOTHING_FOUND: {
|
||||
|
|
|
@ -1445,13 +1445,12 @@ int main(int argc, char **argv)
|
|||
&size,
|
||||
engine,
|
||||
&options,
|
||||
script_context, // context,
|
||||
hash_hint, // hash_hint,
|
||||
&hash_out, // hash_out,
|
||||
hash_alg, // hash_alg,
|
||||
file_type_hint, // file_type_hint,
|
||||
&file_type_out // file_type_out
|
||||
);
|
||||
script_context,
|
||||
hash_hint,
|
||||
&hash_out,
|
||||
hash_alg,
|
||||
file_type_hint,
|
||||
&file_type_out);
|
||||
|
||||
/* Calculate size of scanned data */
|
||||
printf("\n");
|
||||
|
|
|
@ -6255,12 +6255,12 @@ cl_error_t cl_scandesc(
|
|||
&scanned_out,
|
||||
engine,
|
||||
scanoptions,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL);
|
||||
NULL, // void *context,
|
||||
NULL, // const char *hash_hint,
|
||||
NULL, // char **hash_out,
|
||||
NULL, // const char *hash_alg,
|
||||
NULL, // const char *file_type_hint,
|
||||
NULL); // char **file_type_out);
|
||||
|
||||
if (NULL != scanned) {
|
||||
if ((SIZEOF_LONG == 4) &&
|
||||
|
@ -6303,11 +6303,11 @@ cl_error_t cl_scandesc_callback(
|
|||
engine,
|
||||
scanoptions,
|
||||
context,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL);
|
||||
NULL, // const char *hash_hint,
|
||||
NULL, // char **hash_out,
|
||||
NULL, // const char *hash_alg,
|
||||
NULL, // const char *file_type_hint,
|
||||
NULL); // char **file_type_out);
|
||||
|
||||
if (NULL != scanned) {
|
||||
if ((SIZEOF_LONG == 4) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue