为什么我的防病毒调用这块$ C $的c进行病毒? [英] Why does my anti-virus call this piece of code a virus?

查看:84
本文介绍了为什么我的防病毒调用这块$ C $的c进行病毒?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的反病毒标识此源的编译名为.exe的病毒
创:变:Graftor。任何人都可以解释为什么?

 无效的主要()
{
 浮动X = 3.0 / 7.0;
 双Y = 3.0 / 7.0;
 INT A =(x == y)的;
}


解决方案

那么,非托管/本机程序可能会带来安全隐患,可能您的防病毒标记该如此。防病毒软件使用启发式 - 这样的算法是aproximate,他们往往在一个尽力而为的思想工作,并在反病毒软件的情况下,误报喜欢你的样品是preferable缺少实际的病毒。

另一种可能是你编译程序的方式,也有不少编译器优化和一些涉及到安全性 - 让你的程序会随机存储器等的某些部分可能杀毒着眼于C程序的编译方式和你已经没有任何安全标志是否打开?嗯......

My anti-virus identifies the compiled ".exe" of this source as a virus "Gen: Variant:Graftor" . Can anybody explain why?

void main()
{
 float x=3.0/7.0;
 double y=3.0/7.0;
 int a= (x==y);
}

解决方案

Well, unmanaged / native programs can pose security risks and probably your antivirus marked this as such. Antiviruses use heuristics - so the algorithms are aproximate, they tend to work on a "best effort" idea, and in case of antiviruses "false positives" like your sample is preferable to missing actual viruses.

Another possibility is the way you compiled your program, there are a lot of compiler optimization and some are related to security - so your program randomizes certain parts of the memory etc. Maybe the antivirus looks at how a C program is compiled and yours has no security flags turned on? Hmm...

这篇关于为什么我的防病毒调用这块$ C $的c进行病毒?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆