Coverity DIVIDE_BY_ZERO - CID 10939
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
notify-osd (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
This bug is exported from the Coverity Integration Manager on Canonical's servers. For information on how this is done please see this website: https:/
CID: 10939
Checker: DIVIDE_BY_ZERO
Category: No category available
CWE definition: http://
File: /tmp/buildd/
Function: egg_sine_inc_func
Code snippet:
707 EggFixed sine;
708
709 timeline = egg_alpha_
710 frame = egg_timeline_
CID 10939 - DIVIDE_BY_ZERO
On this path, function call "egg_timeline_
Assigning: "n_frames" = "egg_timeline_
711 n_frames = egg_timeline_
712
CID 10939 - DIVIDE_BY_ZERO
In expression "256 * frame / n_frames", division by expression "n_frames" which may be zero has undefined behavior.
713 x = 256 * frame / n_frames;
714
715 sine = egg_sini (x) * EGG_ALPHA_
716
no longer affects: | notify-osd/precise |
affects: | notify-osd → notify-osd (Ubuntu) |
Source file with Coverity annotations.