NVIDIA / egl-wayland

The EGLStream-based Wayland external platform
MIT License
275 stars 44 forks source link

Fix sending garbage data in the wl_eglstream_display::caps event #19

Closed kbrenneman closed 5 years ago

kbrenneman commented 5 years ago

The wl_eglstream_display::caps event currently ends up containing random garbage data, because the wl_eglstream_display_bind never initializes the supported_caps field value before it starts setting bits on it.

This changes it to use calloc to just zero the whole wl_eglstream_display struct before it starts filling anything in.