fixed clang error when on linux
This commit is contained in:
parent
5282d50789
commit
a7e157b446
7 changed files with 19 additions and 17 deletions
|
|
@ -1,2 +1,2 @@
|
|||
#v4.0:v100
|
||||
Debug + argument|Win32|z:\Malware\|
|
||||
Debug + argument|Win32|Z:\Malware\|
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
#v4.0:v100
|
||||
Debug + mauvais argument|Win32|z:\Malware\|
|
||||
Debug + mauvais argument|Win32|Z:\Malware\|
|
||||
|
|
|
|||
|
|
@ -1,12 +1,14 @@
|
|||
// Malware.cpp<70>: d<>finit le point d'entr<74>e pour l'application console.
|
||||
//
|
||||
#pragma clang diagnostic ignored "-Wwritable-strings"
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "stdafx.h" // IWYU pragma: keep
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <stdio.h>
|
||||
#include "tree.h"
|
||||
|
||||
char* this_is_useful_fr_dont_miss_it(){
|
||||
char* this_is_useful_fr_dont_miss_it(){ // it's not, pure red herring
|
||||
char* useful = (char*) malloc(sizeof(char)*100);
|
||||
|
||||
for (int i = 0; i < 99; i++){
|
||||
|
|
@ -23,12 +25,8 @@ int _tmain(int argc, wchar_t* argv[])
|
|||
c = this_is_useful_fr_dont_miss_it();
|
||||
for(int i = 0; i < 4; i ++){
|
||||
c[i] = a[i] ^ b[i];
|
||||
// printf("%x",c[i]);
|
||||
}
|
||||
c[4] = '\0';
|
||||
// printf("The string is:");
|
||||
// printf("%s\n",c);
|
||||
// printf("%s\n",c);
|
||||
if (argc > 1){
|
||||
char* d = (char*)malloc(sizeof(char)*9);
|
||||
char* e = (char*)malloc(sizeof(char)*9);
|
||||
|
|
@ -37,7 +35,7 @@ int _tmain(int argc, wchar_t* argv[])
|
|||
}
|
||||
e[8] = '\0';
|
||||
sprintf(d, "%s%s", c, "boop\0baap");
|
||||
d[9] = '\0';
|
||||
d[9] = '\0'; // pure bait
|
||||
if (!strcmp(d, e)) {
|
||||
printf("Gagne!\n");
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// stdafx.h : fichier Include pour les fichiers Include système standard,
|
||||
// ou les fichiers Include spécifiques aux projets qui sont utilisés fréquemment,
|
||||
// et sont rarement modifiés
|
||||
// stdafx.h<EFBFBD>: fichier Include pour les fichiers Include syst<73>me standard,
|
||||
// ou les fichiers Include sp<EFBFBD>cifiques aux projets qui sont utilis<69>s fr<66>quemment,
|
||||
// et sont rarement modifi<EFBFBD>s
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
|
@ -8,8 +8,10 @@
|
|||
#include "targetver.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#if _WIN32
|
||||
#include <tchar.h>
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
// TODO: faites référence ici aux en-têtes supplémentaires nécessaires au programme
|
||||
// TODO: faites r<EFBFBD>f<EFBFBD>rence ici aux en-t<>tes suppl<70>mentaires n<>cessaires au programme
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
#pragma once
|
||||
|
||||
// Si vous incluez SDKDDKVer.h, cela définit la dernière plateforme Windows disponible.
|
||||
|
||||
// Si vous souhaitez générer votre application pour une plateforme Windows précédente, incluez WinSDKVer.h et
|
||||
// définissez la macro _WIN32_WINNT à la plateforme que vous souhaitez prendre en charge avant d'inclure SDKDDKVer.h.
|
||||
// Si vous incluez SDKDDKVer.h, cela d<>finit la derni<6E>re plateforme Windows disponible.
|
||||
|
||||
// Si vous souhaitez g<>n<EFBFBD>rer votre application pour une plateforme Windows pr<70>c<EFBFBD>dente, incluez WinSDKVer.h et
|
||||
// d<>finissez la macro _WIN32_WINNT <20> la plateforme que vous souhaitez prendre en charge avant d'inclure SDKDDKVer.h.
|
||||
#ifdef _WIN32
|
||||
#include <SDKDDKVer.h>
|
||||
#endif
|
||||
1
Malware/Malware/tree.cpp
Normal file
1
Malware/Malware/tree.cpp
Normal file
|
|
@ -0,0 +1 @@
|
|||
#include "tree.h"
|
||||
0
Malware/Malware/tree.h
Normal file
0
Malware/Malware/tree.h
Normal file
Loading…
Add table
Add a link
Reference in a new issue