[PATCH] Fix write to uninitialized bytes for XCB event

Enrico Forestieri forenr at lyx.org
Mon Feb 24 17:39:25 UTC 2020


On Mon, Feb 24, 2020 at 11:05:51AM -0500, Scott Kostyshak wrote:
> 
> Apparently another approach would be to add the following:
> 
>   memset(&padded_event, 0, sizeof(padded_event));
> 
> Valgrind does not complain when this line is added to the union patch.

I am baffled. The last suggestion I have is trying

	alignas(32) xcb_selection_notify_event_t nev = {0};

-- 
Enrico


More information about the lyx-devel mailing list