问题
Recently my C programs started to act weirdly and I had no idea why... Then I realized that they were being flagged by my antivirus program as malware... First I thought there's a malware in my compiler (I'm using CodeBlocks IDE with MinGW-GCC as c compiler), Antivirus scan returned nothing.
So I started experimenting on it...
I wrote a simple hello world using c
#include <stdio.h>
int main() {
printf("Hello");
return 0;
}
Soon as I compiled it windows defender flagged it as Trojan:Win32/Fuerboos.C!cl : Threat level Severe
So I uploaded the exe to VirusTotal VirusTotal results
30 engines flagged the file as malware...
Also gmail doesn't allow you to attach it as an executable file...
Is anyone experiencing this? Could someone explain this to me?
回答1:
It could be you are really having a malware or it is a security risk as mentioned here: https://en.wikipedia.org/wiki/Uncontrolled_format_string . Try using puts
to see if you still have the issue
来源:https://stackoverflow.com/questions/62622758/c-programs-getting-detected-as-malware