Coverity DIVIDE_BY_ZERO - CID 10482
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: 10482
Checker: DIVIDE_BY_ZERO
Category: No category available
CWE definition: http://
File: /tmp/buildd/
Function: egg_sine_
Code snippet:
791 EggFixed sine;
792
793 timeline = egg_alpha_
794 frame = egg_timeline_
CID 10482 - DIVIDE_BY_ZERO
Assigning: "n_frames" = "egg_timeline_
On this path, function call "egg_timeline_
795 n_frames = egg_timeline_
796
CID 10482 - DIVIDE_BY_ZERO
Division by expression "n_frames" which may be zero has undefined behavior
797 x = 512 * frame / n_frames;
798
799 sine = egg_sini (x) * EGG_ALPHA_
800
affects: | notify-osd → notify-osd (Ubuntu) |
no longer affects: | notify-osd/oneiric |
Source file with Coverity annotations.