summaryrefslogtreecommitdiff
path: root/c_seguridad/code/stack
diff options
context:
space:
mode:
Diffstat (limited to 'c_seguridad/code/stack')
-rw-r--r--c_seguridad/code/stack/ejemplounopuntoce.c10
-rw-r--r--c_seguridad/code/stack/stack.c9
2 files changed, 19 insertions, 0 deletions
diff --git a/c_seguridad/code/stack/ejemplounopuntoce.c b/c_seguridad/code/stack/ejemplounopuntoce.c
new file mode 100644
index 0000000..4d2425e
--- /dev/null
+++ b/c_seguridad/code/stack/ejemplounopuntoce.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+char global;
+float pi = 3.14;
+
+int main() {
+ int local;
+ char* buffer = (char*)malloc(20);
+ return 0;
+}
diff --git a/c_seguridad/code/stack/stack.c b/c_seguridad/code/stack/stack.c
new file mode 100644
index 0000000..2987356
--- /dev/null
+++ b/c_seguridad/code/stack/stack.c
@@ -0,0 +1,9 @@
+#include <stdlib.h>
+
+int global = 0x11111111;
+
+int main() {
+ int local = 0x22222222;
+ char buffer[] = "AAAABBBBCCCCDDD";
+ return 0;
+}