From: JonY <jo...@us...> - 2012-02-01 22:59:22
|
On 2/2/2012 03:09, Amir Eldor wrote: >> >> On Wed, Feb 1, 2012 at 11:20 AM, Amir Eldor wrote: >>> All the tips are very nice for my development machine, but what happens >>> when I distribute the file to end users? Be they running AVG or any other >>> antiviruses that marked my file as suspicious, they will get the trojan >>> alert, won't they? >> >> That's the reason you send the code and binary to the vendor. > > I don't have a 'vendor'. I'm just a kid playing around with SFML. > Your vendor is AVG. >> >>> I also noticed that the alert pops up in 'debug' mode and not in 'release' >>> mode as the IDEs I know like to call it. >>> >> >> Well, if the same code is giving issue with -g switch enabled versus not give >> an issue without -g then it is definitely your antivirus program that is at >> fault. You'll need to go to them for support. >> > > I tried both with -g and without and I got the same threat alert. I have no > idea what netbeans does but it doesn't really matter now. > > THE AVG DOES NOT COMPLAIN WHEN I do not return anything from my main(), or when > I return a non-zero. Returning zero or EXIT_SUCCESS triggers the trojan alert. > It seems to be something local with my computer because a friend of mine tried > the same and didn't get any alerts (though he has a differnet anti-virus). > > To summarize things up: > > * This seem to happen only on my machine. > * The anti-virus shows no alert when I do not use printf(), no matter the > return value. > * Once I use printf(), and return a zero value, there's an alert. > * If I don't use return on main, there's no alert, but there's a small catch > here. If I use -Wall I get a warning for an int function that returns no > value. > > I don't think anyone should reply unless he/she has an interesting soltion to > try or pin-point why does my machine acts weird, but for the sake of the > mailing-lists crawlers out there, someone who might have an issue like me may > find this useful. > "movl $0,%eax" can "call _printf" looks so dangerous since it appears commonly in virus code. /sarcasm I conclusion, uninstall AVG and use something else. It is obviously not doing its job by making too many false positive alerts. Use whatever your friend is using, the other AV doesn't seem retarded. Failing that, use the free one from MS. >> >>> Can anyone send me a hello world executable so I can check if it's only my >>> copy of mingw doing problems? Please change the ".exe" extension to >>> ".monkey" so my gmail won't complain (or do they do this security check not >>> only by extension?). >> >> I could but I won't. Someone else may be kind enough to. >> > > Yelling at me because of a n00b-to-mailing-lists top posting? Not being kind > enough? Oh well. Not everyone has the Ubuntu spirit. Really, you are not doing yourself a favor. |