Initial source commit

This commit is contained in:
Tony Bark 2025-10-03 02:19:59 -04:00
commit f1384c11ee
335 changed files with 52715 additions and 0 deletions

View file

@ -0,0 +1,57 @@
#include <stdio.h>
#include <stdlib.h>
#include "fortify.h"
int main() {
//Fortify_EnterScope();
int *a = new int[ 10 ];
int i;
for( i=0; i<10; i++ ) {
a[i] = i;
}
for( i=0; i<10; i++ ) {
printf( "a[i] = %d\n", a[i] );
}
delete [] a;
for( i=0; i<10; i++ ) {
printf( "a[i] = %d\n", a[i] );
}
//Fortify_CheckAllMemory();
for( i=0; i<10; i++ ) {
a[i] = i;
}
for( i=0; i<10; i++ ) {
printf( "a[i] = %d\n", a[i] );
}
//Fortify_CheckAllMemory();
int *b = new int[5];
delete [] b;
delete [] a;
//Fortify_LeaveScope();
return 0;
}