[32564] in bugtraq

home help back first fref pref prev next nref lref last post

Re: simple buffer overflow in gedit

daemon@ATHENA.MIT.EDU (Matthias Buelow)
Mon Nov 24 16:19:48 2003

Message-ID: <3FC241C9.6060409@mukappabeta.de>
Date: Mon, 24 Nov 2003 18:37:13 +0100
From: Matthias Buelow <mkb@mukappabeta.de>
MIME-Version: 1.0
To: "Andreas \"Constantinides (MegaHz)\"" <megahz@megahz.org>
Cc: bugtraq@securityfocus.com
In-Reply-To: <1069598205.8830.20.camel@megahz>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Andreas Constantinides (MegaHz) wrote:

> Hello,
> I discover a strange but simple buffer overflow in gedit.
> I am using RH9, 
> to demostrate the buffer here is a simple file buffer generator:

[writes 9999999 A's to stdout]

> # g++ -o buffer buffer.c
> # ./buffer > lala
> # gedit lala
> Segmentation fault
> #

your process most likely gets killed because of a resource limit.  check 
ulimit.  gedit grows to over 300mb rss with that file as input and seems 
to stay occupied with running whatever suboptimal algorithms it has for 
that special case.  clearly it's not the proper tool to operate on such 
files.  it doesn't crash, however, at least not the current version 2.4.0.

-- 
no signature is a good signature


home help back first fref pref prev next nref lref last post