bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Overflow Bug


From: Ernesto Messina
Subject: Overflow Bug
Date: Thu, 12 Jul 2012 14:09:14 -0300

Hello, I think I found an overflow bug. I got the follow C program:

#include <stdio.h>
#include <string.h>

int main(int argc, char *argv[])
{
    char a[10];
    int i;

    strcpy(a, argv[1]);

  return 0;
}

Compiling with: gcc program.c -o program
And running: program `perl -e 'print "a" x 24'`

The terminal loses the control, entering into a infinite buckle, and
saying: (a variable number here):    transferring control: ./programm


I'm on: $uname -a
Linux cosmo 2.6.32-5-amd64 #1 SMP Sun May 6 04:00:17 UTC 2012 x86_64
GNU/Linux


-------------
Greetings from Argentina.
Ernesto Messina.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]