Fwd: New Defects reported by Coverity Scan for ubuntu-zesty-kernel

Colin Ian King colin.king at canonical.com
Fri Jun 9 10:06:04 UTC 2017


Picked up on today's static analysis on Zesty:


-------- Forwarded Message --------
Subject: New Defects reported by Coverity Scan for ubuntu-zesty-kernel
Date: Fri, 09 Jun 2017 03:02:20 -0700
From: scan-admin at coverity.com
To: colin.king at canonical.com


Hi,

Please find the latest report on new defect(s) introduced to
ubuntu-zesty-kernel found with Coverity Scan.

1 new defect(s) introduced to ubuntu-zesty-kernel found with Coverity Scan.
2 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 1056792:  Integer handling issues  (OVERFLOW_BEFORE_WIDEN)
/drivers/gpu/drm/mgag200/mgag200_mode.c: 1602 in
mga_vga_calculate_mode_bandwidth()


________________________________________________________________________________________________________
*** CID 1056792:  Integer handling issues  (OVERFLOW_BEFORE_WIDEN)
/drivers/gpu/drm/mgag200/mgag200_mode.c: 1602 in
mga_vga_calculate_mode_bandwidth()
1596     1597     	divisor = 1024;
1598     1599     	if (!mode->htotal || !mode->vtotal || !mode->clock)
1600     		return 0;
1601     >>>     CID 1056792:  Integer handling issues
(OVERFLOW_BEFORE_WIDEN)
>>>     Potentially overflowing expression "mode->hdisplay * mode->vdisplay" with type "int" (32 bits, signed) is evaluated using 32-bit arithmetic, and then used in a context that expects an expression of type "uint64_t" (64 bits, unsigned).
1602     	active_area = mode->hdisplay * mode->vdisplay;
1603     	total_area = mode->htotal * mode->vtotal;
1604     1605     	pixels_per_second = active_area * mode->clock * 1000;
1606     	do_div(pixels_per_second, total_area);
1607

________________________________________________________________________________________________________
To view the defects in Coverity Scan visit,
https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZd8m-2BCYS83Gpc6CPaqTQF1ygHokbmjKeu26K014ljP0Pyl-2FR9bYu-2B4rxNEXL5mWXk-3D_OFgvmg1J6naJevMotmPmRlTuZxP1uJqXcOMG9f4qAi7rKkux4bn3q0PgnsNGR3wO5m1dClWpV2V3fdwjxRQpYGrBzAMmuaveLK1exk-2F8CFgypwfGKZ-2B-2BRyjJEVvvNorpv8VCkXUs8CQbno62eyU-2BNNEQxw4WOKOHFhehg5X7-2B9GINLMRtepTDiCgSYL4fBbMc5nF6L5vcXtK4GlYw5TKbzhgjPyz7m6GD-2BEp5K5BsFE-3D

To manage Coverity Scan email notifications for
"colin.king at canonical.com", click
https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4B9nVBKVtwXiB4-2BdsKOQxbDQl0BcI5D9DhMHlVfgmixOEEI4TtjS4yCHzIkIbOF3ak-2BkflVDj0B1S6cLQhIOPZuGvnvI2bEt6aTZvzYSvWdc-3D_OFgvmg1J6naJevMotmPmRlTuZxP1uJqXcOMG9f4qAi7rKkux4bn3q0PgnsNGR3wO5m1dClWpV2V3fdwjxRQpYGru1qrSqHAk0G1Fa4oTe67INCSZyFbzr9OZ3hRR9-2BDX33EL3ioplTsL361R3uW8RACKNEzyBrJAJh6k4viZCoBszTK0VZ4Tn0NFC4iU0K49q-2FuYlUVUJYSCPcSt-2FCPu92wPOC2v9aGbpQRQQB6d05s-3D





More information about the kernel-team mailing list