Erzeugt mein C++ Compiler Dateien mit Schadcode?



  • Ich habe jetzt mal den Code auf folgendes reduziert:

    #include "Main.h"
    #include <iostream>
    #include <cstdlib>
    
    int i;
    
    using namespace std;
    
    int main(){
    	  int i = 4;
    	  cout << "i = "  << i << endl;
    	  return 0;
    }
    

    Und auch den Code außerhalb von Eclipse direkt mit g++ compiliert und das Ergebnis war das gleiche, also Virustotal.com meldete ebenfalls wieder Schadcode, völlig egal welcher Code compiliert wurde.

    Es war auch egal ob ich zuerst den Objektcode erzeugte oder das Compilat direkt erstellte.

    g++ -c -o Main.o ..\Main.cpp
    g++ -o main.exe Main.o
    
    g++ -o main.exe ..\Main.c++
    

    Lediglich der Scan des Objektcodes direkt erhab keine Schadcodemeldungen.

    GCC Version ist:

    g++ --version
    g++ (GCC) 4.7.2
    Copyright (C) 2012 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    

    md5sum des Compilers ist:

    688fba82ed3f1c542b57f15e5204b255  g++.exe
    

Anmelden zum Antworten