All pastes #718148 Raw Edit

Mine

public c v1 · immutable
#718148 ·published 2007-09-28 03:56 UTC
rendered paste body
level1@student05:~$ gdb testGNU gdb 6.6-debianCopyright (C) 2006 Free Software Foundation, Inc.GDB is free software, covered by the GNU General Public License, and you arewelcome to change it and/or distribute copies of it under certain conditions.Type "show copying" to see the conditions.There is absolutely no warranty for GDB.  Type "show warranty" for details.This GDB was configured as "x86_64-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".(gdb) list 21       #include <string.h>2       #include <stdlib.h>3       #include <stdio.h>45       int function(char *c)6       {7               char buf[5];8               char buf2[5];910              strcpy(buf, c);(gdb) break 10Breakpoint 1 at 0x80483ea: file test.c, line 10.(gdb) r 8Starting program: /home/level1/test 8warning: Lowest section in system-supplied DSO at 0xffffe000 is .hash at ffffe0b4Breakpoint 1, function (c=0xffffd355 "8") at test.c:1010              strcpy(buf, c);(gdb) print (void*)$ebp - (void*)&buf2$1 = 10