New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Sat Jul 1 01:55:18 UTC 2023


Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.

1 new defect(s) introduced to LibreOffice found with Coverity Scan.
123 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 1533667:  Uninitialized variables  (UNINIT)
/libreofficekit/qa/tilebench/tilebench.cxx: 139 in dumpTile(const char *, int, int, int, const unsigned char *, int, int, int)()


________________________________________________________________________________________________________
*** CID 1533667:  Uninitialized variables  (UNINIT)
/libreofficekit/qa/tilebench/tilebench.cxx: 139 in dumpTile(const char *, int, int, int, const unsigned char *, int, int, int)()
133                             buf[1] = (*(pixel + 1) * 255 + alpha / 2) / alpha;
134                             buf[2] = (*(pixel + 0) * 255 + alpha / 2) / alpha;
135                             break;
136                     }
137                 }
138     
>>>     CID 1533667:  Uninitialized variables  (UNINIT)
>>>     Using uninitialized element of array "buf" when calling "write".
139                 ofs.write(buf, 3);
140                 if (dumpText)
141                 {
142                     int lowResI = (pixel[0] + pixel[1] + pixel[2])/(3*16);
143                     fprintf(stderr,"%1x", lowResI);
144                 }


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DroAo_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiuE7cWEprdc6UO-2FaGuA9EG5P8hhtgm9OAY32iD-2BeLXRxsXrhPeymWUQ6-2FXoRBVwh1ZmCmkyM9X19uDEGjBpZeI2sCuPSQApgShZIQKDXTz4z39AnE6rcVHjDxSxxOMV5sTB14dr3xRBJqI48uC2dHQ5MnipBXccO-2FOYWxAX03erY-3D



More information about the LibreOffice mailing list