Bug#152128: vcg: xvcg dies with segfault when opening a vcg file
Justin Pryzby <firstname.lastname@example.org> 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
> I note that there's still a number of valgrind warnings :/
Mostly harmless as far as I can tell, but patches are always welcome. ;)