From 45ec0c7e1bfd251e13f4d3ade89785e98df31ba9 Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Mon, 27 May 2013 00:07:01 +0200 Subject: start --- c_seguridad/code/stack/ejemplounopuntoce.c | 10 ++++++++++ c_seguridad/code/stack/stack.c | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 c_seguridad/code/stack/ejemplounopuntoce.c create mode 100644 c_seguridad/code/stack/stack.c (limited to 'c_seguridad/code/stack') 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 + +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 + +int global = 0x11111111; + +int main() { + int local = 0x22222222; + char buffer[] = "AAAABBBBCCCCDDD"; + return 0; +} -- cgit v1.2.3