New Defects reported by Coverity Scan for digiKam
scan-admin at coverity.com
scan-admin at coverity.com
Wed Jul 24 09:36:34 BST 2024
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.
12 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 1615134: Memory - illegal accesses (BUFFER_SIZE)
/home/gilles/devel/GIT/8.x/core/utilities/geolocation/engine/astro/planetarySats.cpp: 401 in Marble::PlanetarySats::setPlanet(char *)()
________________________________________________________________________________________________________
*** CID 1615134: Memory - illegal accesses (BUFFER_SIZE)
/home/gilles/devel/GIT/8.x/core/utilities/geolocation/engine/astro/planetarySats.cpp: 401 in Marble::PlanetarySats::setPlanet(char *)()
395 return nst;
396 }
397
398 void PlanetarySats::setPlanet(char* pname)
399 {
400 pls_moonflg = false;
>>> CID 1615134: Memory - illegal accesses (BUFFER_SIZE)
>>> Calling "strncpy" with a maximum size argument of 40 bytes on destination array "this->pls_plntname" of size 40 bytes might leave the destination string unterminated.
401 strncpy(pls_plntname, pname, sizeof(pls_plntname));
402
403 if (strncmp("Mars", pname, 4) == 0)
404 {
405 getMars();
406 }
** CID 1615133: Memory - illegal accesses (BUFFER_SIZE)
/home/gilles/devel/GIT/8.x/core/utilities/geolocation/engine/astro/planetarySats.cpp: 202 in Marble::PlanetarySats::setSatFile(char *)()
________________________________________________________________________________________________________
*** CID 1615133: Memory - illegal accesses (BUFFER_SIZE)
/home/gilles/devel/GIT/8.x/core/utilities/geolocation/engine/astro/planetarySats.cpp: 202 in Marble::PlanetarySats::setSatFile(char *)()
196 min = 0;
197 };
198 }
199
200 void PlanetarySats::setSatFile(char* fname)
201 {
>>> CID 1615133: Memory - illegal accesses (BUFFER_SIZE)
>>> Calling "strncpy" with a maximum size argument of 205 bytes on destination array "this->pls_satelmfl" of size 205 bytes might leave the destination string unterminated.
202 strncpy(pls_satelmfl, fname, sizeof(pls_satelmfl));
203 }
204
205 void PlanetarySats::setStateVector(double mjd, double x, double y, double z, double vx, double vy, double vz)
206 {
207 pls_rep[0] = x;
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=u001.AxU2LYlgjL6eX23u9ErQy-2BKADyCpvUKOL6EWmZljiu4yJUfIaFVfulX1EnArvLvmGJ18AyhOhOJnWywYkUuR-2BHL458rbL5b5DiAzhSjilZ8-3D3hZ0_wUwU8mg96yc-2FA1IAMQ6mJ-2FFdQ9EM-2BFY-2BXFbSpXNYnfytA5VXJ0HR3ZQ9mz6uJMrumz5nyyyJUttYDxmc6CV0XtASNiJdMtvgagc29HFGOwTsODisnr3ZtkBY7oqn6rF-2FLGJ2pLK0OKjEYVyUqScaRlOJ0pj26Od1uqsqeRTZaZquAel8h3-2BdH00IBwbIUQGHNIrXad-2FHufdFDbU-2Fnp2EJA-3D-3D
More information about the Digikam-devel
mailing list