Remove unused files

These files are not used by any project file,
nor mentioned by the documentation, hence they seem
to be useless.

Signed-off-by: Julien Hachenberger <julien.hachenberger@sit.fraunhofer.de>
This commit is contained in:
Julien Hachenberger 2019-09-02 13:09:06 +02:00
parent 38cfae4000
commit fa5d5f217d
No known key found for this signature in database
GPG Key ID: FFD8653ECDDD6B2C
3 changed files with 0 additions and 45 deletions

View File

@ -1,26 +0,0 @@
/* Test flawfinder. This program won't compile or run; that's not necessary
for this to be a useful test. */
main() {
char d[20];
char s[20];
int n;
_mbscpy(d,s); /* like strcpy, this doesn't check for buffer overflow */
memcpy(d,s);
CopyMemory(d,s);
lstrcat(d,s);
strncpy(d,s);
_tcsncpy(d,s);
strncat(d,s,10);
strncat(d,s,sizeof(d)); /* Misuse - this should be flagged as riskier. */
_tcsncat(d,s,sizeof(d)); /* Misuse - flag as riskier */
n = strlen(d);
/* This is wrong, and should be flagged as risky: */
MultiByteToWideChar(CP_ACP,0,szName,-1,wszUserName,sizeof(wszUserName));
/* This is much better: */
MultiByteToWideChar(CP_ACP,0,szName,-1,wszUserName,sizeof(wszUserName)/sizeof(wszUserName[0]));
}

10
junk.c
View File

@ -1,10 +0,0 @@
#include <stdio.h>
main() {
char abuf[1000];
FILE *FR = stdin;
fscanf(FR, "%2000s", abuf);
printf("Result = %s\n", abuf);
strcpy(new,old);
}

View File

@ -1,9 +0,0 @@
/* This is a test. Should produce 6 SLOC.
*/
#include <stdio.h>
#define HI 10
main() {
a = 1; /* hi */
"hi"
}