[GRASS-dev] Fwd: New Defects reported by Coverity Scan for grass

Markus Neteler neteler at osgeo.org
Mon Oct 20 08:51:10 PDT 2014


FYI - from the latest coverity scan.

Markus


---------- Forwarded message ----------
From:  <scan-admin at coverity.com>
Date: Mon, Oct 20, 2014 at 5:11 PM
Subject: New Defects reported by Coverity Scan for grass
To: neteler@


Hi,

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

99 new defect(s) introduced to grass found with Coverity Scan.
73 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 20 of 99 defect(s)


** CID 1248541:  Untrusted loop bound  (TAINTED_SCALAR)
/lib/vector/Vlib/read_pg.c: 1073 in polygon_from_wkb()

** CID 1248526:  Result is not floating-point  (UNINTENDED_INTEGER_DIVISION)
/imagery/i.atcorr/aerosolmodel.cpp: 388 in
AerosolModel::exscphase(double, double, double, double &, double &,
double (&)[83])()

** CID 1248523:  Result is not floating-point  (UNINTENDED_INTEGER_DIVISION)
/raster/r.contour/cont.c: 349 in getpoint()
/raster/r.contour/cont.c: 351 in getpoint()

** CID 1248527:  Result is not floating-point  (UNINTENDED_INTEGER_DIVISION)
/raster/simwe/r.sim.sediment/main.c: 335 in main()

** CID 1248529:  Result is not floating-point  (UNINTENDED_INTEGER_DIVISION)
/raster/r.sunmask/main.c: 364 in main()
/raster/r.sunmask/main.c: 385 in main()
/raster/r.sunmask/main.c: 412 in main()
/raster/r.sunmask/main.c: 423 in main()

** CID 1248535:  Untrusted value as argument  (TAINTED_SCALAR)

** CID 1248540:  Uninitialized scalar variable  (UNINIT)
/imagery/i.eb.hsebal01/main.c: 200 in main()


[other "Unused value" reports removed from here]
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit,
http://scan.coverity.com/projects/1038?tab=overview


More information about the grass-dev mailing list