From c87e4c3e7881c8093e39d3fa678446adca954f19 Mon Sep 17 00:00:00 2001 From: lyn1001 Date: Thu, 26 May 2022 12:16:43 +0800 Subject: [PATCH] Fix the failure to execute the clambc command under the clamav package --- clamav.spec | 6 +++++- ...the-clambc-command-under-the-clamav-package.patch | 12 ++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 fix-the-failure-to-execute-the-clambc-command-under-the-clamav-package.patch diff --git a/clamav.spec b/clamav.spec index 02d6f8a..df1318b 100644 --- a/clamav.spec +++ b/clamav.spec @@ -1,7 +1,7 @@ Name: clamav Summary: End-user tools for the Clam Antivirus scanner Version: 0.103.6 -Release: 2 +Release: 3 License: GPLv2 and Public Domain and bzip2-1.0.6 and Zlib and Apache-2.0 URL: https://www.clamav.net/ @@ -29,6 +29,7 @@ Patch0006: clamav-freshclam.service.patch Patch0007: clamav-type-conversion.patch Patch0008: clamav-clamonacc-version-return.patch Patch0009: fix-clamonacc-w-error.patch +Patch0010: fix-the-failure-to-execute-the-clambc-command-under-the-clamav-package.patch BuildRequires: autoconf automake gettext-devel libtool libtool-ltdl-devel BuildRequires: gcc-c++ zlib-devel bzip2-devel gmp-devel curl-devel json-c-devel @@ -413,6 +414,9 @@ test -e %_var/log/clamav-milter.log || { %changelog +* Thu May 26 2022 liyanan - 0.103.6-3 +- Fix the failure to execute the clambc command under the clamav package + * Wed May 25 2022 houyingchao - 0.103.6-2 - Fix start clamav-clamonacc-service diff --git a/fix-the-failure-to-execute-the-clambc-command-under-the-clamav-package.patch b/fix-the-failure-to-execute-the-clambc-command-under-the-clamav-package.patch new file mode 100644 index 0000000..572855b --- /dev/null +++ b/fix-the-failure-to-execute-the-clambc-command-under-the-clamav-package.patch @@ -0,0 +1,12 @@ +diff -Nur clamav-0.103.6/clambc/bcrun.c clamav-0.103.6_bak/clambc/bcrun.c +--- clamav-0.103.6/clambc/bcrun.c 2022-05-02 12:46:41.000000000 +0800 ++++ clamav-0.103.6_bak/clambc/bcrun.c 2022-05-26 10:02:06.307956926 +0800 +@@ -406,7 +406,7 @@ + // ctx was memset, so recursion_level starts at 0. + cctx.recursion_stack[cctx.recursion_level].fmap = map; + cctx.recursion_stack[cctx.recursion_level].type = CL_TYPE_ANY; /* ANY for the top level, because we don't yet know the type. */ +- cctx.recursion_stack[cctx.recursion_level].size = map->len; ++ //cctx.recursion_stack[cctx.recursion_level].size = map->len; + + cctx.fmap = cctx.recursion_stack[cctx.recursion_level].fmap; + -- Gitee