New Defects reported by Coverity Scan for digiKam

scan-admin at coverity.com scan-admin at coverity.com
Thu Feb 25 07:26:50 GMT 2021


Hi,

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

2 new defect(s) introduced to digiKam found with Coverity Scan.
15 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 2 of 2 defect(s)


** CID 1468073:  Error handling issues  (CHECKED_RETURN)
/home/gilles/Documents/GIT/7.x/core/dplugins/generic/tools/mediaserver/upnpsdk/Neptune/Source/System/Bsd/NptBsdSockets.cpp: 1022 in NPT_BsdSocketFd::Cancel(bool)()


________________________________________________________________________________________________________
*** CID 1468073:  Error handling issues  (CHECKED_RETURN)
/home/gilles/Documents/GIT/7.x/core/dplugins/generic/tools/mediaserver/upnpsdk/Neptune/Source/System/Bsd/NptBsdSockets.cpp: 1022 in NPT_BsdSocketFd::Cancel(bool)()
1016             }
1017         }
1018         
1019         // unblock waiting selects
1020         if (m_Cancellable) {
1021             char dummy = 0;
>>>     CID 1468073:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "send(this->m_CancelFds[0], &dummy, 1UL, 0)" without checking return value. This library function may fail and return an error code.
1022             send(m_CancelFds[0], &dummy, 1, 0);
1023         }
1024     
1025         return NPT_SUCCESS;
1026     }
1027     

** CID 1215666:  Uninitialized variables  (UNINIT)


________________________________________________________________________________________________________
*** CID 1215666:  Uninitialized variables  (UNINIT)
/home/gilles/Documents/GIT/7.x/core/dplugins/generic/tools/mediaserver/upnpsdk/Platinum/Source/Core/PltDeviceData.cpp: 68 in PLT_DeviceData::PLT_DeviceData(NPT_HttpUrl, const char *, NPT_TimeStamp, const char *, const char *)()
62         if (uuid == NULL || strlen(uuid) == 0) {
63             PLT_UPnPMessageHelper::GenerateGUID(m_UUID);
64         }
65     
66         SetLeaseTime(lease_time);
67         SetURLBase(m_URLDescription);
>>>     CID 1215666:  Uninitialized variables  (UNINIT)
>>>     Using uninitialized value "this->m_ConfigId" when calling "UpdateConfigId".
68         UpdateConfigId();
69     }
70     
71     /*----------------------------------------------------------------------
72     |   PLT_DeviceData::~PLT_DeviceData
73     +---------------------------------------------------------------------*/


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yp2OAl-2Fauo86CB28HCT0-2BnD-2F6eFMYt863B1-2B0FLvU5y-2FRWSl8rMA4vGwCkGPp0f1hg-3DmyL6_IpEMwFcbl-2BY9RHaL2m6a3nuAxB4hfm4MTniX0gHjADVBIxEnj0LqXi5bOg-2BXDJ2AIBvEm7d4-2BTnYFzeCbh-2B-2Bk4kij2hQLMMr-2F2HoHAC9tNvAWxvYdYDKEqo7iodpsGkamGvzdIWfb1udOVuiOl-2BMd-2BNDHNEyn7dYZfQSD0o7zUKGLUL3nLJl5aUb1ZaUVQYx5rhFJHpdqVJWl4cG6f5TKOJEokrIm3aXyErTOEV43wI-3D



More information about the Digikam-devel mailing list