Coverity DIVIDE_BY_ZERO - CID 10940
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: 10940
Checker: DIVIDE_BY_ZERO
Category: No category available
CWE definition: http://
File: /tmp/buildd/
Function: egg_smoothstep_
Code snippet:
874 * numbers in <0,1> we use EggFixed.
875 */
876 timeline = egg_alpha_
877 frame = egg_timeline_
CID 10940 - DIVIDE_BY_ZERO
On this path, function call "egg_timeline_
Assigning: "n_frames" = "egg_timeline_
878 n_frames = egg_timeline_
879
880 /*
881 * Convert x to 8.24 for next step.
882 */
CID 10940 - DIVIDE_BY_ZERO
In expression "(frame << 8) / n_frames", division by expression "n_frames" which may be zero has undefined behavior.
883 x = CFX_DIV (frame, n_frames) << 8;
no longer affects: | notify-osd/precise |
affects: | notify-osd → notify-osd (Ubuntu) |
Source file with Coverity annotations.