Download PDF
#include <iostream>
using namespace std;
int main() {
int x[10];
x[10] = 5;
x[-4] = 3;
cout << "Hello World!" << endl;
return 0;
}
1 – Start Page
2 – Select Original Project Directory
3 – Select Modified Project Directory
4 – Select the files to test
5 – Click “Copy Project”
6 – Compile the Modified Project
7 – Run the exe file
8 – If a buffer overflow occurs, “Errors.txt” will be created and program will terminate
9 – Prompt results and “Errors.txt”
Error n. 1
Maximum index allowed for "x": 9
Index name : 10
Index value : 10
file: C:\Examples\Eclipse\Console_Examples\Ex01_Single_Buffer\Ex01_Single_Buffer\src\Ex01_Single_Buffer.cpp line : 24