Last-Update: 2020-06-04
If the YUV format isn't found, the code depends on .format being
0. However, it was not initialized at all, so this patch initializes
the format member. The other members need not be initialized.
Last-Update: 2020-06-04
Gbp-Pq: Name uninitialized-yuvformat.patch
KWaylandServer::LinuxDmaBufV1ClientBuffer *EglDmabuf::yuvImport(DmaBufAttributes &&attrs, quint32 flags)
{
- YuvFormat yuvFormat;
+ YuvFormat yuvFormat { 0 };
for (YuvFormat f : yuvFormats) {
if (f.format == attrs.format) {
yuvFormat = f;