clamav/fix-the-failure-to-execute-the-clambc-command-under-the-clamav-package.patch
lyn1001 81929fdd92 Fix clamonacc -w error
(cherry picked from commit 3da72a2339ed09448e7c5f54ead4cc68ab7857ec)
2022-05-26 14:47:49 +08:00

13 lines
713 B
Diff

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;