[PATCH] Fix write to uninitialized bytes for XCB event

Enrico Forestieri forenr at lyx.org
Wed Feb 19 07:24:43 UTC 2020


On Tue, Feb 18, 2020 at 09:49:08PM -0500, Scott Kostyshak wrote:
> 
> Attached is a patch. I really don't know what I'm doing. The use of
> calloc scares me. I just used the xcb_send_event man page and
> experimented until compilation and valgrind did not complain.
> 
> Could anyone take a close look at this? If there is a better fix, please
> go ahead.

Does simply replacing
	xcb_selection_notify_event_t nev;
with
	xcb_selection_notify_event_t nev = {0};
help?

-- 
Enrico


More information about the lyx-devel mailing list