Author Topic: Avast reports malware every time I run my Hello World program  (Read 7016 times)

Offline nickAD30

  • Single posting newcomer
  • *
  • Posts: 2
Avast reports malware every time I run my Hello World program
« on: December 25, 2013, 08:02:55 pm »
I just got Code::Blocks and I am not sure if the file is infected with a malware-gen or not. When I run a simple hello world program it works fine, but if I call getChar() in my code, Avast stops the program from running and tells me that there is a malware infection called win-32:malware-gen. I downloaded Code::Blocks from the Code::Blocks site and uninstalled and downloaded different versions a few times, and ran as administrator. If anyone knows whether or not this is a false positive, any help would be appreciated.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Avast reports malware every time I run my Hello World program
« Reply #1 on: December 26, 2013, 01:16:26 am »
I think it is a false positive, you can search our forum, there are similar kind of reports.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Avast reports malware every time I run my Hello World program
« Reply #2 on: January 03, 2014, 08:47:09 am »
It is false-positive, definitely. You are not the first having issues of different kinds with Avast. It seems like a very poor AV solution cause more trouble than it helps. :-[
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ