From cc0c95353b8492b3825ed6116add937729b26a03 Mon Sep 17 00:00:00 2001
From: praveen <cb.en.u4cse16629@cb.students.amrita.edu>
Date: Sat, 26 Aug 2017 11:20:44 +0530
Subject: [PATCH] c Source file

---
 BufferOverflowCPU.c | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 BufferOverflowCPU.c

diff --git a/BufferOverflowCPU.c b/BufferOverflowCPU.c
new file mode 100644
index 0000000..4962276
--- /dev/null
+++ b/BufferOverflowCPU.c
@@ -0,0 +1,20 @@
+#include <stdio.h>
+#include <stdlib.h>  /* For exit() function */
+int main()
+{
+   char sentence='a';
+   FILE *fptr;
+
+   fptr = fopen("program.txt", "w");
+   if(fptr == NULL)
+   {
+      printf("Error!");
+      exit(1);
+   }
+   
+  while(1){
+   fprintf(fptr,"%c", sentence);}
+  
+
+   return 0;
+}
\ No newline at end of file
-- 
GitLab