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

Bug#152128: vcg: xvcg dies with segfault when opening a vcg file

Justin Pryzby <justinpryzby@users.sourceforge.net> writes:

> On Tue, Mar 07, 2006 at 11:47:25PM +0100, Matej Vela wrote:
>> I think I've tracked this down to a memory overrun in src/X11dev.c.
>> Does the attached patch work for you?
> That's awesome :)  How did you find it?

I set a bunch of breakpoints to see where the stack got corrupted, i.e.
where backtrace started printing question marks.  It turned out the code
was using an XAnyEvent (size 20) in place of an XEvent (size 96); thus
the overrun.

> I note that there's still a number of valgrind warnings :/

Mostly harmless as far as I can tell, but patches are always welcome. ;)



Reply to: