代码拉取完成,页面将自动刷新
【环境信息】
系统:arrch64,x86_64虚拟机
内存:4g
cpu:4核
OS版本:20.03-LTS-SP1
yum源:http://121.36.84.172/repo.openeuler.org/openEuler-20.03-LTS-SP1/update_20210421/
【问题复现步骤】
1.安装clamav包,yum install clamav
2.执行命令:clambc --version
3.执行命令:clambc h.txt -T 3, clambc h.txt -i, clambc h.txt -t
【预期结果】
命令执行成功
【实际结果】
执行报错,
LibClamAV Error: Missing file magic in bytecodeLibClamAV Error: Error at bytecode line 0
Unable to load bytecode: Malformed database
【附件信息】
问题分析:
LLVM is not compiled or not linked
,因为构建过程中没有采用LLVM,所以属于正常情况,代码层面也没问题:272 if (optget(opts, "version")->enabled) {
273 printf("Clam AntiVirus Bytecode Testing Tool %s\n", get_version());
274 cl_init(CL_INIT_DEFAULT);
275 cli_bytecode_printversion();
276 optfree(opts);
277 exit(0);
278 }
libclamav/bytecode_nojit.c-87-void cli_bytecode_printversion(void)
libclamav/bytecode_nojit.c-88-{
libclamav/bytecode_nojit.c:89: printf("LLVM is not compiled or not linked\n");
libclamav/bytecode_nojit.c-90-}
LibClamAV Error: Missing file magic in bytecodeLibClamAV Error: Error at bytecode line 0
Unable to load bytecode: Malformed database
如何验证?
clamav软件包下有文件bytecode-330.cvd
,通过sigtool -u bytecode-330.cvd
可以解压出一些*.cbc文件,执行clambc -i xx.cbc
可以查看文件信息,例如:
[root@3ddb7080ed91 tmp]# clambc -i 3986187.cbc
Bytecode format functionality level: 7
Bytecode metadata:
compiler version: clambc-0.98.1rc2
compiled on: (1452691691) Wed Jan 13 21:28:11 2016
compiled by: amishhammer
target exclude: 0
bytecode type: logical only
bytecode functionality level: 52 - 0
bytecode logical signature: BC.Legacy.Exploit.CVE_2010_1885-2;Engine:52-255,Target:3;0;6863703a2f2f{25-700}736372697074{1-3}6465666572
virusname prefix: (null)
virusnames: 0
bytecode triggered on: files matching logical signature
number of functions: 1
number of types: 41
number of global constants: 27
number of debug nodes: 0
bytecode APIs used:
read, seek, setvirusname, debug_print_str, debug_print_uint, file_find,
bytecode_rt_error, debug_print_str_start, debug_print_str_nonl,
file_find_limit, engine_functionality_level
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
采用以上方法,验证通过
登录 后才可以发表评论